/* ============================================================
   barrierefreies-bad.de — Designsystem
   ============================================================

   Aufbau der Datei:
     1  Schrift (Inter, lokal)
     2  Tokens (Marke, Neutrale, Masse, Schatten)
     3  Reset + Basistypografie
     4  Zugaenglichkeit (Fokus, Skip-Link, Motion)
     5  Layout (Container, Sektionen, Section-Header)
     6  Buttons (.bb-btn*)
     7  Navigation + Sticky-CTA
     8  Hero
     9  Startseiten-Sektionen
    10  Unterseiten (Rechtstexte, Ratgeber, Danke)
    11  Footer
    12  Reveal-Animation

   🔴 KOLLISIONSSCHUTZ gegen /my-form/
   Die Startseite laedt zusaetzlich das CSS des React-Formulars
   (Bootstrap 4 + eigene Regeln). Das Verzeichnis /my-form/ ist tabu,
   also wird die Kollision von aussen entschaerft:

     a) `includes/header.php` laedt das Formular-CSS VOR dieser Datei.
        Bei gleicher Spezifitaet gewinnt damit immer style.css — das
        betrifft `body`, `p`, `h1..h6`, `a`, `.container`, `.navbar`.
     b) Bootstraps Reboot setzt Element-Regeln (0,0,1). Ein `*`-Reset
        (0,0,0) verliert dagegen — deshalb steht unten ein Reset mit
        echten Element-Selektoren.
     c) Fuer `.btn-primary` und `.btn-lg` setzt my-form `!important`.
        Dagegen hilft keine Reihenfolge. Deshalb heissen die Buttons
        dieser Seite `.bb-btn*` — ein Name, den Bootstrap nicht kennt.
        NIE auf `.btn`, `.btn-primary`, `.card`, `.form-group`
        zurueckbenennen.
*/

/* ============================================================
   1  Schrift
   ============================================================
   Bewusst KEIN fonts.googleapis.com: die Datenschutzerklaerung sagt
   lokales Hosting zu. Variable-Font-Instanzen (Inter v20), ein File
   je Subset. Genutzt werden 400/500/600/700/800. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin.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: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   2  Tokens
   ============================================================
   Die Blaustufen stammen aus dem Logo: Haus hell #2baae7, Haus dunkel
   #016db7, Wortmarke #014f92. Das Gruen ist der Schwung unter dem Haus
   (#4d9031) und bleibt Foerder-/Erfolgsakzent — bewusst KEIN
   PKS-Limettengruen (Zwei-Marken-Strategie).

   Kontraste (gegen Weiss, WCAG AA = 4,5):
     --brand-600 #016db7  5,3:1   Primaerbutton, Links auf Weiss
     --brand-700 #015a99  6,9:1   Link-Hover, Tag-Text
     --green-700 #35701f  6,0:1   Foerder-Badge mit weisser Schrift
     --muted     #4d6478  6,2:1   Sekundaertext
     --ink       #10273a 14,6:1   Fliesstext
   Auf --surface-deep #062741 (15,3:1 zu Weiss):
     --on-deep-soft #a9c3d8  8,4:1
     --green-300    #8fd06e  8,3:1
*/
:root {
    --brand-50:  #eef6fd;
    --brand-100: #d8ebfa;
    --brand-200: #b0d6f4;
    --brand-300: #7cbdea;
    --brand-400: #2baae7;
    --brand-500: #0e8ad2;
    --brand-600: #016db7;
    --brand-700: #015a99;
    --brand-800: #014f92;
    --brand-900: #0a3a63;

    --green-50:  #eff7e9;
    --green-100: #dcefcf;
    --green-300: #8fd06e;
    --green-500: #4d9031;
    --green-700: #35701f;

    --ink:        #10273a;
    --ink-soft:   #3c5568;
    --muted:      #4d6478;
    --line:       #dde7ef;
    --line-strong:#c2d3e1;

    --surface:      #ffffff;
    --surface-tint: #f2f7fb;
    --surface-deep: #062741;
    --surface-deep-2: #0a3557;

    --on-deep:      #ffffff;
    --on-deep-soft: #a9c3d8;

    --amber: #b45309;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(10, 40, 66, .06), 0 2px 6px rgba(10, 40, 66, .05);
    --shadow:    0 2px 4px rgba(10, 40, 66, .05), 0 8px 20px -6px rgba(10, 40, 66, .10);
    --shadow-lg: 0 10px 30px -10px rgba(10, 40, 66, .22), 0 2px 8px rgba(10, 40, 66, .06);
    --shadow-xl: 0 28px 60px -22px rgba(6, 39, 65, .38), 0 4px 14px rgba(10, 40, 66, .08);

    --ease: cubic-bezier(.4, 0, .2, 1);
    --t:    .22s var(--ease);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Hoehe der fixierten Kopfleiste — steuert Hero-Abstand,
       scroll-margin und die Position des Mobilmenues. */
    --nav-h: 84px;
    --w:      1200px;
    --w-wide: 1340px;
    --w-text: 780px;
}

@media (max-width: 1023px) {
    :root { --nav-h: 68px; }
}

/* ============================================================
   3  Reset + Basistypografie
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

/* Echte Element-Selektoren, damit Bootstraps Reboot (Reihenfolge davor,
   Spezifitaet 0,0,1) nicht die Abstaende der Seite bestimmt. */
