/* =====================================================================
   KITTELREIF – Stylesheet
   Designidee: Klinik. Kühles Klinikweiß, Kasack-Petrol als Hauptfarbe,
   tiefes Navy wie Leitsysteme im Krankenhaus, Monitor-Grün nur auf
   dunklen Flächen (EKG, Messwerte). Untertests haben Farbcodes wie
   Stationen auf einem Wegweiser.

   Aufbau:
   1. Schriften & Farben (zentral änderbar)
   2. Grundlayout
   3. Kopfzeile, Infoleiste, Fußzeile
   4. Buttons & Formulare
   5. Bausteine: Farbcode, Monitor, Bänder
   6. Startseite
   7. Antwortbogen (überall genutzt)
   8. Üben & Simulation
   9. Guide, Vergleich, Preise, Rechtliches
   ===================================================================== */

/* ---------- 1. Schriften (lokal, DSGVO-konform) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

/* ---------- Farben ---------- */
:root {
  --bg: #f4f8fa;            /* Klinikweiß, leicht kühl */
  --flaeche: #ffffff;
  --flaeche-2: #eaf2f5;     /* Ceil-Blau, sehr hell */
  --linie: #d6e3e9;
  --linie-2: #e6eef2;
  --tinte: #0c2233;         /* Navy-Tinte */
  --tinte-2: #4a6272;
  --tinte-3: #7890a0;
  --scrub: #0b7285;         /* Kasack-Petrol */
  --scrub-stark: #075866;
  --scrub-hell: #dcf0f4;
  --auf-scrub: #ffffff;
  --nacht: #0a2540;         /* Leitsystem-Navy: Hero, Monitor, Fußzeile */
  --nacht-2: #0e3052;
  --nacht-linie: rgba(160, 205, 230, .16);
  --nacht-text: #e8f3f8;
  --nacht-text-2: #9fbccc;
  --puls: #34d6a8;          /* Monitor-Grün – nur auf dunklen Flächen */
  --marker: #ffe066;
  --richtig: #138a5e;
  --richtig-hell: #ddf3e9;
  --falsch: #c8372d;
  --falsch-hell: #fbe5e2;

  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --schatten-1: 0 1px 2px rgba(12, 34, 51, .06);
  --schatten-2: 0 1px 2px rgba(12, 34, 51, .05), 0 6px 16px -4px rgba(12, 34, 51, .08);
  --schatten-3: 0 2px 4px rgba(12, 34, 51, .04), 0 24px 48px -12px rgba(10, 37, 64, .22);
  --breite: 1180px;

  --schrift: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --schrift-titel: "Inter Display", "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071620; --flaeche: #0d2230; --flaeche-2: #11303f; --linie: #1f4253; --linie-2: #183847;
    --tinte: #e4eff4; --tinte-2: #9ab3c0; --tinte-3: #6f8d9c;
    --scrub: #3cc3d6; --scrub-stark: #7cdbe8; --scrub-hell: #0f3a46; --auf-scrub: #04212a;
    --nacht: #04111b; --nacht-2: #082033;
    --richtig: #3ccf8e; --richtig-hell: #113a2a; --falsch: #ff7a6b; --falsch-hell: #3d1d19; --marker: #e8cd3a;
    --schatten-1: 0 1px 2px rgba(0,0,0,.3); --schatten-2: 0 1px 2px rgba(0,0,0,.3), 0 8px 20px -6px rgba(0,0,0,.4);
    --schatten-3: 0 24px 48px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071620; --flaeche: #0d2230; --flaeche-2: #11303f; --linie: #1f4253; --linie-2: #183847;
  --tinte: #e4eff4; --tinte-2: #9ab3c0; --tinte-3: #6f8d9c;
  --scrub: #3cc3d6; --scrub-stark: #7cdbe8; --scrub-hell: #0f3a46; --auf-scrub: #04212a;
  --nacht: #04111b; --nacht-2: #082033;
  --richtig: #3ccf8e; --richtig-hell: #113a2a; --falsch: #ff7a6b; --falsch-hell: #3d1d19; --marker: #e8cd3a;
  --schatten-1: 0 1px 2px rgba(0,0,0,.3); --schatten-2: 0 1px 2px rgba(0,0,0,.3), 0 8px 20px -6px rgba(0,0,0,.4);
  --schatten-3: 0 24px 48px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- 2. Grundlayout ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--tinte);
  font-family: var(--schrift); font-size: 16.5px; line-height: 1.6;
  font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--scrub); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--scrub-stark); }
