/* ========================================
   Praxis Landingpage – Design von Claude Design
   Brand-Farben pro Onepager via JSON pflegbar.
   ======================================== */

/* === SELBSTGEHOSTETE FONTS (DSGVO-konform, kein Google CDN) === */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/assets/fonts/cormorant-garamond.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================
   Design-Tokens
   ======================================== */
:root {
    /* === BRAND-FARBEN (werden pro Onepager via inline <style> ueberschrieben) === */
    --color-primary:   #0F2A47;
    --color-secondary: #1FB8C7;

    /* === Primary-Variants (alpha + Schattierungen, abgeleitet) === */
    --c-primary:        var(--color-primary);
    --c-primary-90:     color-mix(in srgb, var(--color-primary) 90%, transparent);
    --c-primary-70:     color-mix(in srgb, var(--color-primary) 70%, transparent);
    --c-primary-50:     color-mix(in srgb, var(--color-primary) 50%, transparent);
    --c-primary-12:     color-mix(in srgb, var(--color-primary) 12%, transparent);
    --c-primary-06:     color-mix(in srgb, var(--color-primary) 6%, transparent);
    --c-primary-hover:  color-mix(in srgb, var(--color-primary) 85%, white);
    --c-primary-darker: color-mix(in srgb, var(--color-primary) 60%, black);

    /* === Secondary (Akzent) === */
    --c-accent:        var(--color-secondary);
    --c-accent-soft:   color-mix(in srgb, var(--color-secondary) 12%, white);
    --c-accent-hover:  color-mix(in srgb, var(--color-secondary) 85%, black);

    /* === Neutrale Tokens === */
    --c-bg-pure:    #FFFFFF;
    --c-bg-warm:    color-mix(in srgb, var(--color-primary) 3%, white);
    --c-bg-cream:   #F5F1EA;
    --c-body:       #444441;
    --c-caption:    #5F5E5A;
    --c-border:     #D3D1C7;
    --c-border-soft:#E6E3DA;

    /* === Schatten === */
    --shadow-card:    0 4px 8px color-mix(in srgb, var(--color-primary) 6%, transparent);
    --shadow-card-lg: 0 8px 24px color-mix(in srgb, var(--color-primary) 8%, transparent);
    --shadow-sticky:  0 12px 24px color-mix(in srgb, var(--color-primary) 10%, transparent);

    /* === Radii === */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;

    /* === Spacing === */
    --pad-section:    64px;
    --pad-section-lg: 96px;

    /* === Container-Breiten === */
    --maxw:        1100px;
    --maxw-narrow: 720px;
    --maxw-form:   600px;

    /* === Fonts === */
    --font-sans:  'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-serif: 'Cormorant Garamond', 'Garamond', Georgia, serif;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-body);
    background: var(--c-bg-pure);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-accent); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--c-primary); color: #fff; }

/* ========================================
   Typografie
   ======================================== */
.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; }
h1, h2, h3, h4 { color: var(--c-primary); margin: 0; line-height: 1.15; letter-spacing: -.5px; }
h1 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.01em; }
h3 { font-weight: 600; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.3; }
p { margin: 0 0 1em; }
.eyebrow {
    font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
    font-weight: 500; color: var(--c-caption);
    display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; display: inline-block; }
.caption { font-size: 14px; color: var(--c-caption); line-height: 1.5; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; color: var(--c-body); }

/* ========================================
   Layout
   ======================================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

section { padding: var(--pad-section) 0; position: relative; }
@media (min-width: 1024px) { section { padding: var(--pad-section-lg) 0; } }

.divider { height: 1px; background: var(--c-border-soft); margin: 0; border: 0; }
.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; }
main { padding-bottom: 0; }
@media (max-width: 1023px) { main { padding-bottom: 80px; } }

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 14px 28px;
    font-size: 15px; font-weight: 500; letter-spacing: .01em;
    border-radius: var(--r-sm);
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer; text-align: center;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sticky); }
.btn-ghost { background: transparent; color: var(--c-primary); border: 1px solid var(--c-border); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-light { background: #fff; color: var(--c-primary); }
.btn-light:hover { background: var(--c-bg-warm); color: var(--c-primary); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    height: 64px;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--c-border-soft); }
@media (max-width: 767px) { .site-header { height: 56px; } }
.header-inner {
    height: 100%; display: flex; align-items: center; justify-content: space-between;
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
@media (min-width: 768px) { .header-inner { padding: 0 40px; } }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-weight: 500; font-size: 20px; color: var(--c-primary); letter-spacing: .01em; }
.brand-mark {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--c-primary); color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-serif); font-style: italic; font-size: 16px; font-weight: 500;
}
/* Logo-Bild (SVG / PNG / JPG) – ersetzt brand-mark + Name wenn vorhanden */
.brand-logo {
    display: block;
    height: 40px;          /* explizite Hoehe – sonst kollabieren SVGs ohne width/height-Attribute in Flexbox */
    width: auto;
    max-width: 240px;
    object-fit: contain;
    flex-shrink: 0;
}
@media (max-width: 767px) {
    .brand-logo { height: 32px; max-width: 180px; }
}
.nav-desktop { display: none; align-items: center; gap: 36px; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-desktop a { font-size: 14px; font-weight: 500; color: var(--c-primary); position: relative; }
.nav-desktop a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--c-accent); transition: right .3s ease; }
.nav-desktop a:hover::after { right: 0; }
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }
.header-cta-mobile { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-sm); background: var(--c-primary); color: #fff; font-size: 13px; font-weight: 500; min-height: 40px; }
.header-cta-mobile:hover { color: #fff; }
@media (min-width: 768px) { .header-cta-mobile { display: none; } }

/* Hamburger – nur <1024px (dort fehlt die Desktop-Nav) */
.nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; padding: 0 10px; margin-left: 4px;
    background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--c-primary); border-radius: 2px; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Off-Canvas Flyout-Menü */