html, body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul,
fieldset, legend, address {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* `html body` (0,0,2) schlaegt zusaetzlich jedes fremde `body` (0,0,1) —
   Guertel und Hosentraeger gegen die Font-Kollision aus my-form. */
body,
html body {
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    text-align: left;
    overflow-x: hidden;
}

/* Formularelemente erben die Seitenschrift — auch die des React-Formulars. */
button, input, select, textarea, optgroup {
    font-family: inherit;
    font-size: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--ink);
    text-wrap: balance;
}

img, svg, video { max-width: 100%; }
img, video { height: auto; }
img { display: block; border-style: none; }

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color var(--t);
}

a:hover { color: var(--brand-700); }

strong, b { font-weight: 700; }

ul, ol { list-style-position: outside; }

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 32px 0;
}

::selection { background: var(--brand-200); color: var(--ink); }

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   4  Zugaenglichkeit
   ============================================================
   Eine Seite ueber Barrierefreiheit muss selbst vorbildlich sein:
   sichtbarer Fokus ueberall, Sprungmarke, Touch-Ziele >= 44 px,
   Bewegung nur auf Wunsch. */
:focus-visible {
    outline: 3px solid var(--brand-500);
    outline-offset: 3px;
    border-radius: 6px;
}

.hero :focus-visible,
.section-dark :focus-visible,
.section-cta :focus-visible,
.page-hero :focus-visible,
.footer :focus-visible,
.sticky-cta :focus-visible {
    outline-color: #9fd6ff;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 2000;
    background: var(--brand-700);
    color: #fff;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top .18s var(--ease);
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   5  Layout
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--w);
    margin-inline: auto;
    padding-inline: 24px;
}

.container-wide { max-width: var(--w-wide); }

/* Sprungziele muessen unter der fixierten Kopfleiste hervorkommen —
   betrifft /#kontakt und /#angebot aus der Navigation anderer Seiten. */
section[id], header[id], div[id], h2[id], h3[id] {
    scroll-margin-top: calc(var(--nav-h) + 16px);
}

.section { padding: 96px 0; }

.section-white    { background: var(--surface); }
.section-light    { background: var(--surface-tint); }

/* Ehemals dunkle "Gute Gruende"-Flaeche: jetzt ein heller Farbverlauf,
   damit die Seite nur EINE grosse dunkle Zone hat (die Formularzone). */
.section-gradient {
    background: linear-gradient(180deg, var(--brand-50) 0%, #f7fbff 60%, var(--surface) 100%);
}

.section-dark {
    position: relative;
    background: var(--surface-deep);
    color: var(--on-deep);
    overflow: hidden;
}

/* Weicher Lichtkegel hinter der Formularkarte. */
.section-dark::before {
    content: '';
    position: absolute;
    inset: -30% 20% auto;
    height: 620px;
    background: radial-gradient(closest-side, rgba(43, 170, 231, .30), transparent 70%);
    pointer-events: none;
}

.section-dark .container { position: relative; z-index: 1; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    background: var(--brand-50);
    color: var(--brand-700);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 18px;
}

.section-tag-light {
    background: rgba(255, 255, 255, .12);
    color: #cfe6f7;
}

.section-header h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    margin-bottom: 14px;
}

.section-header-light h2 { color: var(--on-deep); }

.section-desc {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
    margin-inline: auto;
    text-wrap: pretty;
}

.section-header-light .section-desc { color: var(--on-deep-soft); }

/* ============================================================
   6  Buttons
   ============================================================
   Name mit bb-Praefix, damit Bootstrap aus /my-form/ nicht
   hineinregiert (siehe Kopf der Datei). Mindesthoehe 48 px. */
.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 26px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--t), border-color var(--t), color var(--t),
                transform var(--t), box-shadow var(--t);
}

.bb-btn svg { flex-shrink: 0; }

.bb-btn--sm { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.bb-btn--lg { min-height: 58px; padding: 16px 34px; font-size: 17px; }
.bb-btn--block { display: flex; width: 100%; }

.bb-btn--primary {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(1, 109, 183, .55);
}

.bb-btn--primary:hover {
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -10px rgba(1, 90, 153, .6);
}

.bb-btn--primary:active { transform: translateY(0); }

/* Sekundaeraktion auf dunklem Grund (Telefon) — gleichwertig sichtbar,
   weil aeltere Interessenten eher anrufen als tippen. */
.bb-btn--ghost {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.bb-btn--ghost:hover {
    background: rgba(255, 255, 255, .22);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.bb-btn--white {
    background: #fff;
    border-color: #fff;
    color: var(--brand-700);
    box-shadow: var(--shadow-lg);
}

.bb-btn--white:hover {
    background: var(--brand-50);
    border-color: var(--brand-50);
    color: var(--brand-800);
    transform: translateY(-2px);
}

/* Zurueckhaltende Variante auf hellem Grund */
.bb-btn--soft {
    background: var(--brand-50);
    border-color: var(--brand-100);
    color: var(--brand-700);
}

.bb-btn--soft:hover {
    background: var(--brand-100);
    border-color: var(--brand-200);
    color: var(--brand-800);
}

/* ============================================================
   7  Navigation
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: block;
    padding: 0;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(16, 39, 58, .07);
    transition: background-color var(--t), box-shadow var(--t);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 4px 18px -8px rgba(10, 40, 66, .28);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--nav-h);
}

/* Die Kopfleiste bekommt mehr Breite als der Seiteninhalt: sonst passen
   Logo, fuenf Menuepunkte, Telefonnummer und Angebots-Button nicht
   nebeneinander. Unter 1300 px weicht zuerst die Telefonnummer — sie
   steht im Hero, im Kontaktblock und im Sticky-CTA weiterhin. */
.navbar > .container { max-width: var(--w-wide); }

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 46px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

/* Nur die direkten Menuepunkte — die Buttons in .nav-mobile-extra sind
   verschachtelt und behalten ihre Button-Farben. */
.nav-links > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.nav-links > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand-500);
    transition: right var(--t);
}

.nav-links > a:hover { color: var(--brand-700); }
.nav-links > a:hover::after { right: 0; }

.nav-links > a.active { color: var(--brand-700); }
.nav-links > a.active::after { right: 0; }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 1299px) {
    .nav-cta .nav-phone { display: none; }
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    white-space: nowrap;
}

