/* Oktis Code Bude – ruhige, vorhersehbare Gestaltung (siehe CLAUDE.md, Abschnitt Gestaltung) */
:root {
  --bg: #f0f4f5; --flaeche: #ffffff; --text: #1f2a2e; --leise: #5a676c; --linie: #d5dfdc;
  --akzent: #12707b; --akzent-hell: #d9f0f2; --akzent-text: #ffffff;
  --gut: #2e7d4f; --gut-hell: #e1f2e7; --hinweis: #9a5b00; --hinweis-hell: #fbefd9;
  --okti: #9b4fd1; --okti-hell: #f1e6fa; --wasser: #cfe3ea;
  --radius: 16px; --schatten: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --groesse: 19px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #152024; --flaeche: #1d2b30; --text: #e6eeee; --leise: #9fb0b3; --linie: #2f4247;
    --akzent: #7cc0cf; --akzent-hell: #24414a; --akzent-text: #0f1b1e;
    --gut: #7fd1a0; --gut-hell: #1f3a2b; --hinweis: #f0b860; --hinweis-hell: #3a2e18;
    --wasser: #22414a;
  }
}
:root[data-theme="dark"] {
  --bg: #152024; --flaeche: #1d2b30; --text: #e6eeee; --leise: #9fb0b3; --linie: #2f4247;
  --akzent: #7cc0cf; --akzent-hell: #24414a; --akzent-text: #0f1b1e;
  --gut: #7fd1a0; --gut-hell: #1f3a2b; --hinweis: #f0b860; --hinweis-hell: #3a2e18;
  --wasser: #22414a;
}
:root[data-schrift="gross"] { --groesse: 23px; }

* { box-sizing: border-box; }
html { font-size: var(--groesse); }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--sans); }
a { color: var(--akzent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; border-radius: 8px; }
.versteckt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bewegung nur, wenn erlaubt (Systemeinstellung oder eigener Schalter) */
:root[data-bewegung="aus"] *, :root[data-bewegung="aus"] *::before, :root[data-bewegung="aus"] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Kopfzeile: immer gleich aufgebaut – links zurück, Mitte Titel, rechts Einstellungen */
.kopf { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf h1 { margin: 0; font-size: 1.1rem; text-align: center; }
.kopf .platz { width: 48px; }
.knopf-rund { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; height: 48px;
  padding: 0 14px; border-radius: 999px; border: 2px solid var(--linie); background: var(--flaeche); cursor: pointer;
  text-decoration: none; color: var(--text); font-weight: 600; }
.knopf-rund:hover { border-color: var(--akzent); }
.knopf-rund svg { width: 22px; height: 22px; }

main { max-width: 980px; margin: 0 auto; padding: 24px 16px 64px; }

/* Startseite */
.start { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-top: 12px; }
.start .okti { width: 150px; height: 150px; }
.start h2 { font-size: 1.6rem; margin: 4px 0 0; }
.start p.leise { margin: 0 0 18px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; width: 100%; max-width: 720px; }
.kachel { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 18px; border-radius: 24px;
  background: var(--flaeche); border: 3px solid var(--linie); box-shadow: var(--schatten); text-decoration: none; color: var(--text); }
.kachel:hover { border-color: var(--akzent); }
.kachel svg { width: 72px; height: 72px; }
.kachel strong { font-size: 1.35rem; }
.kachel span { color: var(--leise); font-size: .9rem; }
.weiter-karte { margin-top: 20px; width: 100%; max-width: 720px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--akzent-hell); text-decoration: none; color: var(--text); }
.weiter-karte b { color: var(--akzent); }
.fusslinks { margin-top: 36px; display: flex; gap: 20px; justify-content: center; font-size: .9rem; }
.fusslinks a { color: var(--leise); }

.leise { color: var(--leise); }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; box-shadow: var(--schatten); }