h1, h2, h3, h4 { font-family: var(--schrift-titel); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.028em; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -.012em; }
h4 { font-family: var(--schrift); font-size: .9rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
.klein { font-size: .9rem; color: var(--tinte-2); }
.zahl { font-variant-numeric: tabular-nums; }
.huelle { max-width: var(--breite); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.abschnitt { padding-block: 96px; }
.abschnitt-kopf { max-width: 680px; margin-bottom: 48px; }
.abschnitt-kopf p, .einleitung { color: var(--tinte-2); font-size: 1.12rem; }
.versteckt { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2.5px solid var(--scrub); outline-offset: 2px; border-radius: 4px; }
mark { background: var(--marker); color: #1a1a00; padding: 0 .15em; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- 3. Kopfzeile, Infoleiste, Fußzeile ---------- */
.info-leiste { background: var(--nacht); color: var(--nacht-text-2); font-size: .84rem; }
.info-leiste .huelle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.info-leiste b { color: var(--nacht-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.info-leiste a { color: var(--nacht-text); text-decoration: none; }
.info-leiste a:hover { color: var(--puls); }
.info-punkt { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--puls); margin-right: 8px; box-shadow: 0 0 0 3px rgba(52, 214, 168, .18); vertical-align: 1px; }
@media (max-width: 640px) { .info-leiste .info-link { display: none; } }

.kopf { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--flaeche) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--schrift-titel); font-weight: 700; font-size: 1.22rem; color: var(--tinte); text-decoration: none; letter-spacing: -.025em; }
.logo:hover { color: var(--tinte); }
.logo-zeichen { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--tinte-2); text-decoration: none; padding: 8px 13px; border-radius: var(--r-s); font-size: .94rem; font-weight: 500; position: relative; }
.nav a:hover { color: var(--tinte); }
.nav a[aria-current="page"] { color: var(--tinte); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -15px; height: 2px; background: var(--scrub); border-radius: 2px; }
.nav .knopf { margin-left: 10px; color: var(--auf-scrub); padding: 8px 14px; }
.nav .knopf:hover { color: var(--auf-scrub); }
.menue-knopf { display: none; margin-left: auto; background: none; border: 1px solid var(--linie); border-radius: var(--r-s); padding: 8px 12px; color: var(--tinte); font: inherit; font-weight: 500; cursor: pointer; }
.thema-knopf { background: none; border: 1px solid transparent; color: var(--tinte-2); border-radius: var(--r-s); width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center; }
.thema-knopf:hover { border-color: var(--linie); color: var(--tinte); }
@media (max-width: 900px) {
  .menue-knopf { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 12px 20px 20px; box-shadow: var(--schatten-2); }
  .nav.offen { display: flex; }
  .nav a { padding: 12px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--flaeche-2); }
  .nav .knopf { margin: 8px 0 0; }
  .thema-knopf { width: 100%; border-color: var(--linie); margin-top: 8px; }
}

