/* ==========================================================================
   Gross Webdesign – Stylesheet
   Keine externen Schriften/CDNs: schnell, DSGVO-sauber, kein Build-Schritt.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design-Token
   -------------------------------------------------------------------------- */
:root {
    /* Flächen */
    --nacht:        #070A12;
    --nacht-2:      #0C1120;
    --nacht-3:      #121A2E;
    --linie:        #1E2942;
    --linie-hell:   #2B3A5C;

    /* Text */
    --text:         #EEF2FA;
    --text-2:       #A8B4CC;
    --text-3:       #6F7C96;

    /* Akzente */
    --violett:      #7C5CFF;
    --violett-2:    #A78BFA;
    --cyan:         #22D3EE;
    --cyan-2:       #67E8F9;
    --gruen:        #34D399;
    --gelb:         #FBBF24;
    --rot:          #FB7185;
    --orange:       #FB923C;

    --verlauf:      linear-gradient(120deg, var(--violett) 0%, #5B8DEF 45%, var(--cyan) 100%);
    --verlauf-warm: linear-gradient(120deg, var(--rot) 0%, var(--orange) 100%);

    /* Hell-Flächen (Kontrastabschnitte) */
    --papier:       #F7F8FC;
    --papier-2:     #EDF0F8;
    --tinte:        #0C1120;
    --tinte-2:      #47526B;

    /* Maße */
    --breite:       1180px;
    --breite-schmal: 780px;
    --radius:       18px;
    --radius-s:     12px;
    --radius-xl:    28px;

    --schrift: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               "Noto Sans", Roboto, Arial, sans-serif;
    --schrift-zahl: "SF Mono", "Segoe UI Mono", "Roboto Mono", ui-monospace, monospace;

    --schatten:    0 20px 60px -20px rgba(4, 8, 20, .75);
    --schatten-s:  0 8px 26px -12px rgba(4, 8, 20, .6);
    --ease:        cubic-bezier(.22, .8, .32, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--nacht);
    color: var(--text);
    font-family: var(--schrift);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.1;
    letter-spacing: -.025em;
    font-weight: 800;
}
h1 { font-size: clamp(2.15rem, 4.7vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 700; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--violett); color: #fff; }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap {
    width: min(100% - 2.5rem, var(--breite));
    margin-inline: auto;
}
.wrap-schmal { width: min(100% - 2.5rem, var(--breite-schmal)); margin-inline: auto; }

section { position: relative; }

.abschnitt      { padding: clamp(3.75rem, 7vw, 6.25rem) 0; }
.abschnitt-klein{ padding: clamp(2.75rem, 5vw, 4.25rem) 0; }

.hell {
    background: var(--papier);
    color: var(--tinte);
}
.hell h1, .hell h2, .hell h3 { color: var(--tinte); }
.hell p { color: var(--tinte-2); }

.dunkel-2 { background: var(--nacht-2); }

.mitte { text-align: center; }
.mitte .kopf-text { margin-inline: auto; }

.gitter { display: grid; gap: 1.5rem; }
/* Rasterzellen dürfen schmaler werden als ihr Inhalt – sonst sprengt ein
   einzelnes langes Wort oder ein breiter Button das ganze Layout. */
.gitter > *, .preis-gitter > *, .hero-gitter > *, .rechner > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   4. Bausteine: Kicker, Überschriften-Block
   -------------------------------------------------------------------------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .38rem .9rem .38rem .55rem;
    border: 1px solid var(--linie-hell);
    border-radius: 999px;
    background: rgba(124, 92, 255, .1);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--violett-2);
    margin-bottom: 1.4rem;
}
.hell .kicker {
    background: rgba(124, 92, 255, .1);
    border-color: rgba(124, 92, 255, .28);
    color: #5B3FD6;
}
.kicker .punkt {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .18);
    animation: pulsieren 2.4s ease-in-out infinite;
}
@keyframes pulsieren {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: .45; transform: scale(.75); }
}

