/* vertrieb.awk.de - shared look. One work column, quiet neutrals with a slight blue-green bias, one teal accent. */
:root {
  --bg: #f3f5f6; --panel: #ffffff; --fg: #17222a; --muted: #5a6a75; --line: #d8dfe3; --accent: #0d6b72; --accent-soft: #d9ecee;
  --c-frei: #0d6b72; --c-direkt: #c8582d; --c-pg: #6a4fb3; --c-prog: #b03a7d; --c-partner: #b08a12; --c-house: #6b7680; --c-unsure: #a33b3b; --warn: #a3631b;
  --font: "Segoe UI", system-ui, -apple-system, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Segoe UI", system-ui, sans-serif;
  --r: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10171c; --panel: #172128; --fg: #e5ebee; --muted: #97a7b1; --line: #2a3842; --accent: #4fb8bf; --accent-soft: #173a3d;
    --c-frei: #4fb8bf; --c-direkt: #ec8a5f; --c-pg: #a58ef0; --c-prog: #e889bf; --c-partner: #e0bd4f; --c-house: #9aa6af; --c-unsure: #ec8080; --warn: #e3a24c;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.45; }
a { color: var(--accent); }
.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { font-weight: 650; letter-spacing: .01em; text-decoration: none; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; }
.brand i { width: 14px; height: 14px; border-radius: 3px; background: var(--accent); display: inline-block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); padding: 5px 10px; border-radius: 99px; font-size: 14px; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--fg); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 64px; display: grid; gap: 18px; }
h1 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 600; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.sub, .note { color: var(--muted); font-size: 13px; margin: 0; }
.lead { margin: 0; max-width: 72ch; }
.lead b { font-weight: 650; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; align-content: start; }
.tile .lbl { font-size: 13px; color: var(--muted); }
.tile .big { font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile.accent .big { color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.chart { position: relative; min-height: 14rem; }
.chart svg text { fill: var(--muted); font-family: var(--font); }
.chart svg text.lbl { fill: var(--fg); }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 6px 9px; font-size: 12px; white-space: nowrap; z-index: 3; }
.tip .t { color: var(--muted); margin-bottom: 2px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
input[type=search], input[type=text], select { font: inherit; font-size: 14px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); min-width: 0; }
input[type=search] { flex: 1 1 14rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tbox { max-height: 36rem; overflow: auto; border-top: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; background: var(--panel); text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
th button { all: unset; cursor: pointer; }
td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.num { text-align: right; }
td.hc { text-align: center; min-width: 2.4rem; padding-inline: 2px; }
tr.total td { font-weight: 650; }
.warn { color: var(--warn); }
details { font-size: 13px; color: var(--muted); }
details summary { cursor: pointer; color: var(--fg); }
dl { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 6px 16px; max-width: 86ch; }
dt { color: var(--fg); font-weight: 600; }
dd { margin: 0; }
.empty { color: var(--muted); text-align: center; padding: 28px 0; }
.foot { color: var(--muted); font-size: 12px; }
@media (max-width: 44rem) { .hide-n { display: none; } dl { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* vertrieb.awk.de additions: data status in the header, "new numbers" notice, key login */
.livebar { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.who { color: var(--muted); font-size: 12px; margin-left: 12px; white-space: nowrap; }
.live-new { position: fixed; right: 16px; bottom: 16px; background: var(--panel); border: 1px solid var(--accent); border-radius: var(--r);
  padding: 10px 14px; box-shadow: 0 4px 16px rgb(0 0 0 / .12); font-size: 14px; }
.live-new button, form.login button { margin-left: 8px; background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 6px 12px; font: inherit; cursor: pointer; }
.narrow { max-width: 34rem; }
form.login { display: grid; gap: 10px; margin: 18px 0; }
form.login input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: inherit; }
form.login button { margin-left: 0; justify-self: start; padding: 9px 16px; }
.err { color: #b42318; font-weight: 600; }
.muted { color: var(--muted); font-size: 14px; }
pre.cmd { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; overflow-x: auto; font-size: 13px; }
ol.steps li { margin: 6px 0; }
@media (max-width: 44rem) { .livebar { display: none; } }
