/* LIDO-Portal — Design-Tokens + Basiskomponenten.
   Quelle: ui-mocks/lido-v2-design-system.html (V2-Design-System, Stefan).
   Dark ist STANDARD (html[data-theme] default dark), Light vorhanden.
   Eine Token-Quelle — keine handkopierten Farbwerte in Seiten-CSS. */

:root {
  --r-8: 8px;  --r-12: 12px; --r-16: 16px; --r-20: 20px; --r-26: 26px;
  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px; --s-32: 32px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-press: 140ms; --t-pop: 180ms; --t-view: 220ms;
  --shadow-elev: 0 16px 36px var(--sh-dark), 0 5px 12px var(--sh-dark);
  --shadow-elev-sm: 0 8px 20px var(--sh-dark), 0 3px 7px var(--sh-dark);
}

html[data-theme="dark"], html:not([data-theme]) {
  --bg-base:#1a1c20; --surface:#212329; --surface-2:#262931; --hover:#2f323a;
  --border:#34373f; --border-subtle:#2a2d35;
  --text:#e8e8ec; --text-2:#b4b4c4; --muted:#8a8a9e;
  --accent:#c8ff00; --accent-ink:#15180a; --accent-dim:rgba(200,255,0,0.14); --accent-glow:rgba(200,255,0,0.40);
  --sh-light:rgba(255,255,255,0.04); --sh-dark:rgba(0,0,0,0.50);
  --error-fg:#ff5d63; --error-bg:rgba(255,93,99,0.14);
  --warn-fg:#f0b429;  --warn-bg:rgba(240,180,41,0.14);
  --ki-fg:#4d9bff;    --ki-bg:rgba(77,155,255,0.14);
  --info-fg:#9aa0b4;  --info-bg:rgba(154,160,180,0.14);
  --ok-fg:#2ecc71;    --ok-bg:rgba(46,204,113,0.14);
  --pruefen-fg:#5fd0c4; --pruefen-bg:rgba(95,208,196,0.14);
  --aimark-fg:#b07cff; --aimark-bg:rgba(176,124,255,0.14);
  --track:#1e2025;
}

html[data-theme="light"] {
  --bg-base:#e9ebf0; --surface:#f2f4f8; --surface-2:#ffffff; --hover:#e4e7ee;
  --border:#d3d7e0; --border-subtle:#e1e4ea;
  --text:#1b1d22; --text-2:#4a4e59; --muted:#7a8090;
  --accent:#c0283a; --accent-ink:#ffffff; --accent-dim:rgba(192,40,58,0.10); --accent-glow:rgba(192,40,58,0.28);
  --sh-light:rgba(255,255,255,0.9); --sh-dark:rgba(170,180,200,0.45);
  --error-fg:#e0443a; --error-bg:rgba(224,68,58,0.10);
  --warn-fg:#a15c07;  --warn-bg:rgba(180,110,20,0.12);
  --ki-fg:#1d6fd6;    --ki-bg:rgba(29,111,214,0.10);
  --info-fg:#6b7280;  --info-bg:rgba(107,114,128,0.10);
  --ok-fg:#15803d;    --ok-bg:rgba(34,160,80,0.10);
  --pruefen-fg:#0e8f82; --pruefen-bg:rgba(14,143,130,0.12);
  --aimark-fg:#7c3aed; --aimark-bg:rgba(124,58,237,0.10);
  --track:#e3e6ec;
}

/* Hausschrift des Design-Systems. Bewusst LOKAL ausgeliefert statt von einem
   Font-Dienst: Das Portal soll ohne fremde Abhaengigkeiten laufen (Autonomie-
   Grundsatz) und keine Besucher-IPs an Dritte melden. Variable Font, 400-800 in
   zwei Dateien (~48 KB gesamt). Plus Jakarta Sans steht unter der SIL Open Font
   License — Selbsthosting ist ausdruecklich erlaubt. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
                 U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
                 U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg-base); color: var(--text);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Inhalts-Container — fehlte bisher komplett, dadurch lief der Inhalt randlos
   ueber die volle Fensterbreite. Wert und Innenabstand 1:1 aus dem
   Design-System (lido-v2-design-system.html: .wrap). Gilt fuer ALLE Seiten. */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--s-32) var(--s-24) 96px;
}
@media (max-width: 640px) {
  .wrap { padding: var(--s-24) var(--s-16) 64px; }
}

