/* Griffsicher, Sachkunde 3D: Oberfläche nach dem Design-Handoff vom 20.09.2026
   (04 Ressourcen/Sachkunde Waffenrecht/design_handoff_griffsicher/README.md).
   Schrift: Barlow statt DIN OT. DIN OT gehört zum VIER Design System und ist für ein privates
   Verkaufsprodukt nicht lizenziert; Barlow steht unter der SIL Open Font License und ist die im
   Handoff genannte Alternative. Die Dateien liegen selbst gehostet unter web/fonts/. */

@font-face { font-family: Barlow; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/barlow-400-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+A720-A7FF; }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/barlow-700-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+A720-A7FF; }
@font-face { font-family: Barlow; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/barlow-900.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Barlow; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/barlow-900-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+A720-A7FF; }

:root {
  --navy: #1C3257;
  --orange: #FF3C00;
  --orange-dark: #CC3000;
  --wash-orange: #FFEDE7;
  --wash-info: #E3ECF3;
  --ink: #1A1919;
  --body: #4F4A4A;
  --muted: #6A6262;
  --muted-dunkel: #847B7B;
  --line: #CECACA;
  --line-hell: #E6E5E5;
  --bg: #E6E5E5;
  --surface: #FAFAFA;
  --white: #FFFFFF;
  --input: #F6F5F5;
  --gruen: #48C246;
  --warn: #F1802E;
  --fehler: #D53B3B;
  --hud: rgba(26, 25, 25, .9);
  --hud-neutral: rgba(26, 25, 25, .82);
  --hud-line: #353131;
  --r: 5px;
  --schatten: 0 2px 1px -1px rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 1px 3px 0 rgba(0, 0, 0, .12);
  --schatten-hoch: 2px 2px 6px 0 rgba(0, 0, 0, .35);
  --t: 161ms ease-in-out;
  --breite: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Barlow, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--navy); }