.fuss { background: var(--nacht); color: var(--nacht-text-2); font-size: .92rem; margin-top: 0; }
.fuss-raster { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-block: 64px 40px; }
.fuss .logo { color: var(--nacht-text); }
.fuss h4 { color: var(--nacht-text); margin-bottom: 14px; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fuss a { color: var(--nacht-text-2); text-decoration: none; }
.fuss a:hover { color: var(--nacht-text); }
.fuss p { max-width: 380px; margin-top: 16px; }
.fuss-unten { border-top: 1px solid var(--nacht-linie); padding-block: 20px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; }
@media (max-width: 800px) { .fuss-raster { grid-template-columns: 1fr 1fr; } .fuss-raster > :first-child { grid-column: 1 / -1; } }

/* ---------- 4. Buttons & Formulare ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .96rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 11px 20px; border-radius: var(--r-s); border: 1px solid transparent;
  background: var(--scrub); color: var(--auf-scrub);
  box-shadow: 0 1px 2px rgba(7, 88, 102, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: background .15s, box-shadow .15s, transform .1s;
}
.knopf:hover { background: var(--scrub-stark); color: var(--auf-scrub); }
.knopf:active { transform: translateY(1px); }
.knopf.zweit { background: var(--flaeche); color: var(--tinte); border-color: var(--linie); box-shadow: var(--schatten-1); }
.knopf.zweit:hover { border-color: var(--tinte-3); color: var(--tinte); }
.knopf.leise { background: transparent; color: var(--tinte-2); box-shadow: none; padding: 9px 12px; }
.knopf.leise:hover { color: var(--tinte); background: var(--flaeche-2); }
.knopf.hell { background: var(--puls); color: #03291f; box-shadow: 0 0 0 1px rgba(52, 214, 168, .3), 0 8px 24px -8px rgba(52, 214, 168, .6); }
.knopf.hell:hover { background: #5be3bd; color: #03291f; }
.knopf.umriss-hell { background: transparent; color: var(--nacht-text); border-color: rgba(232, 243, 248, .28); box-shadow: none; }
.knopf.umriss-hell:hover { border-color: var(--nacht-text); color: #fff; background: rgba(255,255,255,.04); }
.knopf.klein-k { padding: 8px 14px; font-size: .9rem; }
.knopf.gross { padding: 14px 24px; font-size: 1.02rem; }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

input[type="email"], input[type="text"], input[type="number"], select {
  font: inherit; color: var(--tinte); background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--r-s); padding: 11px 14px; min-width: 0; box-shadow: var(--schatten-1);
}
input:focus, select:focus { outline: none; border-color: var(--scrub); box-shadow: 0 0 0 3px var(--scrub-hell); }
input[type="checkbox"], input[type="range"] { accent-color: var(--scrub); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .88rem; font-weight: 500; padding: 7px 14px; border-radius: var(--r-s); border: 1px solid var(--linie); background: var(--flaeche); color: var(--tinte-2); cursor: pointer; }
.chip:hover { border-color: var(--tinte-3); color: var(--tinte); }
.chip[aria-pressed="true"] { background: var(--scrub-hell); color: var(--scrub-stark); border-color: var(--scrub); }
.chip:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 5. Bausteine ---------- */
/* Farbcode eines Untertests – wie die Stationsschilder im Krankenhaus */
.code { --c-text: color-mix(in srgb, var(--c, var(--scrub)) 78%, var(--tinte)); display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 7px; border-radius: 5px; background: color-mix(in srgb, var(--c, var(--scrub)) 13%, var(--flaeche)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--scrub)) 22%, transparent); color: var(--c-text); font-family: var(--schrift-titel); font-size: .74rem; font-weight: 700; letter-spacing: .04em; flex: none; }
.code.gross { min-width: 52px; height: 36px; font-size: .9rem; border-radius: 7px; }

/* Dunkle Flächen im Monitor-Look */
.nacht { background: var(--nacht); color: var(--nacht-text); position: relative; overflow: hidden; }
.nacht h1, .nacht h2, .nacht h3 { color: #fff; }
.nacht .klein, .nacht .einleitung { color: var(--nacht-text-2); }
.raster-hg::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--nacht-linie) 1px, transparent 1px), linear-gradient(90deg, var(--nacht-linie) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%); opacity: .55; }
.monitor { background: linear-gradient(180deg, var(--nacht-2), var(--nacht)); color: var(--nacht-text); border: 1px solid var(--nacht-linie); border-radius: var(--r-l); box-shadow: var(--schatten-3); }
.vital-label { font-size: .78rem; color: var(--nacht-text-2); display: flex; justify-content: space-between; gap: 8px; }
.vital-wert { font-family: var(--schrift-titel); font-weight: 300; font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; color: var(--puls); font-variant-numeric: tabular-nums; }
.vital-wert small { font-size: .9rem; font-weight: 600; color: var(--nacht-text-2); margin-left: 4px; letter-spacing: 0; }

