/* Lehrerlernen · Komponenten. Nur Variablen aus tokens.css (B-14). Ein Knopfstil je Rang, ein Kartenstil. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: var(--gr-m);
  line-height: var(--zeile);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--marke); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--marke); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprung { position: absolute; left: var(--a2); top: -60px; z-index: 50; background: var(--marke); color: var(--auf-marke); padding: var(--a2) var(--a4); border-radius: var(--r-s); }
.sprung:focus { top: var(--a2); }
.icon { flex: none; }
.noscript { padding: var(--a5); }

/* ── Kopf ── */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: var(--grund);
  border-bottom: var(--strich) solid var(--linie);
  padding-top: env(safe-area-inset-top);
}
.kopf-innen {
  max-width: var(--breite-inhalt); margin: 0 auto;
  height: 56px; padding: 0 var(--a3);
  display: flex; align-items: center; gap: var(--a2);
}
.kopf-zurueck {
  width: var(--tipp); height: var(--tipp); display: grid; place-items: center;
  border: 0; background: transparent; border-radius: var(--r-rund); color: var(--text); cursor: pointer; margin-left: calc(-1 * var(--a1));
}
.kopf-zurueck:hover { background: var(--flaeche-2); }
.kopf-marke { display: flex; align-items: center; justify-content: center; gap: var(--a2); text-decoration: none; color: var(--text); min-height: var(--tipp); min-width: var(--tipp); }
.wortmarke { font-family: var(--schrift-titel); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.wortmarke em { font-style: italic; font-weight: 500; color: var(--marke); }
.kopf-marke.mit-zurueck .wortmarke { display: none; }
.kopf-titel { font-family: var(--schrift-titel); font-weight: 600; font-size: var(--gr-l); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kopf-nav { margin-left: auto; display: none; }
.kopf-nav-liste { list-style: none; display: flex; gap: var(--a1); }

.nav-link {
  display: flex; align-items: center; gap: var(--a2);
  text-decoration: none; color: var(--text-2); font-weight: 500;
  min-height: var(--tipp); padding: 0 var(--a3); border-radius: var(--r-rund);
  transition: background var(--t-kurz) var(--kurve), color var(--t-kurz) var(--kurve);
}
.nav-link:hover { background: var(--flaeche-2); color: var(--text); }
.nav-link.aktiv { color: var(--marke); background: var(--marke-zart); }

/* ── Leiste unten (Handy) ── */
.leiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--flaeche);
  border-top: var(--strich) solid var(--linie);
  padding-bottom: env(safe-area-inset-bottom);
}
.leiste-liste { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); height: var(--leiste-unten); max-width: 560px; margin: 0 auto; }
.leiste .nav-link { flex-direction: column; justify-content: center; gap: 2px; height: 100%; border-radius: 0; padding: 0; font-size: var(--gr-xs); background: transparent; position: relative; }
.leiste .nav-link.aktiv { background: transparent; }
.leiste .nav-link.aktiv::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--marke); }
body.mit-leiste .inhalt { padding-bottom: calc(var(--leiste-unten) + var(--a6) + env(safe-area-inset-bottom)); }

@media (min-width: 900px) {
  .kopf-innen { height: var(--leiste-oben); padding: 0 var(--a5); }
  .kopf-marke.mit-zurueck .wortmarke { display: inline; }
  .kopf-titel { display: none; }
  .kopf-nav { display: block; }
  .leiste { display: none; }
  body.mit-leiste .inhalt { padding-bottom: var(--a7); }
}

/* ── Inhalt und Seiten ── */
.inhalt { display: block; padding: var(--a5) var(--a4) var(--a7); outline: none; min-height: 60vh; }
.seite { max-width: var(--breite-inhalt); margin: 0 auto; }
.seite-schmal { max-width: 540px; }
.seite-mittel { max-width: 760px; }
.seite-titel { font-family: var(--schrift-titel); font-size: var(--gr-2xl); letter-spacing: -0.015em; font-weight: 600; outline: none; }
.seite-unter { color: var(--text-2); margin-top: var(--a2); max-width: var(--breite-text); }
.seite-titel + .karte, .seite-titel + .leer-zustand { margin-top: var(--a5); }
.kicker {
  display: inline-flex; align-items: center; gap: var(--a1);
  font-size: var(--gr-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  color: var(--text-leise); margin-bottom: var(--a1);
}
.kicker-link { text-decoration: none; min-height: var(--tipp); margin-bottom: 0; }
.kicker-link:hover { color: var(--marke); }
.abschnitt-titel { font-family: var(--schrift-titel); font-size: var(--gr-l); margin: var(--a6) 0 var(--a3); font-weight: 600; }
.seiten-kopf { margin-bottom: var(--a5); }
.seiten-kopf.mit-icon { display: flex; align-items: center; gap: var(--a4); }
.seiten-icon { width: 56px; height: 56px; border-radius: var(--r-l); display: grid; place-items: center; background: var(--marke-zart); color: var(--marke); flex: none; }
.fussnote { color: var(--text-leise); font-size: var(--gr-s); margin-top: var(--a6); text-align: center; }
.leise { color: var(--text-leise); }
.laden { min-height: 50vh; }
@media (min-width: 900px) {
  .inhalt { padding: var(--a6) var(--a5) var(--a7); }
  .seite-titel { font-size: var(--gr-3xl); }
}

/* ── Karten ── */
.karte {
  background: var(--flaeche);
  border: var(--strich) solid var(--linie);
  border-radius: var(--r-l);
  padding: var(--a4) var(--a4);
  box-shadow: var(--schatten-1);
}
.karte + .karte { margin-top: var(--a3); }
.karte-titel { display: flex; align-items: center; gap: var(--a2); font-family: var(--schrift-text); font-size: var(--gr-s); font-weight: 600; color: var(--text-2); letter-spacing: .01em; margin-bottom: var(--a3); }
.karte-titel .icon { color: var(--marke); }
.karte-titel-abstand { margin-top: var(--a5); }
.karte-text { margin-top: var(--a2); font-size: var(--gr-s); color: var(--text-2); }
.karte-kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: var(--a2); margin-bottom: var(--a2); }
.karte-kopfzeile .karte-titel { margin-bottom: 0; }
@media (min-width: 640px) { .karte { padding: var(--a5); } }

/* ── Knöpfe (B-06: 48 px hoch, Abstand ≥ 8 px) ── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--a2);
  min-height: var(--knopf-hoehe); padding: 0 var(--a5);
  border-radius: var(--r-m); border: var(--strich) solid transparent;
  font-weight: 600; font-size: var(--gr-m); text-decoration: none; cursor: pointer;
  transition: background var(--t-kurz) var(--kurve), border-color var(--t-kurz) var(--kurve), transform var(--t-kurz) var(--kurve);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.knopf:active:not(:disabled) { transform: scale(.98); }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.knopf-haupt { background: var(--marke); color: var(--auf-marke); }
.knopf-haupt:hover:not(:disabled) { background: var(--marke-tief); }
.knopf-neben { background: var(--flaeche); color: var(--text); border-color: var(--linie-stark); }
.knopf-neben:hover:not(:disabled) { border-color: var(--marke); color: var(--marke); }
.knopf-text { background: transparent; color: var(--marke); padding: 0 var(--a3); }
.knopf-text:hover:not(:disabled) { background: var(--marke-zart); }
.knopf-klein { min-height: var(--tipp); padding: 0 var(--a3); font-size: var(--gr-s); }
.knopf-voll { width: 100%; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: var(--a2); margin-top: var(--a4); align-items: center; }
.knopf-stapel { display: flex; flex-direction: column; gap: var(--a2); margin-top: var(--a5); }
.icon-knopf {
  width: var(--tipp); height: var(--tipp); flex: none; display: inline-grid; place-items: center;
  border: 0; background: transparent; color: var(--text-2); border-radius: var(--r-rund); cursor: pointer;
}
.icon-knopf:hover { background: var(--flaeche-2); color: var(--marke); }

/* ── Marken (kleine Etiketten) ── */
.marken { display: flex; flex-wrap: wrap; gap: var(--a1) var(--a2); margin-top: var(--a3); }
.marke-klein {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--gr-xs); font-weight: 500; color: var(--text-2);
  background: var(--flaeche-2); border-radius: var(--r-rund); padding: 2px 10px; min-height: 24px;
}
.marke-akzent { background: var(--akzent-zart); color: var(--akzent); }

