/* Theorie-Check für die bestehende Website (helles Design).
   Eigenständig: definiert Farben, Schrift und Knöpfe selbst, damit nichts
   mit den übrigen Seiten kollidiert. */
.tc-seite {
  --hintergrund: #f6f4f0; --flaeche: #ffffff; --flaeche-2: #f6f4f0;
  --text: #161616; --text-2: #5c5b57; --text-3: #8a8882;
  --akzent: #dc1e24; --akzent-hell: #dc1e24; --akzent-dunkel: #a3151a;
  --linie: #e4e1da; --linie-stark: #d6d2c9;
  --radius: 16px; --radius-klein: 10px; --uebergang: 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
  font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--hintergrund); line-height: 1.55;
}
.tc-seite .innen { width: min(100% - 2 * clamp(16px, 4vw, 40px), 1180px); margin-inline: auto; }
.tc-seite h1, .tc-seite h2, .tc-seite h3 { line-height: 1.08; letter-spacing: -0.025em; font-weight: 750; text-wrap: balance; }
.tc-seite h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; }
.tc-seite .vorzeile { margin: 0 0 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--akzent); }
.tc-seite .unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc-seite .knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font: 700 0.95rem/1.2 Figtree, system-ui, sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background var(--uebergang), border-color var(--uebergang), transform var(--uebergang); }
.tc-seite .knopf-klein { min-height: 42px; padding: 0 18px; }
.tc-seite .knopf-haupt { color: #fff; background: var(--akzent); }
.tc-seite .knopf-haupt:hover { background: #c0181e; }
.tc-seite .knopf-glas { color: var(--text); background: #fff; border-color: var(--linie-stark); }
.tc-seite .knopf-glas:hover { border-color: var(--text); }
.tc-seite :is(a, button, input):focus-visible { outline: 3px solid #a4111c; outline-offset: 3px; }
/* Theorie-Check – baut auf css/style.css auf (Farben, Schrift, Knöpfe).
   Aufbau: schmale Spalte wie ein Prüfungsbildschirm, Bild neben der Frage ab Tablet-Breite. */
.tc-seite { padding-top: 32px; padding-bottom: 72px; min-height: 80vh; }
.tc-innen { max-width: 980px; }
.tc-hinweis { color: var(--text-2); }

/* Start */
.tc-held { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: 24px 36px; }
.tc-held h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
.tc-held h1 span { color: var(--akzent-hell); }
.tc-lead { margin-top: 16px; color: var(--text-2); font-size: 1.1rem; max-width: 46ch; }
.tc-schilder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 360px; justify-self: end; }
.tc-schilder svg { width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18)); }
.tc-schilder svg:nth-child(2) { transform: translateY(18px) rotate(4deg); }
.tc-schilder svg:nth-child(4) { transform: translateY(-6px) rotate(-5deg); }

.tc-modi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tc-modus {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 22px; border-radius: var(--radius); cursor: pointer; font: inherit; color: var(--text);
  background: var(--flaeche); border: 1px solid var(--linie-stark);
  transition: border-color var(--uebergang), transform var(--uebergang);
}
.tc-modus:hover { border-color: var(--akzent); transform: translateY(-2px); }
.tc-modus strong { font-size: 1.35rem; letter-spacing: -0.01em; }
.tc-modus span { color: var(--text-2); font-size: 0.95rem; }
.tc-modus-haupt { background: linear-gradient(160deg, rgba(220, 30, 36, 0.28), rgba(220, 30, 36, 0.06) 60%), var(--flaeche); border-color: rgba(220, 30, 36, 0.55); }

.tc-themen { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tc-themen-titel { color: var(--text-2); font-size: 0.9rem; margin-right: 4px; }
.tc-chip {
  padding: 7px 13px; border-radius: 999px; font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  color: var(--text); background: rgba(22, 22, 22, 0.04); border: 1px solid var(--linie-stark);
}
.tc-chip:hover { border-color: var(--akzent-hell); }
.tc-chip small { color: var(--text-3); margin-left: 4px; font-variant-numeric: tabular-nums; }

.tc-zwei { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 36px; align-items: start; }
.tc-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px; min-width: 0; }
.tc-karte h2 { font-size: 1.3rem; margin-bottom: 12px; }
.tc-regeln { display: grid; gap: 8px; color: var(--text-2); }
.tc-regeln li { padding-left: 18px; position: relative; }
.tc-regeln li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--akzent); }
.tc-statistik { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--text-2); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.tc-statistik b { color: var(--text); }

