/* Taken 1:1 from prototype/index.template.html (lines 8-349). Deviations are
   separate commits. Fonts: Poppins and DM Sans are not self-hosted yet (B13),
   the font stacks fall back to system fonts. */
/* Layout: schwarze Seitenleiste links mit Sunday-Night-Wortmarke, rechts ruhige Karten im 4-Spalten-Raster.
   Marke: Schwarz und Sunday-Gelb (#FCF024, aus dem Logo gemessen). Gelb trägt Auswahl und aktive Elemente, mit schwarzer Schrift.
   Serien in den Plattform-Markenfarben: YouTube Rot, Spotify Grün (#1ED760), Apple Podcasts Violett (aus dem App-Icon abgeleitet); Podcast-Apps als Gruppe neutral grau.
   Rot/Grün sind nie das einziges Signal: Icons und Namen stehen immer dabei. Addiert wird nur, was gleich gezählt ist. */
:root {
  --bg: #0a0a0a; --side: #000000; --surface: #151515; --surface2: #1f1f1f; --line: #2b2b2b;
  --ink: #f5f5f0; --ink2: #c8c8c2; --muted: #9a9a94;
  --accent: #fcf024; --accent-ink: #000000; --accent-soft: rgba(252,240,36,.14); --accent-text: #fcf024; --focus: #fcf024; --bar-all: #fcf024; --z1: #fcf024; --z2: #8f8f89;
  --side-ink: #f5f5f0; --side-ink2: #c8c8c2; --side-mut: #8a8a85; --side-hover: #1a1a1a; --side-line: #1f1f1f;
  --s0: #6f6f6a; --s1: #f2a30f; --s2: #9bd84e; --s3: #2fbf71; --mp: #bdbdb6; --yt: #ff0000; --sp: #1ed760; --ap: #b150e2; --wt: #85857f; --track: #2b2b2b; --grid: #2b2b2b;
  --up: #5fd08a; --dn: #ff8a7a; --pill: #1f1f1f; --warn-ink: #c8c8c2;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset;
  --f-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f4f1; --surface: #ffffff; --surface2: #eceae4; --line: #dcdcd6;
    --ink: #111111; --ink2: #444440; --muted: #6b6b66;
    --accent: #fcf024; --accent-ink: #000000; --accent-soft: rgba(252,240,36,.35); --accent-text: #111111; --focus: #000000; --bar-all: #111111; --z1: #111111; --z2: #a8a8a2;
    --s0: #a8a8a2; --s1: #e09000; --s2: #7ec244; --s3: #1f9d55; --mp: #4d4d48; --yt: #ff0000; --sp: #1ed760; --ap: #832bc1; --wt: #8a8a85; --track: #e4e2dc; --grid: #e4e2dc;
    --up: #17803f; --dn: #b3392a; --pill: #efede7; --warn-ink: #444440;
    --shadow: 0 1px 2px rgba(17,17,17,.06); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f4f1; --surface: #ffffff; --surface2: #eceae4; --line: #dcdcd6;
  --ink: #111111; --ink2: #444440; --muted: #6b6b66;
  --accent: #fcf024; --accent-ink: #000000; --accent-soft: rgba(252,240,36,.35); --accent-text: #111111; --focus: #000000; --bar-all: #111111; --z1: #111111; --z2: #a8a8a2;
  --s0: #a8a8a2; --s1: #e09000; --s2: #7ec244; --s3: #1f9d55; --mp: #4d4d48; --yt: #ff0000; --sp: #1ed760; --ap: #832bc1; --wt: #8a8a85; --track: #e4e2dc; --grid: #e4e2dc;
  --up: #17803f; --dn: #b3392a; --pill: #efede7; --warn-ink: #444440;
  --shadow: 0 1px 2px rgba(17,17,17,.06); color-scheme: light;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--f-body); margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; font-weight: 600; text-wrap: balance; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

