/* KI-Kurs, Lernweg: Einsätze, Bausteine zum Anfassen, Karten, Weiterlesen, Kopfzeile am schmalen Handy.
   Ergänzt kurs.css, nutzt dieselben Farben. Schrift auf dem Bildschirm nie unter 12 px. */

/* ---------- C4: Kopfzeile und Menü ---------- */
.kopf-innen { position: relative; flex-wrap: wrap; row-gap: 0.3rem; }
.inhalt-menue { position: static; margin-left: auto; }
.inhalt-menue nav { right: 0.75rem; top: calc(100% + 0.25rem); }
.inhalt-menue > summary { min-height: 44px; display: flex; align-items: center; padding: 0.3rem 0.9rem; }
.inhalt-menue nav a { min-height: 44px; align-items: center; padding: 0.45rem 0.7rem; }
.inhalt-menue .menue-faellig { color: var(--akzent-2); font-size: 0.85em; }
.fortschritt-text .kurz { display: none; }
@media (max-width: 400px) {
  .kopf .marke span, .kopf .fortschritt { display: none; }
  .fortschritt-text .lang { display: none; }
  .fortschritt-text .kurz { display: inline; }
  .kopf-innen { gap: 0.6rem; padding: 0.4rem 0.75rem; }
}

/* ---------- C6: Kleinkram ---------- */
h1, h2, h3, h4, .teil-liste .titel, summary { hyphens: manual; -webkit-hyphens: manual; }
.sprunglink { position: absolute; left: 0.5rem; top: 0.5rem; transform: translateY(-200vh); z-index: 50; background: var(--akzent); color: var(--papier); padding: 0.6rem 1rem; border-radius: 8px; font-family: var(--schrift-ui); text-decoration: none; }
.sprunglink:focus { transform: none; }
.knopf { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.3; }
.knopf:disabled { opacity: 0.45; cursor: not-allowed; }
.knopf.zweit { background: var(--flaeche); color: var(--akzent); }
.auf-dieser-seite summary { min-height: 44px; display: flex; align-items: center; }
.auf-dieser-seite li a { display: inline-block; padding: 0.55rem 0; }
.auf-dieser-seite li { margin: 0; }
details.frage > summary { min-height: 44px; }
.blaettern a { min-height: 44px; }
.quellen li, .a2-liste li { margin: 0.1rem 0; }
.quellen li > a:first-child { display: inline-block; padding: 0.45rem 0; }
main > ul li > a:only-child { display: inline-block; padding: 0.5rem 0; }

/* Quiz: gewählte und richtige Antwort sichtbar, nicht nur über Farbe */
.quiz-frage label { min-height: 44px; padding: 0.55rem 0.65rem; border: 1px solid var(--linie); border-radius: 10px; margin: 0.4rem 0; background: var(--flaeche); align-items: center; }
.quiz-frage input[type=radio] { width: 1.15rem; height: 1.15rem; margin: 0; }
.quiz-frage label.gewaehlt { border-width: 2px; }
.quiz-frage.falsch label.gewaehlt { border-color: var(--warn); background: var(--warn-weich); }
.quiz-frage.falsch label.gewaehlt::after { content: "your choice, wrong"; }
.quiz-frage label.ist-richtig { border-color: var(--gut); background: var(--gut-weich); border-width: 2px; }
.quiz-frage label.ist-richtig::after { content: "correct"; }
.quiz-frage.richtig label.ist-richtig::after { content: "your choice, correct"; }
.quiz-frage label::after { margin-left: auto; padding-left: 0.5rem; font-family: var(--schrift-ui); font-size: 0.8rem; font-weight: 650; white-space: nowrap; }
.quiz-frage.falsch label.gewaehlt::after { color: var(--warn); }
.quiz-frage label.ist-richtig::after { color: var(--gut); }
.quiz-frage .rueckmeldung { padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--flaeche-2); }
.quiz-stand { font-family: var(--schrift-ui); font-weight: 600; background: var(--akzent-weich); padding: 0.6rem 0.8rem; border-radius: 10px; position: sticky; top: 3.6rem; z-index: 2; }
.quiz-ergebnis { font-family: var(--schrift-ui); margin-top: 1.5rem; padding: 0.9rem 1rem; border-radius: 12px; background: var(--akzent-weich); }
.quiz-ergebnis:empty { display: none; }
.quiz-teile { margin: 0.5rem 0; padding-left: 1.2rem; }

/* Breite Tabellen: Wischhinweis */
.tabelle-wisch { font-family: var(--schrift-ui); font-size: 0.8rem; color: var(--text-2); margin: -1rem 0 1.2rem; }
@media (max-width: 720px) {
  table { background: linear-gradient(to right, var(--papier) 30%, transparent), linear-gradient(to left, var(--papier) 30%, transparent) 100% 0, radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / .18), transparent), radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / .18), transparent) 100% 0;
    background-repeat: no-repeat; background-size: 2rem 100%, 2rem 100%, 0.8rem 100%, 0.8rem 100%; background-attachment: local, local, scroll, scroll; }
}

/* Codeblöcke mit Kopierknopf */
.code-rahmen { position: relative; margin: 0 0 1.2rem; }
.code-rahmen pre { margin: 0; padding-top: 2.4rem; }
.kopier-knopf { position: absolute; top: 0.35rem; right: 0.35rem; min-height: 36px; min-width: 44px; padding: 0.3rem 0.75rem; border-radius: 8px; border: 1px solid #4a525c; background: #2a3037; color: #e6e1d6; font: 600 0.8rem var(--schrift-ui); cursor: pointer; }
.kopier-knopf.ok { background: #2f6b2a; border-color: #2f6b2a; color: #fff; }
.code-rahmen.mit-ausgabe::after { content: "Only the command is copied, without the sample output."; display: block; font-family: var(--schrift-ui); font-size: 0.78rem; color: var(--text-2); margin-top: 0.3rem; }
.am-rechner { font-family: var(--schrift-ui); font-size: 0.9rem; background: var(--flaeche-2); padding: 0.5rem 0.7rem; border-radius: 8px; }

/* Fassungswahl in Übungen */
.fassung-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-family: var(--schrift-ui); font-size: 0.9rem; margin: 0.6rem 0; }
.fassung-wahl span { color: var(--text-2); margin-right: 0.2rem; }
.fassung-wahl button, .seg button { min-height: 44px; padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); font: 600 0.9rem var(--schrift-ui); cursor: pointer; }
.fassung-wahl button[aria-pressed=true], .seg button[aria-pressed=true] { background: var(--akzent); border-color: var(--akzent); color: var(--papier); }
.seg { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }

/* Weiterlesen */
.weiter-leiste { font-family: var(--schrift-ui); background: var(--akzent-weich); border-radius: 12px; padding: 0.8rem 1rem 0.2rem; margin: 0 0 1.5rem; }
.weiter-leiste p { margin: 0 0 0.6rem; }
.gelesen-meldung { font-family: var(--schrift-ui); font-weight: 600; color: var(--gut); margin: 0; flex-basis: 100%; }
.gelesen-meldung:empty { display: none; }
.pilot-hinweis { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 0.8rem 1rem 0.2rem; margin: 0 0 1.5rem; font-family: var(--schrift-ui); font-size: 0.95rem; }
.pilot-hinweis ul { padding-left: 1.2rem; }
.pilot-hinweis li a { display: inline-block; padding: 0.35rem 0; }

/* Startseite */
@media (max-width: 480px) { .start-kopf .unterzeile { font-size: 1.02rem; line-height: 1.5; } .start-kopf { padding-top: 0.6rem; } .start-kopf h1 { margin-bottom: 0.4rem; } }
.start-aktionen { margin: 0.6rem 0 1.8rem; font-family: var(--schrift-ui); }
.start-knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 0.8rem; }
.weiter-box { margin: 0 0 0.8rem; }
.weiter-box .knopf { width: 100%; justify-content: flex-start; text-align: left; border-radius: 14px; padding: 0.7rem 1rem; }
.weiter-box .klein { margin: 0.5rem 0 0; }
.karten-faellig { margin: 0 0 0.8rem; font-size: 0.95rem; }
.pilot-karte { background: var(--akzent-weich); border-radius: 12px; padding: 0.8rem 1rem 0.1rem; font-size: 0.95rem; line-height: 1.5; }

/* ---------- Einsätze ---------- */
.einsatz-kopf { margin: 0.6rem 0 1.4rem; font-family: var(--schrift-ui); }
.einsatz-kopf .teil { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--akzent-2); margin: 0; }
.einsatz-kopf .teil a { color: inherit; }
.einsatz-kopf h1 { font-size: clamp(1.55rem, 6.4vw, 2.2rem); margin: 0.35rem 0 0.4rem; }
.einsatz-kopf .meta { font-size: 0.88rem; color: var(--text-2); margin: 0 0 0.8rem; }
.schritt-leiste { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; }
.schritt-leiste li { flex: 1; height: 6px; border-radius: 3px; background: var(--flaeche-2); margin: 0; position: relative; }
.schritt-leiste li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.schritt-leiste li.erledigt { background: var(--akzent); }
.schritt-leiste li.aktuell { background: var(--akzent-2); }
.einsatz:not(.mit-js) .schritt-leiste { display: none; }
section.schritt { margin: 0 0 1rem; }
section.schritt > h2 { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--akzent-2); border-top: 0; margin: 1.6rem 0 0.5rem; padding: 0; }
.einsatz.mit-js section.schritt.aktiv { animation: einblenden .35s ease-out; }
@keyframes einblenden { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.schritt-weiter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin: 1.4rem 0 0.5rem; font-family: var(--schrift-ui); }
.schritt-weiter .knopf { min-width: 9rem; }
.schritt-weiter .weiter-hinweis { margin: 0; }

/* Der Fall */
.fall-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: 1rem 1.1rem 0.4rem; margin: 0.5rem 0 1.2rem; }
.fall-wer { display: flex; align-items: center; gap: 0.6rem; font-family: var(--schrift-ui); font-weight: 650; margin: 0 0 0.6rem; }
.fall-wer .avatar { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--akzent-2); color: var(--papier); font-weight: 700; }
.fall-wer small { display: block; font-weight: 400; color: var(--text-2); font-size: 0.85rem; }
.fall-karte blockquote { margin: 0 0 0.8rem; font-size: 1.08rem; line-height: 1.55; }
.fall-karte blockquote p { margin: 0 0 0.6rem; }
.daten-karte { font-family: var(--schrift-ui); font-size: 0.92rem; background: var(--flaeche-2); border-radius: 12px; padding: 0.7rem 0.9rem 0.2rem; margin: 0.8rem 0 1rem; }
.daten-karte .kasten-titel { color: var(--text-2); }

/* Wahl: Vorhersage, Entscheidung, Prüffrage */
.wahl { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 0.9rem 1rem 0.4rem; margin: 1rem 0 1.2rem; font-family: var(--schrift-ui); }
.wahl-frage { font-weight: 650; font-size: 1.02rem; line-height: 1.45; margin: 0 0 0.7rem; }
.wahl[data-art=vorhersage] .wahl-frage::before { content: "Your prediction: "; color: var(--akzent-2); }
.wahl[data-art=entscheidung] .wahl-frage::before { content: "Your decision: "; color: var(--akzent-2); }
.wahl[data-art=pruef] .wahl-frage::before { content: "Check question: "; color: var(--akzent); }
.wahl-optionen { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.wahl-optionen > li { margin: 0 0 0.5rem; }
.wahl-optionen > li > .opt-buchstabe, .einsatz:not(.mit-js) .wahl-optionen > li { display: flex; gap: 0.6rem; }
.opt { display: flex; gap: 0.65rem; align-items: flex-start; width: 100%; min-height: 48px; text-align: left; padding: 0.65rem 0.75rem; border: 1px solid var(--linie); border-radius: 12px; background: var(--papier); color: var(--text); font: inherit; font-size: 0.97rem; line-height: 1.4; cursor: pointer; }
.opt:hover { border-color: var(--akzent); }
.opt-buchstabe { flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--flaeche-2); font-weight: 700; font-size: 0.85rem; }
.wahl-optionen li.gewaehlt .opt { border-width: 2px; }
.wahl-optionen li.gewaehlt.falsch .opt { border-color: var(--warn); background: var(--warn-weich); }
.wahl-optionen li.richtig .opt { border-color: var(--gut); background: var(--gut-weich); border-width: 2px; }
.wahl-optionen li.gewaehlt .opt::after, .wahl-optionen li.richtig .opt::after { margin-left: auto; padding-left: 0.4rem; font-size: 0.78rem; font-weight: 700; white-space: nowrap; align-self: center; }
@media (max-width: 560px) { .opt { flex-wrap: wrap; } .wahl-optionen li.gewaehlt .opt::after, .wahl-optionen li.richtig .opt::after { flex-basis: 100%; margin-left: 2.35rem; padding-left: 0; align-self: auto; } .opt-text { flex: 1 1 0; min-width: 0; } }
.wahl-optionen li.gewaehlt.falsch .opt::after { content: "your choice"; color: var(--warn); }
.wahl-optionen li.richtig .opt::after { content: "correct"; color: var(--gut); }
.wahl-optionen li.gewaehlt.richtig .opt::after { content: "your choice, correct"; }
.wahl[data-art=vorhersage][data-gemessen] .wahl-optionen li.richtig .opt::after { content: "measured"; }
.wahl[data-art=vorhersage][data-gemessen] .wahl-optionen li.gewaehlt.richtig .opt::after { content: "your choice, measured"; }
.wahl-optionen li.richtig .opt-buchstabe { background: var(--gut); color: var(--papier); }
.wahl-optionen li.gewaehlt.falsch .opt-buchstabe { background: var(--warn); color: var(--papier); }
.wahl-rueck:empty { display: none; }
.wahl-rueck { border-radius: 12px; padding: 0.75rem 0.9rem 0.2rem; margin: 0.4rem 0 0.6rem; font-size: 0.96rem; line-height: 1.55; }
.wahl-rueck.gut { background: var(--gut-weich); }
.wahl-rueck.schlecht { background: var(--warn-weich); }
.wahl-rueck.info { background: var(--flaeche-2); }
.wahl-kopf { font-weight: 700; margin-bottom: 0.3rem; }
.wahl-rueck.gut .wahl-kopf { color: var(--gut); }
.wahl-rueck.schlecht .wahl-kopf { color: var(--warn); }
.wahl .aufloesung { margin: 0.2rem 0 0.6rem; }
.wahl .aufloesung summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--akzent); }
.wahl .aufloesung ul { padding-left: 1.1rem; font-size: 0.95rem; }

