/* ==========================================================================
   Yusuf Göçmen Bedachung — Main Stylesheet (v2)
   Aufbau:
   1. Design-Tokens   2. Basis   3. Buttons   4. Header/Navigation
   5. Hero            6. Trust-Leiste   7. Leistungen   8. Warum wir
   9. Meisterbetrieb 10. Projekte/Galerie 11. Kundenstimmen 12. Über uns
  13. Statistik      14. Ratgeber   15. CTA   16. Footer   17. Floating
  18. Animationen    19. Responsive 20. Reduced motion
   ========================================================================== */

/* ---------- 1. Design-Tokens ---------- */
:root {
    --navy: #0f2347;
    --navy-dark: #091833;
    --navy-soft: #1b3566;
    --red: #d42a1e;
    --red-dark: #b32016;
    --gold: #b98a3e;
    --gold-light: #e3c48a;
    --light: #f6f3ee;
    --grey: #5a6578;
    --border: #e6e1d8;
    --white: #ffffff;
    --text: #1b2538;
    --shadow-sm: 0 2px 8px rgba(15, 35, 71, 0.07);
    --shadow-md: 0 12px 32px rgba(15, 35, 71, 0.11);
    --shadow-lg: 0 24px 56px rgba(15, 35, 71, 0.17);
    --radius: 14px;
    --header-h: 84px;
    --max: 1200px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-script: 'Kaushan Script', 'Brush Script MT', 'Segoe Script', cursive; /* Logo-Stil (Slogan) */
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- 2. Basis ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    animation: pageIn .55s var(--ease) both;
}
body.menu-open { overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
svg.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 2000;
    background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* Weiche Seitenübergänge (Chrome/Edge/Safari – andere Browser ignorieren die Regel) */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 3. Buttons ---------- */
.btn-primary,
.btn-outline {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    min-height: 52px;
    padding: 14px 32px;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    isolation: isolate;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
    text-align: center;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}
.btn-primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 22px rgba(212, 42, 30, 0.28);
}
/* dezenter Glanz-Effekt beim Hover */
.btn-primary::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease);
    z-index: -1;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(212, 42, 30, 0.38); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active, .btn-outline:active { transform: translateY(-1px) scale(.98); }
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-3px); }
.btn-arrow svg { transition: transform .3s var(--ease); }
.btn-arrow:hover svg { transform: translateX(4px); }

/* ---------- 4. Header / Navigation ---------- */
#header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(16px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(15, 35, 71, .06);
    z-index: 1000;
    transition: height .3s var(--ease), box-shadow .3s, background .3s;
}
#header.scrolled { height: 68px; box-shadow: var(--shadow-md); background: rgba(255,255,255,.97); }

.logo-box { flex-shrink: 0; }
.logo-box img { height: 62px; width: auto; max-width: none; transition: height .3s var(--ease); }
#header.scrolled .logo-box img { height: 50px; }

.header-contact-box { display: flex; align-items: center; gap: 12px; margin-left: auto; margin-right: 8px; }
.contact-icon-wrapper {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--light); display: grid; place-items: center; color: var(--red);
}
.contact-icon-wrapper svg { width: 22px; height: 22px; }
.contact-details { display: flex; flex-direction: column; line-height: 1.25; }
.contact-sub { font-size: .72rem; color: var(--grey); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.contact-main-link, .contact-sub { white-space: nowrap; }
.contact-main-link { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy); transition: color .2s; }
.contact-main-link:hover { color: var(--red); }

nav#main-nav, header nav { display: flex; align-items: center; gap: 4px; }
nav a {
    position: relative;
    white-space: nowrap;
    padding: 10px 14px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--navy);
    border-radius: 8px;
    transition: color .25s;
}
/* animierte Unterstreichung */
nav a:not(.btn-quote)::after {
    content: "";
    position: absolute; left: 14px; right: 14px; bottom: 5px;
    height: 2px; background: var(--red);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
nav a:not(.btn-quote):hover { color: var(--red); }
nav a:not(.btn-quote):hover::after,
nav a.is-current::after { transform: scaleX(1); }
.btn-quote {
    background: var(--red);
    color: #fff !important;
    padding: 11px 24px;
    margin-left: 6px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(212, 42, 30, .28);
    transition: background .25s, transform .3s var(--ease), box-shadow .3s;
}
.btn-quote:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(212,42,30,.36); }