/* ── Hinweise und leere Zustände (B-11) ── */
.hinweis-box {
  display: flex; gap: var(--a3); align-items: flex-start;
  background: var(--marke-zart); color: var(--text); border-radius: var(--r-m); padding: var(--a3) var(--a4); margin-top: var(--a4); font-size: var(--gr-s);
}
.hinweis-box > .icon { color: var(--marke); margin-top: 1px; }
.hinweis-box p { flex: 1; }
.hinweis-box .knopf { margin: -6px -8px -6px 0; }
.hinweis-sanft { background: var(--akzent-zart); }
.hinweis-sanft > .icon { color: var(--akzent); }
.leer-zustand { text-align: center; padding: var(--a6) var(--a4); color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: var(--a3); }
.leer-zustand > .icon { color: var(--akzent); }
.leer-zustand .seite-titel { color: var(--text); }
.leer-zustand .leer-titel { font-family: var(--schrift-titel); font-size: var(--gr-l); color: var(--text); font-weight: 600; }
.leer-zustand p { max-width: 440px; }
.leer-klein { color: var(--text-2); font-size: var(--gr-s); }
.leer-klein .knopf { margin-top: var(--a3); }

/* ── Balken, Ring, Stufen ── */
.balken { height: 6px; background: var(--flaeche-2); border-radius: var(--r-rund); overflow: hidden; margin: 6px 0 4px; }
.balken-wert { display: block; height: 100%; background: var(--marke); border-radius: inherit; transition: width var(--t-mittel) var(--kurve); }
.ring-spur { fill: none; stroke: var(--flaeche-2); stroke-width: 4; }
.ring-wert { fill: none; stroke: var(--marke); stroke-width: 4; stroke-linecap: round; }

.stufen { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--a1); margin-top: var(--a3); }
.stufe { display: flex; flex-direction: column; gap: 6px; }
.stufe-strich { height: 4px; border-radius: var(--r-rund); background: var(--flaeche-2); }
.stufe.erreicht .stufe-strich { background: var(--marke); }
.stufe:last-child.erreicht .stufe-strich { background: var(--akzent); }
.stufe-name { font-size: var(--gr-xs); color: var(--text-leise); font-weight: 500; }
.stufe.aktuell .stufe-name { color: var(--text); font-weight: 600; }
.stufen-kompakt { display: inline-flex; align-items: center; gap: 3px; margin-top: var(--a2); }
.stufen-kompakt .stufe-strich { width: 18px; height: 4px; }
.stufen-kompakt .stufen-name { font-size: var(--gr-xs); color: var(--text-2); margin-left: var(--a2); font-weight: 500; }

/* ── Willkommen ── */
.willkommen { display: grid; gap: var(--a6); padding-top: var(--a4); }
.willkommen-text { max-width: 560px; }
.willkommen-marke { margin-bottom: var(--a4); }
.willkommen-titel { font-family: var(--schrift-titel); font-size: 2.6rem; letter-spacing: -0.02em; font-weight: 600; line-height: 1.05; outline: none; }
.willkommen-titel em { font-weight: 500; color: var(--marke); }
.willkommen-claim { font-family: var(--schrift-titel); font-style: italic; font-size: var(--gr-xl); color: var(--text); margin-top: var(--a3); }
.willkommen-claim::after { content: ""; display: block; width: 48px; height: 2px; background: var(--akzent); margin-top: var(--a4); border-radius: 2px; }
.willkommen-unter { color: var(--text-2); margin-top: var(--a4); }
.merkmale { list-style: none; display: grid; gap: var(--a3); align-content: start; }
.merkmal { display: flex; gap: var(--a3); align-items: flex-start; background: var(--flaeche); border: var(--strich) solid var(--linie); border-radius: var(--r-l); padding: var(--a4); }
.merkmal-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-m); background: var(--marke-zart); color: var(--marke); flex: none; }
.merkmal strong { display: block; font-family: var(--schrift-titel); font-size: var(--gr-l); }
.merkmal span:not(.merkmal-icon) { color: var(--text-2); font-size: var(--gr-s); }
.geraet-konten { margin-top: var(--a5); }
.klein-titel { font-size: var(--gr-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-leise); font-weight: 600; margin-bottom: var(--a2); }
.konto-zeile {
  display: flex; align-items: center; gap: var(--a3); width: 100%; text-align: left;
  background: var(--flaeche); border: var(--strich) solid var(--linie); border-radius: var(--r-m); padding: var(--a2) var(--a3); min-height: 56px; cursor: pointer;
}
.konto-zeile + .konto-zeile { margin-top: var(--a2); }
.konto-zeile:hover { border-color: var(--marke); }
.konto-zeile-text { flex: 1; display: flex; flex-direction: column; }
.konto-zeile-text small { color: var(--text-leise); }
.avatar { width: 36px; height: 36px; border-radius: var(--r-rund); display: grid; place-items: center; background: var(--marke); color: var(--auf-marke); font-family: var(--schrift-titel); font-weight: 600; flex: none; }
.avatar-gross { width: 56px; height: 56px; font-size: var(--gr-xl); }
.willkommen-fuss { grid-column: 1 / -1; }
.willkommen .fussnote { margin-top: 0; }
.rechts-links { display: flex; justify-content: center; gap: var(--a2); align-items: center; font-size: var(--gr-s); color: var(--text-leise); margin-top: var(--a2); }
.rechts-links a { color: var(--text-2); min-height: var(--tipp); display: inline-flex; align-items: center; padding: 0 var(--a2); }
@media (min-width: 900px) {
  .willkommen { grid-template-columns: 1.2fr 1fr; align-items: center; min-height: calc(100vh - 220px); gap: var(--a7); }
  .willkommen-titel { font-size: 3.6rem; }
  .knopf-stapel { flex-direction: row; flex-wrap: wrap; }
}