.kopf-text {
    max-width: 62ch;
    font-size: 1.12rem;
    color: var(--text-2);
}
.hell .kopf-text { color: var(--tinte-2); }

.verlauf-text {
    background: var(--verlauf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.warn-text {
    background: var(--verlauf-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem 1.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 650;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .25s var(--ease),
                background .2s, border-color .2s, color .2s;
    white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-haupt {
    background: var(--verlauf);
    color: #fff;
    box-shadow: 0 12px 34px -12px rgba(124, 92, 255, .85);
}
.btn-haupt:hover { box-shadow: 0 18px 44px -12px rgba(124, 92, 255, .95); }

.btn-geist {
    border-color: var(--linie-hell);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
}
.btn-geist:hover { border-color: var(--violett-2); background: rgba(124, 92, 255, .12); }
.hell .btn-geist { border-color: #D3D9E8; background: #fff; color: var(--tinte); }
.hell .btn-geist:hover { border-color: var(--violett); }

.btn-warm {
    background: var(--verlauf-warm);
    color: #2A0A0F;
    box-shadow: 0 12px 34px -12px rgba(251, 113, 133, .8);
}

.btn-gross { padding: 1.15rem 2.2rem; font-size: 1.06rem; }
.btn-klein { padding: .6rem 1.1rem; font-size: .9rem; }

.btn-reihe {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    align-items: center;
}
.mitte .btn-reihe { justify-content: center; }

/* --------------------------------------------------------------------------
   6. Kopfzeile
   -------------------------------------------------------------------------- */
.kopf {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 1.1rem 0;
    transition: background .3s, backdrop-filter .3s, padding .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.kopf.geheftet {
    padding: .65rem 0;
    background: rgba(7, 10, 18, .82);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom-color: var(--linie);
}
.kopf .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 1.12rem;
}
.logo-mark {
    width: 38px; height: 38px;
    border-radius: 11px;
    box-shadow: 0 6px 20px -6px rgba(124, 92, 255, .9);
    flex: none;
    display: block;
}
.logo small {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-3);
    line-height: 1;
    margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: .4rem; }
/* Eigene Klasse, damit die Kundenseiten vom mobilen Klappmenü unberührt bleiben */
.nav-schlank { display: flex; align-items: center; }
.nav a {
    padding: .5rem .85rem;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 550;
    color: var(--text-2);
    transition: color .2s, background .2s;
}
.nav a:hover, .nav a.aktiv { color: var(--text); background: rgba(255, 255, 255, .06); }

.menue-knopf {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--linie-hell);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
    position: relative;
}
.menue-knopf span {
    position: absolute;
    left: 12px; right: 12px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
}
.menue-knopf span:nth-child(1) { top: 15px; }
.menue-knopf span:nth-child(2) { top: 21px; }
.menue-knopf span:nth-child(3) { top: 27px; }
.menue-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 7rem 0 3.5rem;
    overflow: hidden;
    isolation: isolate;
}

/* Aurora-Hintergrund */
.aurora { position: absolute; inset: -25%; z-index: -3; filter: blur(90px); opacity: .75; }
.aurora i {
    position: absolute;
    display: block;
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: schweben 22s ease-in-out infinite;
}
.aurora i:nth-child(1) {
    width: 52vw; height: 52vw; left: 2%; top: 4%;
    background: radial-gradient(circle, rgba(124,92,255,.95), transparent 66%);
}
.aurora i:nth-child(2) {
    width: 46vw; height: 46vw; right: 4%; top: 0%;
    background: radial-gradient(circle, rgba(34,211,238,.75), transparent 66%);
    animation-delay: -7s; animation-duration: 27s;
}
.aurora i:nth-child(3) {
    width: 40vw; height: 40vw; left: 32%; bottom: 2%;
    background: radial-gradient(circle, rgba(91,141,239,.7), transparent 66%);
    animation-delay: -14s; animation-duration: 31s;
}
@keyframes schweben {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(6%, -5%) scale(1.12); }
    66%      { transform: translate(-5%, 4%) scale(.92); }
}

/* Raster + Vignette + Körnung */
.raster {
    position: absolute; inset: 0; z-index: -2;
    background-image:
        linear-gradient(rgba(124, 92, 255, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 92, 255, .09) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 78%);
}
.vignette {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse 90% 55% at 50% 0%, transparent 30%, var(--nacht) 88%),
        linear-gradient(180deg, transparent 55%, var(--nacht) 100%);
}
.koernung {
    position: absolute; inset: 0; z-index: -1; opacity: .16; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

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

.hero-gitter {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero h1 { margin-bottom: 1.2rem; }
.hero-text {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--text-2);
    max-width: 54ch;
    margin-bottom: 2.2rem;
}

.hero-belege {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 2.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--linie);
}
.beleg { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--text-2); }
.beleg svg { flex: none; color: var(--gruen); }