/* Rangliste */
.tc-rang { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tc-rang th { text-align: left; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 0 8px 8px; font-weight: 700; }
.tc-rang td { padding: 9px 8px; border-top: 1px solid var(--linie); }
.tc-rang td:first-child { width: 2.2em; color: var(--text-2); font-weight: 700; }
.tc-rang td.tc-name { font-weight: 600; overflow-wrap: anywhere; }
.tc-rang td.tc-rz { text-align: right; white-space: nowrap; color: var(--text-2); }
.tc-rang th.tc-rz { text-align: right; }
.tc-rang tr.tc-ich td { background: rgba(220, 30, 36, 0.14); }
.tc-rang tr:nth-child(1) td:first-child { color: #ffc93c; }
.tc-leer { color: var(--text-2); font-size: 0.95rem; }
.tc-rang-hinweis { margin-top: 10px; font-size: 0.82rem; color: var(--text-3); }

/* Frage */
.tc-frage { display: grid; gap: 18px; }
.tc-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tc-nummer { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tc-marke { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--linie-stark); color: var(--text-2); }
.tc-marke-punkte { color: var(--text); border-color: rgba(22, 22, 22, 0.4); }
.tc-marke-fuenf { color: #fff; background: var(--akzent); border-color: var(--akzent); }
.tc-luecke { flex: 1; }
.tc-uhr { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; padding: 3px 12px; border-radius: 8px; border: 1px solid var(--linie-stark); }
.tc-uhr.tc-knapp { color: var(--akzent-hell); border-color: var(--akzent); }
.tc-balken { height: 4px; border-radius: 2px; background: rgba(22, 22, 22, 0.07); overflow: hidden; }
.tc-balken i { display: block; height: 100%; background: var(--akzent); transition: width 240ms ease; }

.tc-buehne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.tc-bild { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px; }
.tc-bild svg { width: 100%; height: auto; border-radius: 10px; }
.tc-bild svg.tb-zeichen { width: min(62%, 220px); border-radius: 0; padding: 12px 0; }
.tc-bild svg.tb-quadrat { width: min(100%, 380px); }
.tc-bild figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 0.85rem; color: var(--text-2); }
.tb-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.tc-text { display: grid; gap: 14px; min-width: 0; }
.tc-fragetext { font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.3; }
.tc-tipp { color: var(--text-3); font-size: 0.88rem; }

.tc-antworten { display: grid; gap: 10px; }
.tc-antwort {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 58px;
  padding: 12px 14px; border-radius: 12px; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--flaeche-2); border: 1px solid var(--linie-stark); transition: border-color var(--uebergang), background var(--uebergang);
}
.tc-antwort:hover { border-color: rgba(22, 22, 22, 0.35); }
.tc-kasten { width: 36px; height: 36px; border-radius: 8px; border: 2px solid rgba(22, 22, 22, 0.45); display: grid; place-items: center; font-weight: 800; color: var(--text-2); }
.tc-antwort[aria-checked="true"] { border-color: var(--akzent-hell); background: rgba(220, 30, 36, 0.12); }
.tc-antwort[aria-checked="true"] .tc-kasten { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.tc-antwort .tc-urteil { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.tc-antwort.tc-richtig { border-color: #35c26b; background: rgba(53, 194, 107, 0.12); }
.tc-antwort.tc-richtig .tc-urteil { color: #1b7a3a; }
.tc-antwort.tc-falsch { border-color: var(--akzent-hell); background: rgba(220, 30, 36, 0.14); }
.tc-antwort.tc-falsch .tc-urteil { color: var(--akzent-hell); }
.tc-antwort[disabled] { cursor: default; }

.tc-zahl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tc-zahl label { color: var(--text-2); }
.tc-zahl input {
  width: 8ch; font: inherit; font-size: 1.6rem; font-weight: 800; padding: 8px 12px; border-radius: 10px;
  background: var(--flaeche-2); color: var(--text); border: 1px solid rgba(22, 22, 22, 0.4); font-variant-numeric: tabular-nums;
}
.tc-zahl .tc-einheit { font-size: 1.3rem; font-weight: 700; }
.tc-zahl input.tc-richtig { border-color: #35c26b; }
.tc-zahl input.tc-falsch { border-color: var(--akzent-hell); }

.tc-rueckmeldung { padding: 14px 16px; border-radius: 12px; border-left: 4px solid #35c26b; background: rgba(53, 194, 107, 0.1); }
.tc-rueckmeldung.tc-nein { border-left-color: var(--akzent-hell); background: rgba(220, 30, 36, 0.1); }
.tc-rueckmeldung strong { display: block; font-size: 1.1rem; margin-bottom: 2px; }
.tc-rueckmeldung p { color: var(--text-2); }

.tc-leiste { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tc-leiste .tc-luecke { flex: 1; }
.knopf-leer { color: var(--text); background: transparent; border: 1px solid var(--linie-stark); }
.knopf-leer:hover { border-color: rgba(22, 22, 22, 0.4); }
.knopf[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

.tc-uebersicht { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--flaeche); }
.tc-raster { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.tc-feld { aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--linie-stark); background: transparent; color: var(--text-2); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; }
.tc-feld.tc-erledigt { background: var(--text); color: #fff; border-color: transparent; }
.tc-feld.tc-jetzt { outline: 2px solid var(--akzent-hell); outline-offset: 1px; }
.tc-legende { font-size: 0.82rem; color: var(--text-3); }
.tc-abgabe { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius-klein); border: 1px solid var(--akzent); background: rgba(220, 30, 36, 0.1); }
.tc-abgabe p { font-weight: 600; }

/* Ergebnis */
.tc-urteilband { padding: clamp(22px, 4vw, 34px); border-radius: var(--radius); background: linear-gradient(135deg, var(--akzent-hell), var(--akzent-dunkel)); }
.tc-urteilband.tc-bestanden { background: linear-gradient(135deg, #2fb565, #17703d); }
.tc-urteilband h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.tc-urteilband p { margin-top: 8px; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.tc-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.tc-zahlfeld { padding: 14px 16px; border-radius: var(--radius-klein); background: var(--flaeche); border: 1px solid var(--linie); min-width: 0; }
.tc-zahlfeld b { display: block; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tc-zahlfeld span { font-size: 0.82rem; color: var(--text-2); }
.tc-skala { margin-top: 14px; }
.tc-skala-spur { position: relative; height: 12px; border-radius: 6px; background: rgba(22, 22, 22, 0.07); overflow: hidden; }
.tc-skala-wert { height: 100%; background: var(--text); }
.tc-skala-wert.tc-ueber { background: var(--akzent-hell); }
.tc-skala-grenze { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--akzent-hell); }
.tc-skala-zahlen { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tc-eintrag { display: grid; gap: 10px; }
.tc-eintrag form { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-eintrag input {
  flex: 1 1 180px; min-width: 0; font: inherit; padding: 12px 14px; border-radius: 999px; color: var(--text);
  background: var(--flaeche-2); border: 1px solid var(--linie-stark);
}
.tc-eintrag .tc-status { font-size: 0.9rem; color: var(--text-2); }
.tc-fehlerliste { display: grid; gap: 10px; }
.tc-fehler { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; border-radius: var(--radius-klein); background: var(--flaeche); border: 1px solid var(--linie); }
.tc-fehler .tc-mini svg { width: 100%; height: auto; border-radius: 6px; }
.tc-fehler .tc-mini svg.tb-zeichen { width: 70%; margin: 0 auto; display: block; }
.tc-fehler-text { display: grid; gap: 6px; }
.tc-fehler-text .tc-f { font-weight: 700; }
.tc-fehler-text .tc-gegeben { color: var(--text-2); font-size: 0.92rem; }
.tc-fehler-text .tc-loesung { font-size: 0.92rem; }
.tc-fehler-text .tc-loesung em { font-style: normal; color: #1b7a3a; font-weight: 700; }
.tc-fehler-text .tc-warum { color: var(--text-3); font-size: 0.9rem; }
.tc-abschnitt { font-size: 1.4rem; margin: 36px 0 14px; }
.tc-aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

@media (max-width: 860px) {
  .tc-buehne { grid-template-columns: 1fr; }
  .tc-zwei { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tc-held { grid-template-columns: 1fr; }
  .tc-schilder { justify-self: start; max-width: 260px; order: -1; }
  .tc-modi { grid-template-columns: 1fr; }
  .tc-raster { grid-template-columns: repeat(6, 1fr); }
  .tc-zahlfeld b { font-size: 1.5rem; }
  .tc-fehler { grid-template-columns: 1fr; }
  .tc-fehler .tc-mini { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-modus, .tc-balken i { transition: none; }
}
.tc-seite .knopf-leer { color: var(--text); background: transparent; border-color: var(--linie-stark); }
.tc-seite .knopf-leer:hover { border-color: var(--text); }
.tc-seite .knopf[disabled] { opacity: 0.45; cursor: not-allowed; }

.tc-eins { margin-top: 36px; max-width: 680px; }