/* Sprachumschalter */
.lang-switcher { display: flex; gap: 2px; margin-left: 10px; background: var(--light); border-radius: 50px; padding: 4px; }
.lang-link {
    border: none; background: transparent; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
    color: var(--grey); padding: 7px 11px; min-height: 32px; border-radius: 50px; cursor: pointer;
    transition: background .25s, color .25s;
}
.lang-link:hover { color: var(--navy); }
.lang-link.active { background: var(--navy); color: #fff; }

/* Mobile Aktionen */
.mobile-actions { display: none; align-items: center; gap: 10px; }
.mobile-phone-btn {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--light); color: var(--red); display: grid; place-items: center;
    transition: background .25s, color .25s;
}
.mobile-phone-btn:active { background: var(--red); color: #fff; }
.mobile-phone-btn svg { width: 22px; height: 22px; }
.hamburger-btn {
    width: 46px; height: 46px; border: none; background: var(--light); border-radius: 12px;
    cursor: pointer; display: grid; place-items: center; align-content: center; gap: 5px; padding: 0 12px;
    -webkit-tap-highlight-color: transparent;
}
.hamburger-btn span { display: block; width: 100%; height: 2.5px; background: var(--navy); border-radius: 3px; transition: transform .3s var(--ease), opacity .2s; }
.hamburger-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

#nav-overlay {
    position: fixed; inset: 0; background: rgba(9, 24, 51, .55);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    z-index: 998; opacity: 0; transition: opacity .3s;
}
#nav-overlay.show { opacity: 1; }

/* ---------- 5. Hero ---------- */
.hero {
    position: relative;
    min-height: min(92vh, 860px);
    min-height: min(92svh, 860px);
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) clamp(16px, 5vw, 60px) 120px;
    color: #fff;
    overflow: hidden;
    background: var(--navy-dark);
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(105deg, rgba(9,24,51,.93) 0%, rgba(15,35,71,.8) 45%, rgba(15,35,71,.3) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1000px; width: 100%; margin: 0 auto 0 max(0px, calc((100% - var(--max)) / 2)); }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 9px 18px; border-radius: 50px; margin-bottom: 22px;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(212,42,30,.3); }
.hero h1 {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(2.3rem, 10vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 3px 18px rgba(9, 24, 51, .55);
}
/* Desktop/Tablet quer: Titel in einer Zeile */
@media (min-width: 1000px) {
    .hero h1 { font-size: clamp(2.6rem, 4.4vw, 4.2rem); white-space: nowrap; }
}
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.28rem); max-width: 580px; margin-bottom: 32px; color: rgba(255,255,255,.9); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.92); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--gold-light); width: 1.15em; height: 1.15em; }

