/* Backup-Zentrale. Gestaltung nach dem AutoCRM-Masterpanel: AutoCRM-Blau als primary, bläulicher Grund,
   Flächen mit Kontur und leichtem Schatten, Kapitälchen-Beschriftungen, Pillen mit Punkt. Standard: dunkel. */

@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2-variations"); font-weight: 100 800; font-display: swap; }

:root {
  --radius: 0.75rem;
  --background: oklch(0.97 0.005 265);
  --foreground: oklch(0.18 0.02 265);
  --card: oklch(1 0 0);
  --primary: oklch(0.55 0.22 265);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.95 0.01 265);
  --muted: oklch(0.96 0.005 265);
  --muted-foreground: oklch(0.5 0.02 265);
  --accent: oklch(0.93 0.02 265);
  --accent-foreground: oklch(0.4 0.15 265);
  --destructive: oklch(0.64 0.21 25.33);
  --border: oklch(0.91 0.01 265);
  --input: oklch(0.95 0.01 265);
  --ring: oklch(0.55 0.22 265);
  --z-kontur: var(--border);
  --z-kontur-stark: color-mix(in oklch, var(--border), var(--foreground) 14%);
  --z-schatten: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --gruen: #10b981; --gruen-text: #059669;
  --gelb: #fbbf24;  --gelb-text: #d97706;
  --rot: #ef4444;   --rot-text: #dc2626;
  --blau: #3b82f6;  --blau-text: #2563eb;
  --grau: #a1a1aa;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
.dark {
  --background: oklch(0.13 0.02 270);
  --foreground: oklch(0.95 0.01 265);
  --card: oklch(0.16 0.02 270);
  --secondary: oklch(0.2 0.02 270);
  --muted: oklch(0.2 0.02 270);
  --muted-foreground: oklch(0.65 0.02 265);
  --accent: oklch(0.22 0.03 265);
  --accent-foreground: oklch(0.9 0.02 265);
  --destructive: oklch(0.6 0.22 25.33);
  --border: oklch(0.22 0.02 270);
  --input: oklch(0.2 0.02 270);
  --z-kontur-stark: color-mix(in oklch, var(--border), var(--foreground) 12%);
  --z-schatten: 0 1px 2px 0 rgb(0 0 0 / 0.25);
  --gruen-text: #34d399; --gelb-text: #fbbf24; --rot-text: #f87171; --blau-text: #60a5fa;
  --grau: #71717a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--background); color: var(--foreground);
  font: 14px/1.5 var(--font-sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--font-mono); }
h1, h2, h3, p { margin: 0; }
.i { width: 16px; height: 16px; flex: none; }
.i-sm { width: 14px; height: 14px; }
.i-lg { width: 20px; height: 20px; }
.muted { color: var(--muted-foreground); }
.tabular { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stack > * + * { margin-top: 16px; }

/* ── Fläche, Karte ───────────────────────────────────────────────────────── */
.flaeche { background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--z-schatten); }
.karte { border-radius: var(--radius); min-width: 0; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--z-kontur); }
.karte-kopf h2 { font-size: 14px; font-weight: 600; }
.karte-kopf p { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }
.karte-inhalt { padding: 16px 20px; }
.karte-inhalt.flach { padding: 0; }

.label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.gruppen-titel { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: color-mix(in oklch, var(--muted-foreground) 70%, transparent); }

/* ── Status ──────────────────────────────────────────────────────────────── */
.punkt { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--grau); }
.punkt.gross { width: 8px; height: 8px; }
.gruen > .punkt, .punkt.gruen { background: var(--gruen); }
.gelb > .punkt, .punkt.gelb { background: var(--gelb); }
.rot > .punkt, .punkt.rot { background: var(--rot); animation: puls 2s ease-in-out infinite; }
.blau > .punkt, .punkt.blau { background: var(--blau); }
@keyframes puls { 50% { opacity: 0.45; } }