.nav-overlay { position: fixed; inset: 0; background: rgba(15,42,71,.45); opacity: 0; transition: opacity .3s ease; z-index: 60; }
.nav-overlay.is-visible { opacity: 1; }
.nav-mobile {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 340px);
    background: #fff; z-index: 70; box-shadow: -8px 0 40px rgba(0,0,0,.18);
    transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; padding: 20px 24px 32px; overflow-y: auto;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile-close { align-self: flex-end; background: none; border: none; color: var(--c-primary); cursor: pointer; padding: 6px; }
.nav-mobile-links { display: flex; flex-direction: column; margin-top: 6px; }
.nav-mobile-links a { padding: 15px 4px; font-family: var(--font-serif); font-size: 19px; color: var(--c-primary); border-bottom: 1px solid var(--c-border-soft); }
.nav-mobile-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.nav-mobile-cta .btn { width: 100%; justify-content: center; }
@media (min-width: 1024px) { .nav-mobile, .nav-overlay { display: none !important; } }

/* Hero-Rating als Sprung-Link */
.hero-trust-link { display: block; cursor: pointer; text-decoration: none; color: inherit; transition: transform .2s ease; }
.hero-trust-link:hover { transform: translateY(-2px); }
.hero-trust-link:hover .num { color: var(--c-accent); }

/* Arzt-Gesicht-Avatar an Mid-CTA + Formular (Schalter "show_face_extra") */
.cta-face {
    width: 88px; height: 88px; border-radius: 50%;
    object-fit: cover; object-position: center top;
    display: block; margin: 0 auto 18px;
    box-shadow: 0 6px 22px rgba(0,0,0,.20);
    border: 3px solid rgba(255,255,255,.85);
}
.form .cta-face { border-color: var(--c-border-soft); box-shadow: var(--shadow-card); }

/* Kosten & Finanzierung */
.cost-section { background: var(--c-bg-cream); }
.cost-head { max-width: var(--maxw-narrow); margin: 0 auto 32px; text-align: center; }
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.cost-card { background: #fff; border: 1px solid var(--c-border-soft); border-radius: var(--r-lg); padding: 26px 28px 28px; box-shadow: var(--shadow-card); }
.cost-card--financing { background: var(--color-primary); border-color: transparent; }
.cost-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-caption); }
.cost-card--financing .cost-label { color: rgba(255,255,255,.72); }
.cost-figure { display: block; font-family: var(--font-serif); font-size: 32px; font-weight: 500; color: var(--c-primary); margin: 6px 0 14px; line-height: 1.1; }
.cost-card--financing .cost-figure { color: #fff; }
.cost-included { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.cost-included li { position: relative; padding-left: 26px; font-size: 14px; color: var(--c-body); }
.cost-included li::before { content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; background: var(--c-accent-soft); border-radius: 50%; }
.cost-included li::after { content: ""; position: absolute; left: 6px; top: 5px; width: 4px; height: 8px; border: solid var(--c-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cost-duration { font-size: 13px; color: rgba(255,255,255,.82); margin: 0; }
.cost-note { text-align: center; font-size: 12.5px; color: var(--c-caption); font-style: italic; margin-top: 22px; }

/* ========================================
   Hero
   ======================================== */
.hero {
    padding-top: calc(64px + 48px);
    padding-bottom: 80px;
    min-height: 80vh;
    position: relative;
    background: var(--c-bg-warm);
    overflow: hidden;
}
@media (min-width: 1024px) {
    .hero { padding-top: calc(64px + 80px); padding-bottom: 120px; min-height: 78vh; }
}

/* SPLIT (default) */
.hero[data-layout="split"] .hero-grid {
    display: grid; gap: 48px;
    grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 1024px) {
    .hero[data-layout="split"] .hero-grid {
        grid-template-columns: 1.05fr 1fr; gap: 80px;
    }
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.meta-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 99px;
    background: var(--c-primary-06);
    font-size: 12px; font-weight: 500; color: var(--c-primary);
    letter-spacing: .02em;
}
.meta-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--c-accent); }
.hero-subline { font-size: clamp(20px, 2vw, 26px); font-style: italic; color: var(--c-primary-70); font-weight: 400; margin: -12px 0 24px; letter-spacing: -.005em; line-height: 1.3; }
.hero-lead { max-width: 520px; margin-bottom: 36px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-trust {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px;
    padding-top: 28px; border-top: 1px solid var(--c-border-soft);
    max-width: 520px;
}
@media (min-width: 560px) { .hero-trust { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }
.hero-trust-item .num { font-family: var(--font-serif); font-size: 28px; font-weight: 500; color: var(--c-primary); line-height: 1; letter-spacing: -.01em; }
.hero-trust-item .num sup { font-size: .55em; vertical-align: top; color: var(--c-accent); margin-left: 2px; }
.hero-trust-item .num .hero-star { color: #FBBC04; font-size: .7em; margin-left: 3px; }
.hero-trust-item .lab { font-size: 12px; color: var(--c-caption); margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }

.hero-visual { position: relative; }
.hero-img {
    aspect-ratio: 4/5;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 75%, white) 0%, var(--color-primary) 60%, var(--c-primary-darker) 100%);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-card-lg);
    background-size: cover;
    background-position: center;
}
.hero-img::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,.08), transparent 50%),
        repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.025) 14px 28px);
}
.hero-img.has-photo::before { display: none; }
.hero-img-label {
    position: absolute; left: 24px; bottom: 24px;
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .06em;
}
.hero-img.has-photo .hero-img-label { display: none; }
.hero-badge {
    position: absolute; bottom: -32px; left: -32px;
    background: #fff; border-radius: var(--r-md); padding: 20px 24px;
    box-shadow: var(--shadow-card-lg);
    display: flex; gap: 14px; align-items: center;
    max-width: 280px;
}
@media (max-width: 1023px) { .hero-badge { left: 16px; bottom: -28px; } }
.hero-badge-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--c-accent-soft); color: var(--c-accent);
    display: grid; place-items: center; flex: none;
}
.hero-badge-text { font-size: 13px; color: var(--c-body); line-height: 1.4; }
.hero-badge-text strong { color: var(--c-primary); font-weight: 600; display: block; font-size: 14px; }
/* Arzt-Teaser: echtes Gesicht im Hero, etwas groesser als das alte Icon */
.hero-badge--doctor { padding: 16px 20px; max-width: 300px; gap: 16px; }
.hero-badge-portrait {
    width: 66px; height: 66px; flex: none;
    border-radius: 50%; object-fit: cover; object-position: center top;
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
}