/* Gemeinsamer Seitenkopf: Wortmarke mit Zeichen. Stand bisher nur auf der
   Startseite — die vier Unterseiten hatten gar keinen, was den Wechsel
   zwischen ihnen wie einen Bruch wirken liess. */
.brand {
  display: inline-flex; align-items: center; gap: var(--s-8);
  font-weight: 700; letter-spacing: -0.01em;
}
.brand img { width: 26px; height: 26px; display: block; border-radius: 6px; }
.brand .brand-name { font-size: 17px; }
.brand .brand-sub { color: var(--text-2); font-weight: 500; font-size: 13px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-16);
  box-shadow: -6px -6px 12px var(--sh-light), 6px 6px 14px var(--sh-dark);
  padding: var(--s-16);
}
.card-elevated {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-20);
  box-shadow: var(--shadow-elev);
  padding: var(--s-24);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
  border: 1px solid var(--border-subtle);
  background: var(--surface); color: var(--text);
  padding: 9px 16px; border-radius: var(--r-12);
  font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: -4px -4px 9px var(--sh-light), 4px 4px 10px var(--sh-dark);
  transition: transform var(--t-press) var(--ease-out),
              box-shadow var(--t-press) var(--ease-out),
              background-color var(--t-press) var(--ease-out),
              color var(--t-press) var(--ease-out);
}
.btn:active { transform: scale(0.97); box-shadow: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent;
  box-shadow: -4px -4px 9px var(--sh-light), 4px 4px 12px var(--sh-dark), 0 0 0 0 var(--accent-glow); }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }

label { display: block; font-size: 13px; font-weight: 600; margin: var(--s-12) 0 var(--s-4); color: var(--text-2); }
input[type="text"], input[type="email"] {
  width: 100%; padding: 10px 12px; font-size: 15px; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-12);
  background: var(--bg-base);
  box-shadow: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light);
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px;
}
.badge-info    { color: var(--info-fg); background: var(--info-bg); }
.badge-ok      { color: var(--ok-fg); background: var(--ok-bg); }
.badge-warn    { color: var(--warn-fg); background: var(--warn-bg); }
.badge-error   { color: var(--error-fg); background: var(--error-bg); }
.badge-ki      { color: var(--ki-fg); background: var(--ki-bg); }
.badge-pruefen { color: var(--pruefen-fg); background: var(--pruefen-bg); }

.progress { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); border-radius: 999px;
  transition: width var(--t-pop) var(--ease-out); }

