@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --ink: #1e1e1e;
  --muted: #555555;
  --line: #e4e4e4;
  --primary: #71b739;
  --primary-ink: #3e7a20;
  --on-primary: #ffffff;
  --ok: #3e7a20;
  --watch: #8a5a12;
  --risk: #9d2c22;
  --ok-soft: #e7f5d8;
  --watch-soft: #f8efdc;
  --risk-soft: #f8e8e5;
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
}
html[data-theme="dark"] {
  --bg: #1e1e1e;
  --surface: #2b2b2b;
  --ink: #f5f5f5;
  --muted: #c4c4c4;
  --line: #3d3d3d;
  --primary: #71b739;
  --primary-ink: #a8e063;
  --on-primary: #1e1e1e;
  --ok: #a8e063;
  --watch: #e2b15a;
  --risk: #f0a39a;
  --ok-soft: #24331a;
  --watch-soft: #3a3018;
  --risk-soft: #3a2220;
  color-scheme: dark;
}


* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.brand { margin: 0; font-size: 14px; font-weight: 500; color: var(--primary-ink); letter-spacing: 0.01em; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin: 8px 0; font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 0 0 8px; font-weight: 500; letter-spacing: -0.015em; }
p { line-height: 1.45; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.btn, button.btn {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 500;
}
.btn.quiet, button.btn.quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.risk { background: var(--risk); }
.field { display: block; }
.field span { display: block; font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 12px;
}
.field textarea { min-height: 96px; resize: vertical; }
.grid { display: grid; gap: 12px; }
@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}
.alert { color: var(--risk); margin: 0; }
.stations { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.stations button {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 14px;
  white-space: nowrap;
}
.stations button.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.ampel { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: var(--bg);
}
.pill input { margin-right: 8px; width: 18px; height: 18px; }
.pill:has(input:checked) { border-color: var(--ink); }
.pill.gruen:has(input:checked) { background: var(--ok-soft); color: var(--ok); }
.pill.gelb:has(input:checked) { background: var(--watch-soft); color: var(--watch); }
.pill.rot:has(input:checked) { background: var(--risk-soft); color: var(--risk); }
.count { display: inline-flex; gap: 8px; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }
.dot.rot { background: var(--risk); }
.dot.gelb { background: var(--watch); }
.logo { height: 32px; width: auto; display: block; }
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }
.label-dark { display: none; }
html[data-theme="dark"] .label-light { display: none; }
html[data-theme="dark"] .label-dark { display: inline; }
.theme-btn { min-height: 44px; }
.dot.gruen { background: var(--ok); }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.last { font-size: 14px; color: var(--muted); }
.protocol { white-space: pre-wrap; font-family: inherit; }
@media print {
  .noprint { display: none !important; }
  body { background: white; }
  .card, .panel { border: 0; }
}
