/* public/solo/css/solo.css
   Solo-Fassung · UI-System. Handy zuerst (390 px), ab 900 px mehr Platz; wo Nebeneinander hilft, wird es dort zweispaltig,
   darunter übereinander (.zwei) oder umschaltbar (.zwei.umschaltbar). Farben aus der Werkbank (css/werkbank.css) übernommen,
   damit Solo und Klassenfassung verwandt aussehen. Bewegung nur mit Zweck und abschaltbar (prefers-reduced-motion). */
@import url('../../fonts/solo.css');

:root {
  --grund: #EDF0EA; --papier: #FFFFFF; --tinte: #14213D; --tinte-weich: #4B5567; --linie: #C9CEC5;
  --haemmo: #2457E6; --haemmo-hell: #DCE5FB; --akzent: #FFC531; --akzent-dunkel: #8A6400;
  --gefahr: #C8412B; --gefahr-hell: #F8E1DC; --gut: #2E7D4F; --gut-hell: #DDF0E4;
  --marke: #EEE6FF; --marke-tinte: #4A2F8F;
  --schrift: 'Atkinson Hyperlegible', system-ui, sans-serif; --titel: 'Bricolage Grotesque', system-ui, sans-serif;
  --r: 12px; --luft: 16px; --fuss: 76px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--tinte); font-family: var(--schrift); line-height: 1.45; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--titel); line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: 1.8rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .7em; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Weiter-Zeichen (js/weiter.js): „weiter ▾“, solange ein Tipp sofort weiterführt. Dezent: kleines Wort, Kreis in Hämmo-Blau (#213f50), der
   sanft wippt; heller Grund, damit es auf Bild und Papier gleich lesbar ist. Erscheint kurz verzögert (kein Flackern bei kurzen Pausen).
   Lagen (Präfix wz-, keine Namen der Hülle): innen (unten rechts im Feld mit .wz-platz), fuss (rechts direkt unter dem Inhalt, klebt unten, wenn das Feld scrollt; nimmt keinen Platz:
   Rand oben hebt den Abstand zwischen den Stücken auf, Rand unten die eigene Höhe; das Feld hält mit .wz-fussplatz unten Platz frei),
   nach (hinter dem Text einer Sprechblase, rechtsbündig; in vorab gesetzten Blasen danach unsichtbar stehen gelassen, .wz-still). Am PC etwas größer. */
.weiter-zeichen { --wz-h: 28px; display: inline-flex; align-items: center; gap: 6px; height: var(--wz-h); box-sizing: border-box; padding: 2px 2px 2px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .92); color: #5b6b78; font: 700 .8rem/1 var(--schrift); letter-spacing: .02em; white-space: nowrap;
  pointer-events: none; animation: wz-ein .25s ease-out .25s both; }