/* ── Formulare ── */
.formular { margin-top: var(--a5); }
.felder { display: grid; gap: var(--a4); }
.felder-gruppe { display: grid; gap: var(--a4); }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld label, .feld .label { font-weight: 600; font-size: var(--gr-s); }
.feld input[type=text], .feld input[type=email], .feld input[type=password], .feld input[type=date], .feld select {
  min-height: var(--knopf-hoehe); padding: 0 var(--a3);
  border: var(--strich) solid var(--linie-stark); border-radius: var(--r-m);
  background: var(--flaeche); width: 100%;
}
.feld input:focus, .feld select:focus { outline: none; border-color: var(--marke); box-shadow: 0 0 0 3px var(--marke-zart); }
.feld input[aria-invalid=true] { border-color: var(--falsch); }
.feld-hilfe { font-size: var(--gr-xs); color: var(--text-leise); }
.feld-fehler { font-size: var(--gr-s); color: var(--falsch); font-weight: 500; }
.feld-reihe { display: grid; gap: var(--a4); grid-template-columns: 1fr; margin-top: var(--a4); }
@media (min-width: 480px) { .feld-reihe { grid-template-columns: 1fr 1fr; } }
.datenschutz-hinweis { display: flex; align-items: center; gap: 6px; margin-top: var(--a3); }
.form-status { min-height: 1.5em; margin-top: var(--a3); color: var(--text-2); font-size: var(--gr-s); }
.formular > .knopf { width: 100%; margin-top: var(--a2); }

.segment { display: inline-flex; background: var(--flaeche-2); border-radius: var(--r-m); padding: 3px; gap: 3px; max-width: 100%; }
.segment-teil {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tipp); padding: 0 var(--a4); border-radius: calc(var(--r-m) - 3px);
  border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: var(--gr-s); cursor: pointer; text-decoration: none; flex: 1; white-space: nowrap;
}
.segment-teil input { position: absolute; opacity: 0; pointer-events: none; }
.segment-teil.aktiv, .segment-teil:has(input:checked) { background: var(--flaeche); color: var(--marke); box-shadow: var(--schatten-1); }
.segment-teil:has(input:focus-visible) { outline: 2px solid var(--marke); }
.segment-links { margin-top: var(--a4); }
.segment-zahlen .segment-teil { padding: 0 var(--a3); min-width: 44px; }

.chips { display: flex; flex-wrap: wrap; gap: var(--a2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tipp); padding: 0 var(--a3);
  border: var(--strich) solid var(--linie-stark); border-radius: var(--r-rund); background: var(--flaeche);
  cursor: pointer; font-size: var(--gr-s); font-weight: 500; color: var(--text-2); user-select: none;
}
.chip .icon { color: var(--text-leise); }
.chip-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.chip:has(.chip-input:checked), .chip.an { background: var(--marke-zart); border-color: var(--marke); color: var(--marke); }
.chip:has(.chip-input:checked) .icon, .chip.an .icon { color: var(--marke); }
.chip:has(.chip-input:focus-visible) { outline: 2px solid var(--marke); outline-offset: 2px; }
.chips-tage .chip { min-width: 52px; justify-content: center; }

