/* FPlie Cockpit: Night Glass. Werte aus DESIGN.md. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("schriften/bricolage-grotesque-latin-ext-wght-normal.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; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("schriften/bricolage-grotesque-latin-wght-normal.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("schriften/instrument-sans-latin-ext-wght-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("schriften/instrument-sans-latin-wght-normal.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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: dark;
  --grund: #0B0F16;
  --wolke-gruen: rgba(87, 232, 164, .16);
  --wolke-blau: rgba(86, 140, 255, .12);
  --wolke-warm: rgba(255, 176, 96, .06);
  --glas: rgba(22, 28, 38, .55);
  --glas-fest: rgba(16, 21, 29, .82);
  --glas-kante: rgba(255, 255, 255, .10);
  --glas-kante-hell: rgba(255, 255, 255, .18);
  --blur: 18px;
  --flaeche-daten: rgba(13, 17, 24, .92);
  --schatten: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 40px rgba(0,0,0,.45);
  --text: #E8EDF4;
  --text-2: #A9B4C2;
  --text-3: #7D8899;
  --marke: #57E8A4;
  --marke-tinte: #0A0D14;
  --marke-glow: 0 0 24px rgba(87, 232, 164, .35);
  --gut: #57E8A4; --mittel: #F5C452; --schwach: #F59A52; --schlecht: #FF6B6B; --neutral: #6B7A90; --info: #7AA7FF;
  --reihe-1: #57E8A4; --reihe-2: #7AA7FF; --reihe-3: #F5C452;
  --reihe-4: #C792EA; --reihe-5: #F59A52; --reihe-6: #6B7A90;
  --r-karte: 22px; --r-gross: 28px; --r-knopf: 12px; --r-pille: 999px;
  --abstand: 24px;
  --leiste: 240px;
  --titel: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --schrift: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-reduced-transparency: reduce) {
  :root { --glas: rgba(22,28,38,1); --glas-fest: rgba(16,21,29,1); --blur: 0px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glas: rgba(22,28,38,.96); --glas-fest: rgba(16,21,29,.98); }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--grund); }
body { margin: 0; min-height: 100vh; color: var(--text); font: 400 14px/1.5 var(--schrift);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60vw 50vh at 12% -5%, var(--wolke-gruen), transparent 70%),
    radial-gradient(55vw 55vh at 95% 10%, var(--wolke-blau), transparent 70%),
    radial-gradient(50vw 45vh at 60% 110%, var(--wolke-warm), transparent 70%);
  background-attachment: fixed; }
.styria-voll { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .55; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--marke); outline-offset: 2px; border-radius: 6px; }
.i { width: 18px; height: 18px; stroke-width: 1.75; flex: none; vertical-align: -4px; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--marke); color: var(--marke-tinte);
  padding: 8px 14px; border-radius: var(--r-knopf); font-weight: 600; }
.sprung:focus { left: 8px; }

/* ---------- Seitenleiste ---------- */
.seitenleiste { position: fixed; inset: 0 auto 0 0; width: var(--leiste); z-index: 30; display: flex; flex-direction: column;
  gap: 4px; padding: 18px 12px; background: var(--glas-fest); border-right: 1px solid var(--glas-kante);
  backdrop-filter: blur(var(--blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur)) saturate(140%); }
.wortmarke { font: 700 19px/1 var(--titel); letter-spacing: -.01em; color: var(--text); display: flex; align-items: center;
  gap: 8px; padding: 6px 10px 18px; text-decoration: none; white-space: nowrap; }
.wortmarke span { color: var(--marke); text-shadow: var(--marke-glow); }
.wortmarke img { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a, .einklappen, .abmelden button { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px;
  border-radius: var(--r-knopf); color: var(--text-2); text-decoration: none; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent; background: none; font: inherit; font-weight: 500; cursor: pointer; width: 100%; text-align: left; }
.nav a .i, .einklappen .i, .abmelden .i { width: 20px; height: 20px; }
.nav a:hover, .einklappen:hover, .abmelden button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a.aktiv { color: var(--text); background: rgba(87,232,164,.10); border-color: rgba(87,232,164,.22); }
.nav a.aktiv .i { color: var(--marke); }
.nav .trenner { height: 1px; background: var(--glas-kante); margin: 10px 8px; }
.zaehler { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--r-pille); background: var(--marke);
  color: var(--marke-tinte); font-weight: 700; font-size: 12px; display: inline-grid; place-items: center; box-shadow: var(--marke-glow); }