.pille { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 500; line-height: 16px; white-space: nowrap; background: var(--muted); color: var(--muted-foreground); }
.pille.gruen { background: color-mix(in srgb, var(--gruen) 10%, transparent); color: var(--gruen-text); }
.pille.gelb { background: color-mix(in srgb, var(--gelb) 12%, transparent); color: var(--gelb-text); }
.pille.rot { background: color-mix(in srgb, var(--rot) 10%, transparent); color: var(--rot-text); }
.pille.blau { background: color-mix(in srgb, var(--blau) 10%, transparent); color: var(--blau-text); }
.text-gruen { color: var(--gruen-text); } .text-gelb { color: var(--gelb-text); } .text-rot { color: var(--rot-text); }

/* ── Rahmen: Seitenleiste + Kopfzeile ────────────────────────────────────── */
#nav-auf { display: none; }
.seitenleiste {
  position: fixed; inset: 0 auto 0 0; width: 220px; z-index: 30;
  background: var(--card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; min-height: 0;
}
.marke { height: 56px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.zeichen { width: 28px; height: 28px; border-radius: 6px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.zeichen .i { width: 17px; height: 17px; }
.marke-titel { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.marke-unter { display: block; font-size: 10.5px; color: var(--muted-foreground); line-height: 1.2; }
.schnell-eintrag .zeit { font-size: 10.5px; font-variant-numeric: tabular-nums; color: color-mix(in oklch, var(--muted-foreground) 80%, transparent); }
.neu-knopf { margin: 12px 10px 6px; }
.nav { padding: 0 10px; flex: none; }
.nav .gruppen-titel { padding: 8px 8px 2px; }
.nav-link { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 6px; font-size: 12.5px; color: var(--muted-foreground); transition: background 0.15s, color 0.15s; }
.nav-link + .nav-link { margin-top: 2px; }
.nav-link:hover { background: var(--accent); color: var(--accent-foreground); }
.nav-link.aktiv { background: var(--primary); color: var(--primary-foreground); font-weight: 500; }
.nav-link .rechts { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 10.5px; opacity: 0.8; }
.schnell { margin-top: 10px; padding: 0 10px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.schnell-kopf { display: flex; justify-content: space-between; padding: 0 8px 4px; }
.schnell-kopf .zahl { font-size: 10px; color: color-mix(in oklch, var(--muted-foreground) 70%, transparent); }
.schnell-liste { overflow-y: auto; flex: 1; min-height: 0; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--z-kontur-stark) transparent; }
.schnell-eintrag { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 6px; border-radius: 6px; font-size: 12px; color: var(--muted-foreground); }
.schnell-eintrag:hover { background: var(--accent); color: var(--accent-foreground); }
.schnell-eintrag.aktiv { background: var(--accent); color: var(--accent-foreground); font-weight: 500; }
.schnell-eintrag .name { flex: 1; }
.leer-hinweis { padding: 6px 8px; font-size: 11.5px; color: color-mix(in oklch, var(--muted-foreground) 70%, transparent); }
.fuss { flex: none; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; }
.fuss form { margin: 0; }
.fuss-knopf { width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: var(--muted-foreground); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fuss-knopf:hover { background: var(--accent); color: var(--foreground); }
.fuss-knopf.abmelden:hover { color: var(--rot); }
.fuss-wer { font-size: 11.5px; color: var(--muted-foreground); padding: 0 4px; }

.logo { display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: #fff; font-weight: 600; flex: none; user-select: none; position: relative; }
.logo-16 { width: 16px; height: 16px; font-size: 7px; }
.logo-20 { width: 20px; height: 20px; font-size: 8px; }
.logo-36 { width: 36px; height: 36px; font-size: 13px; border-radius: 8px; }
.logo .punkt { position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--card); }
.f0 { background: oklch(0.55 0.22 265); } .f1 { background: oklch(0.55 0.17 160); } .f2 { background: oklch(0.6 0.18 40); }
.f3 { background: oklch(0.5 0.22 300); } .f4 { background: oklch(0.58 0.14 220); } .f5 { background: oklch(0.55 0.2 15); }

.inhalt-rahmen { padding-left: 220px; min-width: 0; }
.kopfzeile { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: var(--card); border-bottom: 1px solid var(--border); }
.pfad { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; flex: 1; }
.pfad a { color: var(--muted-foreground); }
.pfad a:hover { color: var(--foreground); }
.pfad .trenner { color: color-mix(in oklch, var(--muted-foreground) 50%, transparent); }
.pfad strong { font-weight: 600; }
.menue-knopf { display: none; }
.kapsel { display: flex; align-items: stretch; height: 36px; border-radius: 8px; background: color-mix(in oklch, var(--muted) 40%, transparent); box-shadow: 0 0 0 1px var(--z-kontur); overflow: hidden; font-size: 12px; }
.kapsel > * { display: flex; align-items: center; gap: 6px; padding: 0 10px; white-space: nowrap; }
.kapsel > * + * { border-left: 1px solid var(--z-kontur); }
.kapsel a:hover { background: var(--accent); }
.kapsel strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-meter { display: inline-flex; flex-direction: column; gap: 3px; min-width: 72px; }
.mini-meter span:first-child { white-space: nowrap; }
.mini-meter span:first-child { font-size: 9px; line-height: 1; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted-foreground); }
.mini-meter b { color: var(--foreground); font-weight: 600; }
.mini-meter .bahn { height: 3px; border-radius: 999px; background: var(--z-kontur-stark); overflow: hidden; display: block; }
.mini-meter .bahn i { display: block; height: 100%; border-radius: 999px; background: var(--gruen); }
.mini-meter.gelb .bahn i { background: var(--gelb); } .mini-meter.rot .bahn i { background: var(--rot); }

main { padding: 16px 20px 64px; }
.breite { max-width: 1560px; margin: 0 auto; }
.aktionszeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; min-height: 32px; }
.aktionszeile .links { font-size: 12.5px; color: var(--muted-foreground); }

/* ── Kennzahlen-Leiste ───────────────────────────────────────────────────── */
.kennzahlen { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--z-kontur); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--card); display: flex; align-items: baseline; gap: 8px; padding: 11px 14px 0; height: 40px; white-space: nowrap; min-width: 0; }
a.stat:hover { background: color-mix(in oklch, var(--accent) 50%, var(--card)); }
.stat .l { font-size: 11.5px; color: var(--muted-foreground); }
.stat .w { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat .u { font-size: 11px; color: color-mix(in oklch, var(--muted-foreground) 80%, transparent); overflow: hidden; text-overflow: ellipsis; }

/* ── Aufmerksamkeit ──────────────────────────────────────────────────────── */
.aufmerksam { border-radius: var(--radius); overflow: hidden; }
.aufmerksam header { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--z-kontur); font-size: 13px; font-weight: 500; }
.aufmerksam header .i { color: var(--gelb); }
.aufmerksam ul { list-style: none; margin: 0; padding: 0; }
.aufmerksam li + li { border-top: 1px solid var(--z-kontur); }
.aufmerksam li a { display: flex; align-items: center; gap: 12px; padding: 8px 20px; font-size: 13px; min-width: 0; }
.aufmerksam li a:hover { background: color-mix(in oklch, var(--accent) 50%, transparent); }
.aufmerksam .wer { font-weight: 500; flex: none; max-width: 40%; }
.aufmerksam .was { color: var(--muted-foreground); flex: 1; }
.aufmerksam .pfeil { opacity: 0; color: var(--muted-foreground); }
.aufmerksam li a:hover .pfeil { opacity: 1; }

/* ── Quellen-Karten ──────────────────────────────────────────────────────── */
.abschnitt-titel { padding: 0 4px; margin-bottom: 8px; }
.fussnote { font-size: 11.5px; color: var(--muted-foreground); padding: 0 4px; }
.raster { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quelle { border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: box-shadow 0.15s; }
.quelle:hover { box-shadow: 0 0 0 1px color-mix(in oklch, var(--primary) 55%, transparent), var(--z-schatten); }
.quelle-kopf { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.quelle-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--muted); color: var(--muted-foreground); display: flex; align-items: center; justify-content: center; flex: none; }
.quelle-name { font-size: 13.5px; font-weight: 600; }
.quelle-ort { font-size: 11.5px; color: var(--muted-foreground); }
.quelle-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; flex: none; margin-left: auto; }
.drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 11.5px; }
.drei .label { font-size: 9.5px; }
.drei .wert { font-weight: 500; }
.tage { display: flex; gap: 3px; }
.tage span { height: 16px; flex: 1; border-radius: 3px; background: var(--muted); box-shadow: inset 0 0 0 1px var(--z-kontur); }
.tage span.ok { background: var(--gruen); box-shadow: none; }
.tage span.warn { background: var(--gelb); box-shadow: none; }
.tage span.fehler { background: var(--rot); box-shadow: none; }
.tage-legende { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted-foreground); margin-top: 4px; }
.fehlerbox { border-radius: 6px; background: color-mix(in srgb, var(--rot) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rot) 25%, transparent); padding: 6px 10px; font-size: 11.5px; color: var(--rot-text); overflow-wrap: anywhere; }
.warnbox { border-radius: 6px; background: color-mix(in srgb, var(--gelb) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gelb) 28%, transparent); padding: 6px 10px; font-size: 11.5px; color: var(--gelb-text); overflow-wrap: anywhere; }
.neu-karte { border-radius: var(--radius); border: 2px dashed var(--z-kontur-stark); min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted-foreground); transition: all 0.15s; }
.neu-karte:hover { color: var(--foreground); border-color: color-mix(in oklch, var(--primary) 50%, transparent); background: color-mix(in oklch, var(--accent) 30%, transparent); }
.neu-karte .kreis { width: 40px; height: 40px; border-radius: 50%; background: var(--muted); display: flex; align-items: center; justify-content: center; }
.neu-karte strong { font-size: 13px; font-weight: 500; }
.neu-karte span { font-size: 11.5px; }

