/* =========================================================================
   EisBär Academy — Grundstil (Redesign 2026-11, nach Designvorlage)
   Kantig und hell: Seitenleiste mit Logo, Versal-Menü, aktiver Punkt als
   orange Fläche mit schräger Kante; Kennzahlen als eine Leiste; Aktionskarte
   mit Pfeilblock; „//"-Abschnittstitel; Schritte als schräge Felder.
   CI-Orange für Aktion/Aktiv, Navy für Text, Eis-Blau für Links.
   Inter/Sora selbstgehostet. Hell/Dunkel über [data-theme] + prefers-color-scheme.
   ========================================================================= */

:root {
	--accent:#e95b13; --accent-hover:#cf4f0d; --accent-soft:#fdf0e8; --accent-ink:#b4460b;
	--ice:#5b7f95; --ice-deep:#3f6377; --ice-soft:#eef3f6;
	--bg:#f1f3f6; --surface:#ffffff; --surface-2:#f8f9fb; --hover:#f1f3f6;
	--line:#e2e6ea; --line-strong:#cfd6dc;
	--ink:#16202b; --ink-2:#3b4752; --muted:#6b7682;
	--field:#ffffff; --field-border:#cfd6dc; --focus:rgba(233,91,19,.20);
	--danger:#c93a3a; --err-bg:#fdf1f1; --err-border:#f0c9c9; --err-ink:#a12b2b;
	--ok:#1c7f3d; --ok-soft:#e8f5ec; --warn:#94600f; --warn-soft:#fcf3e2;
	--flaeche:rgba(91,127,149,.06);
	--radius:3px; --radius-sm:3px;
	--font-sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
	--font-head:"Sora",var(--font-sans);
	color-scheme:light;
}
:root[data-theme="dark"] {
	--accent:#f26a22; --accent-hover:#ff7f3d; --accent-soft:rgba(242,106,34,.14); --accent-ink:#ffa06b;
	--ice:#8fb3c9; --ice-deep:#b2cddc; --ice-soft:rgba(143,179,201,.13);
	--bg:#0d1217; --surface:#141b22; --surface-2:#18212a; --hover:#1c262f;
	--line:#232d37; --line-strong:#2f3b46;
	--ink:#e9eef2; --ink-2:#b7c1c9; --muted:#87929b;
	--field:#10161c; --field-border:#2f3b46; --focus:rgba(242,106,34,.28);
	--danger:#e26464; --err-bg:rgba(226,100,100,.12); --err-border:rgba(226,100,100,.35); --err-ink:#f2a3a3;
	--ok:#4cc27a; --ok-soft:rgba(76,194,122,.13); --warn:#e3b45a; --warn-soft:rgba(227,180,90,.13);
	--flaeche:rgba(143,179,201,.04);
	color-scheme:dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--accent:#f26a22; --accent-hover:#ff7f3d; --accent-soft:rgba(242,106,34,.14); --accent-ink:#ffa06b;
		--ice:#8fb3c9; --ice-deep:#b2cddc; --ice-soft:rgba(143,179,201,.13);
		--bg:#0d1217; --surface:#141b22; --surface-2:#18212a; --hover:#1c262f;
		--line:#232d37; --line-strong:#2f3b46;
		--ink:#e9eef2; --ink-2:#b7c1c9; --muted:#87929b;
		--field:#10161c; --field-border:#2f3b46; --focus:rgba(242,106,34,.28);
		--danger:#e26464; --err-bg:rgba(226,100,100,.12); --err-border:rgba(226,100,100,.35); --err-ink:#f2a3a3;
		--ok:#4cc27a; --ok-soft:rgba(76,194,122,.13); --warn:#e3b45a; --warn-soft:rgba(227,180,90,.13);
		--flaeche:rgba(143,179,201,.04);
		color-scheme:dark;
	}
}