/* Staffel-Animation der Hero-Inhalte */
.hero-content > * { animation: riseIn .8s var(--ease) both; }
.hero-content > :nth-child(1) { animation-delay: .1s; }
.hero-content > :nth-child(2) { animation-delay: .2s; }
.hero-content > :nth-child(3) { animation-delay: .3s; }
.hero-content > :nth-child(4) { animation-delay: .4s; }
.hero-content > :nth-child(5) { animation-delay: .5s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- 6. Trust-Leiste ---------- */
.trust-bar { position: relative; z-index: 5; margin-top: -64px; padding: 0 clamp(16px, 5vw, 60px); }
.trust-bar-inner {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 14px; padding: 24px 24px; position: relative; }
.trust-item + .trust-item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--border); }
.trust-ico {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #fff4f3, #ffe9e7); color: var(--red);
    transition: transform .4s var(--ease), background .3s, color .3s;
}
.trust-ico svg { width: 24px; height: 24px; }
.trust-item:hover .trust-ico { transform: rotate(-6deg) scale(1.08); background: var(--red); color: #fff; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: .98rem; color: var(--navy); line-height: 1.25; }
.trust-item span.sub { display: block; font-size: .83rem; color: var(--grey); line-height: 1.4; margin-top: 2px; }

/* ---------- Section helpers ---------- */
.section-pad { padding: clamp(64px, 9vw, 112px) clamp(16px, 5vw, 60px); }
.section-title {
    text-align: center; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800;
    color: var(--navy); margin-bottom: 12px; letter-spacing: -.015em; text-wrap: balance;
}
.section-title .accent { color: var(--red); }
.section-subtitle { text-align: center; color: var(--grey); max-width: 640px; margin: 0 auto 52px; font-size: 1.05rem; }
.eyebrow, .about-content .eyebrow {
    display: inline-block; color: var(--red); font-family: var(--font-head); font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: 12px;
}
.section-head { text-align: center; }
.section-head .eyebrow { display: block; }

/* ---------- 7. Leistungen ---------- */
.services-section { padding: clamp(80px, 10vw, 120px) clamp(16px, 5vw, 60px) clamp(64px, 9vw, 112px); background: var(--light); }
.services-container {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px;
}
.service-box {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
    display: flex; flex-direction: column;
}
.service-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-img-wrapper { overflow: hidden; aspect-ratio: 16 / 10; background: var(--border); }
.service-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-box:hover .service-img { transform: scale(1.07); }
.service-box h3 { font-size: 1.2rem; color: var(--navy); padding: 22px 24px 6px; position: relative; }
.service-box h3::after {
    content: ""; display: block; width: 36px; height: 3px; background: var(--red); border-radius: 3px; margin-top: 10px;
    transition: width .4s var(--ease);
}
.service-box:hover h3::after { width: 64px; }
.service-box p { padding: 6px 24px 26px; color: var(--grey); font-size: .96rem; }

/* 10 Karten: letzte Karte mittig, wenn sie allein in der Zeile steht (3 Spalten) */
@media (min-width: 992px) {
    .services-container > .service-box:last-child:nth-child(3n+1) { grid-column: 2; }
}

/* ---------- 8. Warum wir ---------- */
.why-section { max-width: var(--max); margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
    position: relative; padding: 32px 26px 28px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
    overflow: hidden;
}
.why-card::before {
    content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.why-card:hover::before { transform: scaleX(1); }
.why-ico {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
    background: var(--navy); color: #fff; transition: background .3s, transform .4s var(--ease);
}
.why-ico svg { width: 28px; height: 28px; }
.why-card:hover .why-ico { background: var(--red); transform: translateY(-3px); }
.why-card h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 8px; }
.why-card p { color: var(--grey); font-size: .95rem; }

/* ---------- 9. Meisterbetrieb ---------- */
.meister-section {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(900px 500px at 85% 10%, rgba(185,138,62,.18), transparent 60%), linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.meister-inner {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.meister-section .eyebrow { color: var(--gold-light); }
.meister-section h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 800; margin-bottom: 18px; letter-spacing: -.01em; text-wrap: balance; }
.meister-section .lead { color: rgba(255,255,255,.82); margin-bottom: 26px; max-width: 560px; }
.meister-list { display: grid; gap: 14px; margin-bottom: 32px; }
.meister-list li { display: flex; gap: 14px; align-items: flex-start; }
.meister-list .tick {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
    background: rgba(227,196,138,.16); color: var(--gold-light); display: grid; place-items: center;
}
.meister-list .tick svg { width: 15px; height: 15px; stroke-width: 3; }
.meister-list strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.meister-list span.d { color: rgba(255,255,255,.7); font-size: .93rem; }

.cert-card {
    position: relative; background: linear-gradient(160deg, #fffdf8 0%, #f7efe0 100%); color: var(--navy);
    border-radius: 18px; padding: 14px; box-shadow: 0 30px 70px rgba(0,0,0,.4);
    transform: rotate(1.5deg); transition: transform .6s var(--ease);
}
.cert-card:hover { transform: rotate(0) translateY(-6px); }
.cert-border {
    border: 2px solid var(--gold); border-radius: 12px; padding: clamp(26px, 4vw, 40px) clamp(20px, 3vw, 32px); text-align: center; position: relative;
}
.cert-border::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(185,138,62,.45); border-radius: 8px; pointer-events: none; }
.cert-seal {
    width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: radial-gradient(circle at 30% 30%, #d9b06a, var(--gold) 60%, #8d6420);
    box-shadow: 0 8px 20px rgba(141,100,32,.45), inset 0 0 0 4px rgba(255,255,255,.25);
}
.cert-seal svg { width: 40px; height: 40px; }
.cert-small { font-family: var(--font-head); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.cert-title { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 6px 0 4px; }
.cert-name { color: var(--grey); font-size: .95rem; margin-bottom: 20px; }
.cert-rows { border-top: 1px solid rgba(185,138,62,.4); text-align: left; }
.cert-rows div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 2px; border-bottom: 1px solid rgba(185,138,62,.25); font-size: .9rem; }
.cert-rows dt { color: var(--grey); }
.cert-rows dd { font-weight: 700; text-align: right; }

/* ---------- 10. Projekte / Galerie ---------- */
.projects-section { background: var(--light); }
.projects-inner { max-width: var(--max); margin: 0 auto; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
    font-family: var(--font-head); font-weight: 700; font-size: .85rem; cursor: pointer;
    min-height: 44px; padding: 10px 20px; border-radius: 50px; background: #fff; color: var(--navy);
    border: 1.5px solid var(--border); transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--navy); transform: translateY(-2px); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
    border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--border);
    box-shadow: var(--shadow-sm); font: inherit; text-align: left;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .4s;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gallery-item.is-hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; color: #fff;
    background: linear-gradient(to top, rgba(9,24,51,.88), transparent);
    transform: translateY(8px); opacity: .95; transition: transform .4s var(--ease);
}
.gallery-item:hover .gallery-cap { transform: none; }
.gallery-cap small { display: block; font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.gallery-cap strong { font-family: var(--font-head); font-size: 1.02rem; }
.gallery-zoom {
    position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.95); color: var(--navy); display: grid; place-items: center;
    opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s var(--ease);
}
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery-zoom svg { width: 18px; height: 18px; }

/* Textlink mit Unterstreichung */
.btn-link { font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--gold); padding: 8px 0 2px; transition: color .25s, border-color .25s; }
.btn-link:hover { color: var(--red); border-color: var(--red); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(9,24,51,.92); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox[open] { display: grid; place-items: center; animation: pageIn .3s both; }
.lightbox figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox img { max-height: 78vh; max-width: 100%; margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #fff; margin-top: 14px; font-family: var(--font-head); font-weight: 600; }
.lb-btn {
    position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
    transition: background .25s, transform .3s var(--ease);
}
.lb-btn:hover { background: var(--red); transform: scale(1.08); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }

/* ---------- 11. Kundenstimmen ---------- */
.testimonials-inner { max-width: var(--max); margin: 0 auto; }
.rating-summary {
    display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
    margin: -28px auto 40px; color: var(--grey); font-weight: 600; font-size: .95rem;
}
.rating-summary img { height: 34px; width: auto; }
.stars { display: inline-flex; gap: 2px; color: #f5a623; }
.stars svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.slider { position: relative; }
.slider-track {
    display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 8px 4px 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }
.testimonial {
    flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; position: relative;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 34px 28px 26px; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 14px;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial::before {
    content: "\201C"; position: absolute; top: 6px; right: 22px; font-family: Georgia, serif;
    font-size: 5.5rem; line-height: 1; color: var(--red); opacity: .12;
}
.testimonial blockquote { color: var(--text); font-size: 1rem; flex: 1; }
.testimonial footer { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.avatar {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    font-family: var(--font-head); font-weight: 800; color: #fff; background: linear-gradient(145deg, var(--navy-soft), var(--navy));
}
.testimonial cite { font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--navy); display: block; line-height: 1.3; }
.testimonial .meta { font-size: .85rem; color: var(--grey); }
.slider-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 4px; }
.slider-btn {
    width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; color: var(--navy);
    cursor: pointer; display: grid; place-items: center; transition: all .3s var(--ease);
}
.slider-btn:hover:not(:disabled) { background: var(--navy); color: #fff; border-color: var(--navy); transform: scale(1.06); }
.slider-btn:disabled { opacity: .35; cursor: default; }
.slider-btn svg { width: 20px; height: 20px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button {
    width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: var(--border); cursor: pointer;
    transition: width .35s var(--ease), background .3s; position: relative;
}
.slider-dots button::before { content: ""; position: absolute; inset: -17px -4px; } /* größere Touch-Fläche */
.slider-dots button.active { width: 28px; background: var(--red); }

/* ---------- 12. Über uns ---------- */
.about-section {
    max-width: var(--max); margin: 0 auto;
    padding: clamp(64px, 9vw, 112px) clamp(16px, 5vw, 60px);
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center;
}
.about-media { position: relative; }
.about-media::before {
    content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: var(--radius);
    border: 3px solid var(--gold); opacity: .5; z-index: 0;
}
.about-media img {
    position: relative; z-index: 1; width: 100%; border-radius: var(--radius);
    box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; object-fit: cover;
}
.about-content h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); color: var(--navy); font-weight: 800; margin-bottom: 18px; line-height: 1.15; }
.about-content p { color: var(--grey); margin-bottom: 22px; }
.about-list { margin-bottom: 30px; display: grid; gap: 12px; }
.about-list li { position: relative; padding-left: 36px; font-weight: 600; color: var(--text); }
.about-list li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- 13. Statistik ---------- */
.stats-section { background: var(--navy); color: #fff; padding: clamp(50px, 7vw, 80px) clamp(16px, 5vw, 60px); }
.stats-container { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat-box { padding: 10px; }
.stat-number, .stat-plus { font-family: var(--font-head); font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-plus { color: var(--gold-light); }
.stat-title { margin-top: 10px; color: rgba(255,255,255,.78); font-weight: 600; }

/* ---------- 14. Ratgeber ---------- */
.checklist-section { padding: clamp(64px, 9vw, 112px) clamp(16px, 5vw, 60px); background: var(--light); }
.checklist-inner { max-width: var(--max); margin: 0 auto; }
.checklist-head { text-align: center; margin-bottom: 52px; }
.checklist-head .eyebrow { display: block; margin-bottom: 10px; }
.checklist-head .section-subtitle { margin-bottom: 0; }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 30px 22px; }
.checklist-card {
    position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 26px 26px; box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.checklist-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.checklist-num {
    position: absolute; top: -18px; left: 26px; width: 44px; height: 44px;
    background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem;
    border-radius: 12px; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(212,42,30,.32);
}
.checklist-card h3 { color: var(--navy); font-size: 1.1rem; margin: 12px 0 8px; }
.checklist-card p { color: var(--grey); font-size: .95rem; }
.checklist-cta-card {
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; border: none;
}
.checklist-cta-card h3 { color: #fff; margin-top: 0; }
.checklist-cta-card p { color: rgba(255,255,255,.85); }
.checklist-cta-card .btn-primary { margin-top: 6px; }

/* ---------- 15. CTA ---------- */
.contact-cta {
    position: relative; overflow: hidden;
    padding: clamp(64px, 9vw, 112px) clamp(16px, 5vw, 60px);
    background: radial-gradient(700px 360px at 15% 0%, rgba(212,42,30,.28), transparent 60%), linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%);
    text-align: center; color: #fff;
}
.cta-content { max-width: 720px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 16px; text-wrap: balance; }
.cta-content p { color: rgba(255,255,255,.86); margin-bottom: 30px; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- 16. Footer ---------- */
.main-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); }
.footer-container {
    max-width: var(--max); margin: 0 auto; padding: 64px clamp(16px, 5vw, 60px) 40px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 40px;
}
.main-footer h3, .main-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.main-footer p { margin-bottom: 6px; overflow-wrap: anywhere; }
.main-footer a { transition: color .3s ease; overflow-wrap: anywhere; }
.main-footer a:hover { color: var(--gold-light); }
.footer-contact p a { display: inline-block; padding: 4px 0; }
.social-icons { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
    display: inline-flex; align-items: center; min-height: 44px; background: rgba(255,255,255,.1);
    padding: 8px 20px; border-radius: 50px; font-weight: 600; color: rgba(255,255,255,.92);
    transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.main-footer a.social-btn:hover { background: var(--red); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(212,42,30,.4); }
.footer-map-container { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); background: rgba(255,255,255,.06); }
.footer-map-container iframe { width: 100%; height: 190px; border: 0; display: block; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust-badge { background: #fff; padding: 8px; border-radius: 8px; height: 60px; width: auto; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12); padding: 22px clamp(16px, 5vw, 60px);
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem;
}
.legal-links { display: flex; gap: 20px; }
.legal-links a { padding: 8px 0; }

/* ---------- 17. Floating Actions ---------- */
.floating-actions {
    position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 900; display: flex; flex-direction: column; gap: 14px;
}
.floating-btn {
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    box-shadow: 0 8px 22px rgba(15,35,71,.28); transition: transform .3s var(--ease), box-shadow .3s;
}
.floating-btn:hover { transform: scale(1.1); }
.floating-btn svg { width: 30px; height: 30px; }
.floating-whatsapp { background: #25d366; animation: pulse-wa 2.6s infinite; }
.floating-call { background: var(--red); display: none; }
.floating-call svg { width: 26px; height: 26px; }
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- 18. Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }
/* Hover-Transform darf nach dem Einblenden wieder greifen */
.reveal.visible.service-box, .reveal.visible.why-card, .reveal.visible.testimonial, .reveal.visible.gallery-item { transition-delay: 0s; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, opacity .4s; }
/* Ohne JS alles sichtbar */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 19. Responsive ---------- */
.desktop-only { display: flex; }
.nav-mobile-only { display: none; }

/* Zwischen Tablet und Desktop: Telefonblock ausblenden, damit die Navigation Platz hat */
@media (max-width: 1400px) {
    .header-contact-box { display: none; }
    nav a { padding: 10px 10px; }
    nav a:not(.btn-quote)::after { left: 10px; right: 10px; }
    .lang-switcher { margin-left: 4px; }
    #header { margin-left: 0; }
    nav#main-nav { margin-left: auto; }
}

@media (max-width: 1100px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(3)::before { display: none; }
    .trust-item:nth-child(n+3) { border-top: 1px solid var(--border); }
    .testimonial { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 992px) {
    .about-section { grid-template-columns: 1fr; }
    .about-media { order: -1; }
    .about-media::before { inset: 14px -8px -10px 14px; }
    .meister-inner { grid-template-columns: 1fr; }
    .cert-card { max-width: 480px; margin: 0 auto; transform: none; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    :root { --header-h: 72px; }
    .desktop-only { display: none; }
    .mobile-actions { display: flex; }
    #header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }

    nav#main-nav {
        position: fixed; top: 0; right: 0; width: min(86vw, 360px);
        height: 100vh; height: 100dvh;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px;
        background: #fff; padding: calc(var(--header-h) + 20px) 24px max(32px, env(safe-area-inset-bottom));
        box-shadow: -10px 0 40px rgba(15,35,71,.22);
        transform: translateX(105%); visibility: hidden;
        transition: transform .4s var(--ease), visibility 0s linear .4s;
        z-index: 999; overflow-y: auto; overscroll-behavior: contain;
    }
    nav#main-nav.open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
    nav#main-nav a { width: 100%; font-size: 1.08rem; min-height: 52px; display: flex; align-items: center; padding: 12px 12px; border-bottom: 1px solid var(--border); border-radius: 0; }
    nav#main-nav a::after { display: none; }
    nav#main-nav a.is-current { color: var(--red); }
    .nav-mobile-only { display: flex; }
    nav#main-nav a.btn-quote { justify-content: center; margin: 18px 0 0; border: none; border-radius: 50px; }
    .lang-switcher { margin: 20px 0 0; align-self: flex-start; }
    .lang-link { min-height: 40px; padding: 8px 16px; }

    .floating-call { display: grid; }
    .footer-bottom { justify-content: center; text-align: center; }
    .hero { padding-bottom: 110px; }
}

@media (max-width: 700px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
    .testimonial { flex-basis: 86%; }
    .slider-track { margin: 0 calc(clamp(16px, 5vw, 60px) * -1); padding-left: clamp(16px, 5vw, 60px); padding-right: clamp(16px, 5vw, 60px); scroll-padding-left: clamp(16px, 5vw, 60px); }
    .lb-prev, .lb-next { top: auto; bottom: 20px; margin: 0; }
    .lb-prev { left: calc(50% - 60px); }
    .lb-next { right: calc(50% - 60px); }
}

@media (max-width: 560px) {
    .hero { min-height: 0; padding-top: calc(var(--header-h) + 28px); }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline { width: 100%; }
    .hero-points { flex-direction: column; gap: 8px; }
    .trust-bar { margin-top: -52px; }
    .trust-item { padding: 18px 14px; gap: 10px; flex-direction: column; text-align: center; }
    .trust-ico { width: 44px; height: 44px; }
    .why-grid { grid-template-columns: 1fr; }
    .stats-container { grid-template-columns: 1fr; gap: 22px; }
    .checklist-grid { grid-template-columns: 1fr; gap: 30px; }
    .checklist-cta-card { align-items: stretch; text-align: center; }
    .cta-actions { flex-direction: column; }
    .floating-actions { right: 14px; gap: 12px; }
    .floating-btn { width: 54px; height: 54px; }
    .floating-btn svg { width: 27px; height: 27px; }
    .floating-call svg { width: 24px; height: 24px; }
    .filter-bar { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
    .filter-bar::-webkit-scrollbar { display: none; }
    .filter-btn { flex-shrink: 0; }
    .rating-summary { margin-top: -34px; }
    .footer-container { padding-bottom: 96px; } /* Platz für Floating-Buttons */
}

@media (hover: none) {
    .gallery-zoom { opacity: 1; transform: none; }
    .service-box:hover, .why-card:hover, .testimonial:hover, .checklist-card:hover, .gallery-item:hover { transform: none; }
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    #header, .floating-actions, #nav-overlay { display: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
