/* Ausbildung – ruhig, klar, Systemschrift. Mobil zuerst, Hell/Dunkel nach System. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --flaeche: #ffffff;
  --flaeche-2: #f9f9fb;
  --fuellung: rgba(118, 118, 128, 0.12);
  --fuellung-stark: rgba(118, 118, 128, 0.2);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --linie: rgba(0, 0, 0, 0.08);
  --linie-stark: rgba(0, 0, 0, 0.16);
  --feld-rand: #8a8a8e; /* ≥ 3:1 zu Feld und Karte */
  --schatten: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.05);
  --schatten-hoch: 0 2px 4px rgba(0, 0, 0, 0.05), 0 14px 36px rgba(0, 0, 0, 0.09);
  --gut: #1a7a36;
  --schlecht: #b3261e;
  --kopf-bg: rgba(245, 245, 247, 0.78);
  --r-l: 22px;
  --r-m: 14px;
  --r-s: 10px;
  --a1: 4px; --a2: 8px; --a3: 12px; --a4: 16px; --a5: 24px; --a6: 32px; --a7: 48px; --a8: 64px;
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --gross: clamp(2.125rem, 1.55rem + 2.2vw, 3rem);
  --titel-m: 1.375rem;
  --titel-k: 1.25rem;
  --body: 1.0625rem;
  --klein: 0.9375rem;
  --mini: 0.8125rem;
  --kurz: 180ms;
  --kurve: cubic-bezier(0.2, 0.8, 0.2, 1);
  --breite: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --flaeche: #1c1c1e;
    --flaeche-2: #242426;
    --fuellung: rgba(118, 118, 128, 0.24);
    --fuellung-stark: rgba(118, 118, 128, 0.36);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --linie: rgba(255, 255, 255, 0.1);
    --linie-stark: rgba(255, 255, 255, 0.2);
    --feld-rand: #77777d;
    --schatten: 0 0 0 1px rgba(255, 255, 255, 0.05);
    --schatten-hoch: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 14px 36px rgba(0, 0, 0, 0.5);
    --gut: #4cd471;
    --schlecht: #ff6961;
    --kopf-bg: rgba(0, 0, 0, 0.72);
  }
}

