[hidden] { display: none !important; }
/* GMAT: ein Antwortbogen auf dem Handy. Ruhige Flächen, Tinte in Blau, Kreise wie auf dem Bogen. Ohne fremde
   Schriften, hell und dunkel. Abstände für den Daumen: Ziele mindestens 44 Pixel. */
:root {
  --grund: #e9edf3;
  --flaeche: #ffffff;
  --flaeche-2: #f3f5f9;
  --text: #18203a;
  --leise: #57607a;
  --linie: #cad1dc;
  --tinte: #2f43c4;
  --tinte-text: #ffffff;
  --tinte-hell: #e1e5fa;
  --gut: #17774a;
  --gut-hell: #dcf0e4;
  --schlecht: #b3202e;
  --schlecht-hell: #f8dfe2;
  --falle: #8f5400;
  --falle-hell: #f6ead4;
  --quant: #2f43c4;
  --verbal: #a2397c;
  --di: #0e7c86;
  --fokus: #2f43c4;
  --rechner-gehaeuse: #34506a; --rechner-kopf: #1f6fa8; --rechner-lcd: #f6f8f2; --rechner-taste: #f3f4f6;
  --rechner-taste-op: #d9483b;
  --r1: #2f43c4; --r2: #c0592b; --r3: #0e7c86; --r4: #a2397c; --r5: #6b8e23; --r6: #8a6d00;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #10131c;
    --flaeche: #191e2b;
    --flaeche-2: #20263a;
    --text: #e5e8f1;
    --leise: #9aa3ba;
    --linie: #30374b;
    --tinte: #8f9dff;
    --tinte-text: #10131c;
    --tinte-hell: #262e55;
    --gut: #4fc48b;
    --gut-hell: #163428;
    --schlecht: #f27b85;
    --schlecht-hell: #3a1c22;
    --falle: #e7a94a;
    --falle-hell: #382a12;
    --quant: #8f9dff;
    --verbal: #e68ac6;
    --di: #4fc7cf;
    --fokus: #8f9dff;
    --r1: #8f9dff; --r2: #f2a07b; --r3: #4fc7cf; --r4: #e68ac6; --r5: #a9cf6a; --r6: #e7c45a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text); font: 17px/1.5 var(--schrift);
  font-variant-numeric: tabular-nums;
  padding-top: env(safe-area-inset-top, 0px);
}
a { color: var(--tinte); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .3rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; line-height: 1.25; margin: 0 0 .6rem; font-weight: 700; }
h3 { font-size: 1rem; margin: 1.1rem 0 .35rem; font-weight: 700; }
p { margin: 0 0 .7rem; }
p:last-child { margin-bottom: 0; }
code { font-size: .9em; background: var(--flaeche-2); padding: .05em .3em; border-radius: 4px; overflow-wrap: anywhere; }
.leise { color: var(--leise); }
.klein { font-size: .88rem; }
.verborgen { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
math { font-size: 1.12em; }
math[display="block"] { display: block; overflow-x: auto; overflow-y: hidden; max-width: 100%; padding: .2rem 0; }
.aufgabe .tabelle-rahmen, .loesung .tabelle-rahmen { margin: .6rem 0; }
.aufgabe table td, .aufgabe table th, .loesung table td, .loesung table th { border-bottom: 1px solid var(--linie); }
/* Was trotz Teilen zu breit ist, scrollt im eigenen Absatz, nie die ganze Seite */
.aufgabe p, .loesung p, .aussagen span, .falle p { overflow-x: auto; overflow-y: hidden; }
.formel-fehler { font-family: ui-monospace, monospace; color: var(--schlecht); }

/* Gerüst */
.wrap { max-width: 720px; margin: 0 auto; padding: 18px 16px calc(96px + env(safe-area-inset-bottom, 0px)); }
.schmal { max-width: 420px; margin: 8vh auto 0; }
.seitenkopf { margin-bottom: 18px; }
.brotkrumen { margin: 0 0 .4rem; font-size: .92rem; }
.brotkrumen a::before { content: "‹ "; }
.marke { font-size: 2.2rem; letter-spacing: .02em; }
.flaeche { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.stapel > * + * { margin-top: 10px; }
.stapel label { display: block; font-size: .9rem; color: var(--leise); margin-bottom: -4px; }
.stapel label.ankreuzen { color: var(--text); font-size: .95rem; margin-bottom: 0; }
.aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.zeile-zwischen { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.raster2 label { display: block; font-size: .9rem; color: var(--leise); margin-bottom: 4px; }
.unten { align-self: end; }
form.inline { display: inline; }
.fuss { text-align: center; font-size: .8rem; margin-top: 24px; }

/* Bedienelemente */
input, select, button { font: inherit; color: inherit; }
input[type=text], input[type=password], input:not([type]), input[inputmode], select {
  width: 100%; min-height: 44px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); padding: .45rem .65rem;
}
::placeholder { color: var(--leise); opacity: .7; }
button, .knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem 1.05rem;
  border: 1px solid var(--linie); border-radius: 999px; background: var(--flaeche); color: var(--text);
  font-weight: 700; text-decoration: none; cursor: pointer;
}
.primaer { background: var(--tinte); border-color: var(--tinte); color: var(--tinte-text); }
.gefahr { color: var(--schlecht); border-color: var(--schlecht); background: transparent; }
.breit { width: 100%; }
button.klein { min-height: 36px; padding: .3rem .8rem; font-size: .9rem; }
button:disabled { opacity: .5; cursor: progress; }

.meldung, .fehler, .warnung { border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.meldung { background: var(--gut-hell); color: var(--gut); }
.fehler { background: var(--schlecht-hell); color: var(--schlecht); }
.warnung { background: var(--falle-hell); color: var(--text); }
.warnung ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.marke-ok { background: var(--gut-hell); color: var(--gut); border-radius: 999px; padding: .1rem .55rem; font-size: .85rem; font-weight: 700; }
.marke-entwurf { background: var(--falle-hell); color: var(--falle); border-radius: 999px; padding: .05rem .5rem; font-size: .8rem; font-weight: 700; }

.tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: .45rem .5rem; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { color: var(--leise); font-size: .84rem; font-weight: 700; }
.z { text-align: right; white-space: nowrap; }
.codes code, .schluessel { font-size: 1rem; }
.qr svg { width: 220px; height: 220px; background: #fff; padding: 8px; border-radius: 10px; }

/* Reiter: unten am Handy, oben ab Tablet */
.reiter {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--flaeche); border-top: 1px solid var(--linie);
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
}
.reiter-innen { display: flex; max-width: 720px; margin: 0 auto; }
.reiter a {
  flex: 1; text-align: center; padding: 12px 2px; min-height: 52px; font-weight: 700; font-size: .9rem; color: var(--leise);
  text-decoration: none; border-radius: 10px; white-space: nowrap;
}
.reiter a[aria-current] { color: var(--tinte); background: var(--tinte-hell); }
@media (min-width: 760px) {
  .reiter { position: sticky; top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--linie); padding: 6px; }
  .wrap { padding-bottom: 40px; }
}

/* Startseite */
.schwach { border-left: 5px solid var(--tinte); }
.regelname { font-size: 1.35rem; font-weight: 700; line-height: 1.25; margin: .1rem 0 .3rem; }
.klein-regel { font-size: 1.05rem; margin: 0; }
.offen { border-left: 5px solid var(--falle); }
.wiederholen { border-left: 5px solid var(--gut); }
.zahl-gross { font-size: 1.6rem; font-weight: 700; color: var(--gut); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { font-size: .9rem; color: var(--leise); margin-bottom: 4px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; }
.seg legend { width: 100%; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .3rem .2rem; font-weight: 700;
  font-size: .92rem; color: var(--leise); background: var(--flaeche-2); border: 1px solid var(--linie); white-space: nowrap;
}
.seg label:first-of-type span { border-radius: 10px 0 0 10px; }
.seg label:last-of-type span { border-radius: 0 10px 10px 0; }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--tinte); color: var(--tinte-text); border-color: var(--tinte); }
.seg input:focus-visible + span { outline: 3px solid var(--fokus); outline-offset: 1px; }
.hinweis { font-size: .88rem; color: var(--leise); margin: 6px 0 0; }
/* Hinweise und Felder je nach Wahl; ohne :has bleibt alles sichtbar */
.baukasten:has(input[name=modus][value=schwaechen]:not(:checked)) .nur-modus-schwaechen,
.baukasten:has(input[name=modus][value=fest]:not(:checked)) .nur-modus-fest,
.baukasten:has(input[name=modus][value=gemischt]:not(:checked)) .nur-modus-gemischt,
.baukasten:has(input[name=modus][value=adaptiv]:not(:checked)) .nur-modus-adaptiv,
.baukasten:has(input[name=modus][value=fest]:not(:checked)) .nur-fest,
.baukasten:has(input[name=uhr][value=frage]:not(:checked)) .nur-uhr-frage,
.baukasten:has(input[name=uhr][value=abschnitt]:not(:checked)) .nur-uhr-abschnitt,
.baukasten:has(input[name=uhr][value=stoppuhr]:not(:checked)) .nur-uhr-stoppuhr,
.baukasten:has(input[name=uhr][value=abschnitt]:checked) .nur-anzahl { display: none; }
.bestand details { border-top: 1px solid var(--linie); padding: .55rem 0; }
.bestand details:first-of-type { border-top: 0; }
.bestand summary { cursor: pointer; display: flex; justify-content: space-between; font-weight: 700; list-style: none; }
.bestand summary::-webkit-details-marker { display: none; }
.bestand ul { list-style: none; margin: .4rem 0 0; padding: 0; }
.bestand li { display: flex; justify-content: space-between; padding: .2rem 0 .2rem .95rem; font-size: .95rem; }
.punkt-quant, .punkt-verbal, .punkt-di, .punkt-reihe-quant, .punkt-reihe-verbal, .punkt-reihe-di, .punkt-reihe-1,
.punkt-reihe-2, .punkt-reihe-3 { display: inline-block; width: .62em; height: .62em; border-radius: 50%; margin-right: .45em; }
.punkt-quant, .punkt-reihe-quant, .punkt-reihe-1 { background: var(--quant); }
.punkt-falle { display: inline-block; width: .62em; height: .62em; border-radius: 50%; margin-right: .45em; background: var(--falle); }
.punkt-verbal, .punkt-reihe-verbal, .punkt-reihe-2 { background: var(--verbal); }
.punkt-di, .punkt-reihe-di, .punkt-reihe-3 { background: var(--di); }