/* Datei-Zeile: die Blocker-Meldung bricht als eigene, volle Zeile um. */
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); }
.file-row .fname { flex: 1 1 40%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .progress { flex: 1 1 90px; min-width: 60px; }
.file-row .finfo { color: var(--text-2); font-weight: 600; }
.file-row .fblocker { flex-basis: 100%; color: var(--error-fg); font-size: 12.5px; }

.dropzone {
  border: 2px dashed var(--border); border-radius: var(--r-16);
  padding: var(--s-32); text-align: center; color: var(--muted);
  transition: border-color var(--t-press) var(--ease-out), background var(--t-press) var(--ease-out);
  cursor: pointer;
}
.dropzone.drag { border-color: var(--accent); background: var(--accent-dim); color: var(--text); }

.portal-footer {
  margin-top: auto; padding: var(--s-16) var(--s-24);
  font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.7;
}
.portal-footer a { color: var(--text-2); text-decoration: none; }
.portal-footer a:hover { text-decoration: underline; }

.msg { font-size: 13px; min-height: 18px; margin-top: var(--s-12); }
.msg.err { color: var(--error-fg); }
.msg.ok { color: var(--ok-fg); }
.hidden { display: none !important; }

.report-link { font-size: 12.5px; font-weight: 600; color: var(--accent);
  text-decoration: none; margin-left: var(--s-8); }
.report-link:hover { text-decoration: underline; }

/* ============================================================
   REDESIGN-KOMPONENTEN (SPEC 05) — rein additiv.
   Struktur aus dem Klick-Dummy (portal-mock), Optik/Werte aus dem
   Design-System (lido-v2-design-system.html). Ausschliesslich vorhandene
   Tokens. Funktioniert in HELL und DUNKEL. Der Kopf und die Seiten werden
   erst im naechsten Schritt umgebaut — hier nur die Basis.
   ============================================================ */

/* --- Tastatur-Fokus: durchgaengig sichtbar (Audit-Befund). Nur bei
   Tastaturbedienung, nicht beim Mausklick. --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-8);
}

/* --- Sticky-Kopf mit Milchglas-Hintergrund.
   Der durchscheinende Grund kommt aus dem aktiven Flaechen-Token, damit er
   in beiden Themen stimmt (kein hartkodiertes Dummy-Schwarz). color-mix
   liefert die Transparenz; die erste Zeile ist der Rueckfall ohne Blur. --- */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.hdr .hdr-inner {
  display: flex; align-items: center; gap: var(--s-16);
  height: 62px; max-width: 1180px; margin: 0 auto;
  padding: 0 var(--s-24);
}
@media (max-width: 640px) { .hdr .hdr-inner { padding: 0 var(--s-16); gap: var(--s-12); } }
/* Wortmarke „LIDO" — das „DO" traegt die Akzentfarbe. */
.hdr .logo {
  font-weight: 800; font-size: 19px; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; color: var(--text);
}
/* Wortmarke ist EIN Wort: LI + DO ohne Zwischenraum. Kein flex-gap hier —
   der trennte "LI" und "DO" sichtbar (der gap war fuer ein Logo-Icon gedacht,
   das der Header-Text nicht hat). */
.hdr .logo b { color: var(--accent); font-weight: 800; }
/* Kein Link-Unterstrich im Kopf (Nav-Reiter, Wortmarke, Abmelden). */
.hdr a { text-decoration: none; }
/* Navigations-Reiter */
.hdr .nav { display: flex; gap: var(--s-4); margin-left: var(--s-8); }
.hdr .nav a {
  padding: 7px 12px; border-radius: var(--r-8);
  color: var(--text-2); font-weight: 500; font-size: 14px;
  transition: color var(--t-press) var(--ease-out), background-color var(--t-press) var(--ease-out);
}
.hdr .nav a.on { background: var(--surface-2); color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .hdr .nav a:hover:not(.on) { background: var(--hover); color: var(--text); }
}
.hdr .spacer { flex: 1; }
.hdr .userbox { display: flex; align-items: center; gap: var(--s-12); font-size: 13px; }
.hdr .userbox .uname { color: var(--text-2); }
@media (max-width: 640px) { .hdr .userbox .uname { display: none; } }

/* --- Avatar: Kreis in Akzentfarbe mit Initialen. --- */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

/* --- Hell/Dunkel-Umschalter (siehe theme.js). Neumorpher Knopf, Sonne/Mond
   themenabhaengig. --- */
.theme-toggle {
  position: relative; width: 40px; height: 40px; border-radius: var(--r-12);
  background: var(--surface); border: 1px solid var(--border-subtle); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  box-shadow: -4px -4px 9px var(--sh-light), 4px 4px 10px var(--sh-dark);
  transition: transform var(--t-press) var(--ease-out),
              box-shadow var(--t-press) var(--ease-out),
              color var(--t-press) var(--ease-out);
}
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle:active { transform: scale(0.97);
  box-shadow: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light); }
.theme-toggle .moon { display: none; }
.theme-toggle .sun { display: block; }
html[data-theme="light"] .theme-toggle .moon { display: block; }
html[data-theme="light"] .theme-toggle .sun { display: none; }
@media (hover: hover) and (pointer: fine) { .theme-toggle:hover { color: var(--accent); } }

/* --- Status-Pillen (ok/warn/proc/wait/err) aus den Severity-Tokens.
   Die bestehenden .badge bleiben unberuehrt — .pill steht daneben. --- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.pill .dot { background: currentColor; }
.pill.ok   { background: var(--ok-bg);    color: var(--ok-fg); }
.pill.warn { background: var(--warn-bg);  color: var(--warn-fg); }
.pill.proc { background: var(--ki-bg);    color: var(--ki-fg); }
.pill.wait { background: var(--info-bg);  color: var(--info-fg); }
.pill.err  { background: var(--error-bg); color: var(--error-fg); }

/* Generischer Status-Punkt (im Dummy als eigenstaendiges Element genutzt). */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* --- Ja/Nein-Schalter. Struktur aus dem Dummy (<div class="toggle">, Zustand
   .on), Optik neumorph aus dem Design-System. --- */