/* Helles Band über volle Breite für Seitenköpfe */
.seitenkopf { position: relative; padding-block: 56px 40px; margin-bottom: 40px; background: var(--flaeche); box-shadow: 0 0 0 100vmax var(--flaeche), 0 1px 0 100vmax var(--linie); clip-path: inset(0 -100vmax -1px); }
.seitenkopf h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.seitenkopf p { color: var(--tinte-2); font-size: 1.1rem; max-width: 62ch; margin-bottom: 0; }
.seitenkopf .knopfreihe { margin-top: 24px; }
.ort { font-size: .86rem; color: var(--tinte-3); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.ort a { color: var(--tinte-2); text-decoration: none; }

/* ---------- 6. Startseite ---------- */
.held { position: relative; overflow: hidden; padding-block: 72px 88px; background: linear-gradient(180deg, var(--flaeche) 0%, var(--bg) 100%); border-bottom: 1px solid var(--linie); }
.held::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--linie-2) 1px, transparent 1px), linear-gradient(90deg, var(--linie-2) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(ellipse at 75% 30%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 75% 30%, #000 0%, transparent 70%); }
.held .huelle { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.held-text { position: relative; z-index: 1; }
.held h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 13ch; margin-bottom: 22px; }
.held-text > p { font-size: 1.16rem; color: var(--tinte-2); max-width: 44ch; margin-bottom: 30px; }
.status-chip { display: inline-flex; align-items: center; gap: 2px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--scrub-hell); color: var(--scrub-stark); font-size: .85rem; font-weight: 500; margin-bottom: 22px; }
.status-chip .info-punkt { background: var(--scrub); box-shadow: 0 0 0 3px color-mix(in srgb, var(--scrub) 20%, transparent); }
.vitals { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 44px; border-top: 1px solid var(--linie); padding-top: 22px; }
.vitals > div { padding-right: 32px; margin-right: 32px; border-right: 1px solid var(--linie); }
.vitals > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.vitals .vital-label { color: var(--tinte-3); }
.vitals .vital-wert { font-size: 2rem; color: var(--scrub); }
.vitals .vital-wert small { color: var(--tinte-3); }
@media (max-width: 960px) { .held .huelle { grid-template-columns: 1fr; gap: 40px; } .held { padding-block: 48px 64px; } }
@media (max-width: 520px) { .vitals > div { padding-right: 16px; margin-right: 16px; } .vitals .vital-wert { font-size: 1.6rem; } }

.ekg { position: absolute; left: 0; right: 0; bottom: 14px; height: 64px; pointer-events: none; opacity: .28; }
.ekg path { fill: none; stroke: var(--scrub); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: ekg-zeichnen 3.2s ease-out .3s forwards; }
@keyframes ekg-zeichnen { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ekg path { stroke-dashoffset: 0; } }

.held-stapel { position: relative; z-index: 1; padding: 100px 0 0 0; }
.held-stapel .bogen { box-shadow: var(--schatten-3); }
.held-monitor { position: absolute; top: 0; right: -12px; width: 200px; padding: 13px 15px; z-index: 2; }
.held-monitor .vital-wert { font-size: 2.2rem; }
.held-monitor svg { margin-top: 6px; }
@media (max-width: 1100px) { .held-monitor { right: 0; } }
@media (max-width: 560px) { .held-monitor { display: none; } .held-stapel { padding-top: 0; } }

/* Ablauf des Testtags als Messstreifen */
.streifen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-l); padding: 28px 28px 20px; box-shadow: var(--schatten-2); }
.testtag { display: flex; gap: 3px; height: 64px; margin: 0; }
.testtag-block { border-radius: 4px; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 10px; color: color-mix(in srgb, var(--c) 80%, var(--tinte)); font-size: .78rem; font-weight: 700; min-width: 0; overflow: hidden; white-space: nowrap; background: color-mix(in srgb, var(--c) 12%, var(--flaeche)); border-top: 3px solid var(--c); position: relative; }
.testtag-block span { font-weight: 500; color: var(--tinte-2); font-size: .72rem; }
.skala { display: flex; justify-content: space-between; margin-top: 10px; font-size: .74rem; color: var(--tinte-3); font-variant-numeric: tabular-nums; }

.wegweiser { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 500px), 1fr)); gap: 0 40px; }
.ut-zeile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--linie); text-decoration: none; color: inherit; }
.ut-zeile:hover .ut-name { color: var(--scrub); }
.ut-zeile:hover .pfeil { transform: translateX(3px); color: var(--scrub); }
.ut-name { font-weight: 600; display: block; }
.ut-info { color: var(--tinte-2); font-size: .88rem; }
.ut-meta { color: var(--tinte-3); font-size: .84rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; display: flex; align-items: center; gap: 12px; }
.pfeil { transition: transform .15s; color: var(--tinte-3); }
.neu-tag { font-size: .7rem; font-weight: 600; color: var(--scrub-stark); background: var(--scrub-hell); padding: 2px 7px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }

