/* =====================================================================
   Change-Reifegrad-Radar · NxtLvlOrg — app.css
   Ein Stylesheet fuer alle Seiten der App. Kein Inline-CSS in Templates.
   Design-Tokens aus _konzept/00-integrationsfakten.md (verbindlich).
   ===================================================================== */

/* ---------- Fonts (selbst gehostet, variabel) ---------- */
@font-face{font-family:'Manrope';font-style:normal;font-display:swap;font-weight:200 800;src:url('../../fonts/manrope-latin-wght-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-display:swap;font-weight:100 900;src:url('../../fonts/inter-latin-wght-normal.woff2') format('woff2')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-display:swap;font-weight:300 700;src:url('../../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2')}

/* ---------- Design-Tokens ---------- */
:root{
  --surface:#0b141c;
  --surface-tief:#060f17;
  --surface-karte:#0f1a24;
  --surface-hoch:#16222e;
  --surface-container:#182029;
  --surface-container-high:#222b33;
  --ton-leer:#2d363e;
  --on-surface:#dae3ef;
  --on-surface-variant:#cfc2d3;
  --text-gedimmt:#bec7d3;
  --primary:#e1b6ff;
  --primary-container:#c988fa;
  --on-primary:#4c007b;
  --secondary:#ffb693;
  --outline:#988d9c;
  --outline-variant:#4c4451;
  --radius:2px;
  --ease:cubic-bezier(0.16,1,0.3,1);
  --font-headline:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-body:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-label:'Space Grotesk','Inter',system-ui,sans-serif;
}

/* ---------- Basis ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  background:var(--surface);
  color:var(--on-surface);
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.65;
  min-height:100vh;
}
img,svg{max-width:100%;height:auto}
a{color:var(--primary);text-decoration:none;transition:color .3s var(--ease)}
a:hover{color:var(--primary-container)}
:focus{outline:none}
:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:var(--radius)}
::selection{background:var(--primary-container);color:var(--on-primary)}

h1,h2,h3{font-family:var(--font-headline);font-weight:700;line-height:1.18;color:#ffffff}
h1{font-size:clamp(1.9rem,5.4vw,3.1rem);letter-spacing:-0.02em}
h2{font-size:clamp(1.45rem,3.6vw,2.1rem);letter-spacing:-0.015em}
h3{font-size:clamp(1.05rem,2.4vw,1.3rem)}
.highlight{color:var(--primary-container)}

.eyebrow{
  font-family:var(--font-label);
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--text-gedimmt);
}

.container{width:100%;max-width:1140px;margin:0 auto;padding:0 1.25rem}
.container-schmal{width:100%;max-width:760px;margin:0 auto;padding:0 1.25rem}

.versteckt{display:none !important}

/* Screenreader-only */
.sr-only{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;
}

/* ---------- Neural-Canvas-Hintergrund (nur Startseite) ---------- */
#canvas-container{
  position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;
}
#neural-canvas{display:block;width:100%;height:100%;opacity:.55}
.seiteninhalt{position:relative;z-index:1}

/* ---------- Kopf / Wortmarke ---------- */
.app-kopf{padding:1.4rem 0 .6rem}
.app-kopf .container{display:flex;align-items:center;justify-content:space-between}
.wortmarke{
  font-family:var(--font-label);
  font-weight:700;
  letter-spacing:.24em;
  font-size:.92rem;
  color:#ffffff;
}
.wortmarke:hover{color:var(--primary)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  font-family:var(--font-headline);
  font-weight:700;
  font-size:1rem;
  padding:.85rem 1.9rem;
  border:none;
  border-radius:var(--radius);
  cursor:pointer;
  transition:transform .35s var(--ease),background-color .35s var(--ease),opacity .35s var(--ease);
  text-align:center;
}
.btn-primaer{background:var(--primary-container);color:var(--on-primary)}
.btn-primaer:hover{background:var(--primary);color:var(--on-primary);transform:translateY(-2px)}
.btn-primaer:disabled{opacity:.45;cursor:not-allowed;transform:none}
.btn-sekundaer{background:var(--surface-container-high);color:var(--on-surface)}
.btn-sekundaer:hover{background:var(--ton-leer);color:#ffffff}
.btn-text{
  background:none;border:none;cursor:pointer;
  font-family:var(--font-body);font-size:.95rem;
  color:var(--text-gedimmt);padding:.5rem .25rem;
  transition:color .3s var(--ease);
}
.btn-text:hover{color:var(--primary)}

/* ---------- Hero (Startseite) ---------- */
.hero{padding:clamp(3rem,10vh,7rem) 0 3rem;text-align:left}
.hero h1{margin-bottom:1.2rem;max-width:17ch}
.hero .hero-text{max-width:56ch;color:var(--on-surface);font-size:1.08rem;margin-bottom:1.6rem}
.hero .aufwand{
  font-family:var(--font-label);
  font-size:.85rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--text-gedimmt);margin-bottom:2rem;
}
.hero .ehrlichkeit{
  max-width:56ch;color:var(--on-surface-variant);
  font-size:.95rem;margin-top:1.4rem;
}
/* Zwei Zusagen vor dem Start: Fragenzahl und „keine persoenlichen Daten". */
.hero .zusagen{
  max-width:56ch;color:var(--on-surface-variant);
  font-size:.95rem;margin-bottom:2rem;
  padding-left:.9rem;
  border-left:3px solid var(--secondary);
}

/* ---------- Fortschritt ---------- */
.fortschritt{
  position:sticky;top:var(--nav-hoehe,0px);z-index:20;
  background:var(--surface-tief);
  padding:.85rem 0 .7rem;
}
.fortschritt-balken{display:flex;gap:6px;margin-bottom:.5rem}
.fortschritt-segment{
  flex:1;height:6px;border-radius:3px;
  background:var(--ton-leer);
  transition:background-color .45s var(--ease);
}
.fortschritt-segment.ist-voll{background:var(--primary-container)}
.fortschritt-segment.ist-aktiv{background:var(--primary);animation:segmentPuls 2.2s ease-in-out infinite}
@keyframes segmentPuls{0%,100%{opacity:1}50%{opacity:.55}}
.fortschritt-text{
  font-family:var(--font-label);
  font-size:.78rem;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--text-gedimmt);
}

/* ---------- Willkommen-zurueck-Banner ---------- */
.wiederkehr{
  background:var(--surface-container);
  border-radius:var(--radius);
  padding:1.1rem 1.3rem;
  margin:1.4rem 0;
}
.wiederkehr p{margin-bottom:.8rem}
.wiederkehr strong{color:#ffffff}
.wiederkehr .aktionen{display:flex;gap:.9rem;flex-wrap:wrap;align-items:center}

/* ---------- Fragenstrecke ---------- */
.fragen-bereich{padding:1.5rem 0 4rem}
.screen-kopf{margin:1.6rem 0 1.4rem}
.screen-kopf .eyebrow{display:block;margin-bottom:.5rem}

.frage-karte{
  background:var(--surface-karte);
  border-radius:var(--radius);
  padding:1.35rem 1.35rem 1.5rem;
  margin-bottom:1rem;
  transition:background-color .4s var(--ease);
}
.frage-karte.ist-offen-markiert{background:var(--surface-hoch)}
.frage-karte fieldset{border:none}
.frage-karte legend{
  font-size:1.02rem;font-weight:500;color:var(--on-surface);
  line-height:1.5;margin-bottom:1rem;padding:0;
}
.frage-einfach{
  font-size:.88rem;color:var(--on-surface-variant);
  margin:-.65rem 0 1rem;
}

/* Klartext-Umschalter (Dok 18): einfach-Variante wird Hauptfrage,
   die Formalfrage rueckt als Praezisierung darunter. */
.klartext-schalter{display:inline-block;margin:0 0 .85rem}
.klartext-schalter[aria-pressed="true"]::before{content:"✓ "}
#screen-container.klartext-modus .frage-karte legend{
  font-size:.85rem;font-weight:400;color:var(--on-surface-variant);
  margin-bottom:.35rem;
}
#screen-container.klartext-modus .frage-einfach{
  font-size:1.05rem;font-weight:500;color:var(--on-surface);
  margin:0 0 1rem;
}