.schmal { --leiste: 72px; }
.schmal .seitenleiste .text, .schmal .wortmarke b { display: none; }
.schmal .nav a, .schmal .einklappen, .schmal .abmelden button { justify-content: center; padding: 0; }
.schmal .nav a { position: relative; }
.schmal .zaehler { position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
.schmal .einklappen .i { transform: rotate(180deg); }

/* ---------- Kopf und Inhalt ---------- */
.haupt { margin-left: var(--leiste); min-width: 0; }
.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px var(--abstand); background: var(--glas-fest); border-bottom: 1px solid var(--glas-kante);
  backdrop-filter: blur(var(--blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur)) saturate(140%); }
.kopf h1 { font: 600 28px/1.15 var(--titel); letter-spacing: -.015em; margin-right: auto; }
.wahl { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-knopf); background: rgba(255,255,255,.05);
  border: 1px solid var(--glas-kante); }
.wahl a { min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 9px;
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 13px; white-space: nowrap; }
.wahl a:hover { color: var(--text); }
.wahl a.aktiv { background: var(--marke); color: var(--marke-tinte); font-weight: 600; }
.projekt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--r-knopf);
  border: 1px solid var(--glas-kante); color: var(--text-2); font-size: 13px; white-space: nowrap; }
.suche { position: relative; }
.suche .i { position: absolute; left: 11px; top: 11px; color: var(--text-3); pointer-events: none; }
.suche input { width: 200px; padding-left: 36px; }
.inhalt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--abstand); padding: var(--abstand);
  max-width: 1600px; margin: 0 auto; align-items: start; }
.inhalt > * { grid-column: span 12; min-width: 0; }
.sp-2 { grid-column: span 2; } .sp-3 { grid-column: span 3; } .sp-4 { grid-column: span 4; } .sp-5 { grid-column: span 5; }
.sp-6 { grid-column: span 6; } .sp-7 { grid-column: span 7; } .sp-8 { grid-column: span 8; }
.seitenkopf { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.seitenkopf p { color: var(--text-2); max-width: 70ch; }
.seitenkopf img { height: 112px; width: auto; flex: none; margin: -8px 0; }

/* ---------- Karten ---------- */
.karte { background: var(--glas); backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%); border: 1px solid var(--glas-kante);
  border-top-color: var(--glas-kante-hell); border-radius: var(--r-karte); box-shadow: var(--schatten); padding: var(--abstand); }
