/* Algorithmen & Rekursion – Gestaltung */
:root {
  --hg: #f6f7f9;
  --flaeche: #ffffff;
  --text: #1d2430;
  --leise: #5b6577;
  --linie: #dde1e8;
  --akzent: #2457c5;
  --akzent-hell: #e8efff;
  --ok: #1f8a4c;
  --ok-hell: #e3f5ea;
  --fehler: #c0392b;
  --fehler-hell: #fdecea;
  --gelb: #e0a100;
  --gelb-hell: #fff6d6;
  --vergleich: #22a35a;
  --tausch: #d9412f;
  --sortiert: #2f6fe0;
  --balken: #9aa7bd;
  --code-hg: #f3f4f7;
  --radius: 10px;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --hg: #12151b; --flaeche: #1b2029; --text: #e6e9ef; --leise: #9aa3b2; --linie: #2e3542;
    --akzent: #7aa2ff; --akzent-hell: #1f2a45; --ok: #4cc27d; --ok-hell: #16301f; --fehler: #ff7b6b; --fehler-hell: #3a1d1a;
    --gelb: #f0c040; --gelb-hell: #3a3215; --balken: #5d6a80; --code-hg: #151922;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hg); color: var(--text); font: 16px/1.55 var(--schrift); }
a { color: var(--akzent); }
h1 { font-size: 1.8rem; line-height: 1.2; margin: .2em 0 .6em; }
h2 { font-size: 1.3rem; margin: 1.8em 0 .5em; }
h3 { font-size: 1.08rem; margin: 0; }
code { font-family: var(--mono); font-size: .92em; background: var(--code-hg); padding: .05em .3em; border-radius: 4px; }
.klein { font-size: .85rem; color: var(--leise); }

/* Kopf und Fuß */
.kopf { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .7rem 1rem; background: var(--flaeche); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 10; }
.marke { font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.logo { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: var(--akzent); color: #fff; font-family: var(--mono); font-size: .85rem; }
.kopf nav { display: flex; gap: .3rem; flex: 1; }
.kopf nav a { padding: .3rem .7rem; border-radius: 6px; text-decoration: none; color: var(--leise); }
.kopf nav a.aktiv, .kopf nav a:hover { background: var(--akzent-hell); color: var(--akzent); }
.anmeldung { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
main { max-width: 980px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.fuss { max-width: 980px; margin: 0 auto; padding: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: var(--leise); border-top: 1px solid var(--linie); }

/* Allgemeine Bausteine */
.badge { display: inline-block; font-size: .75rem; padding: .1rem .5rem; border-radius: 99px; background: var(--akzent-hell); color: var(--akzent); font-weight: 600; vertical-align: middle; }
.meldung { padding: .7rem 1rem; border-radius: var(--radius); background: var(--ok-hell); color: var(--ok); margin-bottom: 1rem; }
.meldung.fehler { background: var(--fehler-hell); color: var(--fehler); }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.2rem; }
.karte.schmal { max-width: 460px; margin: 2rem auto; }
.karte h2:first-child { margin-top: 0; }
button, .knopf { font: inherit; border: 0; border-radius: 8px; padding: .45rem 1rem; background: var(--akzent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .knopf:hover { filter: brightness(1.08); }
button:disabled { opacity: .45; cursor: default; filter: none; }
button.zweit, .knopf.zweit { background: var(--akzent-hell); color: var(--akzent); }
button.gefahr { background: var(--fehler); }
button.link { background: none; color: var(--akzent); padding: 0; text-decoration: underline; }
button.link.gefahr { color: var(--fehler); }
input, select { font: inherit; padding: .4rem .6rem; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); color: var(--text); }
input[type=number] { width: 5.5rem; }
input[type=range] { padding: 0; }
form.inline { display: inline; }
.formular { display: grid; gap: .8rem; }
.formular label { display: grid; gap: .3rem; }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .8rem 0; }
.spalten { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 760px) { .spalten { grid-template-columns: 1fr; } }

/* Startseite */
.einleitung p { max-width: 70ch; }
.code-login { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.code-login label { display: grid; gap: .2rem; font-weight: 600; }
.code-login .klein { flex-basis: 100%; }
.lektionen { list-style: none; padding: 0; display: grid; gap: .7rem; }
.lektionen a { display: flex; gap: 1rem; align-items: center; padding: 1rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.lektionen a:hover { border-color: var(--akzent); }
.lnr { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--akzent-hell); color: var(--akzent); font-weight: 700; }
.ltext { flex: 1; display: grid; }
.ltext span { color: var(--leise); font-size: .9rem; }
.lfort { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--leise); }
.balken { width: 70px; height: 8px; border-radius: 4px; background: var(--linie); overflow: hidden; display: inline-block; }
.balken span { display: block; height: 100%; width: 0; background: var(--ok); }

/* Lektionsseite */
.brotkrumen { font-size: .85rem; color: var(--leise); margin: 0; }
.lektion > p, .lektion .aufgabe > p, .lektion li { max-width: 75ch; }
.aufgabenliste { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.5rem; }
.aufgabenliste a { font-size: .82rem; padding: .25rem .6rem; border-radius: 99px; border: 1px solid var(--linie); background: var(--flaeche); text-decoration: none; color: var(--leise); }
.aufgabenliste a.fertig { border-color: var(--ok); color: var(--ok); }
.aufgabenliste a.fertig::before { content: "✓ "; }
.merke { border-left: 4px solid var(--akzent); background: var(--akzent-hell); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1rem 0; }
.merke > :first-child { margin-top: 0; }
.merke > :last-child { margin-bottom: 0; }
.merke strong.titel { display: block; margin-bottom: .3rem; color: var(--akzent); }
.achtung { border-left-color: var(--gelb); background: var(--gelb-hell); }
.achtung strong.titel { color: var(--text); }
.aufgabe { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.4rem 0; scroll-margin-top: 4.5rem; }
.aufgabe.zusatz { border-style: dashed; }
.aufgabe > header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.aufgabe .nr { color: var(--akzent); margin-right: .3rem; }
.erledigt-schalter { font-size: .85rem; color: var(--leise); white-space: nowrap; cursor: pointer; }
.erledigt-schalter input { accent-color: var(--ok); }
.hinweis { color: var(--leise); font-size: .9rem; }
.loesung { margin-top: 1rem; border: 1px solid var(--linie); border-radius: 8px; }
.loesung summary { cursor: pointer; padding: .5rem .8rem; font-weight: 600; color: var(--ok); }
.loesung > div { padding: 0 .8rem .8rem; }
.loesung.gesperrt { padding: .5rem .8rem; color: var(--leise); font-size: .9rem; background: var(--hg); }
.weiter { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
table.werte { border-collapse: collapse; margin: .8rem 0; }
table.werte th, table.werte td { border: 1px solid var(--linie); padding: .3rem .6rem; text-align: center; }
table.werte th { background: var(--hg); }
.notation { font-family: var(--mono); font-size: .85rem; background: var(--code-hg); padding: .7rem; border-radius: 8px; overflow-x: auto; white-space: pre; line-height: 1.35; }

/* Code */
figure.code { margin: 1rem 0; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; background: var(--code-hg); }
figure.code figcaption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem .7rem; font: .8rem var(--mono); background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.code-aktionen { display: flex; gap: .7rem; align-items: center; }
.code-aktionen button { padding: .1rem .5rem; font-size: .78rem; }
figure.code pre { margin: 0; padding: .7rem .9rem; overflow: auto; max-height: 460px; font: .85rem/1.45 var(--mono); tab-size: 2; }
figure.code pre code { background: none; padding: 0; font-size: inherit; }
.tok-k { color: #a626a4; font-weight: 600; }
.tok-t { color: #0b7a75; }
.tok-z { color: #b4610a; }
.tok-s { color: #2f8a33; }
.tok-c { color: #7d8799; font-style: italic; }
@media (prefers-color-scheme: dark) { .tok-k { color: #d98be0; } .tok-t { color: #5fd0c8; } .tok-z { color: #f0a35e; } .tok-s { color: #8bd17c; } }

/* Struktogramm (Nassi-Shneiderman) */
.struktogramm { display: inline-block; min-width: min(460px, 100%); max-width: 100%; border: 2px solid var(--text); font-size: .9rem; margin: .8rem 0; background: var(--flaeche); }
.struktogramm .titel { padding: .3rem .6rem; font-weight: 700; border-bottom: 2px solid var(--text); }
.sg-a { padding: .35rem .6rem; border-bottom: 1px solid var(--text); font-family: var(--mono); font-size: .85rem; }
.sg-a:last-child, .sg-w > .sg-rumpf > :last-child, .sg-z > div > :last-child { border-bottom: 0; }
.sg-w { border-bottom: 1px solid var(--text); }
.sg-w:last-child { border-bottom: 0; }
.sg-w > .sg-kopf { padding: .35rem .6rem; font-family: var(--mono); font-size: .85rem; }
.sg-w > .sg-rumpf { margin-left: 1.6rem; border-left: 1px solid var(--text); border-top: 1px solid var(--text); }
.sg-v { border-bottom: 1px solid var(--text); }
.sg-v:last-child { border-bottom: 0; }
.sg-v > .sg-bed { position: relative; text-align: center; padding: .35rem .6rem 1.1rem; font-family: var(--mono); font-size: .85rem; border-bottom: 1px solid var(--text); background: linear-gradient(to top right, transparent calc(50% - 1px), var(--text) 50%, transparent calc(50% + 1px)) left / 50% 100% no-repeat, linear-gradient(to top left, transparent calc(50% - 1px), var(--text) 50%, transparent calc(50% + 1px)) right / 50% 100% no-repeat; }
.sg-v > .sg-bed::before { content: "wahr"; position: absolute; left: .4rem; bottom: .1rem; font: .7rem var(--schrift); }
.sg-v > .sg-bed::after { content: "falsch"; position: absolute; right: .4rem; bottom: .1rem; font: .7rem var(--schrift); }
.sg-v > .sg-bed span { background: var(--flaeche); padding: 0 .3rem; position: relative; }
.sg-z { display: grid; grid-template-columns: 1fr 1fr; }
.sg-z > div:first-child { border-right: 1px solid var(--text); }
.sg-leer { padding: .35rem .6rem; text-align: center; color: var(--leise); }

/* Interaktive Elemente */
.widget { border: 1px solid var(--linie); border-radius: var(--radius); padding: .9rem; margin: 1rem 0; background: var(--hg); }
.w-leiste { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .7rem; }
.w-leiste label { display: flex; align-items: center; gap: .3rem; font-size: .9rem; }
.w-leiste .zaehler { margin-left: auto; font-size: .88rem; color: var(--leise); display: flex; gap: .8rem; flex-wrap: wrap; }
.w-leiste .zaehler b { color: var(--text); }
.w-meldung { min-height: 1.5em; font-size: .92rem; margin-top: .5rem; }
.w-meldung.ok { color: var(--ok); font-weight: 600; }
.w-meldung.fehler { color: var(--fehler); font-weight: 600; }
.legende { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .8rem; color: var(--leise); margin-top: .5rem; }
.legende i { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; margin-right: .3rem; vertical-align: -1px; }
.l-vergleich { background: var(--vergleich); } .l-tausch { background: var(--tausch); } .l-sortiert { background: var(--sortiert); } .l-gelb { background: var(--gelb); }

/* Balken-Visualisierung */
.balkenfeld { display: flex; align-items: flex-end; gap: 2px; height: 220px; padding: 0 2px; border-bottom: 1px solid var(--linie); }
.balkenfeld .b { flex: 1; background: var(--balken); border-radius: 3px 3px 0 0; position: relative; transition: height .12s; min-width: 3px; }
.balkenfeld .b span { position: absolute; bottom: 2px; left: 0; right: 0; text-align: center; font-size: .7rem; color: #fff; font-weight: 600; }
.balkenfeld .b.fertig { background: var(--sortiert); }
.balkenfeld .b.vergleich { background: var(--vergleich); }
.balkenfeld .b.tausch { background: var(--tausch); }
.balkenfeld .b.gelb { background: var(--gelb); }
.balkenfeld .b.pivot { outline: 3px solid var(--gelb); outline-offset: -3px; }
.balkenfeld .b.aus { opacity: .3; }

/* Kästchen für Arrays */
.kaestchen { display: flex; flex-wrap: wrap; gap: 4px; }
.kaestchen .k { width: 2.6rem; text-align: center; border: 1px solid var(--linie); border-radius: 6px; background: var(--flaeche); padding: .3rem 0 .1rem; font-family: var(--mono); position: relative; }
.kaestchen .k small { display: block; font-size: .62rem; color: var(--leise); }
.kaestchen .k.aus { opacity: .3; }
.kaestchen .k.aktuell { border-color: var(--vergleich); background: var(--ok-hell); box-shadow: 0 0 0 2px var(--vergleich); }
.kaestchen .k.treffer { background: var(--sortiert); color: #fff; border-color: var(--sortiert); }
.kaestchen .k.treffer small { color: #dfe8ff; }
.kaestchen .k .marke-l, .kaestchen .k .marke-r, .kaestchen .k .marke-m { position: absolute; top: -1.15rem; left: 0; right: 0; font-size: .65rem; font-family: var(--schrift); font-weight: 700; }
.marke-l { color: var(--sortiert); } .marke-r { color: var(--tausch); } .marke-m { color: var(--vergleich); }
.kaestchen.mit-marken { padding-top: 1.2rem; }

/* Handsimulation */
.hand { display: grid; gap: .6rem; }
.hand .bereiche { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hand .bereich { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: .4rem; border-radius: 8px; min-height: 2.8rem; }
.hand .bereich.sortiert { background: var(--akzent-hell); }
.hand .bereich.unsortiert { background: var(--flaeche); border: 1px dashed var(--linie); }
.hand .bereich-titel { font-size: .75rem; color: var(--leise); width: 100%; }
.hand .z { min-width: 2.4rem; text-align: center; padding: .35rem .2rem; border-radius: 6px; border: 1px solid var(--linie); background: var(--flaeche); font-family: var(--mono); }
.hand button.z { color: var(--text); cursor: pointer; }
.hand button.z:hover { border-color: var(--akzent); background: var(--akzent-hell); filter: none; }
.hand .z.ausgewaehlt { background: var(--gelb-hell); border-color: var(--gelb); }
.hand .z.paar { background: var(--ok-hell); border-color: var(--vergleich); }
.hand .z.fertig { background: var(--akzent-hell); border-color: var(--sortiert); }
.hand .z.falsch { animation: wackeln .3s; background: var(--fehler-hell); border-color: var(--fehler); }
.hand .luecke { width: 1.1rem; height: 2.3rem; border-radius: 4px; border: 2px dashed transparent; background: none; padding: 0; }
.hand .luecke:hover { border-color: var(--akzent); background: var(--akzent-hell); filter: none; }
.hand .luecke.falsch { border-color: var(--fehler); }
.hand .protokoll { margin-top: .3rem; max-height: 320px; overflow: auto; }
.hand .tauschknoepfe { display: flex; gap: .5rem; flex-wrap: wrap; }
@keyframes wackeln { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Quiz */
.quiz-frage { margin: 0 0 1rem; }
.quiz-frage p { margin: 0 0 .4rem; font-weight: 600; }
.quiz-frage .optionen { display: grid; gap: .3rem; }
.quiz-frage label.option { display: flex; gap: .5rem; align-items: baseline; padding: .35rem .6rem; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); cursor: pointer; }
.quiz-frage label.option.richtig { border-color: var(--ok); background: var(--ok-hell); }
.quiz-frage label.option.falsch { border-color: var(--fehler); background: var(--fehler-hell); }
.quiz-frage .erklaerung { font-size: .9rem; margin-top: .3rem; color: var(--leise); }
.quiz-frage input.zahl { width: 7rem; }
.quiz-frage pre { margin: .3rem 0; }

/* Rekursion */
.rek { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1rem; }
@media (max-width: 700px) { .rek { grid-template-columns: 1fr; } }
.stapel { display: flex; flex-direction: column-reverse; gap: 3px; justify-content: flex-start; min-height: 120px; }
.stapel .rahmen { border: 1px solid var(--linie); background: var(--flaeche); border-radius: 6px; padding: .3rem .5rem; font: .82rem var(--mono); }
.stapel .rahmen.oben { border-color: var(--akzent); background: var(--akzent-hell); }
.stapel-titel { font-size: .75rem; color: var(--leise); margin-bottom: .3rem; }
.baum { overflow-x: auto; padding-bottom: .5rem; }
.baum ul { list-style: none; margin: 0; padding-left: 1.3rem; position: relative; }
.baum > ul { padding-left: 0; }
.baum li { position: relative; padding: 2px 0; }
.baum ul ul li::before { content: ""; position: absolute; left: -.9rem; top: 0; bottom: 50%; border-left: 1px solid var(--linie); border-bottom: 1px solid var(--linie); width: .8rem; }
.baum ul ul li:not(:last-child)::after { content: ""; position: absolute; left: -.9rem; top: 50%; bottom: 0; border-left: 1px solid var(--linie); }
.baum .knoten { display: inline-block; font: .82rem var(--mono); padding: .1rem .45rem; border-radius: 6px; border: 1px solid var(--linie); background: var(--flaeche); }
.baum .knoten.verborgen { visibility: hidden; }
.baum .knoten.aktiv { border-color: var(--akzent); background: var(--akzent-hell); font-weight: 700; }
.baum .knoten.fertig { color: var(--leise); }
.baum .knoten .wert { color: var(--ok); font-weight: 700; }
.baum .knoten.doppelt { border-color: var(--gelb); }
canvas.leinwand { width: 100%; max-width: 560px; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--linie); border-radius: 8px; display: block; }

/* Laufzeit-Diagramm */
.diagramm svg { width: 100%; height: auto; max-width: 680px; display: block; }
.diagramm .achse { stroke: var(--leise); stroke-width: 1; }
.diagramm .gitter { stroke: var(--linie); stroke-width: 1; }
.diagramm text { fill: var(--leise); font-size: 11px; font-family: var(--schrift); }
.diagramm .linie { fill: none; stroke-width: 2.5; }

/* Zahlenraten */
.raten .verlauf { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.raten .verlauf span { font: .85rem var(--mono); padding: .15rem .5rem; border-radius: 6px; background: var(--flaeche); border: 1px solid var(--linie); }
.zahlenstrahl { position: relative; height: 18px; background: var(--linie); border-radius: 9px; margin: .8rem 0 .3rem; overflow: hidden; }
.zahlenstrahl span { position: absolute; top: 0; bottom: 0; background: var(--ok); border-radius: 9px; transition: left .25s, width .25s; }

/* Hanoi */
.hanoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; height: 170px; align-items: end; }
.hanoi .stab { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; height: 100%; border-bottom: 4px solid var(--leise); position: relative; cursor: pointer; border-radius: 4px; }
.hanoi .stab::before { content: ""; position: absolute; bottom: 0; top: 10px; width: 4px; background: var(--linie); left: calc(50% - 2px); z-index: 0; }
.hanoi .stab.gewaehlt { background: var(--akzent-hell); }
.hanoi .scheibe { height: 16px; border-radius: 6px; z-index: 1; }

/* Lehrkraft */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .3rem .8rem; border-radius: 99px; border: 1px solid var(--linie); text-decoration: none; background: var(--flaeche); }
.tabs a.aktiv { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.tabelle-rahmen { overflow-x: auto; }
table.matrix, table.liste { border-collapse: collapse; background: var(--flaeche); font-size: .9rem; }
table.liste { width: 100%; margin: .6rem 0; }
table.matrix th, table.matrix td, table.liste th, table.liste td { border: 1px solid var(--linie); padding: .3rem .5rem; text-align: center; }
table.liste td:first-child, table.liste th:first-child { text-align: left; }
table.matrix td.teil { background: var(--gelb-hell); }
table.matrix td.voll { background: var(--ok-hell); color: var(--ok); font-weight: 700; }
table.matrix th a { text-decoration: none; }
button.schalter { padding: .1rem .5rem; font-size: .78rem; background: var(--linie); color: var(--text); }
button.schalter.an { background: var(--ok); color: #fff; }
.gefahrzone { margin-top: 1rem; font-size: .9rem; }
.gefahrzone summary { cursor: pointer; color: var(--leise); }

/* Kärtchen zum Drucken */
body.druck { background: #fff; color: #000; }
.kaertchen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.kaertchen-eintrag { border: 1px dashed #999; padding: 1rem; display: grid; gap: .3rem; text-align: center; font-size: .8rem; break-inside: avoid; }
.kaertchen-eintrag .gross { font: 700 1.7rem var(--mono); letter-spacing: .1em; }

@media (max-width: 600px) {
  h1 { font-size: 1.45rem; }
  .aufgabe { padding: .8rem; }
  .kopf nav { order: 3; flex-basis: 100%; }
  .balkenfeld { height: 170px; }
  .kaestchen .k { width: 2.2rem; font-size: .85rem; }
}
@media print {
  .kopf, .fuss, .aufgabenliste, .weiter, .erledigt-schalter { display: none; }
}

/* Antwortfelder */
.antwort { margin: .8rem 0; }
.antwort textarea, textarea.text-eingabe { width: 100%; font: .9rem/1.45 var(--schrift); padding: .6rem .7rem; border: 1px solid var(--linie); border-radius: 8px; background: var(--flaeche); color: var(--text); resize: vertical; }
.antwort textarea.code-eingabe { font: .85rem/1.45 var(--mono); background: var(--code-hg); tab-size: 2; white-space: pre; overflow-x: auto; }
.antwort-leiste { display: flex; align-items: center; gap: .7rem; margin-top: .3rem; }
.antwort-leiste button { padding: .25rem .8rem; font-size: .85rem; }
.rueckmeldung { margin-top: .5rem; padding: .6rem .8rem; border-radius: 8px; background: var(--gelb-hell); border-left: 4px solid var(--gelb); font-size: .92rem; }
.abgabe { margin: 1rem 0; }
.abgabe form.zeile { align-items: stretch; }
.abgabe form.zeile textarea { flex: 1; min-width: 220px; }
@media (max-width: 600px) { .kopf { position: static; } }
