/* Prüfungstrainer Marketing – Fleischerschule Augsburg
   Erscheinungsbild nach Seminar-Präsentation und Skripten. Mobile First. */

@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --blau: #1F4594;
  --nacht: #14213F;
  --papier: #F8F7F3;
  --hellblau: #E9EFF8;
  --text: #2E3647;
  --neben: #5A6378;
  --rot: #C8322B;
  --gruen: #4FB05C;
  --gruen-dunkel: #2A7535;   /* Grün als Text: 4,5:1 auf Weiß */
  --rot-dunkel: #A5281F;
  --gelb: #F2C230;
  --cyan: #2BAFD3;
  --linie: #DCE0E8;
  --weiss: #FFFFFF;

  --titel: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --schrift: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  --rund: 14px;
  --rund-klein: 10px;
  --schatten: 0 1px 2px rgba(20, 33, 63, .06), 0 4px 16px rgba(20, 33, 63, .06);
  --breite: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }  /* 17 px Grundschrift */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--papier);
  color: var(--text);
  font-family: var(--schrift);
  line-height: 1.5;
  font-variant-numeric: lining-nums;
}
a { color: var(--blau); text-underline-offset: .15em; }
a:hover { color: var(--nacht); }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sprung { position: absolute; left: -999px; top: 0; }
.sprung:focus { left: 1rem; top: .75rem; z-index: 20; background: var(--weiss); color: var(--blau); padding: .6rem 1rem; border-radius: 8px; }

