/* Cockpit – Gestaltung. Farben aus der Landeseite (Landeseite dodaily, global.css), hell + dunkel.
   Keine fremden Schriften, kein CDN. 390 px zuerst, ab 900 px Leiste links.
   data-theme an <html>: "auto" (folgt dem Gerät), "hell", "dunkel" – app.js schaltet und merkt sich die Wahl. */

:root {
  --grund: #f5f7fc;
  --grund-tief: #e9eef9;
  --flaeche: #ffffff;
  --tinte: #0b1030;
  --leise: #4a5274;
  --hauch: #636c8e;
  --linie: rgba(74, 92, 170, 0.16);
  --linie-stark: rgba(74, 92, 170, 0.28);
  --akzent: #4a4fe0;
  --akzent-text: #ffffff;
  --akzent-weich: #e9eaff;
  --gut: #08707e;
  --gut-weich: #dcf5f8;
  --gelb: #a35400;
  --gelb-weich: #fff1dc;
  --rot: #b3261e;
  --rot-weich: #ffe7e3;
  --grau: #4a5274;
  --grau-weich: #eceff7;
  --schatten: 0 14px 30px -18px rgba(54, 66, 160, 0.35);
  --holo: linear-gradient(115deg, #7fd8ff 0%, #8fa6ff 34%, #c7a2ff 66%, #ffc0aa 100%);
  /* Diagramm-Reihen (geprüfte Reihenfolge, hell) */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948; --s9: #9aa1b8;
  --text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rund: 14px;
  --nav-hoehe: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="hell"]) {
    --grund: #0c1122; --grund-tief: #10172c; --flaeche: #161d33;
    --tinte: #f2f4ff; --leise: #b4bbdb; --hauch: #a3abcd;
    --linie: rgba(255, 255, 255, 0.10); --linie-stark: rgba(255, 255, 255, 0.20);
    --akzent: #9aa0ff; --akzent-text: #0c1122; --akzent-weich: rgba(154, 160, 255, 0.16);
    --gut: #5fd3c8; --gut-weich: rgba(95, 211, 200, 0.14);
    --gelb: #f2b25c; --gelb-weich: rgba(242, 178, 92, 0.15);
    --rot: #ff8a80; --rot-weich: rgba(255, 138, 128, 0.15);
    --grau: #b4bbdb; --grau-weich: rgba(255, 255, 255, 0.07);
    --schatten: 0 14px 30px -18px rgba(0, 0, 0, 0.6);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767; --s9: #6b7390;
    color-scheme: dark;
  }
}
:root[data-theme="dunkel"] {
  --grund: #0c1122; --grund-tief: #10172c; --flaeche: #161d33;
  --tinte: #f2f4ff; --leise: #b4bbdb; --hauch: #a3abcd;
  --linie: rgba(255, 255, 255, 0.10); --linie-stark: rgba(255, 255, 255, 0.20);
  --akzent: #9aa0ff; --akzent-text: #0c1122; --akzent-weich: rgba(154, 160, 255, 0.16);
  --gut: #5fd3c8; --gut-weich: rgba(95, 211, 200, 0.14);
  --gelb: #f2b25c; --gelb-weich: rgba(242, 178, 92, 0.15);
  --rot: #ff8a80; --rot-weich: rgba(255, 138, 128, 0.15);
  --grau: #b4bbdb; --grau-weich: rgba(255, 255, 255, 0.07);
  --schatten: 0 14px 30px -18px rgba(0, 0, 0, 0.6);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767; --s9: #6b7390;
  color-scheme: dark;
}

