/* Linslerhof Cockpit. Hell und dunkel, jede Farbe ein Bereich: Hotel Grün, Restaurant Terrakotta, Entwicklung Blau,
   Verwaltung Grau. Orange (Marke) nur für den einen Hauptknopf. Diagrammfarben: je Bereich eine Farbe, Vorjahre heller
   (Abstand benachbarter Jahre geprüft mit dem Palette-Validator: ΔE ≥ 15 hell auf #ffffff und dunkel auf #1b1e1c). */
@font-face { font-family: "LH Sans"; src: url("/fonts/open-sans.woff2") format("woff2"); font-weight: 300 800; font-stretch: 75% 100%; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f4f4f2; --side: #ffffff; --surface: #ffffff; --surface-2: #fafaf8; --sunk: #efefec;
  --line: #e6e6e3; --line-2: #d6d6d2;
  --text: #313131; --text-2: #55554f; --muted: #6b6b66; --strong: #2b2b2a;
  --accent: #d74808; --accent-hover: #bd3f06; --on-accent: #ffffff;
  --chip-on-bg: #313131; --chip-on-fg: #ffffff;
  --shadow: 0 1px 2px rgba(40, 38, 30, .05), 0 2px 8px rgba(40, 38, 30, .04);
  --tint: 11%;
  --hotel: #438c57; --hotel-pale: #8fc29a; --hotel-paler: #d9ebdd; --hotel-ink: #2f6a3e;
  --rest: #af5629;  --rest-pale: #d29a7b;  --rest-paler: #f0d9cc;  --rest-ink: #8a3f19;
  --proj: #28568e;  --proj-pale: #9fb6d4;  --proj-ink: #23497a;
  --admin: #5d5d57; --admin-ink: #3c3c3b;
  --good: #2e8540; --good-ink: #1d6230; --bad: #c0392b; --bad-ink: #a42a1e; --warn: #c2821f; --warn-ink: #7d4f0b;
  --st-arbeit: #28568e; --st-vorschau: #1d8590; --st-wartet: #c2821f; --st-live: #2e8540;
  --f: "LH Sans", "Open Sans", "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121413; --side: #161917; --surface: #1b1e1c; --surface-2: #202421; --sunk: #262a27;
    --line: #2b302c; --line-2: #3b413c;
    --text: #ecebe6; --text-2: #c4c5be; --muted: #9a9c95; --strong: #f4f3ee;
    --accent: #d74808; --accent-hover: #e65a16;
    --chip-on-bg: #ecebe6; --chip-on-fg: #161917;
    --shadow: none; --tint: 18%;
    --hotel: #6dbb7f; --hotel-pale: #467a53; --hotel-paler: #2d4733; --hotel-ink: #9ed3aa;
    --rest: #d07a4a;  --rest-pale: #86502f;  --rest-paler: #4a2c1f;  --rest-ink: #f0b48f;
    --proj: #4f7fbd;  --proj-pale: #2f4868;  --proj-ink: #a9c4ea;
    --admin: #8e8f88; --admin-ink: #d6d6d0;
    --good: #5cbf72; --good-ink: #8fdaa2; --bad: #ef6f63; --bad-ink: #f7a39a; --warn: #e0a63a; --warn-ink: #f1c777;
    --st-arbeit: #6f9ad3; --st-vorschau: #3fb3bd; --st-wartet: #e0a63a; --st-live: #5cbf72;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121413; --side: #161917; --surface: #1b1e1c; --surface-2: #202421; --sunk: #262a27;
  --line: #2b302c; --line-2: #3b413c;
  --text: #ecebe6; --text-2: #c4c5be; --muted: #9a9c95; --strong: #f4f3ee;
  --accent: #d74808; --accent-hover: #e65a16;
  --chip-on-bg: #ecebe6; --chip-on-fg: #161917;
  --shadow: none; --tint: 18%;
  --hotel: #6dbb7f; --hotel-pale: #467a53; --hotel-paler: #2d4733; --hotel-ink: #9ed3aa;
  --rest: #d07a4a;  --rest-pale: #86502f;  --rest-paler: #4a2c1f;  --rest-ink: #f0b48f;
  --proj: #4f7fbd;  --proj-pale: #2f4868;  --proj-ink: #a9c4ea;
  --admin: #8e8f88; --admin-ink: #d6d6d0;
  --good: #5cbf72; --good-ink: #8fdaa2; --bad: #ef6f63; --bad-ink: #f7a39a; --warn: #e0a63a; --warn-ink: #f1c777;
  --st-arbeit: #6f9ad3; --st-vorschau: #3fb3bd; --st-wartet: #e0a63a; --st-live: #5cbf72;
}

