/* SQorePuls – Glas-Look. Regeln: docs/DESIGN.md. Reihenfolge: Schrift, Tokens, Grund, Glas, Layout,
   Komponenten, Altklassen (bestehende Seiten), Bewegung, Mobil, Barrierefreiheit. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.0e46e732cced.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── 1. Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --grund: #060A12;
  --glas: rgb(24 38 60 / .40);           /* Serkan 6.11.: etwas heller als die Vorgabe rgb(12 20 34) */
  --glas-dicht: rgb(24 38 60 / .55);
  --glas-deckend: #0F1828;
  --glas-rand: rgb(255 255 255 / .10);
  --glas-rand-hover: rgb(255 255 255 / .24);
  --glas-glanz: linear-gradient(140deg, rgb(255 255 255 / .10), transparent 45%);
  --glas-schatten: inset 0 1px 0 rgb(255 255 255 / .08), 0 24px 60px -28px rgb(0 0 0 / .70);
  --blur: blur(26px) saturate(160%);

  --text: #EEF4FB;
  --text-ged: rgb(226 236 248 / .70);
  --text-kopf: rgb(226 236 248 / .70);     /* hält mit dem helleren Glas 4,5:1 */

  --akzent: #07A3F0;
  --akzent-tief: #0B6DC8;
  --akzent-hell: #83D1F8;
  --akzent-weich: rgb(7 163 240 / .16);
  --akzent-glas: rgb(7 163 240 / .34);
  --akzent-rand: rgb(7 163 240 / .50);
  --akzent-glow: rgb(7 163 240 / .55);
  --akzent-verlauf: linear-gradient(180deg, #07A3F0, #0B6DC8);
  --auf-akzent: #06121F;

  --rot: #D80201;
  --rot-chip: rgb(216 2 1 / .22);
  --rot-text: #FFA19B;
  --amber: #F5A524;
  --amber-chip: rgb(245 165 36 / .16);
  --amber-text: #FFCB7A;
  --neutral-chip: rgb(255 255 255 / .08);

  --kat-1: #07A3F0;
  --kat-2: #F5A524;
  --kat-3: #DCE7F3;
  --kat-4: #6C7BF2;
  --kat-4-text: #A5AEF8;

  --r-karte: 24px;
  --r-karte-klein: 22px;
  --r-nav: 28px;
  --r-zeile: 14px;
  --r-feld: 12px;
  --rand: 20px;
  --luecke: 16px;
  --sektion: 18px;
  --innen: 18px 20px;

  --ease: cubic-bezier(.2, .75, .2, 1);
  --schrift: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --leiste-breite: 68px;

  /* Altnamen – rund 1.900 Inline-Styles bestehender Seiten nutzen sie */
  --bg: var(--grund);
  --panel: var(--glas);
  --panel2: var(--glas);
  --line: var(--glas-rand);
  --txt: var(--text);
  --mut: var(--text-ged);
  --cyan: var(--akzent-hell);
  --blue: var(--akzent-hell);
  --green: var(--akzent-hell);
  --red: var(--rot-text);
  --violet: var(--kat-4-text);
}