/* CENTERED variant */
.hero[data-layout="centered"] .hero-grid {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 48px;
}
.hero[data-layout="centered"] .hero-meta,
.hero[data-layout="centered"] .hero-cta-row { justify-content: center; }
.hero[data-layout="centered"] .hero-lead { margin-left: auto; margin-right: auto; }
.hero[data-layout="centered"] .hero-trust { margin-left: auto; margin-right: auto; grid-template-columns: repeat(3, 1fr); }
.hero[data-layout="centered"] .hero-visual { display: none; }
.hero[data-layout="centered"] h1 { max-width: 14ch; }

/* FULL-BLEED variant */
.hero[data-layout="fullbleed"] { padding: 0; min-height: 88vh; display: flex; align-items: flex-end; background: var(--c-primary); }
.hero[data-layout="fullbleed"] .hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 75%, white) 0%, var(--color-primary) 50%, var(--c-primary-darker) 100%);
}
.hero[data-layout="fullbleed"] .hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, color-mix(in srgb, var(--color-secondary) 12%, transparent), transparent 60%),
        repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,.02) 20px 40px);
}
.hero[data-layout="fullbleed"] .hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--color-primary) 60%, black), transparent 50%);
}
.hero[data-layout="fullbleed"] .container { position: relative; z-index: 2; padding-top: 140px; padding-bottom: 80px; width: 100%; }
.hero[data-layout="fullbleed"] .hero-grid { display: block; }
.hero[data-layout="fullbleed"] h1,
.hero[data-layout="fullbleed"] .hero-lead,
.hero[data-layout="fullbleed"] .hero-trust-item .num { color: #fff; }
.hero[data-layout="fullbleed"] .hero-lead { color: rgba(255,255,255,.78); }
.hero[data-layout="fullbleed"] .meta-pill { background: rgba(255,255,255,.08); color: #fff; }
.hero[data-layout="fullbleed"] .hero-trust { border-top-color: rgba(255,255,255,.15); max-width: none; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .hero[data-layout="fullbleed"] .hero-trust { grid-template-columns: repeat(4, 1fr); } }
.hero[data-layout="fullbleed"] .hero-trust-item .lab { color: rgba(255,255,255,.55); }
.hero[data-layout="fullbleed"] .hero-visual,
.hero[data-layout="fullbleed"] .hero-badge { display: none; }
.hero[data-layout="fullbleed"] h1 { max-width: 18ch; }
.hero[data-layout="fullbleed"] .hero-lead { max-width: 600px; }
.hero[data-layout="fullbleed"] .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero[data-layout="fullbleed"] .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.hero[data-layout="fullbleed"] .btn-primary { background: #fff; color: var(--c-primary); }
.hero[data-layout="fullbleed"] .btn-primary:hover { background: var(--c-bg-warm); color: var(--c-primary); }

/* DARK theme overlay (independent of layout) */
.hero[data-theme="dark"]:not([data-layout="fullbleed"]) { background: var(--c-primary); }
.hero[data-theme="dark"]:not([data-layout="fullbleed"]) h1,
.hero[data-theme="dark"]:not([data-layout="fullbleed"]) .hero-trust-item .num { color: #fff; }
.hero[data-theme="dark"]:not([data-layout="fullbleed"]) .hero-lead { color: rgba(255,255,255,.78); }
.hero[data-theme="dark"]:not([data-layout="fullbleed"]) .meta-pill { background: rgba(255,255,255,.08); color: #fff; }
.hero[data-theme="dark"]:not([data-layout="fullbleed"]) .hero-trust { border-top-color: rgba(255,255,255,.15); }
.hero[data-theme="dark"]:not([data-layout="fullbleed"]) .hero-trust-item .lab { color: rgba(255,255,255,.55); }
.hero[data-theme="dark"]:not([data-layout="fullbleed"]) .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero[data-theme="dark"]:not([data-layout="fullbleed"]) .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.hero[data-theme="dark"]:not([data-layout="fullbleed"]) .btn-primary { background: #fff; color: var(--c-primary); }
.hero[data-theme="dark"]:not([data-layout="fullbleed"]) .btn-primary:hover { background: var(--c-bg-warm); }

/* ========================================
   Stats
   ======================================== */
.stats { background: var(--c-bg-pure); padding-top: 0; }
.stats > .container { padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) { .stats > .container { padding-left: 40px; padding-right: 40px; } }
.stats-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
    border-top: 1px solid var(--c-border-soft);
    border-bottom: 1px solid var(--c-border-soft);
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
    padding: 36px 24px;
    border-right: 1px solid var(--c-border-soft);
    border-bottom: 1px solid var(--c-border-soft);
}
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) {
    .stat { border-bottom: 0; }
    .stat:nth-child(2n) { border-right: 1px solid var(--c-border-soft); }
    .stat:last-child { border-right: 0; }
}
.stat-icon { color: var(--c-accent); margin-bottom: 14px; }
.stat-num { font-family: var(--font-serif); font-size: 42px; font-weight: 500; color: var(--c-primary); line-height: 1; letter-spacing: -.02em; margin-bottom: 6px; }
.stat-num sup { font-size: .5em; color: var(--c-accent); font-weight: 500; vertical-align: top; }
.stat-label { font-size: 13px; color: var(--c-caption); letter-spacing: .02em; }

/* ========================================
   Trust Bar
   ======================================== */
.trustbar { background: var(--c-primary); color: #fff; padding: 48px 0; }
.trustbar-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .trustbar-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-icon {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    background: color-mix(in srgb, var(--color-secondary) 15%, transparent); color: var(--c-accent);
    display: grid; place-items: center;
}
.trust-text strong { display: block; font-weight: 600; color: #fff; font-size: 15px; margin-bottom: 4px; }
.trust-text span { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.5; }

/* ========================================
   About
   ======================================== */
.about { background: var(--c-bg-warm); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: .85fr 1fr; gap: 80px; } }
.about-photo {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--r-md);
    background: linear-gradient(155deg, color-mix(in srgb, var(--color-primary) 75%, white), var(--color-primary));
    overflow: hidden;
    box-shadow: var(--shadow-card-lg);
    background-size: cover;
    background-position: center;
}
.about-photo::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,.06), transparent 50%),
        repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,.02) 30px 31px);
}
.about-photo.has-photo::before { display: none; }
.about-photo-label {
    position: absolute; left: 20px; bottom: 20px;
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 10px; color: rgba(255,255,255,.5); letter-spacing: .08em;
}
.about-photo.has-photo .about-photo-label { display: none; }
.about-photo-quote {
    position: absolute; right: -24px; bottom: 32px;
    background: #fff; padding: 20px 24px; border-radius: var(--r-md);
    max-width: 240px;
    box-shadow: var(--shadow-card-lg);
    font-family: var(--font-serif); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--c-primary);
}
@media (max-width: 1023px) { .about-photo-quote { right: 16px; bottom: 16px; max-width: 200px; font-size: 15px; padding: 14px 18px; } }
.about-photo-quote::after {
    content: "„"; position: absolute; top: -12px; left: 18px;
    font-family: var(--font-serif); font-size: 48px; color: var(--c-accent); line-height: 1;
}
.about h2 { margin-bottom: 24px; }
.about-creds {
    margin-top: 32px; padding-top: 32px;
    border-top: 1px solid var(--c-border-soft);
    display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 560px) { .about-creds { grid-template-columns: 1fr 1fr; } }
