:root {
  --bg: #10110e;
  --bg-2: #181a15;
  --ink: #f3f0e4;
  --muted: #a7ad9c;
  --faint: #8e9482;
  --line: rgba(243, 240, 228, 0.12);
  --line-strong: rgba(243, 240, 228, 0.28);
  --turf: #dff25a;
  --turf-ink: #14160c;
  --flag: #ff4b3a;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 380px at 100% -10%, rgba(223, 242, 90, 0.08), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(243, 240, 228, 0.025) 92px 93px);
  z-index: 0;
}
a { color: var(--turf); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--turf); outline-offset: 3px; }
.wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }
.side {
  width: 220px; flex: none; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px 16px 18px; border-right: 1px solid var(--line);
  background: rgba(8, 9, 7, 0.88);
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.brand b { font-family: var(--cond); font-size: 28px; letter-spacing: 0.08em; font-weight: 650; }
.brand small { color: var(--muted); letter-spacing: 0.14em; font-size: 11px; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 12px; white-space: nowrap;
}
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 3px 0 0 var(--turf); background: rgba(223, 242, 90, 0.06); }
.who { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: auto; color: var(--muted); font-size: 14px; }
.content { flex: 1; min-width: 0; }
main { width: min(1100px, calc(100% - 56px)); margin: 0 0 0 28px; padding: 8px 0 40px; }
.who form { margin: 0; }
.who button, button {
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  padding: 7px 12px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px;
}
button.primary { background: var(--turf); color: var(--turf-ink); border-color: var(--turf); font-weight: 600; }
.who button:hover, button:hover { border-color: var(--turf); }
h1 { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: clamp(40px, 6vw, 64px); line-height: 0.9; margin: 22px 0 16px; }
h2 { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: 28px; margin: 0 0 12px; line-height: 1; }
h2 span { color: var(--faint); font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; margin-left: 8px; text-transform: uppercase; }
main { position: relative; z-index: 1; padding-bottom: 40px; }
.card { border: 1px solid var(--line); background: rgba(16, 17, 14, 0.55); padding: 16px; margin: 0 0 16px; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.flash { padding: 10px 12px; border: 1px solid var(--line-strong); margin: 0 0 16px; }
.flash.ok { border-color: var(--turf); color: var(--turf); }
.flash.err { border-color: var(--flag); color: var(--flag); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { border: 1px solid var(--line); padding: 14px; background: rgba(16, 17, 14, 0.55); }
.stat p { margin: 0; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; }
.stat b { display: block; font-family: var(--cond); font-size: 48px; line-height: 1; margin: 6px 0; font-weight: 600; }
.stat small { color: var(--faint); }
.delta.up { color: var(--turf); }
.delta.down { color: var(--flag); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.donut { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ring { width: 168px; height: 168px; position: relative; flex: none; }
.ring svg { display: block; width: 100%; height: 100%; }
.hole {
  position: absolute; inset: 32px; border-radius: 50%; background: #181a15;
  display: grid; place-items: center; align-content: center; text-align: center;
}
.hole b { font-family: var(--cond); font-size: 32px; line-height: 0.9; }
.hole span { color: var(--faint); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.legend { flex: 1; min-width: 180px; }
.lg { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); }
.swatch { display: block; }
.lg .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg .pct, .lg .ct { color: var(--muted); font-variant-numeric: tabular-nums; }
.bars { width: 100%; height: 130px; display: block; }
.barx { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.scroll { overflow-x: auto; }
.pill { display: inline-block; border: 1px solid var(--line-strong); padding: 1px 7px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.pill.ok { color: var(--turf); border-color: var(--turf); }
.pill.auffaellig { color: var(--flag); border-color: var(--flag); }
.pill.direkt { color: var(--muted); }
label { display: block; color: var(--muted); font-size: 13px; letter-spacing: 0.06em; margin: 10px 0 4px; }
input, select {
  width: 100%; background: transparent; border: 1px solid var(--line-strong); padding: 9px 10px; border-radius: 0;
}
.stack button, .social-form > button, .inline button { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink); margin: 12px 0; }
.check input { width: auto; }
.social-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; margin: 8px 0; }
.social-row .check { margin: 0; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input { flex: 1; }
.inline button { margin-top: 0; }
.probe { display: grid; grid-template-columns: 160px 1fr; gap: 6px 10px; margin: 16px 0 0; }
.probe dt { color: var(--muted); }
.probe dd { margin: 0; }
.danger { margin-top: 16px; }
.danger button { color: var(--flag); border-color: var(--flag); }
.textlink { letter-spacing: 0.06em; }
.admin-foot { border-top: 1px solid var(--line); padding: 16px 0 28px; margin-left: 28px; color: var(--muted); width: min(1100px, calc(100% - 56px)); }
.login-body { min-height: 100vh; display: grid; place-items: center; }
.login-box { width: min(420px, calc(100% - 32px)); position: relative; z-index: 1; }
.login-box h1 { margin-top: 18px; }
.login-box .card { padding: 16px; }
.back { display: inline-block; margin-top: 14px; color: var(--muted); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.back:hover { color: var(--turf); }
@media (max-width: 860px) {
  .stats, .split, .grid2 { grid-template-columns: 1fr; }
  .social-row { grid-template-columns: 1fr; }
  .shell { display: block; }
  .side {
    width: auto; height: auto; position: sticky; z-index: 5; gap: 10px;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px;
  }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav a { padding: 8px 10px; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--turf); background: transparent; }
  .who { flex-direction: row; align-items: center; margin-top: 0; }
  main, .admin-foot { width: min(1100px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }
}