* { box-sizing:border-box; margin:0; padding:0; }
html, body { min-height:100%; }
body {
	color:var(--ink); font-family:var(--font-sans); font-size:15px; line-height:1.6;
	-webkit-font-smoothing:antialiased; overflow-x:hidden;
	/* helle schräge Flächen im Hintergrund, wie in der Vorlage — ohne Verlauf/Unschärfe */
	background:
		linear-gradient(116deg, transparent 0 58%, var(--flaeche) 58% 74%, transparent 74%) fixed,
		var(--bg);
}
h1, .marke { font-family:var(--font-head); letter-spacing:-.025em; color:var(--ink); }
h1 { font-size:clamp(1.5rem, 2.6vw, 1.9rem); font-weight:800; line-height:1.2; margin-bottom:4px; }
h2 { font-size:1rem; font-weight:700; color:var(--ink); margin-bottom:14px; }
h3 { font-size:.95rem; font-weight:600; color:var(--ink); margin-bottom:8px; }
p { color:var(--ink-2); }
a { color:var(--ice-deep); text-decoration:none; }
a:hover { text-decoration:underline; text-underline-offset:2px; }
code, .mono { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.9em; }
.icon { flex:none; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* ---------- Marke (Logo + Schriftzug) ---------- */
.marke-block { display:flex; flex-direction:column; align-items:flex-start; text-decoration:none; }
.marke-block:hover { text-decoration:none; }
.logo { display:block; width:150px; height:auto; margin-bottom:10px; }
.logo-dunkel { display:none; }
:root[data-theme="dark"] .logo-normal { display:none; }
:root[data-theme="dark"] .logo-dunkel { display:block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .logo-normal { display:none; }
	:root:not([data-theme="light"]) .logo-dunkel { display:block; }
}
.marke { font-weight:800; font-size:1.35rem; line-height:1.15; white-space:nowrap; }
.marke sup { font-size:.45em; font-weight:600; vertical-align:super; margin-left:1px; }
.marke span { color:var(--accent); }
.marke-zeile { margin-top:6px; font-size:.66rem; font-weight:600; letter-spacing:.3em; text-transform:uppercase; color:var(--ink-2); }

/* ---------- Seitenleiste (angemeldet) ---------- */
body.mit-leiste { display:grid; grid-template-columns:268px minmax(0, 1fr); min-height:100vh; }
.leiste {
	position:sticky; top:0; height:100vh; z-index:10;
	display:flex; flex-direction:column;
	background:var(--surface); border-right:1px solid var(--line);
	padding:0 0 24px;
}
.leiste-kopf { position:relative; z-index:1; display:flex; align-items:flex-start; justify-content:center; gap:12px; padding:28px 24px 26px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.leiste-kopf .marke-block { align-items:center; text-align:center; }
.leiste-nav { position:relative; z-index:1; flex:1; display:flex; flex-direction:column; gap:14px; padding-right:18px; }
.nav-gruppe { display:flex; flex-direction:column; gap:4px; }
.nav-trenner { border-top:1px solid var(--line); margin-left:24px; margin-top:auto; padding-top:14px; }
.nav-trenner a, .nav-trenner .nav-knopf { margin-left:-24px; }
.leiste-nav a, .nav-knopf {
	display:flex; align-items:center; gap:16px; width:100%;
	padding:11px 18px 11px 24px;
	color:var(--ink); font:inherit; font-size:.82rem; font-weight:600; letter-spacing:.07em; text-transform:uppercase; text-align:left;
	background:none; border:0; cursor:pointer; text-decoration:none;
	transition:background .12s, color .12s;
}
.leiste-nav .icon { width:20px; height:20px; color:var(--ink-2); transition:color .12s; }
.leiste-nav a:hover, .nav-knopf:hover { background:var(--hover); text-decoration:none; }
.leiste-nav a.aktiv { background:var(--accent); color:#fff; }
.leiste-nav a.aktiv .icon { color:#fff; }
.menue-knopf {
	display:none; align-items:center; justify-content:center; padding:6px;
	background:var(--surface); color:var(--ink); border:1px solid var(--line-strong);
	border-radius:var(--radius-sm); cursor:pointer;
}

/* ---------- Kopf rechts oben ---------- */
.oben { display:flex; justify-content:flex-end; align-items:center; gap:14px; padding:18px clamp(16px, 4vw, 48px) 0; }
.oben .wer { color:var(--muted); font-size:.84rem; }
.avatar {
	display:grid; place-items:center; width:40px; height:40px; border-radius:50%;
	background:var(--accent); color:#fff; font-weight:700; font-size:.9rem; letter-spacing:.02em;
}
.avatar:hover { background:var(--accent-hover); color:#fff; text-decoration:none; }
/* Menü am Profilkreis: dieselben Einträge wie unten in der Leiste */
.avatar-menue { position:relative; }
.avatar-menue > summary { list-style:none; cursor:pointer; }
.avatar-menue > summary::-webkit-details-marker { display:none; }
.avatar-menue[open] > summary { background:var(--accent-hover); }
.avatar-liste {
	position:absolute; right:0; top:calc(100% + 8px); z-index:20; min-width:220px;
	display:flex; flex-direction:column; padding:6px 0;
	background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-sm);
	box-shadow:0 8px 24px rgba(0,0,0,.14);
}
.avatar-liste a {
	display:flex; align-items:center; gap:14px; padding:10px 18px;
	color:var(--ink); font-size:.8rem; font-weight:600; letter-spacing:.07em; text-transform:uppercase; text-decoration:none;
}
.avatar-liste a:hover { background:var(--hover); text-decoration:none; }
.avatar-liste a.trenner { border-top:1px solid var(--line); margin-top:6px; padding-top:12px; }
.avatar-liste .icon { width:18px; height:18px; color:var(--ink-2); }
/* Hell/Dunkel: zeigt den Modus, in den umgeschaltet wird (hell → Mond, dunkel → Sonne) */
.thema-knopf {
	display:grid; place-items:center; width:40px; height:40px; border-radius:50%;
	background:var(--surface); color:var(--ink-2); border:1px solid var(--line-strong); cursor:pointer;
	transition:background .12s, color .12s;
}
.thema-knopf:hover { background:var(--hover); color:var(--ink); }
.thema-knopf span { display:grid; }
.thema-knopf .thema-sonne { display:none; }
:root[data-theme="dark"] .thema-knopf .thema-mond { display:none; }
:root[data-theme="dark"] .thema-knopf .thema-sonne { display:grid; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .thema-knopf .thema-mond { display:none; }
	:root:not([data-theme="light"]) .thema-knopf .thema-sonne { display:grid; }
}
.nav-knopf.nur-schmal { display:none; }

/* ---------- Kopf ohne Anmeldung ---------- */
.oeffentlich-kopf { display:flex; justify-content:center; padding:40px 16px 0; }
.marke-block.gross { align-items:center; text-align:center; }
.marke-block.gross .logo { width:180px; }

/* ---------- Inhalt ---------- */
.inhalt { display:flex; flex-direction:column; min-width:0; min-height:100vh; }
main { flex:1; width:100%; max-width:1120px; margin:0 auto; padding:28px clamp(16px, 4vw, 48px) 56px; }
main.breit { max-width:1440px; }
main.schmal { max-width:480px; }
.seitenkopf { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:28px; }
.seitenkopf p { margin-top:2px; }
.unterzeile { color:var(--muted); font-size:.9rem; }

.panel {
	background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
	padding:22px 24px; margin-bottom:20px;
}
.raster { display:grid; gap:20px; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); margin-bottom:20px; }
.raster > .panel { margin-bottom:0; }
.stapel > * + * { margin-top:12px; }

/* Überzeile + Abschnittstitel mit „//" */
.kicker { display:block; font-size:.76rem; font-weight:600; letter-spacing:.28em; text-transform:uppercase; color:var(--ink-2); }
/* Gleiche Behandlung auf allen Seiten: Kastentitel mit „//", Seitenkopf mit orangem Strich */
.seitenkopf > :first-child::after { content:""; display:block; width:48px; height:3px; background:var(--accent); margin-top:14px; }
.abschnitt-titel, .panel > h2, .panel-kopf > h2 {
	display:flex; align-items:center; gap:12px;
	font-family:var(--font-sans); font-size:.82rem; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--ink);
	margin-bottom:16px;
}
/* Kastentitel mit Knopf rechts daneben (z. B. „Aufgaben" + „Neue Aufgabe") */
.panel-kopf { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.panel-kopf > h2 { margin-bottom:0; }
.abschnitt-titel::before, .panel > h2::before, .panel-kopf > h2::before {
	content:""; flex:none; width:6px; height:14px; background:var(--accent);
}
.akzent-strich { display:block; width:48px; height:3px; background:var(--accent); margin-top:16px; }

/* ---------- Übersicht (Campus) ---------- */
/* Unterkanten fluchten: Die mittlere Spalte endet mit der Klassen-Kachel (Speicherzeile
   steht in einer eigenen Zeile darunter), die rechte Spalte behält ihre Höhe und sitzt
   als Block unten in der Zeile — also auf derselben Unterkante. Keine Kachel wird gestreckt. */
.campus { display:grid; grid-template-columns:minmax(0, 1fr) 320px; gap:28px; align-items:start; }
.campus-haupt { min-width:0; }
.campus-haupt > .panel:last-child { margin-bottom:0; }
.campus-rand { align-self:end; }
.speicher-zeile { grid-column:1; margin-top:-14px; }
/* min-height bestimmt, wie tief Kennzahlen, Klassen und rechte Spalte beginnen. Das Gebäude
   hängt an der Unterkante des Kopfs und verschwindet hinter der Kennzahlen-Leiste. */
.held { position:relative; min-height:270px; padding:12px 0 28px; }
.held > :not(.held-bild) { position:relative; z-index:1; }
.held ~ * { position:relative; z-index:1; }   /* alles nach dem Kopf liegt vor dem Gebäude */
.held-aktion { margin-top:18px; }
.held-bild {
	position:absolute; z-index:0; right:0; bottom:-46px;
	height:290px; width:auto; max-width:62%; object-fit:contain; object-position:right top; pointer-events:none;
}
/* Dunkelmodus: dunkle Linien hell machen, Orange bleibt Orange */
:root[data-theme="dark"] .held-bild { filter:invert(1) hue-rotate(180deg); opacity:.85; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .held-bild { filter:invert(1) hue-rotate(180deg); opacity:.85; }
}
.held .kicker { margin-bottom:10px; }
.held h1 { font-size:clamp(2rem, 3.4vw, 2.8rem); letter-spacing:-.03em; }

.zahlenleiste {
	display:grid; grid-template-columns:repeat(4, minmax(0, 1fr));
	background:var(--surface); border:1px solid var(--line); padding:20px 24px; margin-bottom:24px;
	position:relative; z-index:1;   /* vor dem Gebäudebild im Kopf, das bis hierher reicht */
}
.zahl { display:flex; align-items:flex-start; gap:14px; min-width:0; padding:4px 18px; }
.zahl + .zahl { border-left:1px solid var(--line-strong); }
.zahl > .icon { width:30px; height:30px; color:var(--ink); }
.zahl .wert { font-family:var(--font-head); font-size:1.9rem; font-weight:800; line-height:1.1; letter-spacing:-.02em; color:var(--ink); }
.zahl .label { font-size:.88rem; color:var(--ink-2); }
.zahl .balken { width:110px; }

.aktionskarte {
	display:flex; align-items:stretch; margin-bottom:24px;
	background:var(--surface); border:1.5px solid var(--accent); color:var(--ink); text-decoration:none;
}
.aktionskarte:hover { text-decoration:none; }
.aktionskarte-text { display:flex; flex-direction:column; gap:4px; padding:22px 28px; }
.aktionskarte .kicker { margin-bottom:6px; }
.aktionskarte-titel { font-family:var(--font-head); font-size:1.65rem; font-weight:800; letter-spacing:-.02em; line-height:1.2; color:var(--ink); }
.aktionskarte-satz { color:var(--ink-2); max-width:46ch; }
.pfeil {
	display:grid; place-items:center; flex:none; margin-left:auto; width:120px;
	background:var(--accent); color:#fff;
	clip-path:polygon(32px 0, 100% 0, 100% 100%, 0 100%);
	transition:background .12s;
}
.pfeil .icon { width:36px; height:36px; }
.aktionskarte:hover .pfeil { background:var(--accent-hover); }
.aktion { display:flex; align-items:stretch; margin-bottom:24px; }
.aktion .aktionskarte { position:relative; z-index:1; flex:1; min-width:0; margin-bottom:0; }
.aktion-bild {
	flex:none; width:300px; margin-left:-14px;
	background-size:cover; background-position:center;
	clip-path:polygon(44px 0, 100% 0, 100% 100%, 0 100%);
}

.campus-rand {
	display:flex; flex-direction:column; gap:28px;
	background:var(--surface); border:1px solid var(--line); padding:24px;
}
.zeitleiste { list-style:none; position:relative; padding-left:28px; }
.zeitleiste::before { content:""; position:absolute; left:5px; top:8px; bottom:8px; width:2px; background:var(--accent); }
.zeitleiste li { position:relative; padding-bottom:16px; }
.zeitleiste li:last-child { padding-bottom:0; }
.zeitleiste li::before {
	content:""; position:absolute; left:-28px; top:5px; width:12px; height:12px; border-radius:50%;
	background:var(--accent); box-shadow:0 0 0 3px var(--surface);
}
.zeitleiste-text { display:block; font-weight:600; color:var(--ink); line-height:1.35; }
.zeitleiste-zeit { display:block; font-size:.82rem; color:var(--muted); }
.mehr { display:inline-block; margin-top:14px; font-size:.84rem; font-weight:600; }

.schnell { list-style:none; }
.schnell a {
	display:flex; align-items:center; gap:16px; padding:12px 0;
	border-bottom:1px solid var(--line); color:var(--ink); font-weight:500;
}
.schnell li:first-child a { border-top:1px solid var(--line); }
.schnell a:hover { color:var(--accent); text-decoration:none; }
.schnell-icon {
	display:grid; place-items:center; flex:none; width:42px; height:42px;
	border:1.5px solid var(--accent); color:var(--accent);
}
.schnell-icon .icon { width:22px; height:22px; }

.schritte {
	grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:18px 28px;
	background:var(--surface); border:1px solid var(--line); padding:18px 28px;
}
.schritte .abschnitt-titel { margin:0; }
.schritte-liste { list-style:none; display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.schritte-liste li { display:flex; align-items:center; gap:12px; }
.schritte-liste li + li::before { content:"→"; color:var(--muted); font-size:1.1rem; }
.schritte-liste a {
	display:inline-flex; align-items:center; gap:10px; padding:9px 22px;
	border:1.5px solid var(--line-strong); color:var(--ink); font-weight:500; text-decoration:none;
	transform:skewX(-16deg);
}
.schritte-liste a > * { transform:skewX(16deg); }
.schritte-liste a:hover { border-color:var(--accent); text-decoration:none; }
.schritte-liste .aktuell a { background:var(--accent); border-color:var(--accent); color:#fff; }
.schritte-liste .erledigt a { color:var(--muted); }
.schritt-nr {
	display:inline-grid; place-items:center; width:26px; height:26px; border-radius:50%;
	border:1.5px solid currentColor; font-size:.82rem; font-weight:600;
}
.schritt-nr .icon { width:14px; height:14px; }

/* Kennzahlen (übrige Seiten) */
.kennzahlen { display:grid; gap:16px; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); margin-bottom:24px; }
.kennzahl { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px 20px; }
.kennzahl .wert { font-family:var(--font-head); font-size:1.6rem; font-weight:800; line-height:1.15; color:var(--ink); }
.kennzahl .label { color:var(--muted); font-size:.84rem; margin-top:2px; }

/* Auslastungsbalken */
.balken { height:5px; background:var(--hover); overflow:hidden; margin-top:8px; }
.balken > span { display:block; height:100%; background:var(--ice); }
.balken.voll > span { background:var(--accent); }

/* ---------- Knöpfe ---------- */
.knopf, button.knopf {
	display:inline-flex; align-items:center; justify-content:center; gap:8px; cursor:pointer;
	font:inherit; font-weight:600; font-size:.9rem; line-height:1.2; white-space:nowrap;
	padding:9px 18px; border-radius:var(--radius-sm);
	border:1.5px solid var(--accent); background:var(--accent); color:#fff;
	transition:background .12s, border-color .12s, color .12s;
}
.knopf .icon { width:18px; height:18px; }
.knopf:hover { background:var(--accent-hover); border-color:var(--accent-hover); color:#fff; text-decoration:none; }
.knopf.zweit { background:var(--surface); color:var(--ink); border-color:var(--line-strong); }
.knopf.zweit:hover { background:var(--hover); color:var(--ink); border-color:var(--ink-2); }
.knopf.gefahr { background:transparent; color:var(--danger); border-color:var(--err-border); }
.knopf.gefahr:hover { background:var(--err-bg); color:var(--danger); }
.knopf.klein { padding:6px 12px; font-size:.82rem; }
.knopfleiste { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
form.inline { display:inline; }
.link-knopf {
	background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer;
	text-decoration:underline; text-underline-offset:2px;
}
.neben { margin-left:14px; }

/* ---------- Formulare ---------- */
label { display:block; font-weight:600; font-size:.86rem; margin-bottom:6px; color:var(--ink-2); }
input[type=search], input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local],
input[type=date], input[type=url], input[type=file], input[type=tel], select, textarea {
	width:100%; font:inherit; color:var(--ink); background:var(--field); border:1px solid var(--field-border);
	border-radius:var(--radius-sm); padding:9px 12px; transition:border-color .12s, box-shadow .12s;
}
textarea { min-height:110px; resize:vertical; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--focus); }
input::placeholder, textarea::placeholder { color:var(--muted); opacity:.8; }
.feld { margin-bottom:16px; }
.feld .hilfe { color:var(--muted); font-size:.8rem; margin-top:5px; }
.feld-fehler, .form-error-message { color:var(--err-ink); font-size:.82rem; margin-top:5px; }
.felder { display:grid; gap:0 16px; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); }
.code-eingabe { font-family:ui-monospace,Consolas,monospace; letter-spacing:.08em; text-transform:uppercase; }
.check { display:flex; align-items:center; gap:8px; font-weight:500; color:var(--ink-2); }
.check input { width:16px; height:16px; accent-color:var(--accent); }

/* ---------- Tabellen ---------- */
.tabelle-huelle { overflow-x:auto; }
table.tabelle { width:100%; border-collapse:collapse; font-size:.9rem; }
.tabelle th {
	text-align:left; font-weight:600; color:var(--muted); font-size:.74rem; text-transform:uppercase; letter-spacing:.08em;
	padding:8px 12px; border-bottom:1px solid var(--line-strong); white-space:nowrap;
}
.tabelle td { padding:12px; border-bottom:1px solid var(--line); vertical-align:top; color:var(--ink-2); }
.tabelle td strong { color:var(--ink); font-weight:600; }
.tabelle td a strong { color:var(--ice-deep); }
.tabelle tbody tr:hover td { background:var(--surface-2); }
.tabelle tr:last-child td { border-bottom:none; }
.tabelle th:first-child, .tabelle td:first-child { padding-left:0; }
.tabelle th:last-child, .tabelle td:last-child { padding-right:0; }
.tabelle .rechts { text-align:right; }
.leer {
	color:var(--muted); font-size:.9rem; text-align:center;
	padding:20px 16px; border:1px dashed var(--line-strong);
}

/* ---------- Plaketten, Meldungen ---------- */
.plakette {
	display:inline-flex; align-items:center; font-size:.74rem; font-weight:600; line-height:1.5;
	padding:1px 8px; background:var(--ice-soft); color:var(--ice-deep); white-space:nowrap;
}
.plakette.ok { background:var(--ok-soft); color:var(--ok); }
.plakette.warn { background:var(--warn-soft); color:var(--warn); }
.plakette.fehler { background:var(--err-bg); color:var(--err-ink); }
.plakette.aktion { background:var(--accent-soft); color:var(--accent-ink); }
.meldung {
	padding:12px 16px; margin-bottom:20px;
	background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--ice); color:var(--ink);
}
.meldung a { font-weight:600; }
.meldung.ok { border-left-color:var(--ok); }
.meldung.fehler { background:var(--err-bg); border-color:var(--err-border); border-left-color:var(--danger); color:var(--err-ink); }
.meldung.warn { border-left-color:var(--accent); }
.geheim {
	display:inline-block; font-family:ui-monospace,Consolas,monospace; font-size:1.3rem; font-weight:700; letter-spacing:.12em;
	background:var(--accent-soft); color:var(--accent-ink); padding:8px 14px;
}

/* ---------- Anmeldung ---------- */
.karte-anmeldung { margin-top:clamp(16px, 4vh, 36px); padding:32px; border-top:3px solid var(--accent); }
.karte-anmeldung h1 { margin-bottom:4px; }
.karte-anmeldung .unter { margin-bottom:24px; color:var(--muted); }
.karte-anmeldung .knopf[type=submit] { min-width:140px; }
.trenner { border:none; border-top:1px solid var(--line); margin:24px 0; }

.fuss { text-align:center; color:var(--muted); font-size:.8rem; padding:20px 16px 28px; }
.fuss a { color:var(--muted); }

.text-vorschau { white-space:pre-wrap; color:var(--ink-2); }
.unterlage-form { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }

/* ---------- Sponsor auf der Campus-Seite (Klick auf „Alexander Maier GmbH“ blendet aus) ---------- */
.sponsor { margin-top:28px; }
.sponsor .kicker { margin-bottom:12px; }
.sponsor-logo { display:block; width:100%; max-width:220px; height:auto; background:#fff; padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius); box-sizing:content-box; }
/* Sponsor-Logo standardmäßig ausgeblendet; einblenden per Klick auf „Alexander Maier GmbH“ (data-sponsor="an") */
:root:not([data-sponsor="an"]) .sponsor { display:none; }
.sponsor-schalter { cursor:default; user-select:none; }

/* ---------- Downloads (Trainingskoffer) ---------- */
.knopf.gross { padding:13px 26px; font-size:1rem; }
.knopf.gross .icon { width:20px; height:20px; }
.koffer {
	display:grid; grid-template-columns:280px minmax(0, 1fr); gap:32px; align-items:start;
	background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--accent);
	border-radius:var(--radius); padding:28px; margin-bottom:24px;
}
.koffer-bald { border-top-color:var(--line-strong); }
.koffer-bild {
	display:grid; place-items:center; aspect-ratio:4 / 3; overflow:hidden;
	background:var(--ice-soft); color:var(--ice-deep); border-radius:var(--radius);
}
.koffer-bild img { width:100%; height:100%; object-fit:cover; display:block; }
.koffer-bild > .icon { width:72px; height:72px; stroke-width:1.25; }
.koffer-bald .koffer-bild { filter:grayscale(1); opacity:.7; }
.koffer-text { display:flex; flex-direction:column; gap:12px; min-width:0; }
.koffer-text .kicker { margin:0; }
.koffer-name { font-family:var(--font-head); font-size:1.9rem; font-weight:800; letter-spacing:-.02em; line-height:1.15; margin:0; }
.koffer-kurz { font-size:1.02rem; color:var(--ink); max-width:62ch; }
.koffer-text .text-vorschau { max-width:72ch; }
.koffer-system { display:flex; align-items:center; gap:10px; font-size:.88rem; color:var(--ink-2); }
.koffer-system .icon { width:18px; height:18px; color:var(--muted); }
.koffer-download { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin-top:6px; }
.pruefsumme { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 10px; font-size:.82rem; color:var(--muted); }
.pruefsumme-label { font-weight:600; letter-spacing:.06em; }
.pruefsumme-wert { font-family:ui-monospace,Consolas,monospace; font-size:.8rem; color:var(--ink-2); overflow-wrap:anywhere; }
.pruefsumme-wert.klein { display:block; font-size:.74rem; color:var(--muted); margin-top:4px; }
.koffer-details { border-top:1px solid var(--line); padding-top:12px; }
.koffer-details summary { cursor:pointer; font-weight:600; font-size:.9rem; color:var(--ink); }
.koffer-details summary:hover { color:var(--accent); }
.koffer-details[open] summary { margin-bottom:10px; }
.versionsliste { list-style:none; }
.versionsliste li { padding:12px 0; border-top:1px solid var(--line); }
.versionsliste li:first-child { border-top:0; padding-top:0; }
.versionsliste-kopf { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin-bottom:4px; }
.versionsliste-kopf .knopf { margin-left:auto; }
.koffer-vorschau { display:block; width:200px; aspect-ratio:4 / 3; object-fit:cover; border:1px solid var(--line); border-radius:var(--radius); margin-bottom:10px; }

/* ---------- Mittelbreit: rechte Spalte unter den Inhalt ---------- */
@media (max-width: 1180px) {
	.campus { grid-template-columns:minmax(0, 1fr); }
	.zahlenleiste { grid-template-columns:repeat(2, minmax(0, 1fr)); row-gap:16px; }
	.zahl:nth-child(3) { border-left:0; }
	.aktion-bild { width:220px; }
}

/* ---------- Schmal / Mobil ---------- */
@media (max-width: 900px) {
	body.mit-leiste { display:block; }
	.leiste { position:sticky; top:0; z-index:50; height:auto; padding:0; border-right:0; border-bottom:1px solid var(--line); }
	.leiste-kopf { align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:0; margin:0; }
	.leiste-kopf .marke-block { align-items:flex-start; text-align:left; }
	.leiste .logo, .leiste .marke-zeile { display:none !important; }
	.leiste .marke { font-size:1.15rem; }
	.menue-knopf { display:inline-flex; }
	.leiste-nav { display:none; padding:0 16px 14px 0; }
	.leiste.offen .leiste-nav { display:flex; }
	.oben { display:none; }
	.nav-knopf.nur-schmal { display:flex; }
	.koffer { grid-template-columns:minmax(0, 1fr); gap:18px; padding:18px 16px; }
	.koffer-bild { max-width:320px; }
	.koffer-name { font-size:1.5rem; }
	main { padding:24px 16px 48px; }
	.panel, .campus-rand { padding:18px 16px; }
	.held h1 { font-size:1.75rem; }
	.held { min-height:0; }
	.held-bild, .aktion-bild { display:none; }
	.zahlenleiste { padding:16px; }
	.zahl { padding:4px 10px; }
	.zahl .wert { font-size:1.5rem; }
	.zahl > .icon { width:24px; height:24px; }
	.zahl .balken { width:80px; }
	.aktionskarte-text { padding:18px; }
	.aktionskarte-titel { font-size:1.3rem; }
	.pfeil { width:64px; clip-path:polygon(18px 0, 100% 0, 100% 100%, 0 100%); }
	.schritte { padding:16px; }
	.tabelle .weg-mobil { display:none; }
	.seitenkopf { align-items:flex-start; }
	.karte-anmeldung { padding:22px 18px; }
}

/* Öffentliche Einstiegsseite: alle Wege zu Kanoq */
.einstieg { max-width:1100px; margin:0 auto; }
.einstieg .aktionskarte { margin-bottom:12px; }
.einstieg-zeile {
	display:flex; align-items:center; gap:14px; margin-bottom:36px; padding:14px 22px;
	background:var(--surface); border:1px solid var(--line-strong); color:var(--ink-2); text-decoration:none;
	transition:border-color .12s;
}
.einstieg-zeile:hover { text-decoration:none; border-color:var(--accent); }
.einstieg-zeile strong { color:var(--ink); }
.einstieg-zeile > .icon { flex:none; width:26px; height:26px; color:var(--accent); }
.einstieg-zeile > span:first-of-type { flex:1; min-width:0; }
.einstieg-zeile .einstieg-weiter { flex:none; }
.einstieg-zeile.shop { margin-top:36px; margin-bottom:0; }
.einstieg-kacheln { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px; }
.einstieg-kachel {
	display:flex; flex-direction:column; gap:8px; padding:22px 24px;
	background:var(--surface); border:1px solid var(--line-strong); color:var(--ink); text-decoration:none;
	transition:border-color .12s;
}
.einstieg-kachel:hover { text-decoration:none; border-color:var(--accent); }
.einstieg-kachel > .icon { width:30px; height:30px; color:var(--accent); }
.einstieg-titel { font-family:var(--font-head); font-size:1.25rem; font-weight:800; letter-spacing:-.01em; }
.einstieg-satz { color:var(--ink-2); flex:1; }
.einstieg-weiter { display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--accent); }
.einstieg-weiter .icon { width:16px; height:16px; }
.einstieg-kachel.demnaechst { opacity:.65; }
.einstieg-kachel.demnaechst:hover { border-color:var(--line-strong); }
.einstieg-kachel .plakette { margin-left:6px; vertical-align:middle; }
@media (max-width: 900px) { .einstieg-kacheln { grid-template-columns:1fr; } .einstieg-zeile { flex-wrap:wrap; } }

/* Formular „Campus anfragen“ */
label .leise { font-weight:400; color:var(--muted); }
.fangfeld { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
tr.leise > td { opacity:.6; }

/* ---------- Erscheinungsbild je Organisation (Hersteller-Campus) ---------- */
.logo-org { display:block; max-width:190px; max-height:72px; width:auto; height:auto; margin-bottom:10px; }
.marke-org.gross .logo-org { max-width:240px; max-height:96px; }
.marke-org .marke-zeile { letter-spacing:.22em; }
.marke-org .logo-dunkel { display:none; }
:root[data-theme="dark"] .marke-org .logo-normal { display:none; }
:root[data-theme="dark"] .marke-org .logo-dunkel { display:block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .marke-org .logo-normal { display:none; }
	:root:not([data-theme="light"]) .marke-org .logo-dunkel { display:block; }
}
.marke-raster { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px; }
.marke-raster > .panel { margin-bottom:0; }
.marke-raster + .panel { margin-top:18px; }
.farbwahl { display:flex; gap:8px; align-items:center; }
.farbwahl input[type=color] { width:44px; height:38px; padding:2px; border:1px solid var(--field-border); background:var(--field); cursor:pointer; flex:none; }
.logo-vorschau { display:grid; place-items:center; height:96px; margin-bottom:8px; border:1px solid var(--line-strong); }
.logo-vorschau img { max-width:80%; max-height:72px; }
.logo-form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.logo-form input[type=file] { flex:1; min-width:180px; }
.marke-vorschau { display:grid; grid-template-columns:220px 1fr; border:1px solid var(--line-strong); background:#fff; color:#16202b; }
.marke-vorschau-leiste { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:18px; border-right:1px solid #e2e6ea; font-size:.8rem; font-weight:600; letter-spacing:.08em; }
.marke-vorschau-leiste img { max-width:160px; max-height:56px; }
.marke-vorschau-zeile { font-size:.6rem; letter-spacing:.22em; text-transform:uppercase; color:#3b4752; margin-bottom:8px; }
.marke-vorschau-aktiv { color:#fff; padding:6px 12px; align-self:stretch; }
.marke-vorschau-inhalt { display:flex; flex-direction:column; align-items:flex-start; gap:14px; padding:24px; }
@media (max-width: 900px) { .marke-raster, .marke-vorschau { grid-template-columns:1fr; } }
.marke-raster .logo-vorschau + .unterzeile, .marke-vorschau + .unterzeile, .marke-kopfleiste + .unterzeile { margin:0 0 14px; }
.marke-kopfleiste { display:flex; align-items:center; gap:14px; height:64px; padding:0 18px; margin-top:4px; border:1px solid var(--line-strong); }
.marke-kopfleiste img { max-height:44px; max-width:200px; }
.marke-kopfleiste .leise { color:rgba(255,255,255,.7); }
.marke-antrag > p { margin-bottom:14px; }
.marke-antrag-freigabe { border-left:4px solid var(--accent); }
.marke-aenderung { margin-top:14px; }
.marke-aenderung > summary { cursor:pointer; font-weight:600; color:var(--accent); margin-bottom:10px; }
.marke-aenderung .knopf { margin-right:8px; }
/* Campus-Bilder erst zeigen, wenn marke-bilder.js das Orange umgefärbt hat (kein oranges Aufblitzen) */
html[data-marke-farbe] .held-bild, html[data-marke-farbe] .aktion-bild { visibility:hidden; }

/* ---------- Anleitung „So funktioniert's“ ---------- */
.anleitung { max-width:1000px; margin:0 auto; }
.anleitung .held { min-height:0; }
.anleitung .panel ul, .anleitung .panel ol { margin:6px 0 10px 22px; display:flex; flex-direction:column; gap:6px; }
.anleitung .panel p + p, .anleitung .panel ul + p, .anleitung .panel ol + p, .anleitung .tabelle-huelle + p { margin-top:10px; }
.anleitung .panel .tabelle-huelle { margin:10px 0; }
.anleitung-schritt { display:flex; gap:20px; align-items:flex-start; scroll-margin-top:20px; }
.schritt-nummer {
	flex:none; display:grid; place-items:center; width:44px; height:44px;
	background:var(--accent); color:#fff; font-family:var(--font-head); font-weight:800; font-size:1.3rem;
	clip-path:polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.schritt-inhalt { flex:1; min-width:0; }
.schritt-inhalt h2 { margin-bottom:8px; }
.einstieg-hinweis { margin-top:14px; }
.einstieg-hinweis a { display:inline-flex; align-items:center; gap:6px; font-weight:600; }
.einstieg-hinweis .icon { width:16px; height:16px; }
.einstieg-hinweis a + a { margin-left:22px; }

/* ---------- Häufige Fragen ---------- */
.faq-suche { position:relative; margin:0 0 18px; }
.faq-suche .icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:var(--muted); pointer-events:none; }
.faq-suche input[type=search] { width:100%; padding-left:42px; font-size:1rem; height:46px; }
.faq-leer { margin-bottom:18px; }
.faq-gruppe[hidden], .faq-frage[hidden], .faq-leer[hidden], .faq-fuss[hidden] { display:none; }
.faq-frage { border-top:1px solid var(--line); scroll-margin-top:20px; }
.faq-frage:first-of-type { border-top:0; }
.faq-frage > summary { cursor:pointer; list-style:none; padding:12px 28px 12px 0; font-weight:600; position:relative; }
.faq-frage > summary::-webkit-details-marker { display:none; }
.faq-frage > summary::after { content:'+'; position:absolute; right:4px; top:10px; font-size:1.2rem; color:var(--accent); }
.faq-frage[open] > summary::after { content:'–'; }
.faq-frage > summary:hover { color:var(--accent); }
.faq-frage > p { padding:0 0 14px; max-width:75ch; }

/* ---------- Demo-Campus ---------- */
.einstieg-zeile.demo-zeile { margin-top:-24px; }
.demo-knoepfe { flex:none; display:flex; gap:8px; }
.demo-aktion { display:flex; flex-wrap:wrap; gap:10px; }
@media (max-width: 900px) { .demo-knoepfe { width:100%; } }

/* ---------- Sprachumschalter (Fußzeile) ---------- */
.sprachwahl { display:flex; justify-content:center; gap:10px; margin-top:8px; font-size:.78rem; letter-spacing:.06em; }
.sprachwahl strong { color:var(--ink-2); }

/* ---------- Nutzungsvertrag (Annahmeseite der Organisation, Download-Bereich) ---------- */
.hinweis-kasten {
	border:2px solid var(--accent); background:var(--accent-soft); color:var(--ink);
	padding:18px 22px; margin-bottom:20px;
}
.hinweis-kasten-titel { font-size:1rem; font-weight:700; color:var(--accent-ink); margin-bottom:8px; }
.hinweis-kasten p + p { margin-top:8px; }
.vertrag-rahmen {
	max-height:420px; overflow-y:auto; padding:16px 18px;
	border:1px solid var(--line-strong); background:var(--surface-2);
}
.vertragstext h2 { font-size:1.15rem; margin-bottom:2px; }
.vertragstext h3 { font-size:.95rem; margin:16px 0 4px; }
.vertragstext p { font-size:.9rem; color:var(--ink-2); }
.vertragstext p + p { margin-top:6px; }
.vertrag-annahme { margin-top:18px; display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.check.check-lang { align-items:flex-start; }
.check.check-lang input { flex:none; margin-top:4px; }
.zustimmung { display:block; margin-top:4px; }

/* Lange Listen (Plattform → Organisationen): Kopf mit Suche + Sortierung, gesteuert von js/tabellen-werkzeug.js */
.liste-kopf { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.liste-kopf h2 { margin:0; }
.liste-werkzeuge { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.liste-werkzeuge input[type=search] { width:260px; max-width:100%; }
.liste-werkzeuge select { width:auto; }
.liste-kopf .leise { font-weight:400; color:var(--muted); }