/* ── Dashboard ── */
.dash-kopf { margin-bottom: var(--a5); }
.dash-raster { display: flex; flex-direction: column; gap: var(--a3); }
.dash-spalte { display: contents; }
.dash-raster .karte { margin: 0; }
.dash-weiter { order: 1; } .dash-woche { order: 2; } .dash-wdh { order: 3; }
.dash-stunden { order: 4; } .dash-faecher { order: 5; } .dash-bereit { order: 6; }
@media (min-width: 900px) {
  .dash-raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--a4); align-items: start; }
  .dash-spalte { display: flex; flex-direction: column; gap: var(--a4); }
}
.karte-weiter { background: var(--flaeche); border-color: var(--linie); position: relative; overflow: hidden; }
.karte-weiter::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--marke); }
.weiter-titel { font-family: var(--schrift-titel); font-size: var(--gr-xl); line-height: 1.2; }
.weiter-unter { color: var(--text-2); font-size: var(--gr-s); margin-top: var(--a1); }
.weiter-stand { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a1) var(--a4); margin-top: var(--a2); }
.weiter-zeit { display: inline-flex; align-items: center; gap: 6px; font-size: var(--gr-xs); color: var(--text-leise); margin-top: var(--a2); }
.wochen-zahl { display: flex; align-items: baseline; gap: 2px; color: var(--text-2); }
.zahl { font-family: var(--schrift-zahl); font-size: var(--gr-3xl); line-height: 1; color: var(--text); font-weight: 500; }
.wochen-tage { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--a1); margin-top: var(--a4); max-width: 360px; }
.tag { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tag-punkt { width: 30px; height: 30px; border-radius: var(--r-rund); border: 1.5px solid var(--linie-stark); display: grid; place-items: center; color: var(--text-leise); }
.tag.gelernt .tag-punkt { background: var(--marke); border-color: var(--marke); color: var(--auf-marke); }
.tag.pause .tag-punkt { border-style: dashed; }
.tag.heute .tag-punkt { border-width: 2px; border-color: var(--marke); }
.tag-name { font-size: var(--gr-xs); color: var(--text-leise); }
.tag.heute .tag-name { color: var(--marke); font-weight: 600; }

.stunden { list-style: none; }
.stunde { display: flex; align-items: center; gap: var(--a1); border-top: var(--strich) solid var(--linie); padding: var(--a2) 0; }
.stunde:first-child { border-top: 0; }
.stunde-link { flex: 1; display: flex; gap: var(--a3); align-items: center; text-decoration: none; color: inherit; min-width: 0; min-height: 56px; }
.stunde-datum { width: 48px; flex: none; text-align: center; border-right: var(--strich) solid var(--linie); padding-right: var(--a2); }
.stunde-tag { display: block; font-family: var(--schrift-zahl); font-size: var(--gr-xl); line-height: 1.1; color: var(--marke); }
.stunde-wt { font-size: var(--gr-xs); color: var(--text-leise); text-transform: uppercase; letter-spacing: .06em; }
.stunde-text { display: flex; flex-direction: column; min-width: 0; }
.stunde-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.stunde-text small { color: var(--text-leise); font-size: var(--gr-xs); }
.stunde-text .marke-klein { align-self: flex-start; margin-top: var(--a1); }
.stunde-aktionen { display: flex; gap: 2px; }

.fach-fortschritt { list-style: none; }
.fach-zeile { display: flex; align-items: center; gap: var(--a3); text-decoration: none; color: inherit; padding: var(--a2) 0; min-height: 56px; border-top: var(--strich) solid var(--linie); }
.fach-fortschritt li:first-child .fach-zeile { border-top: 0; }
.fach-zeile > .icon { color: var(--text-leise); }
.fach-icon { width: 40px; height: 40px; border-radius: var(--r-m); display: grid; place-items: center; background: var(--marke-zart); color: var(--marke); flex: none; }
.fach-zeile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fach-zeile-kopf { display: flex; justify-content: space-between; gap: var(--a2); }
.fach-zeile-kopf small { color: var(--text-2); font-variant-numeric: tabular-nums; }
.fach-zeile-text > small { font-size: var(--gr-xs); }

.siegel-liste { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--a3); }
.siegel { display: flex; flex-direction: column; align-items: center; gap: var(--a2); text-decoration: none; color: var(--text); text-align: center; }
.siegel-rund {
  width: 64px; height: 64px; border-radius: var(--r-rund); display: grid; place-items: center;
  background: var(--akzent-zart); color: var(--akzent);
  border: 2px solid var(--akzent); box-shadow: inset 0 0 0 3px var(--flaeche), inset 0 0 0 4px var(--akzent);
}
.siegel-rund.leer { background: transparent; border: 1.5px dashed var(--linie-stark); box-shadow: none; color: var(--linie-stark); width: 52px; height: 52px; }
.siegel-titel { font-size: var(--gr-xs); font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.siegel-platzhalter { display: flex; gap: var(--a3); }

/* ── Fächer, Jahrgänge, Themen ── */
.fach-kacheln { list-style: none; display: grid; gap: var(--a3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .fach-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fach-kachel, .listen-karte {
  display: flex; align-items: center; gap: var(--a4); text-decoration: none; color: inherit;
  background: var(--flaeche); border: var(--strich) solid var(--linie); border-radius: var(--r-l);
  padding: var(--a4); min-height: 80px; box-shadow: var(--schatten-1);
  transition: border-color var(--t-kurz) var(--kurve), transform var(--t-kurz) var(--kurve);
}
.fach-kachel:hover, .listen-karte:hover, .thema-karte:hover { border-color: var(--marke); }
.fach-kachel > .icon, .listen-karte > .icon, .thema-karte > .icon { color: var(--text-leise); margin-left: auto; }
.fach-kachel-icon { width: 52px; height: 52px; border-radius: var(--r-m); display: grid; place-items: center; background: var(--marke-zart); color: var(--marke); flex: none; }
.fach-kachel-text, .listen-karte-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fach-kachel-text strong, .listen-karte-text strong { font-family: var(--schrift-titel); font-size: var(--gr-l); font-weight: 600; }
.fach-kachel-text small, .listen-karte-text small { color: var(--text-leise); font-size: var(--gr-s); }
.fach-kachel-stand { display: flex; flex-direction: column; }
.listen-karten { list-style: none; display: grid; gap: var(--a3); }
.jg-zahl { min-width: 56px; height: 56px; padding: 0 var(--a2); border-radius: var(--r-m); background: var(--flaeche-2); color: var(--marke); display: grid; place-items: center; font-family: var(--schrift-zahl); font-size: var(--gr-xl); flex: none; }

.themen-liste { list-style: none; display: grid; gap: var(--a3); }
@media (min-width: 900px) { .themen-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.thema-karte {
  display: flex; gap: var(--a3); align-items: flex-start; text-decoration: none; color: inherit; height: 100%;
  background: var(--flaeche); border: var(--strich) solid var(--linie); border-radius: var(--r-l); padding: var(--a4); box-shadow: var(--schatten-1);
  transition: border-color var(--t-kurz) var(--kurve);
}
.thema-karte > .icon { align-self: center; }
.thema-nr { font-family: var(--schrift-zahl); color: var(--akzent); font-size: var(--gr-l); line-height: 1.4; min-width: 26px; }
.thema-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.thema-titel { font-family: var(--schrift-titel); font-size: var(--gr-l); font-weight: 600; line-height: 1.3; }
.thema-kurz { color: var(--text-2); font-size: var(--gr-s); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thema-karte .marken { margin-top: var(--a1); }
.thema-karte.vorbereitung { background: transparent; box-shadow: none; border-style: dashed; }
.thema-karte.vorbereitung .thema-nr { color: var(--text-leise); }

/* ── Themenseite ── */
.thema-raster { display: flex; flex-direction: column; }
.thema-haupt, .thema-rand { display: contents; }
.th-kopf { order: 1; } .th-stand { order: 2; } .th-aktionen { order: 3; } .th-weg { order: 4; } .th-reiter { order: 5; } .th-kc { order: 6; }
@media (min-width: 1040px) {
  .thema-raster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--a6); align-items: start; }
  .thema-haupt, .thema-rand { display: block; }
  .thema-rand { position: sticky; top: calc(var(--leiste-oben) + var(--a4)); }
  .thema-rand .bereitschaft { margin-top: var(--a2); }
  .thema-rand .thema-aktionen { flex-direction: column; align-items: stretch; }
  .thema-rand .kc-karte { margin-top: var(--a4); }
}
.thema-kopf { max-width: 760px; }
@media (max-width: 1039px) { .thema-aktionen .knopf-haupt, .thema-aktionen .knopf-neben { flex: 1 1 260px; } }
.thema-h1 { margin-top: var(--a1); }
.bereitschaft { margin-top: var(--a5); background: var(--flaeche); border: var(--strich) solid var(--linie); border-radius: var(--r-l); padding: var(--a4); max-width: 760px; }
.bereitschaft-kopf { display: flex; align-items: center; justify-content: space-between; gap: var(--a2); }
.bereitschaft-label { font-size: var(--gr-xs); color: var(--text-leise); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.bereitschaft-name { display: inline-flex; align-items: center; gap: 6px; font-family: var(--schrift-titel); font-size: var(--gr-l); }
.bereitschaft-name.bereit { color: var(--akzent); }
.bereitschaft-text { font-size: var(--gr-s); color: var(--text-2); margin-top: var(--a3); }
.thema-aktionen { max-width: 760px; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.summary-pfeil { color: var(--text-leise); transition: transform var(--t-kurz) var(--kurve); margin-left: auto; }
details[open] > summary .summary-pfeil { transform: rotate(180deg); }

.weg-karte { margin-top: var(--a5); max-width: 760px; }
.weg-summary { display: flex; align-items: center; gap: var(--a3); min-height: var(--tipp); }
.weg-kopf { display: flex; gap: var(--a3); align-items: flex-start; }
.weg-kopf > .icon { color: var(--akzent); margin-top: 2px; }
.weg-kopf strong { display: block; font-family: var(--schrift-titel); font-size: var(--gr-l); }
.weg-kopf small { color: var(--text-2); font-size: var(--gr-s); }
.weg { list-style: none; margin-top: var(--a3); position: relative; }
.weg-schritt { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--a3); align-items: center; padding: var(--a2) 0; position: relative; }
.weg-schritt:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 44px; bottom: -6px; width: 2px; background: var(--linie); }
.weg-punkt { width: 32px; height: 32px; border-radius: var(--r-rund); display: grid; place-items: center; font-size: var(--gr-s); font-weight: 600; background: var(--flaeche); border: 1.5px solid var(--linie-stark); color: var(--text-2); position: relative; z-index: 1; }
.weg-schritt.fertig .weg-punkt { background: var(--marke-zart); border-color: var(--marke-zart); color: var(--marke); }
.weg-schritt.naechster .weg-punkt { background: var(--marke); border-color: var(--marke); color: var(--auf-marke); }
.weg-text { display: flex; flex-direction: column; min-width: 0; }
.weg-text strong { font-weight: 600; font-size: var(--gr-s); }
.weg-text small { color: var(--text-leise); font-size: var(--gr-xs); }
.weg-schritt.fertig .weg-text strong { color: var(--text-2); }
.weg-aktionen { display: flex; align-items: center; gap: var(--a1); }
.haken-knopf { width: var(--tipp); height: var(--tipp); border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.haken-kreis { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--linie-stark); display: grid; place-items: center; color: transparent; background: var(--flaeche); transition: background var(--t-kurz) var(--kurve); }
.haken-knopf:hover .haken-kreis { border-color: var(--marke); color: var(--linie-stark); }
.haken-knopf.an .haken-kreis { background: var(--marke); border-color: var(--marke); color: var(--auf-marke); }

.reiter-block { margin-top: var(--a6); }
.reiter { display: flex; border-bottom: var(--strich) solid var(--linie); gap: var(--a1); }
.reiter-knopf {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--knopf-hoehe); padding: 0 var(--a2); border: 0; background: transparent;
  color: var(--text-2); font-weight: 600; font-size: var(--gr-s); cursor: pointer; position: relative; white-space: nowrap;
}
.reiter-knopf[aria-selected=true] { color: var(--marke); }
.reiter-knopf[aria-selected=true]::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px; background: var(--marke); border-radius: 2px; }
@media (max-width: 419px) { .reiter-knopf .icon { display: none; } }
@media (min-width: 640px) { .reiter-knopf { flex: none; padding: 0 var(--a4); } }
.reiter-inhalt { padding-top: var(--a4); outline: none; }

.kapitel + .kapitel { margin-top: var(--a5); }
.kapitel-titel { font-family: var(--schrift-titel); font-size: var(--gr-l); display: flex; flex-direction: column; margin-bottom: var(--a3); }
.kapitel-titel .kicker { margin: 0; }
.pfad { list-style: none; position: relative; }
.pfad-knoten { position: relative; }
.pfad-knoten:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: -8px; width: 2px; background: var(--linie); }
.pfad-knoten.fertig:not(:last-child)::after { background: var(--marke); }
.pfad-link { display: flex; align-items: center; gap: var(--a3); text-decoration: none; color: inherit; padding: var(--a2) var(--a2) var(--a2) 0; border-radius: var(--r-m); min-height: 64px; }
.pfad-link:hover .pfad-text strong { color: var(--marke); }
.pfad-punkt { width: 44px; height: 44px; border-radius: var(--r-rund); display: grid; place-items: center; flex: none; background: var(--flaeche); border: 2px solid var(--linie-stark); color: var(--text-2); font-weight: 600; position: relative; z-index: 1; font-family: var(--schrift-zahl); font-size: var(--gr-l); }
.pfad-knoten.fertig .pfad-punkt { background: var(--marke); border-color: var(--marke); color: var(--auf-marke); }
.pfad-knoten.aktuell .pfad-punkt { border-color: var(--marke); color: var(--marke); box-shadow: 0 0 0 4px var(--marke-zart); }
.pfad-knoten.gesperrt .pfad-punkt { border-style: dashed; color: var(--text-leise); }
.pfad-text { display: flex; flex-direction: column; min-width: 0; }
.pfad-text strong { font-weight: 600; }
.pfad-text small { color: var(--text-leise); font-size: var(--gr-s); }

