/* Schaltzentrale im Stil C2 (Archivo, Petrol #1f5f74, ruhig). Baut auf tablet.css auf, hier stehen nur die sz-Teile.
   Messlatte: 1400x840 und 1024x768 ohne Scrollen der Gesamtseite, jedes Kapitel scrollt in sich. Tasten ab 44 px.
   Aufbau 1.0.0: Kopfbox, links Vorschau, rechts Kapitelstreifen; .rechts spiegelt (Händigkeit). */
.sz { flex: 1 1 auto; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 6px; padding: 6px 10px; }

/* Kopfbox: das Wichtigste in einer flachen Zeile */
.sz-kopf { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 6px 4px 4px; background: rgba(255, 255, 255, 0.62); border: 1px solid var(--rand); border-radius: 16px; }
.kopf-bib { flex: none; min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 600; border-radius: 12px; }
.kopf-bib::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.kopf-bib.sicher { background: #a8382a; color: #fff; border-color: #a8382a; }
.kopf-thema { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; padding-left: 4px; }
.kopf-thema b { font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-board { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.am-board small { flex: none; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinte-2); }
.sz .quittung { font-size: 14px; color: var(--tinte-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz .quittung.fehler { color: #a8382a; font-weight: 600; }
.sz .quittung.warte { opacity: 0.7; }
.kopf-werkzeuge { flex: none; display: flex; gap: 6px; }
.kopf-werkzeuge button { min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 600; }
.sz-kopf .status { flex: none; gap: 8px; }
.sz-kopf .menue-knopf { flex: none; }

.sz-haupt { display: grid; grid-template-columns: minmax(300px, 36fr) minmax(0, 64fr); gap: 10px; min-height: 0; overflow: hidden; }
.sz.rechts .sz-haupt { grid-template-columns: minmax(0, 64fr) minmax(300px, 36fr); }
.sz.rechts .sz-links { order: 2; }

/* Kapitel: Streifen nebeneinander, das offene breit */
.sz-kapitel { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; gap: 5px; }
/* Grid statt Flex: so bleibt das offene Kapitel in der Höhe des Bereichs, sein Akkordeon scrollt in sich (gemessen: als Flex wuchs es über „Nächstes“). */
.kap { flex: 0 0 40px; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.kap.offen { flex: 1 1 auto; }
.kap-streifen { width: 100%; height: 100%; min-height: 0; padding: 10px 0 8px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.5); overflow: hidden; }
.kap.offen .kap-streifen { display: none; }
.kap-titel { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 0; flex: 0 1 auto; }
.kap-streifen .kap-zahl { flex: none; font-size: 12px; font-weight: 600; color: var(--tinte-2); font-variant-numeric: tabular-nums; writing-mode: vertical-rl; transform: rotate(180deg); }
/* Das Board steht in diesem Kapitel: Akzentkante oben */
.kap.am-board .kap-streifen { box-shadow: inset 0 4px 0 var(--akzent); }
.kap.fertig .kap-zahl { color: var(--akzent); }
.kap-klasse.frage-laeuft .kap-streifen { box-shadow: inset 0 4px 0 #a8382a; }
.kap-innen { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 6px 8px; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(31, 95, 116, 0.45); border-radius: 14px; }
.kap-kopf { flex: none; display: flex; align-items: baseline; gap: 10px; padding: 2px 4px 0; min-width: 0; }
.kap-kopf b { font-size: 17px; font-weight: 600; }
.kap-kopf small { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinte-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kap-kopf .kap-zahl { margin-left: auto; font-size: 13px; color: var(--tinte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kap-kopf .kap-zahl:not(:empty)::after { content: ' gezeigt'; }
.kap-klasse .kap-kopf .kap-zahl::after { content: ''; }
/* Im Kapitel bekommt der Titel zuerst seinen Platz, die Kurzzeile den Rest */
.kap .sz-th, .kap .sz-ph { grid-template-columns: 30px minmax(0, max-content) minmax(0, 1fr) 18px; }
.kap .sz-fallkopf { grid-template-columns: 30px minmax(0, max-content) minmax(0, 1fr); }
/* Ein Thema allein im Kapitel braucht keinen eigenen Kasten */
.kap-thema .sz-thema, .kap-faelle .sz-thema { border: 0; background: transparent; border-radius: 0; }
.kap-thema .sz-thema > .sz-th .pfeil, .kap-faelle .sz-thema > .sz-th .pfeil { visibility: hidden; }
/* Gezeigt: die Nummer steht gefüllt (bleibt beim Kapitelwechsel) */
.sz-th.erledigt .nr:not(:empty), .sz-ph.erledigt .nr, .sz-fallkopf.erledigt .nr { justify-self: center; width: 26px; height: 26px; line-height: 26px; border-radius: 50%; background: var(--akzent); color: #fff; font-size: 14px; }

/* Kapitel Klasse */
.kl-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 2px; }
.kl-einladen { min-height: 48px; padding: 0 18px; font-size: 16px; font-weight: 600; color: var(--akzent); border: 2px solid var(--akzent); background: #fff; }
.kl-stand { font-size: 15px; color: var(--tinte-2); }
.kl-knoepfe { display: flex; gap: 6px; flex-wrap: wrap; }
.kl-knopf { min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 600; }
.kl-frage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--rand); }
.kl-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kl-text small { font-size: 12px; color: var(--tinte-2); }
.kl-text span { font-size: 15px; line-height: 1.3; }
.kl-frage .sz-spielfrage { min-width: 140px; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.kl-frage .sz-spielfrage small { font-size: 12px; font-weight: 500; }
.kl-spieler { font-size: 15px; line-height: 1.4; }

/* Bibliothek */
.sz-bib { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 10px 6px 16px; }
.bib-titel { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.bib-regale { display: flex; flex-direction: column; gap: 18px; }
.bib-name { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinte-2); margin-bottom: 8px; }
.bib-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bib-kachel { min-height: 112px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 2px; padding: 14px 16px; border-radius: 16px; text-align: left; background: #fff; border: 2px solid var(--akzent); }
/* Lange Namen (Bauchspeicheldrüse, Schwangerschaft) trennen statt über den Kachelrand zu laufen */
.bib-kachel { min-width: 0; }
.bib-kachel b { font-size: 22px; font-weight: 600; max-width: 100%; hyphens: auto; overflow-wrap: break-word; }
.bib-kachel small { font-size: 14px; color: var(--tinte-2); max-width: 100%; overflow-wrap: break-word; }
.bib-kachel.kommt { background: transparent; border: 1px dashed var(--rand); }
.bib-kachel.kommt:disabled { opacity: 0.6; }
.bib-kommt { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinte-2); }
.bib-kachel.laedt { opacity: 0.6; }
.bib-leer { font-size: 17px; line-height: 1.4; color: var(--tinte-2); }
.sz-links, .sz-rechts { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sz-links .werkzeuge button { min-height: 44px; }
.sz-zoom { flex: none; }
.sz-links #spiel-block { flex: 0 1 auto; min-height: 0; max-height: 34%; overflow-y: auto; scrollbar-width: thin; }

/* Akkordeon im offenen Kapitel */
.sz-akk { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; display: flex; flex-direction: column; gap: 5px; padding: 0 4px 4px 0; position: relative; }
.sz-gruppe { flex: none; display: flex; align-items: baseline; gap: 10px; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinte-2); }
.sz-gruppe:first-child { margin-top: 0; }
.sz-gruppe small { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.sz-leer { padding: 16px; font-size: 17px; line-height: 1.4; color: var(--tinte-2); }

.sz-thema { flex: none; background: rgba(255, 255, 255, 0.5); border: 1px solid var(--rand); border-radius: 14px; overflow: hidden; }
.sz-thema.offen { background: rgba(255, 255, 255, 0.78); border-color: rgba(31, 95, 116, 0.45); }
.sz-th, .sz-ph, .sz-fallkopf {
  width: 100%; min-height: 48px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 18px; align-items: center; column-gap: 10px;
  text-align: left; padding: 4px 12px; border: 0; border-radius: 0; background: transparent; font-size: 17px; font-weight: 600; line-height: 1.15;
}
.sz-th .nr, .sz-ph .nr, .sz-fallkopf .nr { font-size: 16px; color: var(--akzent); text-align: center; font-variant-numeric: tabular-nums; }
.sz-th .titel, .sz-ph .titel, .sz-fallkopf .titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-th .kurz, .sz-ph .kurz, .sz-fallkopf .kurz { font-size: 13px; font-weight: 400; color: var(--tinte-2); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-fallkopf { grid-template-columns: 30px minmax(0, 1fr) auto; }
.pfeil { width: 9px; height: 9px; border-right: 2px solid var(--tinte-2); border-bottom: 2px solid var(--tinte-2); transform: rotate(45deg); justify-self: center; transition: transform 0.2s; }
[aria-expanded="true"] > .pfeil { transform: rotate(-135deg); }
/* Aktiv = das Board steht auf dieser Seite */
.sz-th.an, .sz-ph.an, .sz-fallkopf { box-shadow: inset 4px 0 0 transparent; }
.sz-th.an, .sz-ph.an { box-shadow: inset 4px 0 0 var(--akzent); background: rgba(31, 95, 116, 0.1); color: var(--tinte); }
.sz-th.an .nr, .sz-ph.an .nr { color: var(--akzent); }

.sz-panel { padding: 2px 10px 10px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rand); }
.sz-leitsatz { font-size: 15px; line-height: 1.35; color: var(--tinte-2); padding: 6px 2px 2px; }
.sz-punkt { border: 1px solid var(--rand); border-radius: 12px; background: rgba(255, 255, 255, 0.55); overflow: hidden; }
.sz-punkt.offen { border-color: rgba(31, 95, 116, 0.4); }
.sz-ph { min-height: 46px; font-size: 16px; }
.sz-pp { padding: 0 10px 10px; border-top: 1px solid var(--rand); }
.sz-flaeche { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.sz-block h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinte-2); margin-bottom: 4px; }

/* Zeigen-Kacheln */
.sz-kacheln { display: flex; flex-wrap: wrap; gap: 6px; }
.sz-kachel { min-height: 44px; padding: 4px 14px; font-size: 15px; font-weight: 500; line-height: 1.15; text-align: left; }

/* Kernpunkte */
.sz-kern { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.sz-kernknopf { width: 100%; min-height: 44px; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 8px; text-align: left; padding: 6px 12px; font-size: 16px; line-height: 1.3; }
.sz-kernknopf b { color: var(--akzent); font-variant-numeric: tabular-nums; }
.sz-kernknopf.an b { color: #fff; }

/* Du sagst */
.sz-sagt { background: rgba(31, 95, 116, 0.07); border-radius: 12px; padding: 8px 12px; }
.sz-sprech { font-size: 16px; line-height: 1.4; user-select: text; -webkit-user-select: text; }
.sz-mehr { margin-top: 4px; }
.sz-mehr summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 600; color: var(--akzent); cursor: pointer; }
.sz-mehr p { font-size: 15px; line-height: 1.45; user-select: text; -webkit-user-select: text; padding-bottom: 4px; }

/* Fragen: Frage, Antwort zeigen, Als Spielfrage */
.sz-fragezeile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; margin-bottom: 5px; align-items: stretch; }
.sz-frage { min-height: 48px; padding: 6px 12px; font-size: 15px; line-height: 1.28; text-align: left; }
.sz-antwort, .sz-spielfrage { min-width: 104px; padding: 4px 10px; font-size: 14px; font-weight: 600; }
.sz-spielfrage { border-color: rgba(31, 95, 116, 0.5); color: var(--akzent); }

.sz-quelle { font-size: 12px; line-height: 1.35; color: var(--tinte-2); padding: 2px 2px 0; user-select: text; -webkit-user-select: text; }

/* Haken: Quittung des Boards je Element */
[data-key] { position: relative; }
[data-key].warte::after, [data-key].haken::after, [data-key].fehler::after {
  position: absolute; right: 8px; top: 6px; min-width: 18px; height: 18px; border-radius: 9px; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; color: #fff; pointer-events: none;
}
[data-key].warte::after { content: '…'; background: #8a8e92; }
[data-key].haken::after { content: '✓'; background: var(--akzent); }
[data-key].fehler::after { content: '!'; background: #a8382a; }
.sz-th[data-key].haken::after, .sz-th[data-key].warte::after, .sz-th[data-key].fehler::after,
.sz-ph[data-key].haken::after, .sz-ph[data-key].warte::after, .sz-ph[data-key].fehler::after { right: 36px; top: 4px; }
.sz-th .kurz, .sz-ph .kurz { margin-right: 26px; }
button.an[data-key].haken::after { background: #fff; color: var(--akzent); }

/* Fälle */
.sz-faelle { display: flex; flex-direction: column; gap: 5px; }
.sz-fall { border: 1px solid var(--rand); border-radius: 12px; background: rgba(255, 255, 255, 0.55); overflow: hidden; }
.sz-fall.aktiv { border-color: rgba(31, 95, 116, 0.5); }
.sz-fallkopf { min-height: 48px; font-size: 16px; }
.sz-fall.aktiv .sz-fallkopf { box-shadow: inset 4px 0 0 var(--akzent); background: rgba(31, 95, 116, 0.1); }
.sz-phasen { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rand); }
.sz-phasenraster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.sz-phase { min-height: 44px; padding: 2px 4px; font-size: 13px; line-height: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.sz-phase b { font-size: 15px; font-weight: 600; }
.sz-phase span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.sz-phasenfeld { display: flex; flex-direction: column; gap: 4px; }
.sz-phasentitel { font-size: 15px; font-weight: 600; }
.sz-phasentext { font-size: 14px; line-height: 1.35; color: var(--tinte-2); user-select: text; -webkit-user-select: text; }
.sz-fallzeigen { display: flex; flex-wrap: wrap; gap: 6px; }
.sz-phasezeigen { min-height: 44px; padding: 4px 14px; font-size: 15px; font-weight: 600; }
.sz-phasezeigen.ende { margin-left: auto; }

/* Unten: Zurück und Nächstes */
.sz-unten { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 8px; }
.sz-unten button { min-height: 56px; font-size: 18px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.sz-unten button small { font-size: 12px; font-weight: 400; opacity: 0.85; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-unten .vor { background: var(--akzent); color: #fff; border-color: var(--akzent); }
.sz-unten .vor:disabled { background: var(--flaeche); color: var(--tinte); border-color: var(--rand); }
.sz-unten .vor.loesen { background: #a8382a; border-color: #a8382a; }

/* Schmale oder niedrige Fenster */
/* Tablet 1024 breit: Vorschau schmaler, damit das offene Kapitel Platz behält */
@media (max-width: 1180px) {
  .sz-haupt { grid-template-columns: minmax(250px, 30fr) minmax(0, 70fr); }
  .sz.rechts .sz-haupt { grid-template-columns: minmax(0, 70fr) minmax(250px, 30fr); }
  .kap { flex-basis: 36px; }
  .kap-titel { font-size: 14px; }
  .sz-kopf .status #verbunden { display: none; }
  .kopf-werkzeuge button, .kopf-bib { padding: 0 11px; }
  .sz-links .werkzeuge { flex-wrap: wrap; }
  .sz-links .werkzeuge button { padding: 0 9px; font-size: 14px; }
}
@media (max-width: 900px) {
  .sz-haupt, .sz.rechts .sz-haupt { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(120px, 34%) minmax(0, 1fr); }
  .sz-links { flex-direction: row; flex-wrap: wrap; }
  .sz-links .vorschau { flex: 1 1 100%; min-height: 100px; }
  .sz-th .kurz, .sz-ph .kurz { display: none; }
}
@media (max-height: 560px) {
  .sz-th, .sz-fallkopf { min-height: 44px; }
  .sz-unten button { min-height: 48px; }
}

/* ---------- Klassenspiel kompakt in der Kopfzeile ---------- */
.sz-klasse { display: flex; align-items: center; gap: 6px; flex: none; }
.sz-klasse [hidden] { display: none; }
.einladen { min-height: 44px; padding: 0 16px 0 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--akzent); border: 2px solid var(--akzent); background: #fff; white-space: nowrap; }
.einladen.an { background: var(--akzent); color: #fff; }
.klasse-stand { font-size: 15px; color: var(--tinte-2); white-space: nowrap; }
.klasse-stand b { color: var(--akzent); font-size: 18px; font-variant-numeric: tabular-nums; }
.klasse-stand .raumcode { font-weight: 600; letter-spacing: 0.12em; color: var(--tinte); font-size: 17px; }
.loesung-kopf { min-height: 44px; padding: 2px 14px; font-size: 15px; font-weight: 600; line-height: 1.1; background: #a8382a; color: #fff; border-color: #a8382a; white-space: nowrap; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
.loesung-kopf small { font-size: 12px; font-weight: 500; opacity: 0.92; }
.menue-knopf { min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 600; }
.menue-knopf::after { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }

.sz-menue { position: fixed; z-index: 25; top: 56px; right: 10px; width: min(360px, calc(100vw - 20px)); max-height: calc(100vh - 66px); overflow-y: auto; background: #fff; border: 1px solid var(--rand); border-radius: 16px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.sz-menue[hidden] { display: none; }
.sz-menue button { min-height: 48px; font-size: 16px; font-weight: 600; text-align: left; padding: 0 14px; }
.sz-menue button.sicher { background: #a8382a; color: #fff; border-color: #a8382a; }
.menue-kopf { font-size: 14px; color: var(--tinte-2); padding: 2px 4px 4px; }
.menue-kopf b { color: var(--akzent); font-size: 20px; letter-spacing: 0.1em; }
.menue-spieler { display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow-y: auto; border-top: 1px solid var(--rand); padding-top: 8px; }
.menue-spieler:empty { display: none; }
.menue-spieler .sp-person { font-size: 14px; }
.menue-spieler .sp-raus { min-height: 36px; padding: 0 10px; font-size: 13px; font-weight: 500; text-align: center; }

/* PIN-Fenster */
.sz-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 12px; background: rgba(23, 25, 27, 0.5); overflow-y: auto; }
.sz-modal[hidden] { display: none; }
.pin-karte { width: min(460px, 100%); background: #fff; border-radius: 20px; padding: 18px 22px 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; align-items: center; }
.pin-karte h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.pin-hinweis { font-size: 15px; line-height: 1.35; color: var(--tinte-2); text-align: center; margin-top: 4px; }
.pin-anzeige { display: flex; gap: 10px; margin: 14px 0 4px; }
.pin-anzeige span { width: 48px; height: 58px; border-radius: 12px; border: 1px solid var(--rand); background: rgba(243, 243, 242, 0.9); display: grid; place-items: center; font-size: 30px; line-height: 1; }
.pin-anzeige span.voll::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--tinte); }
.pin-anzeige span.aktiv { border: 2px solid var(--akzent); }
.pin-karte .meldung { min-height: 26px; font-size: 16px; margin: 0; }
.pin-karte .ziffern { gap: 8px; margin-top: 4px; }
.pin-karte .ziffern button { height: clamp(52px, 8.5vh, 70px); font-size: 28px; }

/* Frage-Zeile: dritte Taste „An die Handys“ / „Lösung zeigen“ */
/* „Lösung zeigen“ der laufenden Frage bekommt eine eigene Zeile, damit die Frage daneben lesbar bleibt (Fluss). */
.sz-fragezeile .sz-spielfrage { grid-column: 1 / -1; min-width: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.sz-fragezeile .sz-spielfrage small { font-size: 12px; font-weight: 500; }
.sz-spielfrage.loesen { background: #a8382a; color: #fff; border-color: #a8382a; }
.sz-spielfrage:disabled { opacity: 0.5; }

@media (max-width: 1100px) {
  .klasse-stand { display: none; }
}


/* PIN ändern */
.pa-felder { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 10px; }
.pa-feld { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--rand); background: rgba(243, 243, 242, 0.9); font: inherit; color: var(--tinte); text-align: left; cursor: pointer; }
.pa-feld.aktiv { border: 2px solid var(--akzent); padding: 7px 13px; }
.pa-name { font-size: 15px; }
.pa-pkt { font-size: 26px; letter-spacing: 0.18em; min-width: 7.5em; text-align: right; min-height: 1.3em; }
.pa-ok { margin-top: 10px; width: 100%; height: 52px; border-radius: 14px; border: 0; background: var(--akzent); color: #fff; font: inherit; font-size: 20px; font-weight: 600; cursor: pointer; }
.pa-ok:disabled { opacity: 0.4; cursor: default; }

/* Markieren (0.13.0): Umriss und Stiftstriche liegen als eigene Ebenen über der Vorschau; die Tasten stehen seit 1.0.0 in der Kopfbox */
.vorschau .v-ebene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vorschau.malt { cursor: crosshair; box-shadow: inset 0 0 0 2px var(--akzent); }
.erklaer .knoepfe { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr); }
.erklaer .knoepfe button { font-size: 16px; line-height: 1.15; padding: 4px 8px; }

/* Echtbild (1.0.0): kleines Vorschaubild mit Blättern, erst auf Tipp ans Board (tablet/echtbild.js) */
.eb-reihe { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: start; }
.eb-vorschau { width: 132px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #e7e7e5; border: 1px solid var(--rand); }
.eb-vorschau img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eb-block.eb-steht .eb-vorschau { border: 2px solid var(--akzent); }
.eb-seite { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.eb-titel { font-size: 15px; font-weight: 600; line-height: 1.25; }
.eb-nennung { font-size: 12px; color: var(--tinte-2); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.eb-blaettern { display: flex; align-items: center; gap: 8px; }
.eb-blaettern[hidden] { display: none; }
.eb-pfeil { width: 44px; height: 36px; font-size: 22px; line-height: 1; }
.eb-zahl { font-size: 13px; color: var(--tinte-2); font-variant-numeric: tabular-nums; }
.eb-tasten { display: flex; flex-wrap: wrap; gap: 6px; }
.eb-tasten [hidden] { display: none; }
.eb-tasten .sz-kachel { padding-right: 30px; } /* Platz für den Haken oben rechts */
/* Erklärung zum Bild, groß als Sprechhilfe: was man sieht (fett), woran man es erkennt. */
.eb-erklaerung { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rand); display: flex; flex-direction: column; gap: 6px; user-select: text; -webkit-user-select: text; }
.eb-was, .eb-woran { margin: 0; font-size: 18px; line-height: 1.4; }
.eb-was { font-weight: 600; }

/* Fall-Kachel mit Vorschaubild */
.kap .sz-fallkopf.mit-bild, .sz-fallkopf.mit-bild { grid-template-columns: 30px 56px minmax(0, max-content) minmax(0, 1fr); }
.sz-fallbild { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }

/* Echtbild über der Vorschau: Lage per Stil aus tablet.js (gleich wie am Board), Schleier nur bei „groß“ */
.vorschau .v-echtbild { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.vorschau .v-echtbild[hidden] { display: none; }
.v-echtbild .ebv-schleier { position: absolute; inset: 0; background: rgba(12, 14, 16, 0.55); opacity: 0; transition: opacity 400ms ease; }
.v-echtbild.gross .ebv-schleier { opacity: 1; }
.v-echtbild .ebv-flaeche { position: absolute; }
.v-echtbild .ebv-flaeche img { width: 100%; height: 100%; display: block; border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }

/* Themen-Ebene unter den Punkten (Raster partner) */
.sz-themenebene { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--rand); }
.sz-ebene-titel { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--akzent); }

/* Prüfstand (Menü): Liste aller Inhalte mit Quelle, Grad und Prüfung */
.ps-karte { background: #fff; border-radius: 18px; padding: 18px 20px; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; gap: 8px; }
.ps-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ps-kopf h2 { margin: 0; font-size: 22px; }
.ps-kopf button { min-height: 44px; padding: 0 16px; font-size: 16px; font-weight: 600; }
.ps-summe { margin: 0; font-size: 15px; }
.ps-liste { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.ps-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 10px; border-radius: 10px; background: var(--flaeche); font-size: 14px; }
.ps-zeile b { font-weight: 600; }
.ps-zeile small { grid-column: 1 / -1; color: #555; }
.ps-zeile .ps-stand { font-weight: 600; white-space: nowrap; }