/* Große Hauptknöpfe */
[hidden] { display: none !important; }   /* hidden gilt auch für Knöpfe mit eigenem display */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 22px;
  border-radius: 14px; border: 2px solid var(--akzent); background: var(--akzent); color: var(--akzent-text);
  font-weight: 700; cursor: pointer; text-decoration: none; }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.knopf.zweit { background: var(--flaeche); color: var(--akzent); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Okti-Sprechblase */
.okti-sagt { display: flex; gap: 14px; align-items: flex-start; margin: 16px 0; }
.okti-sagt img { width: 64px; height: 64px; flex: none; }
.okti-sagt .blase { background: var(--flaeche); border: 2px solid var(--linie); border-radius: 18px; padding: 12px 16px; position: relative; }
.okti-sagt.gut .blase { border-color: var(--gut); background: var(--gut-hell); }
.okti-sagt.hinweis .blase { border-color: var(--hinweis); background: var(--hinweis-hell); }
.okti-sagt .blase p { margin: 0 0 6px; } .okti-sagt .blase p:last-child { margin: 0; }

/* Übersicht der Lektionen */
.pfad { display: flex; flex-direction: column; gap: 14px; }
.lektion-karte { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 16px 18px;
  border-radius: var(--radius); background: var(--flaeche); border: 3px solid var(--linie); text-decoration: none; color: var(--text); }
.lektion-karte:hover { border-color: var(--akzent); }
.lektion-karte .nr { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem;
  font-weight: 700; background: var(--akzent-hell); color: var(--akzent); }
.lektion-karte.fertig .nr { background: var(--gut-hell); color: var(--gut); }
.lektion-karte h3 { margin: 0; font-size: 1.1rem; }
.lektion-karte p { margin: 2px 0 0; color: var(--leise); font-size: .9rem; }
.lektion-karte .stand { font-size: .85rem; color: var(--leise); text-align: right; }
.lektion-karte.bald { opacity: .55; border-style: dashed; }

/* Lektion: Schritt-Anzeige */
.schritte { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.schritte .text { font-weight: 700; color: var(--akzent); margin-right: 6px; }
.schritte ol { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.schritte li button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--linie); background: var(--flaeche);
  cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--leise); }
.schritte li button[aria-current="step"] { border-color: var(--akzent); background: var(--akzent); color: var(--akzent-text); }
.schritte li button.erledigt { border-color: var(--gut); color: var(--gut); }
.schritt-titel { font-size: 1.45rem; margin: 0 0 6px; }
.dauer { display: inline-block; font-size: .85rem; color: var(--leise); background: var(--akzent-hell); border-radius: 999px; padding: 2px 12px; }
.schritt-fuss { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--linie); }

/* Auswahl-Antworten (Lektionen und Biber) */
.auswahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.auswahl button { min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 3px solid var(--linie); background: var(--flaeche);
  cursor: pointer; font-weight: 600; text-align: center; }
.auswahl button:hover { border-color: var(--akzent); }
.auswahl button[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent-hell); }
.auswahl button.richtig { border-color: var(--gut); background: var(--gut-hell); }
.auswahl button.falsch { border-color: var(--hinweis); background: var(--hinweis-hell); }
.auswahl button svg { display: block; margin: 0 auto 4px; }

/* Code-Anzeige und Befehls-Baukasten */
.programm { font-family: var(--mono); background: var(--flaeche); border: 2px solid var(--linie); border-radius: 14px; padding: 12px;
  display: flex; flex-wrap: wrap; gap: 8px; min-height: 64px; align-items: flex-start; }
.programm:empty::before { content: "Noch leer. Tippe unten auf Befehle."; color: var(--leise); font-family: var(--sans); padding: 8px; }
.befehl { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--akzent-hell);
  border: 2px solid transparent; font-family: var(--mono); font-weight: 600; cursor: pointer; }