.cred { display: flex; gap: 12px; align-items: flex-start; }
.cred-icon { flex: none; color: var(--c-accent); margin-top: 2px; }
.cred strong { display: block; color: var(--c-primary); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.cred span { font-size: 13px; color: var(--c-caption); line-height: 1.5; }

/* ========================================
   Why
   ======================================== */
.why-head { text-align: left; max-width: 680px; margin-bottom: 56px; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.reason {
    background: var(--c-bg-pure);
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-md);
    padding: 32px 28px;
    position: relative; overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.reason:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lg); border-color: var(--c-accent); }
.reason-num {
    position: absolute; top: 20px; right: 24px;
    font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--c-border);
}
.reason-icon { color: var(--c-accent); margin-bottom: 24px; }
.reason h3 { margin-bottom: 10px; }
.reason p { font-size: 14px; color: var(--c-body); line-height: 1.6; margin: 0; }

/* ========================================
   Operation
   ======================================== */
.operation { background: var(--c-bg-pure); }
.operation-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .operation-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.operation h2 { margin-bottom: 24px; }
.operation .lead { margin-bottom: 32px; }
.op-spec { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 32px; border-top: 1px solid var(--c-border-soft); }
@media (min-width: 560px) { .op-spec { grid-template-columns: 1fr 1fr; } }
.op-spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-border-soft); font-size: 14px; }
@media (min-width: 560px) {
    .op-spec-row:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--c-border-soft); }
    .op-spec-row:nth-child(even) { padding-left: 24px; }
}
.op-spec-row dt { color: var(--c-caption); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 500; align-self: center; }
.op-spec-row dd { margin: 0; color: var(--c-primary); font-weight: 500; text-align: right; }
.op-method { margin: 32px 0 0; display: flex; flex-direction: column; gap: 16px; }
.op-method-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--c-bg-warm); border-radius: var(--r-sm); border-left: 2px solid var(--c-accent); }
.op-method-item strong { display: block; color: var(--c-primary); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.op-method-item span { font-size: 13px; color: var(--c-body); line-height: 1.55; }

/* Results gallery */
.results-band { margin-top: 56px; }
.results-slider-wrap { position: relative; }
/* Eine gleichmaessige Reihe, horizontal durchscrollen (Abstand via margin an .result-img) */
.results-stack {
    display: flex;
    overflow-x: auto;                 /* kein scroll-snap/smooth: Auto-Scroll laeuft kontinuierlich */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 8px;
}
.results-stack::-webkit-scrollbar { display: none; }
.result-img {
    position: relative; overflow: hidden;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 75%, white), var(--color-primary));
    box-shadow: var(--shadow-card);
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    flex: 0 0 240px;                  /* gleich grosse Kacheln */
    margin-right: 10px;               /* Abstand zwischen den Bildern (Desktop + Mobil) */
    transition: transform .3s ease, box-shadow .3s ease;
}
.result-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--color-primary) 26%, transparent);
    z-index: 2;
}
.results-swipe-hint {
    display: none; position: absolute; right: 14px; bottom: -8px;
    font-size: 12px; color: var(--c-caption); letter-spacing: .04em;
}
@media (max-width: 767px) {
    .result-img { flex-basis: 64%; }   /* 1 Bild + halbes naechstes = ~1,5 sichtbar */
    .results-swipe-hint { display: inline-flex; }
}
.result-img::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 40% 30%, rgba(255,255,255,.06), transparent 55%),
        repeating-linear-gradient(135deg, transparent 0 12px, rgba(255,255,255,.022) 12px 24px);
}
.result-img.has-photo::before { display: none; }
.result-img::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, color-mix(in srgb, var(--color-primary) 60%, black), transparent 50%);
}
.result-img .result-label {
    position: absolute; left: 14px; bottom: 12px; z-index: 1;
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    font-size: 10px; color: rgba(255,255,255,.7); letter-spacing: .08em;
}
.result-img.has-photo .result-label { display: none; }
.results-note { margin-top: 14px; font-size: 12px; color: var(--c-caption); font-style: italic; line-height: 1.55; }
.results-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,.95); color: var(--color-primary);
    border: 1px solid var(--c-border-soft); box-shadow: var(--shadow-card);
    display: grid; place-items: center; font-size: 26px; line-height: 1;
    cursor: pointer; transition: background .2s, transform .2s;
}
.results-nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.results-nav--prev { left: -24px; }
.results-nav--next { right: -24px; }
@media (max-width: 767px) { .results-nav { display: none; } }  /* mobil: swipen */

