/* Lernplattform – Gestaltungsgrundlage „Linie“ (seit 12/2026): eine Schrift (Inter), Weiß + Tinte + wenige Grautöne,
   feine 1-px-Linien, keine Schatten auf Flächen, ganz leichte Rundungen. Farbe trägt nur Bedeutung:
   Grün = richtig/erledigt, Rot = Achtung, Gelb = offen, Violett = KI-Vorschlag.
   Diese Datei gilt überall: Cockpit, Schüler-App und die Seiten des portierten Plugins (dort nach app.css geladen –
   deshalb die Selektoren mit „html“, damit die Reihenfolge der Dateien keine Rolle spielt). */

/* Inter liegt lokal (rsms.me/inter, SIL Open Font License 1.1, siehe fonts/LIESMICH.txt) – nie von fremden Servern laden.
   Der Schnitt ist auf 100–600 begrenzt: Wo ältere Stile 700/800 verlangen, zeigt der Browser 600 (ruhigeres Bild). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 600; font-display: swap; src: url("fonts/InterVariable.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 600; font-display: swap; src: url("fonts/InterVariable-Italic.woff2") format("woff2"); }

html:root, html .bkfo-wrap {
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-display: var(--font-body);
	--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--bg: #fff; --bg-2: #fafafa; --card: #fff; --soft: #f5f5f5;
	--ink: #171717; --muted: #666; --faint: #8f8f8f;
	--line: #eaeaea; --line-strong: #d0d0d0;

	--primary: #171717; --primary-hover: #383838; --primary-ink: #fff;
	--choice: #171717; --choice-soft: #f5f5f5;

	--brand: #3a9d55;                                   /* Grün für Flächen (Fortschritt, Schalter „an“) */
	--accent: #256b36; --accent-ink: #fff; --accent-soft: #eef7f0; --accent-line: #cfe6d5;
	--ok: #256b36; --ok-soft: #eef7f0;
	--bad: #b42318; --bad-soft: #fdf2f0;
	--warn: #8a5f06; --warn-soft: #fbf5e6; --warn-mark: #cf9a14;
	--info: #404040; --info-soft: #f5f5f5;
	--ai: #5e4b99; --ai-soft: #f5f3fa;
	--teacher: #171717; --teacher-soft: #f5f5f5;
	--extra: #666; --extra-soft: #f5f5f5;
	--e1: #666; --e2: #666; --inf: #666;                /* Fächer: bewusst ohne eigene Farbe */

	--radius-sm: 3px; --radius: 4px; --radius-lg: 6px;
	--caps: none; --track: 0;                           /* Plugin-Stile: keine Versalien, keine gesperrte Schrift */
	--shadow: none;
	--shadow-lg: 0 0 0 1px rgba(0, 0, 0, .04), 0 16px 40px -16px rgba(0, 0, 0, .22);
	--focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink);

	--side: #fff; --side-ink: #171717; --side-muted: #666; --side-line: #eaeaea; --side-hover: #f5f5f5;
	--side-active: #171717; --side-active-ink: #fff; --side-w: 240px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	html:root:not([data-theme="light"]) {
		--bg: #0a0a0a; --bg-2: #0f0f0f; --card: #111; --soft: #1c1c1c;
		--ink: #ededed; --muted: #a1a1a1; --faint: #707070;
		--line: #262626; --line-strong: #404040;
		--primary: #ededed; --primary-hover: #fff; --primary-ink: #0a0a0a;
		--choice: #ededed; --choice-soft: #222;
		--brand: #46a862;
		--accent: #6fcf87; --accent-ink: #06140a; --accent-soft: #12241a; --accent-line: #24492f;
		--ok: #6fcf87; --ok-soft: #12241a;
		--bad: #ff8a7a; --bad-soft: #2c1512;
		--warn: #e5b85c; --warn-soft: #2a210c; --warn-mark: #cf9a14;
		--info: #c7c7c7; --info-soft: #1c1c1c;
		--ai: #b3a1e6; --ai-soft: #1e1a2e;
		--teacher: #ededed; --teacher-soft: #1c1c1c;
		--extra: #a1a1a1; --extra-soft: #1c1c1c;
		--e1: #a1a1a1; --e2: #a1a1a1; --inf: #a1a1a1;
		--shadow-lg: 0 0 0 1px rgba(255, 255, 255, .06), 0 16px 40px -16px rgba(0, 0, 0, .7);
		--side: #0a0a0a; --side-ink: #ededed; --side-muted: #a1a1a1; --side-line: #262626; --side-hover: #1c1c1c;
		--side-active: #ededed; --side-active-ink: #0a0a0a;
		color-scheme: dark;
	}
}

/* app.css setzt Lehrer- und Zusatzfarbe am <body class="bkfo-app"> – dort ebenfalls überschreiben. */
html .bkfo-app { --teacher: #171717; --teacher-soft: #f5f5f5; --extra: #666; --extra-soft: #f5f5f5; }
@media (prefers-color-scheme: dark) {
	html:root:not([data-theme="light"]) .bkfo-app { --teacher: #ededed; --teacher-soft: #1c1c1c; --extra: #a1a1a1; --extra-soft: #1c1c1c; }
}

/* Schrift überall gleich: keine künstlich fett gerechneten Schnitte, Zahlen in Tabellen gleich breit. */
html { font-synthesis: none; font-optical-sizing: auto; -webkit-text-size-adjust: 100%; }
body { font-feature-settings: "calt", "ss03"; }