.daten { background: var(--flaeche-daten); border-radius: 14px; padding: 16px; }
.karte > header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.karte h2 { font: 600 15px/1.3 var(--schrift); color: var(--text); margin-right: auto; }
.karte h3 { font: 600 13px/1.3 var(--schrift); color: var(--text-2); margin: 14px 0 8px; }
.karte-fuss { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.karte-fuss span:last-child { text-align: right; margin-left: auto; }
a.karte { display: block; text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
a.karte:hover { transform: translateY(-2px); border-color: var(--glas-kante-hell); }

.kennzahlen { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--abstand); }
.kennzahlen.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kennzahlen.fuenf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kennzahl { padding: 18px 20px; min-height: 132px; display: flex !important; flex-direction: column; gap: 6px; }
.k-titel { font-size: 13px; font-weight: 500; color: var(--text-2); display: flex; gap: 8px; align-items: center; }
.k-wert { font: 600 40px/1 var(--titel); letter-spacing: -.02em; color: var(--text); white-space: nowrap; margin-top: 2px; }
.k-wert small { font-size: 17px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.k-wert.k-text { font-size: 20px; line-height: 2; color: var(--text-2); letter-spacing: 0; }
.k-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.k-delta .i { width: 15px; height: 15px; vertical-align: -2px; }
.k-delta.auf { color: var(--gut); } .k-delta.ab { color: var(--schlecht); } .k-delta.gleich { color: var(--text-3); }
.k-hinweis { font-size: 12px; color: var(--text-3); margin-top: auto; }

/* ---------- Plaketten ---------- */
.plakette { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: var(--r-pille);
  font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid; line-height: 1; }
.plakette .i { width: 13px; height: 13px; vertical-align: 0; }
.p-gut { color: var(--gut); background: rgba(87,232,164,.12); border-color: rgba(87,232,164,.3); }
.p-mittel { color: var(--mittel); background: rgba(245,196,82,.12); border-color: rgba(245,196,82,.3); }
.p-schwach { color: var(--schwach); background: rgba(245,154,82,.12); border-color: rgba(245,154,82,.3); }
.p-schlecht { color: var(--schlecht); background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.32); }
.p-neutral { color: var(--text-2); background: rgba(107,122,144,.16); border-color: rgba(107,122,144,.4); }
.p-info { color: var(--info); background: rgba(122,167,255,.12); border-color: rgba(122,167,255,.3); }

/* ---------- Tabellen ---------- */
.rollen { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }  /* relative: sonst ragen .nur-vorleser aus der Rollfläche */
.daten.rollen { padding: 0 0 4px; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabelle th, .tabelle td { padding: 9px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.tabelle th { font-weight: 600; color: var(--text-2); font-size: 12px; white-space: nowrap; background: rgb(13,17,24);
  position: sticky; top: 0; z-index: 2; }
.tabelle tbody tr:last-child td { border-bottom: 0; }
.tabelle td.zahl, .tabelle th.zahl { text-align: right; white-space: nowrap; }
.tabelle td.eng, .tabelle th.eng { white-space: nowrap; }
.tabelle .neben { color: var(--text-3); font-size: 12px; }
.tabelle a { text-decoration: none; }
.tabelle a:hover { color: var(--marke); }
.tabelle tr.klickbar { cursor: pointer; }
.tabelle tr.klickbar:hover td, .tabelle tr.gewaehlt td { background: rgba(255,255,255,.04); }
.tabelle tr.gruppe td { background: rgba(255,255,255,.035); font-weight: 600; padding-top: 12px; padding-bottom: 12px; }
.tabelle tr.grau td { opacity: .5; }
.tabelle tfoot td { color: var(--text-2); font-weight: 600; border-top: 1px solid var(--glas-kante); border-bottom: 0; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; border: 4px solid transparent;
  border-top-color: var(--text-3); vertical-align: -2px; opacity: .5; }
th[aria-sort="ascending"]::after { border-top-color: transparent; border-bottom-color: var(--marke); vertical-align: 2px; opacity: 1; }
th[aria-sort="descending"]::after { border-top-color: var(--marke); opacity: 1; }
.spark { display: inline-block; vertical-align: middle; }
.wert-liste { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.wert-liste dt { color: var(--text-3); } .wert-liste dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Formulare und Knöpfe ---------- */
input, select, textarea { font: inherit; color: var(--text); background: rgba(8,11,16,.7); border: 1px solid var(--glas-kante);
  border-radius: var(--r-knopf); min-height: 40px; padding: 8px 12px; max-width: 100%; }
textarea { line-height: 1.45; width: 100%; resize: vertical; }
input::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--marke); outline-offset: 1px; border-color: transparent; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin: 10px 0 4px; }
label.haken { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; margin: 0; min-height: 40px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 18px; height: 18px; accent-color: var(--marke); padding: 0; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: var(--r-knopf); border: 1px solid var(--glas-kante-hell); background: rgba(255,255,255,.06); color: var(--text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.knopf:hover { background: rgba(255,255,255,.11); }
.knopf-marke { background: var(--marke); color: var(--marke-tinte); border-color: transparent; box-shadow: var(--marke-glow); }
.knopf-marke:hover { background: #7BF0BB; }
.knopf-leise { border-color: transparent; background: none; color: var(--text-2); padding: 0 10px; }
.knopf-gefahr { color: var(--schlecht); border-color: rgba(255,107,107,.35); }
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter label { margin: 0; }
.filter .rechts { margin-left: auto; }
.reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.zwei > * { min-width: 0; } .zwei input, .zwei select { width: 100%; }
.reiter { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--glas-kante); }
.reiter a { min-height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; color: var(--text-2);
  text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.reiter a:hover { color: var(--text); }
.reiter a.aktiv { color: var(--text); border-bottom-color: var(--marke); }
.reiter .zaehler { margin-left: 0; box-shadow: none; }

/* ---------- Leisten und leere Zustände ---------- */
.leiste { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-knopf); border: 1px solid;
  font-weight: 500; background: var(--flaeche-daten); }
.leiste .knopf { margin-left: auto; min-height: 34px; }
.leiste-fehler { color: #FFB1B1; border-color: rgba(255,107,107,.45); }
.leiste-warnung { color: #FADB8E; border-color: rgba(245,196,82,.45); }
.leiste-info { color: #B9D0FF; border-color: rgba(122,167,255,.4); }
.leer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 16px; text-align: center; color: var(--text-2); }
.leer img { width: 96px; height: 96px; }
.skelett { height: 14px; border-radius: 7px; background: rgba(255,255,255,.07); margin: 12px 0; animation: puls 1.4s ease-in-out infinite; }
@keyframes puls { 50% { opacity: .45; } }

/* ---------- Übersicht ---------- */
.aufgaben { list-style: none; margin: 0; padding: 0; }
.aufgaben li + li { border-top: 1px solid rgba(255,255,255,.06); }
.aufgaben a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 4px; text-decoration: none; }
.aufgaben a:hover { color: var(--marke); }
.aufgaben .i:first-child { color: var(--mittel); }
.aufgaben .prio-1 .i:first-child { color: var(--schlecht); }
.aufgaben .prio-4 .i:first-child { color: var(--info); }
.aufgaben .i:last-child { margin-left: auto; color: var(--text-3); }
.balken { display: grid; gap: 10px; }
.balken-zeile { display: grid; grid-template-columns: minmax(120px, 34%) 1fr auto; gap: 12px; align-items: center; font-size: 13px;
  text-decoration: none; min-height: 28px; }
.balken-zeile .name { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.balken-zeile:hover .name { color: var(--marke); }
.balken-spur { height: 14px; border-radius: 7px; background: rgba(255,255,255,.05); overflow: hidden; }
.balken-fuell { display: block; height: 100%; min-width: 3px; border-radius: 7px; background: linear-gradient(90deg, rgba(87,232,164,.55), var(--marke)); }
.balken-fuell.blau { background: linear-gradient(90deg, rgba(122,167,255,.5), var(--info)); }
.balken-zeile .wert { font-weight: 600; min-width: 92px; text-align: right; white-space: nowrap; }
.balken-zeile .wert small { color: var(--text-3); font-weight: 500; margin-left: 6px; }
.stand-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.stand-liste li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; min-height: 40px;
  border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; }
.stand-liste li:last-child { border-bottom: 0; }
.stand-liste .neben { color: var(--text-3); font-size: 12px; }
.bewegung { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bewegung h3 { margin-top: 0; }
.bewegung ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.bewegung li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.bewegung li:last-child { border-bottom: 0; }
.bewegung .neben { grid-column: 1 / -1; color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bewegung .platz { font-weight: 600; white-space: nowrap; }
.auf { color: var(--gut); } .ab { color: var(--schlecht); }

/* ---------- Diagramme ---------- */
.diagramm { position: relative; height: 260px; }
.diagramm.klein { height: 200px; } .diagramm.gross { height: 320px; }
details.werte { margin-top: 8px; font-size: 12px; color: var(--text-2); }
details.werte summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }
details.werte summary:hover { color: var(--text); }
details.werte .rollen { max-height: 260px; overflow: auto; margin-top: 6px; }
.legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legende span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--f, var(--neutral)); }
.ring-zeile { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; }

/* ---------- Microsites ---------- */
.statusband { display: flex; gap: 4px; flex-wrap: wrap; }
.statusband a { width: 22px; height: 22px; border-radius: 6px; background: rgba(107,122,144,.35); border: 1px solid rgba(107,122,144,.6); display: block; }
.statusband a.live { background: rgba(87,232,164,.55); border-color: var(--gut); box-shadow: 0 0 10px rgba(87,232,164,.25); }
.statusband a.gebaut { background: rgba(122,167,255,.5); border-color: var(--info); }
.statusband a:hover { transform: translateY(-2px); }
.icons { display: inline-flex; gap: 6px; align-items: center; }
.icons .an { color: var(--text); } .icons .aus { color: rgba(107,122,144,.55); }
.icons a.an:hover { color: var(--marke); }
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.kachel { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--flaeche-daten);
  border: 1px solid rgba(255,255,255,.06); text-decoration: none; }
.kachel:hover { border-color: var(--glas-kante-hell); }
.kachel strong { font: 600 15px/1.25 var(--titel); overflow-wrap: anywhere; }
.kachel dl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 10px; margin: 0; font-size: 12px; }
.kachel dt { color: var(--text-3); } .kachel dd { margin: 0; font-weight: 600; font-size: 14px; }
.domainkopf { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.domainkopf h2 { font: 600 30px/1.1 var(--titel); letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.domainkopf .daten-zeile { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--text-2); width: 100%; }
.zeitleiste { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; padding: 0; margin: 18px 0 0; }
.zeitleiste li { position: relative; padding-top: 22px; font-size: 12px; color: var(--text-3); }
.zeitleiste li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.12); }
.zeitleiste li::after { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--grund); border: 2px solid var(--neutral); }
.zeitleiste li.fertig { color: var(--text-2); }
.zeitleiste li.fertig::before { background: rgba(87,232,164,.5); }
.zeitleiste li.fertig::after { background: var(--marke); border-color: var(--marke); box-shadow: var(--marke-glow); }
.zeitleiste li:last-child::before { right: auto; width: 12px; }
.zeitleiste b { display: block; color: var(--text); font-weight: 600; font-size: 13px; }
.zeitleiste li:not(.fertig) b { color: var(--text-2); }