/* ========================================
   Reviews (Google) — server-gerendert, Endlos-Slider
   content-visibility: Block wird erst beim Reinscrollen gerendert (Pagespeed)
   ======================================== */
.reviews-section { content-visibility: auto; contain-intrinsic-size: 1px 620px; }
.reviews-aggregate {
    display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    margin-top: 14px;
}
.reviews-agg-rating { font-size: 30px; font-weight: 700; color: var(--color-primary); line-height: 1; }
.reviews-agg-stars  { color: #FBBC04; font-size: 18px; letter-spacing: 2px; }
.reviews-agg-count  { font-size: 13px; color: var(--c-caption); }
.reviews-slider-wrap { position: relative; margin-top: 32px; }
.reviews-stack {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 0 10px;
    align-items: stretch;
}
.reviews-stack::-webkit-scrollbar { display: none; }
.review-card {
    flex: 0 0 340px;
    margin-right: 16px;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-card);
    padding: 22px 22px 18px;
}
.review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.review-stars { color: #FBBC04; font-size: 16px; letter-spacing: 1.5px; }
.review-g { flex: 0 0 auto; }
.review-text {
    font-size: 14px; line-height: 1.6; color: var(--c-text, #333);
    flex: 1 1 auto; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}
.review-foot {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-border-soft);
}
.review-author { font-weight: 600; font-size: 13.5px; color: var(--color-primary); }
.review-date   { font-size: 12px; color: var(--c-caption); white-space: nowrap; }
.reviews-attribution { margin-top: 18px; font-size: 12px; color: var(--c-caption); }
.reviews-attribution a { color: var(--color-primary); text-decoration: underline; }
@media (max-width: 767px) {
    .review-card { flex-basis: 82%; }
    .reviews-section { contain-intrinsic-size: 1px 760px; }
}

/* ========================================
   Expect
   ======================================== */
.expect { background: var(--c-bg-cream); }
.expect-inner { max-width: var(--maxw-narrow); margin: 0 auto; }
.expect h2 { margin-bottom: 24px; }
.expect .lead { margin-bottom: 32px; }
.expect-list { list-style: none; padding: 0; margin: 32px 0 0; }
.expect-list li {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 0; border-bottom: 1px solid var(--c-border);
}
.expect-list li:last-child { border-bottom: 0; }
.expect-list .check { flex: none; color: var(--c-accent); margin-top: 2px; }
.expect-list strong { color: var(--c-primary); }

/* ========================================
   Process
   ======================================== */
.process-head { margin-bottom: 56px; max-width: 680px; }
.process-grid { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.step {
    padding: 32px 28px 32px 0; position: relative;
    border-top: 1px solid var(--c-border-soft);
}
@media (min-width: 768px) {
    .step { padding: 0 28px 0 0; border-top: 0; border-left: 1px solid var(--c-border-soft); }
    .step:first-child { border-left: 0; padding-left: 0; }
}
.step-num {
    font-family: var(--font-serif); font-style: italic;
    font-size: 14px; color: var(--c-accent); margin-bottom: 14px; letter-spacing: .04em;
}
@media (min-width: 768px) { .step-num { padding-left: 28px; } }
.step:first-child .step-num { padding-left: 0; }
.step h3 { margin-bottom: 8px; }
@media (min-width: 768px) { .step h3, .step p { padding-left: 28px; } }
.step:first-child h3, .step:first-child p { padding-left: 0; }
.step p { font-size: 14px; color: var(--c-body); line-height: 1.6; margin: 0; }

/* ========================================
   Mid CTA
   ======================================== */
.mid-cta { background: var(--c-primary); color: #fff; text-align: center; position: relative; overflow: hidden; }
.mid-cta::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, color-mix(in srgb, var(--color-secondary) 12%, transparent), transparent 50%),
        radial-gradient(ellipse at 80% 50%, color-mix(in srgb, var(--color-secondary) 8%, transparent), transparent 50%);
}
.mid-cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.mid-cta .eyebrow { color: rgba(255,255,255,.6); }
.mid-cta h2 { color: #fff; margin: 18px 0 20px; }
.mid-cta p { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.6; margin-bottom: 32px; }
.mid-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ========================================
   Location
   ======================================== */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .location-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.location h2 { margin-bottom: 24px; }
.location-info { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
@media (min-width: 560px) { .location-info { grid-template-columns: 1fr 1fr; } }
.info-block strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--c-caption); margin-bottom: 8px; font-weight: 500; }
.info-block p, .info-block a { margin: 0; font-size: 15px; line-height: 1.55; color: var(--c-primary); }
.info-block a:hover { color: var(--c-accent); }
.map {
    aspect-ratio: 4/3; border-radius: var(--r-md);
    background: var(--c-bg-warm); position: relative; overflow: hidden;
    border: 1px solid var(--c-border-soft);
}
.map::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--c-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: .4;
}
.map::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0, color-mix(in srgb, var(--c-bg-warm) 60%, transparent) 70%);
}
.map-pin {
    position: absolute; left: 50%; top: 50%;
    width: 32px; height: 32px; border-radius: 50% 50% 50% 0;
    background: var(--c-accent);
    transform: translate(-50%, -100%) rotate(-45deg);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--color-secondary) 40%, transparent);
    z-index: 2;
}
.map-pin::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.map-label {
    position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
    background: #fff; padding: 10px 16px; border-radius: 99px;
    font-size: 13px; color: var(--c-primary); font-weight: 500;
    box-shadow: var(--shadow-card); white-space: nowrap; z-index: 2;
}
/* Klick-zum-Laden Google-Karte (DSGVO) */
.map-load-btn {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
    cursor: pointer; background: var(--c-primary); color: #fff; border: 0;
    padding: 12px 22px; border-radius: 99px; font-size: 14px; font-weight: 500;
    box-shadow: var(--shadow-card); transition: transform .2s, background .2s;
}
.map-load-btn:hover { transform: translate(-50%, -50%) scale(1.04); }
.map-consent-note {
    position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 3;
    text-align: center; font-size: 11px; line-height: 1.4; color: var(--c-caption);
}
.map.map--loadable .map-pin { display: none; }
.map.map--loadable .map-label { bottom: 52px; }
.map.is-loaded::before, .map.is-loaded::after { display: none; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ========================================
   FAQ
   ======================================== */
.faq { background: var(--c-bg-warm); }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: .9fr 1.6fr; gap: 80px; align-items: start; } }
.faq h2 { margin-bottom: 20px; }
.faq-side p { color: var(--c-body); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-top: 1px solid var(--c-border); }
.faq-item:last-child { border-bottom: 1px solid var(--c-border); }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 24px 0; text-align: left;
    font-family: var(--font-sans); font-weight: 500; font-size: 17px; color: var(--c-primary);
    min-height: 64px; cursor: pointer; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--c-accent); }
