/* Grundlayout: eine Spalte, gut lesbar auf Handy, Tablet und PC. Look „modern“ (V024, von Ronny freigegeben 2026-11-21) */
:root { --text: #141a2e; --leise: #5b6380; --hinter: #f5f6fb; --karte: #ffffff; --akzent: #4f46e5; --akzent-hell: #eef0ff; --akzent-text: #3730a3;
  --rand: #e2e5ef; --gruen: #16a34a; --gruen-hell: #ecfdf3; --gruen-text: #166534; --buehne: #141a2e;
  --schatten: 0 1px 2px rgba(20,26,46,.06), 0 8px 24px rgba(20,26,46,.06); --rund: 20px; }
[hidden] { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root { --text: #e8ecf3; --leise: #a6afc0; --hinter: #0f1320; --karte: #1a2033; --akzent: #8b86ff; --akzent-hell: #262a4d; --akzent-text: #c7c4ff;
    --rand: #2c3450; --gruen: #34c26b; --gruen-hell: #173323; --gruen-text: #a7e8bf; --buehne: #1e2645; --schatten: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--hinter); }
.karte { width: 100%; max-width: 560px; background: var(--karte); border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
h1 { margin-top: 0; font-size: 1.6rem; }
.leise { color: var(--leise); font-size: .9rem; }
footer { margin-top: 24px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: .9rem; }
a { color: var(--akzent); }
h2 { font-size: 1.2rem; margin-top: 1.5rem; }
.knopf { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--akzent); color: #fff; text-decoration: none;
  border: 0; font: inherit; cursor: pointer; }
.knopf-aus { background: var(--leise); cursor: default; }
.knopf-klein { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--leise); background: transparent; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
/* Verwaltung: volle Breite, oben ausgerichtet */
body.verwaltung { justify-content: flex-start; align-items: stretch; }
.kopf { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; max-width: 1000px; width: 100%; margin: 0 auto 16px; }
.kopf nav { display: flex; gap: 14px; flex-wrap: wrap; }
.marke { font-weight: 700; text-decoration: none; color: var(--text); }
.abmelden { display: flex; gap: 8px; align-items: center; margin: 0; }
.inhalt { max-width: 1000px; width: 100%; margin: 0 auto; background: var(--karte); border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.hinweis { background: var(--hinter); border-left: 4px solid var(--akzent); padding: 8px 12px; }
.tabelle-rahmen { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--hinter); vertical-align: top; }
tr.bereich th { background: var(--hinter); }
tr.gesperrt td { opacity: .6; }
.mitte { text-align: center; }
.klein { font-size: .8rem; word-break: break-word; }
.zeile { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
select { font: inherit; padding: 4px; }
input[type=checkbox] { width: 20px; height: 20px; }
/* Schuelerseiten und Kacheln */
body.seite { justify-content: flex-start; }
.breit { width: 100%; max-width: 900px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 16px 0; }
.kachel { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--karte); border-radius: 12px; text-decoration: none; color: var(--text);
  box-shadow: 0 2px 10px rgba(0,0,0,.07); border: 2px solid transparent; min-height: 120px; }
.kachel:hover, .kachel:focus-visible { border-color: var(--akzent); }
.kachel-titel { font-weight: 600; font-size: 1.05rem; }
.pikto { width: 40px; height: 40px; color: var(--akzent); }
.mit-pikto { display: flex; align-items: center; gap: 10px; }
.pfad { font-size: .9rem; }
.marke-leicht, .marke-mittel, .marke-schwer { display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 999px; width: fit-content; }
.marke-leicht { background: #dff3e4; color: #1d5b2c; } .marke-mittel { background: #fdf0d5; color: #6b4b00; } .marke-schwer { background: #fbe1e1; color: #7a1f1f; }
.code-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.code-form input { font: inherit; font-size: 1.4rem; letter-spacing: .2em; text-transform: uppercase; padding: 10px; border-radius: 8px; border: 1px solid var(--leise); }
.fehler { color: #b3261e; font-weight: 600; margin: 0; }
.beenden { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.erfahrungen { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.erfahrungen li { background: var(--karte); border-radius: 8px; padding: 8px 12px; }
form.inline { display: inline; }
.reiter { display: flex; gap: 4px; border-bottom: 1px solid var(--leise); margin: 8px 0 16px; flex-wrap: wrap; }
.reiter a { padding: 8px 14px; text-decoration: none; color: var(--leise); border: 1px solid transparent; border-bottom: none; border-radius: 8px 8px 0 0; margin-bottom: -1px; }
.reiter a[aria-current=page] { color: var(--text); background: var(--karte); border-color: var(--leise); font-weight: 600; }
.reiter a:hover { color: var(--text); }
.kopf-start { justify-content: flex-end; max-width: 900px; margin-bottom: 0; }
.anmelden-link { color: var(--leise); font-size: .85rem; text-decoration: none; padding: 4px 10px; border: 1px solid transparent; border-radius: 6px; }
a.anmelden-link:hover, a.anmelden-link:focus-visible { color: var(--text); border-color: var(--leise); }
.code { font-family: ui-monospace, monospace; font-size: 1.1rem; letter-spacing: .1em; }
.formular { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.formular input[type=text], .formular input[type=date], .formular input[type=number] { font: inherit; padding: 8px; border-radius: 6px; border: 1px solid var(--leise); }
.formular fieldset { border: 1px solid var(--hinter); border-radius: 8px; }
.auswahl { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.zeile > div { display: flex; flex-direction: column; gap: 4px; }
/* Übungen abspielen */
.uebung { margin: 16px 0; }
.video { display: block; width: 100%; max-height: 80vh; background: #000; border-radius: 8px; }
.uebung-kopf { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.fortschritt { height: 8px; background: var(--karte); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.fortschritt-fuell { height: 100%; background: #2e9d4f; transition: width .3s; }
.karte-uebung { position: relative; background: var(--karte); border-radius: 14px; padding: 22px; box-shadow: 0 2px 12px rgba(0,0,0,.08); border: 3px solid transparent; }
.karte-uebung.karte-gruen { border-color: #2e9d4f; }
.karte-uebung.karte-rot { border-color: #c4413a; }
.karte-uebung .nr { position: absolute; top: 8px; right: 12px; font-size: .75rem; }
.frage { font-size: 1.15rem; font-weight: 600; margin: 4px 0 12px; }
.antworten { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.antwort { text-align: left; font: inherit; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--hinter); background: var(--hinter); color: var(--text); cursor: pointer; }
.antwort:hover:not(:disabled), .antwort:focus-visible { border-color: var(--akzent); }
.antwort[aria-pressed=true] { border-color: var(--akzent); background: var(--karte); font-weight: 600; }
.antwort.ist-richtig { border-color: #2e9d4f; background: #dff3e4; color: #1d5b2c; }
.antwort.ist-falsch { border-color: #c4413a; background: #fbe1e1; color: #7a1f1f; }
.antwort:disabled { cursor: default; }
.rueckseite { border-top: 1px dashed var(--leise); margin-top: 14px; padding-top: 12px; animation: umdrehen .35s ease-out; }
@keyframes umdrehen { from { transform: rotateX(80deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rueckseite { animation: none; } .fortschritt-fuell { transition: none; } }
.urteil { font-weight: 700; }
.antworttext { font-weight: 600; }
.erklaerung { background: var(--hinter); border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
/* Aenderungshinweis (Ronny 2026-11-22): neuer und frueherer Stand, Kasten in Gelb; frueher richtige Antworten markiert */
.aenderung { background: #fff6d6; color: #5c4400; border-left: 4px solid #d9a400; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.aenderung-titel { font-weight: 700; margin: 0 0 4px; }
.antwort.war-richtig::after { content: " (früher richtig)"; font-weight: 400; font-style: italic; }
@media (prefers-color-scheme: dark) { .aenderung { background: #3a3110; color: #ffe08a; border-left-color: #d9a400; } }
.eigene-antwort { width: 100%; font: inherit; padding: 8px; border-radius: 8px; border: 1px solid var(--leise); margin: 6px 0 10px; background: var(--karte); color: var(--text); }
.stichpunkte { list-style: none; padding: 0; } .stichpunkte li { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.knopf-gruen { background: #2e9d4f; } .knopf-rot { background: #c4413a; }
.knopf:disabled { opacity: .5; cursor: default; }
.zahl { width: 5em; font: inherit; padding: 2px 4px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Teilnehmer */
.fortsetzungs-code { font-family: ui-monospace, monospace; font-size: 2rem; letter-spacing: .15em; font-weight: 700; margin: 8px 0; }
.teilnehmer-zeile { background: var(--karte); border-radius: 8px; padding: 8px 12px; }
.name-feld { letter-spacing: normal !important; text-transform: none !important; }
.weiter-link { margin-top: 20px; }
.zahl-breit { width: 9em; font: inherit; padding: 2px 4px; }
.pikto-wahl { display: flex; flex-wrap: wrap; gap: 10px; }
.pikto-wahl label { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 8px; border: 1px solid var(--hinter); cursor: pointer; }
/* Hilfe-Bereich und Druckansicht (PDF über den Browser) */
.hilfe-leiste { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.hilfe-inhalt { background: var(--hinter); border-radius: 8px; padding: 8px 16px; margin: 12px 0 20px; }
.hilfe-inhalt h2 { margin-top: .5rem; }
.hilfe-text { max-width: 760px; }
.hilfe-text h2 { border-bottom: 1px solid var(--hinter); padding-bottom: 4px; margin-top: 2rem; }
.hilfe-text h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.hilfe-text code { font-family: ui-monospace, monospace; font-size: .9em; background: var(--hinter); padding: 1px 4px; border-radius: 4px; }
.hilfe-text li { margin: 3px 0; }
.hilfe-text table { margin: 10px 0; font-size: .95rem; }
@media print {
  @page { margin: 16mm 14mm; }
  :root { --text: #000; --leise: #444; --hinter: #eee; --karte: #fff; --akzent: #000; }
  body, body.verwaltung, body.seite { display: block; background: #fff; padding: 0; font-size: 11pt; }
  .kopf, footer, .pfad, .beenden, .nur-bildschirm, [data-drucken], .hinweis[role=status] { display: none !important; }
  .inhalt, .breit { box-shadow: none; padding: 0; max-width: none; }
  a { color: #000; text-decoration: none; }
  .hilfe-text h2 { break-after: avoid; page-break-after: avoid; }
  .hilfe-text h3 { break-after: avoid; page-break-after: avoid; }
  table, .hinweis, li { break-inside: avoid; page-break-inside: avoid; }
  .hilfe-inhalt { background: none; border: 1px solid #999; }
  .tabelle-rahmen { overflow: visible; }
}
.kachel-geschafft { background: #dff3e4; border-color: #2e9d4f; color: #1d5b2c; }
.geschafft { font-weight: 700; color: #1d5b2c; }
@media (prefers-color-scheme: dark) { .kachel-geschafft { background: #1f3a28; color: #cdebd6; } .geschafft { color: #9fdcb1; } }

/* Assistent „Neue Freigabe“ (V019) */
.assistent .schritt { margin: 0 0 18px; }
.assistent h3 { margin: 8px 0 4px; }
.thema-knopf { font: inherit; text-align: left; cursor: pointer; border: 2px solid transparent; }
.thema-knopf.thema-offen { border-color: var(--akzent); }
.thema-uebungen { border: none; padding: 0; margin: 8px 0 0; }
.thema-uebungen legend { font-weight: 600; padding: 0; }
.mit-js .thema-uebungen legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.uebung-wahl { position: relative; border: 2px solid transparent; }
.uebung-wahl-flaeche { display: flex; flex-direction: column; gap: 6px; cursor: pointer; padding-right: 32px; }
.erfahrung summary { cursor: pointer; color: var(--leise); }
.uebung-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.uebung-wahl .haken { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--leise);
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: transparent; }
.uebung-wahl:has(input:checked) { border-color: var(--akzent); }
.uebung-wahl:has(input:checked) .haken { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.uebung-wahl:has(input:focus-visible) { outline: 3px solid var(--akzent); outline-offset: 2px; }
.leiste-unten { position: sticky; bottom: 0; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 10px 0; background: var(--hinter); border-top: 1px solid var(--leise); }
#auswahl-liste ul { margin: 4px 0 0; padding-left: 20px; }
.erfahrung-liste { margin: 0; padding-left: 18px; }
.erfahrung-liste .gut { color: #2e7d46; } .erfahrung-liste .schlecht { color: #b33a33; }
@media (prefers-color-scheme: dark) { .erfahrung-liste .gut { color: #7fd69a; } .erfahrung-liste .schlecht { color: #ff9a92; } }

/* Multiple Choice (V020): Rahmen anteilig gruen = Anteil richtig im letzten Durchgang, im Uhrzeigersinn ab oben */
.kachel-anteil { --rand-leer: #d5dae3; border: 4px solid transparent;
  background: linear-gradient(var(--karte), var(--karte)) padding-box, conic-gradient(var(--gruen) calc(var(--a) * 1%), var(--rand-leer) 0) border-box; }
@media (prefers-color-scheme: dark) { .kachel-anteil { --rand-leer: #3a4357; } }
.anteil-0 { --a: 0; }
.anteil-5 { --a: 5; }
.anteil-10 { --a: 10; }
.anteil-15 { --a: 15; }
.anteil-20 { --a: 20; }
.anteil-25 { --a: 25; }
.anteil-30 { --a: 30; }
.anteil-35 { --a: 35; }
.anteil-40 { --a: 40; }
.anteil-45 { --a: 45; }
.anteil-50 { --a: 50; }
.anteil-55 { --a: 55; }
.anteil-60 { --a: 60; }
.anteil-65 { --a: 65; }
.anteil-70 { --a: 70; }
.anteil-75 { --a: 75; }
.anteil-80 { --a: 80; }
.anteil-85 { --a: 85; }
.anteil-90 { --a: 90; }
.anteil-95 { --a: 95; }
.anteil-100 { --a: 100; }
.statistik { margin: 14px 0; }
.statistik h3 { margin: 0 0 4px; font-size: 1rem; }
.balken-reihe { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 18px 0 0; overflow-x: auto; }
.balken { position: relative; flex: 0 0 28px; height: 100%; background: var(--hinter); border-radius: 6px 6px 0 0; display: flex; align-items: flex-end; }
.balken-fuell { width: 100%; background: #8cc79f; border-radius: 6px 6px 0 0; }
.balken-neu .balken-fuell { background: #2e9d4f; }
.balken-wert { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: .7rem; white-space: nowrap; color: var(--leise); }
.verlauf { white-space: nowrap; }
.knopf-zweit { background: transparent; color: var(--akzent); border: 2px solid var(--akzent); }

/* ===== Look „modern“ (V024) ===== */
body { padding: 0 16px 16px; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
a { color: var(--akzent-text); }
/* Links nie unterstreichen, auf allen Seiten (Ronny 2026-11-22); erkennbar an Farbe und Fokus-Rahmen */
a, a:hover, a:focus, a:visited { text-decoration: none; }
a:hover { color: var(--akzent); }
@media (prefers-color-scheme: dark) { a { color: var(--akzent-text); } }
.karte, .inhalt { border-radius: var(--rund); box-shadow: var(--schatten); }
.knopf { padding: 12px 22px; border-radius: 12px; font-weight: 700; }
.knopf-klein { border-radius: 10px; border-color: var(--rand); background: var(--karte); padding: 6px 12px; }
.knopf-zweit { background: transparent; color: var(--akzent); border: 2px solid var(--akzent); }
.knopf-gruen { background: var(--gruen); }
input[type=text], input[type=date], input[type=number], select, textarea { border-color: var(--rand); background: var(--karte); color: var(--text); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
/* Kopfzeile mit Marke */
.kopf { padding: 18px 0; margin-bottom: 8px; }
.kopf-seite { max-width: 1100px; justify-content: space-between; }
.marke { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; letter-spacing: -.01em; }
.marke-zeichen { width: 38px; height: 38px; border-radius: 12px; background: var(--akzent); display: inline-flex; align-items: center; justify-content: center; }
.marke-pikto { width: 22px; height: 22px; color: #fff; }
.anmelden-link { font-size: .95rem; padding: 8px 14px; border-radius: 10px; }
a.anmelden-link:hover, a.anmelden-link:focus-visible { background: var(--karte); border-color: transparent; }
.kopf nav a { text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.kopf nav a:hover { background: var(--akzent-hell); }
/* Schuelerseiten */
.breit { max-width: 1100px; }
.pfad { color: var(--leise); margin: 0 0 8px; }
.buehne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 64px);
  border-radius: 28px; background: var(--buehne); color: #fff; margin: 4px 0 32px; }
.buehne-text { display: flex; flex-direction: column; gap: 12px; max-width: 620px; flex: 1 1 320px; }
.buehne-text h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.05; letter-spacing: -.03em; }
.buehne-text p { margin: 0; font-size: clamp(1rem, 2.2vw, 1.2rem); color: #c7cbe0; }
.buehne-marke { font-size: 1rem; font-weight: 700; letter-spacing: .01em; color: #a5b4fc; }
.buehne-weiter { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--rund); background: rgba(255,255,255,.07); flex: 0 1 300px; color: #c7cbe0; }
.buehne-weiter .klein { color: #9aa1bd; font-size: .85rem; }
.knopf-hell { background: #fff; color: #141a2e; text-align: center; }
.kacheln { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 16px 0 24px; }
.kachel { gap: 10px; padding: 24px; border-radius: var(--rund); box-shadow: var(--schatten); border: 4px solid transparent; min-height: 150px; }
.kachel:hover, .kachel:focus-visible { border-color: var(--akzent); transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) { .kachel { transition: transform .15s, border-color .15s; } }
.kachel-titel { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.kachel-text { color: var(--leise); font-size: .95rem; }
.kachel-meta { font-size: .82rem; font-weight: 600; color: var(--leise); }
.kachel-fuss { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.pikto-feld { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--akzent-hell); color: var(--akzent); }
.pikto-feld .pikto { width: 28px; height: 28px; color: inherit; }
.farbe-1 { background: #fff3e6; color: #c2570c; } .farbe-2 { background: #e7f6ee; color: #15803d; } .farbe-3 { background: #fdeaf3; color: #be185d; }
@media (prefers-color-scheme: dark) { .farbe-1 { background: #3a2a1a; color: #fdba74; } .farbe-2 { background: #173323; color: #86efac; } .farbe-3 { background: #3a1a2a; color: #f9a8d4; } }
.seiten-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 8px 0; }
.seiten-kopf h1 { margin: 0; gap: 16px; }
.chip { padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.chip-gut { background: var(--gruen-hell); color: var(--gruen-text); }
.chip-noch { background: #fff4e5; color: #9a3412; }
@media (prefers-color-scheme: dark) { .chip-noch { background: #3a2a1a; color: #fdba74; } }
.kachel-geschafft { background: var(--gruen-hell); border-color: var(--gruen); color: var(--gruen-text); }
.kachel-geschafft .kachel-meta { color: var(--gruen-text); }
.geschafft { color: var(--gruen-text); }
.kachel-anteil { border-width: 5px; }
.kachel-anteil:hover, .kachel-anteil:focus-visible { border-color: transparent; }
.teilnehmer-zeile { border-radius: 12px; box-shadow: var(--schatten); padding: 10px 14px; }
.code-form input { border-radius: 12px; border: 2px solid var(--rand); }
.code-form input:focus { border-color: var(--akzent); outline: none; }
/* Uebung */
.uebung { max-width: 780px; }
.uebung-kopf { gap: 8px; font-weight: 600; }
.fortschritt { height: 10px; background: var(--rand); box-shadow: none; }
.fortschritt-fuell { background: var(--akzent); border-radius: 999px; }
.karte-uebung { border-radius: 24px; padding: clamp(20px, 4vw, 32px); box-shadow: 0 1px 2px rgba(20,26,46,.06), 0 12px 32px rgba(20,26,46,.08); }
.karte-uebung.karte-gruen { border-color: var(--gruen); }
.karte-uebung .nr { top: 14px; right: 18px; }
.frage { font-size: clamp(1.15rem, 2.6vw, 1.4rem); font-weight: 700; line-height: 1.4; }
.hinweis-anzahl { display: inline-block; padding: 6px 12px; border-radius: 10px; background: var(--akzent-hell); color: var(--akzent-text); font-size: .9rem; font-weight: 600; margin: 4px 0; }
.antworten { gap: 12px; }
.antwort { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 14px; border: 2px solid var(--rand); background: var(--karte); font-size: 1.05rem; }
.antwort::before { content: ""; flex-shrink: 0; width: 26px; height: 26px; box-sizing: border-box; border-radius: 8px; border: 2px solid #c5cad9; }
.antwort[aria-pressed=true] { background: var(--akzent-hell); font-weight: 400; }
.antwort[aria-pressed=true]::before { background: var(--akzent); border-color: var(--akzent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center; background-repeat: no-repeat; }
.antwort.ist-richtig { border-color: var(--gruen); background: var(--gruen-hell); color: var(--gruen-text); }
.antwort.ist-richtig::before { border-color: var(--gruen); }
.antwort.ist-falsch::before { border-color: #c4413a; }
@media (prefers-color-scheme: dark) { .antwort.ist-falsch { background: #3a1c1c; color: #ffb4ab; } }
.aktionen { display: flex; justify-content: flex-end; margin: 8px 0 0; }
.erklaerung { border-radius: 12px; }
.balken-fuell { background: #9bd5ad; } .balken-neu .balken-fuell { background: var(--gruen); }
.balken { background: var(--rand); }
@media print { .buehne, .marke-zeichen { display: none !important; } .kachel { box-shadow: none; } }

/* Hilfe: „Nach oben“ (Ronny 2026-11-21), immer unten rechts sichtbar, ohne JavaScript */
.nach-oben { position: fixed; right: 16px; bottom: 16px; z-index: 10; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  border-radius: 999px; background: var(--akzent); color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--schatten); }
.nach-oben:hover, .nach-oben:focus-visible { color: #fff; filter: brightness(1.1); }
@media (prefers-color-scheme: dark) { .nach-oben, .nach-oben:hover { color: #141a2e; } }
.hilfe-text { padding-bottom: 56px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Dozenten-Startseite (V026) */
.knopf-gross { font-size: 1.1rem; padding: 14px 26px; }
.freigabe-hinweise { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.freigabe-hinweise li { padding: 10px 14px; border-radius: 12px; background: #fff4e5; color: #7c2d12; }
@media (prefers-color-scheme: dark) { .freigabe-hinweise li { background: #3a2a1a; color: #fdba74; } }
.freigabe-kachel { min-height: 0; border-color: var(--rand); box-shadow: none; }
.freigabe-kachel:hover { transform: none; border-color: var(--rand); }
.freigabe-bald { border-color: #f59e0b; }
.freigabe-bald:hover { border-color: #f59e0b; }
.freigabe-code { font-size: 1.6rem; font-weight: 800; letter-spacing: .12em; }

/* Startseite: erst Code, dann Themen (V028) */
.code-buehne { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-width: 460px; }
.code-buehne label { color: #c7cbe0; font-weight: 600; }
.code-zeile { display: flex; gap: 10px; flex-wrap: wrap; }
.code-zeile input { flex: 1 1 180px; min-width: 0; font: inherit; font-size: 1.4rem; letter-spacing: .2em; text-transform: uppercase; padding: 12px 14px;
  border-radius: 12px; border: 2px solid transparent; background: #fff; color: #141a2e; }
.code-zeile input:focus { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.code-zeile .knopf { flex: 0 0 auto; }
.fehler-hell { margin: 0; color: #fecaca; font-weight: 600; }
.weiterer-code { margin: 4px 0 20px; }
.weiterer-code summary { cursor: pointer; color: var(--akzent-text); font-weight: 600; }
.weiterer-code .code-form { margin-top: 12px; }
.buehne-text { min-width: 0; flex-basis: 260px; }
.code-zeile input { width: 100%; }
.code-zeile input::placeholder { letter-spacing: normal; text-transform: none; font-size: 1.1rem; }
.fehler-hell { font-size: .95rem; }
@media (max-width: 480px) { .anmelden-link { font-size: .85rem; padding: 6px 8px; } .kopf-seite { flex-wrap: nowrap; gap: 8px; } }

/* Seite „Lernplattform verlassen“ (Ronny 2026-11-22) */
.verlassen-link { border-color: var(--rand); }
.verlassen-liste { line-height: 1.6; padding-left: 1.2em; }
.verlassen-liste li { margin: 6px 0; }
.verlassen-aktionen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 8px; }
.verlassen-aktionen form { margin: 0; }
.uebung-abbrechen { margin: 20px 0 0; }

/* „Fehler melden“ (Ronny 2026-11-22) */
.link-knopf { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--akzent-text); cursor: pointer; }
.link-knopf:hover { color: var(--akzent); }
.fehler-dialog { border: 0; border-radius: var(--rund); padding: 22px; max-width: min(460px, calc(100vw - 32px)); width: 100%; background: var(--karte); color: var(--text); box-shadow: var(--schatten); }
.fehler-dialog::backdrop { background: rgba(15, 18, 34, .55); }
.fehler-dialog h2 { margin: 0 0 6px; font-size: 1.25rem; }
.fehler-gruende { border: 0; padding: 0; margin: 10px 0; }
.fehler-grund { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.fehler-grund input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.fehler-text { width: 100%; box-sizing: border-box; margin: 6px 0 10px; font: inherit; padding: 8px; border-radius: 10px; border: 1px solid var(--rand); background: var(--hinter); color: var(--text); }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
tr.erledigt td { opacity: .6; }
.meldung-text { white-space: pre-line; }
/* Nummer mit „Fehler melden“ als eigene Zeile, damit nichts die Frage verdeckt */
.karte-uebung .nr { position: static; display: block; text-align: right; margin: -6px -4px 8px 0; font-size: .8rem; }
/* Zaehler fuer offene Eintraege (Menue „Feedback“, Reiter, Uebersicht; Ronny 2026-11-22) */
.zaehler { display: inline-block; min-width: 1.4em; padding: 1px 6px; border-radius: 999px; background: #dc2626; color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.4; text-align: center; vertical-align: 1px; }
.feedback-hinweis { display: flex; gap: 10px; align-items: center; }
.vorschau-hinweis { border-left: 4px solid var(--akzent); }
a.knopf-klein { display: inline-block; color: var(--text); }
/* Allgemeines Feedback (Ronny 2026-11-22): Sterne ohne Skript (Reihenfolge 5..1, rueckwaerts angezeigt) */
.feedback-schritt .reiter { margin: 12px 0; }
.feedback-form { display: grid; gap: 14px; max-width: 640px; }
.feedback-frage, .feedback-wahl { border: 0; padding: 0; margin: 0; }
.feedback-frage legend, .feedback-wahl legend, .feedback-frage-text { font-weight: 600; padding: 0; margin-bottom: 4px; }
.feedback-frage { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.feedback-frage legend { width: 100%; }
.sterne { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.sterne input, .ueberspringen input, .feedback-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sterne label { font-size: 2rem; line-height: 1; padding: 2px 3px; color: var(--rand); cursor: pointer; transition: color .1s; }
.sterne label:hover, .sterne label:hover ~ label, .sterne input:checked ~ label { color: #f59e0b; }
.sterne input:focus-visible + label, .ueberspringen input:focus-visible + label, .feedback-wahl input:focus-visible + label { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
.ueberspringen label, .feedback-wahl label { display: inline-block; padding: 5px 12px; border: 1px solid var(--rand); border-radius: 999px; font-size: .9rem; color: var(--leise); cursor: pointer; }
.ueberspringen input:checked + label, .feedback-wahl input:checked + label { background: var(--akzent-hell); border-color: var(--akzent); color: var(--akzent-text); font-weight: 600; }
.feedback-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.feedback-wahl legend { width: 100%; font-weight: 400; color: var(--leise); }
.karte-gruen-hell { background: var(--gruen-hell); color: var(--gruen-text); }
.feedback-schnitt td:nth-child(2) { white-space: nowrap; }
.sterne-anzeige { color: #f59e0b; letter-spacing: 1px; }
/* Feedback nach „Jetzt verlassen“ (Ronny 2026-11-22) */
.feedback-schritt { max-width: 720px; }
.feedback-schritt h1 { font-size: 1.6rem; }
.feedback-optionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.feedback-option { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 2px solid var(--rand); border-radius: 14px; color: var(--text); background: var(--karte); text-align: left; font: inherit; cursor: pointer; width: 100%; height: 100%; box-sizing: border-box; }
.feedback-option strong { font-size: 1.1rem; color: var(--akzent-text); }
.feedback-option span { color: var(--leise); font-size: .9rem; }
.feedback-option:hover, .feedback-option:focus-visible { border-color: var(--akzent); }
.nein-danke { margin: 0; }
.feedback-nein { justify-content: center; font-weight: 600; color: var(--leise); }
.abschied { display: inline-block; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; padding: 8px 14px; margin: 0 0 12px; font-weight: 600; }