.abschnitt { padding: 0; }
.abschnitt > summary, .kc-karte > summary { display: flex; align-items: center; gap: var(--a3); padding: var(--a3) var(--a4); min-height: 56px; }
.abschnitt-kopf { display: flex; align-items: center; gap: var(--a2); flex-wrap: wrap; font-family: var(--schrift-titel); font-size: var(--gr-l); font-weight: 600; }
.abschnitt-kopf .icon { color: var(--marke); }
.abschnitt-inhalt { padding: 0 var(--a4) var(--a4); }
.kc-karte { padding: 0; margin-top: var(--a5); max-width: 760px; }
.gelesen-marke { display: inline-flex; align-items: center; gap: 4px; font-family: var(--schrift-text); font-size: var(--gr-xs); font-weight: 500; color: var(--marke); background: var(--marke-zart); border-radius: var(--r-rund); padding: 1px 8px; }
.gelesen-knopf { margin-top: var(--a3); }
.gelesen-knopf[aria-pressed=true] { color: var(--text-2); }
.vorbereitung .karte + .karte, .vorbereitung > * + * { margin-top: var(--a3); }

.blick-teaser {
  display: flex; align-items: center; gap: var(--a3); text-decoration: none; color: var(--text);
  background: var(--akzent-zart); border-radius: var(--r-l); padding: var(--a3) var(--a4); min-height: 64px;
}
.blick-teaser > .icon:first-child { color: var(--akzent); }
.blick-teaser > .icon:last-child { margin-left: auto; color: var(--text-leise); }
.blick-teaser span { display: flex; flex-direction: column; }
.blick-teaser strong { font-family: var(--schrift-titel); font-size: var(--gr-l); }
.blick-teaser small { color: var(--text-2); font-size: var(--gr-s); }

/* Markdown-Inhalte */
.md { color: var(--text); max-width: var(--breite-text); }
.md > * + * { margin-top: var(--a3); }
.md .md-h { font-family: var(--schrift-titel); font-size: var(--gr-l); margin-top: var(--a5); }
.md h4.md-h { font-size: var(--gr-m); }
.md-liste { padding-left: 1.3em; }
.md-liste li + li { margin-top: 6px; }
.md-liste li::marker { color: var(--akzent); }
.md blockquote { margin: 0; padding-left: var(--a3); border-left: 3px solid var(--akzent); color: var(--text-2); font-style: italic; }
.md code { font-size: .92em; background: var(--flaeche-2); border-radius: 4px; padding: 1px 5px; }
.md-tabelle { overflow-x: auto; }
.md table { border-collapse: collapse; width: 100%; font-size: var(--gr-s); }
.md th, .md td { text-align: left; padding: var(--a2); border-bottom: var(--strich) solid var(--linie); vertical-align: top; }
.md th { font-weight: 600; color: var(--text-2); }
.kc h4 { font-size: var(--gr-s); color: var(--text-2); margin: var(--a4) 0 var(--a2); text-transform: uppercase; letter-spacing: .06em; }
.kc > p + p { margin-top: var(--a2); }
.kc-dokument { color: var(--text-2); font-size: var(--gr-s); }
.kc .knopf { margin-top: var(--a3); margin-left: calc(-1 * var(--a3)); }

.fragen-liste { list-style: none; display: grid; gap: var(--a2); }
.frage-ag { border: var(--strich) solid var(--linie); border-radius: var(--r-m); background: var(--grund); }
.frage-ag > summary { display: flex; gap: var(--a3); align-items: center; padding: var(--a3); min-height: 52px; font-weight: 600; }
.frage-ag > summary > .icon:first-child { color: var(--akzent); }
.frage-antwort { padding: 0 var(--a3) var(--a3) calc(var(--a3) + 32px); color: var(--text-2); }

.glossar { display: grid; gap: var(--a3); }
.glossar dt { font-weight: 600; font-family: var(--schrift-titel); font-size: var(--gr-l); }
.glossar dd { margin: 2px 0 0; color: var(--text-2); font-size: var(--gr-s); }
.fakten-liste { list-style: none; display: grid; gap: var(--a2); }
.fakten-liste li { padding-left: var(--a4); position: relative; }
.fakten-liste li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); }
.fakten-liste strong, .md strong { font-weight: 650; }
.spickzettel > * + * { margin-top: var(--a3); }

/* ── 5 Minuten vor der Stunde ── */
.blick-seite { max-width: 720px; }
.blick-seite .kicker { color: var(--akzent); }
.blick-liste { list-style: none; counter-reset: blick; margin-top: var(--a5); border-top: var(--strich) solid var(--linie); }
.blick-liste li { counter-increment: blick; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--a3); padding: var(--a3) 0; border-bottom: var(--strich) solid var(--linie); }
.blick-liste li::before { content: counter(blick); grid-row: span 2; font-family: var(--schrift-zahl); color: var(--akzent); font-size: var(--gr-xl); line-height: 1.2; }
.blick-stichwort { font-family: var(--schrift-titel); font-weight: 600; font-size: var(--gr-l); color: var(--marke); }
.blick-text { font-size: var(--gr-l); line-height: 1.45; }
.blick-block { margin-top: var(--a4); }