/* Funktions-Zeilen mit Produkt-Ansichten */
.funktion { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center; padding-block: 48px; }
.funktion + .funktion { border-top: 1px solid var(--linie-2); }
.funktion.gedreht > :first-child { order: 2; }
.funktion h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.025em; }
.funktion p { color: var(--tinte-2); font-size: 1.06rem; }
.haken { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.haken li { padding-left: 30px; position: relative; }
.haken li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--scrub-hell); }
.haken li::after { content: ""; position: absolute; left: 5px; top: .48em; width: 8px; height: 4.5px; border-left: 2px solid var(--scrub); border-bottom: 2px solid var(--scrub); transform: rotate(-45deg); }
@media (max-width: 900px) { .funktion { grid-template-columns: 1fr; gap: 36px; } .funktion.gedreht > :first-child { order: 0; } }

.ansicht { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 20px; padding: 28px; position: relative; }
.ansicht-fenster { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-l); box-shadow: var(--schatten-3); overflow: hidden; }
.fenster-leiste { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--linie-2); background: var(--flaeche); font-size: .78rem; color: var(--tinte-3); }
.fenster-leiste i { width: 9px; height: 9px; border-radius: 50%; background: var(--linie); display: inline-block; }
.fenster-leiste span { margin-left: 10px; }
.fenster-inhalt { padding: 22px; display: grid; gap: 10px; }