.faq-icon {
    flex: none; width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--c-border);
    display: grid; place-items: center;
    transition: all .25s ease; color: var(--c-primary);
}
.faq-item[open] .faq-icon { background: var(--c-primary); color: #fff; border-color: var(--c-primary); transform: rotate(45deg); }
.faq-a {
    padding: 0 0 24px;
    font-size: 15px; line-height: 1.65; color: var(--c-body);
    max-width: 64ch;
}

/* ========================================
   Risks
   ======================================== */
.risks { background: #fff; }
.risks-inner {
    max-width: var(--maxw-narrow); margin: 0 auto;
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-primary);
    border-radius: var(--r-sm);
    padding: 36px 32px; background: var(--c-bg-warm);
}
.risks-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.risks-icon { flex: none; color: var(--c-primary); margin-top: 2px; }
.risks h2 { font-size: 24px; margin: 0; font-family: var(--font-sans); font-weight: 600; letter-spacing: -.01em; }
.risks .caption { margin-bottom: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--c-caption); font-weight: 500; }
.risks p { font-size: 15px; line-height: 1.65; color: var(--c-body); }
.risks ul { padding-left: 20px; margin: 16px 0; color: var(--c-body); font-size: 15px; line-height: 1.7; }
.risks ul li { margin-bottom: 6px; }
.risks-note { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--c-border); font-size: 13px; color: var(--c-caption); line-height: 1.55; }

/* ========================================
   Form
   ======================================== */
.form { background: var(--c-bg-warm); }
.form-inner { max-width: var(--maxw-form); margin: 0 auto; }
.form-head { text-align: center; margin-bottom: 48px; }
.form-head .eyebrow { justify-content: center; }
.form-head h2 { margin: 18px 0 16px; }
.form-head p { color: var(--c-body); font-size: 16px; line-height: 1.6; }
.form-card {
    background: #fff; border: 1px solid var(--c-border-soft);
    border-radius: var(--r-md); padding: 40px;
    box-shadow: var(--shadow-card);
}
@media (max-width: 600px) { .form-card { padding: 28px 24px; } }
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
.form-row.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 13px; font-weight: 500; color: var(--c-primary); letter-spacing: .01em; }
.field label .req { color: var(--c-accent); margin-left: 2px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 14px 16px;
    font-family: inherit; font-size: 15px; color: var(--c-primary);
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
    min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--c-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-secondary) 15%, transparent);
}
.field .hint { font-size: 12px; color: var(--c-caption); }
.field.error input, .field.error select, .field.error textarea { border-color: #c44; }
.field .err-msg { font-size: 12px; color: #c44; display: none; }
.field.error .err-msg { display: block; }
.checkbox-field { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; }
.checkbox-field input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--c-primary); }
.checkbox-field label { font-size: 13px; color: var(--c-body); line-height: 1.55; font-weight: 400; }
.checkbox-field a { color: var(--c-primary); text-decoration: underline; }
.form-submit { width: 100%; min-height: 54px; font-size: 16px; }
.form-success {
    display: none; text-align: center; padding: 48px 32px;
    background: var(--c-accent-soft); border-radius: var(--r-md);
}
.form-success.show { display: block; }
.form-success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--c-accent); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.form-success h3 { font-family: var(--font-serif); font-size: 24px; margin-bottom: 8px; }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; }

/* ========================================
   Footer
   ======================================== */