.toggle {
  position: relative; width: 46px; height: 26px; border-radius: 999px; flex: none;
  background: var(--surface); cursor: pointer; user-select: none;
  box-shadow: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light);
  transition: background-color var(--t-pop) var(--ease-out);
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--surface-2);
  box-shadow: -2px -2px 4px var(--sh-light), 2px 2px 4px var(--sh-dark);
  transition: transform var(--t-pop) var(--ease-out), background-color var(--t-pop) var(--ease-out);
}
.toggle.on { background: var(--accent); box-shadow: inset 1px 1px 3px rgba(0,0,0,0.25); }
.toggle.on::after { transform: translateX(20px); background: var(--accent-ink); }

/* --- Segmented Control (Entweder-Oder). Dummy nutzt .on fuer aktiv; .active
   zusaetzlich unterstuetzt. --- */
.seg {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-12);
  background: var(--surface);
  box-shadow: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light);
}
.seg button {
  border: none; background: transparent; color: var(--text-2);
  padding: 6px 14px; border-radius: var(--r-8); font-size: 13px; font-weight: 600;
  transition: color var(--t-press) var(--ease-out),
              background-color var(--t-press) var(--ease-out),
              box-shadow var(--t-press) var(--ease-out);
}
.seg button:active { transform: scale(0.97); }
.seg button.on, .seg button.active {
  background: var(--surface); color: var(--text);
  box-shadow: -3px -3px 6px var(--sh-light), 3px 3px 7px var(--sh-dark);
}

/* --- Admin-Sub-Navigation (Verwaltung · Server · Formular). Dezenter als die
   Haupt-Nav, greift das Segmented-Muster auf, aber mit echten Seiten-Links.
   Steht auf allen drei Admin-Seiten direkt unter der "Admin"-Ueberschrift und
   markiert den aktiven Unterbereich (.on). --- */
.admin-subnav {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: var(--s-24);
  border-radius: var(--r-12); background: var(--surface);
  box-shadow: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light);
}
.admin-subnav a {
  padding: 6px 14px; border-radius: var(--r-8); text-decoration: none;
  color: var(--text-2); font-weight: 600; font-size: 13px;
  transition: color var(--t-press) var(--ease-out),
              background-color var(--t-press) var(--ease-out),
              box-shadow var(--t-press) var(--ease-out);
}
.admin-subnav a.on {
  background: var(--surface); color: var(--text);
  box-shadow: -3px -3px 6px var(--sh-light), 3px 3px 7px var(--sh-dark);
}
@media (hover: hover) and (pointer: fine) {
  .admin-subnav a:hover:not(.on) { color: var(--text); }
}
.admin-subnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Fortschrittsbalken. Struktur aus dem Dummy: .bar > i (Fuellung).
   BEWUSST an ein direktes <i>-Kind gebunden (.bar:has(> i)), damit die
   bereits existierende .bar-Aktionsleiste im Formular-Editor (Flex-Zeile
   ohne <i>) NICHT beeinflusst wird — reine Trennung ueber die Struktur. --- */
.bar:has(> i) {
  height: 8px; border-radius: 999px; overflow: hidden;
  background: var(--track);
  box-shadow: inset 2px 2px 5px var(--sh-dark), inset -2px -2px 5px var(--sh-light);
}
.bar > i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--accent);
  transition: width var(--t-pop) var(--ease-out);
}

/* --- KPI-Kachel: grosse Zahl + Label. Als eigenstaendige neumorphe Kachel;
   im naechsten Schritt in ein Raster gesetzt. --- */
