/* [GESCHAEFTSZAHLEN] Stylesheet – ohne fremde Schriften/Skripte */
:root {
  --bg: #f6f7f9; --karte: #ffffff; --text: #1d2330; --leise: #667085; --linie: #e3e6eb;
  --akzent: #1f5fbf; --pos: #127a3a; --neg: #b42318; --summe: #eef3fb; --warn: #fff4e5; --warnrand: #f0a03c;
  --krit: #fdecea; --r1: #1f5fbf; --r2: #9aa4b2; --r3: #d97706; --r4: #0f9d58; --r5: #a21caf; --r6: #dc2626; --r7: #0891b2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b; --karte: #1b2029; --text: #e6e9ef; --leise: #98a2b3; --linie: #2c3340;
    --akzent: #6ea8ff; --pos: #4ade80; --neg: #f87171; --summe: #1f2a3c; --warn: #33270f; --warnrand: #b7791f;
    --krit: #3a1717; --r1: #6ea8ff; --r2: #6b7280;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.kopf { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; padding: 10px 16px; background: var(--karte); border-bottom: 1px solid var(--linie); }
header.kopf .marke { font-weight: 700; margin-right: 12px; }
header.kopf nav a { padding: 4px 6px; border-radius: 6px; }
header.kopf nav a.aktiv { background: var(--summe); font-weight: 600; }
header.kopf form { margin-left: auto; }
main { max-width: 1280px; margin: 0 auto; padding: 16px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; overflow-x: auto; }
h1 { font-size: 20px; margin: 4px 0 12px; } h2 { font-size: 16px; margin: 0 0 10px; } h3 { font-size: 14px; margin: 12px 0 6px; }
.leise { color: var(--leise); font-size: 12.5px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 5px 8px; border-bottom: 1px solid var(--linie); text-align: right; white-space: nowrap; }
th { font-weight: 600; color: var(--leise); font-size: 12.5px; }
th:first-child, td:first-child { text-align: left; white-space: normal; }
td.links, th.links { text-align: left; }
tr.summe td { background: var(--summe); font-weight: 700; }
.neg { color: var(--neg); } .pos { color: var(--pos); }
details summary { cursor: pointer; list-style: none; } details summary::-webkit-details-marker { display: none; }
details summary::before { content: "▸ "; color: var(--leise); } details[open] summary::before { content: "▾ "; }
.aufteilung { font-size: 12.5px; color: var(--leise); margin: 4px 0 2px 18px; }
.aufteilung span { display: inline-block; margin-right: 14px; }
form.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
form.filter label { display: flex; flex-direction: column; font-size: 12px; color: var(--leise); gap: 2px; }
select, input, button, textarea { font: inherit; color: var(--text); background: var(--karte); border: 1px solid var(--linie); border-radius: 6px; padding: 5px 8px; }
select[multiple] { min-height: 92px; min-width: 120px; }
button, .knopf { background: var(--akzent); color: #fff; border: 0; cursor: pointer; padding: 6px 12px; border-radius: 6px; display: inline-block; }
button.zweit, .knopf.zweit { background: transparent; color: var(--akzent); border: 1px solid var(--akzent); }
button.gefahr { background: var(--neg); }
.schnell a { display: inline-block; padding: 2px 8px; margin: 2px; border: 1px solid var(--linie); border-radius: 12px; font-size: 12px; }
.hinweis { background: var(--warn); border-left: 4px solid var(--warnrand); padding: 8px 10px; border-radius: 6px; margin: 6px 0; }
.hinweis.kritisch { background: var(--krit); border-left-color: var(--neg); }
.meldung { padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; background: var(--summe); }
.meldung.error { background: var(--krit); }
.raster2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; }
.kachel .wert { font-size: 20px; font-weight: 700; } .kachel .titel { font-size: 12px; color: var(--leise); }
svg.diagramm { width: 100%; height: auto; display: block; }
svg .raster { stroke: var(--linie); stroke-width: 1; } svg .null { stroke: var(--leise); stroke-width: 1; stroke-dasharray: 3 3; }
svg .achse { fill: var(--leise); font-size: 11px; }
svg .linie { fill: none; stroke-width: 2.2; } svg .punkt { stroke: none; }
svg .r1 { stroke: var(--r1); fill: var(--r1); } svg .r2 { stroke: var(--r2); fill: var(--r2); stroke-dasharray: 5 4; }
svg .r3 { stroke: var(--r3); fill: var(--r3); } svg .r4 { stroke: var(--r4); fill: var(--r4); } svg .r5 { stroke: var(--r5); fill: var(--r5); }
svg .r6 { stroke: var(--r6); fill: var(--r6); } svg .r7 { stroke: var(--r7); fill: var(--r7); }
svg polyline.linie { fill: none; }
.legenden { font-size: 12px; color: var(--leise); margin-top: 4px; }
.legende::before { content: ""; display: inline-block; width: 14px; height: 3px; margin: 0 5px 3px 10px; vertical-align: middle; }
.legende.r1::before { background: var(--r1); } .legende.r2::before { background: var(--r2); } .legende.r3::before { background: var(--r3); }
.legende.r4::before { background: var(--r4); } .legende.r5::before { background: var(--r5); } .legende.r6::before { background: var(--r6); } .legende.r7::before { background: var(--r7); }
.anmelden { max-width: 360px; margin: 10vh auto; }
.anmelden label { display: block; margin: 10px 0 4px; } .anmelden input { width: 100%; }
.inline { display: inline; }
.zeilenform { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.zeilenform label { display: flex; flex-direction: column; font-size: 12px; color: var(--leise); }
.markiert { background: var(--warn); }
@media (max-width: 640px) { main { padding: 10px; } th, td { padding: 4px 5px; } .raster2 { grid-template-columns: 1fr; } }