/* ── 2. Grund ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--grund); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--schrift);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    url("../img/cockpit-bg.87bc2890838f.webp") center / cover no-repeat,
    radial-gradient(900px 600px at 12% 8%, rgb(11 60 120 / .55), transparent 70%),
    radial-gradient(800px 520px at 92% 6%, rgb(120 72 18 / .35), transparent 70%),
    var(--grund);
}
a { color: var(--akzent-hell); text-decoration: none; }
a:hover { text-decoration: underline; }
p a, .kontext a, .muted a, .banner-text a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 .5em; }
h1 { font-size: 32px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
h4 { font-size: 14px; font-weight: 600; }
b, strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--glas-rand); margin: 16px 0; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
img, svg { vertical-align: middle; }
::selection { background: var(--akzent-glas); color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.springen {
  position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--auf-akzent); font-weight: 600;
}
.springen:focus { top: 16px; }

/* ── 3. Glas ───────────────────────────────────────────────────────────────── */
.glass, .panel, .card {
  background: var(--glas-glanz), var(--glas);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glas-rand);
  border-radius: var(--r-karte);
  box-shadow: var(--glas-schatten);
  padding: var(--innen);
}
.glass-dicht,
.panel:has(> table, > .tabelle-rahmen, > form > table),
.card:has(> table, > .tabelle-rahmen, > form > table) {
  background: var(--glas-glanz), var(--glas-dicht);
}
.glass-accent {
  background: linear-gradient(140deg, rgb(255 255 255 / .18), transparent 45%), var(--akzent-glas);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  border: 1px solid var(--akzent-rand);
  border-radius: var(--r-karte);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 28px 60px -26px var(--akzent-glow);
  padding: var(--innen);
}
.glass-pill {
  background: rgb(255 255 255 / .07);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 999px;
}
.klein { border-radius: var(--r-karte-klein); }
/* Glas im Glas: kein zweiter Blur, nur leichte Aufhellung */
:is(.glass, .glass-accent, .panel, .card) :is(.glass, .panel, .card) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgb(255 255 255 / .04);
  box-shadow: none;
  border-radius: var(--r-karte-klein);
}

/* ── 4. Layout ─────────────────────────────────────────────────────────────── */
.cockpit-haupt {
  margin-left: calc(16px + var(--leiste-breite) + var(--rand));
  padding: 16px var(--rand) 48px 0;
  max-width: 1640px;
  min-width: 0;
}
.einfach-haupt { max-width: 1500px; margin: 0 auto; padding: var(--rand); }

/* Leiste links */
.leiste {
  position: fixed; z-index: 60;
  left: 16px; top: 16px; bottom: 16px;
  width: var(--leiste-breite);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 0;
  border-radius: var(--r-nav);
}
.leiste .marke {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 10px;
  background: var(--akzent); color: var(--auf-akzent);
  font-weight: 700; font-size: 15px; letter-spacing: -.02em; text-decoration: none;
  box-shadow: 0 10px 26px -10px var(--akzent-glow);
}
.leiste .abstand { flex: 1; }
.leiste-punkt {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-ged);
  background: transparent; border: 0; cursor: pointer; padding: 0;
  transition: background .2s, color .2s;
}
.leiste-punkt:hover { background: rgb(255 255 255 / .08); color: var(--text); text-decoration: none; }
.leiste-punkt.aktiv { background: #fff; color: var(--auf-akzent); }
.leiste-punkt .ico { width: 20px; height: 20px; }
.leiste-punkt::after {
  content: attr(data-tip);
  position: absolute; left: calc(100% + 14px); top: 50%;
  transform: translate(-4px, -50%);
  white-space: nowrap; pointer-events: none; opacity: 0;
  padding: 6px 11px; border-radius: 10px;
  background: var(--glas-deckend); border: 1px solid var(--glas-rand);
  color: var(--text); font-size: 12.5px; font-weight: 500;
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / .8);
  transition: opacity .15s, transform .15s;
}
.leiste-punkt:hover::after, .leiste-punkt:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.zaehler {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--amber); color: var(--auf-akzent);
  font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--grund);
}