/* Shell */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--side-line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; align-self: start; height: 100vh; color: var(--side-ink); }
.logo { padding: 2px 8px 20px; }
.logo img { display: block; width: 100%; height: auto; }
.logo small { display: block; font: 500 11px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--side-mut); margin-top: 8px; }
.mtile { display: none; width: 30px; height: 30px; border-radius: 8px; flex: none; }
.navl { font: 500 11px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--side-mut); padding: 6px 10px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nb { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-radius: 10px; padding: 10px 12px; text-align: left; color: var(--side-ink2); font-weight: 500; }
.nb:hover { background: var(--side-hover); color: var(--side-ink); }
.nb[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nb svg { flex: none; }
.side :focus-visible { outline-color: #fcf024; }
.side .btn { background: #111; border-color: #2b2b2b; color: var(--side-ink2); }
.side .btn:hover { color: #fff; border-color: #fcf024; }
.sidefoot { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.main { min-width: 0; padding: 20px 28px 56px; }
.topbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.topbar h1 { font-size: 24px; }
.topbar .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tright { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: var(--accent); color: var(--accent-ink); padding: 5px 11px; border-radius: 99px; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; color: var(--ink2); font-weight: 500; font-size: 13px; }
.btn:hover { color: var(--ink); border-color: var(--muted); }
.btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--ink); border-color: var(--accent-text); }

/* Bausteine */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; box-shadow: var(--shadow); }
.ph { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ph h2, .ph h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ph .hint { color: var(--muted); font-size: 12.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.mp { background: var(--mp); } .dot.yt { background: var(--yt); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.sp { margin-top: 14px; }
.seg { display: inline-flex; background: var(--surface2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
select { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 0; max-width: 100%; }
select.big { width: min(620px, 100%); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lab { font-size: 12px; font-weight: 500; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--pill); border-radius: 99px; padding: 2px 10px; font-size: 12px; color: var(--ink2); white-space: nowrap; }
.chip.warn { background: transparent; border: 1px solid var(--muted); color: var(--ink2); }
.chip.warn::before { content: "!"; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 10px; font-weight: 700; line-height: 1; }
.bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 18px; }
.epmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Kennzahl-Karte */
.kc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; box-shadow: var(--shadow); position: relative; }
.kh { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kl { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink2); font-weight: 500; min-width: 0; }
.kv { font: 600 30px/1.1 var(--f-display); letter-spacing: -.01em; }
.kv small { font: 500 14px var(--f-body); color: var(--muted); margin-left: 4px; }
.kv.none { color: var(--muted); font-size: 20px; }
.kf { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; background: var(--pill); border-radius: 99px; padding: 2px 9px; white-space: nowrap; color: var(--ink2); }
.pill.up, .pill.dn { color: var(--ink); }
.info { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); font: italic 600 12px/1 var(--f-body); padding: 0; }
.info:hover, .info[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tip { margin: 0; font-size: 12px; color: var(--ink2); background: var(--surface2); border-radius: 10px; padding: 8px 10px; }
.goal { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.goal input { width: 84px; padding: 4px 8px; font-size: 12.5px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface2); }
.grp { font: 500 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.grp:first-child { margin-top: 0; }

/* Charts */
.chart { position: relative; width: 100%; height: 230px; overflow: hidden; min-width: 0; }
.chart svg { display: block; overflow: visible; }
.chart text { fill: var(--muted); font: 11px var(--f-body); }
.ctip { position: absolute; pointer-events: none; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -100%); box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 2; }
.ctip b { display: block; font: 600 15px var(--f-display); }
.ctip span { color: var(--muted); }

/* Listen */
.list { display: flex; flex-direction: column; }
.li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; align-items: center; }
.li:last-child { border-bottom: 0; }
.li:hover .lt { color: var(--accent-text); text-decoration: underline; }
.lt { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lm { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.bars { display: grid; grid-template-columns: minmax(70px, auto) 1fr 50px; gap: 9px 10px; align-items: center; font-size: 13px; }
.bars .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink2); }
.bars .tr { height: 10px; background: var(--track); border-radius: 5px; overflow: hidden; }
.bars .fl { height: 100%; border-radius: 5px; min-width: 3px; }
.bars .core { font-weight: 600; color: var(--ink); }
.bars2 { display: grid; gap: 14px; }
.b2 .t { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); margin-bottom: 6px; }
.b2 .t b { color: var(--ink); font-weight: 600; }
.b2 .r { display: grid; grid-template-columns: 86px 1fr 54px; gap: 8px; align-items: center; margin-top: 5px; font-size: 12px; color: var(--muted); }
.b2 .tr { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.b2 .fl { height: 100%; border-radius: 4px; }
.b2 .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Tabelle */
.tw { overflow-x: auto; border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
th { font-weight: 500; font-size: 12px; color: var(--muted); }
th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: right; }
th button:hover, th[aria-sort] button { color: var(--ink); }
th.l, td.l { text-align: left; }
td.t { white-space: normal; min-width: 230px; max-width: 320px; font-weight: 500; }
tr.med td { background: var(--surface2); font-weight: 600; }
tr.med td:first-child { border-radius: 10px 0 0 10px; } tr.med td:last-child { border-radius: 0 10px 10px 0; }
th.g { text-align: center; color: var(--ink2); border-bottom: 2px solid var(--line); }
th.g.mp { border-bottom-color: var(--mp); } th.g.yt { border-bottom-color: var(--yt); }
.d2 { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }

.eptab .th { width: 84px; height: 47px; border-radius: 8px; object-fit: cover; background: var(--surface2); display: block; } .eptab .ph0 { border: 1px dashed var(--line); }
.eptab td { vertical-align: middle; } .eptab td.idc { color: var(--muted); font-size: 12px; }
tr.clk { cursor: pointer; } tr.clk:hover td, tr.clk:focus-visible td { background: var(--surface2); }
.sts { display: flex; gap: 6px; }
.stb { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); text-decoration: none; }
.stb.yt { color: var(--yt); } .stb.yt:hover { border-color: var(--yt); } .stb.spo { color: var(--sp); border-style: dashed; } .stb.off:not(.spo) { opacity: .35; border-style: dashed; }
.nb.ext { color: var(--side-ink2); text-decoration: none; } .nb.ext .arr { margin-left: auto; opacity: .6; }
.sideext { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--side-line); } .sideext + .sidefoot { margin-top: 12px; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }

/* Zielgruppe / Retention */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 18px; }
.kpis .v { font: 600 26px/1.1 var(--f-display); }
.kpis .l { font-size: 12px; color: var(--muted); }
.basis { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rrow { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 8px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.rrow:last-child { border: 0; }
.rrow .tt { font-weight: 500; }
.rrow .mt { color: var(--muted); font-size: 12px; margin-top: 2px; }
.rtrack { position: relative; height: 12px; background: var(--track); border-radius: 6px; }
.rtrack .fl { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--yt); }
.rtrack .tick { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
.rval { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.rval b { font: 600 18px var(--f-display); color: var(--ink); margin-right: 6px; }
.plh { border: 2px dashed var(--line); border-radius: 14px; padding: 26px 16px; text-align: center; color: var(--muted); margin-top: 14px; }
.plh b { display: block; color: var(--ink2); font: 600 15px var(--f-display); margin-bottom: 2px; }
.foot { margin: 14px 2px 0; font-size: 12px; color: var(--muted); }


.pcs { display: flex; flex-wrap: wrap; gap: 6px; }
.pc { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px 4px 6px; color: var(--muted); font-size: 12.5px; }
.pc .pi { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); }
.pc.on { color: var(--ink); border-color: var(--pcol); background: var(--pill); }
.pc.on .pi { background: var(--pcol); color: #fff; border-color: var(--pcol); }
.pc:hover:not(.dis) { border-color: var(--pcol); }
.pc.dis { opacity: .45; cursor: not-allowed; border-style: dashed; }
.pc.wide { padding-right: 12px; }
.pc:not(.wide) { padding: 3px; }
.duo { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.du { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; row-gap: 0; background: none; border: 0; padding: 0; text-align: left; color: var(--ink); }
.du .pi { grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pcol); color: #fff; }
.du .dv { font: 600 24px/1.1 var(--f-display); }
.du .dl { font-size: 11.5px; color: var(--muted); grid-column: 2; }
.du.off { opacity: .35; }
.du.off .pi { background: none; color: var(--muted); border: 1px solid var(--line); }
.leg { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink2); margin: -6px 0 12px; }
.leg span { display: inline-flex; align-items: center; gap: 6px; } .leg small { color: var(--muted); font-size: 12px; }
.empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.ctip .ch { font-weight: 600; margin-bottom: 4px; color: var(--ink2); }
.ctip .cr { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; min-width: 190px; }
.ctip .cr i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.ctip .cr b { display: inline; font: 600 13px var(--f-display); }
.li { grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.li .th { width: 72px; height: 41px; border-radius: 8px; object-fit: cover; background: var(--surface2); display: block; }
.li .ph0 { border: 1px dashed var(--line); }
.lc { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
button.lt { background: none; border: 0; padding: 0; text-align: left; color: var(--ink); font-weight: 500; }
button.lt:hover { color: var(--accent-text); text-decoration: underline; }
.lm { grid-column: auto; }
.lm span { display: inline-flex; align-items: center; gap: 4px; }
.la { display: flex; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.lb { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 96px; height: 26px; line-height: 1; gap: 5px; border: 1px solid var(--line); border-radius: 8px; padding: 2px 9px 2px 7px; font-size: 12px; color: var(--ink2); text-decoration: none; }
.lb.nolink { opacity: .55; border-style: dashed; cursor: default; }
.lb:hover { color: var(--ink); } .lb.yt:hover { border-color: var(--yt); } .lb.spo:hover { border-color: var(--sp); }
.lb.yt svg { color: var(--yt); } .lb.spo svg { color: var(--sp); }
.g-bottom { grid-template-columns: 1.5fr 1fr; }
.plat-yt { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.plat-yt > div { flex: 1; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); } .plat-yt > div b { color: var(--ink); font-size: 14px; } .plat-yt > b { font: 600 20px var(--f-display); }
input[type=date] { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; color: var(--ink); }
@media (max-width: 1100px) { .g-bottom { grid-template-columns: minmax(0, 1fr); } }


.bigv { font: 600 40px/1.1 var(--f-display); letter-spacing: -.01em; margin-top: 2px; }
.pi.big { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--pcol); color: #fff; flex: none; }
.pcard .kl { gap: 10px; font-size: 14px; color: var(--ink); }
.soon { color: var(--muted); }
.mini { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; margin-top: 4px; } .mini i { display: block; height: 100%; background: var(--pcol); border-radius: 4px; }
.g-sub { grid-template-columns: 1.7fr 1fr; }
.prow { display: flex; flex-wrap: wrap; gap: 14px; }
.prow .pcard { flex: 0 1 210px; min-width: 0; }
.reach { display: flex; flex-direction: column; gap: 14px; }
.rr { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; align-items: center; }
.rr .rn { display: flex; justify-content: space-between; font-size: 13.5px; } .rr .tr { grid-column: 2; height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; } .rr .fl { height: 100%; border-radius: 3px; }
.flag { border-radius: 4px; box-shadow: 0 0 0 1px rgba(128,128,128,.35); display: block; }
.gc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--shadow); }
.gc .of { font: 500 13px var(--f-body); color: var(--muted); }
.gtrack { position: relative; height: 12px; background: var(--track); border-radius: 6px; overflow: hidden; } .gtrack.tall { height: 16px; border-radius: 8px; }
.gfill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.ok { --amp: var(--s3); } .near { --amp: var(--s2); } .mid { --amp: var(--s1); } .start { --amp: var(--s0); } .neutral { --amp: var(--s0); }
.gfill.scale { background-image: linear-gradient(90deg, var(--s0) 0%, var(--s1) 40%, var(--s2) 75%, var(--s3) 100%); background-repeat: no-repeat; }
.gfill.neutral { background: var(--s0); opacity: .75; }
.orows { display: flex; flex-direction: column; gap: 14px; } .ot { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 6px; } .ot span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); } .ot b { font: 600 22px var(--f-display); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); margin-top: 18px; } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 18px; height: 8px; border-radius: 4px; display: block; }
.rg { stroke: var(--amp); transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); }
.amp { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; } .amp i { width: 10px; height: 10px; border-radius: 50%; background: var(--amp); display: block; }
.hero + .grid3 { margin-top: 14px; }
.ot .of { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 6px; }
.srow { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); } .srow:last-child { border-bottom: 0; } .srow small { display: block; color: var(--muted); font-size: 12px; }
.sf { display: flex; gap: 10px; flex-wrap: wrap; } .sf label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.sf input { width: 120px; background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; color: var(--ink); font: inherit; }
.sbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.zlg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-bottom: 8px; } .zlg span { display: inline-flex; align-items: center; gap: 6px; } .zlg i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.hero { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.ring { position: relative; width: 170px; height: 170px; flex: none; }
.rc { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 58px; gap: 2px; } .rc b { font: 700 46px/1 var(--f-display); } .rc span { font: 600 18px var(--f-display); color: var(--muted); }
.hl { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; } .hl h2 { font-size: 22px; }
.segs { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; } .sg { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .gfill, .rg { transition: none; } } 
.gs { font-size: 13px; font-weight: 500; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .gn { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .g-sub { grid-template-columns: minmax(0, 1fr); } }

.bar-r { justify-content: flex-end; align-items: center; }
.bar-r .ddm { left: auto; right: 0; }
.ddw { position: relative; }
.dd { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 500; color: var(--ink); }
.dd2 .ddr, .dd2 .ddl { white-space: nowrap; }
.dd2 { gap: 18px; padding: 7px 12px 7px 14px; text-align: left; }
.ddt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; } .dd2 .ddr { font-size: 12px; color: var(--muted); } .dd2 .ddl { font-size: 15px; font-weight: 600; }
.ddf { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
.dd:disabled { opacity: .45; cursor: not-allowed; }
.dd:hover:not(:disabled), .dd[aria-expanded="true"] { border-color: var(--accent-text); } .ddr { color: var(--muted); font-weight: 400; font-size: 13px; }
.ddm { position: absolute; z-index: 15; top: calc(100% + 6px); left: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.28); display: flex; flex-direction: column; }
.ddi { display: flex; align-items: center; gap: 8px; background: none; border: 0; text-align: left; padding: 9px 10px; border-radius: 8px; color: var(--ink2); }
.ddi:hover { background: var(--surface2); color: var(--ink); } .ddi[aria-selected="true"] { color: var(--ink); font-weight: 600; } .chk { width: 16px; color: var(--accent-text); font-weight: 700; }
.ddc { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); margin-top: 4px; }