.site-footer { background: var(--c-primary); color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.footer-brand { font-family: var(--font-serif); font-size: 22px; color: #fff; margin-bottom: 16px; font-weight: 500; }
.footer-col p, .footer-col a { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.7; }
.footer-col a:hover { color: var(--c-accent); }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #fff; font-weight: 500; margin-bottom: 18px; font-family: var(--font-sans); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
    display: flex; flex-direction: column; gap: 14px;
    font-size: 13px; color: rgba(255,255,255,.5);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { color: rgba(255,255,255,.5); font-size: 13px; }
.footer-bottom a:hover { color: #fff; }
/* Mobile: die fixe .floating-Bar (Anrufen/Termin) ueberdeckt sonst die
   Footer-Links (Datenschutz/Impressum). Extra Platz, damit man darunter
   scrollen und sie antippen kann. */
@media (max-width: 1023px) {
    .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ========================================
   Floating mobile bar
   ======================================== */
.floating {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--c-border-soft);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex; gap: 10px;
    box-shadow: 0 -8px 24px color-mix(in srgb, var(--color-primary) 8%, transparent);
    transform: translateY(100%); transition: transform .35s ease;
}
.floating.show { transform: translateY(0); }
@media (min-width: 1024px) { .floating { display: none !important; } }
.floating .btn { flex: 1; min-height: 48px; font-size: 14px; padding: 10px 16px; }

/* ========================================
   Consent-Banner + Modal (DSGVO/TTDSG CMP)
   ======================================== */

/* --- Banner (unten links, slide-in) --- */
.pl-consent-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000;
    background: #fff;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-md);
    padding: 22px 24px;
    box-shadow: var(--shadow-sticky);
    max-width: 560px;
    transform: translateY(calc(100% + 32px));
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
@media (min-width: 768px) { .pl-consent-banner { left: 24px; right: auto; bottom: 24px; } }
.pl-consent-banner.is-shown { transform: translateY(0); }
.pl-consent-banner h4 {
    font-family: var(--font-sans);
    font-size: 15px; font-weight: 600;
    margin: 0 0 8px;
    color: var(--c-primary);
}
.pl-consent-banner p {
    font-size: 13px; color: var(--c-body); line-height: 1.55;
    margin: 0 0 18px;
}
.pl-consent-banner p a { color: var(--c-primary); text-decoration: underline; }
.pl-consent-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .pl-consent-actions { grid-template-columns: repeat(3, 1fr); } }
.pl-consent-actions .btn { min-height: 44px; padding: 10px 16px; font-size: 13px; }

/* --- Modal-Overlay (Detail-Einstellungen) --- */
.pl-consent-modal {
    position: fixed; inset: 0; z-index: 9100;
    background: rgba(15, 42, 71, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
@media (min-width: 768px) {
    .pl-consent-modal { align-items: center; padding: 24px; }
}
.pl-consent-modal.is-shown { display: flex; }

.pl-consent-modal-inner {
    background: #fff;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    border-radius: var(--r-md) var(--r-md) 0 0;
    box-shadow: 0 24px 60px rgba(15, 42, 71, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
@media (min-width: 768px) {
    .pl-consent-modal-inner { border-radius: var(--r-md); }
}

.pl-consent-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--c-border-soft);
}
.pl-consent-modal-head h3 {
    font-family: var(--font-serif);
    font-size: 22px; font-weight: 500;
    margin: 0; color: var(--c-primary);
}
.pl-consent-close {
    background: transparent; border: none; cursor: pointer;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 22px; line-height: 1;
    color: var(--c-body);
    transition: background-color .15s ease;
}
.pl-consent-close:hover { background: var(--c-bg-tint, #f5f1ea); }

.pl-consent-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}
.pl-consent-intro {
    font-size: 13.5px;
    color: var(--c-body);
    line-height: 1.6;
    margin: 0 0 20px;
}

.pl-consent-cat {
    padding: 16px 0;
    border-top: 1px solid var(--c-border-soft);
}
.pl-consent-cat:first-of-type { border-top: none; padding-top: 0; }
.pl-consent-cat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 6px;
}
.pl-consent-cat-head input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--c-secondary, #1FB8C7);
    cursor: pointer;
}
.pl-consent-cat-head input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .6; }
.pl-consent-cat-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--c-primary);
}
.pl-consent-required {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--c-body);
    margin-left: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pl-consent-cat p {
    font-size: 12.5px;
    color: var(--c-body);
    line-height: 1.55;
    margin: 0 0 0 30px;
}

.pl-consent-modal-foot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--c-border-soft);
    background: var(--c-bg-tint, #f8f5ec);
}
@media (min-width: 560px) {
    .pl-consent-modal-foot { grid-template-columns: repeat(3, 1fr); }
}
.pl-consent-modal-foot .btn { min-height: 44px; padding: 10px 16px; font-size: 13px; }

/* ========================================
   Generisches Modal (Impressum, Datenschutz)
   Setzt auf den Consent-Modal-Patterns auf, eigene Klasse fuer Reuse
   ======================================== */