/* Kopfzeile */
.kopfzeile {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: var(--sektion);
}
.kopfzeile .abstand { flex: 1; }
.suche {
  display: flex; align-items: center; gap: 8px;
  flex: 0 1 420px; min-width: 200px; height: 42px; padding: 0 8px 0 14px;
  color: var(--text-ged);
}
.suche:focus-within { border-color: var(--akzent-rand); }
.suche input {
  flex: 1; min-width: 0; height: 40px; padding: 0;
  background: transparent; border: 0; outline: 0; color: var(--text); font: inherit;
}
.suche input::placeholder { color: var(--text-ged); }
.suche kbd {
  font-family: var(--schrift); font-size: 11.5px; font-weight: 500; color: var(--text-ged);
  padding: 2px 7px; border-radius: 7px; border: 1px solid rgb(255 255 255 / .14);
}
.pille {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap;
}
.icon-knopf {
  position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  color: var(--text); cursor: pointer; padding: 0;
}
.icon-knopf:hover { border-color: var(--glas-rand-hover); }
.icon-knopf .ico { width: 19px; height: 19px; }
.profil {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center; cursor: pointer; padding: 0;
  background: linear-gradient(140deg, #DCE7F3, #8FA3BC); color: var(--auf-akzent);
  border: 1px solid rgb(255 255 255 / .3);
  font: 600 15px var(--schrift);
}

/* Flyouts (Mehr, Glocke, Profil) – natives popover */
.flyout {
  margin: 0; inset: auto; position: fixed;
  min-width: 240px; max-width: min(340px, calc(100vw - 32px));
  padding: 8px; color: var(--text);
  background: var(--glas-glanz), rgb(12 20 34 / .78);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glas-rand);
  border-radius: var(--r-karte-klein);
  box-shadow: var(--glas-schatten), 0 30px 80px -30px rgb(0 0 0 / .9);
}
.flyout-mehr { left: calc(16px + var(--leiste-breite) + 12px); top: 220px; }
.flyout-rechts { right: var(--rand); top: 72px; }
.flyout .flyout-titel { padding: 8px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-kopf); }
.flyout a, .flyout button.zeile {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 42px; padding: 8px 12px; border-radius: var(--r-zeile);
  color: var(--text); font: 500 13.5px var(--schrift); text-align: left;
  background: transparent; border: 0; cursor: pointer;
}
.flyout a:hover, .flyout button.zeile:hover { background: rgb(255 255 255 / .06); text-decoration: none; }
.flyout .ico { width: 18px; height: 18px; color: var(--text-ged); flex: none; }
.flyout .rechts { margin-left: auto; }
.flyout .leer { padding: 10px 12px; color: var(--text-ged); font-size: 13px; }
.flyout .nur-mobil { display: none; }
@media (max-width: 759.98px) { .flyout .nur-mobil { display: block; } }
.flyout form { margin: 0; }
.flyout .fuss { padding: 8px 12px; color: var(--text-ged); font-size: 12px; border-top: 1px solid var(--glas-rand); margin-top: 6px; }

/* Seitenkopf und Umschalter */
.seitenkopf {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
  margin: 2px 0 var(--sektion);
}
.seitenkopf > :first-child { flex: 1 1 320px; min-width: 0; }
.seitenkopf h1 { margin: 0; }
.kontext { margin-top: 6px; color: var(--text-ged); font-size: 14px; }
.umschalter {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px;
  max-width: 100%;
}
.umschalter > a, .umschalter > button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 6px 14px; border-radius: 999px;
  color: var(--text-ged); font: 500 13px var(--schrift);
  background: transparent; border: 0; cursor: pointer; white-space: nowrap;
}
.umschalter > a:hover, .umschalter > button:hover { color: var(--text); text-decoration: none; background: rgb(255 255 255 / .06); }
.umschalter > .aktiv, .umschalter > [aria-current="page"], .umschalter > [aria-selected="true"] {
  background: #fff; color: var(--auf-akzent); font-weight: 600;
}
.umschalter .ico { width: 15px; height: 15px; }
.bereich-umschalter { margin: -6px 0 var(--sektion); }

/* Reihen */
.reihe { display: flex; flex-wrap: wrap; gap: var(--luecke); margin-bottom: var(--sektion); }
.reihe > .haupt { flex: 2 1 560px; min-width: 0; }
.reihe > .seite { flex: 1 1 300px; min-width: 0; }
.reihe > .kennzahl { flex: 1 1 220px; min-width: 0; }
.stapel { display: flex; flex-direction: column; gap: var(--luecke); }
.sektion-titel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.sektion-titel .kontext { margin: 0; font-size: 13px; font-weight: 400; }