.kpi {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-16); padding: var(--s-16); text-align: center;
  box-shadow: -6px -6px 12px var(--sh-light), 6px 6px 14px var(--sh-dark);
}
.kpi .n { font-size: 26px; font-weight: 700; color: var(--accent);
  line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* --- Datei-/Projekt-Tabelle mit dezenten Zeilentrennern. --- */
table.files { width: 100%; border-collapse: collapse; }
table.files th, table.files td {
  text-align: left; padding: 11px var(--s-8);
  border-bottom: 1px solid var(--border-subtle); font-size: 14px;
}
table.files th { color: var(--muted); font-size: 12px; font-weight: 600; }
table.files tbody tr:last-child td { border-bottom: none; }

/* --- Verlaufs-Zeitleiste (vertikale Punkt-Linie), Zustaende done/now. --- */
.tl { list-style: none; padding: 0; margin: 0; }
.tl li {
  position: relative; padding: 0 0 var(--s-16) 22px;
  border-left: 2px solid var(--border); font-size: 13.5px; color: var(--text-2);
}
.tl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl li::before {
  content: ""; position: absolute; left: -7px; top: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
}
.tl li.done { color: var(--text); }
.tl li.done::before { background: var(--accent); border-color: var(--accent); }
.tl li.now { color: var(--text); font-weight: 600; }
.tl li.now::before { background: var(--ki-fg); border-color: var(--ki-fg); }

/* --- Datei-Chip (eine hochgeladene Datei). --- */
.filechip {
  display: flex; align-items: center; gap: var(--s-12);
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-12); padding: 8px var(--s-12); margin-top: var(--s-8);
}
.filechip .fc-name { flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }

/* --- Filter-/Aktionsleiste (horizontal) ueber Listen. --- */
.barbar {
  display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--r-12); padding: 10px var(--s-12); margin: var(--s-16) 0;
}
.barbar .spacer { flex: 1; }

/* --- Leerzustand: zentriert, gedaempft, Platz fuer Icon + Text. --- */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--s-12); padding: var(--s-32); color: var(--muted);
}
.empty .e-ic {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text-2);
  box-shadow: inset 2px 2px 6px var(--sh-dark), inset -2px -2px 6px var(--sh-light);
}
.empty .e-ic svg { width: 26px; height: 26px; }
.empty h4 { color: var(--text); font-size: 15px; font-weight: 700; }

/* --- Hinweisbox (info/warn u.a.). Aus dem Design-System. --- */
.alert {
  display: flex; align-items: flex-start; gap: var(--s-12);
  padding: var(--s-12) var(--s-16); border-radius: var(--r-12);
  border: 1px solid var(--border-subtle); font-size: 14px;
}
.alert .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.alert .ic svg { width: 20px; height: 20px; }
.alert .a-title { font-weight: 700; }
.alert .a-body { color: var(--text-2); font-size: 13px; }
.alert.info  { background: var(--info-bg); }  .alert.info .ic,  .alert.info .a-title  { color: var(--info-fg); }
.alert.warn  { background: var(--warn-bg); }  .alert.warn .ic,  .alert.warn .a-title  { color: var(--warn-fg); }
.alert.error { background: var(--error-bg); } .alert.error .ic, .alert.error .a-title { color: var(--error-fg); }
.alert.ok    { background: var(--ok-bg); }    .alert.ok .ic,    .alert.ok .a-title    { color: var(--ok-fg); }
.alert.ki    { background: var(--ki-bg); }    .alert.ki .ic,    .alert.ki .a-title    { color: var(--ki-fg); }

/* ============================================================
   GEMEINSAMES SEITEN-GERUEST (SPEC 05, Schritt 2).
   Frueher definierte JEDE Seite .back / .placeholder / .section-hint /
   .shell und eigene h1-Groessen lokal neu (Audit-Befunde 4–8). Diese Muster
   stehen jetzt EINMAL hier — die Seiten liefern nur noch ihren Inhalt in .wrap
   unter dem gemeinsamen .hdr.
   ============================================================ */

/* Der Inhalt fuellt die Hoehe zwischen Kopf und Footer. */
main { flex: 1 1 auto; }

/* Einheitliche Seitenueberschrift (vorher 16–20px je Seite). */
.page-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: var(--s-16); }

/* Kopfzeile einer Unterseite: Zurueck-Link, Titel, ggf. Aktionen in einer
   Reihe. Der Titel nimmt den freien Platz, Aktionen ruecken nach rechts. */
.page-head { display: flex; align-items: center; gap: var(--s-12);
  flex-wrap: wrap; margin-bottom: var(--s-24); }
.page-head .page-title { margin: 0; flex: 1 1 auto; }

/* Zurueck-Verweis (dezent). */
.back { display: inline-block; font-size: 13px; color: var(--muted);
  text-decoration: none; }
.back:hover { color: var(--text); }

/* Platzhalter-/Ladetexte und Abschnitts-Hinweise. */
.placeholder { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.section-hint { font-size: 12.5px; color: var(--muted); line-height: 1.55;
  margin-bottom: var(--s-16); max-width: 62ch; }