.nav-phone svg { color: var(--brand-600); }
.nav-phone:hover { color: var(--brand-700); }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform var(--t), opacity var(--t);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
    .logo-img { height: 42px; }
    .hamburger { display: flex; }
    .nav-links { display: none; }
    .nav-cta .nav-phone { display: none; }
    .nav-cta .bb-btn { display: none; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        margin: 0;
        padding: 8px 24px 20px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }

    .nav-links.open > a {
        display: flex;
        align-items: center;
        min-height: 52px;
        font-size: 17px;
        border-bottom: 1px solid var(--line);
    }

    .nav-links.open > a::after { display: none; }
    .nav-links.open > a.active { color: var(--brand-700); }

    .nav-mobile-extra {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 18px;
    }
}

@media (min-width: 1024px) {
    .nav-mobile-extra { display: none; }
}

@media (max-width: 1180px) and (min-width: 1024px) {
    .nav-links { gap: 16px; }
    .nav-links > a { font-size: 14px; }
    .nav-cta { gap: 10px; }
    .logo-img { height: 42px; }
}

/* ---- Sticky-CTA auf Mobil ----
   Telefon und Angebot bleiben immer erreichbar. Wird per JS
   ausgeblendet, solange das Formular selbst im Blick ist. */
.sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px -12px rgba(10, 40, 66, .4);
    transform: translateY(0);
    transition: transform .25s var(--ease);
}

.sticky-cta .bb-btn {
    flex: 1;
    min-height: 52px;
    padding-inline: 8px;
    font-size: 16px;
}

.sticky-cta .bb-btn--soft {
    background: #fff;
    border-color: var(--brand-600);
    color: var(--brand-700);
}

.sticky-cta.is-hidden { transform: translateY(110%); }

@media (max-width: 860px) {
    .sticky-cta { display: flex; }
    body { padding-bottom: 74px; }
}

/* ============================================================
   8  Hero
   ============================================================
   Das Badbild bleibt sichtbar: der Verlauf verdunkelt nur die Seite,
   auf der der Text steht. Links liegt er bei >= 0,86 Deckkraft, damit
   weisse Schrift dort sicher ueber 7:1 kommt. */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(760px, 92vh);
    padding: calc(var(--nav-h) + 64px) 0 76px;
    overflow: hidden;
    background: var(--surface-deep);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 50%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(97deg,
            rgba(4, 26, 44, .94) 0%,
            rgba(4, 26, 44, .89) 42%,
            rgba(4, 26, 44, .62) 63%,
            rgba(4, 26, 44, .24) 85%,
            rgba(4, 26, 44, .12) 100%),
        linear-gradient(to top, rgba(4, 26, 44, .55) 0%, rgba(4, 26, 44, 0) 42%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(53, 112, 31, .35);
    color: #d7f0c4;
    padding: 10px 20px 10px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 24px;
    border: 1px solid rgba(143, 208, 110, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-badge svg { color: var(--green-300); }

.hero h1 {
    font-size: clamp(2.15rem, 4vw, 3.15rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 22px;
    letter-spacing: -.025em;
}

.text-gradient {
    background: linear-gradient(100deg, #8fd4ff 0%, #a9e58b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #8fd4ff;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #dce9f4;
    margin-bottom: 34px;
    line-height: 1.7;
    max-width: 580px;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 42px;
}

.hero-trust {
    display: flex;
    gap: 12px 26px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #dce9f4;
    font-size: 15px;
    font-weight: 600;
}

.trust-item svg {
    flex-shrink: 0;
    color: var(--green-300);
}

@media (max-width: 860px) {
    .hero {
        min-height: 0;
        padding: calc(var(--nav-h) + 40px) 0 48px;
    }
    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(4, 26, 44, .88) 0%, rgba(4, 26, 44, .90) 45%, rgba(4, 26, 44, .94) 100%);
    }
    .hero h1 { font-size: clamp(1.95rem, 8vw, 2.5rem); }
    .hero-subtitle { font-size: 1.05rem; margin-bottom: 28px; }
    .hero-actions { flex-direction: column; gap: 12px; margin-bottom: 32px; }
    .hero-actions .bb-btn { width: 100%; }
    .hero-trust { flex-direction: column; gap: 12px; }
}

/* ============================================================
   9  Startseiten-Sektionen
   ============================================================ */

/* ---- 9.1 Ablauf in 4 Schritten ---- */
.steps-grid {
    position: relative;
    display: grid;
    list-style: none;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Verbindungslinie hinter den Nummernkreisen (nur Desktop). */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 46px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--brand-300) 0 9px, transparent 9px 18px);
    z-index: 0;
}