/* ---------- Ranking ---------- */
td.platz { text-align: center; font-weight: 700; min-width: 64px; white-space: nowrap; color: var(--text); }
td.platz.s-1 { background: rgba(87,232,164,.22); } td.platz.s-2 { background: rgba(245,196,82,.22); }
td.platz.s-3, td.platz.s-4 { background: rgba(245,154,82,.22); }
td.platz.s-5 { background: rgba(255,107,107,.10); color: var(--text-3); font-weight: 500; font-size: 12px; }
td.platz.s-0 { color: var(--text-3); font-weight: 500; font-size: 12px; }
.raster th:first-child, .raster td:first-child { position: sticky; left: 0; z-index: 1; background: rgb(13,17,24); }
.raster th:first-child { z-index: 3; }
.raster tr.gruppe td:first-child { background: rgb(21,25,32); }
.heat td.zelle { text-align: center; font-weight: 600; min-width: 74px; }
.formel { color: var(--text-2); font-size: 13px; }
.formel code { color: var(--text); background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; font-family: inherit; }

/* ---------- Präsenz ---------- */
.matrix td { text-align: center; } .matrix td:first-child, .matrix th:first-child { text-align: left; }
.fehlt { display: inline-block; width: 20px; height: 20px; border-radius: 6px; border: 1.5px dashed rgba(125,136,153,.7); vertical-align: middle; }
.matrix a { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; color: var(--marke); border-radius: 8px; }
.matrix a:hover { background: rgba(87,232,164,.12); }