/* ── Profil ── */
.konto-kopf { display: flex; gap: var(--a4); align-items: center; }
.konto-kopf > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.konto-name { font-family: var(--schrift-titel); font-size: var(--gr-xl); }
.konto-kopf small { color: var(--text-leise); overflow-wrap: anywhere; }
.farbwelten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a3); }
@media (min-width: 560px) { .farbwelten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .farbwelten { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.farbwelt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  border: 1.5px solid var(--linie); border-radius: var(--r-l); background: var(--flaeche); padding: var(--a2) var(--a2) var(--a3); cursor: pointer; color: var(--text);
}
.farbwelt.gewaehlt { border-color: var(--marke); box-shadow: 0 0 0 3px var(--marke-zart); }
.farbwelt small { color: var(--text-leise); font-size: var(--gr-xs); padding: 0 var(--a1); }
.farbwelt-name { font-family: var(--schrift-titel); font-weight: 600; padding: var(--a2) var(--a1) 0; }
.farbwelt-vorschau { position: relative; display: block; width: 100%; height: 72px; border-radius: var(--r-m); background: var(--grund); border: var(--strich) solid var(--linie); overflow: hidden; }
.fv-kopf { position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--marke); }
.fv-zeile { position: absolute; left: 10px; right: 30%; top: 26px; height: 6px; border-radius: 3px; background: var(--text); opacity: .75; }
.fv-zeile.kurz { top: 38px; right: 50%; background: var(--linie-stark); opacity: 1; }
.fv-knopf { position: absolute; left: 10px; bottom: 9px; width: 44px; height: 12px; border-radius: 4px; background: var(--marke); }
.fv-funke { position: absolute; right: 12px; bottom: 9px; width: 14px; height: 14px; border-radius: 50%; background: var(--akzent); }
.farbwelt-haken { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--marke); color: var(--auf-marke); }
.schalter-zeile { display: flex; align-items: center; gap: var(--a3); padding: var(--a2) 0; min-height: 60px; }
.schalter-zeile + .schalter-zeile { border-top: var(--strich) solid var(--linie); }
.schalter-icon { color: var(--marke); }
.schalter-text { flex: 1; display: flex; flex-direction: column; cursor: pointer; }
.schalter-text small { color: var(--text-leise); font-size: var(--gr-s); }
/* Tippfläche 56×44, sichtbare Schiene 52×32 (B-06) */
.schalter { width: 56px; height: var(--tipp); border: 0; background: transparent; position: relative; cursor: pointer; flex: none; padding: 0; }
.schalter::before { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; bottom: 6px; border-radius: var(--r-rund); background: var(--linie-stark); transition: background var(--t-kurz) var(--kurve); }
.schalter-knopf { position: absolute; top: 9px; left: 5px; width: 26px; height: 26px; border-radius: 50%; background: var(--flaeche); box-shadow: var(--schatten-1); transition: transform var(--t-kurz) var(--kurve); }
.schalter[aria-checked=true]::before { background: var(--marke); }
.schalter[aria-checked=true] .schalter-knopf { transform: translateX(20px); }
.antrags-liste { list-style: none; display: grid; gap: var(--a3); }
.antrags-liste .karte + .karte { margin-top: 0; }
.antrag-kopf { display: flex; gap: var(--a3); align-items: flex-start; }
.antrag-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.antrag-text .marke-klein { align-self: flex-start; margin-top: var(--a1); }
.admin-hinweis { display: flex; align-items: center; gap: var(--a3); text-decoration: none; color: var(--text); background: var(--akzent-zart); border-radius: var(--r-m); padding: var(--a2) var(--a4); min-height: 52px; margin-bottom: var(--a4); }
.admin-hinweis > .icon { color: var(--akzent); }
.admin-zahl { min-width: 26px; height: 26px; padding: 0 6px; border-radius: var(--r-rund); background: var(--akzent); color: var(--flaeche); display: inline-grid; place-items: center; font-size: var(--gr-xs); font-weight: 700; }
.admin-eintrag { margin-top: var(--a3); }
.profil .admin-hinweis { margin: var(--a2) 0 0; }
.wartet .knopf-stapel { width: 100%; max-width: 360px; }
.klein-text { font-size: var(--gr-s); margin-top: var(--a3); }
.knopf-gefahr { color: var(--falsch); }
.knopf-gefahr:hover:not(:disabled) { background: var(--falsch-zart); }
.knopf-gefahr-voll, .knopf-gefahr-voll:hover:not(:disabled) { background: var(--falsch); color: var(--flaeche); }
.loeschen > p + p { margin-top: var(--a2); }
.haken-zeile { display: flex; align-items: center; gap: var(--a3); min-height: var(--tipp); margin-top: var(--a4); cursor: pointer; font-weight: 500; }
.haken-zeile input { width: 22px; height: 22px; accent-color: var(--falsch); }
.postfach strong { color: var(--text); }
.speicher-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-2); font-size: var(--gr-s); }
.speicher-status > .icon { color: var(--marke); }
.speicher-status.warnt > .icon { color: var(--hinweis); }
.abschluss .speicher-status { justify-content: center; font-size: var(--gr-xs); color: var(--text-leise); }
.profil .karte + .abschnitt-titel { margin-top: var(--a6); }

/* ── Blatt (G-01: eigener Verlaufseintrag) ── */
.blatt-huelle { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.blatt-schleier { position: absolute; inset: 0; background: var(--schleier); opacity: 0; transition: opacity var(--t-mittel) var(--kurve); }
.blatt {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; overflow-y: auto;
  background: var(--flaeche); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--schatten-2);
  padding: 0 var(--a4) calc(var(--a5) + env(safe-area-inset-bottom));
  transform: translateY(24px); opacity: 0; transition: transform var(--t-mittel) var(--kurve), opacity var(--t-mittel) var(--kurve);
}
.blatt-huelle.offen .blatt-schleier { opacity: 1; }
.blatt-huelle.offen .blatt { transform: none; opacity: 1; }
.blatt-kopf { position: sticky; top: 0; background: var(--flaeche); display: flex; align-items: center; justify-content: space-between; gap: var(--a2); padding: var(--a3) 0; z-index: 1; }
.blatt-titel { font-family: var(--schrift-titel); font-size: var(--gr-xl); outline: none; }
.blatt .formular { margin-top: var(--a2); }
.blatt .knopf-reihe .knopf-haupt { flex: 1; }
body.blatt-auf { overflow: hidden; }
@media (min-width: 640px) {
  .blatt-huelle { align-items: center; padding: var(--a5); }
  .blatt { border-radius: var(--r-l); padding-bottom: var(--a5); }
}

/* ── Meldungen ── */
.meldungen { position: fixed; top: calc(var(--a3) + env(safe-area-inset-top)); left: 0; right: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: var(--a2); pointer-events: none; padding: 0 var(--a4); }
.meldung {
  display: flex; align-items: center; gap: var(--a2); max-width: 480px;
  background: var(--text); color: var(--grund); border-radius: var(--r-rund); padding: var(--a2) var(--a4); min-height: 44px;
  box-shadow: var(--schatten-2); font-size: var(--gr-s); font-weight: 500; pointer-events: auto;
  transform: translateY(-8px); opacity: 0; transition: transform var(--t-mittel) var(--kurve), opacity var(--t-mittel) var(--kurve);
}
.meldung.da { transform: none; opacity: 1; }
.meldung .icon { color: var(--akzent); }
.meldung-fehler .icon { color: var(--falsch); }
.meldung-aktion { border: 0; background: transparent; color: var(--akzent); font-weight: 700; cursor: pointer; min-height: 36px; padding: 0 var(--a2); margin-right: calc(-1 * var(--a2)); }