.scroll-hinweis {
    position: absolute;
    bottom: 1.8rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--text-3);
    z-index: 1;
}
.scroll-hinweis .maus {
    width: 24px; height: 38px;
    border: 1.5px solid var(--linie-hell);
    border-radius: 12px;
    position: relative;
}
.scroll-hinweis .maus::after {
    content: '';
    position: absolute; left: 50%; top: 7px;
    width: 3px; height: 7px; margin-left: -1.5px;
    border-radius: 2px;
    background: var(--cyan);
    animation: rollen 1.9s ease-in-out infinite;
}
@keyframes rollen {
    0%       { opacity: 0; transform: translateY(0); }
    35%      { opacity: 1; }
    100%     { opacity: 0; transform: translateY(13px); }
}

/* --------------------------------------------------------------------------
   8. Diagnose-Karte im Hero (Kundenseite)
   -------------------------------------------------------------------------- */
.diagnose {
    background: linear-gradient(165deg, rgba(18, 26, 46, .95), rgba(12, 17, 32, .95));
    border: 1px solid var(--linie-hell);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--schatten);
    backdrop-filter: blur(10px);
    position: relative;
}
.diagnose::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(150deg, rgba(124,92,255,.6), transparent 40%, rgba(34,211,238,.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.diagnose-kopf {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem;
    border-bottom: 1px solid var(--linie);
}
.diagnose-kopf strong { font-size: .95rem; }
.diagnose-kopf span { font-size: .78rem; color: var(--text-3); display: block; }

.ampel { display: flex; gap: .35rem; }
.ampel i { width: 10px; height: 10px; border-radius: 50%; background: var(--linie-hell); display: block; }
.ampel i:nth-child(1) { background: var(--rot); }
.ampel i:nth-child(2) { background: var(--gelb); }
.ampel i:nth-child(3) { background: var(--gruen); }

.note {
    display: flex; align-items: baseline; gap: .6rem;
    margin-bottom: 1.1rem;
}
.note b {
    font-family: var(--schrift);
    font-variant-numeric: tabular-nums;
    font-size: 3.2rem; font-weight: 800; line-height: 1;
    background: var(--verlauf-warm);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.note span { color: var(--text-3); font-size: .9rem; }

.balken-liste { display: grid; gap: .95rem; }
.balken-zeile { display: grid; gap: .3rem; }
.balken-zeile .b-kopf {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: .86rem; color: var(--text-2);
}
.balken-zeile .b-kopf b { color: var(--text); font-family: var(--schrift-zahl); font-size: .9rem; }
.balken-spur {
    height: 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}
.balken-fuellung {
    height: 100%; border-radius: 999px;
    width: 0;
    transition: width 1.4s var(--ease);
}
.f-rot   { background: var(--verlauf-warm); }
.f-gelb  { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.f-gruen { background: linear-gradient(90deg, #10B981, #6EE7B7); }
.f-blau  { background: var(--verlauf); }

/* --------------------------------------------------------------------------
   9. Karten
   -------------------------------------------------------------------------- */
.karte {
    background: linear-gradient(165deg, rgba(18, 26, 46, .8), rgba(12, 17, 32, .8));
    border: 1px solid var(--linie);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
    height: 100%;
}
.karte:hover {
    transform: translateY(-4px);
    border-color: var(--linie-hell);
    box-shadow: var(--schatten-s);
}
.hell .karte {
    background: #fff;
    border-color: #E3E8F2;
    box-shadow: 0 2px 10px -4px rgba(12, 17, 32, .1);
}
.hell .karte:hover { border-color: #C9D2E6; box-shadow: 0 18px 40px -22px rgba(12, 17, 32, .35); }

.karte h3 { margin-bottom: .55rem; }
.karte p  { color: var(--text-2); font-size: .97rem; margin: 0; }
.hell .karte p { color: var(--tinte-2); }

.karten-icon {
    width: 46px; height: 46px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: rgba(124, 92, 255, .14);
    border: 1px solid rgba(124, 92, 255, .3);
    color: var(--violett-2);
    margin-bottom: 1.1rem;
}
.hell .karten-icon { background: rgba(124, 92, 255, .1); color: #5B3FD6; }
.karten-icon.cyan  { background: rgba(34,211,238,.13); border-color: rgba(34,211,238,.3); color: var(--cyan); }
.karten-icon.gruen { background: rgba(52,211,153,.13); border-color: rgba(52,211,153,.3); color: var(--gruen); }
.karten-icon.warm  { background: rgba(251,113,133,.13); border-color: rgba(251,113,133,.3); color: var(--rot); }

/* --------------------------------------------------------------------------
   10. Zahlen / Statistik
   -------------------------------------------------------------------------- */
.zahl-gitter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.zahl-karte {
    padding: 1.6rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--linie);
    background: rgba(18, 26, 46, .55);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.zahl-karte::after {
    content: '';
    position: absolute; inset: auto 0 0 0; height: 3px;
    background: var(--verlauf-warm);
    transform: scaleX(0); transform-origin: left;
    transition: transform 1.1s var(--ease) .2s;
}
.sichtbar .zahl-karte::after { transform: scaleX(1); }
.zahl-karte.gut::after { background: var(--verlauf); }

.zahl-wert {
    font-family: var(--schrift);
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.4rem, 5vw, 3.3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    background: var(--verlauf-warm);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    display: block;
    margin-bottom: .5rem;
}
.zahl-karte.gut .zahl-wert { background: var(--verlauf); -webkit-background-clip: text; background-clip: text; }
.zahl-label { font-size: .95rem; color: var(--text-2); line-height: 1.5; }
.zahl-quelle { font-size: .76rem; color: var(--text-3); margin-top: .7rem; }

.hell .zahl-karte { background: #fff; border-color: #E3E8F2; }
.hell .zahl-label { color: var(--tinte-2); }

/* --------------------------------------------------------------------------
   11. 100-Personen-Raster
   -------------------------------------------------------------------------- */
.personen {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 5px;
    max-width: 560px;
}
.personen i {
    aspect-ratio: 1;
    border-radius: 3px;
    background: rgba(255, 255, 255, .1);
    display: block;
    transition: transform .4s var(--ease), opacity .4s, background .4s;
}
.js .personen i { transform: scale(.4); opacity: 0; }
.sichtbar .personen i { transform: scale(1); opacity: 1; }
.personen i.weg  { background: var(--rot); }
.personen i.bleibt { background: var(--gruen); }

.personen-legende {
    display: flex; flex-wrap: wrap; gap: 1.4rem;
    margin-top: 1.4rem; font-size: .9rem; color: var(--text-2);
}
.personen-legende span { display: flex; align-items: center; gap: .5rem; }
.personen-legende i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.hell .personen i { background: #DDE3EF; }
.hell .personen-legende { color: var(--tinte-2); }

/* --------------------------------------------------------------------------
   12. Rechner
   -------------------------------------------------------------------------- */
.rechner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--linie-hell);
    box-shadow: var(--schatten);
}
.rechner-eingabe {
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    background: var(--nacht-2);
}
.rechner-ergebnis {
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    background: linear-gradient(155deg, #1A1026, #2A1220 60%, #1A0E1C);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rechner-ergebnis::before {
    content: '';
    position: absolute; width: 320px; height: 320px;
    right: -110px; top: -110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(251,113,133,.28), transparent 68%);
    filter: blur(20px);
}
.rechner-ergebnis > * { position: relative; }

.feld { margin-bottom: 1.5rem; }
.feld:last-child { margin-bottom: 0; }
.feld label {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: .8rem;
    font-size: .92rem; font-weight: 600; margin-bottom: .6rem; color: var(--text-2);
}
.feld label b {
    font-family: var(--schrift);
    font-variant-numeric: tabular-nums;
    color: var(--cyan-2);
    font-size: 1.02rem;
    white-space: nowrap;   /* Wert bleibt einzeilig, das Label bricht stattdessen */
    flex: none;
}

input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px; border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff;
    border: 4px solid var(--violett);
    box-shadow: 0 3px 12px rgba(124, 92, 255, .7);
    cursor: grab;
}
input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 4px solid var(--violett);
    box-shadow: 0 3px 12px rgba(124, 92, 255, .7);
    cursor: grab;
}

.ergebnis-label { font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.ergebnis-wert {
    font-family: var(--schrift);
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.8rem, 7vw, 4.4rem);
    font-weight: 800; line-height: 1; letter-spacing: -.04em;
    background: var(--verlauf-warm);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin: .5rem 0 .3rem;
}
.ergebnis-sub { color: var(--text-2); font-size: .98rem; }
.ergebnis-zeile {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.1);
    font-size: .95rem; color: var(--text-2);
}
.ergebnis-zeile b { color: var(--text); font-family: var(--schrift-zahl); }
.rechner-hinweis { font-size: .8rem; color: var(--text-3); margin-top: 1.2rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   13. Leistungsliste (Häkchen)
   -------------------------------------------------------------------------- */
.check-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.check-liste li {
    display: flex; gap: .8rem; align-items: flex-start;
    font-size: 1rem; color: var(--text-2);
}
.hell .check-liste li { color: var(--tinte-2); }
.check-liste li strong { color: var(--text); font-weight: 650; }
.hell .check-liste li strong { color: var(--tinte); }
.check-liste .haken {
    flex: none; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(52, 211, 153, .16);
    color: var(--gruen);
    display: grid; place-items: center;
    margin-top: 2px;
}
.check-liste .kreuz {
    flex: none; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(251, 113, 133, .16);
    color: var(--rot);
    display: grid; place-items: center;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   14. Preise
   -------------------------------------------------------------------------- */
.preis-gitter {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 1.5rem;
    align-items: start;
}
.preis-karte {
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border: 1px solid var(--linie);
    background: linear-gradient(165deg, rgba(18,26,46,.85), rgba(12,17,32,.85));
    position: relative;
    height: 100%;
}
.preis-karte.hervor {
    border-color: transparent;
    background:
        linear-gradient(var(--nacht-2), var(--nacht-2)) padding-box,
        var(--verlauf) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 30px 70px -35px rgba(124, 92, 255, .9);
}
.hell .preis-karte { background: #fff; border-color: #E3E8F2; }
.hell .preis-karte.hervor {
    background: linear-gradient(#fff, #fff) padding-box, var(--verlauf) border-box;
}

.preis-fahne {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    padding: .32rem 1rem; border-radius: 999px;
    background: var(--verlauf);
    color: #fff; font-size: .78rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 8px 20px -8px rgba(124, 92, 255, .9);
}

.preis-zahl {
    display: flex; align-items: baseline; gap: .5rem;
    margin: .8rem 0 .3rem;
}
.preis-zahl b {
    font-family: var(--schrift);
    font-variant-numeric: tabular-nums;
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    font-weight: 800; line-height: 1; letter-spacing: -.04em;
}
.preis-zahl span { color: var(--text-3); font-size: 1rem; }
.hell .preis-zahl span { color: var(--tinte-2); }
.preis-hinweis { color: var(--text-3); font-size: .9rem; margin-bottom: 1.6rem; }
.hell .preis-hinweis { color: var(--tinte-2); }

.preis-trenner { height: 1px; background: var(--linie); margin: 1.5rem 0; }
.hell .preis-trenner { background: #E3E8F2; }

.summe-box {
    margin-top: 1.5rem; padding: 1.2rem 1.4rem;
    border-radius: var(--radius-s);
    background: rgba(124, 92, 255, .1);
    border: 1px solid rgba(124, 92, 255, .26);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: .6rem;
}
.summe-box span { font-size: .95rem; color: var(--text-2); }
.summe-box b { font-family: var(--schrift); font-variant-numeric: tabular-nums; font-size: 1.5rem; }
.hell .summe-box span { color: var(--tinte-2); }

/* --------------------------------------------------------------------------
   15. Ablauf / Zeitstrahl
   -------------------------------------------------------------------------- */
.schritte { display: grid; gap: 0; position: relative; }
.schritt {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
    position: relative;
}
.schritt:last-child { padding-bottom: 0; }
.schritt::before {
    content: '';
    position: absolute; left: 33px; top: 60px; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--linie-hell), transparent);
}
.schritt:last-child::before { display: none; }
.schritt-nr {
    width: 68px; height: 68px; border-radius: 20px;
    display: grid; place-items: center;
    font-family: var(--schrift-zahl);
    font-size: 1.5rem; font-weight: 800;
    background: linear-gradient(165deg, rgba(124,92,255,.2), rgba(34,211,238,.1));
    border: 1px solid var(--linie-hell);
    color: var(--violett-2);
    position: relative; z-index: 1;
}
.hell .schritt-nr { background: linear-gradient(165deg, rgba(124,92,255,.12), rgba(34,211,238,.08)); border-color: #DCE2F0; color: #5B3FD6; }
.hell .schritt::before { background: linear-gradient(180deg, #DCE2F0, transparent); }
.schritt-inhalt h3 { margin-bottom: .4rem; }
.schritt-inhalt p { color: var(--text-2); margin: 0; }
.hell .schritt-inhalt p { color: var(--tinte-2); }

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .8rem; }
.faq details {
    border: 1px solid var(--linie);
    border-radius: var(--radius-s);
    background: rgba(18, 26, 46, .5);
    overflow: hidden;
    transition: border-color .25s;
}
.faq details[open] { border-color: var(--linie-hell); }
.hell .faq details { background: #fff; border-color: #E3E8F2; }
.faq summary {
    padding: 1.15rem 3rem 1.15rem 1.4rem;
    cursor: pointer;
    font-weight: 650;
    list-style: none;
    position: relative;
    font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '';
    position: absolute; right: 1.4rem; top: 50%;
    width: 10px; height: 10px;
    border-right: 2px solid var(--text-3);
    border-bottom: 2px solid var(--text-3);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-text { padding: 0 1.4rem 1.35rem; color: var(--text-2); font-size: .98rem; }
.hell .faq .faq-text { color: var(--tinte-2); }

/* --------------------------------------------------------------------------
   17. Aufruf zum Handeln
   -------------------------------------------------------------------------- */
.cta-box {
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #17133A, #0E1730 55%, #10233A);
    border: 1px solid var(--linie-hell);
}
.cta-box::before {
    content: '';
    position: absolute; inset: -50%;
    background:
        radial-gradient(circle at 25% 25%, rgba(124,92,255,.35), transparent 45%),
        radial-gradient(circle at 78% 70%, rgba(34,211,238,.28), transparent 45%);
    filter: blur(40px);
}
.cta-box > * { position: relative; }
.cta-box h2 { margin-bottom: .8rem; }
.cta-box p { color: var(--text-2); max-width: 56ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   18. Fußzeile
   -------------------------------------------------------------------------- */
.fuss {
    background: var(--nacht-2);
    border-top: 1px solid var(--linie);
    padding: 4rem 0 2rem;
    font-size: .95rem;
}
.fuss-gitter {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.fuss h4 {
    font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-3); margin-bottom: 1rem; font-weight: 700;
}
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fuss a { color: var(--text-2); transition: color .2s; }
.fuss a:hover { color: var(--text); }
.fuss p { color: var(--text-2); }
.fuss-unten {
    border-top: 1px solid var(--linie);
    padding-top: 1.6rem;
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: space-between;
    color: var(--text-3); font-size: .88rem;
}

/* --------------------------------------------------------------------------
   19. Cookie-Hinweis
   -------------------------------------------------------------------------- */
.cookie {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 200;
    max-width: 560px;
    margin-inline: auto;
    background: rgba(12, 17, 32, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--linie-hell);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 24px 70px -20px rgba(0, 0, 0, .8);
    transform: translateY(140%);
    transition: transform .5s var(--ease), opacity .4s;
    opacity: 0;
}
.cookie.zeigen { transform: translateY(0); opacity: 1; }
.cookie h4 { margin: 0 0 .5rem; font-size: 1.02rem; }
.cookie p { font-size: .9rem; color: var(--text-2); margin-bottom: 1.1rem; }
.cookie p a { color: var(--cyan-2); text-decoration: underline; text-underline-offset: 2px; }
.cookie .btn-reihe { gap: .6rem; }
.cookie .btn { flex: 1; padding: .75rem 1rem; font-size: .93rem; }

/* --------------------------------------------------------------------------
   20. Kleinteile
   -------------------------------------------------------------------------- */
.plakette {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .25rem .7rem; border-radius: 999px;
    font-size: .78rem; font-weight: 650;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--linie-hell);
    color: var(--text-2);
}
.plakette.gruen { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.35); color: var(--gruen); }
.plakette.rot   { background: rgba(251,113,133,.14); border-color: rgba(251,113,133,.35); color: var(--rot); }
.plakette.gelb  { background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.35); color: var(--gelb); }

.hinweis-band {
    position: sticky; top: 0; z-index: 150;
    background: var(--gelb); color: #26200A;
    text-align: center; padding: .55rem 1rem;
    font-size: .9rem; font-weight: 650;
}
.hinweis-band a { text-decoration: underline; }

.quellen {
    font-size: .82rem; color: var(--text-3);
    line-height: 1.6;
}
.quellen a { text-decoration: underline; text-underline-offset: 2px; }
.hell .quellen { color: #7A849C; }

.trenner-schein {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--linie-hell), transparent);
    border: 0; margin: 0;
}

.prosa { max-width: 72ch; }
.prosa h2 { margin-top: 2.8rem; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.prosa h3 { margin-top: 2rem; font-size: 1.15rem; }
.prosa h2:first-child { margin-top: 0; }
.prosa p, .prosa li { color: var(--text-2); }
.prosa ul, .prosa ol { padding-left: 1.3rem; display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.prosa a { color: var(--cyan-2); text-decoration: underline; text-underline-offset: 3px; }
.prosa strong { color: var(--text); }
.tabelle-scroll { overflow-x: auto; margin-bottom: 1.5rem; -webkit-overflow-scrolling: touch; }
.prosa table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.prosa th, .prosa td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.prosa th { color: var(--text); font-weight: 650; }
.prosa td { color: var(--text-2); }

/* --------------------------------------------------------------------------
   21. Einblend-Animation
   -------------------------------------------------------------------------- */
.js .rein {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.rein.sichtbar { opacity: 1; transform: none; }
.rein.v1 { transition-delay: .08s; }
.rein.v2 { transition-delay: .16s; }
.rein.v3 { transition-delay: .24s; }
.rein.v4 { transition-delay: .32s; }
.rein.v5 { transition-delay: .40s; }

/* --------------------------------------------------------------------------
   22. Reaktionsfähig
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .hero-gitter    { grid-template-columns: 1fr; gap: 2.5rem; }
    .preis-gitter   { grid-template-columns: 1fr; }
    .rechner        { grid-template-columns: 1fr; }
    .zahl-gitter    { grid-template-columns: repeat(2, 1fr); }
    .g-4            { grid-template-columns: repeat(2, 1fr); }
    .fuss-gitter    { grid-template-columns: 1fr 1fr; gap: 2rem; }

    .nav {
        position: fixed;
        inset: 72px .9rem auto .9rem;
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        padding: .8rem;
        border-radius: var(--radius);
        background: rgba(12, 17, 32, .97);
        backdrop-filter: blur(20px);
        border: 1px solid var(--linie-hell);
        box-shadow: var(--schatten);
        display: none;
    }
    .nav.offen { display: flex; }
    .nav a { padding: .8rem 1rem; }
    .nav .btn { margin-top: .4rem; justify-content: center; }
    .menue-knopf { display: block; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    /* Auf schmalen Geräten dürfen Beschriftungen umbrechen statt zu überlaufen */
    .btn { white-space: normal; text-align: center; }
    .g-2, .g-3 { grid-template-columns: 1fr; }
    .personen { grid-template-columns: repeat(10, 1fr); gap: 6px; }
    .schritt { grid-template-columns: 52px 1fr; gap: 1.1rem; }
    .schritt-nr { width: 52px; height: 52px; border-radius: 16px; font-size: 1.2rem; }
    .schritt::before { left: 25px; top: 46px; }
    .hero { min-height: auto; padding: 7rem 0 3.5rem; }
    .scroll-hinweis { display: none; }
    .btn-reihe .btn { width: 100%; }
    .fuss-gitter { grid-template-columns: 1fr; }
    .zahl-gitter { grid-template-columns: 1fr; }
}

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

@media print {
    .kopf, .cookie, .scroll-hinweis, .fuss { display: none; }
    body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   23. Formulare
   -------------------------------------------------------------------------- */
.form-feld { margin-bottom: 1.1rem; }
.form-feld label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .45rem;
    color: var(--text-2);
}
.hell .form-feld label { color: var(--tinte-2); }

.form-feld input,
.form-feld textarea,
.form-feld select {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--linie-hell);
    border-radius: var(--radius-s);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    font: inherit;
    font-size: .98rem;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-feld textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-feld input::placeholder,
.form-feld textarea::placeholder { color: var(--text-3); }

.form-feld input:focus,
.form-feld textarea:focus,
.form-feld select:focus {
    outline: none;
    border-color: var(--violett);
    background: rgba(124, 92, 255, .07);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, .18);
}
.form-feld select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236F7C96' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.6rem;
    cursor: pointer;
}
.form-feld option { background: var(--nacht-2); color: var(--text); }

.form-hilfe { font-size: .82rem; color: var(--text-3); margin-top: .4rem; line-height: 1.5; }

.form-check {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    font-size: .92rem;
    color: var(--text-2);
    cursor: pointer;
    line-height: 1.55;
}
.form-check input[type="checkbox"] {
    flex: none;
    width: 20px; height: 20px;
    margin-top: 2px;
    accent-color: var(--violett);
    cursor: pointer;
}
.form-check a { color: var(--cyan-2); text-decoration: underline; text-underline-offset: 2px; }
.hell .form-check { color: var(--tinte-2); }
.hell .form-feld input,
.hell .form-feld textarea,
.hell .form-feld select {
    background: #fff;
    border-color: #D6DDEC;
    color: var(--tinte);
}

@media (max-width: 980px) {
    .abschnitt .gitter[style*="1.25fr"] { grid-template-columns: 1fr !important; }
}

/* --------------------------------------------------------------------------
   24. Offener Rechenweg im Verlustrechner
   -------------------------------------------------------------------------- */
.rechenweg {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--linie);
}
.rechenweg strong {
    display: block;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: .9rem;
}
.rechenweg ol {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    display: grid;
    gap: .6rem;
    font-size: .92rem;
    color: var(--text-2);
    line-height: 1.55;
}
.rechenweg ol::marker { color: var(--text-3); }
.rechenweg ol b { color: var(--cyan-2); font-weight: 700; }
.rechenweg > p {
    font-size: .84rem;
    color: var(--text-3);
    margin: 0;
    line-height: 1.55;
}