.weiter-zeichen b { display: inline-grid; place-items: center; width: calc(var(--wz-h) - 4px); height: calc(var(--wz-h) - 4px); border-radius: 50%;
  background: #213f50; color: #fff; font-size: .8rem; animation: wz-wippt 1.2s ease-in-out .5s infinite; }
.wz-platz { position: relative; }
.wz-innen { position: absolute; right: 10px; bottom: 6px; z-index: 4; }
/* sticky zählt ab dem Innenrand: unten um den freigehaltenen Platz tiefer, damit es in ihm steht und nichts verdeckt. */
.wz-fuss { position: sticky; bottom: -32px; z-index: 4; flex: none; align-self: flex-end; justify-self: end;
  margin: calc(4px - var(--wz-abstand, 0px)) 0 calc(-4px - var(--wz-h)); }
.wz-fussplatz { padding-bottom: 38px !important; }
:has(> .wz-nach) { display: flow-root; }
.wz-nach { float: right; margin: 2px 0 0 .5em; text-transform: none; font-style: normal; }
.weiter-zeichen.wz-still { visibility: hidden; animation: none; }
.weiter-zeichen.wz-gleich { animation: none; }
.weiter-zeichen.wz-still b { animation: none; }
@keyframes wz-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes wz-wippt { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (min-width: 900px) {
  .weiter-zeichen { --wz-h: 34px; gap: 8px; padding: 2px 2px 2px 12px; font-size: .92rem; }
  .weiter-zeichen b { font-size: .95rem; }
  .wz-innen { right: 14px; bottom: 8px; }
  .wz-fuss { bottom: -38px; }
  .wz-fussplatz { padding-bottom: 46px !important; }
}

/* Level-Rahmen: schmaler Kopf ohne eigene Fläche, Hämmo, Aufgabe, Bühne; „Weiter“ gleitet erst herein, wenn es weitergeht.
   (Jonas 05.10.2026: weißer Kopf „tanzt aus der Reihe“, Fortschrittsleiste „zu dominant“.) */
.level { --fuss: 0px; min-height: 100dvh; padding-bottom: calc(var(--fuss) + env(safe-area-inset-bottom) + 16px); }
.level.weiter-da { --fuss: 72px; }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kopf { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 var(--luft) 0 4px; }
.kopf .zurueck-bauplan { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--tinte-weich); font-size: 1.25rem; text-decoration: none; }
.kopf .zurueck-bauplan:hover { background: rgba(20, 33, 61, .06); }
.kopf-mitte { flex: 1; min-width: 0; display: grid; gap: 5px; }
.schritt-name { font-size: .8rem; font-weight: 600; color: var(--tinte-weich); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linie { display: flex; gap: 3px; }
.linie > * { flex: 1; display: grid; align-items: center; }
.linie i { display: block; height: 3px; border-radius: 2px; background: rgba(20, 33, 61, .12); }
.linie .fertig i { background: var(--tinte); }
.linie .jetzt i { background: linear-gradient(90deg, var(--tinte) 50%, rgba(20, 33, 61, .12) 50%); }
/* Erledigte Abschnitte antippen statt „Zurück“: dünne Linie, aber 44 px Tippfläche. */
.linie button { height: 44px; margin: -20px 0; padding: 0; border: 0; background: none; cursor: pointer; }
.linie button:hover i { background: var(--haemmo); }
.linie b { display: none; }
.haemmo { display: flex; align-items: center; gap: 10px; padding: 8px var(--luft) 0; }
.haemmo img { width: 48px; height: 48px; transition: transform .3s; }
.haemmo[data-zustand=ratlos] img { transform: rotate(-10deg); }
.haemmo .stand { color: var(--tinte-weich); font-size: .92rem; }
.aufgabe { padding: 10px var(--luft) 6px; }
.buehne { padding: 0 var(--luft) var(--luft); display: grid; gap: 14px; align-content: start; }
.fuss { position: fixed; inset: auto 0 0 0; z-index: 5; display: flex; gap: 10px; align-items: center; padding: 12px var(--luft) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--grund) 45%); pointer-events: none; transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.weiter-da > .fuss { transform: none; visibility: visible; }
.fuss .knopf { pointer-events: auto; }
.fuss .weiter { flex: 1; box-shadow: 0 6px 18px rgba(20, 33, 61, .22); }
.fuss .weiter:disabled { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .fuss { transition: none; } }
.probelauf-leiste { background: var(--marke); color: var(--marke-tinte); padding: 6px var(--luft); font-size: .88rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.probelauf-leiste select { font: inherit; min-height: 44px; max-width: 100%; }
.probelauf-leiste a { color: inherit; min-height: 44px; display: inline-flex; align-items: center; }
.gespraech { border-left: 4px solid var(--marke-tinte); background: var(--marke); padding: 8px 12px; border-radius: 8px; font-size: .92rem; margin-top: 8px; }

/* Knöpfe, Auswahl, Eingabe */
.knopf { font: inherit; font-weight: 700; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--tinte); background: var(--papier); color: var(--tinte); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.knopf.haupt { background: var(--tinte); color: #fff; }
.knopf.gelb { background: var(--akzent); border-color: var(--akzent-dunkel); }
.knopf.leise { border-color: transparent; background: transparent; font-weight: 400; text-decoration: underline; }
.knopf:disabled { opacity: .45; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--linie); background: var(--papier); color: var(--tinte); cursor: pointer; text-align: left; }
.chip[aria-pressed=true] { border-color: var(--haemmo); background: var(--haemmo-hell); }
.wahl { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.wahl legend { margin-bottom: 6px; }
.wahl label { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--linie); border-radius: var(--r); background: var(--papier); cursor: pointer; }
.wahl label:has(input:checked) { border-color: var(--haemmo); background: var(--haemmo-hell); }
textarea, input[type=text] { font: inherit; width: 100%; padding: 10px 12px; border: 1.5px solid var(--linie); border-radius: var(--r); background: var(--papier); min-height: 48px; }
input[type=range] { width: 100%; min-height: 44px; }
.karte { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--r); padding: 14px; }
.hinweis { font-size: .9rem; color: var(--tinte-weich); }
.zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Kennzeichen */
.kennzeichen { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--marke); color: var(--marke-tinte); vertical-align: middle; margin-left: 6px; }
.kennzeichen[data-art=gespielt] { background: var(--gefahr-hell); color: var(--gefahr); }
.kennzeichen[data-art=platzhalter] { background: #FFF3C4; color: var(--akzent-dunkel); }

/* Prompt als Stapel: Schulwissen, dann die Sätze des System-Prompts; der geänderte Satz ist markiert */
.prompt { background: var(--papier); border: 1px solid var(--linie); border-radius: var(--r); padding: 10px 12px; font-size: .92rem; }
.prompt .schicht { display: block; font-size: .75rem; color: var(--tinte-weich); text-transform: uppercase; letter-spacing: .05em; margin: 2px 0; }
.prompt mark { background: var(--akzent); border-radius: 4px; padding: 0 2px; animation: markieren .6s ease-out; }
@keyframes markieren { from { background: transparent; } }

/* Chat */
.chat { display: grid; gap: 8px; }
.blase { max-width: 92%; padding: 10px 12px; border-radius: 14px; background: var(--papier); border: 1px solid var(--linie); white-space: pre-wrap; }
.blase.du { justify-self: end; background: var(--haemmo-hell); border-color: transparent; }
.blase.system { justify-self: center; font-size: .88rem; background: var(--grund); border-style: dashed; }
.blase.treffer { border: 2px solid var(--gefahr); animation: wackeln .4s; }
@keyframes wackeln { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.antwort-gekuerzt { color: var(--tinte-weich); }
.tippt::after { content: ''; animation: tippen 1s steps(4) infinite; }
@keyframes tippen { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* Zwei nebeneinander ab 900 px; darunter übereinander, oder mit Reitern (.umschaltbar) */
.zwei { display: grid; gap: 14px; }
.umschalter-reiter { display: flex; gap: 6px; }
.umschalter-reiter [role=tab] { flex: 1; }
.umschalter-reiter [aria-selected=true] { background: var(--tinte); color: #fff; }
@media (max-width: 899px) { .zwei.umschaltbar > [data-seite]:not([data-aktiv]) { display: none; } }
@media (min-width: 900px) {
  .umschalter-reiter { display: none; }
  .zwei { grid-template-columns: 1fr 1fr; align-items: start; }
  .haemmo, .aufgabe, .buehne { max-width: 1100px; margin-left: auto; margin-right: auto; }
  .kopf { padding-left: max(4px, calc((100vw - 1100px) / 2 - 12px)); padding-right: max(var(--luft), calc((100vw - 1100px) / 2)); }
  .kopf-mitte { max-width: 520px; }
  .level.weiter-da { --fuss: 64px; }
  /* Knopf mittig im freien Streifen (64 px), nicht an dessen Oberkante (Jonas 05.10.2026: „schlampig“). */
  .fuss { left: auto; right: max(var(--luft), calc((100vw - 1100px) / 2)); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: none; }
  .fuss .weiter { flex: none; min-width: 12em; }
}

/* Overlay (gespielte Sperre) */
.overlay { position: fixed; inset: 0; background: rgba(20, 33, 61, .72); display: grid; place-items: center; z-index: 20; padding: var(--luft); }
.overlay .karte { max-width: 460px; width: 100%; animation: hereinfliegen .35s ease-out; }
@keyframes hereinfliegen { from { opacity: 0; transform: translateY(28px) scale(.96); } }

/* Bauplan: seit dem Klassencode die Startseite (public/solo/start/start.css). */

/* Vorgeschichte */
.schulwissen { max-height: 12em; overflow: auto; white-space: pre-wrap; font: .85rem/1.4 var(--schrift); background: var(--grund); padding: 8px 10px; border-radius: 8px; margin: 0; }
.leer { color: var(--tinte-weich); font-style: italic; border: 1.5px dashed var(--linie); border-radius: 8px; padding: 10px; text-align: center; }
/* Die Aufgabe bekommt beim Schrittwechsel den Fokus (Screenreader liest sie vor); ein Rahmen darum stört nur. */
.aufgabe h2:focus { outline: none; }

/* Bildschirm-Stapel: Abstand zwischen den Teilen einer Aufgabe */
.stapel { display: grid; gap: 14px; }

/* Knacken */
.eingabe { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.karten { display: grid; gap: 10px; }
.trick-karte { border: 2px solid var(--akzent); background: #FFF8DE; animation: aufdecken .45s ease-out; }
.trick-karte h3 { margin: 2px 0 4px; }
@keyframes aufdecken { from { transform: rotateY(90deg); opacity: 0; } }
.knack-status { display: grid; gap: 6px; }
.eingabe { scroll-margin-bottom: calc(var(--fuss) + env(safe-area-inset-bottom) + 12px); }

/* Blatt (Overlay mit Inhalt) */
.overlay .karte.blatt { max-width: 640px; max-height: calc(100dvh - 32px); overflow: auto; }
.andere-eintrag { border-top: 1px solid var(--linie); padding-top: 10px; }
.overlay.sperre .karte h2 { color: var(--gefahr); }

/* Angriffswelle */
.welle { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.welle-zeile { font: inherit; width: 100%; min-height: 48px; display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; text-align: left;
  padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--linie); background: var(--papier); color: var(--tinte); cursor: pointer; animation: anfliegen .3s ease-out; }
.welle-zeile .text { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.welle-zeile .ergebnis { font-size: .8rem; font-weight: 700; }
.welle-zeile.wartet { opacity: .5; animation: none; }
.welle-zeile.durch { border-color: var(--gefahr); background: var(--gefahr-hell); }
.welle-zeile.abgewehrt { border-color: var(--gut); background: var(--gut-hell); }
.welle-zeile.filter { border-color: var(--akzent-dunkel); background: #FFF8DE; }
.welle-details { padding: 6px 12px; }
@keyframes anfliegen { from { transform: translateX(-12px); opacity: 0; } }
.bilanz { font-size: 1.25rem; }
.vergleich { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.vergleich li { display: grid; grid-template-columns: 9em 1fr auto; gap: 8px; align-items: center; font-size: .9rem; }
.vergleich meter { width: 100%; height: 14px; }

/* Filterwand und durchschlüpfender Angriff */
.filterwand { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: #F3E9D2; border-radius: 10px; border: 2px solid var(--akzent-dunkel); }
.ziegel { background: #C9A46A; color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.schluepft { animation: schluepfen 1.2s ease-out; }
@keyframes schluepfen { 0% { transform: translateY(-40px); opacity: 0; } 60% { transform: translateY(6px) scaleX(.9); opacity: 1; } 100% { transform: none; } }
.filter-vorschau p { margin: 0 0 4px; }

/* Shoggoth: Tippflächen über dem Bild, Smiley fliegt weg */
.shoggoth-bild { position: relative; }
.shoggoth-bild img { display: block; width: 100%; border-radius: var(--r); transition: filter .6s; }
.shoggoth-bild .teil { position: absolute; min-width: 44px; min-height: 44px; background: transparent; border: 2px dashed rgba(255, 197, 49, .9); border-radius: 10px; cursor: pointer; }
.shoggoth-bild .teil-koerper { border-color: transparent; }
.shoggoth-bild .smiley { position: absolute; font-size: 2rem; transform: translate(-50%, -50%); pointer-events: none; transition: transform .8s, opacity .8s; }
.shoggoth-bild.ohne-maske .smiley { transform: translate(120%, -260%) rotate(40deg); opacity: 0; }
.shoggoth-bild.ohne-maske img { filter: grayscale(.8) contrast(1.15); }
/* Maske und Smiley verschwinden wirklich (nicht nur das Emoji): ihre Flächen decken die Zeichnung ab. */
.shoggoth-bild .teil { transition: background-color .6s; }
.shoggoth-bild.ohne-maske .teil-maske, .shoggoth-bild.ohne-maske .teil-smiley { background-color: #fff; border-color: transparent; }
.shoggoth-bild .teil-maske, .shoggoth-bild .teil-smiley { border-radius: 50%; }

.beleg { margin: 0; padding: 8px 12px; border-left: 4px solid var(--haemmo); background: var(--grund); border-radius: 8px; }
.beleg p { margin: 0 0 4px; }
.andere-stimmen meter { width: 100%; }
/* Fuß: Knöpfe brechen nur zwischen Wörtern um (body hat overflow-wrap: anywhere); am Handy knapper (Probelauf: Vorspulen + Weiter). */
.fuss .knopf { overflow-wrap: normal; }
.fuss .knopf:not(.weiter) { white-space: nowrap; }
@media (max-width: 480px) { .fuss { gap: 6px; } .fuss .knopf { padding: 10px 12px; } .fuss .weiter { min-width: 0; } }

/* Lehrkraft-Modus (js/level.js): Tempo in der lila Leiste */
.lehrkraft-tempo { display: inline-flex; background: var(--papier); border-radius: 999px; padding: 3px; }
.lehrkraft-tempo button { font: inherit; font-weight: 700; border: 0; background: none; color: var(--marke-tinte); border-radius: 999px; padding: 4px 12px; min-height: 44px; cursor: pointer; }
.lehrkraft-tempo button.an { background: var(--marke-tinte); color: #fff; }
.probelauf-leiste .knopf.vorspulen { min-height: 44px; padding: 4px 16px; }
/* Über Tageskarte, Aktkarte und anderen Vollbild-Ebenen bedienbar (js/level.js leisteUeberKarten): Die Ebenen beginnen unter der Leiste. */
html.mit-probelauf .probelauf-leiste { position: relative; z-index: 90; }
html.mit-probelauf :is(.e1-tk, .vt4-ueber, .vt5-feierabend, .akt-karte, .wg-ebene, .overlay) { top: var(--pl-hoehe, 0px); }
@media (max-width: 600px) { .probelauf-leiste .pl-info { display: none; } .probelauf-leiste select { flex: 1 1 100%; } }

/* Ein Schritt zurück (js/zurueck.js): „‹ zurück“ unten links, im Stil von „weiter ▾“ (gespiegelt: Kreis vorn). Liegt dort ein anderer Knopf
   (Weiter des Rahmens, das Band einer Szene), rückt es darüber (zurueck.js platziere). Präfix zb-, keine Namen der Hülle. */
.zb-zurueck { --zb-h: 30px; position: fixed; left: max(10px, env(safe-area-inset-left)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 61;
  display: inline-flex; align-items: center; gap: 6px; height: var(--zb-h); padding: 2px 12px 2px 2px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #5b6b78; font: 700 .8rem/1 var(--schrift); letter-spacing: .02em; cursor: pointer;
  box-shadow: 0 1px 4px rgba(20, 33, 61, .14); }
.zb-zurueck::before { content: ''; position: absolute; inset: -8px -6px; } /* Tippfläche 44 px */
.zb-zurueck b { display: inline-grid; place-items: center; width: calc(var(--zb-h) - 4px); height: calc(var(--zb-h) - 4px); border-radius: 50%;
  background: #213f50; color: #fff; font-size: 1rem; line-height: 1; padding-bottom: 2px; }
.zb-zurueck:hover { color: var(--tinte); }
.zb-hinweis { position: fixed; left: max(10px, env(safe-area-inset-left)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 61; }
.zb-hinweis-knopf { font: 700 .8rem/1 var(--schrift); height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: #213f50; color: #fff;
  cursor: pointer; box-shadow: 0 1px 4px rgba(20, 33, 61, .2); white-space: nowrap; }
.zb-hinweis-knopf::before { content: ''; position: absolute; inset: -8px -4px; }
/* Gesperrte Wahl nach einem Schritt zurück (Ren'Py fix_rollback): Wahl markiert, darunter „Gewählt ist gewählt“ und „Weiter“. */
.zb-aus { pointer-events: none; opacity: .5; }
.zb-aus.zb-gewaehlt { opacity: 1; box-shadow: 0 0 0 3px #213f50; }
.zb-gesperrt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; padding: 8px 10px 8px 12px; border-radius: 12px;
  background: rgba(33, 63, 80, .08); color: var(--tinte); font-size: .92rem; }
.zb-gesperrt p { margin: 0; flex: 1 1 14em; }
@media (min-width: 900px) {
  .zb-zurueck { --zb-h: 34px; gap: 8px; left: max(14px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); font-size: .92rem; }
  .zb-hinweis-knopf { height: 34px; font-size: .92rem; }
}
/* Nachspielen in Nullzeit (js/nullzeit.js): nichts bewegt sich, das Kapitel ist so lange unsichtbar und nimmt keinen Tipp an. */
html.nullzeit *, html.nullzeit *::before, html.nullzeit *::after { animation-duration: 0s !important; animation-delay: 0s !important;
  transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html.nullzeit body > :not(.zb-ui) { opacity: 0 !important; pointer-events: none !important; }

/* Auftrag im Bild (js/auftrag.js, Jonas 09.11.2026 „ok, A“): Frau Huber sagt den Auftrag als Blase direkt über dem Ort der Handlung.
   Weiß mit dunklem Rand wie ihre Blasen im Büro; die Spitze zeigt nach unten auf das Ziel. Ohne Ziel steht sie unten über den Knöpfen. */
.sp-auftrag-blase { position: relative; z-index: 6; display: flex; gap: 10px; align-items: flex-start; box-sizing: border-box; max-width: min(100%, 420px);
  margin: 0 0 14px; padding: 10px 14px 10px 10px; background: #fff; color: #14213D; border: 2.5px solid #14213D; border-radius: 16px;
  box-shadow: 3px 4px 0 rgba(20, 33, 61, .22); font-family: var(--schrift); text-align: left; scroll-margin-top: 140px; animation: sp-auftrag-rein .35s ease-out both; }
.sp-auftrag-blase::after { content: ''; position: absolute; left: 40px; bottom: -11px; width: 16px; height: 16px; background: #fff;
  border-right: 2.5px solid #14213D; border-bottom: 2.5px solid #14213D; transform: rotate(45deg); }
.sp-auftrag-blase.lage-nach { margin: 14px 0 0; }
.sp-auftrag-blase.lage-nach::after { bottom: auto; top: -11px; transform: rotate(-135deg); }
.sp-auftrag-kopf { flex: none; width: 44px; height: 44px; border: 2px solid #14213D; border-radius: 10px; background: #FFF6E0; overflow: hidden; }
.sp-auftrag-kopf svg { width: 100%; height: 100%; display: block; }
.sp-auftrag-text { min-width: 0; }
.sp-auftrag-text small { display: block; font: 700 .68rem/1 var(--schrift); letter-spacing: .06em; text-transform: uppercase; color: #6b7a86; margin: 2px 0 4px; }
.sp-auftrag-text p { margin: 0; font-weight: 700; font-size: 1.12rem; line-height: 1.3; text-wrap: balance; }
.sp-auftrag-nochmal { position: relative; z-index: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -2px 0 -8px;
  padding: 0 11px 0 9px; border: 0; background: none; color: #14213D; font: 600 .82rem/1.2 var(--schrift); cursor: pointer; }
/* sichtbar ist nur die kleine Pille, getippt werden kann die ganze Höhe (mindestens 44 px, Prüfung layout() der Browsertests) */
.sp-auftrag-nochmal::before { content: ''; position: absolute; z-index: -1; inset: 9px 0; border-radius: 99px; background: #EEF2F6; }
.sp-auftrag-nochmal:hover::before, .sp-auftrag-nochmal:focus-visible::before { background: #DDE6F0; }
.sp-auftrag-balken { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sp-auftrag-balken i { display: block; width: 3px; background: currentColor; border-radius: 2px; }
.sp-auftrag-balken i:nth-child(1) { height: 6px; } .sp-auftrag-balken i:nth-child(2) { height: 11px; }
.sp-auftrag-balken i:nth-child(3) { height: 8px; } .sp-auftrag-balken i:nth-child(4) { height: 12px; }
@keyframes sp-auftrag-rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sp-auftrag-blase { animation: none; } }
/* Wartet, bis Frau Huber dran ist (js/sprechfolge.js): schon an ihrem Platz, aber unsichtbar; das Hereinkommen beginnt erst beim Erscheinen. */
.sp-auftrag-blase.sp-auftrag-wartet { visibility: hidden; animation: none; }
/* Tritt zurück, solange sie einen Satz verdeckt, der gerade gesprochen oder gelesen wird (js/auftrag.js weicheAus). */
.sp-auftrag-blase.sp-auftrag-zurueck { visibility: hidden; }
@media (max-width: 899px) { .sp-auftrag-text p { font-size: 1.05rem; } }
/* Die Leiste zeigt den Schrittnamen (ruhig) oder einen Status. */
.e1-auftrag span { transition: color .2s; }
.e1-auftrag:not(.status) span { color: #C9D6E6; font-weight: 600; }
.sp-auftrag-blase.klebt { position: sticky; top: 0; z-index: 4; }
/* Niedrige Bildschirme (Handy quer): kompakte Blase ohne Kopf und Etikett, „noch mal hören“ in derselben Zeile, damit darunter Platz für das
   Material bleibt (L5 Besuch: Hämmos Sätze und 11:00 müssen zugleich zu sehen sein, tests/browser/solo-werkzeuge-blasen.py). */
@media (max-height: 520px) {
  .sp-auftrag-blase { padding: 4px 10px; margin-bottom: 10px; border-radius: 12px; }
  .sp-auftrag-kopf, .sp-auftrag-text small { display: none; }
  .sp-auftrag-text p { display: inline; font-size: .92rem; line-height: 1.25; }
  /* nur das Lautsprecher-Zeichen (der Name steht im aria-label), damit es in die letzte Textzeile passt */
  .sp-auftrag-nochmal { min-height: 44px; height: 44px; margin: -11px 0 -11px 6px; padding: 0 8px; vertical-align: middle; font-size: 0; }
  .sp-auftrag-nochmal::before { inset: 11px 0; }
}
/* ── Blase im Band (ohne eigenes Ziel: lage-band im Band einer Szene, lage-frei ohne Band), alle Level gleich ──
   Jonas 14.11.2026: „der footer ist jetzt halt immer sehr hoch wegen der frau huber texte. der verdeckt ziemlich viel. vielleicht den footer
   in allen einheiten nicht so hoch machen“ (Plan docs/solo/kap6-feinschliff/plan-runde2-2026-11-14.md). Die Blase ist eine Zeile: kleiner Kopf,
   der Satz (bei Überlänge zwei Zeilen, nie mehr; js/auftrag.js passeBand), „noch mal hören“ als Zeichen (Name im aria-label und title).
   - PC: in derselben Reihe wie das, was unten in der Mitte steht (Knopf, „Weiter“, „weiter ▾“, „Hör zu“), links daneben; „‹ zurück“ ganz links
     behält seinen Platz (--sp-links). Das Band ist so hoch wie die Knopfreihe (--sp-reihe). --sp-mitte: halbe Breite der Mitte, gemessen in
     js/auftrag.js (mindestens ein Knopf von 12em). Passt der Satz auch in zwei Zeilen nicht daneben, steht sie über der Reihe (sp-band-oben).
   - Handy: eine schmale Reihe direkt über der Knopfreihe, über die ganze Breite.
   Sie liegt fest über dem Bild (absolut im Band bzw. fest im Fenster): Erscheinen, Zurücktreten und Wiederkommen schieben nichts. */
.sp-auftrag-blase:is(.lage-band, .lage-frei) { --_reihe: var(--sp-reihe, var(--fuss, 64px)); position: absolute; z-index: 17; margin: 0; transform: none;
  pointer-events: auto; align-items: center; gap: 8px; padding: 5px 4px 5px 6px; border-radius: 14px; animation-name: sp-auftrag-rein; }
/* Ebene wie das Band (haemmo-1/haemmo1.css: über Leiste und Bilanz, unter Dialogen wie dem Karten-Editor in Level 1). */
.sp-auftrag-blase.lage-frei { position: fixed; z-index: 16; }
.sp-auftrag-blase:is(.lage-band, .lage-frei)::after { display: none; }
.sp-auftrag-blase:is(.lage-band, .lage-frei) .sp-auftrag-kopf { width: 34px; height: 34px; border-radius: 8px; }
.sp-auftrag-blase:is(.lage-band, .lage-frei) .sp-auftrag-text { display: flex; align-items: center; gap: 2px; min-width: 0; }
.sp-auftrag-blase:is(.lage-band, .lage-frei) .sp-auftrag-text small { display: none; }
.sp-auftrag-blase:is(.lage-band, .lage-frei) .sp-auftrag-text p { min-width: 0; font-size: 1.02rem; line-height: 1.22; }
/* Tippfläche 44 px hoch (Prüfung layout()), sichtbar nur das kleine Zeichen; die negativen Ränder halten die Zeile flach. */
.sp-auftrag-blase:is(.lage-band, .lage-frei) .sp-auftrag-nochmal { flex: none; min-height: 44px; height: 44px; margin: -6px 0; padding: 0 9px; gap: 0; font-size: 0; }
.sp-auftrag-blase:is(.lage-band, .lage-frei) .sp-auftrag-nochmal::before { inset: 9px 0; }
@media (min-width: 900px) {
  .sp-auftrag-blase:is(.lage-band, .lage-frei) { --_links: var(--sp-links, 136px); --_mitte: var(--sp-mitte, 112px);
    left: auto; right: calc(50% + var(--_mitte) + 16px); bottom: calc(var(--_reihe) / 2 + env(safe-area-inset-bottom)); translate: 0 50%;
    width: max-content; max-width: calc(50% - var(--_mitte) - 16px - var(--_links)); }
  .sp-auftrag-blase:is(.lage-band, .lage-frei).sp-band-oben { right: auto; left: 50%; translate: -50% 0; bottom: calc(var(--_reihe) + 6px + env(safe-area-inset-bottom));
    max-width: min(calc(100% - 24px), 640px); }
}
@media (max-width: 899px) {
  .sp-auftrag-blase:is(.lage-band, .lage-frei) { --_reihe: var(--sp-reihe, var(--fuss, 72px)); left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(var(--_reihe) - 4px + env(safe-area-inset-bottom));
    padding: 4px 2px 4px 5px; border-width: 2px; border-radius: 12px; box-shadow: 2px 3px 0 rgba(20, 33, 61, .2); }
  .sp-auftrag-blase:is(.lage-band, .lage-frei) .sp-auftrag-kopf { width: 30px; height: 30px; border-width: 1.5px; border-radius: 7px; }
  .sp-auftrag-blase:is(.lage-band, .lage-frei) .sp-auftrag-text { flex: 1 1 auto; justify-content: space-between; }
  .sp-auftrag-blase:is(.lage-band, .lage-frei) .sp-auftrag-text p { font-size: .95rem; line-height: 1.2; }
  .sp-auftrag-blase:is(.lage-band, .lage-frei) .sp-auftrag-nochmal { margin: -7px 0; }
}

/* „Sag es mit deinen Worten“ (js/eigene-worte.js): Frage, Feld, Knopf; darunter antippbare Sätze („Welcher Satz stimmt nicht?“). */
.ew { display: grid; gap: 8px; width: 100%; max-width: 640px; margin: 0 auto; text-align: left; }
.ew-frage { margin: 0; font: 800 1.05rem/1.25 var(--titel); color: var(--tinte); }
.ew-feld { box-sizing: border-box; width: 100%; min-height: 6.2em; resize: vertical; font: 1.05rem/1.45 var(--schrift); color: var(--tinte); background: #fff;
  border: 2px solid var(--tinte); border-radius: 12px; padding: 10px 12px; }
.ew-feld:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.ew-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ew-hinweis { color: #4a5565; font-size: .88rem; }
.ew-knopf { margin-left: auto; }
.ew-knopf:disabled { opacity: .45; cursor: default; }
.ew-saetze { gap: 8px; }
.ew-satz { font: 1.05rem/1.4 var(--schrift); text-align: left; color: var(--tinte); background: #fff; border: 2px solid #213f50; border-radius: 12px; padding: 10px 12px;
  min-height: 44px; cursor: pointer; }
.ew-satz:hover, .ew-satz:focus-visible { background: #eef3f6; }