/* ── Lektionsspieler (B-13: Aufgabe, Auswahl und Hauptaktion bei 390 × 700 ohne Scrollen) ── */
body.vollbild .inhalt { padding: 0; min-height: 0; }
.spieler { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 720px; margin: 0 auto; }
.sp-kopf { flex: none; display: flex; align-items: center; gap: var(--a3); height: 56px; padding: env(safe-area-inset-top) var(--a3) 0; }
.sp-balken { flex: 1; height: 8px; margin: 0; }
.sp-zaehler { font-size: var(--gr-xs); color: var(--text-leise); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; white-space: nowrap; }
.sp-buehne { flex: 1; overflow-y: auto; padding: var(--a2) var(--a4) var(--a4); overscroll-behavior: contain; }
.sp-fuss { flex: none; padding: var(--a2) var(--a4) calc(var(--a4) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--a2); }
.sp-haupt { width: 100%; }
.sp-haupt.unsichtbar { visibility: hidden; }
.sp-herkunft { font-size: var(--gr-xs); color: var(--text-leise); margin-bottom: var(--a2); }

.frage-typ { display: inline-flex; align-items: center; gap: 6px; font-size: var(--gr-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--akzent); margin-bottom: var(--a2); }
.frage-text { font-family: var(--schrift-titel); font-size: var(--gr-xl); line-height: 1.3; font-weight: 600; outline: none; }
.frage-hinweis { font-size: var(--gr-s); color: var(--text-leise); margin-top: var(--a1); }
.frage-kopf { margin-bottom: var(--a4); }
.mark { display: inline-grid; place-items: center; flex: none; margin-left: auto; }
.mark:empty { display: none; }
.ist-richtig > .mark, .ist-falsch > .mark { width: 24px; height: 24px; border-radius: 50%; color: var(--flaeche); }
.ist-richtig > .mark { background: var(--gut); }
.ist-falsch > .mark { background: var(--falsch); }

.optionen { display: grid; gap: var(--a2); }
.option {
  display: flex; align-items: center; gap: var(--a3); width: 100%; min-height: 52px; padding: var(--a2) var(--a3);
  border: 1.5px solid var(--linie-stark); border-radius: var(--r-m); background: var(--flaeche); text-align: left; cursor: pointer;
  transition: border-color var(--t-kurz) var(--kurve), background var(--t-kurz) var(--kurve);
}
.option:hover:not(:disabled) { border-color: var(--marke); }
.option-nr { width: 26px; height: 26px; flex: none; border-radius: 7px; display: grid; place-items: center; font-size: var(--gr-xs); font-weight: 600; background: var(--flaeche-2); color: var(--text-2); }
.option-text { flex: 1; }
.option.gewaehlt, .baustein.gewaehlt, .bild-option.gewaehlt, .paar-teil.gewaehlt { border-color: var(--marke); background: var(--marke-zart); box-shadow: inset 0 0 0 1px var(--marke); }
.option.gewaehlt .option-nr, .baustein.gewaehlt .option-nr { background: var(--marke); color: var(--auf-marke); }
.option:disabled, .baustein:disabled, .bild-option:disabled { cursor: default; }
.option.ist-richtig, .baustein.ist-richtig, .paar-teil.ist-richtig, .sort-teil.ist-richtig { border-color: var(--gut); background: var(--gut-zart); box-shadow: none; }
.option.ist-falsch, .baustein.ist-falsch, .sort-teil.ist-falsch { border-color: var(--falsch); background: var(--falsch-zart); box-shadow: none; }

.luecke-satz { line-height: 1.6; }
.luecke-slot { display: inline-flex; align-items: center; min-width: 5.5em; min-height: 44px; margin: 0 4px; padding: 0 var(--a2); vertical-align: middle;
  border: 0; border-bottom: 2px dashed var(--marke); background: var(--marke-zart); border-radius: 6px 6px 0 0; font: inherit; color: var(--marke); cursor: pointer; }
.luecke-slot.leer { background: transparent; }
.luecke-slot.ist-richtig { border-bottom: 2px solid var(--gut); color: var(--gut); background: var(--gut-zart); }
.luecke-slot.ist-falsch { border-bottom: 2px solid var(--falsch); color: var(--falsch); background: var(--falsch-zart); text-decoration: line-through; }
.bausteine { display: flex; flex-wrap: wrap; gap: var(--a2); }
.baustein { display: inline-flex; align-items: center; gap: var(--a2); min-height: 48px; padding: 0 var(--a3) 0 var(--a2); border: 1.5px solid var(--linie-stark); border-radius: var(--r-m); background: var(--flaeche); cursor: pointer; font-weight: 500; }
.baustein .mark { margin-left: 4px; }

.wf-stapel { position: relative; height: 230px; margin: var(--a2) 0 var(--a6); }
.wf-karte {
  position: absolute; inset: 0; border-radius: var(--r-l); background: var(--flaeche); border: var(--strich) solid var(--linie);
  box-shadow: var(--schatten-2); padding: var(--a5) var(--a4); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--a3);
}
.wf-vorne { touch-action: pan-y; cursor: grab; transform-origin: 50% 110%; user-select: none; z-index: 3; }
.wf-vorne.zieht { cursor: grabbing; }
.wf-hinten1 { z-index: 2; transform: translateY(12px) scale(.95); }
.wf-hinten1:not([hidden]) { transform: none; }
.wf-hinten2 { z-index: 1; transform: translateY(24px) scale(.9); opacity: .7; box-shadow: var(--schatten-1); }
.wf-text { font-family: var(--schrift-titel); font-size: var(--gr-xl); line-height: 1.35; font-weight: 600; }
.wf-wischhinweis { display: inline-flex; align-items: center; gap: var(--a2); font-size: var(--gr-xs); color: var(--text-leise); }
.wf-wahl { color: var(--text-2); }
.wf-karte.ist-richtig { border-color: var(--gut); background: var(--gut-zart); }
.wf-karte.ist-falsch { border-color: var(--falsch); background: var(--falsch-zart); }
.wf-stempel { position: absolute; top: var(--a4); display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 2px solid; border-radius: var(--r-s); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: 0; pointer-events: none; }
.wf-stempel-wahr { left: var(--a4); color: var(--gut); transform: rotate(-8deg); }
.wf-stempel-falsch { right: var(--a4); color: var(--falsch); transform: rotate(8deg); }
.wf-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: var(--a2); }
.wf-knopf { min-height: 56px; }
.wf-knopf:disabled { opacity: 1; color: var(--text-2); }
.wf-knopf[aria-pressed=true] { border-color: var(--marke); color: var(--marke); background: var(--marke-zart); }
.wf-knopf.ist-richtig { border-color: var(--gut); background: var(--gut-zart); color: var(--text); }
.wf-knopf.ist-falsch { border-color: var(--falsch); background: var(--falsch-zart); color: var(--text); }
.wf-knopf .mark { margin-left: var(--a1); }

.paare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--a2); }
.paar-teil { display: flex; align-items: center; gap: var(--a2); min-height: 52px; padding: var(--a2) var(--a3); border: 1.5px solid var(--linie-stark); border-radius: var(--r-m); background: var(--flaeche); text-align: left; cursor: pointer; font-size: var(--gr-s); font-weight: 500; overflow-wrap: anywhere; }
.paar-teil.gefunden { cursor: default; color: var(--text-2); }
.paar-teil.fehlgriff { border-color: var(--falsch); background: var(--falsch-zart); }