/* Erklärung und Tiefe */
details.tiefe { background: var(--flaeche); border: 1px dashed var(--linie); border-radius: 12px; margin: 1rem 0; }
details.tiefe > summary { min-height: 44px; display: flex; align-items: center; padding: 0.5rem 1rem; cursor: pointer; font-family: var(--schrift-ui); font-weight: 600; color: var(--akzent); }
details.tiefe > div { padding: 0 1rem 0.4rem; }

/* Bausteine zum Anfassen */
.anfassen { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 0.9rem 1rem 0.6rem; margin: 1rem 0 1.2rem; font-family: var(--schrift-ui); font-size: 0.95rem; }
.anfassen .kasten-titel { color: var(--akzent); }
.auftrag { background: var(--flaeche-2); border-radius: 10px; padding: 0.6rem 0.8rem; margin: 0 0 0.8rem; }
.auftrag p { margin: 0; }
.auftrag strong:first-child { color: var(--akzent-2); }
.auftrag-status { font-weight: 650; color: var(--gut); }
.auftrag-status:empty { display: none; }
.auftrag.erledigt { background: var(--gut-weich); }
.auftrag.erledigt .auftrag-status { display: block; margin-top: 0.35rem; }
.nur-mit-js[hidden], .ohne-js[hidden] { display: none !important; }
.anfassen label { display: block; font-weight: 600; margin: 0.7rem 0 0.3rem; }
.anfassen input[type=text], .anfassen input[type=number], .anfassen textarea, .anfassen select { width: 100%; font: inherit; font-size: 16px; padding: 0.55rem 0.65rem; border-radius: 10px; border: 1px solid var(--linie); background: var(--papier); color: var(--text); min-height: 44px; }
.anfassen textarea { resize: vertical; line-height: 1.45; }
.anfassen input[type=range] { width: 100%; min-height: 44px; accent-color: var(--akzent); }
.klein-hinweis { font-size: 0.85rem; color: var(--text-2); }
.klein code, .klein-hinweis code, .sp-legende code, .tok-status code, .marke-doku code { font-size: 0.95em; }

/* Tokenizer */
.tok-feld { margin: 0 0 0.9rem; }
.tok-chips { display: flex; flex-wrap: wrap; gap: 3px; margin: 0.5rem 0 0.3rem; min-height: 1.8rem; }
.tok { display: inline-flex; flex-direction: column; align-items: center; font-family: var(--schrift-code); font-size: 14px; line-height: 1.3; padding: 0.15rem 0.3rem; border-radius: 5px; white-space: pre; }
.tok small { font-size: 12px; color: var(--text-2); display: none; }
.ids-an .tok small { display: block; }
.tok-a { background: var(--akzent-weich); }
.tok-b { background: var(--flaeche-2); outline: 1px solid var(--linie); }
.tok-zahl { font-weight: 650; margin: 0; }
.tok-vergleich { font-size: 1rem; margin: 0.4rem 0; }
.tok-status { font-size: 0.82rem; color: var(--text-2); margin: 0.4rem 0; }
.tok-ids { display: flex !important; align-items: center; gap: 0.4rem; font-weight: 400 !important; min-height: 44px; }
.tok-ids input { width: 1.1rem; height: 1.1rem; }

