/* Testcenter – Player und Lernbereich. Alles unter .tc-test bzw. .tc-lb, damit das Theme unberührt bleibt. */

.tc-test, .tc-lb, .tc-konto {
	/* Farben je Portal über die Option tc_design (als --tcd-*), sonst neutrale Vorgaben. */
	--tc-primaer: var(--tcd-primaer, #0c2b4b);
	--tc-primaer-h: var(--tcd-primaer-h, #163f6b);
	--tc-akzent: var(--tcd-akzent, #5fd38a);
	--tc-link: var(--tcd-link, #1d4f91);
	--tc-richtig: var(--tcd-richtig, #0a7a2f);
	--tc-richtig-bg: var(--tcd-richtig-bg, #e8f5ec);
	--tc-falsch: var(--tcd-falsch, #c62a1f);
	--tc-falsch-bg: var(--tcd-falsch-bg, #fdecea);
	--tc-rand: var(--tcd-rand, #d7dde4);
	--tc-flaeche: var(--tcd-flaeche, #f5f7fa);
	--tc-text: var(--tcd-text, #1d2733);
	--tc-leise: var(--tcd-leise, #5b6775);
	--tc-radius: var(--tcd-radius, 10px);
	color: var(--tc-text);
}
.tc-lb { font-family: var(--tcd-schrift, inherit); }

/* ---------- Knöpfe ---------- */
.tc-knopf {
	display: inline-flex; align-items: center; justify-content: center; gap: .45em;
	min-height: 46px; padding: .6em 1.25em; border: 1px solid var(--tc-rand); border-radius: calc(var(--tc-radius) - 2px);
	background: #fff; color: var(--tc-primaer); font: inherit; font-weight: 650; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.tc-knopf:hover { background: var(--tc-flaeche); border-color: color-mix(in srgb, var(--tc-primaer) 35%, var(--tc-rand)); }
.tc-knopf:active { transform: translateY(1px); }
.tc-knopf:focus-visible, .tc-test button:focus-visible, .tc-test input:focus-visible, .tc-test select:focus-visible, .tc-test textarea:focus-visible, .tc-lb a:focus-visible, .tc-lb button:focus-visible, .tc-konto a:focus-visible { outline: 3px solid color-mix(in srgb, var(--tc-akzent) 80%, #fff); outline-offset: 2px; }
.tc-knopf-haupt { background: var(--tc-primaer); border-color: var(--tc-primaer); color: #fff; box-shadow: 0 1px 2px rgba(15, 24, 38, .12), 0 4px 12px color-mix(in srgb, var(--tc-primaer) 22%, transparent); }
.tc-knopf-haupt:hover { background: var(--tc-primaer-h); border-color: var(--tc-primaer-h); color: #fff; }
.tc-knopf[disabled] { opacity: .55; cursor: default; }
.tc-knopf-pfeil::after { content: "→"; font-weight: 700; transition: transform .15s; }
.tc-knopf-pfeil:hover::after { transform: translateX(3px); }

/* ---------- Test ---------- */
.tc-test { position: relative; margin: 1.5em 0; padding: clamp(1.1em, 3vw, 1.75em); border: 1px solid var(--tc-rand); border-radius: calc(var(--tc-radius) + 4px); background: #fff; box-shadow: 0 1px 2px rgba(15, 24, 38, .05), 0 8px 28px rgba(15, 24, 38, .07); scroll-margin-top: 90px; }
.tc-test *, .tc-test *::before, .tc-test *::after { box-sizing: border-box; }
.tc-test::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: calc(var(--tc-radius) + 4px) calc(var(--tc-radius) + 4px) 0 0; background: linear-gradient(90deg, var(--tc-primaer), color-mix(in srgb, var(--tc-primaer) 55%, var(--tc-akzent))); }

/* Startkarte */
.tc-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1em 1.5em; }
.tc-start-text { flex: 1 1 320px; min-width: 0; }
.tc-start-titel { margin: 0 0 .5em; font-size: 1.15em; font-weight: 750; line-height: 1.3; color: var(--tc-text); }
.tc-start-info { margin: 0; color: var(--tc-leise); }
.tc-start-fakten { display: flex; flex-wrap: wrap; gap: .45em; margin: 0; padding: 0; list-style: none; }
.tc-start-fakten li { display: inline-block; margin: 0; padding: .35em .8em; border-radius: 999px; background: var(--tc-flaeche); color: var(--tc-text); font-size: .9em; line-height: 1.3; }
.tc-start-fakten li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 .45em .15em 0; border-radius: 50%; background: var(--tc-akzent); vertical-align: middle; }
.tc-start-fakten strong { font-weight: 750; }
.tc-start .tc-knopf-haupt { min-width: 190px; min-height: 52px; font-size: 1.05em; }
.tc-meldung { margin: .9em 0 0; padding: .7em .9em; border-radius: 8px; background: var(--tc-falsch-bg); color: var(--tc-falsch); }

/* Kopf mit Fortschritt */
.tc-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4em 1em; margin-bottom: .9em; font-size: .92em; color: var(--tc-leise); }
.tc-zaehler { font-weight: 650; color: var(--tc-text); font-variant-numeric: tabular-nums; }
.tc-zaehler span { font-weight: 400; color: var(--tc-leise); }
.tc-fortschritt { flex-basis: 100%; order: 3; height: 6px; border-radius: 999px; background: var(--tc-flaeche); overflow: hidden; }
.tc-fortschritt span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--tc-primaer); transition: width .3s ease; }
.tc-uhr { display: inline-flex; align-items: center; gap: .35em; padding: .2em .65em; border-radius: 999px; background: var(--tc-flaeche); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--tc-primaer); }
.tc-uhr::before { content: ""; width: .85em; height: .85em; border: 2px solid currentColor; border-radius: 50%; }
.tc-uhr.knapp { background: var(--tc-falsch-bg); color: var(--tc-falsch); }

/* Fragenübersicht */
.tc-leiste { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 1.4em; padding: 0 0 1.1em; list-style: none; border-bottom: 1px solid var(--tc-rand); }
.tc-leiste li { margin: 0; padding: 0; list-style: none; }
.tc-leiste li::before, .tc-leiste li::marker { content: none; }
.tc-leiste button { width: 34px; height: 34px; border: 1px solid var(--tc-rand); border-radius: 8px; background: #fff; color: var(--tc-leise); font: inherit; font-size: .85em; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; transition: border-color .15s, background-color .15s; }
.tc-leiste button:hover { border-color: var(--tc-primaer); color: var(--tc-primaer); }
.tc-leiste button.ist-beantwortet { background: color-mix(in srgb, var(--tc-primaer) 10%, #fff); border-color: color-mix(in srgb, var(--tc-primaer) 30%, #fff); color: var(--tc-primaer); }
.tc-leiste button.ist-richtig { background: var(--tc-richtig-bg); border-color: var(--tc-richtig); color: var(--tc-richtig); }
.tc-leiste button.ist-falsch { background: var(--tc-falsch-bg); border-color: var(--tc-falsch); color: var(--tc-falsch); }
.tc-leiste button[aria-current] { background: var(--tc-primaer); border-color: var(--tc-primaer); color: #fff; font-weight: 700; }

/* Frage */
.tc-frage-text { font-size: 1.12em; font-weight: 650; line-height: 1.5; margin-bottom: 1.1em; color: var(--tc-text); }
.tc-frage-text p { margin: 0 0 .6em; }
.tc-frage-text p:last-child { margin-bottom: 0; }
.tc-frage-text img, .tc-option-text img, .tc-sortier-text img { max-width: 100%; height: auto; border-radius: 6px; }
.tc-frage-text table, .tc-erklaerung table, .tc-lb-inhalt table { display: block; max-width: 100%; overflow-x: auto; }
.tc-frage audio, .tc-frage video { width: 100%; max-width: 100%; }

/* Antwortkarten: Buchstabe statt Kreis, die echte Eingabe bleibt für Tastatur und Screenreader da. */
.tc-optionen { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: tc-opt; }
.tc-option { margin: 0; padding: 0; list-style: none; counter-increment: tc-opt; }
.tc-option::before, .tc-option::marker { content: none; }
.tc-option label { position: relative; display: flex; gap: .85em; align-items: center; min-height: 54px; padding: .7em 1em .7em .8em; border: 1.5px solid var(--tc-rand); border-radius: var(--tc-radius); cursor: pointer; background: #fff; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.tc-option label::before { content: counter(tc-opt, upper-alpha); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 1.5px solid var(--tc-rand); border-radius: 50%; background: var(--tc-flaeche); color: var(--tc-leise); font-weight: 700; font-size: .9em; transition: inherit; }
.tc-typ-mehrfach .tc-option label::before { border-radius: 8px; }
.tc-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tc-option label:hover { border-color: color-mix(in srgb, var(--tc-primaer) 45%, var(--tc-rand)); background: color-mix(in srgb, var(--tc-primaer) 3%, #fff); }
.tc-option label:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--tc-akzent) 80%, #fff); outline-offset: 2px; }
.tc-option label:has(input:checked) { border-color: var(--tc-primaer); background: color-mix(in srgb, var(--tc-primaer) 6%, #fff); box-shadow: 0 0 0 1px var(--tc-primaer); }
.tc-option label:has(input:checked)::before { background: var(--tc-primaer); border-color: var(--tc-primaer); color: #fff; }
.tc-typ-mehrfach .tc-option label:has(input:checked)::before { content: "✓"; }
.tc-option-text { flex: 1; min-width: 0; }
.tc-option-text p { margin: 0; }
.tc-option.ist-richtig label { border-color: var(--tc-richtig); background: var(--tc-richtig-bg); box-shadow: none; }
.tc-option.ist-richtig label::before { content: "✓"; background: var(--tc-richtig); border-color: var(--tc-richtig); color: #fff; }
.tc-option.ist-falsch label { border-color: var(--tc-falsch); background: var(--tc-falsch-bg); box-shadow: none; }
.tc-option.ist-falsch label::before { content: "✕"; background: var(--tc-falsch); border-color: var(--tc-falsch); color: #fff; }
.tc-option input:disabled + .tc-option-text { color: var(--tc-text); }
.tc-option label:has(input:disabled) { cursor: default; }

.tc-hinweis { margin: 0 0 .7em; font-size: .9em; color: var(--tc-leise); }

.tc-sortier { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tc-sortier-el { display: flex; align-items: center; gap: .6em; margin: 0; padding: .55em .7em; border: 1.5px solid var(--tc-rand); border-radius: var(--tc-radius); background: #fff; cursor: grab; list-style: none; transition: border-color .15s, box-shadow .15s; }
.tc-sortier-el::before, .tc-sortier-el::marker { content: none; }
.tc-sortier-el:hover { border-color: color-mix(in srgb, var(--tc-primaer) 45%, var(--tc-rand)); }
.tc-sortier-el.zieht { opacity: .5; }
.tc-sortier-griff { color: #9aa6b2; letter-spacing: -2px; }
.tc-sortier-text { flex: 1; }
.tc-sortier-text p { margin: 0; }
.tc-sortier-k { width: 36px; height: 36px; border: 1px solid var(--tc-rand); border-radius: 8px; background: var(--tc-flaeche); cursor: pointer; font-size: 1em; padding: 0; }
.tc-sortier-el.ist-richtig { border-color: var(--tc-richtig); background: var(--tc-richtig-bg); }
.tc-sortier-el.ist-falsch { border-color: var(--tc-falsch); background: var(--tc-falsch-bg); }

.tc-zuordnung { display: grid; gap: 10px; }
.tc-zu-zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .7em; align-items: center; padding: .6em .75em; border: 1.5px solid var(--tc-rand); border-radius: var(--tc-radius); }
.tc-zu-krit { font-weight: 600; }
.tc-zu-krit p { margin: 0; }
.tc-zu-wahl, .tc-eingabe, .tc-freitext, .tc-luecke { font: inherit; border: 1.5px solid #aab6c3; border-radius: 8px; padding: .5em .7em; background: #fff; color: var(--tc-text); max-width: 100%; transition: border-color .15s, box-shadow .15s; }
.tc-zu-wahl:focus, .tc-eingabe:focus, .tc-freitext:focus, .tc-luecke:focus { border-color: var(--tc-primaer); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc-primaer) 15%, transparent); outline: none; }
.tc-zu-wahl { width: 100%; min-height: 46px; }
.tc-zu-zeile.ist-richtig { border-color: var(--tc-richtig); background: var(--tc-richtig-bg); }
.tc-zu-zeile.ist-falsch { border-color: var(--tc-falsch); background: var(--tc-falsch-bg); }
.tc-zu-zeile .tc-loesung-inline { grid-column: 1 / -1; }

.tc-lueckentext { line-height: 2.5; font-size: 1.05em; }
.tc-luecke { width: 9em; padding: .2em .5em; line-height: 1.5; text-align: center; border-style: dashed; background: var(--tc-flaeche); }
.tc-luecke:focus { border-style: solid; background: #fff; }
.tc-luecke.ist-richtig, .tc-eingabe.ist-richtig { border-style: solid; border-color: var(--tc-richtig); background: var(--tc-richtig-bg); }
.tc-luecke.ist-falsch, .tc-eingabe.ist-falsch { border-style: solid; border-color: var(--tc-falsch); background: var(--tc-falsch-bg); }
.tc-loesung-inline { margin: 0 .4em; color: var(--tc-richtig); font-weight: 650; }
.tc-eingabe { width: 100%; min-height: 48px; }
.tc-freitext { width: 100%; }

.tc-skala { display: flex; flex-wrap: wrap; gap: 8px; margin: .5em 0; }
.tc-skala-stufe { display: inline-flex; align-items: center; gap: .4em; padding: .5em .9em; border: 1.5px solid var(--tc-rand); border-radius: 999px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.tc-skala-stufe:has(input:checked) { border-color: var(--tc-primaer); background: color-mix(in srgb, var(--tc-primaer) 7%, #fff); font-weight: 650; }
.tc-skala-stufe input { accent-color: var(--tc-primaer); }

.tc-tipp { margin-top: 1em; font-size: .95em; }
.tc-tipp summary { cursor: pointer; color: var(--tc-link); font-weight: 650; }
.tc-melden { margin-top: 1em; font-size: .9em; }
.tc-melden-box { display: grid; gap: .5em; max-width: 520px; margin-top: .3em; }
.tc-melden-box[hidden] { display: none; }
.tc-melden-box select, .tc-melden-box textarea { width: 100%; box-sizing: border-box; font-size: 16px; padding: .45em; border: 1px solid var(--tc-rand); border-radius: 6px; }
.tc-melden-box textarea { min-height: 80px; }
.tc-melden-msg { margin: 0; color: var(--tc-richtig); }

/* Urteil und Erklärung */
.tc-urteil { display: inline-flex; align-items: center; gap: .5em; margin: 1.1em 0 0; padding: .4em .9em .4em .45em; border-radius: 999px; font-weight: 750; }
.tc-urteil::before { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: .8em; }
.tc-urteil.ist-richtig { color: var(--tc-richtig); background: var(--tc-richtig-bg); }
.tc-urteil.ist-richtig::before { content: "✓"; background: var(--tc-richtig); }
.tc-urteil.ist-falsch { color: var(--tc-falsch); background: var(--tc-falsch-bg); }
.tc-urteil.ist-falsch::before { content: "✕"; background: var(--tc-falsch); }
.tc-urteil.tc-neutral { color: var(--tc-leise); background: var(--tc-flaeche); font-weight: 650; padding-left: .9em; }
.tc-urteil.tc-neutral::before { content: none; }
.tc-loesung-titel { margin: 1em 0 .3em; font-weight: 650; }
.tc-loesung-liste { margin: 0 0 0 1.4em; }
.tc-erklaerung, .tc-muster { margin-top: .8em; padding: .9em 1.1em; border: 1px solid var(--tc-rand); border-left: 4px solid var(--tc-akzent); background: var(--tc-flaeche); border-radius: 0 var(--tc-radius) var(--tc-radius) 0; }
.tc-erklaerung::before { content: "Erklärung"; display: block; margin-bottom: .3em; font-size: .75em; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--tc-leise); }
.tc-erklaerung > :first-child, .tc-muster > :first-child { margin-top: 0; }
.tc-erklaerung > :last-child, .tc-muster > :last-child { margin-bottom: 0; }

.tc-fuss { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 1.4em; padding-top: 1.1em; border-top: 1px solid var(--tc-rand); }
.tc-fuss:empty { display: none; }
.tc-fuss-hinweis { flex-basis: 100%; order: -1; margin: 0; text-align: right; color: var(--tc-falsch); font-size: .95em; }
.tc-laedt { color: var(--tc-leise); }

/* Ergebnis */
.tc-ergebnis { display: grid; justify-items: center; gap: .35em; text-align: center; padding: 1.6em 1em 1.4em; border-radius: var(--tc-radius); background: linear-gradient(180deg, var(--tc-flaeche), #fff); }
.tc-ergebnis-ring { --p: 0; --farbe: var(--tc-falsch); display: grid; place-items: center; width: 168px; height: 168px; border-radius: 50%; background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--farbe) calc(var(--p) * 1%), var(--tc-rand) 0); }
.tc-ergebnis.ist-bestanden .tc-ergebnis-ring { --farbe: var(--tc-richtig); }
.tc-ergebnis-zahl { margin: 0; white-space: nowrap; font-size: 1.85em; font-weight: 800; line-height: 1; color: var(--tc-text); font-variant-numeric: tabular-nums; }
.tc-ergebnis-urteil { display: inline-flex; align-items: center; gap: .45em; margin: .7em 0 0; padding: .35em 1em; border-radius: 999px; font-weight: 750; font-size: 1.05em; }
.tc-ergebnis.ist-bestanden .tc-ergebnis-urteil { color: var(--tc-richtig); background: var(--tc-richtig-bg); }
.tc-ergebnis.ist-nicht-bestanden .tc-ergebnis-urteil { color: var(--tc-falsch); background: var(--tc-falsch-bg); }
.tc-ergebnis-text { margin: .2em 0 0; color: var(--tc-leise); }
.tc-ergebnis-werte { display: flex; justify-content: center; gap: .5em; width: 100%; margin: .8em 0 0; padding: 0; list-style: none; }
.tc-ergebnis-werte li { flex: 1 1 0; min-width: 0; max-width: 140px; margin: 0; padding: .55em .4em; border: 1px solid var(--tc-rand); border-radius: var(--tc-radius); background: #fff; list-style: none; }
.tc-ergebnis-werte li::before { content: none; }
.tc-ergebnis-werte strong { display: block; font-size: 1.25em; font-variant-numeric: tabular-nums; color: var(--tc-text); }
.tc-ergebnis-werte span { font-size: .85em; color: var(--tc-leise); }
.tc-ergebnis-tipp { max-width: 46ch; margin: .6em auto 0; color: var(--tc-leise); font-size: .95em; }

.tc-rueckblick { margin: 1.4em 0 0; padding: 0; list-style: none; counter-reset: tc-rb; }
.tc-rueckblick > li { position: relative; margin: 0 0 1em; padding: 1.1em 1.1em 1.1em 3.4em; border: 1px solid var(--tc-rand); border-radius: var(--tc-radius); list-style: none; counter-increment: tc-rb; }
.tc-rueckblick > li::before { content: counter(tc-rb); position: absolute; left: 1em; top: 1.05em; display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--tc-flaeche); color: var(--tc-leise); font-weight: 700; font-size: .9em; }
.tc-rueckblick > li.ist-richtig { border-left: 4px solid var(--tc-richtig); }
.tc-rueckblick > li.ist-falsch { border-left: 4px solid var(--tc-falsch); }

/* ---------- Lernbereich (Nachfolger des Fokusmodus) ---------- */
body.tc-lern { margin: 0; background: #fff; }
.tc-lb { display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: 64px minmax(calc(100vh - 64px), auto); font-size: 17px; line-height: 1.6; }
.tc-lb *, .tc-lb *::before, .tc-lb *::after { box-sizing: border-box; }
.tc-lb-kopf { grid-column: 1 / -1; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1em; padding: 0 1.2em; background: var(--tc-primaer); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 4px 16px rgba(0, 0, 0, .12); }
.admin-bar .tc-lb-kopf { top: 32px; }
.tc-lb-menue { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 1.4em; cursor: pointer; }
.tc-lb-logo { display: flex; align-items: center; height: 64px; color: #fff; font-weight: 700; text-decoration: none; }
.tc-lb-logo img { max-height: 40px; width: auto; }
.tc-lb-fortschritt { flex: 1; display: flex; align-items: center; gap: .7em; justify-content: flex-end; font-size: .85em; font-weight: 600; }
.tc-lb-balken { width: 180px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.tc-lb-balken span { display: block; height: 100%; border-radius: inherit; background: var(--tc-akzent); }
.tc-lb-konto { color: #fff; font-size: .9em; font-weight: 600; text-decoration: none; padding: .45em .9em; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; white-space: nowrap; transition: background-color .15s; }
.tc-lb-konto:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Gliederung links */
.tc-lb-nav { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; padding: 1.4em 1em 2em; border-right: 1px solid var(--tc-rand); background: var(--tc-flaeche); font-size: .92em; scrollbar-width: thin; }
.admin-bar .tc-lb-nav { top: 96px; height: calc(100vh - 96px); }
.tc-lb-kurs { display: block; padding: 0 .55em; font-weight: 750; color: var(--tc-text); text-decoration: none; line-height: 1.35; }
.tc-lb-kurs:hover { color: var(--tc-primaer); }
.tc-lb-bis { margin: .35em 0 0; padding: 0 .55em; color: var(--tc-leise); font-size: .88em; }
.tc-gl, .tc-gl ol { list-style: none; margin: 0; padding: 0; }
.tc-gl { margin-top: 1.1em; }
.tc-gl-knoten { margin: 0 0 2px; }
.tc-gl details > summary { position: relative; list-style: none; cursor: pointer; }
.tc-gl details > summary::-webkit-details-marker { display: none; }
.tc-gl details > summary .tc-gl-eintrag { padding-right: 3.2em; }
.tc-gl-zahl { position: absolute; right: .6em; top: .55em; font-size: .78em; font-weight: 600; color: var(--tc-leise); font-variant-numeric: tabular-nums; pointer-events: none; }
.tc-gl ol { margin: 2px 0 8px 1.05em; padding-left: .55em; border-left: 2px solid var(--tc-rand); }
.tc-gl-eintrag { display: flex; gap: .6em; align-items: flex-start; padding: .5em .6em; border-radius: 8px; color: var(--tc-text); text-decoration: none; line-height: 1.35; transition: background-color .12s; }
.tc-gl-eintrag:hover { background: color-mix(in srgb, var(--tc-primaer) 6%, transparent); color: var(--tc-text); }
.tc-gl-eintrag.ist-aktiv { background: #fff; box-shadow: inset 3px 0 0 var(--tc-akzent), 0 1px 3px rgba(15, 24, 38, .08); font-weight: 650; color: var(--tc-primaer); }
.tc-gl-lektion { font-weight: 650; }
.tc-gl-status { flex: none; width: 17px; height: 17px; margin-top: .1em; border: 2px solid #a5b0bd; border-radius: 50%; background: #fff; }
.ist-erledigt > .tc-gl-status, .ist-erledigt > a > .tc-gl-status { border-color: var(--tc-richtig); background: var(--tc-richtig) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tc-gl-eintrag.ist-aktiv:not(.ist-erledigt) > .tc-gl-status { border-color: var(--tc-primaer); box-shadow: inset 0 0 0 3px #fff; background: var(--tc-primaer); }
.tc-lb-zurseite { display: inline-block; margin: 1.6em .55em 0; color: var(--tc-leise); font-size: .9em; text-decoration: none; }
.tc-lb-zurseite:hover { color: var(--tc-primaer); text-decoration: underline; }

/* Inhalt */
.tc-lb-inhalt { padding: 2.4em 2em 5em; min-width: 0; }
.tc-lb-spalte { max-width: 840px; margin: 0 auto; }
.tc-lb-pfad { display: flex; flex-wrap: wrap; align-items: center; gap: .45em; margin: 0 0 .4em; font-size: .88em; color: var(--tc-leise); }
.tc-lb-pfad a { color: var(--tc-leise); text-decoration: none; }
.tc-lb-pfad a:hover { color: var(--tc-primaer); text-decoration: underline; }
.tc-lb-titel { margin: 0 0 .9em; font-size: clamp(1.6em, 3vw, 2.15em); line-height: 1.2; letter-spacing: -.01em; color: var(--tc-text); text-wrap: balance; }
.tc-lb-zwischen { margin: 2em 0 .8em; font-size: 1.15em; color: var(--tc-text); }

/* Kursübersicht: Fortschritt und nächster Schritt */
.tc-lb-uebersicht { display: flex; flex-wrap: wrap; gap: 1.2em 1.6em; align-items: center; margin-bottom: 1.6em; padding: 1.4em 1.6em; border: 1px solid var(--tc-rand); border-radius: calc(var(--tc-radius) + 4px); background: linear-gradient(135deg, #fff 0%, var(--tc-flaeche) 100%); box-shadow: 0 1px 2px rgba(15, 24, 38, .04), 0 8px 24px rgba(15, 24, 38, .06); }
.tc-lb-uebersicht p { margin: 0; }
.tc-lb-ring { --p: 0; flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(closest-side, #fff 76%, transparent 77% 100%), conic-gradient(var(--tc-akzent) calc(var(--p) * 1%), var(--tc-rand) 0); }
.tc-lb-ring span { font-size: 1.35em; font-weight: 800; color: var(--tc-text); font-variant-numeric: tabular-nums; }
.tc-lb-ring small { font-size: .6em; font-weight: 700; margin-left: 1px; }
.tc-lb-stand { flex: 1 1 200px; min-width: 0; }
.tc-lb-stand-zahl { font-size: 1.05em; color: var(--tc-text); }
.tc-lb-stand-bis { margin-top: .2em !important; font-size: .9em; color: var(--tc-leise); }
.tc-lb-weiter { display: grid; gap: .35em; justify-items: start; }
.tc-lb-weiter-label { font-size: .78em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tc-leise); }

/* Liste der Lektionen bzw. Themen */
.tc-lb-liste { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.tc-lb-liste li { margin: 0; padding: 0; list-style: none; }
.tc-lb-liste a { display: flex; gap: 1em; align-items: center; padding: .85em 1.1em; border: 1px solid var(--tc-rand); border-radius: var(--tc-radius); background: #fff; color: var(--tc-text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tc-lb-liste a:hover { border-color: color-mix(in srgb, var(--tc-primaer) 40%, var(--tc-rand)); box-shadow: 0 4px 16px rgba(15, 24, 38, .08); transform: translateY(-1px); }
.tc-lb-nr { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tc-flaeche); color: var(--tc-leise); font-weight: 750; font-variant-numeric: tabular-nums; }
.ist-begonnen .tc-lb-nr { background: color-mix(in srgb, var(--tc-akzent) 22%, #fff); color: var(--tc-text); }
.ist-erledigt .tc-lb-nr { background: var(--tc-richtig); color: #fff; }
.tc-lb-eintrag { flex: 1; min-width: 0; display: grid; gap: .15em; }
.tc-lb-eintrag-titel { font-weight: 650; line-height: 1.35; }
.tc-lb-anzahl { color: var(--tc-leise); font-size: .86em; }
.tc-lb-minibalken { display: block; height: 4px; max-width: 220px; margin-top: .3em; border-radius: 999px; background: var(--tc-flaeche); overflow: hidden; }
.tc-lb-minibalken span { display: block; height: 100%; border-radius: inherit; background: var(--tc-akzent); }
.ist-erledigt .tc-lb-minibalken span { background: var(--tc-richtig); }
.tc-lb-pfeil { flex: none; font-size: 1.5em; line-height: 1; color: #a5b0bd; transition: transform .15s, color .15s; }
.tc-lb-liste a:hover .tc-lb-pfeil { color: var(--tc-primaer); transform: translateX(3px); }

.tc-lb-abschluss { margin: 2em 0 0; }

/* Blättern */
.tc-lb-blaettern { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 2.8em; padding-top: 1.6em; border-top: 1px solid var(--tc-rand); }
.tc-lb-blatt { display: grid; gap: .15em; padding: .85em 1.1em; border: 1px solid var(--tc-rand); border-radius: var(--tc-radius); background: #fff; color: var(--tc-text); font-weight: 650; line-height: 1.35; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tc-lb-blatt span { font-size: .78em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tc-leise); }
.tc-lb-blatt:hover { border-color: color-mix(in srgb, var(--tc-primaer) 40%, var(--tc-rand)); box-shadow: 0 4px 16px rgba(15, 24, 38, .08); color: var(--tc-text); }
.tc-lb-blatt.ist-weiter { grid-column: 2; text-align: right; background: var(--tc-primaer); border-color: var(--tc-primaer); color: #fff; }
.tc-lb-blatt.ist-weiter span { color: color-mix(in srgb, #fff 70%, var(--tc-primaer)); }
.tc-lb-blatt.ist-weiter:hover { background: var(--tc-primaer-h); color: #fff; }

@media (max-width: 900px) {
	.tc-lb { grid-template-columns: minmax(0, 1fr); font-size: 16px; }
	.tc-lb-menue { display: inline-flex; align-items: center; justify-content: center; }
	.tc-lb-nav { position: fixed; z-index: 30; left: 0; top: 64px; width: min(86vw, 340px); transform: translateX(-100%); transition: transform .2s; box-shadow: 4px 0 18px rgba(0, 0, 0, .12); }
	.tc-lb.nav-offen .tc-lb-nav { transform: none; }
	/* Geschlossenes Menü nicht per Tastatur erreichbar. */
	.tc-lb-nav { visibility: hidden; transition: transform .2s, visibility 0s .2s; }
	.tc-lb.nav-offen .tc-lb-nav { visibility: visible; transition: transform .2s; }
	.tc-lb-balken { width: 70px; }
	.tc-lb-fortschritt-text { display: none; }
	.tc-lb-inhalt { padding: 1.4em 16px 3em; }
	.tc-lb-uebersicht { padding: 1.1em; }
	.tc-lb-weiter, .tc-lb-weiter .tc-knopf { width: 100%; }
	.tc-zu-zeile { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.tc-lb-blaettern { grid-template-columns: minmax(0, 1fr); }
	.tc-lb-blatt.ist-weiter { grid-column: 1; grid-row: 1; }
}
@media (max-width: 480px) {
	.tc-lb-konto { display: none; }
	.tc-fuss { justify-content: stretch; }
	.tc-fuss .tc-knopf { flex: 1 1 auto; }
	.tc-start .tc-knopf-haupt { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.tc-lb-nav, .tc-lb-liste a, .tc-knopf { transition: none; }
}

/* ---------- Schutzschicht gegen globale Theme-Regeln ----------
   Manche Portale setzen button/input/select/label global mit !important
   (z. B. aufsehertest: Petrol-Knöpfe, 15px, padding 11px 21px).
   Hier werden die eigenen Werte mit höherer Spezifität (:not(#tc-0)) wieder durchgesetzt. */
:is(.tc-test, .tc-lb) button:not(#tc-0) {
	font-family: inherit !important; font-size: inherit !important; line-height: 1.2 !important;
	text-transform: none !important; letter-spacing: 0 !important; box-shadow: none; transition: background-color .15s, border-color .15s !important;
}
:is(.tc-test, .tc-lb, .tc-konto) .tc-knopf:not(#tc-0) {
	font-weight: 650 !important; padding: .6em 1.25em !important; border: 1px solid var(--tc-rand) !important; border-radius: calc(var(--tc-radius) - 2px) !important;
	background: #fff !important; color: var(--tc-primaer) !important; min-height: 46px;
}
:is(.tc-test, .tc-lb, .tc-konto) .tc-knopf:not(#tc-0):hover { background: var(--tc-flaeche) !important; border-color: color-mix(in srgb, var(--tc-primaer) 35%, var(--tc-rand)) !important; color: var(--tc-primaer) !important; }
:is(.tc-test, .tc-lb, .tc-konto) .tc-knopf-haupt:not(#tc-0) { background: var(--tc-primaer) !important; border-color: var(--tc-primaer) !important; color: #fff !important; }
.tc-start .tc-knopf-haupt:not(#tc-0) { min-height: 52px; font-size: 1.05em !important; }
:is(.tc-test, .tc-lb, .tc-konto) .tc-knopf-haupt:not(#tc-0):hover { background: var(--tc-primaer-h) !important; border-color: var(--tc-primaer-h) !important; color: #fff !important; }
.tc-test .tc-leiste button:not(#tc-0) {
	font-weight: 400 !important; font-size: .85em !important; padding: 0 !important; border: 1px solid var(--tc-rand) !important; border-radius: 8px !important;
	background: #fff !important; color: var(--tc-leise) !important; min-height: 0 !important;
}
.tc-test .tc-leiste button:not(#tc-0):hover { border-color: var(--tc-primaer) !important; color: var(--tc-primaer) !important; }
.tc-test .tc-leiste button.ist-beantwortet:not(#tc-0) { background: color-mix(in srgb, var(--tc-primaer) 10%, #fff) !important; border-color: color-mix(in srgb, var(--tc-primaer) 30%, #fff) !important; color: var(--tc-primaer) !important; }
.tc-test .tc-leiste button.ist-richtig:not(#tc-0) { background: var(--tc-richtig-bg) !important; border-color: var(--tc-richtig) !important; color: var(--tc-richtig) !important; }
.tc-test .tc-leiste button.ist-falsch:not(#tc-0) { background: var(--tc-falsch-bg) !important; border-color: var(--tc-falsch) !important; color: var(--tc-falsch) !important; }
.tc-test .tc-leiste button[aria-current]:not(#tc-0) { background: var(--tc-primaer) !important; border-color: var(--tc-primaer) !important; color: #fff !important; font-weight: 700 !important; }
.tc-test [hidden]:not(#tc-0) { display: none !important; }
.tc-test .tc-start-titel:not(#tc-0) { font-weight: 750 !important; font-size: 1.15em !important; margin: 0 0 .55em !important; }
.tc-test .tc-optionen:not(#tc-0), .tc-test .tc-sortier:not(#tc-0) { margin: 0 !important; }
.tc-test .tc-option.ist-richtig label:not(#tc-0) { border-color: var(--tc-richtig); background: var(--tc-richtig-bg); box-shadow: none; }
.tc-test .tc-option.ist-richtig label:not(#tc-0)::before { content: "✓"; background: var(--tc-richtig); border-color: var(--tc-richtig); color: #fff; }
.tc-test .tc-option.ist-falsch label:not(#tc-0) { border-color: var(--tc-falsch); background: var(--tc-falsch-bg); box-shadow: none; }
.tc-test .tc-option.ist-falsch label:not(#tc-0)::before { content: "✕"; background: var(--tc-falsch); border-color: var(--tc-falsch); color: #fff; }
.tc-test .tc-ergebnis p:not(#tc-0) { margin-bottom: 0; }
.tc-test .tc-ergebnis-zahl:not(#tc-0) { letter-spacing: -.02em !important; padding: 0 !important; }
/* Listen: Themes setzen gern Aufzählungszeichen, Nummern oder ::before-Symbole auf li. */
:is(.tc-test, .tc-konto) :is(.tc-leiste, .tc-optionen, .tc-sortier, .tc-start-fakten, .tc-ergebnis-werte, .tc-rueckblick, .tc-konto-zert):not(#tc-0) { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.tc-test .tc-leiste:not(#tc-0) { margin: 0 0 1.4em !important; padding: 0 0 1.1em !important; }
.tc-test .tc-rueckblick:not(#tc-0) { margin: 1.4em 0 0 !important; }
.tc-test .tc-ergebnis-werte:not(#tc-0) { margin: .9em 0 0 !important; }
.tc-test :is(.tc-urteil, .tc-ergebnis-urteil):not(#tc-0) { font-weight: 750 !important; }
:is(.tc-test, .tc-konto) :is(.tc-leiste, .tc-optionen, .tc-sortier, .tc-start-fakten, .tc-ergebnis-werte, .tc-konto-zert) > li:not(#tc-0) { list-style: none !important; margin-left: 0 !important; padding-left: 0; }
:is(.tc-test, .tc-konto) :is(.tc-leiste, .tc-optionen, .tc-sortier, .tc-ergebnis-werte, .tc-konto-zert) > li:not(#tc-0)::before { content: none !important; display: none !important; }
.tc-test .tc-rueckblick > li:not(#tc-0) { list-style: none !important; margin-left: 0 !important; padding-left: 3.4em !important; }
.tc-test .tc-option input:not(#tc-0) { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; -webkit-appearance: auto !important; appearance: auto !important; }
.tc-test .tc-sortier-k:not(#tc-0), .tc-test .tc-sortier-k:not(#tc-0):hover {
	font-weight: 400 !important; padding: 0 !important; border: 1px solid var(--tc-rand) !important; border-radius: 6px !important;
	background: var(--tc-flaeche) !important; color: var(--tc-text) !important;
}
.tc-lb .tc-lb-menue:not(#tc-0), .tc-lb .tc-lb-menue:not(#tc-0):hover {
	font-size: 1.4em !important; padding: 0 !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: #fff !important;
}
.tc-test :is(.tc-zu-wahl, .tc-eingabe, .tc-freitext, .tc-luecke):not(#tc-0) {
	font-family: inherit !important; font-size: inherit !important; line-height: 1.5 !important; height: auto !important; box-shadow: none !important;
	border: 1px solid #aab6c3 !important; border-radius: 6px !important; padding: .45em .6em !important; background: #fff !important; color: var(--tc-text) !important;
}
.tc-test .tc-luecke:not(#tc-0) { padding: .2em .45em !important; }
.tc-test :is(.tc-luecke, .tc-eingabe).ist-richtig:not(#tc-0) { border-color: var(--tc-richtig) !important; background: var(--tc-richtig-bg) !important; }
.tc-test :is(.tc-luecke, .tc-eingabe).ist-falsch:not(#tc-0) { border-color: var(--tc-falsch) !important; background: var(--tc-falsch-bg) !important; }
.tc-test .tc-melden-auf:not(#tc-0), .tc-test .tc-melden-auf:not(#tc-0):hover { background: none !important; border: 0 !important; padding: .6em 0 !important; min-height: 44px; color: var(--tc-leise) !important; text-decoration: underline !important; font: inherit !important; box-shadow: none !important; cursor: pointer; }
.tc-test .tc-melden-box :is(select, textarea):not(#tc-0) { width: 100% !important; box-sizing: border-box !important; font: inherit !important; font-size: 16px !important; color: var(--tc-text) !important; background: #fff !important; border: 1px solid var(--tc-rand) !important; border-radius: 6px !important; padding: .45em !important; box-shadow: none !important; margin: 0 !important; }
:is(.tc-test, .tc-lb) label:not(#tc-0) { font-size: inherit !important; font-weight: inherit; color: inherit; }

.tc-lb :is(.tc-gl, .tc-gl ol, .tc-lb-liste):not(#tc-0) { list-style: none !important; padding-left: 0; }
.tc-lb :is(.tc-gl li, .tc-lb-liste li):not(#tc-0) { list-style: none !important; }
.tc-lb :is(.tc-gl li, .tc-lb-liste li):not(#tc-0)::before { content: none !important; }
.tc-lb .tc-gl ol:not(#tc-0) { padding-left: .55em !important; }
.tc-lb .tc-lb-liste:not(#tc-0) { margin: 0 0 1.5em !important; padding: 0 !important; }
.tc-lb :is(.tc-lb-titel, .tc-lb-zwischen):not(#tc-0) { padding: 0 !important; }

/* ---------- Mein Konto ---------- */
.tc-konto { display: grid; gap: 2.2em; margin: 1.5em 0; color: var(--tc-text); }
.tc-konto *, .tc-konto *::before, .tc-konto *::after { box-sizing: border-box; }
.tc-konto h2 { font-size: 1.3em; margin: 0 0 .8em; }
.tc-konto-hinweis { margin: 0 0 1em; padding: .8em 1em; border: 1px solid color-mix(in srgb, var(--tc-link) 25%, #fff); border-left: 4px solid var(--tc-link); border-radius: 8px; background: color-mix(in srgb, var(--tc-link) 6%, #fff); font-size: .95em; }
.tc-konto-kurs { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1em 1.6em; padding: 1.3em 1.4em; border: 1px solid var(--tc-rand); border-radius: calc(var(--tc-radius) + 4px); background: #fff; box-shadow: 0 1px 2px rgba(15, 24, 38, .04), 0 8px 24px rgba(15, 24, 38, .06); overflow: hidden; }
.tc-konto-kurs::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tc-akzent); }
.tc-konto-kurs + .tc-konto-kurs { margin-top: 1em; }
.tc-konto-kurs-text { flex: 1 1 320px; min-width: 0; }
.tc-konto-kurs h3 { font-size: 1.1em; line-height: 1.3; margin: 0 0 .45em; }
.tc-konto-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35em 1em; margin: 0 0 .75em; font-size: .9em; color: var(--tc-leise); }
.tc-konto-marke { display: inline-block; padding: .15em .65em; border-radius: 999px; background: var(--tc-richtig-bg); color: var(--tc-richtig); font-weight: 650; }
.tc-konto-marke.ist-knapp { background: var(--tc-falsch-bg); color: var(--tc-falsch); }
.tc-konto-balken { height: 8px; max-width: 420px; border-radius: 999px; background: var(--tc-flaeche); overflow: hidden; }
.tc-konto-balken span { display: block; height: 100%; border-radius: inherit; background: var(--tc-akzent); }
.tc-konto-tabelle { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95em; border: 1px solid var(--tc-rand); border-radius: var(--tc-radius); overflow: hidden; background: #fff; }
.tc-konto-tabelle th, .tc-konto-tabelle td { text-align: left; padding: .7em .9em; border-bottom: 1px solid var(--tc-rand); vertical-align: middle; }
.tc-konto-tabelle tr:last-child td { border-bottom: 0; }
.tc-konto-tabelle th { background: var(--tc-flaeche); font-size: .8em; letter-spacing: .04em; text-transform: uppercase; color: var(--tc-leise); font-weight: 700; }
.tc-konto-erg { display: inline-block; min-width: 4.2em; margin-right: .4em; padding: .1em .5em; border-radius: 999px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.tc-konto-erg.ist-richtig { color: var(--tc-richtig); background: var(--tc-richtig-bg); }
.tc-konto-erg.ist-falsch { color: var(--tc-falsch); background: var(--tc-falsch-bg); }
@media (max-width: 600px) {
	.tc-konto-kurs .tc-knopf { width: 100%; }
	.tc-konto-tabelle thead { display: none; }
	.tc-konto-tabelle tr { display: block; padding: .6em .9em; border-bottom: 1px solid var(--tc-rand); }
	.tc-konto-tabelle td { display: block; border: 0; padding: .1em 0; }
}
.tc-konto-zert { display: grid; gap: 8px; }
.tc-konto-zert li { display: flex; flex-wrap: wrap; align-items: center; gap: .3em .8em; margin: 0; padding: .75em 1em; border: 1px solid var(--tc-rand); border-radius: var(--tc-radius); background: #fff; }
.tc-konto-zert a { font-weight: 650; }
.tc-konto-zert span { color: var(--tc-leise); font-size: .9em; }
.tc-frage-text:empty { display: none; }

/* Mein Konto: Rückmeldungen, Abstand gegen Theme-Padding */
:is(.tc-konto) .tc-konto-kurs:not(#tc-0) { padding: 1.3em 1.4em 1.3em 1.7em !important; }
.tc-konto-rueck { position: relative; padding: 1.1em 1.3em 1.1em 1.6em; border: 1px solid var(--tc-rand); border-radius: calc(var(--tc-radius) + 2px); background: #fff; }
.tc-konto-rueck + .tc-konto-rueck { margin-top: .9em; }
.tc-konto-rueck.ist-neu { border-color: color-mix(in srgb, var(--tc-akzent) 45%, var(--tc-rand)); box-shadow: 0 6px 20px rgba(15, 24, 38, .06); }
.tc-konto-rueck.ist-neu::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 4px 0 0 4px; background: var(--tc-akzent); }
.tc-konto-rueck-frage { margin: 0 0 .6em; font-weight: 600; line-height: 1.45; }
.tc-konto-rueck details { margin: 0 0 .7em; font-size: .93em; color: var(--tc-leise); }
.tc-konto-rueck summary { cursor: pointer; font-weight: 600; }
.tc-konto-rueck details p { margin: .5em 0 0; white-space: normal; }
.tc-konto-rueck-text { padding: .8em 1em; border-radius: 8px; background: var(--tc-flaeche); line-height: 1.55; }
.tc-konto-tabelle td a { color: var(--tc-link); font-weight: 600; text-decoration: none; }
.tc-konto-tabelle td a:hover { text-decoration: underline; }

/* Fortsetzen, Fragenübersicht zum Aufklappen, Hinweise im Ergebnis, Rückblick-Filter */
.tc-fortsetzen { display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1em; margin: 0 0 1em; padding: 1em 1.2em; border: 1px solid color-mix(in srgb, var(--tc-akzent) 40%, var(--tc-rand)); border-left: 4px solid var(--tc-akzent); border-radius: var(--tc-radius); background: color-mix(in srgb, var(--tc-akzent) 6%, #fff); }
.tc-fortsetzen p { flex: 1 1 260px; margin: 0; font-weight: 600; }
.tc-leiste-box { margin: 0 0 1.2em; border-bottom: 1px solid var(--tc-rand); }
.tc-leiste-box > summary { cursor: pointer; padding: .4em 0 .8em; font-size: .92em; font-weight: 650; color: var(--tc-leise); list-style: none; }
.tc-leiste-box > summary::-webkit-details-marker { display: none; }
.tc-leiste-box > summary::before { content: "▸"; display: inline-block; width: 1.2em; transition: transform .15s; }
.tc-leiste-box[open] > summary::before { transform: rotate(90deg); }
.tc-test .tc-leiste-box .tc-leiste:not(#tc-0) { border-bottom: 0 !important; margin-bottom: .4em !important; }
.tc-ergebnis-notiz { margin: .8em auto 0; max-width: 34em; font-size: .88em; color: var(--tc-leise); text-align: center; }
.tc-rueckblick-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8em; margin: 1.6em 0 1em; padding: .8em 1em; border: 1px solid var(--tc-rand); border-radius: var(--tc-radius); background: var(--tc-flaeche); }
.tc-rueckblick-filter { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; cursor: pointer; }
.tc-rueckblick-filter input { width: 1.1em; height: 1.1em; margin: 0; }
.tc-rueckblick.nur-falsch > li.ist-richtig { display: none !important; }
@media (pointer: coarse) {
	.tc-test .tc-leiste button:not(#tc-0) { width: 44px !important; height: 44px !important; }
	.tc-sortier-k { min-width: 44px; min-height: 44px; }
}

/* Lernbereich: Schleier hinter dem Menü, Konto und Stand im Menü (nur schmal) */
.tc-lb-schleier { display: none; }
.tc-lb-nav-mobil { display: none; }
@media (max-width: 900px) {
	.tc-lb-schleier:not([hidden]) { display: block; position: fixed; inset: 64px 0 0 0; z-index: 25; background: rgba(15, 24, 38, .35); }
	.tc-lb-nav-mobil { display: block; margin: 1.2em 0 .6em; padding-top: 1em; border-top: 1px solid var(--tc-rand); }
	.tc-lb-nav-stand { margin: 0 0 .6em; font-size: .9em; color: var(--tc-leise); }
	.tc-lb-nav-konto { display: inline-block; padding: .5em .9em; border: 1px solid var(--tc-rand); border-radius: 8px; background: #fff; font-weight: 600; text-decoration: none; }
}

/* ---------- Einstellungen: Einleitung, Ergebnis je Kategorie, Ergebnistext, gesperrte Schritte, Materialien ---------- */
.tc-einleitung { margin: 0 0 1em; color: var(--tc-text); }
.tc-einleitung > :first-child { margin-top: 0; }
.tc-einleitung > :last-child { margin-bottom: 0; }
div.tc-ergebnis-tipp > :first-child { margin-top: 0; }
div.tc-ergebnis-tipp > :last-child { margin-bottom: 0; }
.tc-ergebnis-kat { width: 100%; max-width: 30em; margin: 1em auto 0; border-collapse: collapse; font-size: .92em; text-align: left; }
.tc-ergebnis-kat caption { margin-bottom: .4em; font-weight: 650; text-align: left; color: var(--tc-text); }
.tc-ergebnis-kat th, .tc-ergebnis-kat td { padding: .35em 0; border-top: 1px solid var(--tc-rand); font-weight: 500; vertical-align: middle; }
.tc-ergebnis-kat th { padding-right: 1em; }
.tc-ergebnis-kat td { display: flex; align-items: center; gap: .6em; }
.tc-kat-balken { flex: 1 1 auto; min-width: 4em; height: 8px; border-radius: 99px; background: var(--tc-flaeche); overflow: hidden; }
.tc-kat-balken span { display: block; height: 100%; background: var(--tc-primaer); }
.tc-kat-zahl { flex: 0 0 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.tc-gl-eintrag.ist-gesperrt { opacity: .55; cursor: not-allowed; }
.tc-gl-eintrag.ist-gesperrt .tc-gl-status { border-style: dashed; }
.tc-lb-liste li.ist-gesperrt a { opacity: .55; pointer-events: none; }
.tc-lb-blatt.ist-gesperrt { opacity: .5; pointer-events: none; }
.tc-lb-hinweis { margin: 0 0 1em; padding: .7em .9em; border-radius: 8px; background: var(--tc-flaeche); border-left: 4px solid var(--tc-primaer); }
.tc-lb-material { margin: 1.6em 0; padding: 1em 1.2em; border: 1px solid var(--tc-rand); border-radius: var(--tc-radius); background: var(--tc-flaeche); }
.tc-lb-material h2 { margin: 0 0 .5em; font-size: 1.05em; }
.tc-lb-material > :last-child { margin-bottom: 0; }