/* Im Satz: oben Leiste mit Uhr, kein Reiter */
.satzleiste { position: sticky; top: 0; z-index: 15; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.satzleiste-innen { max-width: 720px; margin: 0 auto; padding: 6px 12px; display: flex; align-items: center; gap: 10px; }
.fortschritt { font-weight: 700; color: var(--leise); font-size: .95rem; }
.uhr { margin-left: auto; font-size: 1.5rem; font-weight: 700; min-width: 4.6ch; text-align: right; }
.uhr.knapp { color: var(--falle); }
.uhr.drueber { color: var(--schlecht); }
.uhr.steht { color: var(--leise); }
.ablauf { height: 4px; background: var(--flaeche-2); }
.ablauf i { display: block; height: 100%; width: 0; background: var(--tinte); transition: width .25s linear; }
.ablauf i.drueber { background: var(--schlecht); }
.beenden summary { list-style: none; cursor: pointer; color: var(--tinte); font-weight: 700; padding: 10px 4px; }
.beenden summary::-webkit-details-marker { display: none; }
.beenden[open] .beenden-feld {
  position: absolute; left: 12px; right: 12px; top: 56px; z-index: 30; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 14px; padding: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}
body.im-satz .wrap { padding-bottom: 24px; }
body.im-satz .reiter, body.im-satz .fuss { display: none; }
.frage-format { font-size: .88rem; color: var(--leise); margin-bottom: .6rem; }
.aufgabe { font-size: 1.06rem; }
.aussagen { list-style: none; margin: .9rem 0 0; padding: 0; }
.aussagen li { display: flex; gap: .6rem; padding: .5rem 0; border-top: 1px dashed var(--linie); }
.aussagen b { flex: none; }
.bogen { margin-top: 16px; display: grid; gap: 8px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; min-height: 54px; position: relative;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; cursor: pointer;
}
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bub {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--leise); color: var(--leise);
  display: grid; place-items: center; font-weight: 700; font-size: .92rem; transition: background .12s, border-color .12s;
}
.txt { padding-top: 3px; min-width: 0; overflow-x: auto; }
.opt:has(input:checked) { border-color: var(--tinte); background: var(--tinte-hell); }
.opt input:checked + .bub { background: var(--tinte); border-color: var(--tinte); color: var(--tinte-text); }
.opt input:focus-visible + .bub { outline: 3px solid var(--fokus); outline-offset: 2px; }
.opt.ist-richtig { border-color: var(--gut); background: var(--gut-hell); cursor: default; }
.opt.ist-richtig .bub { background: var(--gut); border-color: var(--gut); color: var(--flaeche); }
.opt.ist-falsch { border-color: var(--schlecht); background: var(--schlecht-hell); cursor: default; }
.opt.ist-falsch .bub { background: var(--schlecht); border-color: var(--schlecht); color: var(--flaeche); }
div.opt { cursor: default; }
.satzfuss {
  position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--grund) 70%, transparent);
}
.urteil { border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.urteil.gut { background: var(--gut-hell); color: var(--gut); }
.urteil.schlecht { background: var(--schlecht-hell); color: var(--schlecht); }
.urteil h2 { margin-bottom: .2rem; }
.urteil p { color: var(--text); }
.markierungen { display: flex; gap: 8px; flex-wrap: wrap; }
.markierungen form { display: contents; }
.markierungen button { min-height: 40px; padding: .35rem .95rem; }
.markierungen button[aria-pressed="true"] { background: var(--text); color: var(--flaeche); border-color: var(--text); }
.loesung h3:first-child { margin-top: 0; }
.falle { background: var(--falle-hell); border-radius: 10px; padding: 10px 12px; margin-top: .9rem; }
.falle h3 { color: var(--falle); margin-top: 0; }
.rueckblick { list-style: none; margin: 0; padding: 0; }
.rueckblick li { display: flex; justify-content: space-between; gap: 10px; padding: .45rem 0; border-top: 1px solid var(--linie); }
.rueckblick li:first-child { border-top: 0; }
.rueckblick a { text-decoration: none; color: var(--text); }
.gut { color: var(--gut); font-weight: 700; }
.schlecht { color: var(--schlecht); font-weight: 700; }

/* Schwächen und Statistik */
.schwachstelle { padding: 12px 0; border-top: 1px solid var(--linie); }
.schwachstelle:first-of-type { border-top: 0; padding-top: 2px; }
.stufe { display: flex; align-items: center; gap: 10px; margin: .35rem 0; }
.stufe b { min-width: 3.5ch; text-align: right; }
.balken { flex: 1; height: 8px; display: block; }
.balken-grund { fill: var(--flaeche-2); }
.balken-wert { fill: var(--tinte); }
.diagnose { font-size: .92rem; color: var(--leise); }
.diagnose strong { color: var(--text); }
.vorlaeufig { list-style: none; margin: 0; padding: 0; }
.vorlaeufig li { display: flex; justify-content: space-between; gap: 10px; padding: .35rem 0; border-top: 1px solid var(--linie); }
.vorlaeufig li > span:last-child { white-space: nowrap; }
.kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kennzahlen b { display: block; font-size: 1.5rem; }
.kennzahlen span { font-size: .85rem; color: var(--leise); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chips a {
  border: 1px solid var(--linie); border-radius: 999px; padding: .35rem .85rem; min-height: 36px; font-weight: 700;
  font-size: .88rem; color: var(--leise); text-decoration: none; display: inline-flex; align-items: center;
}
.chips a[aria-current] { background: var(--tinte-hell); color: var(--text); border-color: var(--tinte); }
.grafik { display: block; width: 100%; height: auto; }
.grafik .raster { stroke: var(--linie); stroke-width: 1; }
.grafik .achse { fill: var(--leise); font-size: 12px; font-family: var(--schrift); }
.grafik .linie { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafik .reihe-quant, .grafik .reihe-1 { stroke: var(--quant); }
.grafik .reihe-verbal, .grafik .reihe-2 { stroke: var(--verbal); }
.grafik .reihe-di, .grafik .reihe-3 { stroke: var(--di); }
.grafik circle.reihe-quant, .grafik circle.reihe-1 { fill: var(--quant); stroke: none; }
.grafik circle.reihe-verbal, .grafik circle.reihe-2 { fill: var(--verbal); stroke: none; }
.grafik circle.reihe-di, .grafik circle.reihe-3 { fill: var(--di); stroke: none; }
.grafik .balken-unter { fill: var(--tinte); }
.grafik .balken-ueber { fill: var(--falle); }
.grafik .ziel { stroke: var(--text); stroke-width: 2; }
.grafik .falsch-zeichen { fill: var(--schlecht); font-size: 11px; font-family: var(--schrift); }
.grafik .plan-linie { stroke: var(--leise); stroke-dasharray: 4 4; }
/* Diagramme (diagramm.py) */
.diagramm-rahmen { margin: .8rem 0; }
.diagramm-rahmen figcaption { font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.grafik .fuellung-1 { fill: var(--r1); } .grafik .fuellung-2 { fill: var(--r2); } .grafik .fuellung-3 { fill: var(--r3); }
.grafik .fuellung-4 { fill: var(--r4); } .grafik .fuellung-5 { fill: var(--r5); } .grafik .fuellung-6 { fill: var(--r6); }
.grafik .reihe-4 { stroke: var(--r4); } .grafik .reihe-5 { stroke: var(--r5); } .grafik .reihe-6 { stroke: var(--r6); }
.grafik circle.reihe-4 { fill: var(--r4); stroke: none; } .grafik circle.reihe-5 { fill: var(--r5); stroke: none; }
.grafik circle.reihe-6 { fill: var(--r6); stroke: none; }
.diagramm .reihe-1 { stroke: var(--r1); } .diagramm .reihe-2 { stroke: var(--r2); } .diagramm .reihe-3 { stroke: var(--r3); }
.diagramm circle.reihe-1 { fill: var(--r1); stroke: none; } .diagramm circle.reihe-2 { fill: var(--r2); stroke: none; }
.diagramm circle.reihe-3 { fill: var(--r3); stroke: none; }
.punkt-reihe-4, .punkt-reihe-5, .punkt-reihe-6 { display: inline-block; width: .62em; height: .62em; border-radius: 50%; margin-right: .45em; }
.punkt-reihe-4 { background: var(--r4); } .punkt-reihe-5 { background: var(--r5); } .punkt-reihe-6 { background: var(--r6); }
.diagramm-rahmen .punkt-reihe-1 { background: var(--r1); } .diagramm-rahmen .punkt-reihe-2 { background: var(--r2); }
.diagramm-rahmen .punkt-reihe-3 { background: var(--r3); }
.grafik .wert { fill: var(--text); font-size: 11px; font-family: var(--schrift); }
.grafik .wert-innen { fill: #fff; font-size: 11px; font-weight: 700; font-family: var(--schrift); }
.grafik .gross { font-size: 15px; font-weight: 700; }
.grafik .achse.dunkel { fill: var(--text); }
.grafik .torte { stroke: var(--flaeche); stroke-width: 1.5; }
.torte-legende { list-style: none; margin: .3rem 0 0; padding: 0; font-size: .92rem; columns: 2; }
.torte-legende .punkt-reihe-1, .torte-legende .punkt-reihe-2, .torte-legende .punkt-reihe-3 { display: inline-block; width: .62em; height: .62em; border-radius: 50%; margin-right: .45em; }
.grafik .venn-rahmen { fill: none; stroke: var(--linie); }
.grafik .venn-kreis { fill-opacity: .16; stroke-width: 2; }
.grafik .venn-1 { fill: var(--r1); stroke: var(--r1); } .grafik .venn-2 { fill: var(--r2); stroke: var(--r2); }
.grafik .venn-3 { fill: var(--r3); stroke: var(--r3); }
.grafik .knoten { fill: var(--flaeche-2); stroke: var(--r1); stroke-width: 1.5; }
.grafik .entscheidung { fill: var(--tinte-hell); }
.grafik .knoten-text { fill: var(--text); font-size: 11.5px; font-family: var(--schrift); }
.grafik .kante { fill: none; stroke: var(--leise); stroke-width: 1.5; }
.grafik .pfeilspitze { fill: var(--leise); }
.grafik .kanten-text { fill: var(--leise); font-size: 11px; font-style: italic; font-family: var(--schrift); }
.legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; color: var(--leise); margin: 6px 0; }

/* Fragen und Mehr */
.fragenliste { list-style: none; margin: 0; padding: 0; }
.fragenliste a {
  display: block; padding: 10px 12px; margin-bottom: 8px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 12px; text-decoration: none; color: var(--text);
}
.fragen-kopf { display: block; font-size: .9rem; }
.fragen-text { display: block; color: var(--leise); font-size: .92rem; }
.mehr { display: grid; gap: 10px; margin: 12px 0 20px; }
.mehr a {
  display: block; padding: 14px 16px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px;
  text-decoration: none; color: var(--text);
}
.mehr span { display: block; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 370px) { body { font-size: 16px; } .kennzahlen b { font-size: 1.25rem; } .seg span { font-size: .84rem; } }

/* Stufe 3: Formate, Simulation, Rechner */
.quelle summary { cursor: pointer; font-weight: 700; color: var(--tinte); margin-bottom: .4rem; }
.passage { max-height: 55vh; overflow-y: auto; padding: .2rem .6rem .2rem 0; border-left: 3px solid var(--linie); padding-left: .8rem; margin-bottom: .8rem; }
.quellen { margin-bottom: .8rem; }
.reiter-wahl { position: absolute; opacity: 0; width: 1px; height: 1px; }
.reiter-koepfe { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--linie); }
.reiter-koepfe label { padding: .45rem .7rem; border: 1px solid var(--linie); border-bottom: 0; border-radius: 8px 8px 0 0; font-size: .88rem; font-weight: 700; color: var(--leise); cursor: pointer; background: var(--flaeche-2); }
.tafeln .tafel { display: none; padding-top: .6rem; }
.quellen > .reiter-wahl:nth-of-type(1):checked ~ .tafeln > .tafel:nth-child(1),
.quellen > .reiter-wahl:nth-of-type(2):checked ~ .tafeln > .tafel:nth-child(2),
.quellen > .reiter-wahl:nth-of-type(3):checked ~ .tafeln > .tafel:nth-child(3) { display: block; }
.quellen > .reiter-wahl:nth-of-type(1):checked ~ .reiter-koepfe > label:nth-child(1),
.quellen > .reiter-wahl:nth-of-type(2):checked ~ .reiter-koepfe > label:nth-child(2),
.quellen > .reiter-wahl:nth-of-type(3):checked ~ .reiter-koepfe > label:nth-child(3) { background: var(--flaeche); color: var(--text); }
.quellen > .reiter-wahl:focus-visible ~ .reiter-koepfe { outline: 3px solid var(--fokus); }
table.daten { font-size: .9rem; margin: .4rem 0; }
table.daten caption { text-align: left; font-weight: 700; padding-bottom: .3rem; }
table.daten th { white-space: nowrap; }
.sortieren { all: unset; cursor: pointer; font-weight: 700; color: var(--tinte); }
.sortieren::after { content: " ↕"; color: var(--leise); }
th[aria-sort="ascending"] .sortieren::after { content: " ↑"; }
th[aria-sort="descending"] .sortieren::after { content: " ↓"; }
table.zwei-spalten { margin-top: .8rem; }
table.zwei-spalten th.mitte, table.zwei-spalten td.mitte { text-align: center; width: 3.6rem; vertical-align: middle; }
.kreuz { position: relative; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; cursor: pointer; }
.kreuz input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bub.klein { width: 26px; height: 26px; }
.kreuz input:checked + .bub { background: var(--tinte); border-color: var(--tinte); }
.kreuz input:focus-visible + .bub { outline: 3px solid var(--fokus); outline-offset: 2px; }
.bub.voll-richtig { background: var(--gut); border-color: var(--gut); }
.bub.voll-falsch { background: var(--schlecht); border-color: var(--schlecht); }
.luecken-satz { margin-top: 1rem; line-height: 2.4; font-size: 1.04rem; }
.luecken-satz select { width: auto; min-height: 40px; display: inline-block; margin: 0 .2rem; font-weight: 700; }
.luecke { font-weight: 700; padding: .1rem .35rem; border-radius: 6px; }
.luecke.ist-richtig { background: var(--gut-hell); color: var(--gut); }
.luecke.ist-falsch { background: var(--schlecht-hell); color: var(--schlecht); }
.hinweis-pruefen { background: var(--tinte-hell); border-radius: 12px; padding: 10px 14px; }
.sim-aktionen { justify-content: center; }
.lesezeichen[aria-pressed="true"] { background: var(--falle-hell); border-color: var(--falle); }
.pruefliste { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.pruefliste a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; text-decoration: none; color: var(--text); }
.pruefliste .nummer { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche-2); font-weight: 700; }
.pruefliste .leise { margin-left: auto; font-size: .88rem; }
.simulation { border-left: 5px solid var(--verbal); }
.hinweis-bestand { background: var(--falle-hell); border-radius: 8px; padding: 6px 10px; }
.vorlaeufig-karte .stufe b { color: var(--leise); }
.rechner-knopf { min-height: 36px; padding: .25rem .8rem; font-size: .9rem; }
.rechner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-width: 420px; margin: 0 auto;
  background: var(--rechner-gehaeuse); border-radius: 14px 14px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
  padding-bottom: env(safe-area-inset-bottom, 0px); user-select: none; -webkit-user-select: none; }
.rechner-kopf { display: flex; justify-content: space-between; align-items: center; background: var(--rechner-kopf);
  color: #fff; font-weight: 700; padding: 6px 8px 6px 14px; border-radius: 14px 14px 0 0; }
.rechner-zu { min-height: 32px; width: 32px; padding: 0; border-radius: 50%; background: #fff; color: var(--rechner-kopf);
  border: 0; font-size: 1.2rem; line-height: 1; }
.rechner-koerper { padding: 10px 12px 12px; }
.rechner-anzeige { position: relative; background: var(--rechner-lcd); color: #1d2a1d; border-radius: 6px; padding: .3rem .6rem;
  margin-bottom: 10px; text-align: right; font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25); overflow: hidden; white-space: nowrap; }
.rechner-m { position: absolute; left: .6rem; top: .2rem; font-size: .8rem; font-weight: 700; }
.rechner-tasten { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 44px; gap: 7px; }
.rechner-tasten button { min-height: 0; border-radius: 7px; padding: 0; font-size: 1.05rem; font-weight: 700; border: 0;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.rechner-tasten button:active { transform: translateY(1px); box-shadow: none; }
.rechner-tasten .op { background: var(--rechner-taste-op); color: #fff; }
.rechner-tasten .ziffer { background: var(--rechner-taste); color: #1e2b38; }
.rechner-tasten .gleich { grid-row: span 2; }
@media (min-width: 760px) {
  .rechner { left: auto; right: 24px; top: 90px; bottom: auto; width: 250px; margin: 0; border-radius: 10px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .3); }
  .rechner-kopf { cursor: move; border-radius: 10px 10px 0 0; }
  .rechner-tasten { grid-auto-rows: 38px; }
}

/* Rückblick nach der Antwort, Erklärungen, Fehlerarten */
.rueckblick { display: grid; gap: 6px; margin-top: .6rem; }
.rueckblick textarea { width: 100%; font: inherit; padding: .5rem; border-radius: 10px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); }
.rueckblick button { justify-self: start; }
.haken { display: flex; gap: .5rem; align-items: center; min-height: 44px; }
.haken input { width: 22px; height: 22px; }
.erklaerung-claude { border-left: 5px solid var(--tinte); }
.erklaerung-zeile { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--linie); text-decoration: none; color: var(--text); }
.fehlerart-zeile { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linie); }