/* Temperatur */
.tb-zeile { display: grid; grid-template-columns: 5.2rem 1fr 3.8rem; align-items: center; gap: 0.5rem; margin: 0.35rem 0; }
.tb-name { font-family: var(--schrift-code); font-size: 0.92rem; }
.tb-spur { height: 18px; background: var(--flaeche-2); border-radius: 4px; overflow: hidden; }
.tb-fuell { display: block; height: 100%; background: var(--akzent); }
.tb-zeile.ziel .tb-fuell { background: var(--akzent-2); }
.tb-zeile.ziel .tb-name { font-weight: 700; color: var(--akzent-2); }
.tb-zahl { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.temp-regler-zeile { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.6rem; }
.temp-wert { font-weight: 700; font-variant-numeric: tabular-nums; }
.temp-hinweis, .temp-zug { font-size: 0.85rem; color: var(--text-2); margin: 0.4rem 0; }
.temp-zug:empty { display: none; }

/* Raten */
.raten-ergebnis { border-radius: 10px; padding: 0.6rem 0.8rem; background: var(--flaeche-2); margin: 0.7rem 0 0.3rem; line-height: 1.5; }
.raten-ergebnis.gut { background: var(--gut-weich); }
.raten-ergebnis.schlecht { background: var(--warn-weich); }

/* Speicherrechner */
.sp-ergebnis { position: sticky; top: 3.4rem; z-index: 3; border-radius: 12px; padding: 0.7rem 0.85rem 0.2rem; margin: 0 0 0.8rem; background: var(--flaeche-2); box-shadow: 0 6px 16px rgb(0 0 0 / 0.08); }
.sp-ergebnis.gut { background: var(--gut-weich); }
.sp-ergebnis.knapp { background: var(--akzent-weich); }
.sp-ergebnis.schlecht { background: var(--warn-weich); }
.sp-urteil { font-size: 1.15rem; font-weight: 750; margin: 0 0 0.2rem; }
.sp-ergebnis.gut .sp-urteil { color: var(--gut); }
.sp-ergebnis.schlecht .sp-urteil { color: var(--warn); }
.sp-summe { margin: 0 0 0.4rem; font-size: 0.92rem; }
.sp-balken { position: relative; display: flex; height: 16px; border-radius: 4px; background: var(--papier); margin: 0.5rem 0 0.35rem; }
.sp-balken span { display: block; height: 100%; }
.sp-g { background: var(--akzent); border-radius: 4px 0 0 4px; }
.sp-kv { background: var(--akzent-2); }
.sp-z { background: var(--text-2); opacity: 0.55; }
.sp-balken i { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--text); }
.sp-balken i.sp-nutz { background: repeating-linear-gradient(to bottom, var(--text-2) 0 3px, transparent 3px 6px); }
.sp-legende { font-size: 0.8rem; color: var(--text-2); margin: 0 0 0.5rem; line-height: 1.4; }
.sp-felder { display: grid; grid-template-columns: 1fr; gap: 0 0.8rem; }
@media (min-width: 560px) { .sp-felder { grid-template-columns: 1fr 1fr 1fr; } }
.sp-mehr { margin-top: 0.6rem; }
.sp-mehr summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--akzent); }
.sp-vorschlaege { display: grid; gap: 0.5rem; margin: 0.6rem 0; }
.sp-vorschlaege .knopf { justify-content: flex-start; text-align: left; border-radius: 12px; }

/* Ausreißer */
.anfassen svg.aus-bild { display: block; width: 100%; height: auto; touch-action: none; margin: 0.3rem 0; }
.aus-griff { cursor: grab; }
.aus-info { margin: 0.4rem 0; line-height: 1.5; }
table.aus-tabelle { display: table; font-size: 0.85rem; margin: 0.5rem 0; }
table.aus-tabelle th, table.aus-tabelle td { min-width: 0; padding: 0.3rem 0.35rem; }
table.aus-tabelle tr.weg td { color: var(--warn); font-weight: 650; }

/* Zahlenfeld */
.zahl-zeile { display: flex; gap: 0.5rem; align-items: stretch; }
.zahl-zeile input { flex: 1; }
.zahl-rueck { margin: 0.5rem 0; padding: 0.5rem 0.7rem; border-radius: 10px; }
.zahl-rueck:empty { display: none; }
.zahl-rueck.gut { background: var(--gut-weich); }
.zahl-rueck.schlecht { background: var(--warn-weich); }