/* ── Status-Kopf einer Quelle ────────────────────────────────────────────── */
.held { border-radius: var(--radius); padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; box-shadow: inset 0 0 0 1px var(--z-kontur); background: var(--card); }
.held.gruen { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gruen) 30%, transparent); background: color-mix(in srgb, var(--gruen) 5%, var(--card)); }
.held.gelb { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gelb) 35%, transparent); background: color-mix(in srgb, var(--gelb) 5%, var(--card)); }
.held.rot { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rot) 35%, transparent); background: color-mix(in srgb, var(--rot) 5%, var(--card)); }
.held .kreis { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: var(--muted); color: var(--muted-foreground); }
.held.gruen .kreis { background: color-mix(in srgb, var(--gruen) 15%, transparent); color: var(--gruen-text); }
.held.gelb .kreis { background: color-mix(in srgb, var(--gelb) 15%, transparent); color: var(--gelb-text); }
.held.rot .kreis { background: color-mix(in srgb, var(--rot) 15%, transparent); color: var(--rot-text); }
.held-titel { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.held-zeile { font-size: 12.5px; color: var(--muted-foreground); overflow-wrap: anywhere; }
.held-rechts { text-align: right; margin-left: auto; }
.held-rechts .wert { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }

.zwei { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.zwei-breit { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }

/* ── Tabelle ─────────────────────────────────────────────────────────────── */
.tabelle-rahmen { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th { text-align: left; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); padding: 8px 12px; background: color-mix(in oklch, var(--muted) 40%, transparent); border-bottom: 1px solid var(--z-kontur); white-space: nowrap; }
td { padding: 8px 12px; border-bottom: 1px solid var(--z-kontur); vertical-align: top; }
th:first-child, td:first-child { padding-left: 20px; }
th:last-child, td:last-child { padding-right: 20px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in oklch, var(--accent) 35%, transparent); }
td.meldung { max-width: 380px; overflow-wrap: anywhere; color: var(--muted-foreground); font-size: 12px; }
tr.schlecht td:nth-child(2) { color: var(--rot-text); }
.leer { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px; }
.leer .kachel { width: 44px; height: 44px; border-radius: 12px; background: var(--muted); box-shadow: 0 0 0 1px var(--z-kontur); display: flex; align-items: center; justify-content: center; color: var(--muted-foreground); margin-bottom: 12px; }
.leer strong { font-size: 14px; font-weight: 500; }
.leer p { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; max-width: 380px; }

/* ── Formulare und Knöpfe ────────────────────────────────────────────────── */
.feld { display: block; margin-bottom: 14px; }
.feld > .label { display: block; margin-bottom: 4px; font-size: 10.5px; }
.feld .hinweis { display: block; font-size: 11px; color: var(--muted-foreground); margin-top: 4px; }
input, textarea, select {
  width: 100%; height: 36px; padding: 0 12px; border-radius: 6px; font: inherit; font-size: 13px; color: var(--foreground);
  background: color-mix(in oklch, var(--input) 30%, transparent); border: 1px solid var(--z-kontur-stark);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { height: auto; padding: 8px 12px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 35%, transparent); }
input[type=checkbox] { width: 16px; height: 16px; padding: 0; accent-color: var(--primary); box-shadow: none; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 14px; }
.reihe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 6px; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; border: 0; white-space: nowrap; transition: background 0.15s, color 0.15s, box-shadow 0.15s; background: transparent; color: var(--foreground); box-shadow: 0 0 0 1px var(--z-kontur-stark); }
.knopf:hover { background: var(--accent); }
.knopf.primaer { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 2px rgb(0 0 0 / 0.1); }
.knopf.primaer:hover { background: color-mix(in oklch, var(--primary) 90%, black); }
.knopf.geist { box-shadow: none; color: var(--muted-foreground); }
.knopf.geist:hover { color: var(--foreground); }
.knopf.gefahr { color: var(--rot-text); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rot) 40%, transparent); }
.knopf.gefahr:hover { background: color-mix(in srgb, var(--rot) 10%, transparent); }
.knopf.voll { width: 100%; }
.knopf.klein { height: 28px; font-size: 12px; padding: 0 10px; }