/* ── 5. Komponenten ────────────────────────────────────────────────────────── */
.ico { width: 18px; height: 18px; flex: none; stroke-width: 1.9; }
.ico.inline { width: 1.1em; height: 1.1em; vertical-align: -.18em; margin-right: .35em; color: var(--text-ged); }
h1 .ico.inline, h2 .ico.inline, h3 .ico.inline { color: var(--akzent-hell); }
.ico.ja, .ja { color: var(--akzent-hell); }
.ico.nein, .nein { color: var(--text-ged); }
.ico.stern, .stern { color: var(--amber); }
.ico.warn-ico { color: var(--amber); }

/* Kennzahlkarte */
.kennzahl { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.kennzahl-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kennzahl-label { font-size: 13px; font-weight: 500; color: var(--text-ged); }
.pfeil {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; color: var(--text);
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12);
  transition: transform .35s var(--ease), background .2s;
}
.pfeil .ico { width: 15px; height: 15px; }
.kennzahl:hover .pfeil, .pfeil:hover, .pfeil:focus-visible { transform: rotate(45deg); background: rgb(255 255 255 / .14); }
.kennzahl-wert, .val {
  font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.val.sm { font-size: 24px; letter-spacing: -.02em; }
.kennzahl-fuss { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.vergleich { font-size: 12.5px; color: var(--text-ged); }
.delta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.delta.hoch { background: var(--akzent-weich); color: var(--akzent-hell); }
.delta.runter { background: var(--amber-chip); color: var(--amber-text); }
.delta.gleich { background: var(--neutral-chip); color: var(--text-ged); }
.glass-accent .kennzahl-label, .glass-accent .vergleich { color: rgb(238 244 251 / .82); }
.glass-accent .delta.hoch { background: rgb(255 255 255 / .16); color: #fff; }
.sparkline { width: 92px; height: 40px; flex: none; overflow: visible; }
.sparkline .linie { fill: none; stroke: var(--akzent-hell); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Status-Chips: Punkt plus Text */
.chip, .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.45; white-space: nowrap;
  background: var(--neutral-chip); color: var(--text);
}
.chip::before, .badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; background: currentColor;
}
.chip.ohne-punkt::before { display: none; }
.chip.ok, .chip.g, .badge.green { background: var(--akzent-weich); color: var(--akzent-hell); }
.chip.warn, .chip.a, .badge.orange { background: var(--amber-chip); color: var(--amber-text); }
.chip.krit, .chip.r, .badge.red { background: var(--rot-chip); color: var(--rot-text); }
.chip.neutral, .badge.gray { background: var(--neutral-chip); color: var(--text-ged); }
/* .green/.orange/.red/.gray ohne .badge: alte Hintergrund-Helfer */
.green:not(.badge) { background: var(--akzent-weich); }
.orange:not(.badge) { background: var(--amber-chip); }
.red:not(.badge) { background: var(--rot-chip); }
.gray:not(.badge) { background: var(--neutral-chip); }

/* Punkte (früher LEDs) */
.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.led.g { background: var(--akzent); box-shadow: 0 0 10px var(--akzent-glow); }
.led.a { background: var(--amber); box-shadow: 0 0 10px rgb(245 165 36 / .5); }
.led.r { background: var(--rot); box-shadow: 0 0 10px rgb(216 2 1 / .6); }
.led.o { background: rgb(255 255 255 / .22); }
.puls-punkt { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); flex: none; }
.puls-punkt::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--akzent); opacity: 0; animation: pulsieren 2s var(--ease) infinite;
}
@keyframes pulsieren { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

/* „x von y“ */
.anteil { display: flex; flex-direction: column; gap: 6px; min-width: 90px; }
.anteil-zahl { font-size: 13px; font-weight: 600; }
.anteil-zahl .von { color: var(--text-ged); font-weight: 400; }
.anteil-spur { height: 6px; border-radius: 999px; background: rgb(255 255 255 / .08); overflow: hidden; }
.anteil-spur > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--akzent-tief), var(--akzent)); }