/* Abschluss */
.abschluss-bild { text-align: center; background: var(--akzent-weich); border-radius: 18px; padding: 1.2rem 1rem 0.6rem; margin: 0.6rem 0 1.2rem; font-family: var(--schrift-ui); }
.abschluss-bild svg { width: 64px; height: 64px; }
.abschluss-ergebnis { font-size: 1rem; margin: 0.6rem 0 0.4rem; }
.abschluss-ergebnis:empty { display: none; }
.kannst-du { list-style: none; padding: 0; text-align: left; margin: 0.8rem 0 0.6rem; }
.kannst-du li { position: relative; padding-left: 1.9rem; margin: 0.55rem 0; line-height: 1.5; }
.kannst-du li::before { content: "✓"; position: absolute; left: 0.2rem; top: 0; font-weight: 800; color: var(--gut); }
.abschluss-karten h3 { font-size: 1rem; }
.lern-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; padding: 0.7rem 0.9rem 0.3rem; margin: 0.6rem 0; font-size: 0.95rem; }
.lern-karte-vorne { font-family: var(--schrift-ui); font-weight: 600; margin: 0 0 0.4rem; }
.lern-karte details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--akzent); font-family: var(--schrift-ui); font-weight: 600; }
.karte-optionen { padding-left: 1.4rem; list-style: upper-alpha; }
.lern-karte-richtig { font-weight: 650; }
.abschluss-knoepfe { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.einsatz-neu { margin-top: 0.6rem; }
.einsatz:not(.mit-js) .einsatz-neu { display: none; }
.nachlesen { margin-top: 2rem; }
.nachlesen li { padding: 0.3rem 0; }

/* Übersicht der Einsätze */
.einsatz-uebersicht .rahmen { background: var(--flaeche-2); border-radius: 14px; padding: 0.9rem 1.1rem 0.3rem; margin: 1rem 0 1.5rem; }
.einsatz-liste { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.einsatz-liste li { margin: 0 0 0.6rem; }
.einsatz-liste a { display: grid; grid-template-columns: 2.6rem 1fr auto; gap: 0.2rem 0.6rem; padding: 0.8rem 0.9rem; border: 1px solid var(--linie); border-radius: 14px; background: var(--flaeche); color: var(--text); text-decoration: none; font-family: var(--schrift-ui); }
.einsatz-liste a:hover { border-color: var(--akzent); }
.einsatz-liste .nr { font-weight: 750; color: var(--akzent); }
.einsatz-liste .titel { font-weight: 650; }
.einsatz-liste .status { font-size: 0.8rem; font-weight: 700; color: var(--akzent-2); }
.einsatz-liste .ist-erledigt .status { color: var(--gut); }
.einsatz-liste .kurz { grid-column: 2 / 4; font-size: 0.9rem; color: var(--text-2); line-height: 1.45; }

/* Mac-Seiten: Rezeptkarten */
.rezept { list-style: none; padding: 0; counter-reset: rezept; margin: 1rem 0; }
.rezept > li { counter-increment: rezept; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 0.8rem 0.9rem 0.3rem; margin: 0 0 0.9rem; }
.rezept > li > h3 { margin: 0 0 0.5rem; font-size: 1.02rem; display: flex; gap: 0.5rem; align-items: baseline; }
.rezept > li > h3::before { content: counter(rezept); flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--akzent); color: var(--papier); font-size: 0.85rem; }
pre.ausgabe-block { background: var(--flaeche-2); color: var(--text); border: 1px dashed var(--linie); font-size: 0.8rem; }
.ausgabe-titel { font-family: var(--schrift-ui); font-size: 0.8rem; font-weight: 650; color: var(--text-2); margin: 0.3rem 0 0.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.pr-rueck { margin: 0.6rem 0; padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--flaeche-2); line-height: 1.5; }
.pr-rueck:empty { display: none; }
.pr-rueck.gut { background: var(--gut-weich); }
.pr-rueck.schlecht { background: var(--warn-weich); }
.pr-ausgabe { font-family: var(--schrift-code) !important; font-size: 14px !important; }
.voraussetzung { background: var(--flaeche-2); border-radius: 12px; padding: 0.7rem 0.9rem 0.2rem; font-family: var(--schrift-ui); font-size: 0.93rem; }

/* Karten-Seite */
.karten-lauf { margin: 1rem 0 2rem; }
.karte-gross { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 18px; padding: 1rem 1.1rem 0.5rem; font-size: 1rem; box-shadow: 0 8px 24px rgb(0 0 0 / 0.06); }
.karte-gross.fertig { background: var(--akzent-weich); border-color: transparent; box-shadow: none; }
.karte-meta { font-family: var(--schrift-ui); font-size: 0.8rem; color: var(--text-2); margin: 0 0 0.6rem; }
.karte-vorne { font-family: var(--schrift-ui); font-weight: 650; font-size: 1.05rem; line-height: 1.45; }
.karte-wahl { display: grid; gap: 0.5rem; margin: 0.6rem 0; }
.karte-wahl .opt.richtig { border-color: var(--gut); background: var(--gut-weich); border-width: 2px; }
.karte-wahl .opt.falsch { border-color: var(--warn); background: var(--warn-weich); border-width: 2px; }
.karte-wahl .opt.richtig::after { content: "correct"; margin-left: auto; font: 700 0.78rem var(--schrift-ui); color: var(--gut); align-self: center; }
.karte-wahl .opt.falsch::after { content: "your choice"; margin-left: auto; font: 700 0.78rem var(--schrift-ui); color: var(--warn); align-self: center; }
.karte-rueck { border-top: 1px solid var(--linie); margin-top: 0.8rem; padding-top: 0.8rem; }
.karte-selbst { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.stapel-liste { list-style: none; padding: 0; font-family: var(--schrift-ui); }
.stapel-liste li { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; padding: 0.4rem 0; border-bottom: 1px solid var(--linie); margin: 0; min-height: 52px; }
.stapel-liste .knopf { flex: none; }

@media print { .schritt-weiter, .kopier-knopf, .fassung-wahl, .sprunglink { display: none !important; } .einsatz section.schritt { display: block !important; } }

/* Marken „gemessen“ usw. am Handy nicht unter 12 px (vorher 0,74 rem = 11,8 px) */
.marke-gemessen, .marke-doku, .marke-unbestaetigt { font-size: 0.78rem; }
.kasten-titel .marke-gemessen, .kasten-titel .marke-doku { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* Große Schrift (200 %) bei 320 px: nichts darf seitlich hinauslaufen */
.kopf .marke { min-height: 44px; display: inline-flex; align-items: center; gap: 0.35em; }
.knopf { max-width: 100%; white-space: normal; }
.schritt-weiter .knopf { min-width: min(9rem, 100%); }
.blaettern { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.blaettern a { min-width: 0; overflow-wrap: anywhere; }
.teil-liste a { grid-template-columns: 2.3rem minmax(0, 1fr) auto; }
.teil-liste .titel, .teil-liste .kurz, .einsatz-liste .titel, .einsatz-liste .kurz { overflow-wrap: anywhere; min-width: 0; }
.einsatz-liste a { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
.stapel-liste li { flex-wrap: wrap; }
.stapel-liste li > span { min-width: 0; overflow-wrap: anywhere; }

/* hidden gilt immer, auch bei Bausteinen mit eigenem display */
[hidden] { display: none !important; }

/* Alter Speicherrechner in Kapitel 9: Ergebnis oben und haftend */
#speicherrechner output.sp-oben { position: sticky; top: 3.4rem; z-index: 3; margin: 0 0 0.6rem; box-shadow: 0 6px 16px rgb(0 0 0 / 0.08); }

/* C3: Schaubilder am schmalen Handy breiter, damit Schrift 13 im SVG auf dem Bildschirm mindestens 12 px bleibt */
@media (max-width: 420px) {
  figure.schaubild { margin-inline: -0.5rem; }
  figure.schaubild .flaeche-svg { padding: 0.5rem 0.2rem; }
  figure.schaubild figcaption { padding-inline: 0.5rem; }
}
@media (max-width: 420px) {
  .kasten figure.schaubild, .fassung figure.schaubild { margin-inline: -0.85rem; }
}
/* Sehr schmale Handys (320 px): Schaubilder über die ganze Breite */
@media (max-width: 350px) {
  figure.schaubild { margin-inline: -1.1rem; }
  figure.schaubild .flaeche-svg { padding: 0.4rem 0; border-radius: 0; border-left: 0; border-right: 0; }
  .kasten figure.schaubild { margin-inline: -1.1rem; }
  .kasten .fassung figure.schaubild { margin-inline: -1.85rem; }
}
.quiz-frage fieldset { min-width: 0; }
.quiz-frage label, .quiz-frage legend { overflow-wrap: anywhere; }
@media (max-width: 350px) { th, td { min-width: 4rem; padding: 0.4rem 0.35rem; } }

/* ---------- Bausteine Welle 1 ---------- */
/* Zuordnen */
.zu-faecher { list-style: none; padding: 0; margin: 0 0 0.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.zu-faecher li { margin: 0; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--flaeche-2); font-size: 0.85rem; font-weight: 650; }
.bereit .zu-faecher { display: none; }
.zu-karten { list-style: none; padding: 0; margin: 0; counter-reset: zu; }
.zu-karten > li { border: 1px solid var(--linie); border-radius: 12px; padding: 0.7rem 0.8rem 0.5rem; margin: 0 0 0.7rem; background: var(--papier); }
.zu-karten > li.ok { border-color: var(--gut); }
.zu-karten > li.falsch { border-color: var(--warn); }
.zu-text { margin: 0 0 0.4rem; font-weight: 600; line-height: 1.45; }
.zu-knoepfe { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.zu-knopf { flex: 1 1 8rem; min-height: 44px; padding: 0.45rem 0.6rem; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; line-height: 1.25; }
.zu-knopf:hover { border-color: var(--akzent); }
.zu-knopf[aria-pressed=true] { border-width: 2px; }
.ok .zu-knopf[aria-pressed=true] { border-color: var(--gut); background: var(--gut-weich); }
.falsch .zu-knopf[aria-pressed=true] { border-color: var(--warn); background: var(--warn-weich); }
.zu-rueck:empty { display: none; }
.zu-rueck { border-radius: 10px; padding: 0.5rem 0.7rem 0.1rem; margin: 0.5rem 0 0.1rem; font-size: 0.92rem; line-height: 1.5; }
.zu-rueck.gut { background: var(--gut-weich); } .zu-rueck.schlecht { background: var(--warn-weich); }
.zu-rueck.gut .wahl-kopf { color: var(--gut); } .zu-rueck.schlecht .wahl-kopf { color: var(--warn); }
.zu-rueck p { margin: 0 0 0.4rem; }
.zu-aufl summary, .weg-liste summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--akzent); }
.zu-stand { font-weight: 650; margin: 0.4rem 0; }

/* Weg */
.weg-liste { list-style: none; padding: 0; margin: 0; }
.weg-knoten { border: 1px solid var(--linie); border-radius: 12px; padding: 0.7rem 0.8rem 0.3rem; margin: 0 0 0.6rem; background: var(--papier); position: relative; }
.bereit .weg-knoten + .weg-knoten::before { content: ""; position: absolute; left: 1.4rem; top: -0.65rem; height: 0.6rem; border-left: 2px solid var(--akzent); }
.weg-knoten.aktiv { border-color: var(--akzent); border-width: 2px; }
.weg-ende { background: var(--akzent-weich); }
.weg-frage { font-weight: 700; margin: 0 0 0.5rem; line-height: 1.4; }
.weg-frage:focus { outline: none; }
.weg-wahl { list-style: none; padding: 0; margin: 0; }
.weg-wahl > li { margin: 0 0 0.45rem; }
.weg-wahl a { display: flex; align-items: center; min-height: 44px; padding: 0.45rem 0.7rem; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.3; }
.weg-wahl a:hover { border-color: var(--akzent); }
.bereit .weg-knoten:not(.aktiv) .weg-wahl > li:not(.gewaehlt) a { background: transparent; color: var(--text-2); font-weight: 500; border-style: dashed; }
.weg-wahl > li.gewaehlt a { border-color: var(--akzent); background: var(--akzent-weich); }
.weg-wahl .warum { font-size: 0.9rem; color: var(--text-2); margin: 0.3rem 0 0.2rem; line-height: 1.45; }
.weg-meldung:empty { display: none; }
.weg-meldung { background: var(--warn-weich); border-radius: 10px; padding: 0.5rem 0.7rem; }

/* Kosten */
.ko-ergebnis { position: sticky; top: 3.4rem; z-index: 3; border-radius: 12px; padding: 0.7rem 0.85rem 0.3rem; margin: 0 0 0.8rem; background: var(--flaeche-2); box-shadow: 0 6px 16px rgb(0 0 0 / 0.08); }
.ko-gross { font-size: 1.15rem; font-weight: 750; margin: 0 0 0.25rem; }
.ko-klein { font-size: 0.88rem; margin: 0 0 0.3rem; color: var(--text-2); }
.ko-balken { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--papier); margin: 0.4rem 0 0.2rem; }
.ko-b-ein { background: var(--akzent); } .ko-b-aus { background: var(--akzent-2); }
.ko-legende, .ko-quelle { font-size: 0.8rem; color: var(--text-2); margin: 0.2rem 0 0.4rem; line-height: 1.4; }
.ko-feldkopf { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; margin-top: 0.6rem; }
.ko-feldkopf label { margin: 0 !important; }
.ko-wert { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ko-schalter { display: flex !important; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600; }
.ko-schalter input, .vl-schalter input { width: 1.25rem; height: 1.25rem; accent-color: var(--akzent); }
.ko-vergleich { margin: 0.8rem 0 0.4rem; }
.ko-vgl-titel { font-weight: 700; margin: 0 0 0.3rem; }
.ko-vergleich ul { list-style: none; padding: 0; margin: 0; }
.ko-vergleich li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px solid var(--linie); }
.ko-vergleich li strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ko-varianten { display: grid; gap: 0.5rem; margin: 0.6rem 0; }
.ko-varianten .knopf { justify-content: flex-start; text-align: left; border-radius: 12px; }

/* Verlauf */
.vl-liste { list-style: none; padding: 0; margin: 0.4rem 0; }
.vl-liste > li { border: 1px solid var(--linie); border-radius: 12px; padding: 0.55rem 0.75rem 0.3rem; margin: 0 0 0.5rem; background: var(--papier); }
.vl-liste > li[data-rolle=user] { margin-left: 1.2rem; background: var(--akzent-weich); }
.vl-liste > li[data-rolle=system] { background: var(--flaeche-2); }
.vl-kopf { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--text-2); margin: 0 0 0.2rem; }
.vl-liste > li p { margin: 0 0 0.3rem; line-height: 1.45; }
.vl-liste > li.vl-weg { opacity: 0.55; border-style: dashed; }
.vl-liste > li.vl-raus { opacity: 0.55; border-color: var(--warn); border-style: dashed; }
.vl-liste > li.vl-raus .vl-kopf::after { content: " drops out"; color: var(--warn); }
.vl-schalter { display: flex !important; align-items: center; gap: 0.5rem; min-height: 44px; font-weight: 600 !important; margin: 0 !important; font-size: 0.9rem; }
.vl-zaehler { font-weight: 650; margin: 0.5rem 0 0.2rem; }
.vl-antwort p { border-radius: 10px; padding: 0.5rem 0.7rem; margin: 0.4rem 0; }
.vl-antwort p.gut { background: var(--gut-weich); } .vl-antwort p.schlecht { background: var(--warn-weich); }

/* Tiefe-Schicht „So macht es tybo“ und Spark-Absatz auf Mac-Seiten */
details.tiefe.tybo > summary { color: var(--akzent-2); }
details.spark-absatz { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; margin: 1.2rem 0; }
details.spark-absatz > summary { min-height: 44px; display: flex; align-items: center; padding: 0.5rem 1rem; cursor: pointer; font-family: var(--schrift-ui); font-weight: 650; color: var(--akzent); }
details.spark-absatz > div { padding: 0 1rem 0.4rem; }
.mac-seite .fassung-wahl { margin: 0 0 1rem; }

/* ---------- Bausteine Welle 2 ---------- */
/* Kosinus */
.anfassen svg.ks-bild { display: block; width: 100%; max-width: 22rem; height: auto; margin: 0.2rem auto 0.4rem; touch-action: none; }
.ks-griff { cursor: grab; }
.ks-ergebnis { background: var(--flaeche-2); border-radius: 12px; padding: 0.6rem 0.8rem 0.3rem; margin: 0.4rem 0 0.6rem; }
.ks-titel { font-weight: 700; margin: 0 0 0.3rem; }
.ks-ergebnis ol { margin: 0 0 0.3rem; padding-left: 1.3rem; }
.ks-ergebnis li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.15rem 0; }
.ks-ergebnis li strong { font-variant-numeric: tabular-nums; }
.ks-erster { font-weight: 700; color: var(--akzent); }
.ks-fremd { font-size: 0.8rem; font-weight: 700; color: var(--warn); }
.ks-warn { background: var(--warn-weich); border-radius: 10px; padding: 0.45rem 0.6rem; margin: 0.4rem 0; }
.ks-raum { flex-wrap: wrap; }

/* Schleife */
.sl-runde { font-weight: 650; color: var(--text-2); margin: 0.2rem 0 0.4rem; }
.sl-ablauf { list-style: none; padding: 0; margin: 0; }
.sl-ablauf > li { margin: 0 0 0.6rem; }
.sl-ablauf > li.sl-nachricht { border: 1px solid var(--linie); border-radius: 12px; padding: 0.5rem 0.75rem 0.2rem; background: var(--papier); }
.sl-ablauf > li[data-rolle=user] { margin-left: 1.2rem; background: var(--akzent-weich); }
.sl-ablauf > li[data-rolle=tool] { border-style: dashed; background: var(--flaeche-2); }
.sl-ablauf > li[data-rolle=hook] { border-color: var(--gut); background: var(--gut-weich); }
.sl-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 0.6rem; font-size: 0.8rem; font-weight: 700; color: var(--text-2); margin: 0 0 0.25rem; }
.sl-stop { font-family: var(--schrift-code); font-weight: 600; color: var(--akzent-2); }
.sl-nachricht p { margin: 0 0 0.35rem; line-height: 1.45; }
.sl-nachricht code { overflow-wrap: anywhere; }
.sl-ablauf .wahl { margin: 0.2rem 0 0.4rem; }