.gchips { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.gh { font: 700 28px/1.2 var(--f-display); margin: 34px 0 14px; letter-spacing: -.01em; }
.bar-s { justify-content: space-between; align-items: flex-end; } .field.fr { margin-left: auto; }
.prowc { container: prow / inline-size; }
.prow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@container prow (max-width: 640px) { .prow { grid-template-columns: minmax(0, 1fr); } }
.prow .uni { grid-column: 1 / -1; padding: 22px 22px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.prow .uni .kh { flex-basis: 100%; }
.prow .pcard:not(.uni) { max-width: none; }
.prow .pcard { flex: none; } .uni .kv { font-size: 40px; }
.kpis.kp2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zt th, .zt td { white-space: normal; vertical-align: top; padding: 14px 12px; }
.zt thead th { color: var(--ink2); font-weight: 600; }
.zth { display: inline-flex; align-items: center; gap: 8px; }
.zt .rl { color: var(--ink); font-weight: 600; font-size: 14px; } .zt .rl span { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.zv { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; } .zv:last-child { margin-bottom: 0; } .zv b { font: 600 20px var(--f-display); min-width: 74px; } .zv span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 13px; }
.zv .flag { width: 20px; height: auto; }
@media (max-width: 860px) { .zt { min-width: 560px; } }


.zb { margin-bottom: 12px; } .zb:last-child { margin-bottom: 0; } .zbt { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink2); margin-bottom: 5px; } .zbt span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } .zbt b { font: 600 16px var(--f-display); color: var(--ink); } .zb .tr { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; } .zb .fl { height: 100%; border-radius: 4px; min-width: 3px; } .zb .flag { width: 20px; height: auto; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dd .ddl.ell { max-width: 260px; }
.ddm-ep { min-width: 340px; max-width: min(460px, 92vw); max-height: 360px; overflow-y: auto; }
.ddm-ep .ddi .ell { max-width: 400px; }


.zov { padding: 14px 18px; } .zov .ph { margin-bottom: 24px; } .zov .basis { margin-top: 8px; }
.zovc { container: zov / inline-size; }
.zgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 28px; }
@container zov (max-width: 560px) { .zgrid { grid-template-columns: minmax(0, 1fr); } }
.zl { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.zov .zb { margin-bottom: 8px; }
.zd { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; } .zd.z1, .fl.z1 { background: var(--z1); } .zd.z2, .fl.z2 { background: var(--z2); }

/* Datenstand-Dialog */
.scrim[hidden] { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(5,4,12,.6); display: grid; place-items: center; padding: 16px; z-index: 20; }
.dlg { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; width: min(640px, 100%); max-height: 86vh; overflow: auto; }
.dlg h2 { font-size: 18px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.dlg .x { background: none; border: 1px solid var(--line); border-radius: 8px; width: 30px; height: 30px; color: var(--ink2); }
.src { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.src b { color: var(--ink); }
.dlg ul { margin: 6px 0 12px; padding-left: 18px; font-size: 12.5px; color: var(--ink2); }
li.ok::before { content: "✓ "; color: var(--up); font-weight: 700; } li.bad::before { content: "✗ "; color: var(--dn); font-weight: 700; }
details summary { cursor: pointer; font-weight: 500; margin: 10px 0 4px; color: var(--ink2); }

@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; overflow-x: auto; gap: 8px; }
  .logo, .navl, .sidefoot { display: none; }
  .sideext { margin: 0; padding: 0; border: 0; flex-direction: row; } .sideext .ext { display: none; }
  .mtile { display: block; margin-right: 4px; }
  .nav { flex-direction: row; }
  .nb { width: auto; white-space: nowrap; padding: 8px 12px; }
  .main { padding: 16px 16px 48px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .rrow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) { .srow { grid-template-columns: minmax(0, 1fr); } .grid4 { grid-template-columns: minmax(0, 1fr); } .kv { font-size: 26px; } .topbar h1 { font-size: 21px; } }