/* ---------- Schublade ---------- */
.abdunkeln { position: fixed; inset: 0; background: rgba(4,6,10,.5); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.schublade { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 50; overflow-y: auto; padding: 20px;
  background: var(--glas-fest); border-left: 1px solid var(--glas-kante-hell); box-shadow: -20px 0 60px rgba(0,0,0,.5);
  backdrop-filter: blur(var(--blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  transform: translateX(105%); transition: transform .24s ease; visibility: hidden; }
.schublade-offen .schublade { transform: none; visibility: visible; }
.schublade-offen .abdunkeln { opacity: 1; pointer-events: auto; }
.schublade > header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.schublade h2 { font: 600 22px/1.2 var(--titel); margin-right: auto; }
.schublade section { padding: 14px 0; border-top: 1px solid var(--glas-kante); }
.schublade section > h3 { font: 600 13px/1.3 var(--schrift); color: var(--text-2); margin: 0 0 10px; text-transform: none; }
.schublade .daten { padding: 12px; }
.schublade .daten + .daten { margin-top: 8px; }
.kontakt { display: grid; gap: 4px; }
.kontakt a { text-decoration: none; } .kontakt a:hover { color: var(--marke); }
.einzeln { display: grid; gap: 4px; font-size: 13px; }
.einzeln .kopfzeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.einzeln details summary { cursor: pointer; color: var(--text-2); min-height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.betriebswahl { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.betriebswahl label { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; margin: 0; padding: 8px 10px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.06); font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; min-height: 44px; }
.betriebswahl label:has(input:checked) { border-color: var(--marke); background: rgba(87,232,164,.08); }
.betriebswahl label.grau { opacity: .5; }
.betriebswahl .neben { grid-column: 2; color: var(--text-3); font-size: 12px; font-weight: 400; display: flex; gap: 6px; flex-wrap: wrap; }
.schritt { font-weight: 600; color: var(--text); margin: 14px 0 6px; display: flex; gap: 8px; align-items: center; }
.schritt b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(87,232,164,.16);
  color: var(--marke); font-size: 12px; }

/* ---------- Anmeldung und Fehler ---------- */
.nur-karte { display: grid; place-items: center; padding: 24px; }
.anmelden { width: min(400px, 100%); }
.anmelden .karte { display: grid; gap: 4px; padding: 32px; border-radius: var(--r-gross); }
.anmelden .wortmarke { padding: 0 0 6px; font-size: 22px; }
.anmelden h1 { font: 600 15px/1.3 var(--schrift); color: var(--text-2); margin-bottom: 12px; }
.anmelden input { width: 100%; min-height: 46px; }
.anmelden .knopf { margin-top: 18px; min-height: 46px; width: 100%; }
.anmelden .leiste { margin-bottom: 6px; }

/* ---------- Handy ---------- */
.handyleiste { display: none; }
@media (max-width: 1280px) {
  .kennzahlen, .kennzahlen.fuenf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kennzahlen.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-wert { font-size: 34px; }
}
@media (max-width: 1100px) {
  .sp-2, .sp-3, .sp-4, .sp-5, .sp-6, .sp-7, .sp-8 { grid-column: span 12; }
}
@media (max-width: 860px) {
  :root { --abstand: 16px; --leiste: 0px; }
  .schmal { --leiste: 0px; }
  .seitenleiste { display: none; }
  .kopf { position: static; padding: 12px var(--abstand); gap: 10px; }
  .kopf h1 { font-size: 22px; width: 100%; }
  .projekt, .suche { display: none; }
  .inhalt { padding-bottom: 96px; }
  .kennzahlen, .kennzahlen.vier, .kennzahlen.fuenf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kennzahl { padding: 14px; min-height: 116px; }
  .k-wert { font-size: 28px; } .k-wert small { font-size: 15px; }
  .karte { padding: 16px; border-radius: 18px; }
  .seitenkopf img { display: none; }
  .bewegung, .ring-zeile, .zwei { grid-template-columns: 1fr; }
  .balken-zeile { grid-template-columns: 1fr auto; }
  .balken-zeile .balken-spur { grid-column: 1 / -1; grid-row: 2; }
  .zeitleiste { grid-auto-flow: row; gap: 0; }
  .zeitleiste li { padding: 0 0 14px 24px; }
  .zeitleiste li::before { top: 0; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .zeitleiste li:last-child::before { width: 2px; height: 12px; }
  .handyleiste { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(16,21,29,.96); border-top: 1px solid var(--glas-kante); padding: 4px 4px max(4px, env(safe-area-inset-bottom)); }
  .handyleiste a, .handyleiste summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 54px; font-size: 11px; font-weight: 500; color: var(--text-2); text-decoration: none; position: relative; cursor: pointer; list-style: none; }
  .handyleiste summary::-webkit-details-marker { display: none; }
  .handyleiste a.aktiv, .handyleiste details[open] summary { color: var(--marke); }
  .handyleiste .zaehler { position: absolute; top: 2px; left: 54%; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  .handyleiste .mehr { position: absolute; bottom: 100%; right: 6px; margin-bottom: 8px; min-width: 220px; padding: 8px; border-radius: 16px;
    background: rgb(16,21,29); border: 1px solid var(--glas-kante-hell); box-shadow: var(--schatten); display: grid; }
  .handyleiste .mehr a, .handyleiste .mehr button { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 12px; font-size: 14px;
    background: none; border: 0; color: var(--text-2); font-family: inherit; display: flex; align-items: center; width: 100%; cursor: pointer; }
  .schublade { padding: 16px 16px 90px; }
}

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .einblenden > * { animation: hoch .24s ease both; }
  .einblenden > *:nth-child(2) { animation-delay: 50ms; } .einblenden > *:nth-child(3) { animation-delay: 100ms; }
  .einblenden > *:nth-child(4) { animation-delay: 150ms; } .einblenden > *:nth-child(5) { animation-delay: 200ms; }
  .einblenden > *:nth-child(6) { animation-delay: 250ms; } .einblenden > *:nth-child(7) { animation-delay: 300ms; }
  .einblenden > *:nth-child(n+8) { animation-delay: 350ms; }
  @keyframes hoch { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