/* Dreieck */
.dr-bild { position: relative; height: 10rem; margin: 0.4rem -0.4rem 0.8rem; background: var(--flaeche); border-radius: 12px; box-shadow: 0 6px 14px rgb(0 0 0 / 0.07); }
.dr-bild svg { position: absolute; left: 18%; right: 18%; top: 1.5rem; width: 64%; height: 6.6rem; }
.dr-linie { fill: none; stroke: var(--linie); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.dr-bild.alle .dr-linie { stroke: var(--warn); stroke-width: 3; fill: var(--warn-weich); }
.dr-ecke { position: absolute; max-width: 46%; padding: 0.35rem 0.55rem; border-radius: 10px; border: 1px solid var(--linie); background: var(--papier); font-size: 0.85rem; font-weight: 650; line-height: 1.25; text-align: center; color: var(--text-2); }
.dr-pos0 { left: 50%; top: 0; transform: translateX(-50%); }
.dr-pos1 { right: 0.3rem; bottom: 0.3rem; width: 44%; }
.dr-pos2 { left: 0.3rem; bottom: 0.3rem; width: 44%; }
.dr-ecke.an { background: var(--akzent-weich); border-color: var(--akzent); color: var(--text); }
.dr-bild.alle .dr-ecke.an { background: var(--warn-weich); border-color: var(--warn); }
.dr-ecke.gesperrt { text-decoration: line-through; border-color: var(--gut); }
.dr-werkzeuge { list-style: none; padding: 0; margin: 0; }
.dr-werkzeuge > li { border: 1px solid var(--linie); border-radius: 12px; padding: 0.4rem 0.75rem 0.2rem; margin: 0 0 0.5rem; background: var(--papier); }
.dr-werkzeuge > li.an { border-color: var(--akzent); }
.dr-schalter { display: flex !important; align-items: center; gap: 0.6rem; min-height: 44px; margin: 0 !important; }
.dr-schalter input { flex: none; width: 1.3rem; height: 1.3rem; accent-color: var(--akzent); }
.dr-name { font-weight: 650; }
.dr-marken { margin: 0 0 0.3rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.dr-marke { font-size: 0.78rem; font-weight: 650; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--flaeche-2); }
.dr-sperrt { background: var(--gut-weich); color: var(--gut); }
.dr-werkzeuge .warum { font-size: 0.9rem; color: var(--text-2); margin: 0 0 0.35rem; }
.dr-stand { border-radius: 10px; padding: 0.5rem 0.7rem; font-weight: 650; }
.dr-stand { background: var(--flaeche-2); }
.dr-stand.gut { background: var(--gut-weich); color: var(--gut); } .dr-stand.schlecht { background: var(--warn-weich); color: var(--warn); }

/* ---------- Bausteine Welle 3 und 4 ---------- */
.at-ergebnis { background: var(--flaeche-2); border-radius: 12px; padding: 0.6rem 0.8rem 0.2rem; margin: 0.4rem 0 0.6rem; }
.at-rechnung { font-size: 0.82rem; color: var(--text-2); margin: -0.1rem 0 0.5rem; font-variant-numeric: tabular-nums; }
.tp-batch { color: var(--text); }
.lz-ergebnis { background: var(--flaeche-2); border-radius: 12px; padding: 0.7rem 0.85rem 0.3rem; margin: 0 0 0.8rem; }
.lz-leiste { list-style: none; padding: 0; margin: 0.5rem 0; }
.lz-leiste li { position: relative; margin: 0 0 0.35rem; padding: 0.3rem 0.5rem; border-radius: 8px; background: var(--papier); display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.88rem; overflow: hidden; }
.lz-leiste li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--b); background: var(--akzent-weich); }
.lz-leiste li.lz-s1::before { background: var(--gut-weich); } .lz-leiste li.lz-s2::before { background: var(--warn-weich); } .lz-leiste li.lz-s3::before { background: var(--flaeche-2); outline: 1px solid var(--linie); }
.lz-leiste li > span { position: relative; }
.lz-ms { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lz-mensch { height: 10px; background: var(--papier); border-radius: 4px; margin: 0.4rem 0 0.1rem; }
.lz-mensch span { display: block; height: 100%; background: var(--gut); border-radius: 4px; }
.lz-ok { background: var(--gut-weich); border-radius: 10px; padding: 0.45rem 0.6rem; margin: 0.4rem 0; }
.fl-eingang { list-style: none; padding: 0; margin: 0 0 0.6rem; }
.fl-eingang > li { border: 1px solid var(--linie); border-radius: 12px; padding: 0.6rem 0.8rem 0.4rem; margin: 0 0 0.6rem; background: var(--papier); }
.fl-eingang > li.ok { border-color: var(--gut); } .fl-eingang > li.falsch { border-color: var(--warn); }
.fl-text { font-weight: 650; margin: 0 0 0.2rem; }
.fl-herkunft { font-size: 0.82rem; color: var(--text-2); margin: 0 0 0.4rem; }
.fl-liste, .fl-abruf { background: var(--flaeche-2); border-radius: 12px; padding: 0.6rem 0.8rem 0.3rem; margin: 0.4rem 0 0.6rem; }
.fl-liste ul { list-style: none; padding: 0; margin: 0; }
.fl-liste li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 0.6rem; padding: 0.3rem 0; border-bottom: 1px solid var(--linie); }
.fl-liste li.fl-vorschlag > span:first-child { font-style: italic; color: var(--text-2); }
.fl-abruf p { border-radius: 10px; padding: 0.45rem 0.6rem; margin: 0 0 0.4rem; }
.fl-abruf p.gut { background: var(--gut-weich); } .fl-abruf p.schlecht { background: var(--warn-weich); }