.step-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 22px 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-lg);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--brand-600);
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 0 0 6px var(--surface-tint), 0 6px 14px -6px rgba(1, 109, 183, .7);
}

.section-white .step-number { box-shadow: 0 0 0 6px #fff, 0 6px 14px -6px rgba(1, 109, 183, .7); }

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: var(--brand-50);
    color: var(--brand-600);
}

.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.step-card p {
    font-size: .96rem;
    line-height: 1.6;
    color: var(--muted);
}

/* ---- 9.2 Leistungen ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-xl);
}

.service-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-tint);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}

.service-card:hover .service-img { transform: scale(1.06); }

.service-img-wrapper::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 55%;
    background: linear-gradient(to top, rgba(6, 39, 65, .55), transparent);
    pointer-events: none;
}

.service-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    background: var(--green-700);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

.service-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 26px 28px;
}

/* Symbol ueberlappt die Bildkante — Inline-SVG statt der alten
   Rastericons, deren eingebrannte Beschriftung bei 60 px unlesbar war. */
.service-icon {
    position: absolute;
    top: -32px;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: #fff;
    color: var(--brand-600);
    box-shadow: var(--shadow-lg);
}

.service-body h3 {
    font-size: 1.28rem;
    margin: 22px 0 10px;
}

.service-body p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 12px;
}

.service-body p:last-child { margin-bottom: 0; margin-top: auto; }

.service-body a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--brand-600);
}

.service-body a:hover { color: var(--brand-700); }

/* ---- 9.3 Ratgeber-Karten ---- */
.link-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0 0;
}

.link-cards-wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.link-card {
    position: relative;
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 56px 26px 28px;
    text-decoration: none !important;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.link-card::after {
    content: '';
    position: absolute;
    top: 30px;
    right: 26px;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--brand-400);
    border-bottom: 2.5px solid var(--brand-400);
    transform: rotate(-45deg);
    transition: transform var(--t), border-color var(--t);
}

.link-card:hover {
    border-color: var(--brand-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.link-card:hover::after {
    transform: rotate(-45deg) translate(3px, 3px);
    border-color: var(--brand-600);
}

.link-card strong {
    display: block;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 9px;
}

.link-card span {
    display: block;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.65;
    font-weight: 400;
}

/* ---- 9.4 Formular-Sektion ---- */
.form-embed-wrapper {
    max-width: 660px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--surface);
    color: var(--ink);
}

/* Rahmen des eingebetteten React-Formulars. Das Innere bleibt
   unveraendert — hier werden nur Karte, Kontrast und Touch-Ziele
   von aussen angepasst. */
.form-embed-wrapper .card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.form-embed-wrapper .card-body { padding: 30px 26px; }

.form-embed-wrapper .card-footer {
    background: var(--surface-tint);
    border-top: 1px solid var(--line);
    padding: 16px;
    font-size: 13px;
}

/* Touch-Ziele und iOS-Zoomschutz fuer die Eingaben des Formulars. */
#conversion-form .form-control,
#conversion-form select,
#conversion-form input[type="text"],
#conversion-form input[type="tel"],
#conversion-form input[type="email"] {
    min-height: 50px;
    font-size: 16px;
}

.form-note {
    max-width: 660px;
    margin: 20px auto 0;
    text-align: center;
    font-size: .95rem;
    color: var(--on-deep-soft);
}