.pl-modal {
    position: fixed; inset: 0; z-index: 9100;
    background: rgba(15, 42, 71, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
@media (min-width: 768px) {
    .pl-modal { align-items: center; padding: 24px; }
}
.pl-modal.is-shown { display: flex; }

.pl-modal .pl-modal-inner {
    background: #fff;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    border-radius: var(--r-md) var(--r-md) 0 0;
    box-shadow: 0 24px 60px rgba(15, 42, 71, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
@media (min-width: 768px) {
    .pl-modal .pl-modal-inner { border-radius: var(--r-md); }
}

.pl-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--c-border-soft);
}
.pl-modal-head h3 {
    font-family: var(--font-serif);
    font-size: 22px; font-weight: 500;
    margin: 0; color: var(--c-primary);
}
.pl-modal-close {
    background: transparent; border: none; cursor: pointer;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 22px; line-height: 1;
    color: var(--c-body);
    transition: background-color .15s ease;
}
.pl-modal-close:hover { background: var(--c-bg-tint, #f5f1ea); }

.pl-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.pl-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 24px 18px;
    border-top: 1px solid var(--c-border-soft);
    background: var(--c-bg-tint, #f8f5ec);
}
.pl-modal-foot .btn { min-height: 40px; padding: 8px 18px; font-size: 13px; }

/* --- Legal-Content (Impressum + Datenschutz) --- */
.pl-legal {
    color: var(--c-body);
    line-height: 1.65;
    font-size: 14px;
}
.pl-legal h4 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--c-primary);
    margin: 22px 0 8px;
    letter-spacing: 0.1px;
}
.pl-legal h4:first-child { margin-top: 0; }
.pl-legal p { margin: 0 0 12px; }
.pl-legal ul { margin: 0 0 14px; padding-left: 20px; }
.pl-legal ul li { margin-bottom: 4px; }
.pl-legal a { color: var(--c-primary); text-decoration: underline; word-break: break-word; }
.pl-legal strong { color: var(--c-primary); font-weight: 600; }
.pl-legal code {
    font-family: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
    background: var(--c-bg-tint, #f8f5ec);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12.5px;
}
.pl-legal-meta {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--c-border-soft);
    font-size: 12px;
    color: var(--c-body);
    opacity: .75;
}

/* ========================================
   Debug-Modus (?debug=1)
   ======================================== */
/* Debug-Farben nur im Debug-Modus (nicht im Preview-Modus) */
body.is-debug [data-src="i"] { color: #1f9d55 !important; }    /* gruen = Indikations-Datei */
body.is-debug [data-src="o"] { color: #c0392b !important; }    /* rot   = Onepager-Datei */

.debug-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    background: #2a2a2a; color: #fff;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif; font-size: 12px;
    display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.debug-banner strong { font-weight: 600; }
.debug-banner a {
    color: #fff; text-decoration: underline;
    margin-left: auto;
}
.debug-banner .debug-key {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 8px; border-radius: 99px;
    font-weight: 500;
}
.debug-banner .debug-key::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
}
.debug-banner .debug-key--i { background: rgba(31,157,85,.18); color: #5fd3a0; }
.debug-banner .debug-key--i::before { background: #5fd3a0; }
.debug-banner .debug-key--o { background: rgba(192,57,43,.2); color: #ff8a7d; }
.debug-banner .debug-key--o::before { background: #ff8a7d; }
/* Body etwas nach unten schieben damit der Banner nicht den Header verdeckt */
body:has(.debug-banner) .site-header { top: 36px; }
body:has(.debug-banner) { padding-top: 36px; }

/* ========================================
   Indikations-Preview-Modus
   (?indication=<slug>&preview=indication, nur fuer Admins)
   Onepager-spezifische Inhalte werden ausgegraut/gepunktet,
   Indikations-Inhalte werden subtil hervorgehoben.
   ======================================== */
body.is-preview [data-src="o"] {
    opacity: .35 !important;
    filter: grayscale(1);
    background: repeating-linear-gradient(
        45deg,
        rgba(150,150,150,.06),
        rgba(150,150,150,.06) 4px,
        rgba(150,150,150,.12) 4px,
        rgba(150,150,150,.12) 8px
    );
    border-radius: 2px;
    padding: 0 2px;
    user-select: none;
}
body.is-preview [data-src="i"] {
    background: linear-gradient(transparent 62%, rgba(31,157,85,.22) 62%);
    box-shadow: 0 0 0 1px rgba(31,157,85,.15);
    border-radius: 2px;
    padding: 0 2px;
}
/* Sektionen, die rein aus Onepager-Daten leben, optisch zuruecknehmen.
   #why und #process leben seit Juni 2026 auf Indikations-Ebene und gehoeren
   daher NICHT mehr hierher (sonst werden Werte + Ablauf faelschlich als
   Onepager-Bereich ausgegraut). */
body.is-preview #about,
body.is-preview #location,
body.is-preview .mid-cta,
body.is-preview .footer {
    opacity: .6;
    position: relative;
}
body.is-preview #about::before,
body.is-preview #location::before {
    content: "Onepager-Bereich · wird pro Praxis individuell gepflegt";
    display: block;
    background: rgba(150,150,150,.08);
    color: #777;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    text-align: center;
    padding: 6px 12px;
    border-top: 1px dashed #bbb;
    border-bottom: 1px dashed #bbb;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.preview-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    background: linear-gradient(90deg, #0f1e3d 0%, #1a3a6e 100%); color: #fff;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif; font-size: 12px;
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.preview-banner strong { font-weight: 600; letter-spacing: .02em; }
.preview-banner a { color: #fff; text-decoration: underline; }
.preview-banner .preview-key {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 8px; border-radius: 99px;
    font-weight: 500; font-size: 11px;
}
.preview-banner .preview-key::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
}
.preview-banner .preview-key--i { background: rgba(95,211,160,.22); color: #c8f5dd; }
.preview-banner .preview-key--i::before { background: #5fd3a0; }
.preview-banner .preview-key--o { background: rgba(255,255,255,.12); color: #ddd; }
.preview-banner .preview-key--o::before { background: #aaa; }
body:has(.preview-banner) .site-header { top: 36px; }
body:has(.preview-banner) { padding-top: 36px; }

/* ========================================
   Reveal Animations
   ======================================== */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity .8s cubic-bezier(.2, .6, .2, 1), transform .8s cubic-bezier(.2, .6, .2, 1);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * {
    opacity: 0; transform: translateY(16px);
    transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ========================================
   Mobile-Anpassungen
   ======================================== */
@media (max-width: 560px) {
    .hero-badge { position: static; margin-top: 20px; max-width: none; }
}

/* ========================================
   Index-Seite
   ======================================== */
.pages-list { list-style: none; padding: 0; }
.pages-list li {
    background: #fff;
    padding: 16px 20px;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-md);
    margin-bottom: 10px;
}
.pages-list a { text-decoration: none; }
.pages-list a:hover { text-decoration: underline; }
.muted { color: var(--c-caption); font-size: .9em; }