.befehl.aktiv { border-color: var(--okti); }
.befehl.markiert { border-color: var(--hinweis); background: var(--hinweis-hell); }
.befehl input { width: 4.2em; font: inherit; padding: 2px 4px; border-radius: 6px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); }
.palette { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.palette button { border: 2px dashed var(--akzent); }
.schleife { border: 3px solid var(--akzent); border-radius: 14px; padding: 10px; width: 100%; }
.schleife .kopfzeile { font-family: var(--mono); font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.schleife .kopfzeile input { width: 4.2em; font: inherit; padding: 4px 6px; border-radius: 8px; border: 2px solid var(--linie); background: var(--flaeche); color: var(--text); }

/* Spielfeld (Lektion 1) und Zeichenfläche (Lektion 2) */
.buehne { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.feld { display: grid; gap: 4px; background: var(--linie); padding: 4px; border-radius: 14px; flex: none; }
.feld .zelle { width: 56px; height: 56px; background: var(--wasser); border-radius: 8px; display: grid; place-items: center;
  font-weight: 700; color: var(--leise); position: relative; border: 0; padding: 0; }
.feld .zelle img, .feld .zelle svg { width: 46px; height: 46px; }
.feld.waehlbar .zelle { cursor: pointer; }
.feld .zelle.spur { box-shadow: inset 0 0 0 3px var(--okti); }
@media (max-width: 420px) { .feld .zelle { width: 48px; height: 48px; } .feld .zelle img, .feld .zelle svg { width: 38px; height: 38px; } }
.leinwand { background: var(--flaeche); border: 2px solid var(--linie); border-radius: 14px; max-width: 100%; height: auto; }
.pyxel-kasten { margin-top: 12px; }
.pyxel-farben { display: inline-flex; flex-wrap: wrap; gap: 3px; vertical-align: middle; }
.pyxel-farbe { display: inline-block; min-width: 1.6em; text-align: center; border-radius: 5px; font: 600 .8rem var(--mono); padding: 1px 3px; border: 1px solid rgba(0,0,0,.2); }
.pyxel-feld { display: block; max-width: 100%; height: auto; border-radius: 10px; image-rendering: pixelated; outline: 3px solid transparent; }
.pyxel-feld:focus { outline-color: var(--pfad, #12707b); }

/* Terminal (Lektion 3) */
.terminal { background: #10181b; color: #d8f3e6; font-family: var(--mono); border-radius: 14px; padding: 14px; min-height: 260px;
  max-height: 420px; overflow-y: auto; font-size: .9rem; line-height: 1.5; cursor: text; }
.terminal .zeile { white-space: pre-wrap; word-break: break-word; }
.terminal .prompt { color: #8fd3ff; }
.terminal .fehler { color: #ffc27a; }
.terminal .ordner { color: #8fd3ff; font-weight: 700; }
.terminal .git-gruen { color: #7ee2a0; }
.terminal .git-rot { color: #ff8f8f; }
.terminal .git-gelb { color: #f3d36b; }
.terminal form { display: flex; gap: 8px; }
.terminal input { flex: 1; background: transparent; border: 0; color: inherit; font: inherit; outline: none; min-width: 0; }
.terminal-hilfe { font-size: .9rem; }
.terminal-hilfe code, .text code { font-family: var(--mono); background: var(--akzent-hell); padding: 1px 6px; border-radius: 6px; }
.aufgabenliste { list-style: none; padding: 0; margin: 12px 0; }
.aufgabenliste li { padding: 8px 12px 8px 44px; position: relative; border-radius: 10px; margin-bottom: 6px; background: var(--flaeche); border: 1px solid var(--linie); }
.aufgabenliste li::before { content: ""; position: absolute; left: 12px; top: 11px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--linie); }
.aufgabenliste li.fertig { border-color: var(--gut); background: var(--gut-hell); }
.aufgabenliste li.fertig::before { border-color: var(--gut); background: var(--gut); box-shadow: inset 0 0 0 3px var(--gut-hell); }
.eingabe-zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.eingabe-zeile input { font: inherit; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--linie); background: var(--flaeche); color: var(--text); min-width: 0; }

/* Knobeln (Biber) */
.stufen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stufen a { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; background: var(--flaeche);
  border: 3px solid var(--linie); text-decoration: none; color: var(--text); }
.stufen a:hover { border-color: var(--akzent); }
.stufen strong { font-size: 1.2rem; }
.stufen span { font-size: .85rem; color: var(--leise); }
.balken { height: 10px; border-radius: 999px; background: var(--linie); overflow: hidden; margin-top: 6px; }
.balken i { display: block; height: 100%; background: var(--gut); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.filter button { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--linie); background: var(--flaeche); cursor: pointer; font-weight: 600; }
.filter button[aria-pressed="true"] { border-color: var(--akzent); background: var(--akzent-hell); color: var(--akzent); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.raster button { text-align: left; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--linie); background: var(--flaeche); cursor: pointer; }
.raster button:hover { border-color: var(--akzent); }
.raster button b { display: block; }
.raster button small { color: var(--leise); }
.raster button.geloest { border-color: var(--gut); background: var(--gut-hell); }
.raster button.versucht { border-color: var(--hinweis); }
.punkte { font-size: .8rem; letter-spacing: 2px; color: var(--leise); }
.biber-aufgabe img.aufgabenbild { display: block; max-width: 100%; height: auto; margin: 12px auto; border-radius: 10px;
  background: #fff; border: 1px solid var(--linie); }
.biber-aufgabe .text p { margin: 0 0 10px; }
.biber-kopf { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.biber-kopf h2 { margin: 0; font-size: 1.35rem; }
.marke-klein { font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--akzent-hell); color: var(--akzent); }
details.erklaerung { margin-top: 12px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 12px 16px; }
details.erklaerung summary { cursor: pointer; font-weight: 700; }
.quelle { font-size: .75rem; color: var(--leise); margin-top: 18px; }

/* Einstellungen */
dialog { border: 0; border-radius: 20px; padding: 24px; max-width: 440px; width: calc(100% - 32px); background: var(--flaeche); color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog h2 { margin-top: 0; }
.schalter { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.schalter select { font: inherit; padding: 6px 10px; border-radius: 10px; border: 2px solid var(--linie); background: var(--flaeche); color: var(--text); }

/* Elternseite */
.text h2 { margin-top: 32px; }
.text table { border-collapse: collapse; width: 100%; }
.text th, .text td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.ampel { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 6px; vertical-align: -2px; }

/* Mini-Scratch: Blöcke in Scratch-Farben, Bühne 480 × 360 */
.sb-arbeit { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.sb-links { flex: 0 1 480px; min-width: 0; width: 100%; max-width: 480px; }
.sb-rechts { flex: 1; min-width: 260px; }
.sb-buehnenkopf { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sb-fahne { width: 48px; height: 40px; border-radius: 10px; border: 2px solid #4cbf56; background: #e9f8ea; color: #2d9a37; font-size: 24px; cursor: pointer; }
.sb-fahne:hover { background: #d4f2d6; }
.sb-buehne { width: 100%; height: auto; border: 2px solid var(--linie); border-radius: 12px; background: #fff; display: block; }
.sb-hilfe { margin: 0 0 8px; font-size: .9rem; }
.sb-palette { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sb-code { background: #f9f9f9; border: 2px dashed var(--linie); border-radius: 12px; padding: 12px; min-height: 120px; overflow-x: auto; }
:root[data-theme="dark"] .sb-code { background: #26353a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sb-code { background: #26353a; } }
.sb { --f: #4C97FF; background: var(--f); color: #fff; border-radius: 6px; font: 600 .9rem/1.2 var(--sans); width: max-content; max-width: 100%;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); margin-bottom: 2px; }
.sb-neu { border: 0; cursor: pointer; text-align: left; padding: 0; }
.sb-neu:hover { filter: brightness(1.07); }
.sb-zeile { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 8px 10px; white-space: pre; }
.sb-hut { border-radius: 18px 18px 6px 6px; }
.sb-hut .sb-zeile { padding-top: 12px; }
.sb-flagge { color: #2d9a37; background: #fff; border-radius: 4px; padding: 0 4px; }
.sb-wert, .sb-ein { background: #fff; color: #333; border-radius: 999px; padding: 2px 10px; font: 600 .85rem var(--sans); min-width: 2.2em; text-align: center; }
.sb-ein { border: 0; width: 4.2em; }
.sb-ein.text { width: 8em; }
.sb-var { background: #FF8C1A; color: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: 999px; padding: 2px 10px; font: 600 .85rem var(--sans); }
.sb-wahl { background: rgba(0,0,0,.15); color: #fff; border-radius: 6px; padding: 2px 8px; font: 600 .85rem var(--sans); }
.sb-maus { font-size: .85rem; margin: 4px 0 0; font-family: var(--mono); }
.sb-c { padding-bottom: 0; }
.sb-mund { margin-left: 16px; background: var(--bg); min-height: 34px; padding: 4px; border-radius: 0 6px 6px 0; cursor: pointer; }
.sb-mund.aktiv, .sb-skript.aktiv > .sb-hut { outline: 3px solid var(--okti); outline-offset: 1px; }
.sb-fuss { height: 14px; }
.sb-leer { color: var(--leise); font-size: .8rem; padding: 6px; display: inline-block; }
.sb-werkzeug { display: inline-flex; gap: 2px; margin-left: 6px; }
.sb-werkzeug button { background: rgba(0,0,0,.18); border: 0; color: #fff; border-radius: 6px; width: 26px; height: 26px; cursor: pointer; font-size: .8rem; }
[data-klick] { cursor: pointer; }
.sb-markiert { outline: 4px solid var(--hinweis); }
.scratch-echt { border-left: 6px solid #FFAB19; }
.scratch-echt ol li { margin-bottom: 8px; }
.scratch-echt .knopf.zweit { min-height: 40px; padding: 4px 14px; }

/* Code-Editor (Python, Java) */
.editor { font-family: var(--mono); font-size: .95rem; width: 100%; min-height: 160px; padding: 12px; border-radius: 12px; border: 2px solid var(--linie);
  background: #1b2529; color: #e6f1f0; line-height: 1.5; tab-size: 4; resize: vertical; }
.ausgabe { font-family: var(--mono); background: #10181b; color: #d8f3e6; border-radius: 12px; padding: 12px; min-height: 60px; white-space: pre-wrap; margin-top: 10px; font-size: .9rem; }
.ausgabe .fehler { color: #ffc27a; }
.code-anzeige { font-family: var(--mono); background: #1b2529; color: #e6f1f0; border-radius: 12px; padding: 12px 14px; white-space: pre; overflow-x: auto; font-size: .92rem; line-height: 1.5; }
.parsons { list-style: none; padding: 0; margin: 10px 0; }
.parsons li { font-family: var(--mono); background: var(--flaeche); border: 2px solid var(--linie); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px; white-space: pre; }
.parsons li button { border: 0; background: var(--akzent-hell); border-radius: 8px; width: 34px; height: 30px; cursor: pointer; font-weight: 700; }
/* Pfade: vier getrennte Lernpfade, jeder mit eigener Farbe (--pfad) */
.pfad-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.pfad-kachel { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 22px; background: var(--flaeche);
  border: 3px solid var(--linie); border-top: 10px solid var(--pfad); box-shadow: var(--schatten); text-decoration: none; color: var(--text); }
.pfad-kachel:hover { border-color: var(--pfad); }
.pfad-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pfad-kopf strong { font-size: 1.35rem; }
.pfad-kopf .leise, .pfad-kachel > .leise { font-size: .85rem; }
.pfad-balken { height: 10px; border-radius: 99px; background: var(--linie); overflow: hidden; }
.pfad-balken span { display: block; height: 100%; background: var(--gut); }
body[style*="--pfad"] .lektion-karte:not(.fertig) .nr { background: var(--pfad); color: #fff; }
body[style*="--pfad"] .schritt-titel { border-left: 8px solid var(--pfad); padding-left: 12px; }
.bruecken { margin: 6px 0 0; padding-left: 20px; }
.bruecken li { margin-bottom: 8px; }
.bruecken .leise { font-size: .9rem; }
.bruecke-kasten { margin-top: 14px; padding: 12px 18px; }
.bruecke-kasten summary { cursor: pointer; font-weight: 700; }
.eltern-tor { border-left: 6px solid #c0392b; }

/* Knobeln: eigene Zeichnungen (SVG) mit anklickbaren Dingen */
.knobelbild-rahmen { background: #fff; border: 1px solid var(--linie); border-radius: 14px; padding: 12px; margin: 12px 0; overflow-x: auto; }
.knobelbild { width: 100%; height: auto; display: block; margin: 0 auto; }
.knobelbild .bx-text { fill: #1f2a2e; font-family: var(--sans); }
.ziel { cursor: pointer; }
.ziel .markierung { fill: transparent; stroke: #9b4fd1; stroke-width: 2.5; stroke-dasharray: 5 4; opacity: .55; }
.ziel:hover .markierung, .ziel:focus-visible .markierung { opacity: 1; fill: rgba(155, 79, 209, .1); }
.ziel:focus { outline: none; }
.ziel[aria-pressed="true"] .markierung { opacity: 1; stroke-dasharray: none; stroke-width: 4; fill: rgba(155, 79, 209, .25); }
.ziel.richtig .markierung { opacity: 1; stroke: #2e7d4f; stroke-dasharray: none; stroke-width: 4; fill: rgba(46, 125, 79, .22); }
.ziel.falsch .markierung { opacity: 1; stroke: #b56a00; stroke-dasharray: none; stroke-width: 4; fill: rgba(181, 106, 0, .22); }
.ziel.fest { cursor: default; }
.knobeltabelle { border-collapse: collapse; width: 100%; font-size: 1rem; }
.knobeltabelle th, .knobeltabelle td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--linie); color: #1f2a2e; }
.zuordnen .schalter { border-bottom: 1px solid var(--linie); }
.antwort-hinweis { font-weight: 700; margin: 14px 0 6px; }
/* Operator-Blöcke (Bedingungen, Rechnen) und eingebaute Werte */
.sb-bed, .sb-rund { display: inline-flex; align-items: center; gap: 4px; background: #59C059; border: 1px solid rgba(0,0,0,.15); padding: 2px 10px; }
.sb-bed { clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); padding: 3px 16px; }
.sb-rund { border-radius: 999px; }
.sb-opz { font: 700 .9rem var(--sans); padding: 0 2px; }
.sb-rep { background: #4C97FF; color: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: 999px; padding: 2px 10px; font: 600 .85rem var(--sans); }
.sb-rep-liste { background: #FF661A; }
.sb-rep-op { background: #59C059; }
.sb-param { background: #FF6680; color: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: 999px; padding: 2px 10px; font: 600 .85rem var(--sans); }
.sb-eigenname { font-weight: 700; }
.sb-ein.sb-param-ein { background: #ffe3e8; width: 5.2em; }
.sb-hut .sb-ein.text:not(.sb-param-ein) { width: 6.5em; }
select.sb-op { width: auto; min-width: 3.2em; padding: 2px 4px; cursor: pointer; }
.sb-sonst { padding-top: 4px; padding-bottom: 4px; }
.sb-bed .sb-ein.text, .sb-rund .sb-ein.text { width: 6.5em; }
.sb-skript + .sb-skript { margin-top: 14px; }

/* ---------------------------------------------------------------- Snap! (snap-teil.js) */
.snap-rahmen { width: min(1240px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); margin-top: 12px; }
.snap-leiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.snap-platz { border: 2px solid var(--linie); border-radius: 12px; overflow: hidden; background: #fff; }
.snap-fenster { display: block; width: 100%; height: min(680px, 80vh); border: 0; }
.snap-unsichtbar { position: absolute; left: -10000px; top: 0; width: 1000px; height: 700px; border: 0; }
.snap-rahmen.snap-gross { position: fixed; inset: 0; width: auto; left: 0; transform: none; margin: 0; padding: 10px; background: var(--flaeche); z-index: 50; display: flex; flex-direction: column; }
.snap-rahmen.snap-gross .snap-platz { flex: 1; }
.snap-rahmen.snap-gross .snap-fenster { height: 100%; }
body.snap-offen { overflow: hidden; }
.snap-bilder { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin: 10px 0; }
.snap-bilder p { flex-basis: 100%; margin: 4px 0 0; }
.snap-bilder figure { margin: 0; padding: 10px; background: #fff; border: 2px solid var(--linie); border-radius: 12px; }
.snap-bilder img { display: block; max-width: 100%; height: auto; }
.snap-zielkasten { display: flex; gap: 14px; align-items: center; margin: 10px 0; }
.snap-ziel { background: var(--flaeche); border: 2px solid var(--linie); border-radius: 12px; color: var(--text); flex: none; }
.snap-block { display: inline-block; padding: 2px 8px; border-radius: 6px; color: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.snap-rund { border-radius: 999px; }
.snap-sechs { border-radius: 0; padding: 2px 14px; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); }

/* Projektbereich */
.projekt-gruppe { margin-bottom: 26px; }
.projekt-gruppe h2 { border-left: 6px solid var(--pfad); padding-left: 10px; }
.projekt-karte .nr { font-size: .9rem; letter-spacing: -1px; }
.projekt-kopf h2 { margin: 6px 0 8px; }
.projekt-kopf h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.projekt-marken { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.loesung-kasten summary { color: var(--leise); }
.sb-skript { display: flex; flex-direction: column; gap: 3px; margin: 10px 0 16px; }
.sb-skript p { margin: 0 0 4px; }
.eltern-inhalt { margin: 8px 0 18px; line-height: 1.9; }
.glossar dt { font-weight: 700; margin-top: 10px; }
.glossar dd { margin: 2px 0 0 0; color: var(--text); }

/* Anmeldung und Kontoverwaltung */
.konto-seite { min-height: 100vh; box-sizing: border-box; display: grid; place-items: center; padding: 16px; }
.konto-karte { width: 100%; max-width: 380px; box-sizing: border-box; text-align: center; }
.konto-karte input { width: 100%; box-sizing: border-box; }
.konto-karte form { display: flex; flex-direction: column; gap: 12px; text-align: left; margin: 16px 0; }
.konto-karte label, .konto-neu label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.konto-karte input, .konto-neu input, .konto-neu select, .link-feld { font: inherit; padding: 10px 12px; border: 2px solid var(--linie); border-radius: 10px; background: var(--flaeche); color: var(--text); }
.link-feld { width: 100%; font-size: .85rem; }
.fehler { color: #b3261e; min-height: 1.2em; margin: 0; }
.konto-neu { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; margin: 16px 0; }
.konto-zeile { border-top: 1px solid var(--linie); margin-top: 12px; padding-top: 8px; }
#liste tr.gesperrt td { opacity: .5; }
.knopf.klein { min-height: 36px; padding: 4px 12px; font-size: .85rem; }
