:root { --bg:#f5f6f8; --card:#fff; --text:#1c2430; --muted:#667085; --accent:#1f5f8b; --line:#dde1e7; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, "Segoe UI", Arial, sans-serif; background:var(--bg); color:var(--text); }
header { display:flex; justify-content:space-between; align-items:center; background:var(--accent); color:#fff; padding:0 24px; height:56px; }
header a { color:#fff; text-decoration:none; }
.brand { font-weight:600; }
.gear { display:flex; padding:8px; border-radius:8px; }
.gear:hover, .gear:focus-visible { background:rgba(255,255,255,.18); }
main { max-width:960px; margin:0 auto; padding:24px; }
h1 { font-size:1.5rem; }
h2 { font-size:1.1rem; margin-top:32px; }
.cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:16px; }
.card { display:block; background:var(--card); border:1px solid var(--line); border-radius:10px; padding:18px; color:inherit; text-decoration:none; }
a.card:hover { border-color:var(--accent); }
.card h3 { margin:0 0 8px; font-size:1rem; }
.card p { margin:0; color:var(--muted); font-size:.92rem; }
.badge { display:inline-block; margin-top:12px; font-size:.78rem; color:var(--muted); border:1px solid var(--line); border-radius:99px; padding:2px 10px; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); }
th, td { text-align:left; padding:9px 12px; border-bottom:1px solid var(--line); font-size:.92rem; }
.msg { padding:12px 16px; border-radius:8px; margin:12px 0; border:1px solid; }
.ok { background:#eaf6ee; border-color:#9fd0ae; }
.warn { background:#fff6e0; border-color:#e8c878; }
.error { background:#fdecec; border-color:#e9a5a5; }
button { background:var(--accent); color:#fff; border:0; border-radius:8px; padding:10px 18px; font:inherit; cursor:pointer; margin-top:14px; }
button.secondary { background:transparent; color:var(--accent); border:1px solid var(--line); }
input[type=password] { display:block; padding:9px; font:inherit; border:1px solid var(--line); border-radius:8px; width:280px; max-width:100%; margin-top:6px; }
code { background:#e9ecf1; padding:2px 6px; border-radius:4px; word-break:break-all; }
input[type=text], select { padding:9px; font:inherit; border:1px solid var(--line); border-radius:8px; background:#fff; }
.stack label { display:block; margin-top:12px; }
.stack input[type=text], .stack select { display:block; width:280px; max-width:100%; margin-top:6px; }
.row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.row input[type=password] { display:inline-block; width:220px; margin:0; }
.row button { margin:0; padding:8px 12px; }
.muted { color:var(--muted); font-size:.9rem; }
.filter input[type=text] { width:320px; max-width:100%; }
.filter button { margin:0; padding:9px 16px; }
td a { color:var(--accent); text-decoration:none; }
td a:hover { text-decoration:underline; }
.zahlen .num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
tr.aktiv { background:#eaf1f8; }
.chart { margin-top:16px; overflow-x:auto; }
.chart svg { display:block; width:100%; min-width:560px; height:auto; font-size:13px; }
.chart text { fill:var(--text); }
.chart text.tick { fill:var(--muted); font-size:12px; }
.chart .grid { stroke:#e8eaee; }
.chart .axis { stroke:#98a2b3; }
.chart .s-plan { fill:#2a78d6; }
.chart .s-ist { fill:#eb6834; }
.chart .hit { fill:transparent; }
.chart .bar:hover path { opacity:.75; }
.filter select { width:auto; max-width:100%; margin:0; }
.filter input[type=text] { margin:0; }
.breakdown table { font-size:.8rem; }
.breakdown th, .breakdown td { padding:6px 7px; }
.breakdown .muted { font-size:.72rem; }
.filter select[name=produkt] { max-width:560px; }
.filter label { font-size:.9rem; display:flex; gap:6px; align-items:center; }
.filter select[name=pb] { max-width:340px; }
.filter select[name=bereich] { max-width:380px; }
.kacheln { margin-top:16px; }
.kacheln .wert { font-size:1.5rem; font-weight:600; margin-bottom:6px; }
.punkt { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; background:#98a2b3; }
.punkt.gut { background:#2a78d6; }
.punkt.schlecht { background:#e34948; }
.balkenkopf, .balkenzelle { width:180px; min-width:140px; }
.balken { position:relative; height:12px; background:linear-gradient(#98a2b3, #98a2b3) center / 1px 100% no-repeat; }
.balken span { position:absolute; top:1px; bottom:1px; }
.balken .gut { left:calc(50% + 1px); background:#2a78d6; border-radius:0 4px 4px 0; }
.balken .schlecht { right:calc(50% + 1px); background:#e34948; border-radius:4px 0 0 4px; }
.kopf-rechts { display:flex; align-items:center; gap:12px; }
.kopf-rechts form { margin:0; padding:0; background:none; border:0; box-shadow:none; }
header button.abmelden { margin:0; padding:6px 14px; font:inherit; font-size:.9rem; color:#fff; background:transparent; border:1px solid rgba(255,255,255,.6); border-radius:8px; cursor:pointer; }
header button.abmelden:hover, header button.abmelden:focus-visible { background:rgba(255,255,255,.18); }
tr.summe td { font-weight:600; background:#f2f4f7; }
tr.saldo td { border-top:2px solid #98a2b3; }
.zahlen tr.saldo td.plus { color:#067647; }
.zahlen tr.saldo td.minus { color:#b42318; }
