:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --line: #e2e8f0;
  --muted: #64748b;
  --text: #0f172a;
  --cyan: #0e7490;
  --slate: #1e293b;
  --green: #047857;
  --amber: #b45309;
  --red: #be123c;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { background: #0f172a; color: #e2e8f0; padding: 22px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { font-size: 18px; line-height: 1.2; font-weight: 800; margin-bottom: 20px; }
.nav { display: grid; gap: 6px; }
.nav a { text-decoration: none; padding: 10px 12px; border-radius: 8px; color: #cbd5e1; font-weight: 650; font-size: 14px; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.09); color: #fff; }
.main { padding: 32px; min-width: 0; }
.topbar { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.eyebrow { color: var(--cyan); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.08; margin: 6px 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { color: #475569; line-height: 1.6; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; box-shadow: 0 10px 28px rgba(15, 23, 42, .055); }
.metric { font-size: 34px; font-weight: 850; margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.badge.green, .badge.gruen { background: #ecfdf5; color: var(--green); border-color: #a7f3d0; }
.badge.yellow, .badge.gelb { background: #fffbeb; color: var(--amber); border-color: #fde68a; }
.badge.red, .badge.rot { background: #fff1f2; color: var(--red); border-color: #fecdd3; }
.badge.blue { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.bar { height: 10px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.bar > span { display: block; height: 100%; background: var(--cyan); border-radius: inherit; }
.stack { display: grid; gap: 14px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #334155; font-size: 13px; background: #f8fafc; }
label { display: block; font-weight: 800; color: #1e293b; margin-bottom: 6px; }
input, textarea, select { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 11px 12px; font: inherit; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; padding: 11px 15px; background: #0f172a; color: #fff; font-weight: 850; text-decoration: none; cursor: pointer; }
.button.secondary, button.secondary { background: #e2e8f0; color: #0f172a; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; gap: 4px; }
.tabs button { background: transparent; color: #475569; padding: 9px 12px; }
.tabs button.active { background: #0f172a; color: #fff; }
.notice { padding: 14px 16px; border-radius: 8px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1e3a8a; }
.notice.warn { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.notice.danger { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.survey-shell { max-width: 920px; margin: 0 auto; padding: 36px 20px 72px; }
.survey-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-bottom: 16px; }
.radio-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.radio-card { border: 1px solid #cbd5e1; border-radius: 8px; padding: 12px; text-align: center; cursor: pointer; }
.radio-card input { width: auto; display: block; margin: 0 auto 8px; }
details { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; }
summary { cursor: pointer; font-weight: 800; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .main { padding: 22px; }
  .grid-2, .grid-3, .grid-4, .radio-grid { grid-template-columns: 1fr; }
  .topbar { display: grid; }
}