/* ---------- Kopf ---------- */
.kopf { background: var(--nacht); color: var(--weiss); padding-top: env(safe-area-inset-top); }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: .85rem; min-height: 64px; }
.kopf :focus-visible { outline-color: var(--weiss); }
.logo { flex: none; display: inline-flex; align-items: center; min-height: 48px; border-radius: 8px; }
.logo img { display: block; height: 56px; width: auto; max-width: 9rem; }
.kopf-titel { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.kopf-name { font-family: var(--titel); font-weight: 800; font-size: 1.05rem; }
.kopf-unter { font-size: .85rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf-nav { margin-left: auto; }
.kopf-konto {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; min-width: 48px; justify-content: center;
  color: var(--weiss); text-decoration: none; font-weight: 700; padding: .4rem .6rem; border-radius: 10px;
}
.kopf-konto:hover { color: var(--weiss); background: rgba(255, 255, 255, .12); }
.kopf-konto span { font-size: .9rem; }
@media (max-width: 26rem) { .kopf-konto span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Inhalt ---------- */
.inhalt { flex: 1; width: 100%; max-width: var(--breite); margin: 0 auto; padding: 1.5rem 1rem 2.5rem; outline: none; }
h1, h2, h3 { font-family: var(--titel); color: var(--nacht); line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-weight: 800; font-size: clamp(1.55rem, 5vw, 2rem); letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: 1.2rem; }
h1:focus { outline: none; }
p { margin: 0 0 1rem; }
.einleitung { font-size: 1.05rem; color: var(--text); }
.neben { color: var(--neben); }
.klein { font-size: .9rem; }

.karte { background: var(--weiss); border-radius: var(--rund); box-shadow: var(--schatten); padding: 1.25rem; margin: 0 0 1.25rem; }
.karte > :last-child { margin-bottom: 0; }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 1.1rem; }
.feld { display: grid; gap: .35rem; }
.feld > label, .feld-titel { font-weight: 700; }
.feld-hilfe { font-size: .9rem; color: var(--neben); }
.eingabe {
  width: 100%; min-height: 52px; padding: .75rem .9rem;
  font: inherit; font-size: 1.05rem; color: var(--text);
  background: var(--hellblau); border: 2px solid transparent; border-radius: var(--rund-klein);
}
.eingabe::placeholder { color: #6B7489; }
.eingabe:focus { outline: none; border-color: var(--blau); background: var(--weiss); }
.eingabe[aria-invalid="true"] { border-color: var(--rot); background: #FDF2F1; }
.eingabe-code { font-family: var(--titel); font-weight: 800; font-size: 1.5rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.eingabe-code::placeholder { font-family: var(--schrift); font-weight: 400; font-size: 1.05rem; letter-spacing: normal; text-transform: none; }
.feld-fehler { color: var(--rot-dunkel); font-weight: 700; font-size: .95rem; }
.feld-fehler::before { content: "! "; }

.haken { display: flex; align-items: center; gap: .7rem; min-height: 48px; cursor: pointer; font-weight: 400; }
.haken input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--blau); flex: none; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .7rem 1.4rem; width: 100%;
  font: inherit; font-family: var(--titel); font-weight: 700; font-size: 1.02rem; text-decoration: none; text-align: center;
  color: var(--weiss); background: var(--blau); border: 2px solid var(--blau); border-radius: var(--rund-klein);
  cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s;
}
.knopf:hover { background: var(--nacht); border-color: var(--nacht); color: var(--weiss); }
.knopf:active { transform: translateY(1px); }
.knopf[disabled], .knopf[aria-busy="true"] { opacity: .65; cursor: progress; }
.knopf-zweit { background: var(--weiss); color: var(--blau); }
.knopf-zweit:hover { background: var(--hellblau); color: var(--nacht); border-color: var(--blau); }
.knopf-gefahr { background: var(--weiss); color: var(--rot-dunkel); border-color: var(--rot); }
.knopf-gefahr:hover { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.knopf-text { background: none; border-color: transparent; color: var(--blau); width: auto; padding-inline: .5rem; }
.knopf-text:hover { background: var(--hellblau); border-color: transparent; color: var(--nacht); }
.knopfreihe { display: grid; gap: .75rem; }

.verweise { display: grid; gap: .25rem; justify-items: center; margin-top: 1.25rem; }
.verweise a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 .5rem; font-weight: 700; }

/* ---------- Meldungen ---------- */
.meldung { display: flex; gap: .6rem; align-items: flex-start; border-radius: var(--rund-klein); padding: .85rem 1rem; margin: 0 0 1.1rem; font-weight: 700; }
.meldung svg { flex: none; margin-top: .1rem; }
.meldung-fehler { background: #FBE9E8; color: #7F1D17; }
.meldung-ok { background: #E7F4E9; color: #1E5326; }
.meldung-info { background: var(--hellblau); color: var(--nacht); }

.kurs-hinweis { display: flex; gap: .75rem; align-items: center; background: var(--hellblau); border-radius: var(--rund-klein); padding: .8rem 1rem; margin-bottom: 1.25rem; }
.kurs-hinweis strong { font-family: var(--titel); color: var(--nacht); }

/* ---------- Willkommen ---------- */
.willkommen-faden { display: block; width: 100%; height: auto; margin: -.25rem 0 1rem; }
.willkommen-faden .faden-linie { fill: none; stroke: var(--rot); stroke-width: 4; stroke-linecap: round; }

/* ---------- Laden & Toast ---------- */
.laden { display: flex; align-items: center; gap: .6rem; color: var(--neben); padding: 2rem 0; justify-content: center; }
.laden-punkt { width: .8rem; height: .8rem; border-radius: 50%; background: var(--rot); animation: pulsieren 1s ease-in-out infinite alternate; }
@keyframes pulsieren { from { transform: scale(.6); opacity: .5; } to { transform: scale(1); opacity: 1; } }

.toast {
  position: fixed; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translate(-50%, 150%);
  max-width: calc(100% - 2rem); background: var(--nacht); color: var(--weiss); padding: .8rem 1.2rem; border-radius: 12px;
  font-weight: 700; box-shadow: 0 6px 24px rgba(0, 0, 0, .2); transition: transform .25s ease, visibility .25s; z-index: 30;
  visibility: hidden;
}
.toast.sichtbar { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Fuß ---------- */
.fuss {
  width: 100%; max-width: var(--breite); margin: 0 auto; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--neben); font-size: .9rem;
}
.fuss a { display: inline-flex; align-items: center; min-height: 48px; color: var(--neben); }
.logo-boehm { display: block; height: 36px; width: auto; }

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 48rem) {
  .inhalt { padding-top: 2.5rem; }
  .knopfreihe-quer { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =================================================================
   Meilenstein 3: Startseite, roter Faden, Lernen
   ================================================================= */
:root { --etappe-0: var(--nacht); --etappe-1: var(--gelb); --etappe-2: var(--cyan); --etappe-3: var(--gruen); --etappe-4: var(--rot); }

/* Kopf: aktuelle Etappe */
.kopf-unter { display: inline-flex; align-items: center; gap: .4rem; }
.kopf-punkt { width: .7rem; height: .7rem; border-radius: 50%; background: var(--farbe, transparent); flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.kopf-punkt[hidden] { display: none; }

/* Start */
.start-satz { font-size: 1.1rem; margin-bottom: 1.25rem; }
.start-knoepfe { display: grid; gap: .75rem; margin-bottom: 2rem; }
.knopf-gross { min-height: 64px; justify-content: space-between; text-align: left; padding: .8rem 1.1rem; font-size: 1.1rem; }
.knopf-gross .knopf-unter { display: block; font-family: var(--schrift); font-weight: 400; font-size: .9rem; opacity: .9; }
.knopf-gross svg { flex: none; }
.zahl-blase { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .5rem; border-radius: 999px; background: var(--rot); color: var(--weiss); font-family: var(--titel); font-weight: 800; font-size: .95rem; }
.zahl-blase.null { background: var(--hellblau); color: var(--nacht); }
.gesamt-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.gesamt-zeile h2 { margin: 0; }
.gesamt-zahl { color: var(--neben); font-size: .95rem; }

/* Der rote Faden */
.faden { position: relative; list-style: none; margin: 0 0 1rem; padding: .75rem 0 .75rem; }
.faden-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.faden-svg path { fill: none; stroke: var(--rot); stroke-width: 4; stroke-linecap: round; }
.station { position: relative; z-index: 1; margin: 0; }
.station a { display: flex; align-items: center; gap: .9rem; min-height: 72px; padding: .35rem .5rem .35rem 0; color: var(--text); text-decoration: none; border-radius: 14px; }
.station a:hover .station-titel { color: var(--blau); text-decoration: underline; }
.station:nth-child(4n+2) a { padding-left: 2.6rem; }
.station:nth-child(4n+3) a { padding-left: 4.4rem; }
.station:nth-child(4n+4) a { padding-left: 2.6rem; }
.station-kreis {
  position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%;
  background: conic-gradient(var(--farbe) var(--p, 0%), #DDE1E9 0);
  background: conic-gradient(var(--farbe) var(--p, 0%), color-mix(in srgb, var(--farbe) 28%, #E4E7ED) 0);
  display: grid; place-items: center; box-shadow: 0 2px 6px rgba(20,33,63,.12);
}
.station-kreis::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--weiss); }
.station-nr { position: relative; font-family: var(--titel); font-weight: 800; font-size: 1.05rem; color: var(--nacht); }
.station-nr.klein { font-size: .72rem; }
.station.komplett .station-kreis::before { background: var(--farbe); }
.station.komplett .station-nr { color: var(--nacht); }
.station.komplett[data-etappe="0"] .station-nr, .station.komplett[data-etappe="4"] .station-nr { color: var(--weiss); }
.station-haken { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--gruen-dunkel); color: var(--weiss); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--papier); }
.station-text { display: grid; line-height: 1.25; background: rgba(248,247,243,.92); border-radius: 8px; padding: .15rem .35rem; }
.station-etappe { font-size: .8rem; color: var(--neben); font-weight: 700; }
.station-titel { font-family: var(--titel); font-weight: 700; color: var(--nacht); }
.station-stand { font-size: .9rem; color: var(--neben); }
.station-hier { display: inline-block; margin-top: .15rem; font-size: .8rem; font-weight: 700; color: var(--rot-dunkel); }
.station[aria-current] .station-kreis { box-shadow: 0 0 0 4px var(--papier), 0 0 0 7px var(--rot); }

/* Themenwahl */
.themen-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.thema-karte { display: grid; gap: .45rem; padding: 1rem 1.1rem; background: var(--weiss); border-radius: var(--rund); box-shadow: var(--schatten); color: var(--text); text-decoration: none; min-height: 64px; border: 2px solid transparent; }
.thema-karte:hover { border-color: var(--blau); color: var(--text); }
.thema-kopf { display: flex; align-items: center; gap: .6rem; }
.thema-punkt { width: .9rem; height: .9rem; border-radius: 50%; background: var(--farbe); flex: none; }
.thema-name { font-family: var(--titel); font-weight: 700; color: var(--nacht); }
.balken { display: block; height: 8px; border-radius: 999px; background: #DDE1E9; overflow: hidden; }
.balken span { display: block; height: 100%; width: var(--p, 0%); background: var(--farbe, var(--blau)); border-radius: inherit; }

/* Fragebildschirm */
.frage-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -.5rem 0 .4rem; }
.frage-kopf a { display: inline-flex; align-items: center; gap: .35rem; min-height: 48px; font-weight: 700; color: var(--neben); text-decoration: none; }
.frage-kopf a:hover { color: var(--nacht); }
.frage-nr { font-family: var(--titel); font-weight: 700; color: var(--nacht); font-variant-numeric: tabular-nums; }
.frage-kopf + .balken { margin-bottom: 1.1rem; --farbe: var(--blau); }
.frage-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.etikett { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; border-radius: 999px; padding: .2rem .7rem; background: var(--hellblau); color: var(--nacht); }
.etikett .thema-punkt { width: .65rem; height: .65rem; }
.etikett-pruefung { background: var(--nacht); color: var(--weiss); }
.frage-text { font-size: 1.3rem; line-height: 1.35; margin-bottom: 1rem; }
.frage-hinweis { font-weight: 700; color: var(--blau); margin: -.25rem 0 .75rem; }
.antworten { border: 0; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .65rem; }
.antwort {
  position: relative; display: flex; align-items: flex-start; gap: .8rem; min-height: 56px; padding: .85rem 1rem;
  background: var(--weiss); border: 2px solid var(--linie); border-radius: var(--rund); cursor: pointer; box-shadow: var(--schatten);
  transition: border-color .12s, background-color .12s;
}
.antwort:hover { border-color: var(--blau); }
.antwort input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.antwort-marke { flex: none; width: 1.6rem; height: 1.6rem; margin-top: .05rem; border: 2px solid var(--neben); background: var(--weiss); display: grid; place-items: center; color: var(--weiss); }
.antwort-marke.rund { border-radius: 50%; }
.antwort-marke.eckig { border-radius: 6px; }
.antwort-text { flex: 1; }
.antwort:has(input:checked) { border-color: var(--blau); background: var(--hellblau); }
.antwort input:checked + .antwort-marke { background: var(--blau); border-color: var(--blau); }
.antwort input:checked + .antwort-marke.rund::after { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--weiss); }
.antwort input:checked + .antwort-marke.eckig::after { content: ""; width: .45rem; height: .8rem; border: solid var(--weiss); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.antwort:has(input:focus-visible) { outline: 3px solid var(--blau); outline-offset: 3px; }
.antwort-urteil { display: none; font-size: .88rem; font-weight: 700; margin-top: .3rem; }
.antworten.ausgewertet .antwort { cursor: default; box-shadow: none; }
.antworten.ausgewertet .antwort:hover { border-color: var(--linie); }
.antwort.ist-richtig { border-color: var(--gruen-dunkel) !important; background: #EEF8F0 !important; }
.antwort.falsch-gewaehlt { border-color: var(--rot) !important; background: #FDF0EF !important; }
.antwort.ist-richtig .antwort-urteil { display: flex; color: var(--gruen-dunkel); }
.antwort.falsch-gewaehlt .antwort-urteil { display: flex; color: var(--rot-dunkel); }
.antwort .antwort-urteil svg { width: 18px; height: 18px; margin-right: .3rem; }
.antwort.ist-richtig input + .antwort-marke { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
.antwort.falsch-gewaehlt input + .antwort-marke { background: var(--rot); border-color: var(--rot); }
.antwort-inhalt { flex: 1; display: grid; }

.stichworte { width: 100%; min-height: 7rem; resize: vertical; }
.loesung { background: var(--hellblau); border-radius: var(--rund); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.loesung h2 { font-size: 1rem; margin-bottom: .35rem; }
.loesung p { white-space: pre-line; margin-bottom: .5rem; }
.selbst-frage { font-family: var(--titel); font-weight: 700; color: var(--nacht); margin-bottom: .6rem; }
.knopf-wusste { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); }
.knopf-wusste:hover { background: #1F5A28; border-color: #1F5A28; }

.rueckmeldung { border-radius: var(--rund); padding: 1rem 1.1rem; margin-bottom: 1rem; background: var(--weiss); box-shadow: var(--schatten); border: 2px solid var(--linie); }
.rueckmeldung-titel { display: flex; align-items: center; gap: .5rem; font-family: var(--titel); font-weight: 800; font-size: 1.2rem; margin: 0 0 .4rem; }
.rueckmeldung.richtig { border-color: var(--gruen-dunkel); }
.rueckmeldung.richtig .rueckmeldung-titel { color: var(--gruen-dunkel); }
.rueckmeldung.falsch { border-color: var(--rot); }
.rueckmeldung.falsch .rueckmeldung-titel { color: var(--rot-dunkel); }
.rueckmeldung p { margin-bottom: .5rem; }
.quelle { font-size: .9rem; color: var(--neben); }
.serie { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .95rem; margin-bottom: .5rem; }
.serie-punkte { display: inline-flex; gap: .3rem; }
.serie-punkte span { width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--gruen-dunkel); }
.serie-punkte span.voll { background: var(--gruen-dunkel); }
.erfolg { display: flex; gap: .6rem; align-items: center; background: #FFF6D6; color: var(--nacht); border-radius: var(--rund-klein); padding: .75rem 1rem; font-family: var(--titel); font-weight: 700; margin-bottom: 1rem; }

/* Rundenende & leere Zustände */
.bilanz { text-align: center; padding: 1.5rem 1.1rem; }
.bilanz-zahl { font-family: var(--titel); font-weight: 800; font-size: 2.6rem; color: var(--nacht); line-height: 1.1; margin: .25rem 0; }
.leer-zustand { text-align: center; padding: 2rem 1rem; }
.leer-zustand svg { margin-bottom: .5rem; }

@media (min-width: 48rem) {
  .start-knoepfe { grid-template-columns: 1fr 1fr; }
  .start-knoepfe .knopf-gross:first-child { grid-column: 1 / -1; }
  .station:nth-child(4n+2) a { padding-left: 5rem; }
  .station:nth-child(4n+3) a { padding-left: 9rem; }
  .station:nth-child(4n+4) a { padding-left: 5rem; }
}
#stichwort-feld { margin-bottom: 1rem; }
.loesung ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
.loesung li { margin: .15rem 0; }

/* =================================================================
   Meilenstein 4: Prüfungssimulation
   ================================================================= */
.regeln { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.regeln li { margin: .35rem 0; }
.verlauf { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.verlauf a { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; min-height: 56px; padding: .6rem 1rem; background: var(--weiss); border-radius: var(--rund-klein); box-shadow: var(--schatten); color: var(--text); text-decoration: none; border: 2px solid transparent; }
.verlauf a:hover { border-color: var(--blau); color: var(--text); }
.verlauf-datum { color: var(--neben); }
.verlauf-punkte { font-family: var(--titel); font-weight: 800; color: var(--nacht); margin-right: auto; }
.etikett svg { width: 18px; height: 18px; }
.etikett-ok { background: #E7F4E9; color: var(--gruen-dunkel); }
.etikett-nein { background: #FBE9E8; color: var(--rot-dunkel); }

.pruef-leiste { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin: -1.5rem -1rem 1rem; padding: .6rem 1rem; background: var(--papier); border-bottom: 1px solid var(--linie); }
.pruef-uhr { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--titel); font-weight: 800; font-size: 1.25rem; color: var(--nacht); font-variant-numeric: tabular-nums; padding: .25rem .7rem; border-radius: 999px; background: var(--hellblau); }
.pruef-uhr.knapp { background: #FBE9E8; color: var(--rot-dunkel); }
.pruef-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.25rem 0 1rem; }
.pruef-nav .knopf { width: 100%; }
.pruef-nav #vor[hidden] + * { grid-column: 1 / -1; }
.pruef-uebersicht summary { cursor: pointer; font-family: var(--titel); font-weight: 700; color: var(--nacht); min-height: 48px; display: flex; align-items: center; }
.pruef-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: .45rem; margin: .5rem 0 .75rem; }
.raster-feld { width: 100%; min-height: 48px; border-radius: 10px; border: 2px solid var(--linie); background: var(--weiss); font: inherit; font-family: var(--titel); font-weight: 700; color: var(--nacht); cursor: pointer; }
.raster-feld:hover { border-color: var(--blau); }
.raster-fertig { background: var(--blau); border-color: var(--blau); color: var(--weiss); }
.raster-offen { border-style: dashed; border-color: var(--neben); }
.raster-feld[aria-current] { box-shadow: 0 0 0 3px var(--papier), 0 0 0 5px var(--rot); }
.knopf-abgeben { background: var(--nacht); border-color: var(--nacht); margin-top: .25rem; }

.einschaetzung h2 { font-size: 1.1rem; }
.loesung h3, .loesung h4 { font-size: 1rem; margin: 0 0 .35rem; font-family: var(--titel); color: var(--nacht); }
.notiz { border: 2px dashed var(--linie); border-radius: var(--rund-klein); padding: .6rem .9rem; margin-bottom: .75rem; }
.notiz p { margin: 0; white-space: pre-line; }
.wahl { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.wahl legend { padding: 0; margin-bottom: .5rem; }
.wahl-karte { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 52px; padding: .5rem; border: 2px solid var(--linie); border-radius: var(--rund-klein); background: var(--weiss); font-weight: 700; cursor: pointer; text-align: center; }
.wahl-karte input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl-karte:has(input[value="1"]:checked) { border-color: var(--gruen-dunkel); background: #EEF8F0; color: var(--gruen-dunkel); }
.wahl-karte:has(input[value="0"]:checked) { border-color: var(--rot); background: #FDF0EF; color: var(--rot-dunkel); }
.wahl-karte:has(input:focus-visible) { outline: 3px solid var(--blau); outline-offset: 3px; }

.ergebnis { text-align: center; border: 3px solid var(--linie); }
.ergebnis-ok { border-color: var(--gruen-dunkel); }
.ergebnis-nein { border-color: var(--rot); }
.ergebnis-urteil { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--titel); font-weight: 800; font-size: 1.6rem; margin: 0; }
.ergebnis-urteil svg { width: 30px; height: 30px; }
.ergebnis-ok .ergebnis-urteil { color: var(--gruen-dunkel); }
.ergebnis-nein .ergebnis-urteil { color: var(--rot-dunkel); }
.themen-auswertung { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.thema-zeile { display: flex; align-items: center; gap: .55rem; margin-bottom: .3rem; }
.thema-zeile strong { white-space: nowrap; margin-left: auto; font-family: var(--titel); color: var(--nacht); font-variant-numeric: tabular-nums; }
.falsch-frage h3 { font-size: 1.05rem; }
.antworten-statisch { list-style: none; padding: 0; }
.antworten-statisch .antwort { cursor: default; box-shadow: none; min-height: 0; }
.antworten-statisch .antwort:hover { border-color: var(--linie); }
.pruef-uebersicht summary { list-style: none; gap: .5rem; }
.pruef-uebersicht summary::-webkit-details-marker { display: none; }
.pruef-uebersicht summary::after { content: ""; margin-left: auto; width: .6rem; height: .6rem; border: solid var(--nacht); border-width: 0 3px 3px 0; transform: rotate(45deg); transition: transform .15s; flex: none; }
.pruef-uebersicht[open] summary::after { transform: rotate(-135deg); }

/* =================================================================
   Meilenstein 5: Barrierefreiheit – Mindestschrift 17 px, Kontraste
   ================================================================= */
.eingabe::placeholder { color: var(--neben); }
.klein, .feld-hilfe, .quelle, .station-etappe, .station-stand, .station-hier, .etikett,
.gesamt-zahl, .kopf-unter, .kopf-konto span, .fuss, .fuss a, .frage-kopf a, .verlauf-datum,
.knopf-gross .knopf-unter, .neben.klein, .feld-fehler, .zahl-blase { font-size: 1rem; }
.etikett { padding: .15rem .65rem; }
.station-etappe { line-height: 1.2; }
/* Fokus auch auf dunklem Grund und auf Karten deutlich */
.knopf:focus-visible { outline: 3px solid var(--nacht); outline-offset: 3px; }
.knopf-abgeben:focus-visible, .kopf :focus-visible { outline-color: var(--gelb); }
.thema-karte:focus-visible, .verlauf a:focus-visible, .station a:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
.raster-feld:focus-visible { outline: 3px solid var(--nacht); outline-offset: 2px; }

.fuss-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