.warteliste-karte { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; background: linear-gradient(135deg, #0b6676 0%, #084e5d 100%); color: #e6f4f7; border-radius: 20px; padding: 52px; box-shadow: var(--schatten-3); }
.warteliste-karte h2 { color: #fff; }
.warteliste-karte .einleitung, .warteliste-karte .klein { color: #b8dbe2; }
.warteliste-karte a { color: #fff; }
.warteliste-karte .form-meldung { color: #fff; }
.warteliste-karte input[type="email"] { background: #fff; color: #0c2233; border-color: transparent; }
.warteliste-karte .knopf { background: var(--nacht); color: #fff; }
.warteliste-karte .knopf:hover { background: #051a2e; }
.warteliste-karte::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.02); pointer-events: none; }
@media (max-width: 860px) { .warteliste-karte { grid-template-columns: 1fr; padding: 28px; gap: 24px; } }
.warteliste { display: flex; gap: 10px; flex-wrap: wrap; }
.warteliste input { flex: 1 1 240px; }
.form-meldung { margin-top: 10px; font-weight: 500; }

.zweispaltig { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .zweispaltig { grid-template-columns: 1fr; gap: 32px; } }
.tor { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 20px; border: 1px solid var(--linie); background: var(--flaeche); text-decoration: none; color: inherit; box-shadow: var(--schatten-1); transition: box-shadow .2s, border-color .2s; }
.tor:hover { box-shadow: var(--schatten-2); border-color: var(--tinte-3); color: inherit; }
.tor h3 { font-size: 1.4rem; font-weight: 700; margin: 8px 0 0; }
.tor p { color: var(--tinte-2); margin: 0; }
.tor .mehr { color: var(--scrub); font-weight: 600; margin-top: auto; padding-top: 12px; }
.tor-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--scrub-hell); color: var(--scrub); display: grid; place-items: center; }

.faq-raster { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
@media (max-width: 860px) { .faq-raster { grid-template-columns: 1fr; gap: 16px; } }
details.faq { border-bottom: 1px solid var(--linie); padding: 18px 0; }
details.faq:first-child { border-top: 1px solid var(--linie); }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--tinte-3); border-bottom: 2px solid var(--tinte-3); transform: rotate(45deg); flex: none; margin-top: 4px; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: 9px; }
details.faq p { margin: 12px 0 0; color: var(--tinte-2); max-width: 68ch; }

.monitor-band { padding-block: 88px; }
.monitor-band .huelle { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.monitor-band .einleitung { margin-bottom: 28px; }
.messwerte { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--nacht-linie); border: 1px solid var(--nacht-linie); border-radius: var(--r-l); overflow: hidden; }
.messwerte > div { background: var(--nacht-2); padding: 22px 24px; display: grid; gap: 10px; }
.messwerte .breit { grid-column: 1 / -1; }
@media (max-width: 860px) { .monitor-band .huelle { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- 7. Antwortbogen ---------- */
.bogen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-l); box-shadow: var(--schatten-2); padding: 28px; position: relative; color: var(--tinte); }
.bogen-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--linie-2); font-size: .84rem; color: var(--tinte-3); flex-wrap: wrap; }
.bogen-tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--tinte); font-size: .88rem; }
.stufe { display: inline-flex; gap: 3px; vertical-align: 1px; margin-left: 4px; }
.stufe i { width: 6px; height: 6px; border-radius: 1px; background: var(--linie); display: inline-block; }
.stufe i.an { background: var(--tinte-2); }
.frage { font-size: 1.06rem; font-weight: 500; margin-bottom: 22px; white-space: pre-line; line-height: 1.62; }
.kontext { background: var(--flaeche-2); border: 1px solid var(--linie-2); border-radius: var(--r-m); padding: 20px 22px; margin-bottom: 22px; font-size: .97rem; max-height: 46vh; overflow: auto; }
.kontext h4 { font-size: 1rem; margin-bottom: 10px; }
.optionen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.option {
  width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: center; text-align: left;
  font: inherit; color: var(--tinte); background: var(--flaeche); cursor: pointer;
  border: 1px solid var(--linie); border-radius: var(--r-m); padding: 11px 14px;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.option:hover:not(:disabled) { border-color: var(--scrub); box-shadow: 0 0 0 3px var(--scrub-hell); }
.option-blase { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--tinte-3); display: grid; place-items: center; font-weight: 600; font-size: .86rem; color: var(--tinte-2); transition: all .12s; }
.option.gewaehlt { border-color: var(--scrub); background: var(--scrub-hell); }
.option.gewaehlt .option-blase { background: var(--scrub); border-color: var(--scrub); color: var(--auf-scrub); }
.option.richtig { border-color: var(--richtig); background: var(--richtig-hell); }
.option.richtig .option-blase { background: var(--richtig); border-color: var(--richtig); color: #fff; }
.option.falsch { border-color: var(--falsch); background: var(--falsch-hell); }
.option.falsch .option-blase { background: var(--falsch); border-color: var(--falsch); color: #fff; }
.option:disabled { cursor: default; }
.erklaerung { margin-top: 18px; padding: 16px 18px 16px 20px; border-radius: var(--r-m); background: var(--flaeche-2); border: 1px solid var(--linie-2); white-space: pre-line; position: relative; font-size: .97rem; }
.erklaerung::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--richtig); }
.erklaerung.ist-falsch::before { background: var(--falsch); }
.erklaerung strong:first-child { display: block; margin-bottom: 4px; }
.bogen-fuss { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.daten-tabelle { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 2px 0 18px; }
.daten-tabelle th, .daten-tabelle td { border-bottom: 1px solid var(--linie-2); padding: 9px 12px; text-align: left; }
.daten-tabelle th { font-weight: 600; color: var(--tinte-2); font-size: .84rem; background: var(--flaeche-2); }
.daten-tabelle td.n, .daten-tabelle th.n { text-align: right; font-variant-numeric: tabular-nums; }
.diagramm { margin: 2px 0 18px; background: var(--flaeche-2); border: 1px solid var(--linie-2); border-radius: var(--r-m); padding: 16px; }
.diagramm svg text { fill: var(--tinte-2); font-family: var(--schrift); }

/* ---------- 8. Üben & Simulation ---------- */
.uebersicht { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.ut-karte { display: flex; flex-direction: column; gap: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-l); padding: 22px; box-shadow: var(--schatten-1); transition: box-shadow .2s, border-color .2s, transform .2s; }
.ut-karte:hover { box-shadow: var(--schatten-2); border-color: var(--tinte-3); }
.ut-karte-kopf { display: flex; gap: 14px; align-items: flex-start; }
.ut-karte h3 { margin: 2px 0 0; font-size: 1.05rem; }
.fortschritt { height: 6px; border-radius: 99px; background: var(--flaeche-2); overflow: hidden; }
.fortschritt span { display: block; height: 100%; background: var(--c, var(--scrub)); border-radius: 99px; }
.statistik { display: flex; gap: 18px; font-size: .86rem; color: var(--tinte-2); flex-wrap: wrap; }
.statistik b { color: var(--tinte); font-variant-numeric: tabular-nums; font-weight: 600; }

.lernleiste { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin: 0 0 24px; padding: 16px 20px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-l); box-shadow: var(--schatten-1); }
.uebung-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.seitenleiste { position: sticky; top: 92px; display: grid; gap: 14px; }
.kasten { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-l); padding: 18px; box-shadow: var(--schatten-1); }
.kasten h4 { margin-bottom: 10px; }
.kasten.monitor { background: linear-gradient(180deg, var(--nacht-2), var(--nacht)); border-color: var(--nacht-linie); color: var(--nacht-text); }
.kasten.monitor h4 { color: var(--nacht-text-2); font-weight: 500; font-size: .82rem; }
.kasten.monitor .klein { color: var(--nacht-text-2); }
.navi-raster { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.navi-raster button { font: inherit; font-size: .8rem; font-weight: 600; aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--tinte-2); cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; }
.navi-raster button:hover { border-color: var(--tinte-3); }
.navi-raster button.aktuell { border-color: var(--scrub); box-shadow: 0 0 0 2px var(--scrub-hell); color: var(--tinte); }
.navi-raster button.beantwortet { background: var(--scrub-hell); border-color: transparent; color: var(--scrub-stark); }
.navi-raster button.r { background: var(--richtig-hell); border-color: transparent; color: var(--richtig); }
.navi-raster button.f { background: var(--falsch-hell); border-color: transparent; color: var(--falsch); }
.navi-raster button.markiert { box-shadow: inset 0 -3px 0 var(--marker); }
@media (max-width: 920px) { .uebung-layout { grid-template-columns: 1fr; } .seitenleiste { position: static; order: -1; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

.timer { font-family: var(--schrift-titel); font-weight: 300; font-size: 2.4rem; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kasten.monitor .timer, .monitor .timer { color: var(--puls); }
.timer.knapp, .kasten.monitor .timer.knapp { color: #ff8a7a; }
.zeitbalken { height: 3px; background: rgba(160, 205, 230, .16); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.zeitbalken span { display: block; height: 100%; background: var(--puls); transition: width 1s linear; box-shadow: 0 0 8px var(--puls); }
.stern { background: none; border: 1px solid transparent; border-radius: var(--r-s); cursor: pointer; font-size: 1.15rem; color: var(--tinte-3); padding: 5px 9px; line-height: 1; }
.stern:hover { border-color: var(--linie); }
.stern[aria-pressed="true"] { color: #d89a00; }

.ergebnis-kopf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; padding: 36px; }
.ring { width: 180px; height: 180px; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring-wert { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-wert strong { font-family: var(--schrift-titel); font-weight: 300; font-size: 3.2rem; line-height: 1; color: var(--puls); letter-spacing: -.03em; }
.ring-wert span { font-size: .78rem; color: var(--nacht-text-2); margin-top: 4px; }
.ergebnis-kopf h2 { color: #fff; }
.ergebnis-kopf .klein { color: var(--nacht-text-2); }
.kennzahlen { display: flex; flex-wrap: wrap; gap: 0; margin-top: 24px; border-top: 1px solid var(--nacht-linie); padding-top: 20px; }
.kennzahl { padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--nacht-linie); }
.kennzahl:last-child { border: 0; }
.kennzahl strong { display: block; font-size: 1.7rem; font-family: var(--schrift-titel); font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.kennzahl span { color: var(--nacht-text-2); font-size: .84rem; }
.balken-zeile { display: grid; grid-template-columns: auto 240px minmax(0, 1fr) 56px; gap: 14px; align-items: center; padding: 12px 0; font-size: .94rem; border-bottom: 1px solid var(--linie-2); }
.balken-zeile .fortschritt { height: 8px; }
@media (max-width: 680px) { .ergebnis-kopf { grid-template-columns: 1fr; padding: 24px; } .balken-zeile { grid-template-columns: auto minmax(0, 1fr) 48px; } .balken-zeile .fortschritt { grid-column: 1 / -1; grid-row: 2; } .kennzahl { padding-right: 16px; margin-right: 16px; } }

.hinweis { border-radius: var(--r-m); padding: 16px 20px; background: var(--flaeche-2); border: 1px solid var(--linie); font-size: .94rem; color: var(--tinte-2); }
.hinweis strong { color: var(--tinte); }
.paywall { text-align: center; padding: 48px 28px; }
.paywall h3 { font-size: 1.4rem; }
.fakten-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.fakt { background: var(--flaeche); border: 1px solid var(--linie); border-left: 3px solid var(--c, var(--scrub)); border-radius: var(--r-m); padding: 14px 16px; font-size: .94rem; box-shadow: var(--schatten-1); }
.fakt b { display: block; font-size: 1.02rem; margin-bottom: 4px; }

/* ---------- 9. Guide, Vergleich, Preise ---------- */
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.inhalt-nav { position: sticky; top: 96px; display: grid; gap: 2px; font-size: .92rem; border-left: 1px solid var(--linie); }
.inhalt-nav a { color: var(--tinte-2); text-decoration: none; padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; }
.inhalt-nav a:hover { color: var(--tinte); border-left-color: var(--scrub); }
.guide-abschnitt { padding: 4px 0 56px; border-bottom: 1px solid var(--linie); margin-bottom: 48px; scroll-margin-top: 96px; }
.guide-abschnitt > p, .guide-abschnitt li { max-width: 70ch; }
.guide-abschnitt h2 { display: flex; gap: 14px; align-items: center; }
.guide-abschnitt h3 { margin-top: 28px; }
.guide-abschnitt ol, .guide-abschnitt ul { padding-left: 1.2em; }
.guide-abschnitt li { margin-bottom: .45em; }
.guide-abschnitt li::marker { color: var(--tinte-3); }
.tempo { display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .88rem; background: var(--flaeche); border: 1px solid var(--linie); padding: 7px 14px; border-radius: var(--r-s); margin-bottom: 18px; color: var(--tinte-2); }
.tempo b { color: var(--tinte); font-weight: 600; }
.werkzeug { margin-top: 28px; padding: 24px; }
.werkzeug > h3:first-child { margin-top: 0; }
@media (max-width: 920px) { .guide-layout { grid-template-columns: 1fr; } .inhalt-nav { position: static; display: flex; flex-wrap: wrap; border: 0; gap: 6px; } .inhalt-nav a { border: 1px solid var(--linie); border-radius: var(--r-s); margin: 0; } }

.sprint-aufgabe { font-family: var(--schrift-titel); font-size: 2.2rem; font-weight: 600; margin: 14px 0; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sprint-eingabe { display: flex; gap: 10px; flex-wrap: wrap; }
.sprint-eingabe input { width: 160px; font-size: 1.2rem; }

.vergleich-tabelle { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--flaeche); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--linie); box-shadow: var(--schatten-1); }
.vergleich-tabelle th, .vergleich-tabelle td { padding: 13px 18px; border-bottom: 1px solid var(--linie-2); text-align: left; vertical-align: top; }
.vergleich-tabelle tbody tr:last-child td { border-bottom: 0; }
.vergleich-tabelle thead th { background: var(--flaeche-2); font-size: .88rem; color: var(--tinte-2); font-weight: 600; }
.vergleich-tabelle td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.vergleich-tabelle tr.gruppe th { background: transparent; color: var(--tinte); font-size: .9rem; font-weight: 600; padding-top: 22px; }
.weg { color: var(--tinte-3); text-decoration: line-through; }
.tabelle-scroll { overflow-x: auto; }
.zeitvergleich { display: grid; gap: 14px; }
.zeitvergleich-zeile { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; align-items: center; font-weight: 600; font-size: .95rem; }

.preis-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: stretch; max-width: 880px; }
.preis-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--schatten-1); }
.preis-karte.hervor { border: 1.5px solid var(--scrub); box-shadow: var(--schatten-3); }
.preis { font-family: var(--schrift-titel); font-size: 2.8rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.preis-karte ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; flex: 1; }
.preis-karte li { padding-left: 28px; position: relative; }
.preis-karte li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--scrub); border-bottom: 2px solid var(--scrub); transform: rotate(-45deg); }

.recht { max-width: 760px; padding-bottom: 64px; }
.recht h2 { font-size: 1.3rem; margin-top: 1.8em; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--nacht); color: var(--nacht-text); padding: 12px 20px; border-radius: var(--r-m); font-weight: 500; z-index: 100; box-shadow: var(--schatten-3); }
.dialog-hintergrund { position: fixed; inset: 0; background: rgba(4, 17, 27, .5); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 200; padding: 16px; }
.dialog { background: var(--flaeche); color: var(--tinte); border-radius: var(--r-l); padding: 28px; max-width: 440px; box-shadow: var(--schatten-3); border: 1px solid var(--linie); }

main.huelle { padding-bottom: 96px; }
