/* Gemeinsame Gestaltung von Auswertung (index.php) und Anmeldung (login.php). */
:root { color-scheme: light dark; --bg: #f5f3ee; --card: #fff; --text: #1d1b18; --muted: #6b665e; --line: #e2ddd3; --accent: #23807a; --on-accent: #fff; --danger: #b3261e; }
@media (prefers-color-scheme: dark) { :root { --bg: #131210; --card: #1c1a17; --text: #ece7dd; --muted: #9a948a; --line: #2e2b26; --accent: #4db1a9; --on-accent: #0b1f1d; --danger: #ff8a80; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 -apple-system, system-ui, sans-serif; }
main { max-width: 980px; margin: 0 auto; padding: 16px; }
header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
h1 { font-size: 22px; margin: 8px 0; }
h2 { font-size: 16px; margin: 0 0 10px; }
nav a { color: var(--muted); margin-left: 10px; text-decoration: none; }
nav a.on { color: var(--text); font-weight: 600; }
.muted { color: var(--muted); font-weight: 400; }
.apps { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.apps a { color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; }
.apps a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
section { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; }
.wide { grid-column: 1 / -1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kpi b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.kpi span, .note { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
td.num, th.num { text-align: right; }
.bar { display: inline-block; width: 90px; height: 8px; background: var(--line); border-radius: 4px; vertical-align: middle; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
@media (max-width: 480px) { .bar { width: 48px; } th, td { padding: 4px 3px; } }
svg.chart { width: 100%; height: 120px; display: block; }
svg.chart rect { fill: var(--accent); }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
button, input { font: inherit; }
button, a.button { border: 0; border-radius: 8px; padding: 10px 16px; min-height: 44px; background: var(--accent); color: var(--on-accent); font-weight: 600; cursor: pointer; }
a.button { display: inline-flex; align-items: center; text-decoration: none; box-sizing: border-box; }
button.quiet { background: transparent; color: var(--text); border: 1px solid var(--line); }
button:disabled { opacity: 0.5; cursor: default; }
input { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-height: 44px; background: var(--bg); color: var(--text); width: 100%; box-sizing: border-box; }
label { display: block; margin: 10px 0 4px; color: var(--muted); font-size: 13px; }
.narrow { max-width: 440px; margin: 10vh auto 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.status { min-height: 1.4em; margin-top: 10px; color: var(--muted); }
.status.error { color: var(--danger); }
.warn { border-color: var(--danger); }
.warn h2 { color: var(--danger); }
.warn ul { margin: 0; padding-left: 18px; }
