/* Show-Designer – Übersicht (dashboard.html) und Admin-Cockpit/Statistik. Designsprache wie site.css: dunkel, Pult-Bernstein.
   Diagrammfarben: --c1 … --c6 kategorisch (Reihenfolge fest, mit validate_palette.js gegen #111318 geprüft: alle Prüfungen bestanden),
   --seq-* Bernstein-Stufen für Mengen (dunkel = wenig, hell = viel), --st-* nur für Zustände (immer mit Symbol + Text). */
:root {
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #9085e9; --c-accent: #ffb020;
  --seq-0: #191c24; --seq-1: #3a2e14; --seq-2: #5e4514; --seq-3: #8a6214; --seq-4: #c28a14; --seq-5: #ffb020;
  --st-good: #3ddc84; --st-warn: #fab219; --st-bad: #ff5a5f;
  --panel-3: #1e222b; --line-2: #313744; --faint: #6f7685;
  --r-card: 14px;
}

/* ------------------------------------------------------------------ Diagramme (charts.js) */
.ch-tip { position: fixed; z-index: 200; pointer-events: none; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 8px 11px; font-size: 13px; line-height: 1.35; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); display: grid; gap: 3px; max-width: 280px; }
.ch-tip[hidden] { display: none; }
.ch-tip-r { display: flex; align-items: baseline; gap: 8px; }
.ch-tip-r b { color: var(--text); font-weight: 700; white-space: nowrap; }
.ch-tip-r span { color: var(--muted); overflow-wrap: anywhere; }
.ch-key { width: 12px; height: 2px; border-radius: 2px; align-self: center; flex: none; }
.ch-area { position: relative; outline: none; border-radius: 8px; }
.ch-area:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ch-area svg { display: block; overflow: visible; }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ch-fill { opacity: .12; stroke: none; }
.ch-base { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-cross { stroke: #4a5263; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-axis { fill: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.ch-dot { stroke: var(--panel); stroke-width: 2; }
.ch-empty { color: var(--muted); font-size: 14px; margin: 0; }

.ch-bars { display: grid; gap: 4px; container-type: inline-size; }
.ch-bar { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(60px, 2fr) auto; align-items: center; gap: 12px; min-height: 34px;
  padding: 3px 8px; margin: 0 -8px; border-radius: 8px; background: none; border: 0; color: inherit; font: inherit; text-align: left; }
.ch-bar.is-link { cursor: pointer; }
.ch-bar.is-link:hover, .ch-bar:focus-visible { background: var(--panel-2); outline: none; }
.ch-bar-l { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ch-bar-t { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-bar-l small { color: var(--faint); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-bar-track { height: 12px; background: var(--panel-2); border-radius: 0 4px 4px 0; overflow: hidden; }
.ch-bar-fill { display: block; height: 100%; background: var(--c-accent); border-radius: 0 4px 4px 0; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.ch-bar-v { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); min-width: 3ch; text-align: right; white-space: nowrap; }
.ch-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; align-self: center; }
@container (max-width: 560px) {
  .ch-bar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; padding-top: 5px; padding-bottom: 5px; }
  .ch-bar .ch-bar-track { grid-column: 1 / -1; grid-row: 2; height: 8px; }
  .ch-bar-t { white-space: normal; }
}

.ch-heat { display: grid; grid-template-columns: auto repeat(var(--cols), minmax(8px, 1fr)); gap: 2px; align-items: center; font-size: 11px; color: var(--faint); }
.ch-heat-h { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-heat-r { padding-right: 8px; white-space: nowrap; }
.ch-cell { display: block; aspect-ratio: 1; border-radius: 3px; min-width: 8px; }
.ch-heat .ch-cell:hover, .ch-cal .ch-cell:hover { outline: 1px solid var(--text); outline-offset: 0; }

.ch-cal { display: grid; gap: 8px; }
.ch-cal-sc { overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.ch-cal-m { display: grid; grid-template-columns: repeat(var(--weeks), 14px); gap: 3px; margin-left: 30px; font-size: 11px; color: var(--faint); height: 16px; }
.ch-cal-m span { white-space: nowrap; overflow: visible; }
.ch-cal-b { display: flex; gap: 6px; }
.ch-cal-d { display: grid; grid-template-rows: repeat(7, 14px); gap: 3px; width: 24px; font-size: 10.5px; color: var(--faint); line-height: 14px; }
.ch-cal-g { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 14px); grid-template-columns: repeat(var(--weeks), 14px); gap: 3px; }
.ch-cal .ch-cell { border-radius: 3px; width: 14px; height: 14px; aspect-ratio: auto; min-width: 0; }
.ch-cal-leg { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--faint); justify-content: flex-end; }
.ch-cal-leg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ch-cal-leg span { margin: 0 4px; }
.ch-cal .is-future { background: transparent !important; }
.ch-cal .is-today { box-shadow: 0 0 0 1.5px var(--accent); }

.ch-cols { display: flex; align-items: flex-end; gap: 10px; }
.ch-col { display: grid; justify-items: center; gap: 4px; outline: none; border-radius: 6px; padding: 0 2px; }
.ch-col:focus-visible { outline: 2px solid var(--accent); }
.ch-col-bar { width: 22px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.ch-col-fill { display: block; width: 100%; background: var(--seq-3); border-radius: 4px 4px 0 0; transition: height .5s cubic-bezier(.2, .8, .2, 1); }
.ch-col.is-on .ch-col-fill { background: var(--c-accent); }
.ch-col-v { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-col-l { font-size: 11.5px; color: var(--faint); }
.ch-col.is-on .ch-col-l { color: var(--text); font-weight: 700; }
.akt-body { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: flex-end; justify-content: space-between; }
.akt-body > div { min-width: 0; }
.akt-week h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ch-ring { display: flex; align-items: center; gap: 14px; }
.ch-ring svg { flex: none; }
.ch-ring-track { fill: none; stroke: var(--panel-2); stroke-width: 10; }
.ch-ring-arc { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1); }
.ch-ring-txt { display: grid; gap: 2px; }
.ch-ring-txt b { font-size: 22px; line-height: 1.15; }
.ch-ring-txt span { color: var(--muted); font-size: 13.5px; }

.ch-stack { display: grid; gap: 10px; }
.ch-stack-bar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.ch-seg { display: block; min-width: 3px; outline: none; }
.ch-seg:hover, .ch-seg:focus-visible { filter: brightness(1.25); }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.ch-leg { display: inline-flex; align-items: center; gap: 6px; }
.ch-leg b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ Übersicht des Nutzers */
.dash { max-width: 1180px; margin: 0 auto; padding: 24px 20px 72px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.dash[aria-busy="true"] .dcard, .dash[aria-busy="true"] .dash-hero { opacity: .55; }
.dcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.dcard > h2, .dcard-head h2 { margin: 0; font-size: 17px; letter-spacing: -.005em; }
.dcard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dcard-head a, .dcard-head .link-btn { font-size: 14px; font-weight: 600; text-decoration: none; }
.dcard .muted, .dash .muted { color: var(--muted); font-size: 14px; margin: 0; }

.dash-hero { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: #0b0c10; min-height: 260px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.dash-hero-txt { position: relative; z-index: 2; padding: 30px 30px 26px; display: grid; gap: 14px; align-content: center; }
.dash-hero h1 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.015em; }
.dash-hero .sub { margin: 0; color: var(--muted); font-size: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dash-hero .sub b { color: var(--text); }
.dash-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.dash-cta .btn-primary { min-height: 54px; padding: 0 24px; font-size: 17px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.dash-cta .last { color: var(--muted); font-size: 14px; }
.dash-cta .last b { color: var(--text); font-weight: 600; }

/* Bühne: Strahler in den Farben der eigenen Shows */
.stage { position: relative; min-height: 240px; overflow: hidden; }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0c10 0%, rgba(11, 12, 16, 0) 30%); z-index: 1; }
.stage .beam { position: absolute; top: -12%; width: 26%; height: 125%; left: calc(var(--x) * 1%); transform-origin: 50% 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--col) 85%, transparent) 0%, color-mix(in srgb, var(--col) 22%, transparent) 55%, transparent 100%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); filter: blur(1.5px); mix-blend-mode: screen; opacity: .8;
  animation: sway calc(var(--d) * 1s) ease-in-out infinite alternate; animation-delay: calc(var(--o) * -1s); }
.stage .head { position: absolute; top: 4px; width: 18px; height: 10px; border-radius: 3px 3px 6px 6px; background: #2a2e38; left: calc(var(--x) * 1% + 13% - 9px);
  border-bottom: 3px solid var(--col); z-index: 2; }
.stage .floor { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 120px; border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--f1) 40%, transparent) 0%, color-mix(in srgb, var(--f2) 18%, transparent) 45%, transparent 70%);
  animation: floorglow 6s ease-in-out infinite alternate; }