/* Bereichsfarbe: setzt Akzent und die drei Jahresstufen */
.hotel { --c: var(--hotel); --c-ink: var(--hotel-ink); --c0: var(--hotel); --c1: var(--hotel-pale); --c2: var(--hotel-paler); }
.rest  { --c: var(--rest);  --c-ink: var(--rest-ink);  --c0: var(--rest);  --c1: var(--rest-pale);  --c2: var(--rest-paler); }
.proj  { --c: var(--proj);  --c-ink: var(--proj-ink);  --c0: var(--proj);  --c1: var(--proj-pale);  --c2: var(--proj-pale); }
.admin { --c: var(--admin); --c-ink: var(--admin-ink); }
.vergleich { --c: var(--admin); --c-ink: var(--admin-ink); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 14.5px/1.5 var(--f); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; color: var(--strong); line-height: 1.2; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ── Rahmen ─────────────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.seite { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; padding: 22px 12px 16px; position: sticky; top: 0; height: 100vh; }
.marke { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 0 10px; }
.marke img { width: 116px; height: auto; }
:root[data-theme="dark"] .marke img, :root[data-theme="dark"] .login-karte img { filter: invert(1) hue-rotate(180deg) saturate(1.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .marke img, :root:not([data-theme="light"]) .login-karte img { filter: invert(1) hue-rotate(180deg) saturate(1.3); } }
.marke span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.haupt { display: flex; flex-direction: column; gap: 3px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.nav:hover { background: var(--sunk); }
.nav.on { background: color-mix(in srgb, var(--c, var(--admin)) var(--tint), var(--surface)); color: var(--strong); }
.nav-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--c); color: #fff; flex: none; }
.nav-ic .ic { width: 17px; height: 17px; }
.nav-t { flex: 1; }
.zahl { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--warn-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.unten { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.leise-link { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 13px; color: var(--muted); text-decoration: none; border-radius: 8px; }
.leise-link:hover, .leise-link.on { color: var(--text); background: var(--sunk); }
.leise-link .ic { width: 16px; height: 16px; }
.thema { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; border-radius: 10px; background: var(--sunk); }
.thema button { appearance: none; border: 0; background: none; border-radius: 8px; padding: 5px 4px; font-size: 12px; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.thema button .ic { width: 14px; height: 14px; }
.thema button[aria-pressed="true"] { background: var(--surface); color: var(--strong); font-weight: 600; box-shadow: var(--shadow); }
.ich { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.kreis { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.nm { flex: 1; min-width: 0; display: grid; font-size: 13px; font-weight: 600; line-height: 1.3; }
.nm a { font-size: 12px; font-weight: 400; color: var(--muted); text-decoration: none; }
.nm a:hover { text-decoration: underline; }
.ich form { margin: 0; }
.ab { appearance: none; border: 0; background: none; padding: 6px; border-radius: 8px; color: var(--muted); cursor: pointer; display: grid; }
.ab:hover { background: var(--sunk); color: var(--text); }

.inhalt { padding: 24px 32px 64px; max-width: 1280px; width: 100%; }

/* ── Bausteine ──────────────────────────────────────────────────────────── */
.leiste { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.zeitwahl { display: flex; gap: 6px; flex-wrap: wrap; }
.zeitwahl a { text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.zeitwahl a small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 2px; }
.zeitwahl a:hover { border-color: var(--text); }
.zeitwahl a.on { background: var(--chip-on-bg); border-color: var(--chip-on-bg); color: var(--chip-on-fg); }
.zeitwahl a.on small { color: inherit; opacity: .7; }
.spanne { margin: 0; color: var(--text); font-size: 13px; font-weight: 600; }
.spanne span { font-weight: 400; color: var(--muted); }

.bereich { margin-top: 30px; }
.inhalt > .bereich:first-child { margin-top: 4px; }
.bkopf { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 19px; font-weight: 700; font-stretch: 80%; letter-spacing: .04em; text-transform: uppercase; }
.bkopf small { font: 400 12.5px var(--f); letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 4px; }
.bkopf .zahl { font-stretch: 100%; letter-spacing: 0; }
.b-ic { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--c); color: #fff; flex: none; }
.b-ic .ic { width: 18px; height: 18px; }

.karte { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.karte-kopf h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.karte-kopf h3 span { font-weight: 400; color: var(--muted); }
.karte-kopf h3 .b-ic { width: 26px; height: 26px; border-radius: 7px; }
.karte-kopf h3 .b-ic .ic { width: 15px; height: 15px; }
.karte.leer { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 18px; }
.karte.leer p { margin: 0; flex: 1; min-width: 220px; color: var(--text-2); }
.leer-ic { color: var(--warn); width: 22px; height: 22px; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.zwei-eins { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.eins { display: grid; gap: 14px; }
.hinweis { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.hinweis.klein { margin: 0; font-size: 12px; }

/* Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kachel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px 14px; box-shadow: var(--shadow); min-width: 0; }
.k-label { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.k-ic { width: 26px; height: 26px; padding: 5px; border-radius: 7px; background: color-mix(in srgb, var(--c) var(--tint), var(--surface)); color: var(--c-ink); }
.k-wert { margin: 10px 0 8px; font-size: 30px; font-weight: 700; color: var(--strong); letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vgl { margin: 0 0 4px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta b { font-size: 8.5px; }
.delta.plus { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good-ink); }
.delta.minus { background: color-mix(in srgb, var(--bad) 13%, var(--surface)); color: var(--bad-ink); }
.delta.neutral { background: var(--sunk); color: var(--text-2); }
.jahre { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12px; }
.j-jahr { color: var(--muted); font-variant-numeric: tabular-nums; }
.j-wert { color: var(--text); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.spur { width: 100%; height: 8px; display: block; overflow: visible; }
.spur-bg { fill: var(--sunk); }
.spur .s0, .grafik .s0 { fill: var(--c0); }
.spur .s1, .grafik .s1 { fill: var(--c1); }
.spur .s2, .grafik .s2 { fill: var(--c2); }

/* Grafiken */
.legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.s0 { background: var(--c0); } .sw.s1 { background: var(--c1); } .sw.s2 { background: var(--c2); }
.strich { width: 2px; height: 12px; background: var(--text); display: inline-block; border-radius: 1px; }
.grafik-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.grafik { width: 100%; height: auto; display: block; overflow: visible; }
.grafik .raster { stroke: var(--line); stroke-width: 1; }
.grafik .basis { stroke: var(--line-2); stroke-width: 1; }
.grafik .achse { fill: var(--muted); font-size: 11px; font-family: var(--f); }
.grafik .null { opacity: .6; }
.grafik .hit { fill: transparent; }
.grafik .gruppe:hover .hit { fill: color-mix(in srgb, var(--text) 5%, transparent); }

/* Nächste 14 Nächte */
.naechte { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 1px; }
.naechte li { display: grid; grid-template-columns: 76px minmax(0, 1fr) 38px 34px; align-items: center; gap: 8px; padding: 3px 4px; border-radius: 6px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.naechte li:hover { background: var(--sunk); }
.naechte .spur { height: 10px; }
.n-tag { color: var(--muted); white-space: nowrap; }
.n-tag b { color: var(--text); font-weight: 700; display: inline-block; min-width: 22px; }
.naechte li.we .n-tag b { color: var(--c-ink); }
.n-wert { text-align: right; font-weight: 700; }
.n-vj { text-align: right; color: var(--muted); font-size: 11.5px; }
.vj-strich { fill: var(--text); }
.fussnote { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.fussnote b { color: var(--text); }

/* Reiter ohne Skript (Radio + Label) */
.reiter > input { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--sunk); flex-wrap: wrap; }
.seg label { padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg label:hover { color: var(--text); }
.panel { display: none; }
#jv-a-r:checked ~ #jv-a, #jv-z-r:checked ~ #jv-z, #jv-r-r:checked ~ #jv-r { display: block; }
#jv-a-r:checked ~ .karte-kopf label[for="jv-a-r"], #jv-z-r:checked ~ .karte-kopf label[for="jv-z-r"], #jv-r-r:checked ~ .karte-kopf label[for="jv-r-r"] { background: var(--surface); color: var(--strong); box-shadow: var(--shadow); }
#jv-a-r:focus-visible ~ .karte-kopf label[for="jv-a-r"], #jv-z-r:focus-visible ~ .karte-kopf label[for="jv-z-r"], #jv-r-r:focus-visible ~ .karte-kopf label[for="jv-r-r"] { outline: 2px solid var(--accent); }
.panel .legende { margin-bottom: 6px; }

.tab { margin-top: 6px; font-size: 13px; }
.tab summary { cursor: pointer; color: var(--muted); padding: 4px 0; width: max-content; font-size: 12.5px; }
.tab table { border-collapse: collapse; width: 100%; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.tab th, .tab td { text-align: right; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.tab th:first-child, .tab td:first-child { text-align: left; }
.tab th { font-weight: 600; color: var(--muted); font-size: 12px; }
.fuss-stand { margin: 28px 0 0; font-size: 12px; color: var(--muted); }

#tip { position: fixed; z-index: 50; pointer-events: none; background: var(--chip-on-bg); color: var(--chip-on-fg); font-size: 12.5px; padding: 6px 9px; border-radius: 8px; max-width: 300px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }

/* Knöpfe, Formulare */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 9px; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; color: var(--text); }
.btn:hover { border-color: var(--text); }
.btn .ic { width: 15px; height: 15px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.dunkel { background: var(--chip-on-bg); border-color: var(--chip-on-bg); color: var(--chip-on-fg); }
.btn.danger { color: var(--bad-ink); border-color: color-mix(in srgb, var(--bad) 40%, var(--surface)); }
.btn.leise { color: var(--muted); }
.btn.klein { min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn.klein .ic { width: 13px; height: 13px; }
input[type=text], input[type=email] { min-height: 42px; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 11px; background: var(--surface); width: 100%; }

dl { margin: 4px 0 0; }
.zeile { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.zeile dt { color: var(--muted); }
.zeile dd { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.status.ok i { background: var(--good); }
.fehler { color: var(--bad-ink); }
.meldung { padding: 10px 14px; border-radius: 10px; margin: 0 0 14px; }
.meldung.ok { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good-ink); }
.meldung.fehler { background: color-mix(in srgb, var(--bad) 13%, var(--surface)); color: var(--bad-ink); }
.verbinden { display: grid; gap: 10px; margin-top: 12px; }
.verbinden ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13.5px; }
.verbinden ol .btn { margin-left: 6px; min-height: 32px; }
.verbinden > .btn { justify-self: start; }

/* Anmeldung */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-karte { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 34px 30px 26px; width: min(400px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; box-shadow: var(--shadow); }
.login-karte h1 { font-size: 24px; font-weight: 700; }
.login-karte h1 b { font-weight: 700; }
.login-karte p { margin: 0; color: var(--text-2); }
.login-karte .btn { width: 100%; min-height: 46px; }
.ms { width: 16px; height: 16px; }
.sprache { font-size: 12.5px; }

/* Startseite ohne Zahlen */
.gruss { font-size: 24px; margin-bottom: 18px; }
.start-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.karte.start { display: grid; gap: 4px; text-decoration: none; padding: 18px; }
.karte.start:hover { border-color: var(--c); }
.karte.start .b-ic { margin-bottom: 8px; }
.karte.start span:not(.b-ic) { color: var(--muted); font-size: 13px; }

/* ── Entwicklung ────────────────────────────────────────────────────────── */
.kreis.p0 { background: var(--accent); } .kreis.p1 { background: var(--proj); } .kreis.p2 { background: var(--admin); } .kreis.p3 { background: var(--rest); }
.kreis.mini { width: 18px; height: 18px; font-size: 10px; }
.warten-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.person-karte { padding: 14px 16px 8px; }
.pk-kopf { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-size: 15px; }
.pk-kopf b { flex: 1; }
.person-karte ul { list-style: none; margin: 0; padding: 0; }
.person-karte li { padding: 9px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 13.5px; }
.person-karte li a { text-decoration: none; }
.person-karte li a:hover { text-decoration: underline; }
.tag { justify-self: start; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, var(--proj) var(--tint), var(--surface)); color: var(--proj-ink); white-space: nowrap; }

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.spalte { --s: var(--st-arbeit); background: color-mix(in srgb, var(--s) 7%, var(--bg)); border: 1px solid color-mix(in srgb, var(--s) 18%, var(--bg)); border-radius: 16px; padding: 10px; display: grid; gap: 10px; }
.st-vorschau { --s: var(--st-vorschau); } .st-wartet { --s: var(--st-wartet); } .st-live { --s: var(--st-live); }
.sp-kopf { margin: 2px 4px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.sp-kopf i { width: 9px; height: 9px; border-radius: 50%; background: var(--s); }
.sp-kopf span { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.sp-leer { margin: 0 4px 6px; font-size: 13px; color: var(--muted); }
.pkarte { padding: 14px; display: flex; flex-direction: column; gap: 9px; scroll-margin-top: 16px; border-radius: 12px; }
.pkarte:target { outline: 2px solid var(--s); }
.pkarte h3 { font-size: 15px; }
.pkarte p { margin: 0; }
.ziel { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.ziel .ic, .next .ic, .knack .ic, .zuletzt .ic { width: 15px; height: 15px; margin-top: 2px; }
.stand { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.knack { display: flex; gap: 8px; padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb, var(--bad) 12%, var(--surface)); color: var(--bad-ink); font-size: 12.5px; }
.knack b, .next b { display: block; font-size: 12px; }
.next { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.next b { color: var(--text); }
.wartet { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.wer-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; border-radius: 999px; background: var(--sunk); color: var(--text); font-size: 12px; font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.zuletzt { display: flex; gap: 7px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.zuletzt span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zuletzt b { color: var(--text-2); }
.aenderungen { padding: 6px 18px 12px; }
.aenderungen details summary { cursor: pointer; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); width: max-content; }
.z-tag { margin: 12px 0 4px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.z-liste { list-style: none; margin: 0; padding: 0; }
.z-liste li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.z-zeit { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ── Nutzer ─────────────────────────────────────────────────────────────── */
.zurueck { display: inline-block; margin-bottom: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.zurueck:hover { color: var(--text); }
.seitentitel { font-size: 22px; margin-bottom: 16px; }
.leiste + .karte, .leiste + .meldung, .leiste + .lage { margin-top: 16px; }
.lage { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--warn-ink); font-size: 13.5px; }
.karte.liste { padding: 4px 0; }
.person { display: grid; grid-template-columns: 36px minmax(0, 1.2fr) minmax(0, 1.6fr) auto 16px; align-items: center; gap: 14px; padding: 12px 18px; text-decoration: none; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person:hover { background: var(--surface-2); }
.person .kreis { width: 36px; height: 36px; background: var(--admin); }
.wer { display: grid; min-width: 0; }
.wer b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wer small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wer b small { font-weight: 400; }
.bereiche { display: flex; flex-wrap: wrap; gap: 5px; }
.bchip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--bc) var(--tint), var(--surface)); color: var(--text); white-space: nowrap; }
.bchip i, .b-punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--bc); flex: none; }
.b-zahlen { --bc: var(--hotel); } .b-tisch { --bc: var(--rest); } .b-entwicklung { --bc: var(--proj); } .b-nutzer { --bc: var(--admin); }
.bereiche .leer { font-size: 12.5px; color: var(--warn-ink); }
.st { white-space: nowrap; }
.pfeil { width: 16px; height: 16px; color: var(--muted); }
.status.warn i { background: var(--warn); }
.formular { display: grid; gap: 16px; padding: 18px; max-width: 760px; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.felder label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.gruppe { margin: 4px 0 -6px; font-size: 13px; font-weight: 700; color: var(--text); }
.schalter-liste { border: 1px solid var(--line); border-radius: 12px; }
.schalter-zeile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.schalter-zeile:last-child { border-bottom: 0; }
.schalter-zeile > span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.schalter-zeile small { color: var(--muted); font-size: 12.5px; }
.schalter-zeile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schalter-zeile i { flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.schalter-zeile i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.schalter-zeile input:checked + i { background: var(--bc); }
.schalter-zeile input:checked + i::after { transform: translateX(16px); }
.schalter-zeile input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
.aktionen form { margin: 0; }
.nebenaktionen { max-width: 760px; margin-top: 14px; display: grid; gap: 12px; }
.einladung { max-width: 760px; margin-bottom: 14px; display: grid; gap: 10px; border-color: color-mix(in srgb, var(--good) 40%, var(--surface)); background: color-mix(in srgb, var(--good) 9%, var(--surface)); }
.einladung p { margin: 0; }
.einladung > .btn { justify-self: start; }
.linkzeile { display: flex; gap: 8px; }
.linkzeile input { flex: 1; font-size: 13px; }

/* ── Schmal ─────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zwei-eins { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .seite { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 10px 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .marke { padding: 0; }
  .marke img { width: 84px; }
  .marke span { display: none; }
  .haupt { flex-direction: row; gap: 4px; order: 3; width: 100%; overflow-x: auto; }
  .nav { padding: 5px 10px 5px 5px; font-size: 13px; }
  .nav-ic { width: 26px; height: 26px; }
  .unten { margin: 0 0 0 auto; flex-direction: row; align-items: center; gap: 8px; }
  .leise-link { display: none; }
  .thema span { display: none; }
  .thema button { padding: 5px 7px; }
  .ich { border: 0; padding: 0; }
  .nm { display: none; }
  .inhalt { padding: 16px 16px 48px; }
  .zwei { grid-template-columns: minmax(0, 1fr); }
  .person { grid-template-columns: 36px minmax(0, 1fr) 16px; }
  .person .bereiche { grid-column: 2; grid-row: 2; }
  .person .st { grid-column: 2; grid-row: 3; }
  .person .pfeil { grid-row: 1; grid-column: 3; }
  .felder { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .grafik { min-width: 520px; }
  .grafik.breit { min-width: 760px; }
  .leiste { gap: 10px; }
  .zeitwahl a { padding: 6px 11px; font-size: 13px; }
  .kacheln { gap: 10px; }
  .kachel { padding: 12px; }
  .k-wert { font-size: 24px; }
  .k-label { font-size: 12px; }
  .k-ic { width: 22px; height: 22px; padding: 4px; }
  .vgl { flex-wrap: wrap; gap: 4px; }
  .zeile { grid-template-columns: 1fr; gap: 0; }
  .z-liste li { grid-template-columns: 40px minmax(0, 1fr); }
  .z-liste .tag { grid-column: 2; }
}
