/* lernen.nanoplace.de — Stylesheet des Musters (18.10.2026)
   Rezept nach der Nele.ai-Analyse: eine Schrift (Rubik, leicht), große ruhige Typo,
   viel Luft, Hell-Dunkel-Wechsel, eine Akzentfarbe, Pill-Buttons, Pastellpaare für Karten. */

:root {
  --text: #57575b;
  --ink: #141414;
  --bg: #fafafa;
  --weiss: #ffffff;
  --karte: #ececec;
  --linie: #e2e2e2;
  --akzent: #96bf21;          /* Seiler-Grün, nur Flächen, nie als Schrift */
  --akzent-dunkel: #3f5a0a;   /* lesbare Variante für Text und Rahmen */
  --dunkel: #111111;
  --dunkel-karte: #1c1c1c;
  /* Pastellpaare (hell/dunkel); jede Lektion rotiert sie über .palette-1 bis .palette-4 (Block unten) */
  --c0-h: #d2facb; --c0-d: #233c1e;   /* grün */
  --c1-h: #f6d4bb; --c1-d: #573924;   /* orange */
  --c2-h: #e4ecf7; --c2-d: #1c2f45;   /* blau */
  --c3-h: #fbf0c4; --c3-d: #4a3c0a;   /* gelb */
  --c4-h: #e6dcf7; --c4-d: #2d1f4a;   /* lila */
  --c5-h: #cdeff0; --c5-d: #0f3a3c;   /* türkis */
  --c6-h: #f9dbe6; --c6-d: #4a1a2e;   /* rosa */
  --radius: 6px;
  --pill: 40px;
  --zeile: 1120px;
  --schmal: 680px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 { font-weight: 400; color: var(--ink); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 21px; margin-bottom: 6px; }
p { margin: 0 0 18px; }
a { color: var(--akzent-dunkel); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }

.zeile { max-width: var(--zeile); margin: 0 auto; padding: 0 24px; }
.schmal { max-width: var(--schmal); }
.gross { font-size: 22px; line-height: 1.45; }
.vorzeile { font-size: 15px; text-transform: none; letter-spacing: 0.02em; color: var(--text); margin-bottom: 8px; }
.leise { font-size: 15px; color: #8a8a8e; }

/* Kopf und Fuß */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 10; }
.kopf .zeile { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marke { font-weight: 500; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.marke span { color: var(--akzent); }
.kopf nav { display: flex; gap: 22px; font-size: 16px; }
.kopf nav a { color: var(--ink); }
.kopf nav a.leise { color: #8a8a8e; }
.fuss { border-top: 1px solid var(--linie); margin-top: 96px; padding: 32px 0; font-size: 14px; color: #8a8a8e; }
.fuss .herz { width: 13px; height: 13px; color: var(--akzent); vertical-align: -1px; margin: 0 1px; }
.fuss .zeile { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Startseite */
.held { padding: 96px 0 72px; }
.held h1 { margin-bottom: 24px; }
.held .gross { max-width: 760px; }
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.karte-kopf h2 { margin: 0; }

.etappen { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.etappe { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px 24px; }
.etappe.zu { background: transparent; border-style: dashed; color: #9a9a9e; }
.etappe.zu h3 { color: #6f6f73; }
.etappe-kopf { display: flex; gap: 18px; align-items: flex-start; }
.etappe-kopf p { margin: 0; }
.nummer { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 400; font-size: 18px; background: var(--karte); color: var(--ink); }
.etappe.offen .nummer { background: var(--akzent); color: var(--ink); }
.lektionen { list-style: none; padding: 0; margin: 18px 0 0 62px; border-top: 1px solid var(--linie); }
.lektionen li { border-bottom: 1px solid var(--linie); }
.lektionen a, .lektionen .geplant { display: flex; align-items: center; gap: 14px; padding: 12px 4px; color: var(--ink); }
.lektionen .geplant { color: #9a9a9e; }
.lek-nr { flex: 0 0 38px; font-size: 15px; color: #8a8a8e; }
.dauer { margin-left: auto; font-size: 14px; color: #8a8a8e; }
.lektionen a.erledigt::before { content: "✓"; color: var(--akzent-dunkel); font-weight: 500; }
.lektionen a:hover { text-decoration: none; background: var(--bg); }

.dunkel { background: var(--dunkel); color: #d6d6d6; margin-top: 96px; padding: 88px 0; }
.dunkel h2 { color: var(--weiss); }
.dunkel .gross { max-width: 760px; }

/* Lektion */
.lektion { padding-top: 72px; }
.lektion h1 { margin-bottom: 28px; }
.lektion .zeile.schmal + .zeile.schmal { margin-top: 36px; }

.mitmach { border-radius: var(--radius); padding: 28px 28px 20px; margin: 8px 0; }
.mitmach h2 { font-size: 22px; line-height: 1.35; }
.mitmach p { margin-bottom: 14px; }
.mitmach { background: var(--m-h); color: var(--m-d); }
.mitmach h2, .mitmach .vorzeile { color: var(--m-d); }
.mitmach a { color: inherit; text-decoration: underline; }
.quiz { --m-h: var(--t0-h); --m-d: var(--t0-d); }
.probe, .haken-block { --m-h: var(--t1-h); --m-d: var(--t1-d); }
.vergleich { --m-h: var(--t2-h); --m-d: var(--t2-d); }
.luecke { --m-h: var(--t3-h); --m-d: var(--t3-d); }
.zuordnen { --m-h: var(--t4-h); --m-d: var(--t4-d); }
.reihenfolge { --m-h: var(--t5-h); --m-d: var(--t5-d); }
.richtigfalsch { --m-h: var(--t6-h); --m-d: var(--t6-d); }

.antworten { display: grid; gap: 10px; margin: 6px 0 14px; }
.antwort {
  text-align: left; font: inherit; font-size: 17px; line-height: 1.4; color: inherit;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.12); border-radius: var(--radius);
  padding: 12px 16px; cursor: pointer;
}
.antwort:hover { background: rgba(255,255,255,0.9); }
.antwort.gewaehlt { border-color: currentColor; background: var(--weiss); }
.antwort.richtig { border-color: var(--akzent-dunkel); box-shadow: inset 0 0 0 1px var(--akzent-dunkel); }
.antwort.falsch { opacity: 0.75; }
.quiz.beantwortet .antwort { cursor: default; }
.rueckmeldung { display: none; font-weight: 400; padding-top: 4px; }
.rueckmeldung.aktiv { display: block; }

.prompt { background: var(--weiss); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 18px; color: var(--ink); }
.prompt code { flex: 1; line-height: 1.5; white-space: pre-wrap; }
.haken { list-style: none; padding: 0; margin: 0 0 16px; }
.haken li { padding: 6px 0; }
.haken label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 17px; }
.haken input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--t1-d); flex: 0 0 auto; }

.mitnehmen { background: var(--t2-h); color: var(--t2-d); border-radius: var(--radius); padding: 28px; margin: 8px 0 28px; }
.mitnehmen .vorzeile { color: var(--t2-d); }
.mitnehmen .gross { margin: 0; color: var(--t2-d); font-weight: 400; }
.begriffe dl { margin: 0; }
.begriffe dt { font-weight: 400; color: var(--ink); margin-top: 10px; }
.begriffe dd { margin: 0 0 6px; }
/* Vergleich: Vorher / Nachher zum Aufklappen */
.vergleich .seite { background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.1); border-radius: var(--radius); margin: 0 0 12px; }
.vergleich .seite[open] { background: var(--weiss); }
.vergleich summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 400; color: var(--t2-d); list-style: none; }
.vergleich summary::-webkit-details-marker { display: none; }
.vergleich summary::before { content: "\25B8"; font-size: 16px; transition: transform .15s ease; }
.vergleich .seite[open] summary::before { transform: rotate(90deg); }
.vergleich .seite > :not(summary) { margin-left: 18px; margin-right: 18px; }
.vergleich .seite > :last-child { margin-bottom: 18px; }
.vergleich blockquote { margin-top: 0; margin-bottom: 14px; padding: 12px 16px; background: var(--t2-h); border-left: 3px solid var(--t2-d); border-radius: 0 var(--radius) var(--radius) 0; color: var(--t2-d); }
.vergleich blockquote p { margin: 0 0 8px; }
.vergleich blockquote p:last-child { margin-bottom: 0; }
blockquote { margin: 0 0 18px; padding-left: 18px; border-left: 3px solid var(--linie); }

/* Etappentest */
.test .quiz.beantwortet .antwort.gewaehlt { border-color: currentColor; }
.test .antwort.gewaehlt { background: var(--weiss); border-color: var(--t0-d); }
.test .abschluss .hinweis { margin: 0 0 14px; }
.ergebnis { margin-top: 24px; }
.ergebnis .zahl { font-size: 34px; font-weight: 400; color: var(--ink); margin-bottom: 8px; }
.ergebnis .urteil { margin-bottom: 16px; }
.ergebnis.bestanden .urteil { color: var(--akzent-dunkel); font-weight: 400; }
.abschluss { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--linie); }
.weiter { margin-top: 16px; }

/* Buttons */
.pill {
  font: inherit; font-weight: 400; font-size: 16px; line-height: 1;
  background: var(--ink); color: var(--weiss); border: 0; border-radius: var(--pill);
  padding: 15px 26px; cursor: pointer; white-space: nowrap;
}
.pill:hover { background: #333; }
.pill.klein { padding: 10px 16px; font-size: 14px; }
.pill.gross-pill { padding: 17px 32px; font-size: 17px; }
.pill.fertig { background: var(--akzent); color: var(--ink); cursor: default; }

/* Anmeldeseite */
body.tuer { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 100vh; padding: 24px; }
.tuer-fuss { font-size: 14px; color: #8a8a8e; text-align: center; margin: 0; }
.tuer-fuss .herz { width: 13px; height: 13px; color: var(--akzent); vertical-align: -1px; margin: 0 1px; }
.tuer-karte { width: 100%; max-width: 480px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 15px; padding: 40px 36px; }
.tuer-karte .marke { display: inline-block; margin-bottom: 28px; }
.tuer-karte h1 { font-size: 36px; }
.tuer-karte .gross { font-size: 19px; }
.tuer-karte label { display: block; font-size: 15px; margin: 24px 0 8px; color: var(--ink); }
.feld { display: flex; gap: 10px; }
.feld input {
  flex: 1; font: inherit; font-size: 18px; padding: 12px 16px; border: 1px solid #cfcfcf; border-radius: var(--pill);
  background: var(--bg); color: var(--ink); min-width: 0;
}
.feld input:focus { outline: 2px solid var(--akzent); border-color: transparent; }
.fehler { color: #8a2b1e; font-size: 15px; margin-top: 12px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .kopf .zeile { height: auto; min-height: 56px; flex-wrap: wrap; row-gap: 2px; padding-top: 10px; padding-bottom: 10px; }
  .marke { font-size: 19px; }
  .kopf nav { gap: 16px; font-size: 15px; }
  .gross { font-size: 19px; }
  .held { padding: 56px 0 40px; }
  .lektionen { margin-left: 0; }
  .mitmach { padding: 22px 18px 14px; }
  .prompt { flex-direction: column; }
  .feld { flex-direction: column; }
  .dunkel { padding: 56px 0; margin-top: 64px; }
}

/* Piktogramme (eigene Zeichnungen, 24er Raster, Strich 1.5) */
.ico { width: 20px; height: 20px; vertical-align: -5px; margin-right: 8px; flex: 0 0 auto; }
.nummer .ico { width: 22px; height: 22px; margin: 0; vertical-align: 0; }
.etappe-nr { font-size: 14px; color: #8a8a8e; margin: 0 0 2px !important; }
.etappe.zu .nummer { color: #8a8a8e; }

/* Lernreise-Treppe */
.treppe { display: block; width: 100%; max-width: 760px; height: auto; margin: 4px 0 28px; }
.treppe .stufe rect { fill: var(--karte); stroke: none; }
.treppe .stufe.erreicht rect { fill: var(--akzent); }
.treppe .stufe.fertig rect { fill: var(--akzent-dunkel); }
.treppe .stufe text { font-family: inherit; font-weight: 400; text-anchor: middle; fill: var(--ink); }
.treppe .stufe .nr { font-size: 17px; pointer-events: none; }
.treppe .stufe.fertig .nr { fill: var(--weiss); }
.treppe .stufe { cursor: pointer; outline: none; }
.treppe .stufe:hover rect, .treppe .stufe:focus-visible rect { stroke: var(--ink); stroke-width: 1.5; }
.treppe-text { margin: -18px 0 28px; font-size: 17px; color: var(--ink); min-height: 1.5em; }
.treppe .marker circle { fill: var(--ink); }
.treppe .marker path { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.treppe .marker text { font-family: inherit; font-size: 12px; font-weight: 400; text-anchor: middle; fill: var(--ink); }

/* Chatfenster im Vorher-Nachher */
.chat { background: var(--weiss); border: 1px solid rgba(0,0,0,0.1); border-radius: 12px; padding: 14px; margin: 0 0 14px; display: grid; gap: 10px; }
.blase { max-width: 88%; padding: 10px 14px; border-radius: 14px; position: relative; }
.blase p { margin: 0; font-size: 16px; line-height: 1.45; }
.blase .wer { display: block; font-size: 12px; color: #8a8a8e; margin-bottom: 3px; }
.blase.du { justify-self: end; background: var(--t2-d); color: var(--weiss); border-bottom-right-radius: 4px; }
.blase.du .wer { color: rgba(255,255,255,0.65); text-align: right; }
.blase.ki { justify-self: start; background: var(--bg); color: var(--ink); border: 1px solid var(--linie); border-bottom-left-radius: 4px; }

/* ===== Ergänzung 18.10.2026: Palette-Rotation, neue Mitmach-Blöcke, Bilder, Looks, Lesbarkeit ===== */
/* Farbrotation je Lektion: Typ t bekommt Paar (t + Palette - 1) mod 7. Typen: 0 Quiz, 1 Probe/Haken, 2 Vergleich/Mitnehmen,
   3 Lücken, 4 Zuordnen, 5 Reihenfolge, 6 Richtig/Falsch. Die Klasse palette-N setzt bau.py aus der Lektionsnummer. */
:root { --t0-h: var(--c0-h); --t0-d: var(--c0-d); --t1-h: var(--c1-h); --t1-d: var(--c1-d); --t2-h: var(--c2-h); --t2-d: var(--c2-d); --t3-h: var(--c3-h); --t3-d: var(--c3-d); --t4-h: var(--c4-h); --t4-d: var(--c4-d); --t5-h: var(--c5-h); --t5-d: var(--c5-d); --t6-h: var(--c6-h); --t6-d: var(--c6-d); }
.palette-1 { --t0-h: var(--c0-h); --t0-d: var(--c0-d); --t1-h: var(--c1-h); --t1-d: var(--c1-d); --t2-h: var(--c2-h); --t2-d: var(--c2-d); --t3-h: var(--c3-h); --t3-d: var(--c3-d); --t4-h: var(--c4-h); --t4-d: var(--c4-d); --t5-h: var(--c5-h); --t5-d: var(--c5-d); --t6-h: var(--c6-h); --t6-d: var(--c6-d); }
.palette-2 { --t0-h: var(--c1-h); --t0-d: var(--c1-d); --t1-h: var(--c2-h); --t1-d: var(--c2-d); --t2-h: var(--c3-h); --t2-d: var(--c3-d); --t3-h: var(--c4-h); --t3-d: var(--c4-d); --t4-h: var(--c5-h); --t4-d: var(--c5-d); --t5-h: var(--c6-h); --t5-d: var(--c6-d); --t6-h: var(--c0-h); --t6-d: var(--c0-d); }
.palette-3 { --t0-h: var(--c2-h); --t0-d: var(--c2-d); --t1-h: var(--c3-h); --t1-d: var(--c3-d); --t2-h: var(--c4-h); --t2-d: var(--c4-d); --t3-h: var(--c5-h); --t3-d: var(--c5-d); --t4-h: var(--c6-h); --t4-d: var(--c6-d); --t5-h: var(--c0-h); --t5-d: var(--c0-d); --t6-h: var(--c1-h); --t6-d: var(--c1-d); }
.palette-4 { --t0-h: var(--c3-h); --t0-d: var(--c3-d); --t1-h: var(--c4-h); --t1-d: var(--c4-d); --t2-h: var(--c5-h); --t2-d: var(--c5-d); --t3-h: var(--c6-h); --t3-d: var(--c6-d); --t4-h: var(--c0-h); --t4-d: var(--c0-d); --t5-h: var(--c1-h); --t5-d: var(--c1-d); --t6-h: var(--c2-h); --t6-d: var(--c2-d); }

/* Gemeinsames für die neuen Blöcke */
.pruef-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 14px; }
.pruef-zeile .pill { background: var(--m-d); color: var(--m-h); }
.pruef-zeile .pill:hover { filter: brightness(1.25); }
.pruef-zeile .pill:focus-visible, .ctl:focus-visible { outline: 3px solid var(--m-d); outline-offset: 2px; }
.erg { font-weight: 400; font-size: 17px; }
.status { font-weight: 500; }
.status:empty { display: none; }
.richtig > .status, .richtig .status { color: var(--akzent-dunkel); }
.falsch > .status, .falsch .status { color: #8a2b1e; }
.mitmach .ctl:disabled { cursor: default; }

/* Lücken */
.luecke-feld { display: inline-flex; align-items: center; gap: 6px; vertical-align: baseline; max-width: 100%; }
.luecke-in {
  font: inherit; font-size: 17px; color: var(--ink); padding: 4px 10px; min-height: 36px;
  background: rgba(255,255,255,0.85); border: 1px solid rgba(0,0,0,0.28); border-radius: var(--radius); max-width: 100%;
}
.luecke-feld.richtig .luecke-in { border-color: var(--akzent-dunkel); box-shadow: inset 0 0 0 1px var(--akzent-dunkel); background: #eef7d8; }
.luecke-feld.falsch .luecke-in { border-color: #8a2b1e; box-shadow: inset 0 0 0 1px #8a2b1e; background: #fbe7e3; }
.soll { font-size: 15px; color: #8a2b1e; }

/* Zuordnen */
.karten, .schritte, .aussagen { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.karte, .schritte li, .aussage {
  background: rgba(255,255,255,0.65); border: 1px solid rgba(0,0,0,0.12); border-radius: var(--radius); padding: 10px 14px;
}
.karte { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.karte-text { flex: 1 1 220px; }
.karte-wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl, .rf {
  font: inherit; font-size: 15px; line-height: 1.2; color: var(--m-d); background: transparent; text-align: left;
  border: 1px solid var(--m-d); border-radius: var(--pill); padding: 9px 16px; min-height: 40px; cursor: pointer;
}
.wahl:hover, .rf:hover { background: rgba(255,255,255,0.7); }
.wahl.gewaehlt, .rf.gewaehlt { background: var(--m-d); color: var(--m-h); }
.karte.richtig, .schritte li.richtig, .aussage.richtig { border-color: var(--akzent-dunkel); box-shadow: inset 0 0 0 2px var(--akzent-dunkel); }
.karte.falsch, .schritte li.falsch, .aussage.falsch { border-color: #8a2b1e; box-shadow: inset 0 0 0 2px #8a2b1e; }

/* Reihenfolge */
.schritte { counter-reset: schritt; }
.schritte li { counter-increment: schritt; display: flex; align-items: center; gap: 12px; }
.schritte li::before { content: counter(schritt); flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: var(--m-d); color: var(--m-h); }
.schritt-text { flex: 1 1 auto; }
.schritt-knoepfe { display: flex; gap: 6px; flex: 0 0 auto; }
.auf, .ab { font: inherit; font-size: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--m-d); background: transparent; color: var(--m-d); cursor: pointer; }
.auf:hover, .ab:hover { background: rgba(255,255,255,0.7); }

/* Richtig oder falsch */
.aussage-text { margin-bottom: 10px; }
.rf-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aussage .rueckmeldung { margin: 10px 0 0; }

/* Bilder (inline-SVG aus assets/bilder/, erben die Textfarbe) */
.figur { margin: 8px 0 26px; color: var(--figur-farbe, var(--ink)); }
.figur-svg { display: block; width: 100%; height: auto; max-height: 320px; }
.figur figcaption { font-size: 15px; line-height: 1.45; color: #8a8a8e; margin-top: 8px; }
.figur-links, .figur-rechts { width: 40%; max-width: 260px; margin-top: 6px; margin-bottom: 14px; }
.figur-links { float: left; margin-right: 28px; }
.figur-rechts { float: right; margin-left: 28px; }
.lektion .zeile.schmal { display: flow-root; }

/* Zahlenkacheln */
.zahlen { display: grid; gap: 12px; margin: 8px 0 26px; grid-template-columns: repeat(var(--n, 3), 1fr); }
.zahlen-1 { --n: 1; } .zahlen-2 { --n: 2; } .zahlen-3 { --n: 3; } .zahlen-4 { --n: 4; }
.kachel { background: var(--t3-h); color: var(--t3-d); border-radius: var(--radius); padding: 20px 16px; text-align: center; display: grid; gap: 8px; align-content: start; }
.kachel-zahl { font-size: clamp(36px, 7vw, 52px); font-weight: 400; line-height: 1; color: var(--t3-d); }
.kachel-text { font-size: 15px; line-height: 1.35; }

/* Looks und Einstieg */
.lektion.look-band, .lektion.look-dunkel { padding-top: 0; }
.band { background: var(--t2-h); padding: 72px 0 44px; margin-bottom: 36px; }
.band .zeile > :last-child { margin-bottom: 0; }
.band h1, .band .vorzeile { color: var(--t2-d); }
.kopf-dunkel.dunkel { margin-top: 0; padding: 72px 0 52px; margin-bottom: 36px; }
.kopf-dunkel h1 { color: var(--weiss); }
.kopf-dunkel .vorzeile { color: #a9a9a9; }
.kopf-dunkel .zeile > :last-child { margin-bottom: 0; }
.kopf-karte { background: var(--t2-h); color: var(--t2-d); border-radius: 15px; padding: 44px 40px 28px; margin-bottom: 8px; }
.kopf-karte h1, .kopf-karte .vorzeile { color: var(--t2-d); }
.kopf-karte > :last-child { margin-bottom: 0; }
.kopf-karte .gross { color: var(--t2-d); }
.lektion.look-karte + * { margin-top: 0; }

/* Lesbarkeit: Blocksatz mit Silbentrennung, schmale Spalte 680px */
.lektion p, .lektion li, .lektion dd { line-height: 1.6; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.lektion .gross { line-height: 1.45; }
.lektion .vorzeile, .lektion .rueckmeldung, .lektion .erg, .lektion .blase p, .lektion .hinweis, .lektion .kachel-text,
.lektion .kachel-zahl, .lektion .urteil, .lektion .zahl, .lektion .weiter, .lektion .abschluss p, .lektion .karte, .lektion .rf-knoepfe,
.lektion .schritte li, .lektion .begriffe dt, .lektion .treppe-text {
  text-align: left; hyphens: manual; -webkit-hyphens: manual;
}
.lektion .blase p { line-height: 1.45; }
.lektion .vorzeile { line-height: 1.4; }
.lektion .kachel-text, .lektion .kachel-zahl { text-align: center; }

@media (max-width: 640px) {
  .figur-links, .figur-rechts { float: none; width: 100%; max-width: 280px; margin: 8px auto 20px; }
  .zahlen-3, .zahlen-4 { --n: 2; }
  .zahlen { gap: 10px; }
  .band { padding: 48px 0 32px; }
  .kopf-dunkel.dunkel { padding: 48px 0 36px; }
  .kopf-karte { padding: 28px 22px 20px; }
  .schritte li { flex-wrap: wrap; }
  .treppe-text { margin-top: -10px; }
}
.lektion .luecke p { text-align: left; hyphens: manual; -webkit-hyphens: manual; line-height: 2; }

/* Dunkler Kopfbereich: auch Einstiegsabsatz und Vorzeile hell (Befund 18.10.: Schrift unlesbar auf Schwarz) */
.kopf-dunkel .gross, .kopf-dunkel p { color: #d6d6d6; }
.kopf-dunkel .vorzeile { color: #b5b5b5; }

/* Gewählte Gruppe beim Zuordnen und Stimmt/Stimmt-nicht deutlich füllen (Befund 18.10.: Auswahl kaum sichtbar) */
.mitmach .ctl.wahl.gewaehlt, .mitmach .ctl.rf.gewaehlt { background: currentColor; }
.mitmach .ctl.wahl.gewaehlt, .mitmach .ctl.rf.gewaehlt { color: var(--weiss); background: var(--ink); border-color: var(--ink); }