.form-note a { color: #cfe6f7; text-decoration: underline; }
.form-note a:hover { color: #fff; }

/* ---- 9.5 Vorher/Nachher ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: box-shadow var(--t), border-color var(--t);
}

.gallery-item:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-xl);
}

.ba-compare {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--surface-tint);
}

.ba-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: col-resize;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
}

.ba-slider:focus-visible {
    outline: 3px solid var(--brand-500);
    outline-offset: -3px;
}

.ba-before, .ba-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-after { clip-path: inset(0 50% 0 0); }

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 12px rgba(6, 39, 65, .45);
    pointer-events: none;
}

.ba-handle::before {
    content: '\2194';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    font-size: 21px;
    color: var(--brand-700);
    box-shadow: var(--shadow-lg);
}

.ba-compare::before,
.ba-compare::after {
    position: absolute;
    top: 14px;
    z-index: 5;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(6, 39, 65, .78);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ba-compare::before { content: attr(data-after); left: 14px; }
.ba-compare::after  { content: attr(data-before); right: 14px; }

.gallery-caption {
    padding: 18px 20px;
    font-size: .98rem;
    color: var(--ink-soft);
    font-weight: 600;
    text-align: center;
    border-top: 1px solid var(--line);
}

.gallery-more { text-align: center; margin-top: 44px; }

/* ---- 9.6 Gute Gruende ---- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.benefit-card {
    display: flex;
    gap: 18px;
    padding: 26px 26px 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.benefit-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--brand-50);
    color: var(--brand-600);
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 7px;
    color: var(--ink);
}

.benefit-card p {
    font-size: .97rem;
    line-height: 1.65;
    color: var(--muted);
}

.benefit-card a {
    color: var(--brand-700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.benefit-card a:hover { color: var(--brand-800); }

/* ---- 9.7 Kundenstimmen ---- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 30px 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 6px;
    right: 24px;
    font-size: 88px;
    line-height: 1;
    color: var(--brand-50);
    font-weight: 800;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    position: relative;
    color: var(--amber);
    font-size: 17px;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.testimonial-text {
    position: relative;
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.testimonial-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
    color: #fff;
    font-weight: 800;
    font-size: 19px;
}

.testimonial-author strong {
    display: block;
    font-size: 1rem;
    color: var(--ink);
}

.testimonial-author span {
    font-size: .9rem;
    color: var(--muted);
}

/* ---- 9.8 CTA-Banner ---- */
.section-cta {
    position: relative;
    padding: 84px 0;
    background: linear-gradient(115deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-600) 100%);
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: -60% -10% auto auto;
    width: 620px;
    height: 620px;
    background: radial-gradient(closest-side, rgba(143, 208, 110, .28), transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    color: #fff;
    margin-bottom: 14px;
}

.cta-content p {
    color: #e3eefa;
    font-size: 1.1rem;
    margin: 0 auto 32px;
    max-width: 620px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- 9.9 Kontakt ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 48px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { border-bottom: 0; }

.contact-item > svg {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 14px;
    background: var(--brand-50);
    color: var(--brand-600);
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.02rem;
}

.contact-item div { color: var(--muted); }

.contact-item a {
    color: var(--ink);
    font-weight: 600;
}

.contact-item a:hover { color: var(--brand-700); }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.section-white .contact-form { background: var(--surface-tint); }

/* Eigene Feldnamen statt .form-group/.form-row: Bootstrap 4 aus
   /my-form/ kennt diese Klassen und wuerde sonst mitreden. */
.field { margin-bottom: 20px; }

.field label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 7px;
    color: var(--ink);
}

.field input,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: var(--font);
    background: #fff;
    color: var(--ink);
    transition: border-color var(--t), box-shadow var(--t);
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(14, 138, 210, .18);
}

/* Wer mit der Tastatur navigiert, bekommt zusaetzlich den harten Ring —
   der weiche Schein allein waere als einziges Fokussignal zu leise. */
.field input:focus-visible,
.field textarea:focus-visible {
    outline: 3px solid var(--brand-500);
    outline-offset: 2px;
}

.field input::placeholder,
.field textarea::placeholder { color: #5e788d; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-status {
    margin-top: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.form-status.success { color: var(--green-700); }
.form-status.error { color: #b91c1c; }

/* ---- 9.x Responsive Startseite ---- */
@media (max-width: 1023px) {
    .section { padding: 72px 0; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 1.6rem; }
    .section-desc { font-size: 1rem; }

    .steps-grid { grid-template-columns: 1fr; gap: 14px; }
    .step-card { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; padding: 20px; }
    .step-card .step-icon { display: none; }
    .step-number { margin-bottom: 0; width: 42px; height: 42px; font-size: 17px; }
    .step-text { flex: 1; }

    .services-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .link-cards, .link-cards-wide { grid-template-columns: 1fr; }

    .cta-actions { flex-direction: column; align-items: stretch; }
    .cta-actions .bb-btn { width: 100%; }
    .gallery-more .bb-btn { width: 100%; }

    .field-row { grid-template-columns: 1fr; }
    .contact-form { padding: 22px; }
    .form-embed-wrapper .card-body { padding: 22px 16px; }
}

@media (max-width: 420px) {
    .container { padding-inline: 16px; }
    .bb-btn--lg { padding: 15px 20px; font-size: 16px; }
}

/* ============================================================
   10  Unterseiten
   ============================================================ */

/* ---- Seitenkopf statt Hero ---- */
.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + 56px) 0 60px;
    background: linear-gradient(120deg, var(--surface-deep) 0%, var(--brand-800) 60%, var(--brand-700) 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: auto -5% -70% auto;
    width: 560px;
    height: 560px;
    background: radial-gradient(closest-side, rgba(43, 170, 231, .30), transparent 70%);
    pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    line-height: 1.15;
    color: #fff;
    margin-bottom: 14px;
}

.page-hero p {
    color: #cfe0ee;
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 660px;
    margin-inline: auto;
    text-wrap: pretty;
}

/* ---- Brotkrumen ---- */
.breadcrumbs {
    font-size: .9rem;
    color: #c7dced;
    margin-bottom: 16px;
}

.breadcrumbs a { color: #e2eff9; text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-current] { color: #c7dced; }
.breadcrumbs .sep { padding: 0 8px; opacity: .55; }

/* ---- Ratgeber-Fliesstext ----
   Zielgruppe sind haeufig aeltere Leserinnen und Leser: grosse
   Grundschrift, ruhige Zeilenlaenge, hohe Kontraste. */
.article {
    max-width: var(--w-text);
    margin-inline: auto;
}

.article > p,
.article > ul,
.article > ol {
    color: var(--ink-soft);
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article > ul,
.article > ol { padding-left: 26px; }
.article li { margin-bottom: 10px; }

.article h2 {
    font-size: 1.7rem;
    line-height: 1.25;
    margin: 60px 0 20px;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

.article > h2:first-child { margin-top: 0; }

.article h3 {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--ink);
    margin: 36px 0 12px;
}

.article strong { color: var(--ink); }

.article a {
    color: var(--brand-600);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.article a:hover { color: var(--brand-700); }

/* Buttons im Artikelfluss (Telefon-CTA etc.): `.article a` (0,2,0) schlaegt
   sonst `.bb-btn--ghost` (0,1,0) — dunkles Blau auf dunklem Blau, live auf
   allen sieben Unterseiten gesehen. Farbe pro Variante zurueckholen. */
.article a.bb-btn { text-decoration: none; font-weight: 700; }
.article a.bb-btn--primary,
.article a.bb-btn--ghost,
.article a.bb-btn--primary:hover,
.article a.bb-btn--ghost:hover { color: #fff; }
.article a.bb-btn--white,
.article a.bb-btn--soft { color: var(--brand-700); }

/* ---- "Auf einen Blick" ---- */
.key-facts {
    position: relative;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-left: 5px solid var(--brand-500);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin: 0 0 44px;
}

.key-facts h2 {
    font-size: .95rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand-800);
    margin: 0 0 14px !important;
}

.key-facts ul {
    margin: 0;
    padding-left: 22px;
    color: var(--ink-soft);
    font-size: 1.04rem;
    line-height: 1.75;
}

.key-facts li { margin-bottom: 9px; }
.key-facts li:last-child { margin-bottom: 0; }

/* ---- Hinweiskaesten ---- */
.callout {
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand-500);
    background: var(--surface-tint);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 22px 26px;
    margin: 32px 0;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--ink-soft);
}

/* Nur die Ueberschrift des Kastens wird zum Block — ein <strong>
   mitten im Satz muss inline bleiben. */
.callout > strong { display: block; color: var(--ink); margin-bottom: 6px; }
.callout p strong { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }

.callout-warn {
    border-left-color: #d97706;
    border-color: #fcd9a4;
    background: #fffaf0;
}

.callout-warn > strong,
.callout-warn p strong { color: #92400e; }

/* ---- Datentabellen ---- */
.table-wrap {
    overflow-x: auto;
    margin: 26px 0 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    min-width: 460px;
}

/* Der Stand-Hinweis steht als <p class="table-note"> HINTER dem
   Scroll-Container, nicht als <caption> darin: eine caption erbt die
   min-width der Tabelle und waere auf schmalen Viewports nur mit
   Seitwaertsscrollen lesbar — ausgerechnet der Hinweis "Preise von 2022". */
.article > .table-note,
.table-note {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.6;
    margin: -20px 0 30px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table thead th {
    background: var(--brand-50);
    color: var(--brand-900);
    font-weight: 700;
    border-bottom: 1px solid var(--brand-100);
}

.data-table tbody th { font-weight: 600; color: var(--ink); }
.data-table td { color: var(--ink-soft); }
.data-table tbody tr:nth-child(even) { background: #fafcfe; }

/* ---- Nummerierter Ablauf ---- */
.flow { list-style: none; margin: 32px 0 36px; padding: 0; counter-reset: flow; }

.flow > li {
    counter-increment: flow;
    position: relative;
    padding: 0 0 28px 60px;
    border-left: 2px solid var(--brand-100);
    margin-left: 18px;
}

.flow > li:last-child { border-left-color: transparent; padding-bottom: 0; }

.flow > li::before {
    content: counter(flow);
    position: absolute;
    left: -19px;
    top: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-600);
    color: #fff;
    font-weight: 800;
    font-size: .98rem;
    box-shadow: 0 0 0 5px var(--surface);
}

.flow h3 { margin: 0 0 8px; font-size: 1.12rem; }
.flow p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; }

/* ---- Frage/Antwort ---- */
.faq { margin: 30px 0 0; }

.faq-item {
    border-top: 1px solid var(--line);
    padding: 26px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 10px; font-size: 1.14rem; color: var(--ink); }
.faq-item p { margin: 0 0 12px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.8; }
.faq-item p:last-child { margin-bottom: 0; }

/* ---- Inline-CTA im Text ---- */
.cta-inline {
    position: relative;
    background: linear-gradient(120deg, var(--surface-deep) 0%, var(--brand-800) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin: 52px 0;
    text-align: center;
    overflow: hidden;
}

.cta-inline::before {
    content: '';
    position: absolute;
    inset: -70% -20% auto auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(closest-side, rgba(43, 170, 231, .3), transparent 70%);
    pointer-events: none;
}

.cta-inline > * { position: relative; z-index: 1; }

.cta-inline h2 {
    color: #fff !important;
    margin: 0 0 12px !important;
    font-size: 1.42rem !important;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

.cta-inline p {
    color: #cfe0ee;
    margin: 0 0 24px;
    font-size: 1.02rem;
    line-height: 1.7;
}

.cta-inline .bb-btn + .bb-btn { margin-left: 12px; }

/* ---- Fallgeschichten ---- */
.case {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 36px 0 52px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.case-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--line);
}

.case-media figure { margin: 0; position: relative; background: var(--surface-tint); }

.case-media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.case-media figcaption {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(6, 39, 65, .8);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

.case-body { padding: 30px 32px; }
.case-body h3 { margin: 0 0 14px; font-size: 1.3rem; color: var(--ink); }
.case-body p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.8; margin-bottom: 15px; }

.case-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.case-facts div { font-size: .95rem; }
.case-facts dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.case-facts dd { margin: 0; color: var(--ink); font-weight: 700; }

.case-figure { margin: 26px 0 4px; }
.case-figure img { border-radius: var(--radius); border: 1px solid var(--line); }

.figure-note {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.6;
    padding-top: 10px;
}

/* ---- Quellen-/Standfussnote ---- */
.source-note {
    font-size: .92rem !important;
    color: var(--muted) !important;
    line-height: 1.7 !important;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 52px !important;
}

/* ---- Rechtstexte ---- */
.legal {
    max-width: 860px;
    margin-inline: auto;
}

.legal h2 {
    font-size: 1.45rem;
    line-height: 1.3;
    margin: 56px 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

.legal > h2:first-child { margin-top: 0; }

.legal h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
    margin: 34px 0 10px;
}

.legal h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin: 24px 0 8px;
}

.legal p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 15px;
}

.legal ul {
    margin: 0 0 18px 24px;
    color: var(--ink-soft);
    font-size: 1rem;
}

.legal li { margin-bottom: 9px; line-height: 1.7; }

.legal address {
    font-style: normal;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 15px;
}

.legal a { overflow-wrap: anywhere; }

.legal-note {
    background: var(--surface-tint);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-500);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    font-size: .92rem;
    line-height: 1.7;
}

.legal-card {
    background: var(--surface-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 34px;
    margin-bottom: 8px;
}

.legal-card h2 { margin-top: 0; }
.legal-card h3 { margin-top: 20px; }
.legal-card > *:last-child { margin-bottom: 0; }

.legal-toc {
    background: var(--surface-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 30px 10px;
    margin-bottom: 48px;
}

.legal-toc h2 {
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    border: none;
    margin: 0 0 14px;
    padding: 0;
}

.legal-toc ol {
    margin: 0;
    padding-left: 22px;
    columns: 2;
    column-gap: 34px;
}

.legal-toc li {
    font-size: .95rem;
    margin-bottom: 9px;
    break-inside: avoid;
    color: var(--muted);
}

.legal-back {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-weight: 600;
}

/* ---- Danke-Seite ---- */
.thanks-section { padding: calc(var(--nav-h) + 72px) 0 96px; }

.thanks-card {
    max-width: 660px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 56px 48px;
    text-align: center;
}

.thanks-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 26px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green-700);
}

.thanks-card h1 {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.thanks-lead {
    color: var(--ink-soft);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.thanks-lead strong { color: var(--ink); }

.thanks-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
    background: var(--surface-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 32px;
    font-size: 1rem;
    color: var(--ink-soft);
}

.thanks-phone svg { color: var(--brand-600); flex-shrink: 0; }
.thanks-phone strong { display: block; color: var(--ink); }
.thanks-phone a { font-weight: 700; white-space: nowrap; }

.thanks-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .page-hero { padding: calc(var(--nav-h) + 36px) 0 44px; }
    .article > p, .article > ul, .article > ol { font-size: 1.04rem; }
    .article h2 { font-size: 1.4rem; margin-top: 44px; }
    .key-facts { padding: 22px 20px; }
    .callout { padding: 18px 20px; }
    .cta-inline { padding: 28px 22px; }
    .cta-inline .bb-btn { width: 100%; }
    .cta-inline .bb-btn + .bb-btn { margin-left: 0; margin-top: 12px; }
    .case-media { grid-template-columns: 1fr; }
    .case-body { padding: 24px 20px; }
    .flow > li { padding-left: 48px; }
    .legal h2 { margin-top: 44px; font-size: 1.3rem; }
    .legal-toc ol { columns: 1; }
    .thanks-section { padding: calc(var(--nav-h) + 40px) 0 60px; }
    .thanks-card { padding: 36px 22px; }
    .thanks-phone { flex-direction: column; text-align: center; gap: 10px; }
    .thanks-actions { flex-direction: column; }
    .thanks-actions .bb-btn { width: 100%; }
}

/* ============================================================
   11  Footer
   ============================================================ */
.footer {
    background: var(--surface-deep);
    color: var(--on-deep-soft);
    padding: 72px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.15fr;
    gap: 44px;
    margin-bottom: 48px;
}

/* Das Logo traegt dunkelblaue Schrift — auf dunklem Grund bekommt es
   deshalb eine weisse Platte statt eines Weiss-Filters, der die
   Farbmarke plattdruecken wuerde. */
.footer-logo-plate {
    display: inline-flex;
    background: #fff;
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 22px;
}

.footer-logo { height: 46px; width: auto; }

.footer-brand p {
    font-size: .97rem;
    line-height: 1.7;
    max-width: 40ch;
}

.footer h4,
.footer .footer-heading {
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 18px;
}

/* my-form rendert unter dem Formular Impressums-Links, die sich nur per
   Farbe abheben (Lighthouse link-in-text-block). Der Build ist tabu —
   die Unterstreichung kommt deshalb von aussen. */
.form-embed-wrapper .card-footer a,
.form-embed-wrapper .card-footer .link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-links a,
.footer-contact a {
    display: block;
    color: var(--on-deep-soft);
    font-size: .97rem;
    margin-bottom: 12px;
    transition: color var(--t);
}

.footer-links a:hover,
.footer-contact a:hover { color: #fff; }

.footer-contact a { font-weight: 600; }

/* Hinweis auf den ausfuehrenden Partnerbetrieb (E-E-A-T: der
   Ausfuehrende wird benannt statt "unser Partner vor Ort"). */
.footer-partner {
    margin-top: 20px;
    font-size: .88rem;
    line-height: 1.65;
    color: #8fadc6;
}

.footer-partner a {
    display: inline;
    margin: 0;
    font-weight: 600;
    color: #cfe0ee;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 26px;
    text-align: center;
    font-size: .9rem;
    color: #8fadc6;
}

.footer-bottom a {
    color: #cfe0ee;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom a:hover { color: #fff; }

.footer-note {
    margin-top: 10px;
    font-size: .86rem;
    color: #7c9bb5;
    max-width: 78ch;
    margin-inline: auto;
}

@media (max-width: 1023px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 600px) {
    .footer { padding: 52px 0 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   12  Reveal-Animation
   ============================================================
   Bewusst OHNE opacity: Inhalte sind im Grundzustand sichtbar. Wer
   schnell scrollt, sieht nie eine leere Flaeche, Vollseiten-Captures
   zeigen alles, und ohne JavaScript aendert sich gar nichts. Die
   Animation ist reine Zugabe (nur Verschiebung) und entfaellt bei
   prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal { transform: translateY(14px); transition: transform .5s var(--ease); }
    .js .reveal.is-in { transform: none; }
}

/* ============================================================
   13  Zitierfaehigkeit: Antwortsatz, Quellenzeile, Redaktionsblock
   ============================================================
   Drei Bausteine, die auf den sechs Ratgeberseiten wiederkehren und
   zusammen ein Muster ergeben: Frage (h2) → direkte Antwort → Erklaerung
   → Primaerquelle. Antwortmaschinen zitieren den ersten Block woertlich,
   Leserinnen und Leser finden darunter die Herkunft der Zahl.

   Die Selektoren stehen doppelt (`.article > .x` und `.x`), weil
   `.article > p` (0,1,1) eine reine Klasse (0,1,0) sonst schlaegt —
   dasselbe Muster wie bei `.table-note` in Abschnitt 10.

   Bewusst KEINE neuen Farben: alles kommt aus den Tokens in Abschnitt 2,
   damit die Kontrastrechnung dort weiter gilt. */

/* ---- Direkte Antwort am Anfang eines Abschnitts ----
   Ein bis vier Saetze, die fuer sich allein stehen koennen. Kein
   Kasten, nur eine Kante — sonst konkurriert der Block optisch mit
   "Auf einen Blick" und den Hinweiskaesten. */
.article > .answer,
.answer {
    border-left: 4px solid var(--brand-400);
    padding-left: 20px;
    margin: 0 0 24px;
    color: var(--ink);
    font-size: 1.12rem;
    line-height: 1.72;
    font-weight: 500;
}

.answer strong { color: var(--ink); font-weight: 700; }

/* ---- Quellenzeile unter einer Fachaussage ----
   Steht direkt hinter dem Absatz, den sie belegt, nicht gesammelt am
   Seitenende: Wer die Zahl zitiert, soll die Norm daneben sehen. */
.article > .source-ref,
.source-ref {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.65;
    margin: -12px 0 28px;
}

.source-ref strong {
    color: var(--ink-soft) !important;
    font-weight: 600;
}

/* ---- Redaktionsblock am Seitenende ----
   Loest die frueheren `.source-note`-Absaetze ab und vereinheitlicht
   sie: Stand, Verantwortung, fachliche Grundlage, Quellenliste,
   Vorbehalt. Auf allen sechs Ratgeberseiten identisch aufgebaut. */
.editorial {
    display: block;
    margin: 64px 0 0;
    padding: 26px 30px;
    background: var(--surface-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.editorial h2 {
    font-size: .95rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand-800);
    margin: 0 0 16px !important;
}

.editorial p {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 11px;
}

.editorial p strong { color: var(--ink); }

.editorial ul {
    margin: 2px 0 14px;
    padding-left: 20px;
    font-size: .93rem;
    line-height: 1.7;
    color: var(--muted);
}

.editorial li { margin-bottom: 7px; }
.editorial li:last-child { margin-bottom: 0; }

.editorial a {
    color: var(--brand-700);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.editorial-disclaimer {
    margin: 18px 0 0 !important;
    padding-top: 15px;
    border-top: 1px solid var(--line-strong);
}

@media (max-width: 600px) {
    .article > .answer,
    .answer { font-size: 1.06rem; padding-left: 16px; }
    .editorial { padding: 22px 20px; }
}

/* ---- Stand-Zeile in der "Auf einen Blick"-Box ----
   Sagt, worauf sich der Kasten bezieht. Steht bewusst IN der Box: eine
   Zahl ohne Datum ist fuer ein Antwortsystem wertlos. */
.key-facts-stand {
    margin: 15px 0 0;
    padding-top: 13px;
    border-top: 1px solid var(--brand-100);
    font-size: .88rem;
    line-height: 1.6;
    color: var(--muted);
}