/* Stufenleiste: 6 gleichwertige Segmente als native Radios */
.skala{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.skala input[type="radio"]{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);
}
.skala label{
  display:flex;align-items:center;justify-content:center;
  min-height:52px;
  background:var(--surface-container);
  border-radius:var(--radius);
  font-family:var(--font-label);
  font-weight:600;font-size:1.05rem;
  color:var(--on-surface-variant);
  cursor:pointer;
  transition:background-color .3s var(--ease),color .3s var(--ease),transform .3s var(--ease);
}
.skala label:hover{background:var(--surface-container-high);color:#ffffff}
.skala input[type="radio"]:checked + label{
  background:var(--primary-container);
  color:var(--on-primary);
  transform:translateY(-1px);
}
.skala input[type="radio"]:focus-visible + label{
  outline:2px solid var(--primary);outline-offset:2px;
}
.skala-label-anzeige{
  min-height:1.5em;
  margin-top:.7rem;
  font-size:.9rem;
  color:var(--text-gedimmt);
}
.skala-label-anzeige.ist-gewaehlt{color:var(--primary)}

.frage-hinweis{
  display:none;
  margin-top:.7rem;font-size:.9rem;color:var(--secondary);
}
.frage-karte.ist-offen-markiert .frage-hinweis{display:block}

/* Legende */
.legende{margin:1.2rem 0}
.legende summary{
  cursor:pointer;color:var(--text-gedimmt);font-size:.92rem;
  list-style:none;display:inline-block;
  transition:color .3s var(--ease);
}
.legende summary::-webkit-details-marker{display:none}
.legende summary:hover{color:var(--primary)}
.legende[open] summary{color:var(--primary)}
.legende ol{
  margin:.9rem 0 0 0;padding:1rem 1.2rem;
  background:var(--surface-karte);border-radius:var(--radius);
  list-style:none;counter-reset:stufe -1;
}
.legende li{
  counter-increment:stufe;
  padding:.3rem 0;font-size:.92rem;color:var(--on-surface-variant);
}
.legende li::before{
  content:counter(stufe);
  font-family:var(--font-label);font-weight:700;
  color:var(--primary);margin-right:.7rem;
}

/* Navigation zwischen Kategorien */
.screen-navigation{
  display:flex;justify-content:space-between;align-items:center;
  gap:1rem;margin-top:1.8rem;flex-wrap:wrap;
}

/* Zwischenmotivation */
.motivation-band{
  background:rgba(24,32,41,.55);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  border-radius:var(--radius);
  padding:1.2rem 1.4rem;
  margin:0 0 1.4rem;
}
.motivation-band strong{color:#ffffff;display:block;margin-bottom:.25rem}
.motivation-band p{color:var(--on-surface-variant);font-size:.95rem}

/* ---------- Berechnung ---------- */
.berechnung{
  min-height:40vh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:1.2rem;
  padding:4rem 0;text-align:center;
}
.puls-punkt{
  width:18px;height:18px;border-radius:50%;
  background:var(--primary-container);
  animation:pulsieren 1.1s ease-in-out infinite;
}
@keyframes pulsieren{
  0%,100%{transform:scale(1);opacity:1}
  50%{transform:scale(1.55);opacity:.45}
}
.berechnung p{color:var(--on-surface-variant)}

/* ---------- Meldungsbereich der Startseite (Server-Fehlercodes) ---------- */
.meldung-bereich{padding:1.4rem 0 0}

/* ---------- Optionales E-Mail-Angebot auf der Ergebnisseite ---------- */
.mail-sektion{padding-top:0}
.mail-karte{
  max-width:620px;margin:0 auto;
  background:rgba(15,26,36,.62);
  backdrop-filter:blur(28px);
  -webkit-backdrop-filter:blur(28px);
  border-radius:var(--radius);
  padding:clamp(1.4rem,4vw,2.4rem);
}
.mail-karte h2{margin-bottom:1rem}
.mail-karte .mail-text{color:var(--on-surface-variant);margin-bottom:1.6rem;font-size:.98rem}

/* Terminbereich nutzt die CTA-Karte, steht aber direkt nach dem Fahrplan */
.termin-sektion{padding-bottom:1.5rem}

/* Formular */
.formular-feld{margin-bottom:1.15rem}
.formular-feld label{
  display:block;font-size:.9rem;font-weight:600;
  color:var(--on-surface);margin-bottom:.4rem;
}
.formular-feld .feld-zusatz{font-weight:400;color:var(--text-gedimmt)}
.formular-feld input[type="text"],
.formular-feld input[type="email"],
.formular-feld input[type="tel"]{
  width:100%;
  background:var(--surface-container);
  border:none;
  border-radius:var(--radius);
  color:var(--on-surface);
  font-family:var(--font-body);
  font-size:1rem;
  padding:.85rem 1rem;
  transition:background-color .3s var(--ease),box-shadow .3s var(--ease);
}
.formular-feld input:focus-visible{
  outline:2px solid var(--primary);outline-offset:0;
  background:var(--surface-container-high);
}
.formular-feld input::placeholder{color:var(--outline)}
.vertrauenszeile{font-size:.85rem;color:var(--text-gedimmt);margin-top:.4rem}

/* ---------- Einordnungs-Schritt vor der ersten Frage (Branche + Groesse) ----------
   Baut app.js in #screen-container; er zaehlt nicht zu den sieben Bereichen. */
.einordnung-schritt{
  background:var(--surface-karte);
  border-radius:var(--radius);
  padding:clamp(1.2rem,4vw,1.8rem);
  margin-bottom:1.2rem;
}
.einordnung-schritt .einordnung-grund{
  color:var(--on-surface-variant);font-size:.95rem;margin-bottom:1.3rem;
}
.einordnung-schritt .formular-feld:last-of-type{margin-bottom:.6rem}
.einordnung-schritt select{
  width:100%;
  background:var(--surface-container);
  border:none;
  border-radius:var(--radius);
  color:var(--on-surface);
  font-family:var(--font-body);
  font-size:1rem;
  padding:.85rem 1rem;
  min-height:48px;
  cursor:pointer;
}
.einordnung-schritt select:focus-visible{
  outline:2px solid var(--primary);outline-offset:0;
  background:var(--surface-container-high);
}
.einordnung-schritt select option{background:var(--surface-container);color:var(--on-surface)}
.einordnung-frei{font-size:.85rem;color:var(--text-gedimmt);margin-top:.6rem}

.checkbox-feld{
  display:grid;grid-template-columns:auto 1fr;gap:.7rem;
  align-items:start;margin-bottom:1.05rem;
}
.checkbox-feld input[type="checkbox"]{
  width:1.15rem;height:1.15rem;margin-top:.22rem;
  accent-color:var(--primary-container);
  cursor:pointer;
}
.checkbox-feld label{
  font-size:.87rem;line-height:1.55;
  color:var(--on-surface-variant);cursor:pointer;
}
.telefon-block{
  margin:0 0 1.05rem 1.85rem;
}
.nutzen-zeile{
  font-size:.9rem;color:var(--on-surface);
  margin-bottom:.5rem;
}

.meldung-fehler{
  display:block;
  background:var(--surface-hoch);
  border-left:3px solid var(--secondary);
  border-radius:var(--radius);
  color:var(--on-surface);
  font-size:.93rem;
  padding:.8rem 1rem;
  margin-bottom:1.15rem;
}
.feld-fehler{display:none;font-size:.85rem;color:var(--secondary);margin-top:.4rem}
.feld-fehler.ist-sichtbar{display:block}

.fairness-zeile{font-size:.83rem;color:var(--text-gedimmt);margin-top:.9rem}
.datenschutz-kurz{font-size:.82rem;color:var(--text-gedimmt);margin-top:1.1rem}
.hinweistext-doi{font-size:.82rem;color:var(--text-gedimmt);margin-top:.9rem}

/* Honeypot: absolut ausserhalb des Viewports, ohne display:none */
.hp-feld{
  position:absolute;
  left:-6000px;top:0;
  width:1px;height:1px;
  overflow:hidden;
}

/* ---------- Warten / Fehler / Widerruf (ruhige Info-Seiten) ---------- */
.info-seite{padding:clamp(3.5rem,12vh,7rem) 0 4rem}
.info-seite h1{margin-bottom:1.2rem;max-width:22ch}
.info-seite p{max-width:60ch;color:var(--on-surface-variant);margin-bottom:1rem}
.info-seite strong{color:#ffffff}
.info-detail{
  background:var(--surface-karte);
  border-radius:var(--radius);
  padding:1.1rem 1.3rem;
  margin:1.4rem 0;
  max-width:60ch;
  font-size:.93rem;color:var(--text-gedimmt);
}
.info-aktionen{display:flex;gap:1rem;flex-wrap:wrap;align-items:center;margin-top:1.6rem}
.inline-formular{display:flex;gap:.7rem;flex-wrap:wrap;align-items:stretch;margin-top:1.2rem;max-width:34rem}
.inline-formular input[type="email"]{
  flex:1 1 240px;
  background:var(--surface-container);
  border:none;border-radius:var(--radius);
  color:var(--on-surface);
  font-family:var(--font-body);font-size:1rem;
  padding:.85rem 1rem;
}
.inline-formular input[type="email"]:focus-visible{outline:2px solid var(--primary)}

/* ---------- Ergebnisseite (seite-ansicht) ---------- */
.ergebnis-hero{padding:clamp(3rem,9vh,6rem) 0 2.5rem;background:var(--surface)}
.ergebnis-hero .container{
  display:flex;flex-direction:column;gap:2rem;align-items:center;text-align:center;
}
.ergebnis-hero .hero-links{order:2}
.ergebnis-hero .eyebrow{display:block;margin-bottom:.8rem}
.hero-rechts{
  order:1;
  display:flex;flex-direction:column;align-items:center;gap:1.3rem;
}
.staerke-kachel{
  background:var(--surface-karte);
  border-radius:var(--radius);
  padding:1rem 1.2rem;
  max-width:24rem;
  text-align:left;
}
.staerke-kachel .eyebrow{display:block;font-size:.7rem;margin-bottom:.35rem;color:var(--primary)}
.staerke-kachel p{font-size:.92rem;color:var(--on-surface-variant)}
.fahrplan-hinweis{
  max-width:56ch;margin:1rem auto 0;
  font-size:.95rem;color:var(--on-surface-variant);
}
.gesamtscore{
  font-family:var(--font-headline);
  font-weight:800;
  font-size:clamp(4rem,12vw,6rem);
  line-height:1;
  color:var(--primary);
  letter-spacing:-0.03em;
}
.gesamtscore .score-max{font-size:.35em;font-weight:600;color:var(--text-gedimmt)}
.ergebnis-hero .einordnung{max-width:56ch;margin:1.1rem auto 0;color:var(--on-surface-variant)}
.ergebnis-hero .kontext{max-width:56ch;margin:.9rem auto 0;font-size:.93rem;color:var(--text-gedimmt)}

.sektion{padding:3.2rem 0}
.sektion-kopf{margin-bottom:2rem;text-align:center}
.sektion-kopf h2{max-width:30ch;margin:0 auto}

/* Radar-Sektion — keine Karte mit Kante, sondern eine hellere Flaeche, die
   unregelmaessig in den Seitenhintergrund auslaeuft (Hero-Komposition der
   Startseite: mehrere ueberlagerte radiale Verlaeufe, alle mit weichem Rand).
   Reines CSS, keine Bilder. Die Pseudo-Elemente liegen hinter dem Inhalt —
   .radar-flaeche oeffnet dafuer einen eigenen Stapelkontext (z-index:0). */
.radar-flaeche{
  position:relative;
  z-index:0;
  background:transparent;
  padding:clamp(1.3rem,4vw,2.6rem);
  max-width:760px;margin:0 auto;
}
/* Grundschein: warm-helle Mitte, leicht aus der Achse geruecktes Zentrum.
   Seitlich bleiben die Flaechen mobil im Container — sonst entstuende eine
   Querscrollleiste. Den seitlichen Ueberlauf gibt es erst ab 1000 px, wo
   links und rechts genug Rand dafuer da ist. */
.radar-flaeche::before{
  content:"";
  position:absolute;
  inset:-16% 0 -20%;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(62% 54% at 47% 41%,rgba(225,182,255,.11) 0%,rgba(225,182,255,.05) 44%,rgba(225,182,255,0) 74%),
    radial-gradient(70% 64% at 52% 47%,rgba(22,34,46,.62) 0%,rgba(22,34,46,.26) 48%,rgba(22,34,46,0) 78%);
}
/* Zweite Ebene: zwei versetzte Schleier, die die Symmetrie brechen */
.radar-flaeche::after{
  content:"";
  position:absolute;
  inset:-22% 0 -14%;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(44% 58% at 71% 64%,rgba(201,136,250,.09) 0%,rgba(201,136,250,0) 66%),
    radial-gradient(50% 40% at 26% 72%,rgba(255,182,147,.05) 0%,rgba(255,182,147,0) 70%),
    radial-gradient(38% 34% at 33% 22%,rgba(225,182,255,.05) 0%,rgba(225,182,255,0) 72%);
}
/* Ab hier ist links und rechts genug Rand: die Flaeche darf ueber die
   Radarbreite hinaus in den Seitenhintergrund auslaufen. */
@media (min-width:1000px){
  .radar-flaeche::before{inset:-16% -8% -20%}
  .radar-flaeche::after{inset:-22% -10% -14%}
}
#radar-chart{opacity:0;transform:translateY(10px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
#radar-chart.ist-sichtbar{opacity:1;transform:none}

/* Bereiche mit Hoechstwert: „Was hier funktioniert und warum“ (Befund F).
   Sie erzeugen keine Maßnahmenkarte und stehen deshalb als eigener Baustein
   ueber der Konsole. */
.vorbild-karte{
  max-width:760px;margin:0 auto 1.4rem;
  background:var(--surface-karte);
  border-left:3px solid var(--primary-container);
  border-radius:var(--radius);
  padding:1.2rem 1.4rem;
}
.vorbild-karte .eyebrow{display:block;margin-bottom:.4rem;color:var(--primary)}
.vorbild-karte h3{margin-bottom:.6rem;font-size:1.05rem}
.vorbild-karte p{font-size:.92rem;color:var(--on-surface-variant);margin-bottom:.6rem}
.vorbild-karte p:last-child{margin-bottom:0}
.vorbild-uebertragen{
  padding-top:.6rem;
  background:linear-gradient(90deg,rgba(201,136,250,.28),transparent) top left / 100% 1px no-repeat;
  color:var(--on-surface) !important;
}

/* Gleichrangige Handlungsfelder: Hinweis ueber den drei Feldern (Befund A2) */
.hebel-gleichrangig{
  max-width:760px;margin:0 auto 1.4rem;
  background:var(--surface-karte);
  border-radius:var(--radius);
  padding:.9rem 1.2rem;
  font-size:.92rem;color:var(--on-surface-variant);
}
.hebel-gleichrangig strong{display:block;color:var(--primary);margin-bottom:.25rem}

/* Erfolgszeile bei 5,0-Kategorien */
.erfolgszeile{
  max-width:760px;margin:0 auto 1.4rem;
  font-size:.95rem;color:var(--on-surface-variant);
  background:var(--surface-karte);border-radius:var(--radius);
  padding:.9rem 1.2rem;
}
.erfolgszeile strong{color:var(--primary)}

/* Kategorie-Karten */
.karten-raster{
  display:grid;grid-template-columns:1fr;gap:1.1rem;
  max-width:1040px;margin:0 auto;
}
.kategorie-karte{
  background:var(--surface-karte);
  border-radius:var(--radius);
  padding:1.5rem 1.5rem 1.6rem;
  break-inside:avoid;
}
.karte-kopf{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:.7rem}
.karte-kopf .eyebrow{font-size:.72rem}
.score-badge{
  font-family:var(--font-label);
  font-weight:700;font-size:.85rem;letter-spacing:.05em;
  background:var(--surface-hoch);
  color:var(--primary);
  border-radius:var(--radius);
  padding:.25rem .65rem;
  white-space:nowrap;
}
.mini-balken{height:6px;border-radius:3px;background:var(--ton-leer);overflow:hidden;margin-bottom:1.1rem}
.mini-balken span{display:block;height:100%;border-radius:3px;background:var(--primary-container)}
/* Fuellbreite kommt als Utility-Klasse b0 … b100 (5%-Schritte) */
.b0{width:0}.b5{width:5%}.b10{width:10%}.b15{width:15%}.b20{width:20%}
.b25{width:25%}.b30{width:30%}.b35{width:35%}.b40{width:40%}.b45{width:45%}
.b50{width:50%}.b55{width:55%}.b60{width:60%}.b65{width:65%}.b70{width:70%}
.b75{width:75%}.b80{width:80%}.b85{width:85%}.b90{width:90%}.b95{width:95%}.b100{width:100%}

.kategorie-karte h3{margin-bottom:.6rem}
.kategorie-karte .diagnose{font-size:.95rem;color:var(--on-surface-variant);margin-bottom:1.2rem}

.schritt{
  background:var(--surface-hoch);
  border-radius:var(--radius);
  padding:.95rem 1.1rem;
  margin-bottom:.7rem;
}
.schritt-kopf{display:flex;justify-content:space-between;gap:.8rem;align-items:baseline;flex-wrap:wrap;margin-bottom:.35rem}
.schritt-kopf strong{color:#ffffff;font-size:.95rem}
.schritt-badges{display:flex;gap:.4rem;flex-wrap:wrap}
.badge{
  font-family:var(--font-label);
  font-size:.68rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  background:var(--surface-container-high);
  color:var(--text-gedimmt);
  border-radius:var(--radius);
  padding:.18rem .5rem;
  white-space:nowrap;
}
.badge-wirkung{color:var(--primary)}
/* „selbst startbar“ / „Beschluss nötig“ — wer die Maßnahme anstoßen kann. */
.badge-startbar{color:var(--secondary);text-transform:none;letter-spacing:.04em}
.schritt p{font-size:.9rem;color:var(--on-surface-variant)}

.karte-extra{margin-top:1.1rem;font-size:.9rem;color:var(--on-surface-variant)}
.karte-extra dt{
  font-family:var(--font-label);
  font-size:.72rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  color:var(--primary);
  margin-top:.8rem;margin-bottom:.2rem;
}
.karte-extra dd{margin:0}

/* =====================================================================
   Bereichs-Konsole (Ergebnisseite)
   Grundzustand = ohne JavaScript: alle Panels sichtbar, alle <details>
   offen, Bedienelemente ausgeblendet. Erst die Klasse .hat-js am
   <html>-Element (app.js) schaltet die Konsole ein.
   ===================================================================== */
.konsole{max-width:1040px;margin:0 auto}

/* Bedienelemente erscheinen nur mit JavaScript */
.konsole-kopf,
.bereichsleiste,
.konsole-fuss,
.konsole-fortschritt,
.radar-tipp{display:none}

.hat-js .konsole-kopf{
  display:flex;flex-wrap:wrap;gap:1rem;
  align-items:center;justify-content:space-between;
  margin-bottom:1rem;
}
.hat-js .bereichsleiste{display:flex}
.hat-js .konsole-fuss{display:flex}
.hat-js .konsole-fortschritt{display:block}
.hat-js .radar-tipp{display:block}

.konsole-lead{margin:0;font-size:.93rem;color:var(--text-gedimmt)}

.konsole-schalter{
  font-family:var(--font-label);
  font-size:.76rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-gedimmt);
  background:var(--surface-karte);
  border:1px solid var(--outline-variant);
  border-radius:var(--radius);
  padding:.6rem .9rem;
  min-height:44px;
  cursor:pointer;
  transition:color .3s var(--ease),border-color .3s var(--ease),background .3s var(--ease);
}
.konsole-schalter:hover{color:var(--primary);border-color:var(--primary)}
.konsole-schalter[aria-pressed="true"]{
  color:var(--on-primary);
  background:var(--primary-container);
  border-color:var(--primary-container);
}

/* --- Bereichsleiste: auf 375 px waagerecht scrollbar, die Seite bleibt ruhig --- */
.bereichsleiste{
  gap:.5rem;
  max-width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  padding-bottom:.5rem;
  margin-bottom:1.2rem;
}
.bereich-chip{
  flex:0 0 auto;
  display:flex;flex-direction:column;align-items:flex-start;gap:.1rem;
  min-height:48px;
  padding:.5rem .8rem;
  background:var(--surface-karte);
  border:1px solid transparent;
  border-radius:var(--radius);
  color:var(--text-gedimmt);
  font-family:var(--font-label);
  font-size:.76rem;font-weight:600;letter-spacing:.06em;
  text-align:left;white-space:nowrap;
  cursor:pointer;
  transition:color .3s var(--ease),background .3s var(--ease),border-color .3s var(--ease);
}
.bereich-chip:hover{color:var(--primary);background:var(--surface-hoch)}
/* Zustand nie allein ueber Farbe: der aktive Chip traegt zusaetzlich einen Rahmen. */
.bereich-chip.ist-aktiv{
  color:#ffffff;background:var(--surface-hoch);
  border-color:var(--primary-container);
}
.chip-wert{font-size:.9rem;font-weight:700;color:var(--primary)}
.chip-hebel{font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;color:var(--secondary)}
/* „angesehen" als Zeichen, nicht als Farbwechsel. */
.bereich-chip.ist-gelesen .chip-name::after{content:" ✓";color:var(--primary)}

/* --- Panels --- */
.bereich-panel{
  background:var(--surface-karte);
  border-radius:var(--radius);
  padding:1.5rem 1.5rem 1.6rem;
  margin-bottom:1.1rem;
  break-inside:avoid;
}
.hat-js .bereich-panel{display:none;margin-bottom:0}
.hat-js .bereich-panel.ist-aktiv{display:block;animation:panel-ein .26s var(--ease) both}
.hat-js .konsole.alles-lesen .bereich-panel{display:block;margin-bottom:1.1rem;animation:none}
/* Im Lesemodus tritt die Bereichsleiste zurueck, bleibt aber bedienbar. */
.hat-js .konsole.alles-lesen .bereichsleiste{opacity:.55}

@keyframes panel-ein{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:none}
}

.bereich-panel h3{margin-bottom:.35rem}
.panel-headline{
  font-family:var(--font-headline);font-weight:700;
  color:var(--primary);font-size:1rem;margin-bottom:.7rem;
}
.bereich-panel .diagnose{font-size:.95rem;color:var(--on-surface-variant);margin-bottom:1.2rem}
.warum-nicht{
  font-size:.95rem;color:var(--on-surface-variant);
  background:var(--surface-hoch);border-radius:var(--radius);
  padding:.95rem 1.1rem;margin-bottom:.7rem;
}
.panel-berichtzeile{font-size:.88rem;color:var(--text-gedimmt)}

/* Ebene 2 als natives <details> — Tastatur und Ohne-JS-Fall inklusive. */
.panel-tiefe{margin-top:.4rem}
.panel-tiefe > summary{
  display:flex;align-items:center;gap:.5rem;
  min-height:44px;padding:.5rem 0;
  font-family:var(--font-label);
  font-size:.8rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  color:var(--primary);
  cursor:pointer;list-style:none;
}
.panel-tiefe > summary::-webkit-details-marker{display:none}
.panel-tiefe > summary::before{content:"+";font-size:1.1rem;line-height:1}
.panel-tiefe[open] > summary::before{content:"–"}
.panel-tiefe > summary:hover{color:var(--primary-container)}
.panel-tiefe-inhalt{padding-top:.4rem}

/* --- Vor / Zurueck --- */
.konsole-fuss{gap:.8rem;flex-wrap:wrap;justify-content:space-between;margin-top:1.1rem}
.konsole-nav{
  flex:1 1 12rem;
  display:flex;flex-direction:column;gap:.1rem;align-items:flex-start;
  min-height:48px;padding:.6rem .9rem;
  background:var(--surface-karte);
  border:1px solid var(--outline-variant);
  border-radius:var(--radius);
  color:var(--text-gedimmt);
  text-align:left;cursor:pointer;
  transition:color .3s var(--ease),border-color .3s var(--ease);
}
.konsole-nav:hover{color:var(--primary);border-color:var(--primary)}
#konsole-weiter{align-items:flex-end;text-align:right}
.nav-richtung{
  font-family:var(--font-label);
  font-size:.68rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
}
.nav-name{font-family:var(--font-body);font-size:.9rem;color:var(--on-surface)}

.konsole-fortschritt{
  margin-top:.9rem;
  font-family:var(--font-label);font-size:.8rem;letter-spacing:.06em;
  color:var(--text-gedimmt);
}

/* --- Radar als Steuerelement --- */
.radar-tipp{margin-top:.9rem;text-align:center;font-size:.85rem;color:var(--text-gedimmt)}
/* Trefferflaechen: Zeigegeraete-Zugabe, fuer Screenreader unsichtbar.
   Drei je Achse — Datenpunkt, Speiche, Beschriftungsblock. */
.radar-hotspot{cursor:pointer}
.radar-svg .radar-punkt,
.radar-svg .radar-speiche,
.radar-svg .radar-label{
  transition:opacity .3s var(--ease),fill .3s var(--ease),stroke .3s var(--ease);
}
.radar-svg.hat-auswahl .ist-gedimmt{opacity:.45}
.radar-svg .radar-punkt.ist-aktiv{stroke-width:3}
.radar-svg .radar-speiche.ist-aktiv{stroke:rgba(225,182,255,.55)}
.radar-svg .radar-label.ist-aktiv{fill:#ffffff}
/* Hover-Hinweis „hier kannst du klicken": Punkt etwas groesser (Radius setzt
   radar.js), Beschriftung heller — auch wenn die Achse gerade gedimmt ist. */
.radar-svg .radar-punkt.ist-bereit{stroke-width:3}
.radar-svg .radar-label.ist-bereit{fill:#ffffff}
.radar-svg.hat-auswahl .ist-gedimmt.ist-bereit{opacity:1}

/* Feste Vorschaukontur: zweite, gestrichelte Linie (drei Hebel je +2 Punkte).
   app.js meldet sie einmalig beim Aufbau — sie ist Inhalt, keine Bedienung. */
.radar-vorschau{opacity:.95;pointer-events:none}
/* Bildunterschrift dazu — sichtbar, sobald das Radar da ist (Klasse hat-js). */
.radar-bildunterschrift{display:none}
.hat-js .radar-bildunterschrift{
  display:block;
  margin-top:.9rem;text-align:center;
  font-size:.85rem;color:var(--text-gedimmt);
  max-width:46ch;margin-left:auto;margin-right:auto;
}
.radar-bildunterschrift .vorschau-strich{color:var(--secondary);font-weight:700}

/* Puls: genau drei Runden, versetzt — die Elemente entstehen nur beim
   ersten Aufbau (radar.js) und bei ruhender Bewegungsvorgabe gar nicht. */
.radar-puls{
  transform-box:fill-box;transform-origin:center;
  opacity:0;
  animation:radar-puls 1.6s var(--ease) 3 both;
}
.radar-puls-0{animation-delay:.9s}
.radar-puls-1{animation-delay:1.08s}
.radar-puls-2{animation-delay:1.26s}
.radar-puls-3{animation-delay:1.44s}
.radar-puls-4{animation-delay:1.62s}
.radar-puls-5{animation-delay:1.8s}
.radar-puls-6{animation-delay:1.98s}
@keyframes radar-puls{
  0%{transform:scale(.6);opacity:.55}
  70%{opacity:0}
  100%{transform:scale(3);opacity:0}
}

/* Top-3 */
.top3-raster{
  display:grid;grid-template-columns:1fr;gap:1.1rem;
  max-width:1040px;margin:0 auto;
  counter-reset:top3;
}
.top3-feld{
  background:var(--surface-karte);
  border-radius:var(--radius);
  padding:1.5rem;
  counter-increment:top3;
}
.top3-feld::before{
  content:counter(top3);
  display:block;
  font-family:var(--font-headline);
  font-weight:800;font-size:2.6rem;line-height:1;
  color:var(--primary-container);
  margin-bottom:.7rem;
}
/* Gleichrangige Felder tragen keine Rangnummer (Befund A2). */
.top3-raster.ohne-rang .top3-feld::before{content:"·";color:var(--outline)}
.top3-feld h3{margin-bottom:.5rem}
.top3-feld p{font-size:.93rem;color:var(--on-surface-variant)}

/* Musterdeutung („Was dein Profil verrät") — Karten-Optik, dezent */
.muster-raster{
  display:grid;grid-template-columns:1fr;gap:1.1rem;
  max-width:1040px;margin:0 auto;
}
.muster-karte{
  background:var(--surface-karte);
  border-radius:var(--radius);
  padding:1.5rem;
}
.muster-karte h3{margin-bottom:.6rem;color:var(--primary)}
.muster-karte p{font-size:.93rem;color:var(--on-surface-variant)}
.muster-karte .muster-empfehlung{
  margin-top:.7rem;padding-top:.7rem;
  background:linear-gradient(90deg,rgba(201,136,250,.28),transparent) top left / 100% 1px no-repeat;
  color:var(--on-surface);
}
@media (min-width:768px){
  .muster-raster{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
}

/* Widerrufsseite: Abschnitt „Alle Daten löschen" — klar abgegrenzt */
.loeschen-abschnitt{
  margin-top:3rem;
  padding:clamp(1.4rem,4vw,2.2rem);
  background:var(--surface-karte);
  border-radius:var(--radius);
}
.loeschen-abschnitt h2{margin-bottom:.8rem}
.loeschen-abschnitt p{color:var(--on-surface-variant);max-width:64ch}

/* 90-Tage-Fahrplan */
.fahrplan-raster{
  display:grid;grid-template-columns:1fr;gap:1.1rem;
  max-width:1040px;margin:0 auto;
}
.fahrplan-phase{border-radius:var(--radius);padding:1.5rem}
.fahrplan-phase:nth-child(1){background:var(--surface-karte)}
.fahrplan-phase:nth-child(2){background:var(--surface-container)}
.fahrplan-phase:nth-child(3){background:var(--surface-container-high)}
.fahrplan-phase .eyebrow{display:block;margin-bottom:.5rem;font-size:.72rem}
.fahrplan-phase h3{margin-bottom:.6rem}
.fahrplan-phase p{font-size:.93rem;color:var(--on-surface-variant)}

/* Radar-Code unter dem Terminbutton */
.radar-code{
  margin-top:1.3rem;
  font-size:.9rem;
  color:var(--on-surface-variant);
  max-width:52ch;
  margin-left:auto;margin-right:auto;
}
.radar-code strong{
  font-family:var(--font-label);letter-spacing:.08em;
  color:var(--primary);
}

/* Berichts-Karte: Gegenleistung fuer die Adresse (nur mit Mailversand) */
.bericht-vorspann{color:var(--on-surface-variant);font-size:.98rem;margin-bottom:1rem}
.bericht-vorspann strong{color:var(--on-surface)}
.bericht-vorspann:last-of-type{margin-bottom:1.6rem}
.bericht-liste{
  list-style:none;margin:0 0 1.3rem;padding:0;
  display:grid;gap:.55rem;
}
.bericht-liste li{
  font-size:.93rem;color:var(--on-surface-variant);
  padding-left:1.1rem;position:relative;
}
.bericht-liste li::before{
  content:"";position:absolute;left:0;top:.62em;
  width:.4rem;height:.4rem;border-radius:50%;
  background:var(--primary-container);
}

/* Vorsprung-halten-Sektion (alle Kategorien 5,0) */
.vorsprung{
  background:var(--surface-karte);
  border-radius:var(--radius);
  padding:clamp(1.5rem,4vw,2.5rem);
  max-width:760px;margin:0 auto;
}
.vorsprung h3{margin-bottom:.8rem}
.vorsprung p{color:var(--on-surface-variant)}

/* CTA */
.cta-sektion{padding:3.5rem 0 4rem}
.cta-karte{
  max-width:680px;margin:0 auto;
  background:rgba(24,32,41,.55);
  backdrop-filter:blur(32px);
  -webkit-backdrop-filter:blur(32px);
  border-radius:var(--radius);
  padding:clamp(1.6rem,5vw,2.8rem);
  text-align:center;
}
.cta-karte h2{margin-bottom:1rem}
.cta-karte p{color:var(--on-surface-variant);max-width:48ch;margin:0 auto 1.6rem}
/* Begruendung im Termin-Block: leiser als der Einleitungstext, aber lesbar. */
.cta-begruendung{font-size:.95rem;line-height:1.7;opacity:.85}

/* ---------- Termin als primaere Handlung ----------
   Zwei Platzierungen: einmal ueber der langen Bereichsliste, einmal am Ende.
   Beide tragen dieselbe Karte, nur der obere Block faellt kraeftiger aus. */
.termin-sektion .cta-karte{
  max-width:720px;
  border:1px solid var(--outline-variant);
  border-top:3px solid var(--primary-container);
  text-align:left;
}
.termin-sektion .cta-karte .eyebrow{display:block;margin-bottom:.6rem;color:var(--primary)}
.termin-sektion .cta-karte h2{margin-bottom:.9rem}
.termin-sektion .cta-karte p{margin-left:0;margin-right:0;max-width:56ch}
.termin-sektion .btn-primaer{margin-top:.4rem}

.termin-primaer{padding:1rem 0 2.6rem}
.termin-primaer .cta-karte{background:rgba(28,38,49,.72)}

.termin-nutzen{
  list-style:none;margin:0 0 1.6rem;padding:0;
  display:grid;gap:.6rem;max-width:56ch;
}
.termin-nutzen li{
  position:relative;padding-left:1.15rem;
  font-size:.95rem;line-height:1.65;color:var(--on-surface-variant);
}
.termin-nutzen li::before{
  content:"";position:absolute;left:0;top:.62em;
  width:.42rem;height:.42rem;border-radius:50%;
  background:var(--primary-container);
}
.termin-nutzen strong{color:var(--on-surface)}

/* Zwei Klassen tief, damit die Abstaende gegen .cta-karte p durchkommen. */
.termin-sektion .termin-zusatz{
  margin:1rem 0 0;
  font-size:.85rem;color:var(--text-gedimmt);
}
.termin-sektion .radar-code{margin:1.4rem 0 0}

/* Das freiwillige E-Mail-Angebot bleibt inhaltlich gleich, tritt optisch aber
   hinter den Termin zurueck: ruhigere Flaeche, kleinere Ueberschrift. */
.mail-nachgeordnet .mail-karte{opacity:.94}
.mail-nachgeordnet .mail-karte h2{font-size:clamp(1.2rem,2.6vw,1.6rem)}

/* ---------- Nur im Ausdruck sichtbar ----------
   Druckkopf, Druckfuss und Abschlussblock; print.css schaltet sie ein. */
.nur-druck{display:none}

/* ---------- Druckrahmen ----------
   Am Bildschirm sind Tabelle, Zeile und Zelle schlichte Bloecke — das Layout
   bleibt exakt wie vorher. Erst print.css macht daraus eine echte Tabelle,
   deren thead/tfoot auf jeder gedruckten Seite Platz freihalten. */
.druckrahmen,
.druckrahmen > tbody,
.druckrahmen > tbody > tr,
.druckrahmen > tbody > tr > td{
  display:block;width:auto;padding:0;margin:0;border:0;
}
.druckrahmen > thead,
.druckrahmen > tfoot{display:none}

/* Einordnung/Disclaimer — ruhig, ohne Alarmfarbe, klar abgesetzt */
.einordnung-sektion{padding:1rem 0 2.5rem}
.einordnung-karte{
  max-width:60ch;margin:0 auto;
  background:var(--flaeche-tief,rgba(6,15,23,.55));
  border-radius:var(--radius);
  padding:clamp(1.4rem,4vw,2.2rem);
}
.einordnung-karte .sektion-titel{font-size:1.15rem;margin-bottom:.9rem}
.einordnung-karte p{color:var(--on-surface-variant);font-size:.95rem;line-height:1.75;margin:0 0 .9rem}
.einordnung-karte p:last-child{margin-bottom:0}
.einordnung-karte strong{color:var(--on-surface)}

/* ---------- Zusammenfassung (Kopf der Ergebnisseite) ----------
   Am Bildschirm bewusst leise: ein ruhiger Kasten vor dem Ergebnis, kleiner
   Satz, keine grossen Farbflaechen. Im Druck ist derselbe Block als erste
   Seite gedacht — print.css greift ueber .kurzfassung darauf zu. */
.kurzfassung{padding:2.4rem 0 0}
.kurzfassung-karte{
  max-width:1040px;margin:0 auto;
  background:var(--surface-karte);
  border-radius:var(--radius);
  border-top:2px solid var(--outline-variant);
  padding:clamp(1.2rem,3.4vw,1.9rem);
  display:grid;gap:1.4rem;
}
.kurzfassung-kopf .eyebrow{display:block;margin-bottom:.5rem}
.kurzfassung-kopf h2{font-size:clamp(1.2rem,2.6vw,1.55rem)}
.kurzfassung-datum{margin-top:.35rem;font-size:.85rem;color:var(--text-gedimmt)}
.kurzfassung-untertitel{
  font-family:var(--font-label);font-size:.74rem;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--text-gedimmt);margin-bottom:.6rem;
}
.kurzfassung-wert{display:flex;flex-wrap:wrap;align-items:baseline;gap:.6rem 1.2rem}
.kurzfassung-zahl{font-family:var(--font-headline);line-height:1}
.kurzfassung-zahl strong{font-size:2.6rem;font-weight:800;color:var(--primary)}
.kurzfassung-skala{font-size:.95rem;color:var(--text-gedimmt)}
.kurzfassung-stufe{font-family:var(--font-label);font-size:.95rem;color:var(--on-surface)}
.stufenband{
  list-style:none;margin:.2rem 0 0;padding:0;
  display:grid;grid-template-columns:repeat(5,1fr);gap:3px;
  width:100%;
}
.stufenband-feld{
  background:var(--surface-container);
  padding:.4rem .5rem;
  font-size:.72rem;line-height:1.35;
  color:var(--text-gedimmt);
}
.stufenband-feld.ist-erreicht{
  background:var(--primary-container);
  color:var(--on-primary);
}
.stufenband-nr{display:block;font-family:var(--font-label);letter-spacing:.06em}
.stufenband-name{display:block;font-weight:700}
.wertezeile{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:2px;
}
.wertezeile li{
  background:var(--surface-container);
  padding:.5rem .6rem;
  display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;
}
.wertezeile-name{font-size:.78rem;color:var(--text-gedimmt)}
.wertezeile-wert{font-family:var(--font-label);font-size:.95rem;color:var(--on-surface)}
.hebelzeilen{
  list-style:none;margin:0;padding:0;
  display:grid;gap:.45rem;counter-reset:kfhebel;
}
.hebelzeilen li{
  counter-increment:kfhebel;
  display:grid;grid-template-columns:1.6rem 1fr;gap:.2rem .6rem;
  font-size:.9rem;
}
.hebelzeilen li::before{
  content:counter(kfhebel) ".";
  grid-row:span 2;
  font-family:var(--font-label);color:var(--primary);
}
.hebelzeile-name{color:var(--on-surface);font-weight:600}
.hebelzeile-schritt{color:var(--on-surface-variant);font-size:.86rem}
/* Ohne Rangfolge (gleiche Werte) entfaellt die Nummerierung. */
.hebelzeilen.ohne-rang li::before{content:"—";color:var(--outline)}
/* Vorbehalt zur Einordnung — Band direkt beim Stufenband, im Druck Seite 1. */
.stufe-vorbehalt{
  flex-basis:100%;
  margin-top:.6rem;
  background:var(--surface-hoch);
  border-left:3px solid var(--secondary);
  border-radius:var(--radius);
  padding:.7rem .9rem;
  font-size:.86rem;line-height:1.6;color:var(--on-surface);
}
.kurzfassung-methode,
.kurzfassung-grenze{font-size:.84rem;color:var(--text-gedimmt);line-height:1.6}
.kurzfassung-methode strong,
.kurzfassung-grenze strong{color:var(--on-surface-variant)}

/* ---------- Raster im Fahrplan und im Maßnahmenregister ----------
   Eine Zeile je Handlungsfeld statt Fliesstext. Leere Zellen tragen eine
   Schreiblinie — dieselbe Darstellung am Bildschirm wie auf Papier. */
.tabelle-flaeche{overflow-x:auto;margin-top:1rem}
.fahrplan-tabelle,
.register-tabelle{
  width:100%;border-collapse:collapse;
  font-size:.88rem;line-height:1.5;text-align:left;
}
.fahrplan-tabelle th,
.register-tabelle th,
.fahrplan-tabelle td,
.register-tabelle td{
  padding:.6rem .7rem;vertical-align:top;text-align:left;
}
.fahrplan-tabelle thead th,
.register-tabelle thead th{
  font-family:var(--font-label);font-size:.7rem;font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;
  color:var(--text-gedimmt);
  background:var(--surface-tief);
  /* Spaltentitel duerfen umbrechen — bei sechs Spalten stossen sie sonst
     aneinander (Verantwortlich/Termin). */
  white-space:normal;
}
.fahrplan-tabelle tbody th,
.register-tabelle tbody th{
  font-family:var(--font-body);font-weight:700;color:var(--on-surface);
}
.fahrplan-tabelle tbody tr,
.register-tabelle tbody tr{background:var(--surface-container);break-inside:avoid}
.fahrplan-tabelle tbody tr:nth-child(even),
.register-tabelle tbody tr:nth-child(even){background:var(--surface-container-high)}
.fahrplan-tabelle td,
.register-tabelle td{color:var(--on-surface-variant)}
/* Spaltenbreiten: die Maßnahme bekommt Platz, die Eintragfelder bleiben
   schmal, die Kennzahl steht kleiner. Gilt nur dort, wo die Tabelle wirklich
   eine Tabelle ist — schmalere Bildschirme stapeln (weiter unten). */
@media screen and (min-width:860px){
  .fahrplan-tabelle{table-layout:fixed}
  .fahrplan-tabelle th:nth-child(1){width:15%}
  .fahrplan-tabelle th:nth-child(2){width:29%}
  .fahrplan-tabelle th:nth-child(3){width:7%}
  .fahrplan-tabelle th:nth-child(4),
  .fahrplan-tabelle th:nth-child(5){width:13%}
  .fahrplan-tabelle th:nth-child(6){width:23%}
  .fahrplan-tabelle td:nth-child(6){font-size:.82rem}
  .register-tabelle td:nth-child(3),
  .register-tabelle td:nth-child(4){white-space:nowrap}
}
/* Im Druck ist die Seitenbreite die Referenz, nicht der Viewport: dieselben
   Verhaeltnisse ohne Media Query. */
@media print{
  .fahrplan-tabelle{table-layout:fixed}
  .fahrplan-tabelle th:nth-child(1){width:14%}
  .fahrplan-tabelle th:nth-child(2){width:27%}
  .fahrplan-tabelle th:nth-child(3){width:8%}
  .fahrplan-tabelle th:nth-child(4){width:15%}
  .fahrplan-tabelle th:nth-child(5){width:12%}
  .fahrplan-tabelle th:nth-child(6){width:24%}
  /* Auf Papier sind die Spalten schmaler als am Bildschirm: Spaltentitel
     kleiner setzen und trennen lassen, sonst laufen sie ineinander. */
  .fahrplan-tabelle thead th,
  .register-tabelle thead th{
    font-size:.58rem;letter-spacing:.06em;
    word-break:break-word;hyphens:auto;
  }
  .fahrplan-tabelle th,
  .fahrplan-tabelle td,
  .register-tabelle th,
  .register-tabelle td{padding:.35rem .6rem .35rem .4rem;vertical-align:top}
  .fahrplan-tabelle tbody th,
  .register-tabelle tbody th{word-break:break-word;hyphens:auto}
}
.fp-massnahme{display:block;color:var(--on-surface);font-weight:600}
.fp-startbar{
  display:inline-block;margin-top:.25rem;
  font-family:var(--font-label);font-size:.68rem;
  color:var(--secondary);
}
.fp-satz{display:block;margin-top:.3rem;font-size:.83rem;color:var(--text-gedimmt)}
.fp-eintrag{min-width:7.5rem}
.fp-linie{
  display:block;height:1.05rem;
  border-bottom:1px solid var(--outline);
  opacity:.7;
}
.fahrplan-sektion .fahrplan-raster{gap:1.6rem}
.fahrplan-phase-kopf{margin-bottom:.7rem}
.fahrplan-phase-kopf .eyebrow{display:block;margin-bottom:.4rem;font-size:.72rem}
.fahrplan-rahmen{font-size:.93rem;color:var(--on-surface-variant);max-width:82ch}
.register-hinweis{
  max-width:60ch;margin:1rem auto 0;
  font-size:.92rem;color:var(--on-surface-variant);
}

/* Schmale Bildschirme: aus jeder Zeile wird ein kleiner Block mit Spaltennamen
   davor. Bewusst nur fuer den Bildschirm — im Druck bleibt die echte Tabelle. */
@media screen and (max-width:859px){
  .fahrplan-tabelle,
  .register-tabelle,
  .fahrplan-tabelle tbody,
  .register-tabelle tbody{display:block;width:100%;table-layout:auto}
  .fahrplan-tabelle thead,
  .register-tabelle thead{
    position:absolute;width:1px;height:1px;
    padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
  }
  .fahrplan-tabelle tbody tr,
  .register-tabelle tbody tr{display:block;width:100%;padding:.5rem .2rem;margin-bottom:.5rem}
  .fahrplan-tabelle tbody th,
  .register-tabelle tbody th,
  .fahrplan-tabelle tbody td,
  .register-tabelle tbody td{
    display:grid;grid-template-columns:7rem minmax(0,1fr);gap:.6rem;
    padding:.3rem .7rem;white-space:normal;
  }
  .fahrplan-tabelle tbody th::before,
  .register-tabelle tbody th::before,
  .fahrplan-tabelle tbody td::before,
  .register-tabelle tbody td::before{
    content:attr(data-spalte);
    grid-column:1;grid-row:1;
    font-family:var(--font-label);font-size:.68rem;
    letter-spacing:.1em;text-transform:uppercase;
    color:var(--text-gedimmt);padding-top:.15rem;
  }
  /* Zellen mit mehreren Kindern (Maßnahme + Satz) bleiben in Spalte 2. */
  .fahrplan-tabelle tbody td > *,
  .register-tabelle tbody td > *{grid-column:2}
}

/* ---------- Einwilligungen: drei getrennte Bloecke ---------- */
.einwilligungen{border:0;padding:0;margin:1.6rem 0 0;min-width:0}
.einwilligungen-legende{
  padding:0;margin-bottom:.9rem;
  font-family:var(--font-label);font-size:.78rem;font-weight:600;
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-gedimmt);
}
.einwilligung{
  background:var(--surface-container);
  border-radius:var(--radius);
  border-left:2px solid var(--outline-variant);
  padding:.9rem 1rem .3rem;
  margin-bottom:1rem;
}
.einwilligung-titel{
  font-family:var(--font-label);font-size:.85rem;font-weight:600;
  color:var(--on-surface);margin-bottom:.5rem;
}
.einwilligung .checkbox-feld{margin-bottom:.7rem}
.einwilligung .telefon-block{margin-left:1.85rem;margin-bottom:.7rem}

/* ---------- Termin: was das Gespraech leistet ---------- */
.termin-mehrwert-titel{
  margin-top:.4rem;margin-bottom:.7rem !important;
  font-family:var(--font-label);font-size:.85rem;color:var(--on-surface);
}
.termin-sektion .termin-mehrwert{margin-bottom:1.6rem}
.radar-code-inline{font-family:var(--font-label);letter-spacing:.08em;color:var(--primary)}
.termin-sektion .radar-code-hoch{
  margin:0 0 1.4rem;
  background:var(--surface-container);
  border-left:2px solid var(--primary-container);
  border-radius:var(--radius);
  padding:.8rem 1rem;
  max-width:56ch;
}

/* Sofortschritt und Kennzahl in den Bereichen ausserhalb der drei Hebel */
.karte-extra-kurz{margin-top:.9rem}

/* ---------- Druck-Grundfarben der neuen Bloecke ----------
   Damit Zusammenfassung, Fahrplan-Raster und Maßnahmenregister auf Papier
   nicht als dunkle Flaechen landen, bevor print.css sie gestaltet. Die Werte
   folgen der Palette von print.css (#f4f2f7 / #1c2530 / #4c007b) und lassen
   sich dort jederzeit ueberschreiben. */
@media print{
  .kurzfassung{padding:0}
  .kurzfassung-karte{
    background:#ffffff !important;
    border-top:1pt solid #b9b2c4;
    padding:0;gap:4mm;
  }
  .kurzfassung-zahl strong{color:#4c007b !important}
  /* Spans erben im Druck nichts Helles mehr: print.css faerbt nur die
     Blockelemente, die Feinschrift hier gehoert dazu. */
  .kurzfassung-datum,
  .kurzfassung-skala,
  .kurzfassung-stufe,
  .kurzfassung-untertitel,
  .kurzfassung-methode,
  .kurzfassung-grenze,
  .wertezeile-name,
  .hebelzeile-schritt,
  .stufenband-nr,
  .stufenband-name,
  .register-hinweis,
  .fahrplan-rahmen{color:#3a4450 !important}
  .wertezeile-wert,
  .hebelzeile-name,
  .kurzfassung-methode strong,
  .kurzfassung-grenze strong{color:#1c2530 !important}
  .hebelzeilen li::before{color:#4c007b !important}
  /* Sieben Werte bleiben eine Zeile. */
  .wertezeile{grid-template-columns:repeat(7,1fr);font-size:.72rem}
  .stufenband-feld{background:#f4f2f7 !important;border:.4pt solid #d8d3df}
  .stufenband-feld.ist-erreicht{background:#e3d2f6 !important}
  .stufenband-feld.ist-erreicht .stufenband-nr,
  .stufenband-feld.ist-erreicht .stufenband-name{color:#1c2530 !important}
  .wertezeile li{background:#f4f2f7 !important}
  .fahrplan-phase{background:#ffffff !important;padding:0 0 4mm}
  .tabelle-flaeche{overflow:visible}
  .fahrplan-tabelle thead th,
  .register-tabelle thead th{background:#ece8f2 !important;color:#3a4450 !important}
  .fahrplan-tabelle tbody tr,
  .register-tabelle tbody tr{background:#ffffff !important}
  .fahrplan-tabelle tbody tr:nth-child(even),
  .register-tabelle tbody tr:nth-child(even){background:#f4f2f7 !important}
  .fahrplan-tabelle th,
  .fahrplan-tabelle td,
  .register-tabelle th,
  .register-tabelle td{border-bottom:.3pt solid #d8d3df}
  .fp-massnahme{color:#1c2530 !important}
  .fp-satz{color:#3a4450 !important}
  .fp-startbar,
  .badge-startbar{color:#7a3a00 !important}
  .stufe-vorbehalt{
    background:#fdf3ec !important;
    border-left:2pt solid #a63f00;
    color:#3a4450 !important;
  }
  .vorbild-karte{
    background:#f4f2f7 !important;
    border-left:2pt solid #4c007b;
    break-inside:avoid;
  }
  .vorbild-karte .eyebrow{color:#4c007b !important}
  .hebel-gleichrangig{background:#f4f2f7 !important;break-inside:avoid}
  .hebel-gleichrangig strong{color:#4c007b !important}
  /* Die Schreiblinien duerfen nicht zu einer durchgehenden Linie verschmelzen. */
  .fp-linie{border-bottom:.6pt solid #6b7684;opacity:1;margin-right:.5rem}
}

/* ---------- Nur am Bildschirm ----------
   Gegenstueck zu .nur-druck: Saetze, die auf Papier falsch waeren
   (Browser-Sitzung, „trag oben ein“, Linktexte ohne Adresse). */
@media print{
  .nur-bildschirm{display:none !important}
}
.fuss-adressen{font-size:.8rem}

/* Fuss (Ergebnisseite + allgemein) */
.app-fuss{
  background:var(--surface-tief);
  padding:2.6rem 0 3rem;
  margin-top:2rem;
}
.app-fuss p{
  font-size:.83rem;color:var(--text-gedimmt);
  max-width:72ch;margin-bottom:1.2rem;
}
.app-fuss .fuss-links{
  display:flex;gap:1.4rem;flex-wrap:wrap;align-items:center;
  font-size:.85rem;
}
.app-fuss a{color:var(--text-gedimmt)}
.app-fuss a:hover{color:var(--primary)}

/* ---------- Responsive ---------- */
@media (min-width:768px){
  .karten-raster{grid-template-columns:1fr 1fr}
  .kategorie-karte:last-child:nth-child(odd){grid-column:1 / -1}
  .top3-raster{grid-template-columns:repeat(3,1fr)}
  /* Der Fahrplan bleibt einspaltig: jede Phase traegt jetzt ein Raster mit
     sechs Spalten — nebeneinander waeren die Zeilen unlesbar schmal. */
  .ergebnis-hero .container{
    flex-direction:row;justify-content:space-between;text-align:left;
  }
  .ergebnis-hero .hero-links{order:1;max-width:34rem}
  .ergebnis-hero .einordnung,
  .ergebnis-hero .kontext{margin-left:0}
  .hero-rechts{order:2}
  .skala label{min-height:56px}
}

@media (min-width:1280px){
  .hero{padding-top:clamp(4rem,14vh,9rem)}
}

@media (max-width:420px){
  .skala{gap:4px}
  .skala label{min-height:46px;font-size:.95rem}
}

/* ---------- Admin & Selbsttest (Integrationsreview M-03) ----------
   Dunkles Site-Design, Flieder-Akzente; Trennung ueber Flaechen statt
   1px-Volllinien. Genutzt von lib/bootstrap.php (kirr_admin_seite),
   admin/*.php und selbsttest.php. */
body.admin{padding:0 1.25rem 3rem}
body.admin main{max-width:1140px;margin:0 auto}

.admin-kopf{
  max-width:1140px;margin:0 auto;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:1rem;padding:1.6rem 0 1.2rem;
}
.admin-kopf h1{font-size:clamp(1.4rem,3vw,1.9rem)}

.admin-nav{
  display:flex;align-items:center;gap:.6rem;
  font-family:var(--font-label);font-size:.9rem;
}
.admin-nav a{color:var(--text-gedimmt)}
.admin-nav a:hover{color:var(--primary)}
.admin-logout{display:inline-flex;margin:0}
.admin-logout button{
  background:none;border:none;cursor:pointer;
  color:var(--text-gedimmt);font:inherit;padding:0;
}
.admin-logout button:hover{color:var(--primary)}

.admin-inhalt{padding-top:.5rem}
.admin-inhalt h2{margin:1.6rem 0 .8rem;font-size:1.15rem}
.admin-inhalt p{margin-bottom:1rem;color:var(--on-surface-variant)}
.admin-inhalt a{color:var(--primary)}

.admin-filter{font-size:.9rem}
.admin-filter a,.admin-filter strong{margin-right:.35rem}
.admin-filter strong{color:var(--primary)}

.admin-tabelle{overflow-x:auto;margin:1rem 0 1.6rem}
.admin-tabelle table{
  width:100%;border-collapse:collapse;
  font-size:.88rem;line-height:1.45;
}
.admin-tabelle th{
  text-align:left;padding:.6rem .75rem;
  font-family:var(--font-label);font-size:.72rem;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--text-gedimmt);
  background:var(--surface-tief);
  white-space:nowrap;
}
.admin-tabelle td{padding:.55rem .75rem;vertical-align:top}
.admin-tabelle tbody tr:nth-child(odd){background:var(--surface-karte)}
.admin-tabelle tbody tr:nth-child(even){background:var(--surface-container)}

body.admin form{margin:1.2rem 0}
body.admin label{
  display:block;margin:.9rem 0 .35rem;
  font-family:var(--font-label);font-size:.8rem;font-weight:600;
  letter-spacing:.08em;color:var(--text-gedimmt);
}
body.admin input[type="text"],
body.admin input[type="password"],
body.admin input[type="email"]{
  width:100%;max-width:26rem;display:block;
  background:var(--surface-karte);color:var(--on-surface);
  border:none;border-radius:var(--radius);
  padding:.7rem .9rem;font:inherit;
}
body.admin input[type="checkbox"]{accent-color:var(--primary-container);margin-right:.4rem}
body.admin button[type="submit"]{
  display:inline-block;margin-top:1rem;
  background:var(--primary-container);color:var(--on-primary);
  border:none;border-radius:var(--radius);cursor:pointer;
  font-family:var(--font-headline);font-weight:700;font-size:.95rem;
  padding:.75rem 1.6rem;
  transition:background-color .35s var(--ease);
}
body.admin button[type="submit"]:hover{background:var(--primary)}
.admin-export{font-size:.9rem;color:var(--on-surface-variant)}

body.admin code{
  font-size:.88em;background:var(--surface-karte);
  padding:.15rem .4rem;border-radius:var(--radius);
  word-break:break-all;
}

.selbsttest{list-style:none;margin:1.2rem 0;display:grid;gap:.4rem}
.selbsttest li{
  background:var(--surface-karte);border-radius:var(--radius);
  padding:.6rem .9rem;font-size:.9rem;
}
.ok{color:#9be29b}
.fehler{color:#ff9d9d}
p.fehler{
  background:rgba(255,157,157,.08);border-radius:var(--radius);
  padding:.7rem .9rem;
}

/* ---------- Bewegungsreduktion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  html{scroll-behavior:auto}
  #radar-chart{opacity:1;transform:none}
  /* Gleicher Endzustand, nur ohne Bewegung. */
  .radar-puls{display:none}
  .hat-js .bereich-panel.ist-aktiv{animation:none}
}

/* =====================================================================
   Site-Navigation & Site-Footer (Partials aus templates/partial-*.php)
   Markup 1:1 von der Hauptseite; Tailwind-Klassen kommen aus
   ../tailwind.min.css (vor dieser Datei geladen). Hier liegen nur die
   Custom-Klassen der Hauptseite (Inline-Styles der index.html als
   Klassen, CSP-konform) + Platz unter der fixierten Nav.
   ===================================================================== */

:root{--nav-hoehe:160px}
body{padding-top:var(--nav-hoehe)}
body.admin{padding-top:0}

/* Logo-Maße (ersetzen style="width:…" der Hauptseite, CSP-konform) */
.nav-logo-bild{width:120px;height:auto}
.fuss-logo-bild{width:110px;height:auto}

/* CTA-Button: mobil versteckt, ab Desktop sichtbar (wie Hauptseite) */
.nav-cta{display:none}
@media (min-width:1024px){.nav-cta{display:block !important}}

/* Glass-Flaeche des Footers (aus index.html uebernommen) */
.glass-section{
  background:rgba(11,20,28,0.7);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

/* font-inter ist auf der Hauptseite kein Tailwind-Token — hier abgesichert */
.font-inter{font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif}

/* Burger-Button (ersetzt style="min-width:24px;min-height:24px") */
#burger-btn{min-width:24px;min-height:24px;background:none;border:none;cursor:pointer}

/* Burger-Linien (aus index.html uebernommen) */
.burger-line{
  display:block;
  width:22px;
  height:2px;
  background:#ffffff;
  border-radius:2px;
  transition:transform 0.35s cubic-bezier(0.16,1,0.3,1),opacity 0.25s ease;
  transform-origin:center;
}
#burger-btn.open .burger-line-1{transform:translateY(8px) rotate(45deg)}
#burger-btn.open .burger-line-2{opacity:0;transform:scaleX(0)}
#burger-btn.open .burger-line-3{transform:translateY(-8px) rotate(-45deg)}

/* Mobile-Navigation als Overlay (aus index.html uebernommen) */
#mobile-nav{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.45s cubic-bezier(0.16,1,0.3,1),opacity 0.35s ease;
  opacity:0;
  background:rgba(11,20,28,0.97);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-top:1px solid rgba(255,255,255,0.05);
}
#mobile-nav.open{
  max-height:calc(100dvh - 72px);
  opacity:1;
  overflow-y:scroll;
  -webkit-overflow-scrolling:touch;
}
.mobile-nav-link{
  display:block;padding:0.75rem 0;
  font-family:'Manrope',sans-serif;font-size:0.9375rem;font-weight:500;
  color:#94a3b8;transition:color 0.2s;text-decoration:none;
}
.mobile-nav-link:hover{color:#fff}
.mobile-nav-link-aktiv{color:#ffffff}
/* ersetzt den Inline-Style des Kontakt-Eintrags der Hauptseite */
.mobile-nav-kontakt{
  margin-top:0.5rem;padding-top:0.85rem;
  border-top:1px solid rgba(255,255,255,0.08);
}

/* Widerrufs-Hinweis (seite-ansicht) — eigene Sektion vor dem Site-Footer,
   Optik des frueheren app-fuss */
.widerruf-hinweis{
  background:var(--surface-tief);
  padding:2.6rem 0 3rem;
  margin-top:2rem;
}
.widerruf-hinweis p{
  font-size:.83rem;color:var(--text-gedimmt);
  max-width:72ch;margin-bottom:1.2rem;
}
.widerruf-hinweis .fuss-links{
  display:flex;gap:1.4rem;flex-wrap:wrap;align-items:center;
  font-size:.85rem;
}
.widerruf-hinweis a{color:var(--text-gedimmt)}
.widerruf-hinweis a:hover{color:var(--primary)}

/* Top-3-Herleitung (Dok 18): aufklappbare Rechenweg-Erklaerung unter den
   drei Handlungsfeldern — nur am Bildschirm, der Druck traegt die
   Methodenseite. */
.top3-herleitung{
  margin-top:1.25rem;
  background:var(--surface-karte);
  border-radius:var(--radius);
  padding:1rem 1.25rem;
}
.top3-herleitung summary{cursor:pointer;font-weight:600;color:var(--on-surface)}
.top3-herleitung p{
  margin:.75rem 0 0;
  color:var(--on-surface-variant);
  font-size:.92rem;
  line-height:1.65;
}