.fl-eingang .warum { display: none; }

/* Regler mit Plus und Minus für den Daumen */
.regler-zeile { display: flex; align-items: center; gap: 0.4rem; }
.regler-zeile input[type=range] { flex: 1; min-width: 0; }
.regler-knopf { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); font: 700 1.2rem/1 var(--schrift-ui); cursor: pointer; }
.regler-knopf:hover { border-color: var(--akzent); }
/* Bestätigung des Auftrags auch unten am Baustein */
.auftrag-echo { background: var(--gut-weich); color: var(--gut); font-weight: 650; border-radius: 10px; padding: 0.5rem 0.7rem; margin: 0.6rem 0 0.2rem; }
.auftrag-echo:empty { display: none; }
/* Kosten und Tempo: oben klebt nur die Kernzahl, Einzelheiten darunter */
.ko-ergebnis.ko-kern { padding-bottom: 0.25rem; }
.ko-ergebnis.ko-kern .ko-gross { margin: 0; }
.ko-details { background: var(--flaeche-2); border-radius: 12px; padding: 0.5rem 0.85rem 0.2rem; margin: -0.4rem 0 0.8rem; }

@media (min-height: 760px) { .dr-bild { position: sticky; top: 3.2rem; z-index: 3; height: 9.5rem; } }
.einsatz.mit-js aside.nachlesen.vorab { display: none; }
.fl-jetzt { font-size: 0.88rem; color: var(--text-2); border-top: 1px solid var(--linie); padding-top: 0.35rem; }
.inhalt-menue nav p.menue-gruppe { margin-top: 0.9rem; padding-top: 0.6rem; border-top: 1px solid var(--linie); color: var(--akzent-2); }