.stage .truss { position: absolute; top: 0; left: 8%; right: 0; height: 6px; background: repeating-linear-gradient(90deg, #3a3f4c 0 6px, #262a33 6px 12px); z-index: 2; }
@keyframes sway { from { transform: rotate(calc(var(--a) * -1deg)); } to { transform: rotate(calc(var(--a) * 1deg)); } }
@keyframes floorglow { from { opacity: .7; transform: scaleX(.95); } to { opacity: 1; transform: scaleX(1.05); } }

.dash-row { display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }

/* „Neu für dich“ */
.inbox { display: grid; gap: 8px; }
.inb { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.inb:hover { border-color: #3a4152; }
.inb .ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #241c0c; color: var(--accent); }
.inb .ico svg { width: 18px; height: 18px; }
.inb b { display: block; font-size: 14.5px; }
.inb span { display: block; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inb time { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.inbox-empty { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.inbox-empty i { color: var(--st-good); font-style: normal; font-weight: 700; }

/* Shows als Pads */
.pads { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pad { position: relative; aspect-ratio: 1.2; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); color: #fff;
  text-decoration: none; display: grid; align-content: space-between; padding: 10px 11px; isolation: isolate; cursor: pointer; font: inherit; text-align: left;
  background: #0d0e12; transition: transform .18s ease, box-shadow .18s ease; }
.pad::before { content: ""; position: absolute; inset: -10%; z-index: -2; background:
  radial-gradient(70% 60% at 20% 100%, var(--p1) 0%, transparent 70%), radial-gradient(70% 60% at 85% 95%, var(--p2) 0%, transparent 70%),
  radial-gradient(60% 55% at 55% 10%, var(--p3) 0%, transparent 70%), linear-gradient(140deg, color-mix(in srgb, var(--p1) 45%, #0d0e12), color-mix(in srgb, var(--p2) 35%, #0d0e12));
  animation: padglow 5s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.7s); }
.pad::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, .7) 100%); }
.pad:hover, .pad:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8); outline: none; border-color: rgba(255, 255, 255, .22); }
.pad .top { display: flex; justify-content: flex-start; gap: 6px; font-size: 11.5px; font-weight: 700; }
.pad .kind { white-space: nowrap; background: rgba(0, 0, 0, .5); padding: 2px 7px; border-radius: 999px; backdrop-filter: blur(4px); }
.pad .when { color: rgba(255, 255, 255, .8); text-shadow: 0 1px 4px #000; }
.pad .name { font-weight: 700; font-size: 15px; line-height: 1.2; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); overflow-wrap: anywhere; }
.pad .meta { font-size: 12px; color: rgba(255, 255, 255, .78); text-shadow: 0 1px 4px #000; }
@keyframes padglow { from { filter: saturate(1) brightness(.95); transform: scale(1); } to { filter: saturate(1.25) brightness(1.1); transform: scale(1.04); } }
.pads-empty { grid-column: 1 / -1; display: grid; gap: 10px; justify-items: start; padding: 18px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); }

/* Zahlen nebeneinander */
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
.num b { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.num span { color: var(--muted); font-size: 13px; }

/* Dein Weg */
.path { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.path .ch-ring svg { width: 84px; height: 84px; }
.weg-done { list-style: none; }
.weg-done summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; min-height: 36px; display: flex; align-items: center; gap: 8px; }
.weg-done summary::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--st-good); color: #08130c; font-weight: 800; font-size: 13px; }
.weg-done ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.weg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.weg-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 40px; padding: 4px 0; }
.weg-step .chk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); font-size: 13px; font-weight: 800; color: transparent; }
.weg-step.done .chk { background: var(--st-good); border-color: var(--st-good); color: #08130c; }
.weg-step.done .lbl { color: var(--muted); }
.weg-step .lbl { font-size: 14.5px; font-weight: 600; }
.weg-step .lbl small { display: block; color: var(--faint); font-weight: 400; font-size: 12.5px; }
.weg-step .btn { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.weg-step.next { background: linear-gradient(90deg, rgba(255, 176, 32, .08), transparent); border-radius: 10px; margin: 0 -8px; padding: 4px 8px; }

/* Rig */
.rig-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.role-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.role-chip b { font-size: 15px; }
.role-chip i { width: 10px; height: 10px; border-radius: 50%; }
.dev-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dev-list span { font-size: 12.5px; color: var(--muted); background: var(--panel-2); border-radius: 6px; padding: 2px 8px; }

.dash-foot { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px;
  border-top: 1px solid var(--line); padding-top: 16px; }
.tgl { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.tgl input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; flex: none; }
.tgl input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tgl input:checked { background: var(--st-good); }
.tgl input:checked::after { transform: translateX(18px); }
.tgl input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ Admin: Cockpit und Statistik */
.ck { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.ck-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.ck-head h2 { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.ck-head .muted { color: var(--muted); font-size: 14px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--st-good); margin-right: 6px; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

.todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.todo { display: grid; gap: 2px; align-content: start; text-align: left; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--st-warn); color: var(--text); font: inherit; cursor: pointer; min-height: 92px; }
.todo:hover { border-color: #3a4152; border-left-color: var(--st-warn); }
.todo b { font-size: 30px; line-height: 1.1; }
.todo span { font-size: 13.5px; font-weight: 600; }
.todo small { color: var(--muted); font-size: 12.5px; }
.todo.is-zero { border-left-color: var(--line); opacity: .6; }
.todo.is-zero b::after { content: " ✓"; color: var(--st-good); font-size: 18px; }
.todo-all { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #10241a; border: 1px solid #1f5a3a; color: #9fe9bf; font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px 10px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.kpi .lbl { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi .val { font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.kpi .val small { font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.kpi .sub { color: var(--muted); font-size: 12.5px; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.delta.up { color: #9fe9bf; border-color: #1f5a3a; }
.delta.down { color: #ffb0b2; border-color: #5a2224; }
.kpi .ch-area { margin: 2px -4px 0; }

.ck-cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.online { display: grid; gap: 6px; }
.on-row, .feed-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; margin: 0 -8px; border-radius: 10px;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.on-row:hover, .feed-row:hover, .on-row:focus-visible, .feed-row:focus-visible { background: var(--panel-2); outline: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #111; position: relative; }
.on-row .avatar::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--st-good); border: 2px solid var(--panel); }
.on-row b, .feed-row b { font-size: 14px; }
.on-row span, .feed-row span { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-row time, .feed-row time { color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.feed { display: grid; gap: 2px; max-height: 560px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; padding: 0 8px; }
.on-row.is-day .avatar::after { display: none; }
.online + .dcard-head { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.feed-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); }
.feed-ico svg { width: 17px; height: 17px; }
.feed-ico.t-konto { color: #9fe9bf; } .feed-ico.t-show { color: var(--accent); } .feed-ico.t-fb { color: #ffb0b2; } .feed-ico.t-com { color: #9ec5f4; } .feed-ico.t-ki { color: #c3b8ff; }

/* Statistik */
.st-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; position: sticky; top: 106px; z-index: 4;
  background: var(--bg); padding: 8px 0; }
.st-bar .tgl { font-size: 14px; color: var(--muted); }
.insights { display: grid; gap: 8px; counter-reset: ins; }
.insight { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.insight:hover { border-color: #3a4152; }
.insight .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: #241c0c; color: var(--accent); }
.insight .ico.good { background: #10241a; color: #9fe9bf; } .insight .ico.bad { background: #2a1012; color: #ffb0b2; }
.insight p { margin: 0; font-size: 14.5px; line-height: 1.4; }
.insight p b { color: var(--text); }
.insight .go { color: var(--faint); font-size: 18px; }
.st-grid { display: grid; gap: 18px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.st-grid > .dcard { scroll-margin-top: 170px; }
.small-multiples { display: grid; gap: 14px 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sm h3 { margin: 0 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.sm h3 b { color: var(--text); font-size: 15px; }
.funnel { display: grid; gap: 6px; }
.fun-step { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.4fr) 92px; gap: 12px; align-items: center; min-height: 40px; background: none; border: 0;
  color: inherit; font: inherit; text-align: left; padding: 3px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; }
.fun-step:hover, .fun-step.on { background: var(--panel-2); }
.fun-step .t { font-size: 14px; font-weight: 600; }
.fun-step .t small { display: block; color: var(--faint); font-weight: 400; font-size: 12px; }
.fun-track { height: 24px; border-radius: 0 6px 6px 0; background: var(--panel-2); overflow: hidden; position: relative; }
.fun-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--seq-3), var(--seq-5)); border-radius: 0 6px 6px 0; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.fun-n { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.fun-n b { font-size: 16px; }
.fun-n small { display: block; color: var(--faint); font-size: 12px; }
.fun-drop { color: #ffb0b2; font-size: 12px; font-weight: 600; }
.people { display: grid; gap: 4px; max-height: 360px; overflow: auto; }
.person { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; background: none; border: 0;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.person:hover { background: var(--panel-2); }
.person .avatar { width: 30px; height: 30px; font-size: 12px; }
.person b { font-size: 14px; } .person span { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person time { color: var(--faint); font-size: 12px; }
.coh { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.coh th { color: var(--faint); font-weight: 600; text-align: center; padding: 4px; }
.coh th:first-child, .coh td:first-child { text-align: left; color: var(--muted); white-space: nowrap; }
.coh td { text-align: center; padding: 7px 4px; border-radius: 4px; color: var(--text); }
.coh td.dark { color: #fff; } .coh td.light { color: #1a1205; } .coh td.none { color: var(--faint); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--faint); font-weight: 600; font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.tbl td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .slow { color: var(--st-warn); font-weight: 700; }
.tbl .slow::before { content: "⚠ "; }
.tbl code { font-size: 12px; color: var(--muted); }
.chips-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-cloud span { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.chips-cloud span b { margin-left: 6px; color: var(--muted); font-weight: 600; }
.chips-cloud span.zero { border-color: #5a2224; color: #ffb0b2; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches span { width: calc(26px + var(--w) * 30px); height: 34px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .08); }
.flagbar { display: grid; gap: 4px; }
.err-row { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.err-row b { font-size: 14px; overflow-wrap: anywhere; }
.err-row span { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.err-row .badge { margin-right: 6px; }
/* Video-Coach im Admin (Statistik, Karte „Gemeinsam einrichten“) */
.cst-kpis { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); }
.cst-kpis .kpi .val { font-size: 26px; }
.cst-bars .ch-bar { grid-template-columns: minmax(0, 2.2fr) minmax(48px, 1.3fr) auto; }
.cst-now { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; }
.person span.cst-bad { color: #ffb0b2; } .person span.cst-good { color: #9fe9bf; }
/* Umschalter Einrichtung / Kurse „Gemeinsam bauen“ in der Coach-Karte */
.chipbar.cst-kurse { margin: 0 0 14px; padding: 0; flex-wrap: wrap; overflow: visible; }
.cst-kurse .chip b { font-weight: 700; opacity: .75; }

/* Nutzer-Akte */
.akte-in { display: grid; gap: 12px; min-width: 0; }
.akte-in > h3 { margin: 10px 0 0; font-size: 16px; }
.akte-in > p { margin: 0; }
.akte-in .rows { display: grid; gap: 6px; }
.akte-head p .badge { margin-top: 6px; }
.akte-head { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: center; }
.akte-head .avatar { width: 54px; height: 54px; font-size: 19px; }
.akte-head h2 { margin: 0; font-size: 21px; overflow-wrap: anywhere; }
.akte-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.tl { display: grid; gap: 12px; }
.tl-day h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.tl-day ul { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 4px; }
.tl-day li { font-size: 13.5px; position: relative; }
.tl-day li::before { content: ""; position: absolute; left: -19px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.tl-day li.save::before { background: var(--accent); } .tl-day li.err::before { background: var(--st-bad); }
.tl-day li time { color: var(--faint); font-size: 12px; margin-right: 8px; font-variant-numeric: tabular-nums; }

@media (max-width: 980px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .ck-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site-head .hide-sm { display: none; }
  .dash { padding: 14px 16px 56px; gap: 14px; }
  .dash-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .dash-hero-txt { padding: 22px 18px 18px; }
  .stage { position: absolute; inset: 0; min-height: 0; opacity: .45; }
  .stage::after { background: linear-gradient(180deg, rgba(11, 12, 16, .2), #0b0c10 85%); }
  .dash-cta .btn-primary { width: 100%; }
  .pads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fun-step { grid-template-columns: minmax(0, 1fr) 80px; }
  .fun-step .fun-track { grid-column: 1 / -1; grid-row: 2; height: 14px; }
  .st-bar { top: 104px; }
  .kpi .val { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage .beam, .stage .floor, .pad::before, .live-dot { animation: none; }
  .ch-bar-fill, .fun-fill, .ch-ring-arc { transition: none; }
}

/* Konten: Filter (admin.html) */
.kf-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.kf-sort select, .kf-sel select, .dp-select { min-height: 44px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); padding: 0 10px; font: inherit; font-size: 15px; }
.kf-sel select { width: 100%; }
.kf-box { display: grid; gap: 12px; margin-top: 10px; }
.kf-box .chip b { font-weight: 700; opacity: .7; }
#kf-status .chip b { font-weight: 700; opacity: .7; }
.kf-sel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.kf-sel[hidden] { display: none; }
.kf-sel > label, .kf-sel > div { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.kf-treffer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; color: var(--muted); font-size: 14px; }
.kf-treffer .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
.kto-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.kto-link:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Datumsauswahl (wie in Designer und Visualizer, web/raum.css) */
.dp-field { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 16px; cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-field:hover, .dp-field:focus-visible { border-color: var(--accent); outline: none; }
.dp-field svg { color: var(--accent); flex: none; }
.dp-panel { position: fixed; z-index: 1000; width: 340px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); color: var(--text); }
.dp-panel.dp-sheet { left: 0; right: 0; bottom: 0; width: auto; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.dp-head { display: grid; grid-template-columns: 44px 1fr 92px 44px; gap: 6px; margin-bottom: 10px; }
.dp-arrow { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 22px; cursor: pointer; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dp-wd { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.dp-day { min-height: 48px; border-radius: 10px; border: 1px solid transparent; background: var(--panel-2); color: var(--text); font-size: 16px; cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-day:hover:not([disabled]) { border-color: var(--line-2); }
.dp-day.is-today { border-color: rgba(255, 176, 32, .55); }
.dp-day.is-on { background: var(--accent); color: #1b1300; font-weight: 700; }
.dp-day[disabled] { opacity: .3; cursor: default; }
.dp-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; }
.dp-foot .btn { min-height: 44px; flex: 1; }

/* Konto-Profil (admin-konto.js) */
#p-konto:not([hidden]) { display: grid; gap: 14px; }
.ak-zurueck { color: var(--muted); font-size: 14px; text-decoration: none; justify-self: start; min-height: 36px; display: inline-flex; align-items: center; }
.ak-zurueck:hover { color: var(--accent); }
.ak-inhalt { min-width: 0; }
.ak-boxen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 14px; align-items: start; }
.ak-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; min-width: 0; }
.ak-box h3 { margin: 0 0 4px; font-size: 16px; }
.ak-breit { grid-column: 1 / -1; }
.ak-zeile { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ak-box h3 + .ak-zeile { border-top: 0; }
.ak-t { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ak-w { font-size: 14.5px; overflow-wrap: anywhere; min-width: 0; }
.ak-a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ak-a .btn, .ak-notiz > .btn { min-height: 36px; padding: 0 12px; font-size: 14px; }
.ak-notiz > .btn { justify-self: start; }
.ak-form { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 6px 0 2px; }
.ak-form[hidden] { display: none; }
.ak-form input, .ak-notiz textarea { flex: 1 1 200px; min-height: 44px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; min-width: 0; }
.ak-form .btn { min-height: 44px; }
.ak-notiz textarea { padding: 10px 12px; resize: vertical; width: 100%; box-sizing: border-box; }
.ak-hint { display: block; flex: 1 1 100%; margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .kf-sort { flex: 1 1 100%; }
  .kf-sort select { flex: 1; }
  .kf-sort select, .kf-sel select, .ak-form input, .ak-notiz textarea { font-size: 16px; }
  .ak-zeile { grid-template-columns: minmax(0, 1fr); }
  .ak-a { justify-content: flex-start; }
  .ak-a .btn, .ak-notiz > .btn, .kf-treffer .btn { min-height: 44px; }
}