h1 { font-size: 39px; line-height: 1.2; }
h2 { font-size: 31px; line-height: 1.25; }
h3 { font-size: 25px; line-height: 1.3; }
h4 { font-size: 20px; line-height: 30px; }
p { margin: 0; }
.bahn { max-width: var(--breite); margin: 0 auto; padding-inline: 24px; width: 100%; }
.lead { font-size: 20px; line-height: 30px; color: var(--body); }
.klein { font-size: 13px; line-height: 19.5px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
  font-size: 16px; line-height: 24px; text-decoration: none; transition: background var(--t), border-color var(--t), color var(--t);
}
.btn:hover { text-decoration: none; }
.btn-primaer { background: var(--orange); color: var(--white); font-weight: 700; padding: 10px 18px; }
.btn-primaer:hover { background: var(--orange-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); padding: 9px 16px; }
.btn-outline:hover { background: var(--line-hell); color: var(--navy); }
.btn-gross { padding: 14px 24px; }
.btn-voll { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.kopf .bahn { height: 72px; display: flex; align-items: center; gap: 32px; }
.marke { display: block; color: inherit; text-decoration: none; flex: none; }
.marke:hover { text-decoration: none; }
.marke .wort { font-size: 20px; font-weight: 900; letter-spacing: .04em; color: var(--navy); line-height: 1.1; }
.marke .wort i { font-style: normal; color: var(--orange); }
.marke .sub { font-size: 10px; letter-spacing: .18em; color: var(--muted); line-height: 1.4; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  padding: 8px 14px; border-radius: var(--r); color: var(--body); font-size: 16px;
  background: transparent; transition: background var(--t), color var(--t);
}
.nav a:hover { background: var(--line-hell); color: var(--body); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--line-hell); color: var(--navy); }
.kopf-aktionen { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.konto-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
}
.konto-chip b { color: var(--navy); font-weight: 700; }
.konto-chip.voll { border-color: var(--gruen); color: var(--gruen); }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--white); border-top: 1px solid var(--line); margin-top: auto; }
.fuss .bahn { padding-block: 40px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.fuss-links { display: flex; gap: 24px; flex-wrap: wrap; }
.fuss-recht { font-size: 13px; line-height: 19.5px; color: var(--muted); max-width: 72ch; }

/* ---------- Seitengerüst ---------- */
.seite { min-height: 100vh; display: flex; flex-direction: column; }
.abschnitt { padding-block: 72px; }
.abschnitt.weiss { background: var(--white); }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(#F2F2F2 29%, rgba(227, 236, 243, .35) 100%); border-bottom: 1px solid var(--line); padding-block: 72px; }
.hero .bahn { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-bild { flex: 1 1 400px; aspect-ratio: 4 / 3; position: relative; background: var(--ink); border-radius: var(--r); box-shadow: var(--schatten-hoch); overflow: hidden; }
.hero-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero h1 { font-size: clamp(31px, 5vw, 49px); line-height: 1.15; }
.hero .lead { max-width: 54ch; }
.chip-status {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 6px 12px; font-size: 13px; color: var(--body);
}
.chip-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); flex: none; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.kennzahlen { display: flex; gap: 32px; flex-wrap: wrap; }
.kennzahl b { display: block; font-size: 25px; line-height: 1.2; font-weight: 700; color: var(--navy); }
.kennzahl span { font-size: 13px; color: var(--muted); }
.stage-pills { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 13px; color: var(--white); background: var(--hud-neutral); border: 1px solid var(--hud-line); border-radius: var(--r); padding: 6px 12px; }
.pill.aktiv { background: var(--orange); border-color: var(--orange); }

/* ---------- Karten der Bibliothek ---------- */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.karte { background: var(--surface); border-radius: var(--r); box-shadow: var(--schatten); overflow: hidden; display: flex; flex-direction: column; }
.karte-bild { aspect-ratio: 16 / 10; background: var(--ink); position: relative; display: flex; align-items: center; justify-content: center; }
.karte-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.karte-bild .platzhalter { font-size: 13px; color: var(--muted-dunkel); text-align: center; padding: 16px; }
.badge {
  position: absolute; top: 12px; right: 12px; font-size: 13px; font-weight: 700; line-height: 19.5px;
  border-radius: var(--r); padding: 4px 10px; color: var(--white);
}
.badge.frei { background: var(--gruen); }
.badge.voll { background: var(--navy); }
.karte-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.karte-body h3 { font-size: 25px; }
.karte-typ { font-size: 13px; line-height: 19.5px; color: var(--muted); }
.karte-text { font-size: 16px; line-height: 24px; color: var(--body); }
.karte-fuss { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.karte-meta { font-size: 13px; color: var(--muted); }

/* ---------- Modi-Karten ---------- */
.modi { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.modus { background: var(--surface); border-left: 3px solid var(--orange); border-radius: 0 var(--r) var(--r) 0; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.modus .nr { font-size: 13px; font-weight: 700; color: var(--orange); letter-spacing: .1em; }
.modus h4 { font-size: 20px; }
.modus p { font-size: 16px; line-height: 24px; color: var(--body); }

/* ---------- B2B-Band ---------- */
.band { background: var(--navy); border-radius: var(--r); padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.band h2 { color: var(--white); max-width: 22ch; }
.band p { color: var(--line); max-width: 46ch; margin-top: 12px; }

/* ---------- Preise ---------- */
.preis-kopf { max-width: 62ch; margin: 0 auto 48px; text-align: center; display: flex; flex-direction: column; gap: 16px; }
.tarife { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.tarif { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.tarif.hervor { background: var(--white); border-color: var(--orange); box-shadow: var(--schatten-hoch); }
.tarif-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tarif-kopf h3 { font-size: 25px; }
.tag { font-size: 13px; font-weight: 700; border-radius: var(--r); padding: 4px 10px; background: var(--line-hell); color: var(--muted); }
.tag.beliebt { background: var(--orange); color: var(--white); }
.tag.b2b { background: var(--navy); color: var(--white); }
.tarif-preis { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tarif-preis b { font-size: 39px; line-height: 1.1; font-weight: 700; color: var(--navy); }
.tarif-preis span { font-size: 16px; color: var(--muted); }
.leistungen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.leistungen li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: 16px; line-height: 24px; color: var(--body); }
.leistungen li::before { content: "—"; color: var(--orange); font-weight: 700; }
.preis-fuss { text-align: center; font-size: 13px; line-height: 19.5px; color: var(--muted); margin-top: 32px; }

/* ---------- Konto / Login ---------- */
.konto-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0; align-items: stretch; }
.konto-karte { background: var(--surface); border-radius: var(--r); box-shadow: var(--schatten); padding: 40px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.konto-spalte { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.konto-navy { background: var(--navy); padding: 72px 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.konto-navy h2 { color: var(--white); max-width: 20ch; }
.konto-navy p { color: #B5B0B0; font-size: 16px; line-height: 24px; max-width: 48ch; }
.feld { display: flex; flex-direction: column; gap: 8px; }
.feld label { font-size: 13px; color: var(--body); }
.feld input {
  background: var(--input); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px;
  font-size: 16px; color: var(--ink); width: 100%;
}
.feld input:focus { outline: none; border-color: var(--orange); }
.hinweis { border-radius: var(--r); padding: 12px 16px; font-size: 13px; line-height: 19.5px; background: var(--wash-info); color: var(--body); }
.hinweis.gut { background: #EAF7EA; color: #2F7A2E; }
.hinweis.warn { background: var(--wash-orange); color: var(--orange-dark); }
.hinweis.fehler { background: #FBEAEA; color: var(--fehler); }

/* ---------- Trainer ---------- */
/* Der Trainer füllt genau den Rest unter der Kopfzeile. Ohne die min-height:0-Kette wächst das Panel mit
   seiner Liste, zieht die Stage mit und das Seitenverhältnis der Kamera kippt ins Hochformat
   (gemessen 20.09.2026: Stage 930 × 2336). Gescrollt wird in der Liste; auf schmalen Schirmen die Seite. */
body.trainer-seite { height: 100vh; overflow: hidden; }
body.trainer-seite .trainer { flex: 1; min-height: 0; }
/* nowrap ist hier wichtig: mit wrap wächst die Flex-Zeile auf die Höhe des höchsten Kindes,
   und das Panel mit seiner Liste zieht die Stage mit. */
.trainer { display: flex; flex-wrap: nowrap; align-items: stretch; overflow: hidden; }
.stage { flex: 3 1 420px; min-height: 60vh; background: var(--ink); position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
#viewport { position: absolute; inset: 0; touch-action: none; }
#viewport canvas { display: block; outline: none; width: 100% !important; height: 100% !important; }
.stage-kopf { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; z-index: 4; pointer-events: none; flex-wrap: wrap; }
.stage-kopf > * { pointer-events: auto; }
.stage-titel .eyebrow { font-size: 13px; letter-spacing: .1em; color: var(--muted-dunkel); }
/* Rueckweg zur Bibliothek: liegt auf der Buehne und bleibt deshalb in jedem Modus sichtbar,
   auch waehrend einer laufenden Abfrage oder eines Ablaufs. */
.stage-titel a.zurueck-bibliothek { display: inline-block; text-decoration: none; color: var(--muted-dunkel); transition: color var(--t); }
.stage-titel a.zurueck-bibliothek::before { content: "\2039\00a0"; }
.stage-titel a.zurueck-bibliothek:hover, .stage-titel a.zurueck-bibliothek:focus-visible { color: var(--orange); }
.stage-titel h1 { font-size: 25px; line-height: 1.2; color: var(--white); }
.ansichten { display: flex; gap: 8px; flex-wrap: wrap; }
.ansichten button, .hud button, .hud label {
  font-size: 13px; line-height: 19.5px; color: var(--white); background: var(--hud-neutral);
  border: 1px solid var(--hud-line); border-radius: var(--r); padding: 8px 12px; cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.ansichten button:hover, .hud button:hover { background: rgba(60, 56, 56, .9); }
.ansichten button[aria-pressed="true"], .hud button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); }
.hud {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 4;
  background: var(--hud); border: 1px solid var(--hud-line); border-radius: var(--r);
  padding: 12px 16px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.hud .regler { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 13px; background: none; border: 0; padding: 0; cursor: default; }
.hud input[type="range"] { -webkit-appearance: none; appearance: none; width: 140px; height: 4px; border-radius: 2px; background: #4F4A4A; outline: none; }
.hud input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); cursor: pointer; }
.hud input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--orange); cursor: pointer; }
.hud .wert { font-variant-numeric: tabular-nums; min-width: 4ch; }
.hud .zuruecksetzen { background: transparent; border-color: transparent; color: var(--line); }
.hud .zuruecksetzen:hover { background: rgba(60, 56, 56, .9); }
#laden {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: var(--ink); color: var(--white); font-size: 13px; z-index: 6; text-align: center; padding: 24px;
}
#laden .balken { width: 180px; height: 4px; border-radius: 2px; background: #4F4A4A; overflow: hidden; }
#laden .balken i { display: block; height: 100%; width: 40%; background: var(--orange); animation: laden 1.1s infinite ease-in-out; }
#laden .balken.bestimmt i { animation: none; transition: width .2s; }
@keyframes laden { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
#sperre { position: absolute; inset: 0; z-index: 7; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(26, 25, 25, .88); }
#sperre .karte-sperre { background: var(--white); border-radius: var(--r); box-shadow: var(--schatten-hoch); padding: 32px; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }

/* Punkte und Etiketten in der Szene.
   Wichtig: Das Transform dieser Elemente gehört dem CSS2DRenderer (er setzt es inline für die Position).
   Eine CSS-Animation auf demselben Element hätte Vorrang vor dem Inline-Style und würde alle Punkte in die
   Ecke kleben (gemessen 20.09.2026). Der Puls läuft deshalb auf einem Pseudo-Element, der Versatz über margin. */
.punkt3d { position: relative; width: 14px; height: 14px; pointer-events: none; }
.punkt3d::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); animation: puls 1.8s ease-in-out infinite; }
@keyframes puls { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .punkt3d::after { animation: none; opacity: .85; } #laden .balken i { animation: none; width: 100%; } }
.etikett3d {
  background: var(--hud); border: 1px solid #4F4A4A; border-radius: var(--r); padding: 10px 14px;
  margin-bottom: 34px; pointer-events: none; white-space: nowrap;
}
.etikett3d .rolle { font-size: 13px; color: var(--muted-dunkel); display: block; }
.etikett3d .wert { font-size: 16px; font-weight: 700; color: var(--white); }
.etikett3d.gut { border-color: var(--gruen); }
.etikett3d.gut .wert { color: var(--gruen); }
.etikett3d.schlecht { border-color: var(--fehler); }
.etikett3d.schlecht .wert { color: var(--fehler); }

/* Panel rechts */
.panel { flex: 1 1 340px; background: var(--white); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
.tabs button {
  padding: 16px 8px; background: transparent; border: 0; border-bottom: 3px solid transparent;
  font-size: 16px; color: var(--muted); cursor: pointer; transition: color var(--t), border-color var(--t);
}
.tabs button[aria-selected="true"] { border-bottom-color: var(--orange); color: var(--navy); font-weight: 700; }
.panel-kopf { padding: 24px; border-bottom: 1px solid var(--line-hell); display: flex; flex-direction: column; gap: 12px; }
.panel-kopf .zeile { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-kopf h2 { font-size: 20px; line-height: 30px; color: var(--navy); }
.panel-kopf .zaehler { font-size: 13px; color: var(--muted); white-space: nowrap; }
.fortschritt { height: 4px; border-radius: 2px; background: var(--line-hell); overflow: hidden; }
.fortschritt i { display: block; height: 100%; background: var(--orange); transition: width var(--t); }
.panel-kopf .info { font-size: 13px; line-height: 19.5px; color: var(--muted); }
.panel-liste { flex: 1; min-height: 0; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.zeile-btn {
  width: 100%; text-align: left; background: var(--white); border: 1px solid var(--line-hell); border-radius: var(--r);
  padding: 14px; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.zeile-btn:hover { background: var(--surface); }
.zeile-btn .marker {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; background: var(--line-hell); color: var(--muted); flex: none;
}
.zeile-btn.ohne-marker { grid-template-columns: 1fr; }
.zeile-btn .titel { display: block; font-size: 16px; line-height: 22px; color: var(--body); }
.zeile-btn .detail { display: block; font-size: 13px; line-height: 19.5px; color: var(--muted); margin-top: 4px; }
.zeile-btn.erledigt .marker { background: var(--gruen); color: var(--white); }
.zeile-btn.aktiv { background: var(--wash-orange); border-color: var(--orange); }
.zeile-btn.aktiv .marker { background: var(--orange); color: var(--white); }
.zeile-btn.aktiv .titel { font-weight: 700; color: var(--ink); }
.zeile-btn.fehler { background: #FBEAEA; border-color: var(--fehler); }
.zeile-btn.fehler .marker { background: var(--fehler); color: var(--white); }
.panel-fuss { padding: 24px; border-top: 1px solid var(--line-hell); display: flex; gap: 12px; flex-wrap: wrap; }
.panel-fuss .btn-primaer { flex: 1; }
.quelle { font-size: 13px; line-height: 19.5px; color: var(--muted); }

/* Ballistik: eine Tafel je Thema, Bild oben, Text und Katalogfragen darunter. */
.tafeln { display: grid; gap: 24px; }
.tafel { background: var(--surface); border-radius: var(--r); box-shadow: var(--schatten); padding: 24px; }
.tafel-kopf { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tafel-kopf h2 { font-size: 20px; line-height: 30px; color: var(--navy); }
.tafel-bild { background: var(--white); border: 1px solid var(--line-hell); border-radius: var(--r); padding: 16px; }
.tafel-svg { display: block; width: 100%; height: auto; }
.tafel-svg + .tafel-svg { margin-top: 8px; }
.tafel-steuerung { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.tafel-steuerung > b { font-size: 13px; color: var(--body); font-variant-numeric: tabular-nums; }
.tafel-regler { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tafel-regler input { width: 180px; accent-color: var(--orange); }
.tafel-regler b { color: var(--body); font-variant-numeric: tabular-nums; min-width: 72px; }
.tafel .tafel-text { margin-top: 16px; color: var(--body); max-width: 78ch; }
.tafel-fragen { margin-top: 16px; border-top: 1px solid var(--line-hell); padding-top: 12px; }
.tafel-fragen summary { cursor: pointer; font-size: 13px; color: var(--navy); }
.tafel-fragen .leistungen { margin-top: 12px; }
.tafel-fragen li { font-size: 13px; line-height: 19.5px; }
.tafel-fragen i { color: var(--muted); font-style: normal; }
@media (max-width: 760px) { .tafel-regler input { width: 120px; } }
.wissen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wissen li { border-left: 2px solid var(--orange); padding-left: 12px; font-size: 13px; line-height: 19.5px; color: var(--body); }
.wissen .qid { font-weight: 700; color: var(--navy); }

/* ---------- Prüfungsmodus ---------- */
.pruef-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.eyebrow-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--orange); }
.pruef-zahlen { display: flex; gap: 32px; }
.pruef-zahl { text-align: right; }
.pruef-zahl b { display: block; font-size: 25px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.pruef-zahl.gut b { color: var(--gruen); }
.pruef-zahl span { font-size: 13px; color: var(--muted); }
.pruef-raster { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.frage-karte { flex: 1.4 1 420px; background: var(--surface); border-radius: var(--r); box-shadow: var(--schatten); overflow: hidden; }
.frage-stage { aspect-ratio: 16 / 9; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.frage-stage img { width: 100%; height: 100%; object-fit: cover; }
.frage-body { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.antworten { display: flex; flex-direction: column; gap: 12px; }
.antwort {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px;
  font-size: 16px; line-height: 24px; color: var(--body); cursor: pointer; transition: background var(--t), border-color var(--t);
}
.antwort:hover { background: var(--surface); }
.antwort .buchstabe {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; background: var(--line-hell); color: var(--muted); flex: none;
}
.antwort[aria-pressed="true"] { background: var(--wash-orange); border-color: var(--orange); }
.antwort[aria-pressed="true"] .buchstabe { background: var(--orange); color: var(--white); }
.antwort.richtig { background: #EAF7EA; border-color: var(--gruen); }
.antwort.richtig .buchstabe { background: var(--gruen); color: var(--white); }
.antwort.falsch { background: #FBEAEA; border-color: var(--fehler); }
.antwort.falsch .buchstabe { background: var(--fehler); color: var(--white); }
.pruef-spalte { flex: 1 1 300px; display: flex; flex-direction: column; gap: 24px; }
.pruef-karte { background: var(--surface); border-radius: var(--r); box-shadow: var(--schatten); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.balken-zeile { display: flex; flex-direction: column; gap: 8px; }
.balken-zeile .kopf { display: flex; justify-content: space-between; font-size: 16px; color: var(--body); }
.balken-zeile .kopf b { font-size: 13px; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.balken { height: 6px; border-radius: 3px; background: var(--line-hell); overflow: hidden; }
.balken i { display: block; height: 100%; border-radius: 3px; transition: width var(--t); }
.balken i.hoch { background: var(--gruen); }
.balken i.mittel { background: var(--warn); }
.balken i.niedrig { background: var(--fehler); }
.recht-box { background: var(--wash-info); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.recht-box h3 { font-size: 25px; }
.recht-box p { font-size: 16px; line-height: 24px; color: var(--body); }

/* ---------- Rechtliche Textseiten ---------- */
.text { max-width: 72ch; margin: 0 auto; padding: 48px 24px; }
.text h1 { margin-bottom: 24px; }
.text h2 { font-size: 25px; margin-top: 32px; margin-bottom: 8px; }
.text p, .text ul { margin-bottom: 16px; color: var(--body); }
.text mark { background: var(--wash-orange); color: var(--orange-dark); padding: 1px 6px; border-radius: 3px; font-weight: 700; }
.entwurf { background: var(--fehler); color: var(--white); text-align: center; padding: 8px 24px; font-size: 13px; font-weight: 700; }

/* ---------- Schmal ---------- */
@media (max-width: 760px) {
  .kopf .bahn { height: auto; padding-block: 12px; gap: 16px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; }
  .kopf-aktionen { margin-left: auto; }
  .abschnitt { padding-block: 48px; }
  .hero { padding-block: 48px; }
  .hero .bahn { gap: 32px; }
  h1 { font-size: 31px; }
  h2 { font-size: 25px; }
  .band { padding: 32px 24px; }
  .konto-navy { padding: 48px 24px; }
  body.trainer-seite { height: auto; overflow: visible; }
  body.trainer-seite .trainer { flex: none; }
  .trainer { height: auto; overflow: visible; flex-wrap: wrap; }
  .stage { flex: 1 1 100%; height: 52vh; min-height: 0; }
  .panel { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--line); }
  .panel-liste { overflow: visible; }
  .stage-kopf, .hud { left: 16px; right: 16px; }
  .stage-kopf { top: 16px; }
  .hud { bottom: 16px; gap: 16px; }
  .frage-body { padding: 24px; }
}