/* Listen mit Raster: gegen die allgemeine Regel „main > ul li > a:only-child“ (inline-block) */
main .einsatz-liste > li > a:only-child { display: grid; padding: 0.8rem 0.9rem; }
main .teil-liste > li > a:only-child { display: grid; padding: 0.75rem 0.4rem; }

/* Sprachen: Umschalter in der Kopfzeile, Hinweis darunter */
.kopf .sprachwahl { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 0.5rem; box-sizing: border-box; font-family: var(--schrift-ui); font-size: 0.85rem; font-weight: 650; letter-spacing: 0.04em; color: var(--akzent); text-decoration: none; border: 1px solid var(--linie); border-radius: 8px; margin-left: auto; }
.kopf .sprachwahl:hover, .kopf .sprachwahl:focus-visible { border-color: var(--akzent); }
.kopf .sprachwahl + .inhalt-menue { margin-left: 0; }
.sprach-hinweis { max-width: var(--breite); margin: 0.6rem auto 0; padding: 0 1rem; box-sizing: border-box; font-family: var(--schrift-ui); font-size: 0.9rem; }
.sprach-hinweis p { margin: 0; padding: 0.5rem 0.75rem; background: var(--flaeche-2); border-radius: 8px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; }
.sprach-hinweis .knopf { min-height: 36px; padding: 0.2rem 0.7rem; font-size: 0.85rem; }
.fuss-links { margin-top: 0.4rem; }
.impressum-seite h2 { margin-top: 2rem; }

/* ---------- Box „Mit deiner eigenen KI vertiefen“ (textfassung.ts) ----------
   Ruhig wie die übrigen Kästen, ohne farbigen Seitenbalken. Ohne JavaScript stehen alle Prompts untereinander. */
.eigene-ki { margin: 1.6rem 0; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); font-family: var(--schrift-ui); }
.eigene-ki > summary { min-height: 44px; display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 1rem; cursor: pointer; font-weight: 650; font-size: 0.98rem; color: var(--akzent); list-style: none; }
.eigene-ki > summary::-webkit-details-marker { display: none; }
.eigene-ki > summary::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; margin-right: 0.1rem; }
.eigene-ki[open] > summary::before { transform: rotate(45deg); }
.eigene-ki[open] > summary { border-bottom: 1px solid var(--linie); }
.eki-innen { padding: 0.8rem 1rem 0.4rem; font-size: 0.95rem; }
.eki-innen > p:first-child { margin-top: 0; }
.eki-wahl { margin: 0.8rem 0 0.4rem; }
.eki-wahl button { flex: 1 1 auto; }
.eki-prompt { margin: 0.6rem 0 0.9rem; }
.eki-name { font-weight: 650; margin: 0 0 0.35rem; }
.eki-mit-js .eki-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eki-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 0.75rem 0.85rem; border-radius: 10px; background: var(--flaeche-2); border: 1px solid var(--linie); font-size: 0.9rem; line-height: 1.5; hyphens: none; -webkit-hyphens: none; -webkit-user-select: all; user-select: all; }
.eki-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.55rem 0 0; }
.eki-kopieren.ok { background: var(--gut-weich); border-color: var(--gut); color: var(--gut); }
/* Bestätigung für Bildschirmleser; sichtbar ist sie am Knopf („Kopiert“) */
.eki-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eki-sicher { font-size: 0.85rem; color: var(--text-2); border-top: 1px solid var(--linie); padding-top: 0.6rem; margin: 0.4rem 0 0.4rem; }
.eki-verweis { font-family: var(--schrift-ui); font-size: 0.88rem; color: var(--text-2); margin: 0.1rem 0 0.4rem; }
.eki-verweis a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.eki-verweis + .eigene-ki { margin-top: 0.4rem; }
@media print { .eigene-ki, .eki-verweis { display: none !important; } }