.meldung-zeile { border-radius: 8px; padding: 8px 12px; font-size: 12.5px; margin-bottom: 16px; display: flex; gap: 8px; align-items: flex-start; }
.meldung-zeile .i { margin-top: 2px; }
.meldung-zeile.ok { background: color-mix(in srgb, var(--gruen) 10%, transparent); color: var(--gruen-text); }
.meldung-zeile.warn { background: color-mix(in srgb, var(--gelb) 10%, transparent); color: var(--gelb-text); }
.meldung-zeile.fehler { background: color-mix(in srgb, var(--rot) 10%, transparent); color: var(--rot-text); }
.meldung-zeile.info { background: color-mix(in srgb, var(--blau) 10%, transparent); color: var(--blau-text); margin: 16px 0 0; }
.meldung-zeile code { font-family: var(--font-mono, monospace); font-weight: 600; white-space: nowrap; }

/* Nummerierte Schritte (z. B. Projekt verbinden) */
.schritte { list-style: none; counter-reset: schritt; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.schritte > li { counter-increment: schritt; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; }
.schritte > li::before { content: counter(schritt); width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center;
  font-size: 12px; font-weight: 600; background: var(--primary); color: var(--primary-foreground); }
.schritte > li > span { padding-top: 3px; }
.schritte .feld { margin: 0; }

/* ── Kopierwert, Code ────────────────────────────────────────────────────── */
.kopier { display: flex; align-items: center; gap: 4px; border-radius: 8px; background: color-mix(in oklch, var(--muted) 60%, transparent); box-shadow: 0 0 0 1px var(--z-kontur); padding: 0 4px 0 12px; min-height: 32px; min-width: 0; }
.kopier code { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kopier.mehrzeilig { align-items: flex-start; padding: 8px 4px 8px 12px; }
.kopier.mehrzeilig code { white-space: normal; word-break: break-all; line-height: 1.6; }
.mini-knopf { width: 24px; height: 24px; border-radius: 6px; border: 0; background: none; color: var(--muted-foreground); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.mini-knopf:hover { background: var(--accent); color: var(--foreground); }
.mini-knopf .i { width: 14px; height: 14px; }
.mini-knopf.ok { color: var(--gruen); }
pre.befehl { margin: 0; font: 12px/1.6 var(--font-mono); background: color-mix(in oklch, var(--muted) 60%, transparent); box-shadow: 0 0 0 1px var(--z-kontur); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.kv .label { font-size: 9.5px; }
details summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
details summary::-webkit-details-marker { display: none; }
details[open] summary .i { transform: rotate(90deg); }
details summary .i { transition: transform 0.2s; }
hr { border: 0; border-top: 1px solid var(--z-kontur); margin: 16px 0; }
.qr { display: block; background: #fff; padding: 10px; border-radius: 10px; }

/* ── Anmeldung ───────────────────────────────────────────────────────────── */
.anmeldung { position: relative; isolation: isolate; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.anmeldung::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, color-mix(in oklch, var(--foreground) 6%, transparent) 1px, transparent 1px),
                    linear-gradient(to bottom, color-mix(in oklch, var(--foreground) 6%, transparent) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(ellipse at 50% 45%, transparent 18%, black 60%, transparent 92%); }
.anmeldung form { width: 100%; max-width: 340px; }
.anmeldung .kopf { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; }
.anmeldung .kopf .zeichen { width: 40px; height: 40px; border-radius: 10px; }
.anmeldung .kopf .zeichen .i { width: 22px; height: 22px; }
.anmeldung h1 { font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.anmeldung input { height: 48px; border-radius: 8px; font-size: 15px; margin-bottom: 12px; }
.anmeldung input.code { font-family: var(--font-mono); letter-spacing: 0.3em; text-align: center; }
.anmeldung .knopf { height: 48px; border-radius: 8px; font-size: 15px; }
.anmeldung .fehlerzeile { min-height: 18px; text-align: center; font-size: 12px; color: var(--rot); margin-top: 12px; }

/* ── Klein ───────────────────────────────────────────────────────────────── */
@media (max-width: 1400px) { .kennzahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); } .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .zwei, .zwei-breit { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023px) {
  .seitenleiste { transform: translateX(-100%); transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); width: 248px; box-shadow: 0 0 40px rgb(0 0 0 / 0.4); }
  #nav-auf:checked ~ .seitenleiste { transform: none; }
  #nav-auf:checked ~ .schleier { display: block; }
  .schleier { display: none; position: fixed; inset: 0; z-index: 25; background: rgb(0 0 0 / 0.5); }
  .inhalt-rahmen { padding-left: 0; }
  .menue-knopf { display: inline-flex; }
  .kapsel .weg-mobil { display: none; }
}
@media (max-width: 720px) {
  .kennzahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster { grid-template-columns: minmax(0, 1fr); }
  main { padding: 16px 16px 48px; }
  .kopfzeile { padding: 0 12px; }
  .kapsel { display: none; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .stat .u { display: none; }
}

/* Füllstände ohne Inline-Styles (CSP): .p0 … .p100 in 5er-Schritten */
.p0 { width: 0%; } .p5 { width: 5%; } .p10 { width: 10%; } .p15 { width: 15%; } .p20 { width: 20%; } .p25 { width: 25%; } .p30 { width: 30%; } .p35 { width: 35%; } .p40 { width: 40%; } .p45 { width: 45%; } .p50 { width: 50%; } .p55 { width: 55%; } .p60 { width: 60%; } .p65 { width: 65%; } .p70 { width: 70%; } .p75 { width: 75%; } .p80 { width: 80%; } .p85 { width: 85%; } .p90 { width: 90%; } .p95 { width: 95%; } .p100 { width: 100%; } 
.wachsen { flex: 1; }
.nowrap { white-space: nowrap; }
.fussnote.oben { padding: 8px 0 0; }
.fussnote.unten { padding: 0 0 12px; }
.liste-punkte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; color: var(--muted-foreground); }
.liste-punkte li { display: flex; gap: 10px; align-items: flex-start; }
.liste-punkte .i { margin-top: 2px; color: var(--primary); }
.liste-punkte strong { color: var(--foreground); font-weight: 500; }
.rechts-auto { margin-left: auto; }
.karte-fuss { padding: 12px 20px; border-top: 1px solid var(--z-kontur); }
.schmal { max-width: 720px; }
.oben-ausrichten { align-items: flex-start; gap: 20px; }
.anmeldung input.code::placeholder { letter-spacing: normal; }