/* ---------- Grund ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--grund); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--tinte);
  font-family: var(--text); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
a { color: var(--akzent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: 26px; margin: 4px 0 14px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; margin: 18px 0 8px; color: var(--leise); }
p { margin: 0 0 10px; }
small { font-size: 0.6em; font-weight: 500; color: var(--leise); }
.leise { color: var(--leise); }
.klein { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.text-rot { color: var(--rot); font-weight: 600; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: -999px; top: 8px; background: var(--flaeche); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.sprung:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- Kopf und Navigation (Handy: Leiste unten) ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px max(14px, env(safe-area-inset-left)) 10px max(14px, env(safe-area-inset-right));
  background: color-mix(in srgb, var(--grund) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.kopf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--holo); opacity: .7; }
.logo { color: var(--tinte); text-decoration: none; font-weight: 600; white-space: nowrap; font-size: 16px; }
.logo b { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 750; }
.kopf-rechts { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.kopf-links { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.stand-zeit { font-size: 12px; color: var(--leise); white-space: nowrap; }
@media (max-width: 420px) { .thema-wort { display: none; } }
.abmelden { margin: 0; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: var(--flaeche); border-top: 1px solid var(--linie);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .35);
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--nav-hoehe); padding: 6px 0; color: var(--leise); text-decoration: none; font-size: 10.5px;
  letter-spacing: -0.01em; border-top: 3px solid transparent;
}
.nav a[aria-current="page"] { color: var(--akzent); border-top-color: var(--akzent); font-weight: 650; background: var(--akzent-weich); }
.nav-sym { font-size: 20px; line-height: 1; }
.nav-lang { display: none; }
.mit-nav .haupt { padding-bottom: calc(var(--nav-hoehe) + 28px + env(safe-area-inset-bottom)); }

.haupt { max-width: 1180px; margin: 0 auto; padding: 14px max(14px, env(safe-area-inset-left)) 40px max(14px, env(safe-area-inset-right)); }

@media (min-width: 900px) {
  .mit-nav { display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr; }
  .mit-nav .kopf { grid-column: 1 / -1; }
  .nav {
    position: sticky; top: 58px; align-self: start; display: flex; flex-direction: column; gap: 2px;
    grid-template-columns: none; border-top: 0; border-right: 1px solid var(--linie); box-shadow: none;
    background: transparent; padding: 14px 10px; height: calc(100vh - 58px);
  }
  .nav a {
    flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 14px;
    font-size: 15px; border-top: 0; border-radius: 10px;
  }
  .nav a:hover { background: var(--grau-weich); color: var(--tinte); }
  .nav a[aria-current="page"] { border-top: 0; }
  .nav-lang { display: inline; }
  .nav-kurz { display: none; }
  .nav-sym { font-size: 18px; width: 22px; text-align: center; }
  .mit-nav .haupt { padding: 22px 28px 60px; margin: 0; max-width: 1180px; width: 100%; }
  h1 { font-size: 30px; }
}

/* ---------- Knöpfe, Formulare ---------- */
.knopf, .knopf-klein, .schalter {
  font: inherit; cursor: pointer; border-radius: 12px; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
.knopf { background: var(--akzent); color: var(--akzent-text); min-height: 48px; padding: 0 20px; font-weight: 650; }
.knopf:hover { filter: brightness(1.08); }
.knopf-voll { width: 100%; }
.knopf-klein { background: var(--flaeche); color: var(--tinte); border-color: var(--linie-stark); min-height: 40px; padding: 0 12px; font-size: 14px; }
.knopf-klein:hover { border-color: var(--akzent); }
.knopf-leise { color: var(--leise); min-height: 36px; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; }
.thema-knopf { min-width: 44px; }
form.inline { display: inline; margin: 0 0 0 6px; }

.formular { display: grid; gap: 14px; max-width: 560px; margin: 8px 0 16px; }
.formular label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.formular input[type="text"], .formular input[type="password"], .formular input[type="number"],
.formular input[type="date"], .formular input[type="time"], .formular textarea {
  font: inherit; font-weight: 400; color: var(--tinte); background: var(--flaeche);
  border: 1px solid var(--linie-stark); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.formular textarea { min-height: 96px; resize: vertical; }
.formular input:focus, .formular textarea:focus { border-color: var(--akzent); outline: 2px solid var(--akzent-weich); }
.formular fieldset { border: 1px solid var(--linie); border-radius: var(--rund); padding: 14px; margin: 0; display: grid; gap: 12px; background: var(--flaeche); }
.formular legend { font-weight: 700; padding: 0 6px; }
.formular .reihe, .formular.reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.formular .reihe label, .formular.reihe label { flex: 1 1 140px; }
.formular.reihe label.breit { flex: 3 1 220px; }
.formular .haken { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; }
.formular .haken input { width: 22px; height: 22px; accent-color: var(--akzent); }

/* ---------- Hinweise ---------- */
.hinweis { border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--linie); background: var(--flaeche); }
.hinweis-warn { background: var(--rot-weich); border-color: color-mix(in srgb, var(--rot) 35%, transparent); color: var(--tinte); }
.hinweis-warn::before { content: "⚠ "; color: var(--rot); font-weight: 700; }
.hinweis-gut { background: var(--gut-weich); border-color: color-mix(in srgb, var(--gut) 35%, transparent); }
.hinweis-gut::before { content: "✓ "; color: var(--gut); font-weight: 700; }
.hinweis-meldung { background: var(--akzent-weich); border-color: color-mix(in srgb, var(--akzent) 35%, transparent); font-weight: 600; }
.alles-gut { color: var(--gut); font-weight: 600; }

/* ---------- Kacheln ---------- */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
@media (min-width: 700px) { .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .kacheln { grid-template-columns: repeat(6, minmax(0, 1fr)); } .kacheln-klein { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 12px 14px; box-shadow: var(--schatten); min-width: 0; }
.kachel-titel { font-size: 13px; color: var(--leise); margin: 0 0 4px; font-weight: 600; }
.kachel-wert { font-size: 24px; font-weight: 750; margin: 0 0 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.15; }
.kachel-unter { font-size: 12.5px; color: var(--leise); margin: 0; line-height: 1.4; }
.kachel-rot { border-color: color-mix(in srgb, var(--rot) 45%, transparent); background: var(--rot-weich); }
.kachel-rot .kachel-wert { color: var(--rot); }
.kachel-gelb { border-color: color-mix(in srgb, var(--gelb) 45%, transparent); background: var(--gelb-weich); }
.kachel-gut .kachel-wert { color: var(--gut); }

/* ---------- Abschnitte ---------- */
.abschnitt { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); padding: 14px; margin: 0 0 16px; box-shadow: var(--schatten); min-width: 0; }
.abschnitt-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.abschnitt-zusatz { font-size: 14px; color: var(--leise); }
.abschnitt > h3:first-of-type { margin-top: 4px; }
.zwei-spalten { display: grid; gap: 0 16px; }
@media (min-width: 900px) { .zwei-spalten { grid-template-columns: 1fr 1fr; } }

/* ---------- Ampel, Pillen, Zustände (immer Zeichen + Wort) ---------- */
.ampel { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px 3px 8px; font-weight: 650; font-size: 14px; white-space: nowrap; border: 1px solid transparent; }
.ampel-zeichen { font-size: 12px; }
.ampel-gruen { background: var(--gut-weich); color: var(--gut); border-color: color-mix(in srgb, var(--gut) 30%, transparent); }
.ampel-gelb { background: var(--gelb-weich); color: var(--gelb); border-color: color-mix(in srgb, var(--gelb) 30%, transparent); }
.ampel-rot { background: var(--rot-weich); color: var(--rot); border-color: color-mix(in srgb, var(--rot) 30%, transparent); }
.ampel-grau { background: var(--grau-weich); color: var(--grau); border-color: var(--linie); }
.ampel-gross { font-size: 17px; padding: 6px 14px 6px 12px; }
.pille { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 9px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; vertical-align: middle; }
.pille-gut { background: var(--gut-weich); color: var(--gut); }
.pille-gelb { background: var(--gelb-weich); color: var(--gelb); }
.pille-rot { background: var(--rot-weich); color: var(--rot); border-color: color-mix(in srgb, var(--rot) 40%, transparent); }
.pille-grau { background: var(--grau-weich); color: var(--grau); }
.pille-akzent { background: var(--akzent-weich); color: var(--akzent); margin: 0 4px 4px 0; }
.zustand { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; font-size: 14px; white-space: nowrap; }
.zustand.gut { color: var(--gut); }
.zustand.rot { color: var(--rot); }
.zustand.grau { color: var(--grau); }

/* ---------- Braucht dich ---------- */
.bedarfe { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bedarf { border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; background: var(--grund); }
.bedarf .gruende { margin: 6px 0 4px; }
.gruende { margin: 0 0 8px; padding-left: 20px; }
.gruende li { margin: 2px 0; }
.vorschlag { margin: 4px 0 0; font-size: 15px; }
.kunde-link { font-weight: 650; }

/* ---------- Kunde ---------- */
.zurueck { margin: 0 0 4px; }
.zurueck a { display: inline-flex; min-height: 40px; align-items: center; }
.kunde-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kunde-kopf h1 { margin: 0; }
.score { border-radius: var(--rund); padding: 12px 14px; margin: 10px 0 14px; border: 1px solid var(--linie); background: var(--flaeche); }
.score-rot { background: var(--rot-weich); border-color: color-mix(in srgb, var(--rot) 35%, transparent); }
.score-gelb { background: var(--gelb-weich); border-color: color-mix(in srgb, var(--gelb) 35%, transparent); }
.score-gruen { background: var(--gut-weich); border-color: color-mix(in srgb, var(--gut) 35%, transparent); }
.fakten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0 0 18px; }
@media (min-width: 700px) { .fakten { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fakten div { min-width: 0; }
.fakten dt { font-size: 12.5px; color: var(--leise); font-weight: 600; }
.fakten dd { margin: 0; }
.fakten .mono, .fakten dd { overflow-wrap: anywhere; }

.trichter { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
@media (min-width: 700px) { .trichter { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.trichter li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--linie); background: var(--grund); font-size: 14px; }
.trichter .erledigt { background: var(--gut-weich); color: var(--gut); font-weight: 600; }
.trichter .naechster { border: 2px solid var(--akzent); font-weight: 650; }
.schritt-zeichen { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid currentColor; font-size: 13px; flex: none; }

.anbindungen, .bausteine, .bausteine-mobil, .pruefliste, .einfach, .kartei-liste { list-style: none; margin: 0; padding: 0; }
.anbindungen li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.anbindungen li:last-child { border-bottom: 0; }
.anb-name { font-weight: 650; min-width: 110px; }
.bausteine li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--linie); }
.bausteine li:last-child { border-bottom: 0; }
.b-zustand { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.warn-zeile { background: var(--rot-weich); margin: 0 -8px; padding-left: 8px !important; padding-right: 8px !important; border-radius: 8px; }
.schloss { font-size: 13px; }
.bausteine-mobil li { padding: 10px 0; border-bottom: 1px solid var(--linie); display: grid; gap: 4px; }
.pruefliste li, .einfach li { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.pruefliste li:last-child, .einfach li:last-child { border-bottom: 0; }

.schalter-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.schalter-reihe form.inline { margin: 0; }
.schalter { min-height: 44px; padding: 0 14px; background: var(--flaeche); color: var(--tinte); border: 1px solid var(--linie-stark); border-radius: 999px; font-size: 14px; }
.schalter.an { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); font-weight: 650; }
.kartei-liste li { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.kartei-liste li.erledigt { color: var(--leise); }
.notiz-text { white-space: pre-wrap; margin: 0 0 4px; }

/* ---------- Tabellen ---------- */
.tabelle-rollen { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
thead th { font-size: 13px; color: var(--leise); font-weight: 650; white-space: nowrap; }
table.eng th, table.eng td { padding: 5px 8px; font-size: 13px; }
.grund-kurz { display: block; margin-top: 4px; }
.zelle-kunde { min-width: 140px; }

@media (max-width: 699px) {
  table.karten-mobil thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.karten-mobil, table.karten-mobil tbody, table.karten-mobil tr, table.karten-mobil td { display: block; width: 100%; }
  table.karten-mobil tr { border: 1px solid var(--linie); border-radius: 12px; padding: 6px 12px; margin-bottom: 10px; background: var(--flaeche); }
  table.karten-mobil td { border: 0; padding: 7px 0; text-align: right; }
  table.karten-mobil td::before { content: attr(data-label); float: left; margin-right: 12px; color: var(--leise); font-size: 13px; font-weight: 600; text-align: left; line-height: 1.9; }
  table.karten-mobil td::after { content: ""; display: block; clear: both; }
  table.karten-mobil td.zelle-kunde { display: block; text-align: left; font-size: 17px; border-bottom: 1px solid var(--linie); padding-bottom: 8px; }
  table.karten-mobil td.zelle-kunde::before { content: none; }
  table.karten-mobil td .grund-kurz { text-align: right; }
  table.karten-mobil td:first-child { display: block; text-align: left; }
  table.karten-mobil td:first-child::before { content: none; }
}

/* Matrix Kunden × Bausteine */
.matrix th.mk { text-align: center; font-size: 13px; min-width: 76px; white-space: normal; }
.matrix th.mb { white-space: nowrap; font-weight: 500; }
.matrix tr.gruppe th { background: var(--grund); color: var(--leise); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; padding-top: 14px; }
.matrix .mz { text-align: center; font-size: 18px; }
.mz-an { color: var(--gut); }
.mz-aus, .mz-leer { color: var(--hauch); }
.mz-warn { color: var(--rot); background: var(--rot-weich); font-weight: 700; }
.mz-wartet { color: var(--gelb); }
.nur-breit { display: none; }
@media (min-width: 900px) { .nur-breit { display: block; } .nur-schmal { display: none; } }

/* Reiter (Filter) */
.reiterleiste { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; padding-bottom: 4px; }
.reiter { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--tinte); text-decoration: none; white-space: nowrap; font-size: 15px; }
.reiter[aria-current="page"] { background: var(--akzent); color: var(--akzent-text); border-color: var(--akzent); font-weight: 650; }
.zahl-klein { font-size: 12px; opacity: .8; }

/* ---------- Diagramme ---------- */
.diagramm { margin: 0; }
.diagramm figcaption { font-weight: 650; font-size: 14px; color: var(--leise); margin-bottom: 8px; }
.dia-flaeche { display: grid; grid-template-columns: auto 1fr; gap: 6px; height: 180px; }
@media (min-width: 900px) { .dia-flaeche { height: 220px; } }
.dia-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; color: var(--leise); text-align: right; font-variant-numeric: tabular-nums; margin: -7px 0; }
.dia-bild { position: relative; min-width: 0; height: 100%; }
.dia { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.dia .gitter { stroke: var(--linie-stark); stroke-width: 1px; }
.dia rect { stroke: var(--flaeche); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.dia rect.treffer { fill: transparent; stroke: none; }
.dia rect.treffer:hover { fill: var(--linie); }
.dia-x { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--leise); margin: 4px 0 0; padding-left: 40px; font-variant-numeric: tabular-nums; }
.legende { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.legende li { display: inline-flex; align-items: center; gap: 6px; }
.farbe { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.s1 { fill: var(--s1); background: var(--s1); } .s2 { fill: var(--s2); background: var(--s2); }
.s3 { fill: var(--s3); background: var(--s3); } .s4 { fill: var(--s4); background: var(--s4); }
.s5 { fill: var(--s5); background: var(--s5); } .s6 { fill: var(--s6); background: var(--s6); }
.s7 { fill: var(--s7); background: var(--s7); } .s8 { fill: var(--s8); background: var(--s8); }
.s9 { fill: var(--s9); background: var(--s9); }
.als-tabelle, .aufklapp { margin-top: 10px; }
.als-tabelle summary, .aufklapp summary { cursor: pointer; color: var(--akzent); min-height: 40px; display: flex; align-items: center; font-size: 14px; }

.balkenliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bl-kopf { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 3px; }
.bl-name { min-width: 0; }
.bl-wert { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-balken { display: block; width: 100%; height: 10px; }
.bl-spur { fill: var(--grau-weich); }
.bl-fuell { fill: var(--s1); }

.spark { vertical-align: middle; margin-left: 6px; overflow: visible; }
.spark polyline { stroke: var(--s1); stroke-width: 1.5px; }
.spark circle { fill: var(--s1); }

/* ---------- Anmelden / Einrichten ---------- */
.ohne-nav .haupt { max-width: 480px; }
.karte-mitte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 18px; padding: 22px 18px; margin-top: 24px; box-shadow: var(--schatten); }
.schritt-nr { color: var(--leise); font-weight: 600; }
.anleitung { padding-left: 20px; }
.qr { background: #ffffff; padding: 14px; border-radius: 14px; max-width: 260px; margin: 10px auto; }
.qr svg { display: block; width: 100%; height: auto; }
.schluessel { font-size: 18px; letter-spacing: .08em; word-spacing: .3em; background: var(--grund); padding: 10px 12px; border-radius: 10px; user-select: all; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .nav, .kopf-rechts { display: none; } .mit-nav { display: block; } }
