/* <sistenta-content-board> (Neubau 02.10.2026, content-board.js, sistenta/auswertung_ansicht.py).
   Ruhig wie YouTube Studio und Stripe: viel Luft, eine klare Hierarchie, Farbe nur an
   Linien, Balken, Segmenten und Logos, nie am Text. Flaechen und Schrift aus den
   Variablen der App (--panel, --text, --muted, --line, --accent); die App ist dunkel
   zuerst (:root), hell per [data-theme=light]. Jede Plattform traegt ihre Markenfarbe
   als --marke (Klasse .cb-p-<plattform>), je Thema eine eigene, gut lesbare Stufe. */
sistenta-content-board { display: block; margin: 0 0 32px; }
sistenta-content-board [hidden] { display: none !important; }

.cb { display: grid; gap: 20px; min-width: 0; --cb-rund: 14px; --cb-luft: 22px; }
.cb-p-neutral { --marke: var(--accent); }
.cb-p-youtube { --marke: #ff5a52; }
.cb-p-instagram { --marke: #f2639c; }
.cb-p-tiktok { --marke: #2fd3cd; }
.cb-p-linkedin { --marke: #4d9de9; }
.cb-p-spotify { --marke: #1ed760; }
.cb-p-twitch { --marke: #a970ff; }
.cb-p-discord { --marke: #7f89f7; }
:root[data-theme=light] .cb-p-neutral { --marke: var(--accent); }
:root[data-theme=light] .cb-p-youtube { --marke: #e3241b; }
:root[data-theme=light] .cb-p-instagram { --marke: #d4246c; }
:root[data-theme=light] .cb-p-tiktok { --marke: #0b9690; }
:root[data-theme=light] .cb-p-linkedin { --marke: #0a66c2; }
:root[data-theme=light] .cb-p-spotify { --marke: #14943f; }
:root[data-theme=light] .cb-p-twitch { --marke: #7f3fe6; }
:root[data-theme=light] .cb-p-discord { --marke: #4a55d1; }

.cb-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cb-logo { width: 18px; height: 18px; flex-shrink: 0; display: block; color: var(--text); }
.cb-logo--mini { width: 14px; height: 14px; }
.cb-logo--gross { width: 44px; height: 44px; }

/* Karten */
.cb-karte { border: 1px solid var(--line); background: var(--panel); border-radius: var(--cb-rund); padding: var(--cb-luft); min-width: 0; position: relative; }
.cb-block__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.cb-block__kopf h3 { font-size: 15px; font-weight: 620; margin: 0; letter-spacing: -.1px; }
.cb-block__kopf small { font-size: 12.5px; color: var(--muted); }
.cb-satz { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.cb-satz-klein { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.cb-meldung p { margin: 0; color: var(--muted); }

/* Kopf und Zeitraum */
.cb-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cb-kopf .eyebrow { margin-bottom: 6px; }
.cb-kopf h2 { font-size: 24px; letter-spacing: -.4px; margin: 0; }
.cb-zeitraum, .cb-umschalter { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.cb-seg { border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 7px 12px; border-radius: 7px; cursor: pointer; font-weight: 520; white-space: nowrap; }
.cb-seg:hover { color: var(--text); }
.cb-seg--an { background: var(--panel2); color: var(--text); box-shadow: 0 1px 2px #0000001a; }

/* Plattform-Reiter mit Logos */
.cb-reiter { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); padding-bottom: 0; scrollbar-width: thin; }
.cb-reiter__tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); padding: 11px 14px 13px;
  font-size: 14px; font-weight: 560; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; border-radius: 8px 8px 0 0; }
.cb-reiter__tab:hover { color: var(--text); background: color-mix(in srgb, var(--text) 4%, transparent); }
.cb-reiter__tab--an { color: var(--text); border-bottom-color: var(--text); }
.cb-reiter__tab--offen span { opacity: .62; }
.cb-reiter__tab .cb-logo { width: 19px; height: 19px; }

/* Hero: der grosse Graph */
.cb-hero { padding: 24px 24px 18px; }
.cb-hero__kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.cb-hero__aussage { display: flex; align-items: center; gap: 12px; }
.cb-hero__aussage p { font-size: 21px; font-weight: 620; letter-spacing: -.35px; margin: 0; line-height: 1.3; }
.cb-hero__aussage .cb-icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; stroke-width: 2.1; background: var(--panel2); color: var(--muted); }
.cb-ton--gut .cb-icon { color: var(--accent); background: var(--accent-soft); }
.cb-ton--ruhig .cb-icon { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.cb-reihen { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cb-reihe { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 10px;
  padding: 8px 12px; cursor: pointer; font-size: 13px; }
.cb-reihe:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--line)); }
.cb-reihe b { font-weight: 640; font-variant-numeric: tabular-nums; }
.cb-reihe__name { color: var(--muted); }
.cb-reihe__strich { width: 16px; height: 4px; }
.cb-reihe__strich rect { fill: var(--marke); }
.cb-reihe--aus { opacity: .45; }
.cb-reihe--aus .cb-reihe__strich rect { fill: var(--muted); }
.cb-fussnote { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

/* Graphen */
.cb-graphflaeche { position: relative; min-height: 120px; }
.cb-graph { display: block; width: 100%; height: auto; overflow: visible; }
.cb-raster { stroke: var(--line); stroke-width: 1; }
.cb-achse { stroke: color-mix(in srgb, var(--muted) 45%, transparent); stroke-width: 1; }
.cb-tick { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cb-linie { fill: none; stroke: var(--marke); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.cb-linie--gesondert { stroke-width: 2.2; }
.cb-linie--funke { stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.cb-flaeche { fill: var(--marke); fill-opacity: .1; stroke: none; }
.cb-kreuz { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.cb-hoverpunkt { fill: var(--marke); stroke: var(--panel); stroke-width: 2.5; }
.cb-treffer { fill: transparent; cursor: crosshair; }
.cb-tooltip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; min-width: 170px; max-width: 280px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; box-shadow: 0 10px 30px #0000002e; }
.cb-tooltip strong { display: block; font-weight: 620; margin-bottom: 4px; }
.cb-tooltip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cb-tooltip li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.cb-tooltip li span { color: var(--muted); }
.cb-tooltip li b { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Frag deinen Assistenten */
.cb-frag { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cb-frag__knopf { display: inline-flex; align-items: center; gap: 10px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft);
  color: var(--text); border-radius: 999px; padding: 9px 16px 9px 12px; cursor: pointer; font-size: 14px; font-weight: 580; }
.cb-frag__knopf .cb-icon { color: var(--accent); }
.cb-frag__knopf small { color: var(--muted); font-weight: 450; font-size: 12.5px; }
.cb-frag__knopf:hover { border-color: var(--accent); }
.cb-frag__knopf:disabled { opacity: .6; cursor: progress; }
.cb-antwort { margin-top: 12px; display: grid; gap: 8px; max-width: 760px; }
.cb-antwort p { margin: 0; font-size: 14px; line-height: 1.6; }
.cb-antwort__vorschlag { display: flex; gap: 10px; align-items: baseline; }
.cb-antwort__vorschlag span, .cb-tipp__vorschlag span { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 650; flex-shrink: 0; }
.cb-antwort__rechnung { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.cb-antwort__hinweis, .cb-antwort__laeuft { color: var(--muted); }

/* Kacheln je Plattform */
.cb-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 12px; }
.cb-kachel { border: 1px solid var(--line); background: var(--panel); border-radius: var(--cb-rund); min-width: 0; display: flex; flex-direction: column; }
.cb-kachel__klick { all: unset; box-sizing: border-box; display: grid; gap: 4px; padding: 16px 16px 12px; cursor: pointer; border-radius: var(--cb-rund); height: 100%; }
.cb-kachel__klick:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.cb-kachel__klick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cb-kachel__kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-width: 0; }
button.cb-kachel__kopf { border: 0; background: transparent; color: var(--text); padding: 0; cursor: pointer; font: inherit; }
.cb-kachel__kopf b { font-size: 13.5px; font-weight: 620; }
.cb-kachel__kopf small { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cb-kachel__label { font-size: 12px; color: var(--muted); }
.cb-kachel__wert { font-size: 26px; font-weight: 640; letter-spacing: -.6px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cb-kachel__fuss { min-height: 18px; }
.cb-kachel__ohne { font-size: 11.5px; color: var(--muted); }
.cb-funke { display: block; height: 32px; margin-top: 4px; }
.cb-funke__svg { width: 100%; height: 32px; display: block; }
.cb-kachel--offen { padding: 16px; gap: 6px; background: transparent; border-style: dashed; }
.cb-kachel--offen .cb-kachel__kopf b { color: var(--muted); }
.cb-kachel__satz { font-size: 12.5px; color: var(--muted); margin: 0 0 4px; flex: 1; }

.cb-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 2px 7px 2px 5px; border-radius: 999px; }
.cb-delta svg { width: 10px; height: 10px; fill: currentColor; }
.cb-delta--auf { color: var(--accent); background: var(--accent-soft); }
.cb-delta--ab { color: var(--warn); background: color-mix(in srgb, var(--warn) 11%, transparent); }
.cb-delta--klein { font-size: 11.5px; }

/* Verbinden */
.cb-verbinden { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--text); color: var(--panel); border-radius: 999px;
  padding: 9px 16px; font-size: 13.5px; font-weight: 620; text-decoration: none; white-space: nowrap; }
.cb-verbinden .cb-icon { width: 15px; height: 15px; stroke-width: 2.4; }
.cb-verbinden:hover { opacity: .9; }
.cb-verbinden--klein { padding: 6px 12px; font-size: 12.5px; }

/* Zwei Spalten unter den Kacheln */
.cb-zwei { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.cb-zwei > [data-tipp] { min-width: 0; }
.cb-ziele, .cb-follower-ziele ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cb-ziele li, .cb-follower-ziele li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.cb-follower-ziele li { grid-template-columns: auto 1fr; }
.cb-ziele .cb-logo, .cb-follower-ziele .cb-logo { width: 22px; height: 22px; }
.cb-ziele__text { display: grid; gap: 2px; min-width: 0; }
.cb-ziele__text b { font-size: 13.5px; font-weight: 600; }
.cb-ziele__text span { font-size: 12.5px; color: var(--muted); }
.cb-ziele__punkte { display: inline-flex; gap: 4px; }
.cb-ziele__punkte i { width: 10px; height: 10px; border-radius: 3px; background: var(--panel2); border: 1px solid var(--line); }
.cb-ziele__punkte i.voll { background: var(--marke); border-color: transparent; }
.cb-follower-ziele .cb-balken { margin-top: 6px; }

/* Tipp des Tages */
.cb-tipp { display: grid; gap: 10px; justify-items: start; border-left: 3px solid var(--accent); }
.cb-tipp__marke { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .4px; color: var(--accent); font-weight: 650; margin: 0; }
.cb-tipp__marke .cb-icon { width: 16px; height: 16px; }
.cb-tipp__titel { font-size: 17px; margin: 0; letter-spacing: -.2px; }
.cb-tipp__text { font-size: 14.5px; line-height: 1.6; margin: 0; }
.cb-tipp__vorschlag { font-size: 14px; margin: 0; display: flex; gap: 10px; align-items: baseline; }
.cb-tipp__fuss { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cb-quelle { font-size: 12px; color: var(--muted); }
.cb-quelle a { color: inherit; }

/* Top-Beitraege */
.cb-top__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 6px 24px; }
.cb-top__liste li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.cb-top__text { display: grid; gap: 2px; min-width: 0; }
.cb-top__text small { font-size: 12px; color: var(--muted); }
.cb-top__wert { display: grid; text-align: right; }
.cb-top__wert b { font-size: 15px; font-variant-numeric: tabular-nums; }
.cb-top__wert small { font-size: 11.5px; color: var(--muted); }

/* Vorschaubild-Platz */
.cb-thumb { position: relative; width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--marke) 30%, var(--panel2)), color-mix(in srgb, var(--marke) 8%, var(--panel2)));
  display: grid; place-items: center; }
.cb-thumb--klein { width: 64px; }
.cb-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cb-thumb__logo { width: 20px; height: 20px; opacity: .9; }
.cb-thumb img + .cb-thumb__logo { display: none; }
.cb-thumb em, .cb-thumb i { position: absolute; bottom: 4px; font-style: normal; font-size: 10px; font-weight: 650; padding: 1px 5px; border-radius: 4px;
  background: #000000b3; color: #fff; }
.cb-thumb em { left: 4px; }
.cb-thumb i { right: 4px; }

/* Plattform-Kopf */
.cb-pkopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cb-pkopf__text { flex: 1; min-width: 200px; }
.cb-pkopf h2 { font-size: 22px; margin: 0; letter-spacing: -.3px; }
.cb-pkopf h2 small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.cb-pkopf p { margin: 3px 0 0; font-size: 13.5px; color: var(--muted); }
.cb-pkopf p b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.cb-nativ { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; }
.cb-nativ:hover { color: var(--text); }
.cb-nativ .cb-icon { width: 14px; height: 14px; }
.cb-vorschau-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-radius: var(--cb-rund); padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--marke) 40%, var(--line)); background: color-mix(in srgb, var(--marke) 7%, var(--panel)); }
.cb-vorschau-banner b { font-size: 15px; }
.cb-vorschau-banner p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); max-width: 640px; }

/* Bereiche (Unterreiter) und Formate */
.cb-pleiste { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.cb-bereiche { display: flex; gap: 2px; overflow-x: auto; }
.cb-bereiche__tab { border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 580; padding: 10px 14px 12px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.cb-bereiche__tab:hover { color: var(--text); }
.cb-bereiche__tab--an { color: var(--text); border-bottom-color: var(--accent); }
.cb-formate { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 8px; }
.cb-chip { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; font-weight: 550; }
.cb-chip:hover { color: var(--text); }
.cb-chip--an { background: var(--text); color: var(--panel); border-color: var(--text); }

/* Bloecke im Raster */
.cb-bloecke { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cb-breit { grid-column: 1 / -1; }
.cb-bloecke--vorschau .cb-karte { pointer-events: none; }
.cb-bloecke--vorschau .cb-kpi__wert { color: var(--muted); }
/* In der Vorschau erklaert das Banner oben, warum noch nichts da ist; nicht in jedem Block wiederholen. */
.cb-bloecke--vorschau .cb-kpi__fehlt, .cb-bloecke--vorschau .cb-geist__satz { display: none; }
.cb-bloecke--vorschau .cb-kpi--an { border-bottom-color: color-mix(in srgb, var(--marke) 45%, transparent); }

/* Kennzahlen (wie die Karten-Reiter in YouTube Studio) */
.cb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cb-kpis--tabs { gap: 0; margin: -22px -22px 18px; border-bottom: 1px solid var(--line); }
.cb-kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; }
.cb-block--kennzahlen .cb-kpi { padding: 4px 0; }
.cb-kpi--tab { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 16px; cursor: pointer; border-bottom: 3px solid transparent;
  border-right: 1px solid var(--line); min-width: 0; }
.cb-kpis--tabs > :last-child { border-right: 0; }
.cb-kpis--tabs > div.cb-kpi { padding: 18px 22px 16px; border-right: 1px solid var(--line); }
.cb-kpi--tab:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.cb-kpi--tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cb-kpi--an { border-bottom-color: var(--marke); background: color-mix(in srgb, var(--marke) 6%, transparent); }
.cb-kpi__label { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.cb-kpi__wert { font-size: 26px; font-weight: 640; letter-spacing: -.6px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.cb-kpi__unter { font-size: 12px; color: var(--muted); }
.cb-kpi__fehlt { font-size: 12px; color: var(--muted); line-height: 1.45; }
.cb-kpi .cb-delta { align-self: flex-start; }

/* Balkenlisten */
.cb-balkenliste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cb-balkenliste li { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.cb-balkenliste__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-balkenliste__wert { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.cb-balken { width: 100%; height: 10px; display: block; }
.cb-balken__spur { fill: color-mix(in srgb, var(--text) 7%, transparent); }
.cb-balken__wert { fill: var(--marke, var(--accent)); }
.cb-balken--mini { height: 4px; margin-top: 5px; }

/* Donut */
.cb-donut { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.cb-donut__svg { width: 150px; height: 150px; }
.cb-donut__seg { fill: none; stroke: var(--marke); stroke-width: 16; }
.cb-donut__zahl { fill: var(--text); font-size: 18px; font-weight: 650; }
.cb-donut__text { fill: var(--muted); font-size: 10.5px; }
.cb-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.cb-legende li { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; }
.cb-legende b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cb-legende--zeile { display: flex; gap: 18px; margin-top: 8px; }
.cb-legende__farbe { width: 10px; height: 10px; }
.cb-legende__farbe rect { fill: var(--marke); }
.cb-stufe-0 { stroke-opacity: 1; fill-opacity: 1; }
.cb-stufe-1 { stroke-opacity: .74; fill-opacity: .74; }
.cb-stufe-2 { stroke-opacity: .54; fill-opacity: .54; }
.cb-stufe-3 { stroke-opacity: .4; fill-opacity: .4; }
.cb-stufe-4 { stroke-opacity: .28; fill-opacity: .28; }
.cb-stufe-5 { stroke-opacity: .18; fill-opacity: .18; }

/* Gruppen, Heatmap, Rhythmus, Echtzeit */
.cb-gruppen, .cb-heatmap { width: 100%; height: auto; display: block; }
.cb-saeule { fill: var(--marke); }
.cb-saeule:hover, .cb-zelle:hover, .cb-rhythmus__tag:hover { filter: brightness(1.15); }
.cb-zelle { fill: var(--marke); }
.cb-zelle--leer { fill: var(--panel2); }
.cb-hm-0 { fill-opacity: .08; } .cb-hm-1 { fill-opacity: .2; } .cb-hm-2 { fill-opacity: .36; }
.cb-hm-3 { fill-opacity: .54; } .cb-hm-4 { fill-opacity: .76; } .cb-hm-5 { fill-opacity: 1; }
.cb-rhythmus { width: 100%; height: auto; display: block; }
.cb-rhythmus__tag { fill: var(--marke); }
.cb-rhythmus__tag--leer { fill: color-mix(in srgb, var(--text) 8%, transparent); }
.cb-echtzeit { display: grid; grid-template-columns: auto; gap: 2px; margin-bottom: 10px; }
.cb-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.cb-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
[data-hover] { position: relative; }

/* Tabellen */
.cb-tabelle { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cb-tabelle th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 560; padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cb-tabelle td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cb-tabelle tr:last-child td { border-bottom: 0; }
.cb-tabelle .cb-zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-tabelle td.cb-zahl { font-weight: 560; }
.cb-tabelle__nr { width: 24px; color: var(--muted); padding-left: 0 !important; }
.cb-beitrag { display: flex; gap: 12px; align-items: center; min-width: 240px; }
.cb-beitrag__titel { display: block; font-weight: 560; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cb-beitrag__titel a { color: inherit; text-decoration: none; }
.cb-beitrag__titel a:hover { text-decoration: underline; }
.cb-beitrag small { font-size: 12px; color: var(--muted); }

/* Geisterbild: Vorschau und fehlende Daten */
.cb-geist { position: relative; display: grid; place-items: center; min-height: 120px; padding: 6px 0; }
.cb-geist__bild { width: 100%; height: 120px; display: block; opacity: .9; }
.cb-geist__bild--balken { height: 96px; }
.cb-geist__bild--rund { width: 120px; height: 120px; }
.cb-geist__bild--zellen { height: 110px; }
.cb-geist__raster { stroke: var(--line); fill: none; }
.cb-geist__linie { fill: none; stroke: color-mix(in srgb, var(--muted) 35%, transparent); stroke-width: 2.4; stroke-dasharray: 2 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cb-geist__bild rect { fill: color-mix(in srgb, var(--text) 6%, transparent); }
.cb-geist__bild circle { fill: none; stroke: color-mix(in srgb, var(--text) 7%, transparent); stroke-width: 16; }
.cb-geist__zeilen { width: 100%; display: grid; gap: 10px; }
.cb-geist__zeilen i { height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.cb-geist__satz { position: absolute; inset: auto 8% auto 8%; text-align: center; margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5;
  background: color-mix(in srgb, var(--panel) 88%, transparent); padding: 8px 12px; border-radius: 10px; }

.cb-leer h3 { margin: 0 0 6px; }
.cb-leer p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .cb-bloecke { grid-template-columns: minmax(0, 1fr); }
  .cb-kpis--tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-kpis--tabs > * { border-bottom: 1px solid var(--line); }
  .cb-donut { grid-template-columns: 1fr; justify-items: center; }
  .cb-hero__aussage p { font-size: 18px; }
}

/* Alle Beitraege mit Bewertung (25.10.2026, content_beitraege.py). Stufe immer als Wort und
   Ring, nie nur Farbe. Farben je Thema, Text bleibt in Textfarbe. */
.cb { --st-ausreisser: #e8b84a; --st-stark: #3fa37f; --st-normal: #8a9a96; --st-schwach: #d0705f; }
:root[data-theme=light] .cb { --st-ausreisser: #a87a12; --st-stark: #237a5c; --st-normal: #6b7a76; --st-schwach: #b04a3a; }
.cb-bl__leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.cb-bl__stufen { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-bl__sort { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cb-bl__sort select { min-height: 32px; border-radius: 999px; padding: 4px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; }
.cb-bl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.cb-bl__karte { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-areas: "bild text note" "werte werte werte";
  gap: 10px 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  animation: cb-bl-rein .45s cubic-bezier(.2, .8, .2, 1) both; transition: transform .2s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .2s; }
.cb-bl__karte--rein { animation-name: cb-bl-rein; }
.cb-bl__karte[data-i="1"] { animation-delay: 40ms; } .cb-bl__karte[data-i="2"] { animation-delay: 80ms; } .cb-bl__karte[data-i="3"] { animation-delay: 120ms; }
.cb-bl__karte[data-i="4"] { animation-delay: 160ms; } .cb-bl__karte[data-i="5"] { animation-delay: 200ms; } .cb-bl__karte[data-i="6"] { animation-delay: 240ms; }
.cb-bl__karte[data-i="7"] { animation-delay: 280ms; } .cb-bl__karte[data-i="8"] { animation-delay: 320ms; } .cb-bl__karte[data-i="9"] { animation-delay: 360ms; }
.cb-bl__karte[data-i="10"] { animation-delay: 400ms; } .cb-bl__karte[data-i="11"] { animation-delay: 440ms; }
@keyframes cb-bl-rein { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.cb-bl__karte:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--st, var(--accent)) 55%, var(--line)); box-shadow: 0 12px 30px #0000001f; }
.cb-bl__karte--ausreisser { --st: var(--st-ausreisser); border-color: color-mix(in srgb, var(--st-ausreisser) 45%, var(--line)); }
.cb-bl__karte--stark { --st: var(--st-stark); }
.cb-bl__karte--normal { --st: var(--st-normal); }
.cb-bl__karte--schwach { --st: var(--st-schwach); }
.cb-bl__bild { grid-area: bild; width: 96px; }
.cb-bl__text { grid-area: text; min-width: 0; display: grid; gap: 3px; }
.cb-bl__text .cb-beitrag__titel { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; font-size: 13.5px; }
.cb-bl__text small { color: var(--muted); font-size: 12px; }
.cb-bl__note { grid-area: note; position: relative; width: 52px; height: 52px; display: grid; place-items: center; text-align: center; }
.cb-bl__note .cb-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cb-ring__spur { fill: none; stroke: color-mix(in srgb, var(--text) 10%, transparent); stroke-width: 3.5; }
.cb-ring__wert { fill: none; stroke: var(--st, var(--accent)); stroke-width: 3.5; stroke-linecap: round; animation: cb-ring 1s .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cb-ring { from { stroke-dasharray: 0 107; } }
.cb-bl__note span { position: relative; display: grid; line-height: 1.05; }
.cb-bl__note b { font-size: 13px; font-variant-numeric: tabular-nums; }
.cb-bl__note small { font-size: 9.5px; color: var(--muted); letter-spacing: .2px; }
.cb-bl__karte--ausreisser .cb-bl__note small { color: var(--text); font-weight: 650; }
.cb-bl__werte { grid-area: werte; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.cb-bl__werte div { padding: 5px 9px; border-radius: 8px; background: color-mix(in srgb, var(--text) 5%, transparent); }
.cb-bl__werte .cb-bl__leit { background: color-mix(in srgb, var(--st, var(--accent)) 16%, transparent); }
.cb-bl__werte dt { font-size: 10.5px; color: var(--muted); }
.cb-bl__werte dd { margin: 1px 0 0; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cb-bl__chip--ausreisser { border-color: color-mix(in srgb, var(--st-ausreisser) 60%, var(--line)); }
.cb-bl__chip--stark { border-color: color-mix(in srgb, var(--st-stark) 60%, var(--line)); }
.cb-bl__chip--schwach { border-color: color-mix(in srgb, var(--st-schwach) 60%, var(--line)); }

/* Planen mit dem Assistenten: lebendiger Punkt, der beim Denken pulsiert und beim Sprechen schwingt. */
.cb-naechst { display: grid; gap: 14px; overflow: hidden;
  background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel) 60%); }
.cb-naechst__kopf { display: flex; align-items: center; gap: 14px; }
.cb-naechst__kopf h3 { margin: 0 0 2px; font-size: 17px; }
.cb-naechst__kopf small { color: var(--muted); }
.cb-naechst__punkt { width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 30%, #d9fff1 0%, #8fe3cb 22%, #3f9e86 55%, #15463f 100%);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); animation: cb-atmen 4s ease-in-out infinite; }
@keyframes cb-atmen { 50% { transform: scale(1.06); box-shadow: 0 0 0 8px transparent; } }
.cb-naechst--denkt .cb-naechst__punkt { animation: cb-denkt .9s ease-in-out infinite; }
@keyframes cb-denkt { 50% { transform: scale(.88); filter: brightness(1.25); } }
.cb-naechst--spricht .cb-naechst__punkt { animation: cb-spricht .45s ease-in-out infinite alternate; }
@keyframes cb-spricht { to { transform: scale(1.12); box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 55%, transparent); } }
.cb-naechst__fragen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cb-naechst__frage { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s; }
.cb-naechst__frage:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 20%, var(--panel)); }
.cb-naechst__frage .cb-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cb-naechst__plan { border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cb-naechst__antwort { animation: cb-bl-rein .4s both; }
.cb-naechst__satz { margin: 0; font-size: 16px; line-height: 1.55; max-width: 70ch; }
.cb-naechst__mehr { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

/* Entdecken: was in der Nische laeuft, und was du drehen solltest. */
.cb-entdecken__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cb-entdecken__liste li { animation: cb-bl-rein .4s both; }
.cb-entdecken__liste li[data-i="1"] { animation-delay: 50ms; } .cb-entdecken__liste li[data-i="2"] { animation-delay: 100ms; }
.cb-entdecken__liste li[data-i="3"] { animation-delay: 150ms; } .cb-entdecken__liste li[data-i="4"] { animation-delay: 200ms; }
.cb-entdecken__liste a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px;
  color: inherit; text-decoration: none; transition: background .2s; }
.cb-entdecken__liste a:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.cb-entdecken__nr { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cb-entdecken__text { min-width: 0; display: grid; gap: 2px; }
.cb-entdecken__text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13.5px; }
.cb-entdecken__text small, .cb-entdecken__wert small { color: var(--muted); font-size: 11.5px; }
.cb-entdecken__wert { display: grid; text-align: right; font-variant-numeric: tabular-nums; }
.cb-entdecken__ideen { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cb-entdecken__ideen h4 { margin: 0 0 8px; font-size: 14px; }
.cb-entdecken__ideen ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cb-entdecken__ideen li { display: grid; gap: 1px; padding: 8px 12px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 0 8px 8px 0; }
.cb-entdecken__ideen small { color: var(--muted); }
@media (max-width: 520px) { .cb-bl__karte { grid-template-columns: 72px minmax(0, 1fr) auto; } .cb-bl__bild { width: 72px; } }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion=on]) :is(.cb-bl__karte, .cb-ring__wert, .cb-naechst__punkt, .cb-naechst__antwort, .cb-entdecken__liste li) { animation: none !important; } }