/* Akzent je Staffel; Werte auf Kontrast >= 4.5:1 gemessen (Text und Text auf Akzent). */
.akzent-0, .akzent-1 { --akzent: #0066cc; }
.akzent-2 { --akzent: #4f46c8; }
.akzent-3 { --akzent: #00727f; }
.akzent-4 { --akzent: #b04f00; }
.akzent-5 { --akzent: #c01f5b; }
.akzent-6 { --akzent: #476082; }
.akzent-7 { --akzent: #8a36c0; }
.akzent-8 { --akzent: #8a6100; }
[class*="akzent-"] {
  --akzent-auf: #ffffff;
  --akzent-weich: color-mix(in srgb, var(--akzent) 11%, transparent);
  --akzent-spur: color-mix(in srgb, var(--akzent) 16%, transparent);
}
@media (prefers-color-scheme: dark) {
  .akzent-0, .akzent-1 { --akzent: #4ea1ff; }
  .akzent-2 { --akzent: #9d97ff; }
  .akzent-3 { --akzent: #3cc8d8; }
  .akzent-4 { --akzent: #ff9f45; }
  .akzent-5 { --akzent: #ff6f9f; }
  .akzent-6 { --akzent: #9fb6dc; }
  .akzent-7 { --akzent: #c792ff; }
  .akzent-8 { --akzent: #e0b44a; }
  [class*="akzent-"] {
    --akzent-auf: #000000;
    --akzent-weich: color-mix(in srgb, var(--akzent) 16%, transparent);
    --akzent-spur: color-mix(in srgb, var(--akzent) 22%, transparent);
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--schrift);
  font-size: var(--body);
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere; /* lange deutsche Komposita bei 200 % Text */
}
h1, h2, h3, p { margin: 0; }
/* Silbentrennung nur auf schmalen Bildschirmen, wo lange Komposita sonst hart umbrechen. */
@media (max-width: 559px) { body { -webkit-hyphens: auto; hyphens: auto; } }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-inline { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.2em; margin-right: 0.25em; }
.icon-gross { width: 44px; height: 44px; color: var(--text-2); }

:focus-visible { outline: 3px solid var(--akzent, #0066cc); outline-offset: 2px; border-radius: 6px; }
.nur-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sprung {
  position: absolute; left: var(--a4); top: var(--a3); z-index: 100; transform: translateY(calc(-100% - 2 * var(--a3) - 40px));
  background: var(--flaeche); color: var(--text); padding: var(--a3) var(--a4);
  border-radius: var(--r-s); box-shadow: var(--schatten-hoch);
}
.sprung:focus { transform: none; }

/* ---------- Kopf und Navigation ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: var(--kopf-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--linie);
  padding-top: env(safe-area-inset-top);
}
.kopf-innen {
  max-width: var(--breite); margin: 0 auto; min-height: 52px;
  padding: 0 max(var(--a5), env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: var(--a4);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.1875rem; letter-spacing: -0.015em; min-height: 44px; }
.logo-zeichen, .anmeldung-zeichen { width: 24px; height: 24px; transform: rotate(-90deg); }
.logo-zeichen circle, .anmeldung-zeichen circle { fill: none; stroke: var(--fuellung-stark); stroke-width: 3.2; }
.logo-zeichen .logo-bogen, .anmeldung-zeichen .logo-bogen { stroke: var(--akzent, #0066cc); stroke-linecap: round; }

.nav ul { display: flex; gap: var(--a1); }
.nav a {
  display: inline-flex; align-items: center; gap: var(--a2);
  min-height: 44px; padding: 0 14px; border-radius: 980px;
  color: var(--text-2); font-size: var(--klein); font-weight: 560;
  transition: background-color var(--kurz) var(--kurve), color var(--kurz) var(--kurve);
}
.nav a:hover { color: var(--text); background: var(--fuellung); }
.nav a[aria-current="page"] { color: var(--text); background: var(--fuellung); }

@media (max-width: 719px) {
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--kopf-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--linie);
    padding: 6px var(--a2) calc(6px + env(safe-area-inset-bottom));
  }
  .kopf { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .nav ul { justify-content: space-around; }
  .nav li { flex: 1; min-width: 0; }
  /* Tab-Leiste wächst wie unter iOS nicht mit der Textgröße (sonst seitliches Scrollen bei 200 %). */
  .nav a { flex-direction: column; gap: 2px; width: 100%; padding: 4px 0; border-radius: var(--r-s); font-size: min(0.6875rem, 14px); font-weight: 560; }
  .nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav a .icon { width: 26px; height: 26px; }
  .nav a[aria-current="page"] { background: none; color: var(--akzent); }
  .nav a:hover { background: none; }
  body.mit-nav { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* ---------- Inhalt ---------- */
.inhalt {
  flex: 1; width: 100%; max-width: var(--breite); margin: 0 auto;
  padding: var(--a5) max(var(--a5), env(safe-area-inset-left)) var(--a7);
}
.inhalt:focus { outline: none; }
.fuss { text-align: center; padding: var(--a5) var(--a5) var(--a6); font-size: var(--mini); color: var(--text-2); }
.fuss a { display: inline-block; min-height: 44px; line-height: 44px; padding: 0 var(--a3); }
.fuss a:hover { color: var(--text); }

.seitenkopf { padding: var(--a4) 0 var(--a5); display: grid; gap: var(--a2); }
.seitenkopf-mit-ring { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--a4); }
.seitenkopf-mit-ring > div { display: grid; gap: var(--a2); }
/* iPhone: Großer Titel über die volle Breite, Ring kleiner darunter. */
@media (max-width: 559px) {
  .seitenkopf-mit-ring { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .seitenkopf-mit-ring > .ring-l { width: 64px; height: 64px; }
  .seitenkopf-mit-ring > .ring-l .ring-zahl { font-size: min(1rem, 18px); }
  .seitenkopf-mit-ring { padding-bottom: var(--a2); }
  .seitenkopf + .abschnitt-titel { margin-top: var(--a5); }
}
.titel-gross { font-size: var(--gross); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.titel-video { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
.titel-mittel { font-size: var(--titel-m); line-height: 1.27; font-weight: 650; letter-spacing: -0.012em; text-wrap: balance; }
.titel-klein { font-size: var(--titel-k); line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
.untertitel { font-size: 1.1875rem; line-height: 1.42; color: var(--text-2); max-width: 46ch; text-wrap: pretty; }
.eyebrow { font-size: var(--mini); line-height: 1.38; font-weight: 600; letter-spacing: 0.01em; color: var(--text-2); }
.akzent-text { color: var(--akzent); }
.meta { color: var(--text-2); font-size: var(--klein); }
.zahl { font-variant-numeric: tabular-nums; }
.zahl-dezent { color: var(--text-2); font-weight: 500; margin-left: var(--a1); }
.abschnitt-titel { font-size: var(--titel-k); font-weight: 650; letter-spacing: -0.01em; margin: var(--a7) 0 var(--a3); }
.leer { color: var(--text-2); padding: var(--a5); background: var(--flaeche); border-radius: var(--r-l); }
.hinweis-klein { color: var(--text-2); font-size: var(--klein); text-align: center; }
.zurueck {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -6px;
  color: var(--akzent); font-size: var(--body); width: fit-content;
}
.zurueck:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Karten ---------- */
.karte {
  background: var(--flaeche); border-radius: var(--r-l); box-shadow: var(--schatten);
  padding: var(--a5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--a3); align-content: start;
}
@media (min-width: 720px) { .karte { padding: 28px; } }

/* Datenschutzhinweis: Textkarten mit Begriffsliste, gut lesbare Zeilenlänge. */
.text-karte { margin-bottom: var(--a4); max-width: 70ch; }
.text-karte p { line-height: 1.5; text-wrap: pretty; }
.datenliste { display: grid; gap: var(--a1) var(--a4); }
.datenliste dt { font-weight: 600; }
.datenliste dd { color: var(--text-2); line-height: 1.5; margin-bottom: var(--a2); }
@media (min-width: 720px) { .datenliste { grid-template-columns: minmax(10rem, max-content) minmax(0, 1fr); } .datenliste dd { margin-bottom: 0; } }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--a2);
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 980px;
  font-size: var(--body); font-weight: 600; cursor: pointer; text-align: center;
  transition: transform var(--kurz) var(--kurve), filter var(--kurz) var(--kurve), background-color var(--kurz) var(--kurve);
  -webkit-tap-highlight-color: transparent;
}
.knopf:active { transform: scale(0.97); }
.knopf-primaer { background: var(--akzent); color: var(--akzent-auf); }
.knopf-primaer:hover { filter: brightness(1.08); }
.knopf-primaer:active { filter: brightness(0.92); }
.knopf-zweit { background: var(--fuellung); color: var(--text); }
.knopf-zweit:hover { background: var(--fuellung-stark); }
.knopf-warn { color: var(--schlecht); }
.knopf-klein { min-height: 44px; padding: 0 16px; font-size: var(--klein); }
.knopf-breit { width: 100%; }
.knopf .icon { width: 20px; height: 20px; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: var(--a3); align-items: center; }
.knopfreihe form { display: contents; }

/* ---------- Fortschrittsringe und Balken ---------- */
.ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-spur { stroke: var(--akzent-spur, var(--fuellung)); }
.ring-wert { stroke: var(--akzent); stroke-linecap: round; }
.ring-leer .ring-wert { display: none; }
.ring-zahl { position: absolute; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ring-zahl small { font-size: 0.6em; font-weight: 600; margin-left: 1px; color: var(--text-2); }
.ring-s { width: 32px; height: 32px; }
.ring-s circle { stroke-width: 6; }
.ring-m { width: 64px; height: 64px; }
.ring-m .ring-zahl { font-size: min(1rem, 18px); } /* Zahl im Ring wächst nicht über den Ring hinaus */
.ring-l { width: 92px; height: 92px; }
.ring-l .ring-zahl { font-size: min(1.375rem, 24px); }
.ring-xl { width: 148px; height: 148px; }
.ring-xl circle { stroke-width: 4.2; }
.ring-xl .ring-zahl { font-size: min(2.25rem, 40px); }

.balken { display: block; width: 100%; height: 6px; }
.balken svg { width: 100%; height: 6px; overflow: visible; }
.balken-spur { fill: var(--akzent-spur, var(--fuellung)); }
.balken-wert { fill: var(--akzent); }

/* ---------- Start ---------- */
.start-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--a4); }
@media (min-width: 820px) { .start-raster { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.weiter {
  background: radial-gradient(120% 140% at 0% 0%, var(--akzent-weich), transparent 62%), var(--flaeche);
  gap: var(--a3); padding: var(--a5);
}
@media (min-width: 720px) { .weiter { padding: var(--a6); } }
.weiter .eyebrow { color: var(--akzent); }
.weiter .titel-mittel { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem); }
.weiter .knopf { justify-self: start; margin-top: var(--a2); }
.gesamt { justify-items: center; text-align: center; align-content: center; gap: var(--a4); }
/* Schmal: Gesamtfortschritt als kompakte Zeile, damit die Staffeln früher sichtbar sind. */
@media (max-width: 819px) {
  .gesamt { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; column-gap: var(--a4); row-gap: 2px; align-items: center; }
  .gesamt > h2 { grid-column: 2; grid-row: 1; align-self: end; }
  .gesamt > .ring { grid-column: 1; grid-row: 1 / span 2; width: 72px; height: 72px; }
  .gesamt > .ring .ring-zahl { font-size: min(1.125rem, 20px); }
  .gesamt > .meta { grid-column: 2; grid-row: 2; align-self: start; }
}

.staffel-liste { display: grid; gap: var(--a4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.staffel-karte {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--a4);
  height: 100%; transition: transform var(--kurz) var(--kurve), box-shadow var(--kurz) var(--kurve);
}
.staffel-karte:hover { box-shadow: var(--schatten-hoch); transform: translateY(-2px); }
.staffel-karte:active { transform: scale(0.99); }
.staffel-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 0; }
.staffel-text .eyebrow { color: var(--akzent); }
.staffel-titel { font-size: var(--titel-k); font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.staffel-versprechen { color: var(--text-2); font-size: var(--klein); line-height: 1.4; }
.staffel-meta { margin-top: var(--a2); font-size: var(--mini); color: var(--text-2); }
.pfeil { color: var(--text-2); width: 18px; height: 18px; }
/* Große Schrift: Ring und Pfeil über den Text statt drei schmaler Spalten. */
.staffel-liste > li { container-type: inline-size; }
@container (max-width: 18em) {
  .staffel-karte { grid-template-columns: minmax(0, 1fr) auto; }
  .staffel-karte > .staffel-text { grid-column: 1 / -1; grid-row: 2; }
}
.ist-gesperrt .staffel-titel, .ist-gesperrt .zeile-titel { color: var(--text-2); }

/* ---------- Zeilen (gruppierte Listen) ---------- */
.zeilen { background: var(--flaeche); border-radius: var(--r-l); box-shadow: var(--schatten); overflow: hidden; }
.zeilen > li + li { border-top: 1px solid var(--linie); }
.zeile {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px var(--a4) 14px 18px;
  transition: background-color var(--kurz) var(--kurve);
}
a.zeile:hover { background: var(--flaeche-2); }
a.zeile:active { background: var(--fuellung); }
.zeile:focus-visible { outline-offset: -3px; border-radius: 0; }
.zeile-symbol {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--akzent-weich); color: var(--akzent); font-weight: 650; font-size: var(--klein); font-variant-numeric: tabular-nums;
}
.zeile-symbol .icon { width: 18px; height: 18px; }
.ist-fertig .zeile-symbol { background: var(--akzent); color: var(--akzent-auf); }
.ist-gesperrt .zeile-symbol, .ist-vorbereitung .zeile-symbol { background: var(--fuellung); color: var(--text-2); }
.zeile-hinweis { color: var(--text-2); font-size: var(--mini); line-height: 1.38; font-weight: 500; }
.zeile-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; flex: 1; min-width: 0; }
.zeile-titel { font-weight: 560; line-height: 1.3; }
.zeile-meta { color: var(--text-2); font-size: var(--mini); line-height: 1.38; }
.zeile .balken { margin: 6px 0 2px; max-width: 360px; }
.zeilen-schlicht .zeile { min-height: 56px; }

.zustand { display: inline-flex; align-items: center; gap: 5px; font-size: var(--mini); font-weight: 560; color: var(--text-2); white-space: nowrap; }
.zustand .icon { width: 16px; height: 16px; }
.zustand-fertig { color: var(--akzent, var(--gut)); }
.vorbereitung-hinweis { display: flex; gap: var(--a2); align-items: flex-start; color: var(--text-2); font-size: var(--klein); line-height: 1.4; margin-top: var(--a2); }
.vorbereitung-hinweis .icon-inline { flex: none; margin: 0.1em 0 0; }
.vorbereitung-karte { display: grid; justify-items: start; gap: var(--a3); max-width: 720px; }
.vorbereitung-karte .platzhalter-symbol { color: var(--text-2); margin-bottom: 0; }
.bester { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; }
@media (max-width: 559px) {
  /* Nur in Zeilen mit Symbol links (Lernlisten); Ergebnis- und Verwaltungslisten behalten den Text. */
  a.zeile > .zustand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* ---------- Video ---------- */
.video-raster { display: grid; gap: var(--a4); }
@media (min-width: 980px) { .video-raster { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.video-seite { display: grid; gap: var(--a4); }
.lernziel { font-size: var(--body); line-height: 1.47; }

.spieler {
  position: relative; aspect-ratio: 16 / 9; background: #000; color: #fff;
  border-radius: 18px; overflow: hidden; box-shadow: var(--schatten-hoch);
}
.spieler video { width: 100%; height: 100%; object-fit: contain; }
.spieler:fullscreen { border-radius: 0; aspect-ratio: auto; }
.spieler-gross {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(30, 30, 32, 0.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: opacity var(--kurz) var(--kurve), transform var(--kurz) var(--kurve);
}
.spieler-gross .icon { width: 34px; height: 34px; margin-left: 4px; }
.spieler-gross:hover { transform: scale(1.05); }
.spieler.laeuft .spieler-gross { opacity: 0; pointer-events: none; }
.spieler-leiste {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px var(--a3) var(--a2);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0));
  transition: opacity 240ms var(--kurve);
}
.spieler.laeuft.ruhig:not(:focus-within) .spieler-leiste { opacity: 0; }
.spieler.laeuft.ruhig:not(:focus-within) { cursor: none; }
.spieler-knoepfe { display: flex; align-items: center; gap: 2px; }
.spieler-knopf {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.spieler-knopf:hover { background: rgba(255, 255, 255, 0.16); }
.spieler-knopf:focus-visible, .spieler-gross:focus-visible, .spieler input:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.spieler-knopf[aria-pressed="true"] { background: rgba(255, 255, 255, 0.24); }
.spieler-tempo { width: auto; min-width: 52px; padding: 0 10px; border-radius: 22px; font-weight: 650; font-size: var(--klein); font-variant-numeric: tabular-nums; }
.spieler-zeitanzeige { font-size: var(--mini); font-variant-numeric: tabular-nums; padding: 0 var(--a2); white-space: nowrap; }
.spieler-luft { flex: 1; }
.spieler input[type="range"] {
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; margin: 0;
  --wert: 0%;
}
.spieler-zeit { width: 100%; height: 44px; display: block; } /* Trefferfläche 44 px, Schiene bleibt 4 px */
.spieler-lautstaerke { width: 84px; height: 44px; }
.spieler input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, #fff var(--wert), rgba(255, 255, 255, 0.32) var(--wert));
}
.spieler input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.32); }
.spieler input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.spieler input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -5px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.spieler input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.spieler video::cue { font-family: var(--schrift); background: rgba(0, 0, 0, 0.72); }
@media (max-width: 559px) {
  .spieler-lautstaerke, .spieler-knoepfe [data-aktion="zurueck"] { display: none; }
  .spieler-leiste { padding: 20px var(--a1) 2px; }
}
.spieler-tipp { margin-top: var(--a3); color: var(--text-2); font-size: var(--mini); }
@media (hover: none) { .spieler-tipp { display: none; } }

.platzhalter {
  aspect-ratio: 16 / 9; border-radius: 18px; display: grid; place-content: center; justify-items: center;
  gap: var(--a2); text-align: center; padding: var(--a5);
  background: radial-gradient(90% 120% at 20% 0%, var(--akzent-spur), transparent 60%),
    radial-gradient(70% 90% at 100% 100%, var(--akzent-weich), transparent 70%), var(--flaeche);
  box-shadow: var(--schatten);
}
.platzhalter-symbol {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--flaeche); color: var(--akzent); box-shadow: var(--schatten); margin-bottom: var(--a2);
}
.platzhalter-symbol .icon { width: 30px; height: 30px; }
.platzhalter-titel { font-size: var(--titel-m); font-weight: 650; letter-spacing: -0.012em; }
.platzhalter-text { color: var(--text-2); font-size: var(--klein); max-width: 34ch; }

.stand-liste { display: grid; gap: var(--a3); margin: var(--a1) 0 var(--a2); }
.stand-liste li { display: flex; align-items: center; gap: var(--a3); }
.stand-liste li > span:last-child { display: grid; }
.stand-titel { font-weight: 560; }
.stand-meta { color: var(--text-2); font-size: var(--mini); font-variant-numeric: tabular-nums; }
.stand-icon { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--akzent-weich); color: var(--akzent); }
.stand-icon.ist-fertig { background: var(--akzent); color: var(--akzent-auf); }

.blaettern { display: grid; grid-template-columns: 1fr 1fr; gap: var(--a3); margin-top: var(--a6); }
.blaettern-link {
  display: flex; align-items: center; gap: var(--a2); min-height: 64px; padding: var(--a3) var(--a4);
  background: var(--flaeche); border-radius: var(--r-m); box-shadow: var(--schatten); color: var(--text);
  font-weight: 560; font-size: var(--klein); line-height: 1.3;
}
.blaettern-link small { display: block; color: var(--text-2); font-size: var(--mini); font-weight: 500; }
.blaettern-link .icon { color: var(--akzent); }
.blaettern-link:hover { box-shadow: var(--schatten-hoch); }
.blaettern-nach { justify-content: flex-end; text-align: right; grid-column: 2; }
.blaettern-link.ist-gesperrt { background: var(--flaeche-2); box-shadow: none; color: var(--text-2); }
.blaettern-link.ist-gesperrt .icon { color: var(--text-2); }
.blaettern-grund { display: block; margin-top: 2px; font-size: var(--mini); font-weight: 500; }

/* ---------- Tests ---------- */
.test-kopf, .frage-karte, .test-einstieg, .ergebnis-karte, .auswertung { max-width: 720px; }
/* Test-Seiten: schmale Spalte mittig unter der breiten Kopfzeile statt linksbündig mit leerem Rand. */
.inhalt:has(.test-kopf, .test-einstieg, .ergebnis-karte) { max-width: calc(720px + 2 * var(--a5)); }
.test-kopf { display: grid; gap: var(--a2); padding: var(--a3) 0 var(--a5); }
.test-kopf .balken { height: 6px; }
.frage-karte { gap: var(--a5); }
.frage-karte fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--a4); }
.frage-text { font-size: var(--titel-m); line-height: 1.3; font-weight: 650; letter-spacing: -0.012em; padding: 0; text-wrap: pretty; }
.optionen { display: grid; gap: 10px; }
.option {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px;
  padding: 12px var(--a4); border-radius: var(--r-m); border: 1.5px solid var(--linie-stark);
  background: var(--flaeche); cursor: pointer; line-height: 1.38;
  transition: border-color var(--kurz) var(--kurve), background-color var(--kurz) var(--kurve);
}
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option:hover { background: var(--flaeche-2); }
.option:has(input:focus-visible) { outline: 3px solid var(--akzent); outline-offset: 2px; }
.option:has(input:checked) { border-color: var(--akzent); background: var(--akzent-weich); }
.option-buchstabe {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%;
  background: var(--fuellung); font-weight: 650; font-size: var(--klein);
}
.option-buchstabe .icon { width: 18px; height: 18px; }
.option:has(input:checked) .option-buchstabe { background: var(--akzent); color: var(--akzent-auf); }
.option-text { display: grid; gap: 2px; }
.option-fest { cursor: default; }
.option-fest:hover { background: var(--flaeche); }
.option-fest.ist-richtig { border-color: var(--gut); }
.option-fest.ist-richtig .option-buchstabe { background: var(--gut); color: var(--flaeche); }
.option-fest.ist-falsch { border-color: var(--schlecht); border-style: dashed; }
.option-marke { font-size: var(--mini); font-weight: 600; color: var(--text-2); }
.ist-richtig .option-marke { color: var(--gut); }
.ist-falsch .option-marke { color: var(--schlecht); }
.rueckmeldung { display: flex; align-items: center; gap: var(--a2); font-weight: 650; font-size: var(--body); }
.rueckmeldung.ist-richtig { color: var(--gut); }
.rueckmeldung.ist-falsch { color: var(--schlecht); }
.rueckmeldung .icon { width: 24px; height: 24px; }

.fakten { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--a3); text-align: center; margin-bottom: var(--a2); }
.fakten li { display: grid; gap: 2px; padding: var(--a4) var(--a2); border-radius: var(--r-m); background: var(--akzent-weich); }
.fakt-zahl { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; color: var(--akzent); font-variant-numeric: tabular-nums; }
.fakt-text { font-size: var(--mini); color: var(--text-2); line-height: 1.3; }
.test-einstieg form { margin-top: var(--a2); }

.ergebnis-karte { justify-items: center; text-align: center; gap: var(--a4); padding: var(--a6) var(--a5); }
.ergebnis-karte .knopfreihe { justify-content: center; margin-top: var(--a2); }
.ergebnis-karte > .eyebrow { margin-bottom: calc(-1 * var(--a3)); }
.auswertung { display: grid; gap: var(--a3); }
.auswertung-eintrag { gap: var(--a2); }
.auswertung-kopf { display: flex; align-items: center; gap: 6px; font-size: var(--mini); font-weight: 650; }
.auswertung-kopf .icon { width: 18px; height: 18px; }
.auswertung-eintrag.ist-richtig .auswertung-kopf { color: var(--gut); }
.auswertung-eintrag.ist-falsch .auswertung-kopf { color: var(--schlecht); }
.auswertung .frage-text { font-size: var(--body); }
.auswertung-antwort { font-size: var(--klein); }
.erklaerung { font-size: var(--klein); color: var(--text-2); line-height: 1.47; border-left: 3px solid var(--akzent-spur); padding-left: var(--a3); }

/* ---------- Gesperrt, Fehler ---------- */
.gesperrt-karte { max-width: 560px; margin: var(--a7) auto; justify-items: center; text-align: center; gap: var(--a4); padding: var(--a6); }
.gesperrt-karte p { color: var(--text-2); }
.gesperrt-karte .knopfreihe { justify-content: center; }

/* ---------- Anmeldung ---------- */
.seite-anmeldung .inhalt { display: grid; place-items: center; }
.anmeldung { width: 100%; max-width: 420px; display: grid; gap: var(--a5); }
.anmeldung-karte { justify-items: center; text-align: center; padding: var(--a6) var(--a5); gap: var(--a3); }
.anmeldung-zeichen { width: 56px; height: 56px; margin-bottom: var(--a2); }
.anmeldung .formular { width: 100%; text-align: left; margin-top: var(--a3); }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: var(--a4); }
.feld { display: grid; gap: 6px; }
.feld label { font-weight: 600; font-size: var(--klein); }
.feld input {
  width: 100%; min-height: 50px; padding: 0 var(--a4); border-radius: 12px;
  border: 1px solid var(--feld-rand); background: var(--flaeche-2); font-size: var(--body);
  transition: border-color var(--kurz) var(--kurve), box-shadow var(--kurz) var(--kurve);
}
.feld input:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 4px var(--akzent-spur); }
.feld input[aria-invalid="true"] { border-color: var(--schlecht); }
.hilfetext { font-size: var(--mini); color: var(--text-2); }
.fehlertext { font-size: var(--klein); color: var(--schlecht); font-weight: 500; }
.auswahl { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.auswahl input { width: 22px; height: 22px; accent-color: var(--akzent); }
@media (min-width: 720px) {
  .formular-reihe { grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; }
  .formular-reihe .auswahl, .formular-reihe .knopf { margin-top: 27px; }
  .formular-reihe .knopf { min-height: 50px; }
}
.meldung {
  display: flex; align-items: center; gap: var(--a2); margin-bottom: var(--a4); padding: var(--a3) var(--a4);
  border-radius: var(--r-m); background: var(--akzent-weich); font-weight: 500;
}
.meldung .icon { color: var(--akzent); }

/* ---------- Profil und Verwaltung ---------- */
.profil-karte { grid-template-columns: auto 1fr; align-items: center; gap: var(--a4); }
.profil-karte form { grid-column: 1 / -1; }
.avatar {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--akzent); color: var(--akzent-auf); font-size: 1.625rem; font-weight: 650;
}
.avatar-klein { width: 40px; height: 40px; font-size: 1.0625rem; flex: none; }
.marke {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 980px; margin-left: 6px;
  background: var(--fuellung); color: var(--text); font-size: var(--mini); font-weight: 560; vertical-align: 1px;
}
.marke-warn { color: var(--schlecht); }
.bloecke { display: grid; gap: var(--a4); }
.lernfreigaben { margin-bottom: var(--a4); }
@media (min-width: 900px) { .bloecke { grid-template-columns: 1fr 1fr; } }
.block-kopf { display: flex; justify-content: space-between; align-items: center; gap: var(--a3); flex-wrap: wrap; }
.bloecke .zeilen { box-shadow: none; border-radius: 0; background: transparent; margin: 0 calc(-1 * var(--a4)); }
.bloecke .zeile { padding-left: var(--a4); }

/* ---------- Bewegung: nur ohne „Bewegung reduzieren“ ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 200ms; }
  .ring-wert { animation: ring-ein 900ms var(--kurve) both; }
  @keyframes ring-ein { from { stroke-dashoffset: 100; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (forced-colors: active) {
  .ring-wert, .balken-wert { stroke: CanvasText; fill: CanvasText; }
  .knopf { border: 1px solid ButtonText; }
}
.spieler.hat-fehler::after {
  content: "Das Video konnte nicht geladen werden. Lade die Seite neu.";
  position: absolute; left: var(--a5); right: var(--a5); top: 50%; transform: translateY(-50%);
  text-align: center; font-weight: 600; color: #fff;
}
.spieler.hat-fehler .spieler-gross { display: none; }