.sort-liste { list-style: none; display: grid; gap: var(--a2); }
.sort-teil { display: flex; align-items: center; gap: var(--a1); min-height: 52px; padding: 2px var(--a1) 2px 0; border: 1.5px solid var(--linie-stark); border-radius: var(--r-m); background: var(--flaeche); position: relative; flex-wrap: wrap; }
.sort-teil.zieht { z-index: 2; box-shadow: var(--schatten-2); border-color: var(--marke); transition: none; }
.sort-liste .sort-teil { transition: transform var(--t-kurz) var(--kurve); }
.sort-griff { width: 40px; height: 48px; display: grid; place-items: center; color: var(--text-leise); cursor: grab; touch-action: none; flex: none; }
.sort-pos { font-family: var(--schrift-zahl); color: var(--akzent); min-width: 16px; }
.sort-text { flex: 1; min-width: 0; font-size: var(--gr-s); font-weight: 500; padding: var(--a1) 0; }
.sort-knoepfe { display: flex; flex: none; }
.sort-knoepfe .icon-knopf:disabled { opacity: .3; cursor: default; }
.sort-teil .mark { margin-left: var(--a1); }
.sort-soll { flex-basis: 100%; padding: 0 0 var(--a1) 64px; font-size: var(--gr-xs); color: var(--falsch); font-weight: 500; }

.bild-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--a2); }
.bild-option { position: relative; padding: 0; border: 1.5px solid var(--linie-stark); border-radius: var(--r-m); overflow: hidden; background: var(--flaeche-2); aspect-ratio: 4 / 3; cursor: pointer; }
.bild-option img { width: 100%; height: 100%; object-fit: cover; }
.bild-option img.fehlt { visibility: hidden; }
.bild-option .option-nr { position: absolute; top: 6px; left: 6px; background: var(--flaeche); }
.bild-option .mark { position: absolute; top: 6px; right: 6px; }
.bild-option.ist-richtig { border-color: var(--gut); box-shadow: inset 0 0 0 3px var(--gut); }
.bild-option.ist-falsch { border-color: var(--falsch); box-shadow: inset 0 0 0 3px var(--falsch); }
.nachweis { margin-top: var(--a3); font-size: var(--gr-xs); color: var(--text-2); }
.nachweis summary { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tipp); color: var(--marke); font-weight: 600; }
.nachweis ol { padding-left: 1.2em; display: grid; gap: 4px; }

.fakt .fakt-text { font-family: var(--schrift-titel); font-size: 1.4rem; line-height: 1.4; font-weight: 500; outline: none; margin-top: var(--a3); }
.fakt-text strong { font-weight: 650; background: linear-gradient(transparent 60%, var(--akzent-zart) 60%); padding: 0 2px; }
.mehr { margin-top: var(--a4); border-top: var(--strich) solid var(--linie); }
.mehr summary { display: flex; align-items: center; gap: var(--a2); min-height: var(--tipp); color: var(--marke); font-weight: 600; }
.mehr p { color: var(--text-2); }
.bild { margin: 0; }
.bild-rahmen { height: clamp(140px, 30vh, 280px); border-radius: var(--r-m); background: var(--flaeche-2); overflow: hidden; display: grid; place-items: center; }
.bild-klein .bild-rahmen { height: clamp(100px, 18vh, 180px); }
.bild-rahmen img { width: 100%; height: 100%; object-fit: contain; }
.bild-fehlt { display: inline-flex; gap: var(--a2); align-items: center; color: var(--text-leise); font-size: var(--gr-s); }
.bild-unter { display: flex; align-items: center; gap: var(--a2); }
.bild-urheber { flex: 1; font-size: var(--gr-xs); color: var(--text-leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bild-info { display: flex; flex-direction: column; gap: 2px; font-size: var(--gr-xs); color: var(--text-2); background: var(--flaeche-2); border-radius: var(--r-s); padding: var(--a2) var(--a3); }
.bild-info a { min-height: 32px; display: inline-flex; align-items: center; }

.rueck { display: flex; gap: var(--a3); align-items: flex-start; border-radius: var(--r-m); padding: var(--a3); max-height: 38vh; overflow-y: auto; animation: rueck-ein var(--t-mittel) var(--kurve); }
.rueck-gut { background: var(--gut-zart); }
.rueck-falsch { background: var(--falsch-zart); }
.rueck-symbol { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--flaeche); }
.rueck-gut .rueck-symbol { background: var(--gut); }
.rueck-falsch .rueck-symbol { background: var(--falsch); }
.rueck-text { display: flex; flex-direction: column; gap: 4px; font-size: var(--gr-s); min-width: 0; }
.rueck-text strong { font-size: var(--gr-m); }
.rueck-gut strong { color: var(--gut); }
.rueck-falsch strong { color: var(--falsch); }
.rueck-satz { font-family: var(--schrift-titel); font-size: var(--gr-m); }
@keyframes rueck-ein { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.zwischen { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--a3); padding-top: 12vh; }
.zwischen h2 { font-family: var(--schrift-titel); font-size: var(--gr-2xl); outline: none; }
.zwischen p { color: var(--text-2); max-width: 420px; }
.zwischen-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--akzent-zart); color: var(--akzent); }

.abschluss { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--a3); padding-top: var(--a4); }
.abschluss-ring { position: relative; display: grid; place-items: center; }
.abschluss-ring .ring-wert { stroke: var(--akzent); }
.abschluss-zahl { position: absolute; font-family: var(--schrift-zahl); font-size: var(--gr-xl); }
.abschluss-titel { font-family: var(--schrift-titel); font-size: var(--gr-2xl); outline: none; }
.abschluss-text { color: var(--text-2); max-width: 440px; }
.abschluss-stufe { display: flex; gap: var(--a3); align-items: center; text-align: left; background: var(--marke-zart); border-radius: var(--r-m); padding: var(--a3) var(--a4); }
.abschluss-stufe .icon { color: var(--marke); }
.abschluss-stufe.bereit { background: var(--akzent-zart); }
.abschluss-stufe.bereit .icon { color: var(--akzent); }
.abschluss-stufe span { display: flex; flex-direction: column; }
.abschluss-stufe small { color: var(--text-2); }
.abschluss-woche { display: inline-flex; gap: 6px; align-items: center; color: var(--marke); font-weight: 600; }
.leise.klein { font-size: var(--gr-xs); display: inline-flex; gap: 4px; align-items: center; }
.abschluss-fehler { width: 100%; text-align: left; border: var(--strich) solid var(--linie); border-radius: var(--r-m); background: var(--flaeche); }
.abschluss-fehler summary { display: flex; align-items: center; gap: var(--a2); min-height: 48px; padding: 0 var(--a3); font-weight: 600; }
.abschluss-fehler ul { list-style: none; padding: 0 var(--a3) var(--a3); display: grid; gap: var(--a3); }
.abschluss-fehler li { display: flex; flex-direction: column; gap: 2px; font-size: var(--gr-s); }
.af-loesung { display: inline-flex; gap: 6px; align-items: baseline; color: var(--gut); font-weight: 500; }

.meilenstein { display: grid; place-items: center; margin-bottom: calc(-1 * var(--a2)); }
.meilenstein-marke.zeichnet .marke-seite { stroke-dasharray: 80; stroke-dashoffset: 80; animation: zeichnen 900ms var(--kurve) forwards; }
.meilenstein-marke.zeichnet .marke-funke { transform-origin: 24px 10.5px; transform: scale(0); animation: funkeln 420ms var(--kurve) 650ms forwards; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes funkeln { to { transform: scale(1); } }

/* ── Bewegung aus (E-01) ── */
[data-bewegung="aus"] *, [data-bewegung="aus"] *::before, [data-bewegung="aus"] *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}