/* Ring */
.ring { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ring svg { width: 140px; height: 140px; flex: none; }
.ring .bogen { fill: none; stroke-width: 14; stroke-linecap: round; }
.ring .mitte { font: 600 26px var(--schrift); fill: var(--text); letter-spacing: -.03em; }
.ring .mitte-klein { font: 500 11px var(--schrift); fill: var(--text-ged); }
.legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.legende li { display: flex; align-items: center; gap: 8px; }
.legende .punkt { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.legende .wert { margin-left: auto; padding-left: 12px; color: var(--text-ged); }

/* Kapselbalken */
.kapseln { position: relative; }
.kapseln svg { width: 100%; height: auto; display: block; overflow: visible; }
.kapseln .gitter { stroke: rgb(255 255 255 / .09); stroke-dasharray: 3 4; }
.kapseln .achse { font: 11px var(--schrift); fill: var(--text-ged); }
.kapseln .kapsel { cursor: pointer; }
.kapseln .kapsel rect.koerper { fill: url(#kapsel-glas); stroke: rgb(255 255 255 / .22); stroke-width: 1; }
.kapseln .kapsel.gewaehlt rect.koerper { fill: url(#kapsel-akzent); stroke: var(--akzent-hell); filter: drop-shadow(0 8px 18px rgb(7 163 240 / .55)); }
.kapseln .kapsel.geplant rect.koerper { fill: url(#kapsel-schraffur); stroke-dasharray: 4 3; }
.kapseln .kapsel:focus-visible { outline: none; }
.kapseln .kapsel:focus-visible rect.koerper { stroke: var(--akzent-hell); stroke-width: 2; }
.kapsel-tipp {
  position: absolute; transform: translate(-50%, -100%); pointer-events: none;
  padding: 7px 11px; border-radius: 12px; background: #fff; color: var(--auf-akzent);
  box-shadow: 0 12px 30px -10px rgb(0 0 0 / .6); white-space: nowrap; text-align: center;
}
.kapsel-tipp b { display: block; font-size: 14px; }
.kapsel-tipp small { font-size: 11px; color: #3A4A5E; }

/* Zeitleiste und Checkliste */
.zeitleiste { list-style: none; margin: 0; padding: 0; position: relative; }
.zeitleiste li { position: relative; padding: 0 0 14px 22px; }
.zeitleiste li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-weich); }
.zeitleiste li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--glas-rand); }
.zeitleiste li:last-child::after { display: none; }
.zeitleiste .wann { font-size: 12px; color: var(--text-ged); }
.checkliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checkliste li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: var(--r-zeile); }
.checkliste li:hover { background: rgb(255 255 255 / .05); }

/* Hinweisbanner */
.banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px 12px 16px; margin-bottom: var(--luecke);
  border-radius: var(--r-karte-klein);
}
.banner .banner-text { flex: 1 1 260px; min-width: 0; }
.banner .chip .ico { width: 14px; height: 14px; }

/* Knöpfe */
.btn, button.btn, a.btn, input[type=submit].btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 8px 16px; border-radius: 999px;
  background: rgb(255 255 255 / .07); color: var(--text);
  border: 1px solid rgb(255 255 255 / .14);
  font: 500 13px var(--schrift); line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { background: rgb(255 255 255 / .12); border-color: var(--glas-rand-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 32px; padding: 5px 12px; font-size: 12.5px; }
.btn.primaer, .pille.primaer {
  background: linear-gradient(180deg, #2BB3F4, var(--akzent));
  color: var(--auf-akzent); border-color: var(--akzent-rand); font-weight: 600;
  box-shadow: 0 10px 26px -12px var(--akzent-glow);
}
.btn.primaer:hover { background: linear-gradient(180deg, #45BDF6, #12A9F1); }
.btn .ico { width: 16px; height: 16px; }
button:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Formulare */
input, select, textarea {
  width: 100%; padding: 9px 12px; font: inherit; font-size: 14px; color: var(--text);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12);
  border-radius: var(--r-feld);
  transition: border-color .2s, background .2s;
}
input:hover, select:hover, textarea:hover { border-color: rgb(255 255 255 / .2); }
input:focus, select:focus, textarea:focus { border-color: var(--akzent-rand); background: rgb(255 255 255 / .08); outline: none; }
input::placeholder, textarea::placeholder { color: rgb(226 236 248 / .5); }
select option, select optgroup { background: var(--glas-deckend); color: var(--text); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--akzent); }
input[type=file] { padding: 7px; }
input[type=color] { padding: 2px; height: 38px; }
label { display: block; margin: 10px 0 4px; font-size: 12.5px; font-weight: 500; color: var(--text-ged); }

/* Tabellen */
table { border-collapse: separate; border-spacing: 0; width: 100%; }
th, td { text-align: left; padding: 9px 10px; font-size: 13.5px; border-bottom: 1px solid rgb(255 255 255 / .06); }
th {
  color: var(--text-kopf); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
tbody tr:last-child td, table tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: rgb(255 255 255 / .05); }
tbody tr td:first-child { border-top-left-radius: var(--r-zeile); border-bottom-left-radius: var(--r-zeile); }
tbody tr td:last-child { border-top-right-radius: var(--r-zeile); border-bottom-right-radius: var(--r-zeile); }
.tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; padding: 0 6px; }
.num { font-variant-numeric: tabular-nums; text-align: right; }

/* Aufklapper */
details > summary { cursor: pointer; color: var(--text); }
details > summary::marker { color: var(--text-ged); }

/* Sektionen, Prioritäts-Karten, Statuszeile (Heute) */
.sektion { margin-bottom: var(--sektion); }
h2.sektion-titel { font-size: 18px; letter-spacing: -.015em; }
.reihe.dinge > .ding { flex: 1 1 280px; min-width: 0; }
.ding { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; }
.ding-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ding-icon {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgb(255 255 255 / .07); color: var(--text);
}
.ding-icon .ico { width: 17px; height: 17px; }
.ding-krit .ding-icon { background: var(--rot-chip); color: var(--rot-text); }
.ding-warn .ding-icon { background: var(--amber-chip); color: var(--amber-text); }
.ding-ok .ding-icon { background: var(--akzent-weich); color: var(--akzent-hell); }
.ding h3 { margin: 2px 0 0; font-size: 15px; line-height: 1.35; }
.ding .kontext { margin: 0; font-size: 13px; flex: 1; }
.ding .btn { align-self: flex-start; margin-top: 2px; }
.mehr-dinge { margin-top: 10px; }
.mehr-dinge > summary { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .07);
  border: 1px solid rgb(255 255 255 / .12); font-size: 13px; font-weight: 500; list-style: none; }
.mehr-dinge > summary::-webkit-details-marker { display: none; }
.status-pille { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 16px; font-size: 13px; font-weight: 500; }
.status-pille.warn .puls-punkt { background: var(--amber); }
.status-pille.warn .puls-punkt::after { border-color: var(--amber); }
.kz-klein { flex: 1 1 180px; min-width: 0; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.klick-zelle { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.klick-zelle .sparkline { width: 64px; height: 24px; }
.anteil-leer { color: var(--text-ged); }
.blick td { vertical-align: middle; }
.zeitleiste li.geplant::before { background: transparent; border: 1.5px dashed var(--akzent-hell); box-shadow: none; }
.zeitleiste li.warn::before { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-chip); }
.werkzeug { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.werkzeug > b { white-space: nowrap; padding-bottom: 10px; }
.werkzeug label { margin-top: 0; }
/* Schnell-Analyse auf „Heute“: Suche links, Website-Weg rechts, mobil untereinander */
.schnell-wege { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 28px; }
.schnell-wege .werkzeug { margin-top: 0; }
.werkzeug .feld-breit { flex: 2 1 180px; min-width: 0; }
.werkzeug .feld { flex: 1 1 110px; min-width: 0; }
.schnell-fuss { margin: 12px 0 0; }
@media (max-width: 900px) { .schnell-wege { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.schalter { color: var(--text-ged); }
.schalter.an { border-color: var(--akzent-rand); color: var(--akzent-hell); background: var(--akzent-weich); }
.automatik { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; font-size: 12.5px; }
.auto-punkt { white-space: nowrap; }

/* ── 6. Altklassen bestehender Seiten ──────────────────────────────────────── */
.muted { color: var(--text-ged); font-size: 12.5px; }
.lab { color: var(--text-ged); font-size: 12.5px; font-weight: 500; letter-spacing: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--luecke); }
.stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgb(255 255 255 / .06); }
.stat:last-child { border: 0; }
.gauge .row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.gauge .track { height: 6px; border-radius: 999px; background: rgb(255 255 255 / .08); overflow: hidden; }
.gauge .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--akzent-tief), var(--akzent)); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--luecke); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span4 { grid-column: span 4; }
.span5 { grid-column: span 5; } .span6 { grid-column: span 6; } .span7 { grid-column: span 7; }
.span8 { grid-column: span 8; } .span12 { grid-column: span 12; }
a.panel, a.card, a.glass { color: inherit; text-decoration: none; }
.meldung-liste { display: grid; gap: 10px; margin-bottom: var(--luecke); }

/* ── 7. Bewegung ───────────────────────────────────────────────────────────── */
@keyframes einblenden {
  from { opacity: 0; transform: translateY(18px); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: none; }
}
.einblenden {
  animation: einblenden 900ms var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}
:is(.glass, .glass-accent, .panel, .card):not(:is(.glass, .glass-accent, .panel, .card, .flyout, .leiste, .tableiste) *) {
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease);
}
/* Heben: Karten ja, große Tabellen- und Listenflächen nicht (die wackeln sonst beim Lesen) */
.cockpit-haupt :is(.glass, .glass-accent, .panel, .card):not(:is(.glass, .glass-accent, .panel, .card) *):not(.glass-dicht, :has(> table, > .tabelle-rahmen, > form > table)):hover {
  transform: translateY(-4px);
  border-color: var(--glas-rand-hover);
}
.cockpit-haupt .glass-accent:not(:is(.glass, .panel, .card) *):hover { border-color: var(--akzent-hell); }
.cockpit-haupt .ruhig:hover { transform: none !important; }
@keyframes wachsen { from { transform: scaleY(0); } to { transform: none; } }
@keyframes zeichnen { from { stroke-dashoffset: var(--laenge, 1); } to { stroke-dashoffset: 0; } }
.kapseln .kapsel .koerper { transform-box: fill-box; transform-origin: bottom; animation: wachsen 900ms var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.ring .bogen.zeichnet, .sparkline .linie.zeichnet {
  stroke-dasharray: var(--laenge) var(--laenge);
  animation: zeichnen 1200ms var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 120ms);
}
.anteil-spur > span { transform-origin: left; animation: breit 1100ms var(--ease) backwards; }
@keyframes breit { from { transform: scaleX(0); } to { transform: none; } }

/* ── 8. Mobil und Tablet ───────────────────────────────────────────────────── */
.tableiste { display: none; }
@media (max-width: 1180px) {
  .g12 .span3, .g12 .span4 { grid-column: span 6; }
  .g12 .span5, .g12 .span7, .g12 .span8 { grid-column: span 12; }
  .panel, .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 900px) {
  .g12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g12 [class*=span] { grid-column: span 4; }
  .g12 .span2, .g12 .span3 { grid-column: span 2; }
}
@media (max-width: 759.98px) {
  :root { --rand: 16px; }
  .leiste { display: none; }
  .cockpit-haupt { margin-left: 0; padding: 12px var(--rand) calc(104px + env(safe-area-inset-bottom)); overflow-x: clip; }
  h1 { font-size: 26px; }
  .kopfzeile .datum, .kopfzeile .primaer-slot { display: none; }
  .suche { flex: 1 1 auto; }
  .suche kbd { display: none; }
  .btn, button.btn, a.btn, input[type=submit].btn { white-space: normal; text-align: left; max-width: 100%; min-width: 0; }   /* lange Knöpfe umbrechen statt abschneiden */
  code { overflow-wrap: anywhere; }
  .tableiste {
    display: flex; justify-content: space-around; align-items: stretch;
    position: fixed; z-index: 60;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 6px; border-radius: var(--r-nav);
  }
  .tableiste a, .tableiste button {
    position: relative; flex: 1; min-width: 44px; min-height: 52px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border-radius: 20px; color: var(--text-ged); font: 500 11px var(--schrift);
    background: transparent; border: 0; padding: 4px 2px; cursor: pointer;
  }
  .tableiste .ico { width: 21px; height: 21px; }
  .tableiste .aktiv { background: #fff; color: var(--auf-akzent); }
  .tableiste .zaehler { top: 2px; right: calc(50% - 22px); }
  .flyout-mehr { left: 12px; right: 12px; top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); width: auto; max-width: none; }
  .flyout-rechts { right: 12px; left: 12px; width: auto; max-width: none; }
  .g12 { grid-template-columns: minmax(0, 1fr); }
  .g12 [class*=span] { grid-column: 1 / -1 !important; }
  .reihe > .haupt, .reihe > .seite, .reihe > .kennzahl { flex-basis: 100%; }
  .reihe > .kz-klein { flex: 1 1 calc(50% - var(--luecke)); }
  /* Tabellen als Kartenliste */
  table.tabelle-karten thead { display: none; }
  table.tabelle-karten, table.tabelle-karten tbody, table.tabelle-karten tr, table.tabelle-karten td { display: block; width: 100%; }
  table.tabelle-karten tr { padding: 10px 12px; margin-bottom: 8px; border-radius: var(--r-zeile); background: rgb(255 255 255 / .04); }
  table.tabelle-karten td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.tabelle-karten td::before { content: attr(data-label); color: var(--text-kopf); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-align: left; }
  table.tabelle-karten td:first-child { display: block; font-weight: 600; text-align: left; }
  .umschalter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .umschalter::-webkit-scrollbar { display: none; }
  table.tabelle-karten td:first-child::before { display: none; }
  table.tabelle-karten tbody tr:hover td { background: none; }
}
@media (pointer: coarse) {
  body { font-size: 14.5px; }
  .btn { min-height: 44px; padding: 10px 18px; }
  .btn-sm { min-height: 40px; padding: 8px 14px; font-size: 13px; }
  input, select, textarea { font-size: 16px; min-height: 44px; }
  input[type=checkbox], input[type=radio] { min-height: 0; width: 22px; height: 22px; }
  summary { padding: 8px 0; }
  th, td { padding: 10px 10px; }
  .umschalter > a, .umschalter > button { min-height: 40px; }
}

/* ── 9. Barrierefreiheit ───────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--akzent-hell); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--akzent-hell); outline-offset: 1px; }
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-dicht, .glass-accent, .glass-pill, .panel, .card, .flyout, .leiste, .tableiste {
    background: var(--glas-deckend) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .glass-accent { background: #0A3D63 !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .cockpit-haupt :is(.glass, .glass-accent, .panel, .card):hover { transform: none; }
}
@media print {
  body::before, .leiste, .tableiste, .kopfzeile { display: none; }
  .cockpit-haupt { margin: 0; padding: 0; }
}

/* ── Anmeldung ─────────────────────────────────────────────────────────────── */
.anmelden { max-width: 400px; margin: min(14vh, 120px) auto 40px; padding: 28px; }
.anmelden h1 { margin: 14px 0 0; font-size: 28px; }
.anmelden .kontext { margin: 4px 0 18px; }
.anmelden .banner { margin: 0 0 6px; }
.anmelden-marke {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--akzent); color: var(--auf-akzent); font-weight: 700; font-size: 16px;
  box-shadow: 0 12px 30px -12px var(--akzent-glow);
}
