/* Gestaltung nach pwa5, dieselben Tokens wie trading_bot/dashboard.css: Slate, Akzent Blau, Karten mit
   16 px Rundung, Pillen für Status. Hier gehört das Markup uns, deshalb keine Tricks gegen fremde
   Kennungen; Hell und Dunkel folgen der Systemeinstellung, ein Schalter kommt mit der Seitenleiste.
   Ein Umbruchpunkt für das Handy: bis 700 px (max-width: 700px), darüber Desktop (min-width: 701px). Bis zum
   25. Oktober 2026 brachen ältere Teile schon bei 640 px um, zwischen 641 und 700 px stand eine Mischung. */
:root {
  --tb-bg: #f3f4f6;
  --tb-surface: rgba(255, 255, 255, .88);
  --tb-surface-soft: rgba(241, 245, 249, .92);
  --tb-border: rgba(100, 116, 139, .24);
  --tb-text: #0f172a;
  --tb-muted: #64748b;
  --tb-accent: #0284c7;
  --tb-warn: #b45309;
  --tb-danger: #dc2626;
  --tb-success: #16a34a;
  /* Schrift auf vollen Akzent- und Gefahrflächen. Im Dunkeln sind Akzent und Gefahr hell, weiße Schrift darauf kam auf
     2,1 und 2,8 zu 1 (Code-Analyse 25. Oktober 2026); dunkle Schrift erreicht 8,3 und 6,5. */
  --tb-on-accent: #fff;
  --tb-on-danger: #fff;
  --tb-radius-card: 16px;
  --tb-radius-sm: 10px;
  --tb-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 18px rgba(15, 23, 42, .05);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tb-bg: #0f172a;
    --tb-surface: rgba(30, 41, 59, .82);
    --tb-surface-soft: rgba(51, 65, 85, .6);
    --tb-border: rgba(148, 163, 184, .28);
    --tb-text: #e5e7eb;
    --tb-muted: #94a3b8;
    --tb-accent: #38bdf8;
    --tb-warn: #fbbf24;
    --tb-danger: #f87171;
    --tb-success: #22c55e;
    --tb-on-accent: #0f172a;
    --tb-on-danger: #0f172a;
    --tb-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--tb-bg); color: var(--tb-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.45; }
a { color: var(--tb-accent); }
h1 { font-size: 1.5rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 0 0 10px; }
/* Am Desktop fast die ganze Breite mit schmalem Rand (Oktober 2026): Bei 1100 px blieben auf einem 1920-px-Bildschirm links
   und rechts je gut 400 px leer. Die Obergrenze hält Zeilen auf sehr breiten Bildschirmen noch lesbar. */
.tb-seite { max-width: 1760px; margin: 0 auto; padding: 16px; }
@media (min-width: 701px) { .tb-seite { padding: 16px 32px; } }
.tb-schmal { max-width: 420px; margin: 8vh auto 0; display: grid; gap: 14px; }
/* Fußzeile mittig auf jeder Seite; Leseseiten (Glossar, Rechtstexte) schmaler als das Dashboard. */
.tb-fuss { display: flex; justify-content: center; gap: 20px; padding: 20px 16px 32px; font-size: 13px; }
.tb-fuss a { color: var(--tb-muted); text-decoration: none; }
.tb-fuss a:hover { color: var(--tb-accent); text-decoration: underline; }
.tb-lesen { max-width: 760px; margin: 0 auto; }
.tb-lesen h1 { margin: 10px 0 6px; }
.tb-lesen h2 { margin: 14px 0 6px; }
.tb-lesen p, .tb-lesen li { line-height: 1.55; }
.tb-sub { color: var(--tb-muted); font-size: 13px; margin: 0; }
/* Fließtext in Karten der Verwaltung (Strategien, Einladungen, Lebenszeichen): wie .tb-sub groß, aber in Textfarbe. */
.tb-text-klein { font-size: 13px; line-height: 1.5; }
.tb-karte { background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: var(--tb-radius-card);
  box-shadow: var(--tb-shadow); padding: 16px; margin-bottom: 14px; }
.tb-kopf__wahl { position: relative; min-width: 0; }
.tb-kopf__liste { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; max-width: calc(100vw - 32px); padding: 6px;
  /* Seitenhintergrund statt Kartenfarbe: die ist im Dunkelmodus halbdurchsichtig, und die Kacheln schienen durch. */
  background: var(--tb-bg); border: 1px solid var(--tb-border); border-radius: var(--tb-radius-card); box-shadow: var(--tb-shadow);
  display: grid; gap: 2px; font-size: 15px; font-weight: 400; }
.tb-kopf__eintrag { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--tb-radius-sm); color: var(--tb-text); text-decoration: none; }
.tb-kopf__eintrag:hover, .tb-kopf__eintrag--aktiv { background: var(--tb-surface-soft); }
.tb-kopf__haken { color: var(--tb-accent); }
.tb-kopf__verwalten { display: block; padding: 8px 12px 4px; margin-top: 4px; border-top: 1px solid var(--tb-border); font-size: 13px; color: var(--tb-muted); }
.tb-verbindungen__zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tb-svg-vorrat { position: absolute; width: 0; height: 0; overflow: hidden; }
.tb-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--tb-border); background: var(--tb-surface-soft); color: var(--tb-muted); white-space: nowrap; }
.tb-pill--info { color: var(--tb-accent); border-color: color-mix(in srgb, var(--tb-accent) 45%, transparent); background: color-mix(in srgb, var(--tb-accent) 10%, transparent); }
.tb-pill--ok { color: var(--tb-success); border-color: color-mix(in srgb, var(--tb-success) 45%, transparent); background: color-mix(in srgb, var(--tb-success) 10%, transparent); }
.tb-pill--warn { color: var(--tb-warn); border-color: color-mix(in srgb, var(--tb-warn) 45%, transparent); background: color-mix(in srgb, var(--tb-warn) 10%, transparent); }
.tb-pill--danger { color: var(--tb-danger); border-color: color-mix(in srgb, var(--tb-danger) 45%, transparent); background: color-mix(in srgb, var(--tb-danger) 10%, transparent); }
.tb-knopf { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: var(--tb-radius-sm); border: 1px solid var(--tb-border);
  background: var(--tb-surface); color: var(--tb-text); cursor: pointer; min-height: 40px; }
.tb-knopf--primaer { background: var(--tb-accent); border-color: var(--tb-accent); color: var(--tb-on-accent); font-weight: 600; }
.tb-formular { display: grid; gap: 12px; }
.tb-formular label { display: grid; gap: 4px; font-size: 13px; color: var(--tb-muted); }
.tb-formular input { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: var(--tb-radius-sm); border: 1px solid var(--tb-border);
  background: var(--tb-surface-soft); color: var(--tb-text); width: 100%; }
.tb-meldung { margin: 0; padding: 10px 12px; border-radius: var(--tb-radius-sm); font-size: 14px; }
.tb-meldung--fehler { background: color-mix(in srgb, var(--tb-danger) 12%, transparent); color: var(--tb-danger); }
.tb-liste { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.tb-liste li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) {
  .tb-seite { padding: 12px; }
  .tb-knopf { width: auto; }
}

/* ---- Schritt 2: Kopf, Kennzahlen, Statuskacheln, Karten, Positionen ---- */
.tb-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.tb-wechsel { margin-bottom: 12px; }
.tb-wechsel label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tb-muted); }
.tb-wechsel select { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: var(--tb-radius-sm); border: 1px solid var(--tb-border); background: var(--tb-surface); color: var(--tb-text); }
/* Das Datumsfeld sieht aus wie die übrigen Eingabefelder; ohne eigene Regel nahm der Browser seine kleine Standardform. */
.tb-wechsel input[type=date] { font: inherit; font-size: 15px; padding: 8px 10px; min-height: 40px; border-radius: var(--tb-radius-sm); border: 1px solid var(--tb-border); background: var(--tb-surface-soft); color: var(--tb-text); color-scheme: light dark; }
.tb-knopf--gefahr { background: var(--tb-danger); border-color: var(--tb-danger); color: var(--tb-on-danger); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
a.tb-knopf { text-decoration: none; display: inline-flex; align-items: center; }
.tb-banner { border-radius: var(--tb-radius-card); padding: 12px 16px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb-banner p { margin: 0; }
.tb-banner--warn { background: color-mix(in srgb, var(--tb-warn) 14%, transparent); border: 1px solid var(--tb-warn); }
.tb-metrik { background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: var(--tb-radius-card); box-shadow: var(--tb-shadow); padding: 10px 14px; min-width: 0; }
.tb-metrik__name { color: var(--tb-muted); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-metrik__wert { font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tb-delta { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-top: 2px; }
.tb-delta--auf { color: var(--tb-success); background: color-mix(in srgb, var(--tb-success) 14%, transparent); }
.tb-delta--ab { color: var(--tb-danger); background: color-mix(in srgb, var(--tb-danger) 14%, transparent); }
.tb-kachel__still { margin: 0 0 4px; color: var(--tb-danger); font-weight: 600; font-size: 14px; }
/* Bilanz: vier beschriftete Werte in einer Zeile, auf dem Handy zwei je Zeile. */
.tb-bilanz__kopf { margin: 0 0 6px; font-size: 14px; }
.tb-bilanz__werte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.tb-bilanz__zahl { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tb-bilanz__zahl--auf { color: var(--tb-success); }
.tb-bilanz__zahl--ab { color: var(--tb-danger); }
/* Eben aufgenommen oder verschoben: einmal hellblau hinterlegt, über zehn Sekunden ausgeblendet. */
/* Erfolgsmeldungen blenden nach zehn Sekunden aus und geben ihren Platz frei; Fehler bleiben mit ✕. */
.tb-meldung--fluechtig { animation: tb-meldung-weg .6s ease-in 9.4s forwards; overflow: hidden; max-height: 12em; }
@keyframes tb-meldung-weg { to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; } }
.tb-meldung--schliessbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tb-meldung__zu { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0 2px; line-height: 1; }
.tb-neu { animation: tb-neu-blenden 10s ease-out forwards; border-radius: var(--tb-radius-sm); }
@keyframes tb-neu-blenden { from { background-color: color-mix(in srgb, var(--tb-accent) 28%, transparent); } to { background-color: transparent; } }
.tb-pruefbericht__titel { margin: 14px 0 6px; font-size: 15px; }
.tb-pruefbericht__liste ul { margin: 4px 0 0; padding-left: 18px; }
/* Auswertung im Protokoll (Oktober 2026): Kurve und Balken in Akzent-, Gewinn- und Verlustfarbe; eine Serie je Grafik,
   deshalb keine Legende, der Titel nennt sie. Die Balken sind HTML statt SVG, damit sie bei jeder Breite rund bleiben. */
.tb-auswertung + .tb-auswertung { margin-top: 18px; }
.tb-auswertung .tb-zahl { text-align: right; }
.tb-auswertung__vergleich td { white-space: nowrap; }
.tb-auswertung__strategie { margin-top: 12px; }
.tb-auswertung__titel { margin: 14px 0 4px; font-size: 13px; color: var(--tb-muted); }
.tb-auswertung__kurve { display: block; width: 100%; height: 70px; }
.tb-auswertung__null { stroke: var(--tb-muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.tb-auswertung__linie { fill: none; stroke: var(--tb-accent); stroke-width: 2; stroke-linejoin: round; }
.tb-auswertung__treffer-flaeche { fill: transparent; cursor: crosshair; }
.tb-auswertung__treffer-flaeche:hover { fill: color-mix(in srgb, var(--tb-muted) 14%, transparent); }
.tb-auswertung__trades { display: flex; align-items: stretch; gap: 2px; height: 56px; }
.tb-auswertung__trade { flex: 1 1 0; display: flex; flex-direction: column; min-width: 2px; max-width: 28px; cursor: crosshair; }
.tb-auswertung__oben, .tb-auswertung__unten { flex: 1 1 50%; display: flex; flex-direction: column; }
.tb-auswertung__oben { justify-content: flex-end; border-bottom: 1px solid var(--tb-border); }
.tb-auswertung__balken { display: block; }
.tb-auswertung__balken--auf { background: var(--tb-success); border-radius: 4px 4px 0 0; }
.tb-auswertung__balken--ab { background: var(--tb-danger); border-radius: 0 0 4px 4px; }
.tb-auswertung__trade:hover .tb-auswertung__balken { opacity: .75; }
.tb-grafik__wert { margin: 4px 0 0; font-variant-numeric: tabular-nums; min-height: 1.4em; }
.tb-auswertung__ausgang { display: grid; grid-template-columns: 10.5em 1fr 5.5em; align-items: center; gap: 8px; font-size: 13px; margin: 3px 0; }
.tb-auswertung__bahn { background: color-mix(in srgb, var(--tb-muted) 14%, transparent); border-radius: 4px; height: 10px; }
.tb-auswertung__anteil { display: block; height: 10px; border-radius: 4px; background: var(--tb-accent); }
.tb-auswertung__zahl { text-align: right; font-variant-numeric: tabular-nums; color: var(--tb-muted); }
.tb-auswertung__unterzeile { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--tb-border); }
.tb-auswertung__serie { margin: 8px 0 0; }
.tb-auswertung__werte { margin-top: 8px; }
/* Am Handy fällt die Trefferquote aus dem Vergleich: Sie steht in der Karte, und fünf Spalten brachen dort um. */
@media (max-width: 700px) { .tb-auswertung__treffer { display: none; } .tb-auswertung__ausgang { grid-template-columns: 9.5em 1fr 5em; }
  .tb-raster.tb-auswertung__vergleich th, .tb-raster.tb-auswertung__vergleich td { padding-left: 6px; padding-right: 6px; }
  .tb-raster.tb-auswertung__vergleich th { white-space: normal; } }
.tb-auswertung__ausgang > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .tb-bilanz__werte { grid-template-columns: 1fr 1fr; } }
.tb-block h2 { margin-bottom: 8px; }
.tb-karte-innen { background: var(--tb-surface-soft); border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); padding: 12px 14px; margin-top: 10px; }
.tb-zeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
/* Drei Buchstaben müssen in den Kreis passen: mit 10 px und Sperrung ragten „MAS“ oder „ASM“ über den Rand an die Pille. */
.tb-logo { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: -.02em; overflow: hidden; white-space: nowrap; vertical-align: middle; flex: 0 0 26px; }
/* Echtes Logo deckungsgleich über dem Kreis; fällt es aus, bleibt der Kreis darunter sichtbar. */
.tb-logo--mit-bild { position: relative; }
.tb-logo__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #fff; }
.tb-pill--typ-aktie { color: var(--tb-accent); border-color: color-mix(in srgb, var(--tb-accent) 45%, transparent); }
.tb-pill--typ-etf { color: #0f766e; border-color: rgba(15, 118, 110, .45); }
@media (prefers-color-scheme: dark) {
  .tb-pill--typ-etf { color: #2dd4bf; border-color: rgba(45, 212, 191, .45); }
}
.tb-meldung--warn { background: color-mix(in srgb, var(--tb-warn) 14%, transparent); color: var(--tb-warn); margin-bottom: 8px; }
.tb-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.tb-knoepfe form { display: grid; gap: 8px; margin: 0; }
.tb-knoepfe .tb-knopf { width: 100%; }
.tb-haken { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.tb-pos { display: grid; grid-template-columns: 3fr 2fr 2fr 3fr; gap: 12px; align-items: center; }
.tb-pos__markt { grid-column: 1 / -1; margin: -4px 0 0; }
/* Stand am Schluss: eigener Kasten über die ganze Breite, in der Kartenfläche statt der Innenfläche, also hell
   heller und dunkel dunkler als die Karte. Nicht gelb: Gelb heißt im Dashboard Warnung. Farbe nur für das Ergebnis. */
.tb-pos__stand { grid-column: 1 / -1; display: grid; gap: 2px; font-size: 15px; padding: 8px 12px;
  background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); }
/* Ergebnis und Abstand bleiben je ein Stück: Am Handy brach „(noch +3,4 %)“ vor dem Prozentzeichen um. */
.tb-pos__stand span { white-space: nowrap; }
.tb-pos__plus { color: var(--tb-success); font-weight: 600; }
.tb-pos__minus { color: var(--tb-danger); font-weight: 600; }
/* Ziel mit eingeklapptem Formular: am Desktop die vierte Spalte, am Handy eine eigene Zeile unter Stück und Stop. */
.tb-pos__ziel { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tb-pos__aendern summary { cursor: pointer; font-size: 13px; color: var(--tb-muted); list-style: none; }
.tb-pos__aendern summary::-webkit-details-marker { display: none; }
.tb-pos__aendern summary::before { content: "▸ "; }
.tb-pos__aendern[open] summary::before { content: "▾ "; }
/* Offen löst sich das details im Layout auf: „Ziel ändern“ bleibt neben dem Wert, nur das Formular bekommt die ganze
   Zeile. Mit voller Breite am details selbst rutschte die Überschrift mit nach unten (Oktober 2026). */
.tb-pos__aendern[open] { display: contents; }
.tb-pos__aendern .tb-ziel { flex: 1 1 100%; margin-top: 6px; }
/* „dieses Gerät“ in der Push-Liste: versteckt, bis app.js das Abo des Browsers wiedererkennt. Die Pille hat ein eigenes
   display, das sonst das hidden-Attribut überstimmt. */
.tb-push__dieses[hidden] { display: none; }
/* Begriff mit Erklärung beim Darüberfahren (title): gepunktet unterstrichen, Fragezeichen-Zeiger. */
.tb-hilfe { cursor: help; text-decoration: underline dotted; text-underline-offset: 2px; }
.tb-pos .tb-wert { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-ziel { display: flex; align-items: end; gap: 8px; margin: 0; }
.tb-ziel label { display: grid; gap: 4px; font-size: 12px; color: var(--tb-muted); flex: 1 1 auto; }
.tb-ziel input { font: inherit; font-size: 15px; padding: 7px 10px; border-radius: var(--tb-radius-sm); border: 1px solid var(--tb-border); background: var(--tb-surface); color: var(--tb-text); width: 100%; min-width: 0; }
@media (max-width: 700px) {
  .tb-metrik__wert { font-size: 1rem; }
  .tb-pos { grid-template-columns: 1fr 1fr; }
  .tb-pos .tb-wert, .tb-pos .tb-ziel, .tb-pos .tb-pos__ziel { grid-column: 1 / -1; }
  /* Am Handy steht der Stand vor dem Ziel, direkt unter Stück und Stop. */
  .tb-pos__stand { order: 1; } .tb-pos .tb-pos__ziel { order: 2; } .tb-pos__markt { order: 3; }
}

/* ---- Schritt 3: Beobachtung mit Kacheln, SVG-Grafiken ---- */
/* Zweite Reihe unter Aktiv/Passiv: die Strategie-Bubbles rücken näher an die erste und sind eine Stufe kleiner. */
/* Gitter-Icons für zwei oder drei Kacheln je Zeile: nur am Desktop, darunter gilt ohnehin eine oder zwei Spalten. */
.tb-hinweis { display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: 999px; font-size: 12px; color: var(--tb-accent);
  border: 1px solid color-mix(in srgb, var(--tb-accent) 45%, transparent); background: color-mix(in srgb, var(--tb-accent) 10%, transparent); }
/* ---- Werte im Test (24. Oktober 2026): Hinweis zur Handelszeit, Suchfeld mit Sortierung, kompakte Kacheln ---- */
.tb-markt { display: flex; align-items: center; gap: 6px; color: var(--tb-muted); font-size: 13px; margin: 0 0 10px; flex-wrap: wrap; }
.tb-markt__zahl { margin-left: auto; white-space: nowrap; }
.tb-werte-leiste { display: flex; gap: 8px; margin: 0 0 12px; }
.tb-werte-leiste label { display: block; margin: 0; }
.tb-werte-leiste__suche { flex: 1 1 auto; min-width: 0; }
.tb-werte-leiste__sortierung { flex: 0 1 auto; }
.tb-werte-leiste input, .tb-werte-leiste select { font: inherit; font-size: 14px; padding: 8px 12px; border-radius: var(--tb-radius-sm); border: 1px solid var(--tb-border);
  background: var(--tb-surface); color: var(--tb-text); width: 100%; min-width: 0; }
.tb-nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Ein Wert je Zeile am Handy, zwei nebeneinander am Desktop; die Kacheln sind gleich hoch, weil nichts aufklappt. */
/* Abstand nach unten wie zwischen zwei Karten: Ohne ihn klebte die Kachel „Suche“ an der letzten Wertkachel. */
.tb-kacheln { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 900px) { .tb-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Mit der breiteren Seite drei Kacheln je Zeile, sonst würde jede Kachel über 800 px breit. */
@media (min-width: 1400px) { .tb-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tb-wertkachel { display: flex; align-items: stretch; background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: var(--tb-radius-card);
  box-shadow: var(--tb-shadow); padding: 0; min-width: 0; }
.tb-wertkachel--aus { border-style: dashed; }
/* Die ganze Kachel ist der Link: Logo, dann ein Raster mit Name, Kurs und der Zeile darunter. */
.tb-wertkachel__link { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 10px; align-items: center;
  flex: 1 1 auto; min-width: 0; padding: 10px 12px; color: inherit; text-decoration: none; }
.tb-wertkachel__link:hover { background: var(--tb-surface-soft); border-radius: var(--tb-radius-card); }
.tb-wertkachel__link .tb-logo { grid-row: 1 / 3; width: 36px; height: 36px; flex-basis: 36px; font-size: 12px; }
.tb-wertkachel__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.tb-wertkachel__name .tb-sub { font-size: 14px; }
.tb-wertkachel__kurs { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.tb-wertkachel__kurs .tb-plus, .tb-wert__kurs .tb-plus { color: var(--tb-success); font-size: 14px; }
.tb-wertkachel__kurs .tb-minus, .tb-wert__kurs .tb-minus { color: var(--tb-danger); font-size: 14px; }
.tb-wertkachel__unten { grid-column: 2 / 4; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.tb-wertkachel__unten .tb-sub { font-size: 14px; }
.tb-wertkachel__zustand { color: var(--tb-muted); font-size: 14px; margin: 0; }
.tb-wertkachel__zustand--pos { color: var(--tb-accent); font-weight: 600; }
.tb-wertkachel__zustand--aus { color: var(--tb-warn); font-weight: 600; }
.tb-wertkachel__zustand--warn { color: var(--tb-warn); }
/* Griff zum Anordnen: dezent, am Handy fängt er das Wischen ab (touch-action), damit Ziehen nicht zugleich scrollt.
   Ohne Skript bleibt er ein stummes Zeichen; er steht außerhalb des Links, damit Ziehen nicht öffnet. */
.tb-griff { display: inline-flex; align-items: center; color: color-mix(in srgb, var(--tb-muted) 60%, transparent);
  padding: 0 4px 0 8px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; flex: none; }
.tb-griff svg { fill: currentColor; display: block; }
.tb-griff:hover { color: var(--tb-accent); }
.tb-zieht { box-shadow: 0 18px 40px rgba(15, 23, 42, .28); transform: rotate(1.5deg) scale(1.02); cursor: grabbing; z-index: 2; }
.tb-zieht .tb-griff { color: var(--tb-accent); }
.tb-platz { opacity: .35; background: var(--tb-surface-soft); }
.tb-platz > * { visibility: hidden; }
/* Detailansicht eines Werts (wert.html) */
.tb-zurueck { margin: 0 0 10px; font-size: 15px; }
.tb-wert__kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tb-wert__kopf .tb-logo { width: 44px; height: 44px; flex-basis: 44px; font-size: 14px; }
.tb-wert__kopf h2 { margin: 0; font-size: 22px; }
.tb-wert__kopf h2 .tb-sub { display: block; font-size: 14px; font-weight: 400; }
.tb-wert__kurs { font-size: 17px; margin: 0 0 2px; }
.tb-wert__kurs strong { font-size: 24px; }
.tb-wert__titel { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--tb-muted); margin: 0 0 8px; font-weight: 600; }
.tb-signale { list-style: none; margin: 0; padding: 0; }
.tb-signale__zeile { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--tb-border); font-size: 15px; }
.tb-signale__zeile:first-child { border-top: 0; }
.tb-signale__zeile .tb-sub { white-space: nowrap; font-size: 14px; }
.tb-wert__knoepfe { display: grid; gap: 8px; margin-top: 12px; }
.tb-wert__knoepfe .tb-knopf { width: 100%; text-align: center; text-decoration: none; display: block; }
.tb-wert__knoepfe form { margin: 0; }
.tb-wert .tb-optionen summary { color: var(--tb-text); font-size: 14px; }
.tb-markt__punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--tb-muted); flex: none; }
.tb-markt--offen .tb-markt__punkt { background: var(--tb-success); }
.tb-kerzen { width: 100%; height: auto; display: block; margin: 6px 0; }
.tb-kerze line { stroke-width: 1px; }
.tb-kerze--auf line, .tb-kerze--auf rect { stroke: var(--tb-success); fill: var(--tb-success); }
.tb-kerze--ab line, .tb-kerze--ab rect { stroke: var(--tb-danger); fill: var(--tb-danger); }
.tb-ema { stroke-width: 1.3px; }
/* Aus den Farb-Tokens, damit die Linien im Dunkeln mit aufhellen; vorher feste Hellfarben. */
.tb-ema--schnell { stroke: var(--tb-accent); }
.tb-ema--langsam { stroke: var(--tb-warn); }
.tb-optionen { border-top: 1px solid var(--tb-border); margin-top: 8px; padding-top: 6px; }
.tb-optionen summary { cursor: pointer; font-size: 13px; color: var(--tb-muted); padding: 4px 0; }
.tb-optionen > *:not(summary) { margin-top: 8px; }
.tb-knopf--klein { font-size: 13px; padding: 6px 10px; min-height: 34px; }
/* Suchkachel: Meldung, Fehler oder Treffer unter dem Feld mit Luft, sonst klebt die grüne Meldung am Feld. */
#suche .tb-feld + * { margin-top: 10px; }
.tb-feld label, .tb-felder label { display: grid; gap: 3px; font-size: 12px; color: var(--tb-muted); flex: 1 1 auto; min-width: 0; }
.tb-feld input, .tb-feld select, .tb-felder input { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: var(--tb-radius-sm); border: 1px solid var(--tb-border); background: var(--tb-surface-soft); color: var(--tb-text); width: 100%; min-width: 0; }
.tb-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; margin: 0; }
.tb-felder .tb-knopf { grid-column: 1 / -1; }
.tb-fenster .tb-haken, .tb-formular .tb-haken { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tb-text); }
/* Ohne padding und margin steht der Haken bündig mit dem Text; sonst erbte er das Polster der Textfelder. */
.tb-fenster .tb-haken input, .tb-formular .tb-haken input { width: auto; padding: 0; margin: 0; }
.tb-alarm__formular { max-width: 520px; margin-top: 12px; }
.tb-alarm__arten { grid-column: 1 / -1; border: 1px solid var(--tb-border); border-radius: 8px; padding: 8px 12px 10px; margin: 0; display: grid; gap: 8px; }
.tb-alarm__arten legend { font-size: 13px; color: var(--tb-muted); padding: 0 4px; }
.tb-alarm__arten .tb-haken { align-items: flex-start; }
.tb-alarm__arten .tb-haken input { margin-top: 2px; }
.tb-alarm__arten .tb-haken small { display: block; color: var(--tb-muted); font-size: 12px; }
/* Häkchen in einer Formularzeile: Kästchen vor dem Text in einer Zeile, nicht als Feld über die ganze Breite darunter. */
.tb-feld .tb-haken, .tb-felder .tb-haken { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tb-text); }
.tb-feld .tb-haken input, .tb-felder .tb-haken input { width: auto; flex: none; margin: 0; }
.tb-fenster-wahl { display: grid; gap: 10px; }
.tb-fenster:not(:has(input[name=an]:checked)) .tb-fenster__zeit,
.tb-fenster-wahl:not(:has(input[name=fenster_an]:checked)) .tb-fenster__zeit,
.tb-fenster:not(.tb-fenster--eigen):not(:has(input[name=an]:checked)) .tb-fenster__knopf { display: none; }

/* ---- Schritt 4: Heute, Protokoll, Einstellungen ---- */
.tb-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.tb-tabelle th, .tb-tabelle td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--tb-border); vertical-align: top; }
.tb-tabelle th { color: var(--tb-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.tb-tabelle td { font-variant-numeric: tabular-nums; }
.tb-tabelle--rollen { display: block; overflow-x: auto; }
.tb-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.tb-zahlen .tb-metrik__zusatz { font-size: 12px; color: var(--tb-muted); }
/* Karten des Tages: je Trade eine zugeklappte Zeile, auf dem Handy umbrechend als kleine Karte. */
/* Eigene Kachel, eine Schriftgröße kleiner als der Rest; Logo, Typ und Name wie bei Karten und Positionen. */
/* minmax(0, 1fr) und min-width: 0: Sonst wird eine Rasterzeile so breit wie ihre Tabelle, und auf dem Handy lief
   die Karte über den Rand hinaus, statt dass die Tabelle in sich scrollt (Oktober 2026). */
.tb-trades { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 8px; font-size: 14px; }
.tb-trades .tb-wert { display: inline-flex; align-items: center; gap: 6px; }
.tb-trades .tb-tabelle { font-size: 13px; }
.tb-trade { min-width: 0; border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); padding: 8px 12px; background: var(--tb-surface-soft); }
/* Mitte statt Schriftlinie: Ein eingebettetes Logo hatte keine Schriftlinie und zog Pfeil und Text nach unten. */
.tb-trade > summary, .tb-trade--einzeln { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.tb-trade > summary { cursor: pointer; list-style: none; }
.tb-trade > summary::-webkit-details-marker { display: none; }
/* Pfeil schmal und mit halbem Abstand zum Logo: Mit vollem Zeilenabstand stand er abgesetzt da (Oktober 2026). */
.tb-trade > summary::before, .tb-trade--einzeln::before { content: "▸"; width: .8em; margin-right: -6px; color: var(--tb-muted); transition: transform .15s; }
.tb-trade--einzeln::before { content: ""; }
.tb-trade[open] > summary::before { transform: rotate(90deg); }
.tb-trade[open] > summary { margin-bottom: 8px; }
/* Die Karten eines Trades beginnen unter dem Logo, nicht am Rand: Pfeil (.8em) plus Abstand (6px). */
.tb-trade > .tb-tabelle { margin-left: calc(.8em + 6px); width: calc(100% - .8em - 6px); }
.tb-trade__zusatz { font-size: 12px; color: var(--tb-muted); }
.tb-trade__hinweis { font-size: 12px; color: var(--tb-warn); }
@media (max-width: 700px) { .tb-trade > summary .tb-wert, .tb-trade--einzeln .tb-wert { flex-basis: calc(100% - 2em); } }
/* Tag und Fazit eine Stufe kleiner als der Fließtext: eine Kopfzeile über den Zahlen, kein Absatz. */
.tb-fazit { background: var(--tb-surface-soft); border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); padding: 10px 14px; font-size: 14px; }
/* minmax(0, 1fr) statt 1fr: Sonst wächst die Spalte mit dem breitesten Inhalt (etwa eine breite Tabelle) über den Bildschirm
   hinaus, statt dass die Tabelle in ihrem Rollbereich scrollt (Handy, Oktober 2026). */
.tb-abschnitte { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
/* Kacheln einer Zeile: am Desktop nebeneinander, gleich breit und gleich hoch; auf dem Handy untereinander.
   --oben: ohne gleiche Höhe, für aufklappbare Kacheln (Benachrichtigung). */
/* Regler „Kerzen“ und Lupe über dem Chart der Kachel. */
.tb-reihe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tb-reihe > .tb-innen { margin: 0; }
@media (min-width: 900px) {
  .tb-reihe { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .tb-reihe--oben { align-items: start; }
}
.tb-abschnitt h2 { margin-bottom: 8px; }
/* Einstellungen: drei aufklappbare Gruppen, darin die bisherigen Kacheln flacher, damit nicht Schatten auf Schatten liegt. */
.tb-gruppe > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.tb-gruppe > summary::-webkit-details-marker { display: none; }
.tb-gruppe > summary::before { content: "▸"; color: var(--tb-muted); transition: transform .15s; }
.tb-gruppe[open] > summary::before { transform: rotate(90deg); }
.tb-gruppe > summary h2 { margin: 0; }
.tb-gruppe[open] > summary { margin-bottom: 12px; }
.tb-gruppe .tb-karte { box-shadow: none; margin-bottom: 0; background: var(--tb-surface-soft); }
.tb-gruppe .tb-karte + .tb-karte { margin-top: 12px; }  /* sonst klebt „Verlauf“ an den Zahlen des Tages (24. Oktober 2026) */
/* Kachel in der Kachel, im selben Grau wie in den Einstellungen (Watchlist, Protokoll). */
.tb-karte .tb-innen { box-shadow: none; margin: 12px 0 0; background: var(--tb-surface-soft); }
.tb-innen > p:first-child { margin-top: 0; }
.tb-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tb-filter__chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--tb-border); border-radius: 999px; padding: 3px 10px; font-size: 13px;
  color: var(--tb-text); background: var(--tb-surface-soft); text-decoration: none; }
.tb-filter__chip small { color: var(--tb-muted); font-size: 11px; }
.tb-filter__chip--aktiv { border-color: var(--tb-accent); background: color-mix(in srgb, var(--tb-accent) 14%, transparent); color: var(--tb-accent); font-weight: 600; }
/* Längere Erklärung im Stil der blauen Hinweis-Bubble, als Block statt als Pille. */
.tb-hinweis--block { display: block; border-radius: var(--tb-radius-sm); padding: 10px 14px; font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
.tb-strategie__werte { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.tb-strategie__werte li { margin: 2px 0; }
.tb-karte > .tb-innen:first-child { margin-top: 0; }
.tb-abschnitt .tb-formular { gap: 10px; }
.tb-formular select, .tb-formular textarea { font: inherit; font-size: 15px; padding: 8px 10px; border-radius: var(--tb-radius-sm); border: 1px solid var(--tb-border); background: var(--tb-surface-soft); color: var(--tb-text); width: 100%; }
.tb-formular textarea { min-height: 120px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.tb-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: var(--tb-surface-soft); border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); padding: 8px 10px; overflow-x: auto; }
.tb-liste--eng li { padding: 4px 0; border-bottom: 1px solid var(--tb-border); justify-content: space-between; }
.tb-liste--eng form { margin: 0; }
.tb-knopf--x { padding: 2px 9px; min-height: 28px; color: var(--tb-danger); border-color: color-mix(in srgb, var(--tb-danger) 45%, transparent); }
.tb-meldung--ok { background: color-mix(in srgb, var(--tb-success) 14%, transparent); color: var(--tb-success); }
.tb-knopf:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 700px) { .tb-zahlen { grid-template-columns: 1fr 1fr; } .tb-zwei { grid-template-columns: 1fr; } }

/* ---- Bereiche unter den Positionen: eine Zeile gleich breiter Segmente wie im alten Dashboard ---- */
/* Der Innenrahmen des aktiven Segments ist eckig; ganz links und rechts schnitt die runde Leiste ihn ab. */

/* ---- Protokoll: Radioknöpfe und Raster mit Linien wie im alten Dashboard ---- */
.tb-rollbereich { max-height: 480px; overflow: auto; border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); }
.tb-raster { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tb-raster th, .tb-raster td { text-align: left; padding: 7px 10px; border-right: 1px solid var(--tb-border); border-bottom: 1px solid var(--tb-border); white-space: nowrap; }
.tb-raster th:last-child, .tb-raster td:last-child { border-right: 0; }
.tb-raster tr:last-child td { border-bottom: 0; }
.tb-raster thead th { position: sticky; top: 0; background: var(--tb-surface-soft); color: var(--tb-muted); font-weight: 500; z-index: 1; }
/* Protokoll: Kopfzeile in Akzentfarbe, deckend wegen sticky. Aus den Farb-Tokens gemischt, damit Tag- und
   Nachtansicht passen (hell: kräftiges Blau auf hellblau, dunkel: helles Blau auf dunkelblau). */
.tb-protokoll__inhalt .tb-raster thead th { background: color-mix(in srgb, var(--tb-accent) 16%, var(--tb-bg)); color: var(--tb-accent); font-weight: 600; }
/* Eine Meldung direkt über einer Tabelle (Prüfbericht) klebte an deren Rand. */
.tb-meldung + .tb-rollbereich { margin-top: 10px; }
.tb-raster tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--tb-surface-soft) 55%, transparent); }

/* ---- Verwaltung wie im alten Dashboard: Raster, zugeklappte Boxen je Nutzer, Einladung als Zeile ---- */
.tb-verwaltung h2 { margin: 6px 0 10px; font-size: 1.1rem; }
.tb-rollbereich--frei { max-height: none; margin-bottom: 14px; background: var(--tb-surface); }
.tb-box { background: var(--tb-surface); border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); margin-bottom: 12px; }
.tb-box > summary { cursor: pointer; padding: 12px 16px; list-style: none; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tb-box > summary::-webkit-details-marker { display: none; }
.tb-box > summary::before { content: "›"; display: inline-block; color: var(--tb-muted); transition: transform .15s; width: 10px; }
.tb-box[open] > summary::before { transform: rotate(90deg); }
.tb-box[open] > summary { border-bottom: 1px solid var(--tb-border); }
.tb-box__inhalt { padding: 14px 16px 16px; display: grid; gap: 14px; }
.tb-box--offen { padding: 12px 16px; }
.tb-box .tb-feld label { font-size: 13px; color: var(--tb-text); }
.tb-box .tb-feld input, .tb-box .tb-feld select { font-size: 14px; padding: 8px 10px; }
.tb-einladung { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; margin: 0 0 12px; }
.tb-einladung label { display: grid; gap: 4px; font-size: 13px; }
.tb-einladung input, .tb-einladung select { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: var(--tb-radius-sm); border: 1px solid var(--tb-border); background: var(--tb-surface-soft); color: var(--tb-text); width: 100%; }
@media (max-width: 700px) { .tb-einladung { grid-template-columns: 1fr; } }

/* Suchtreffer: Name und Knopf oben bündig, auch wenn der Name umbricht. */
.tb-treffer { align-items: flex-start; }

/* Historische Daten (Testwerkstatt, Baustein A): Tabelle der Stände, Formular in einer Zeile. */
.tb-historie-laden label { display: inline-flex; flex-direction: column; gap: 2px; font-size: 13px; }
.tb-historie-laden input[type="number"] { width: 5em; }

/* Werkstatt (Testwerkstatt, B/C): Formular in Zeilen, Einstellungen als Liste, Tabellen eng, Kurven volle Breite. */
.tb-werkstatt label { display: inline-flex; flex-direction: column; gap: 2px; font-size: 13px; }
.tb-werkstatt select[multiple] { min-width: 14em; }
.tb-werkstatt input[type="number"] { width: 7em; }
.tb-werkstatt__einstellungen { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 8px 0; font-size: 13px; }
.tb-werkstatt__einstellungen dt { color: var(--tb-muted); }
.tb-werkstatt__einstellungen dd { margin: 0; }
.tb-werkstatt__vergleich td, .tb-werkstatt__kennzahlen td, .tb-werkstatt__vergleich th, .tb-werkstatt__kennzahlen th { padding: 4px 8px; text-align: right; }
.tb-werkstatt__vergleich td:first-child, .tb-werkstatt__kennzahlen td:first-child, .tb-werkstatt__vergleich th:first-child, .tb-werkstatt__kennzahlen th:first-child { text-align: left; }
.tb-werkstatt__beitrag td { font-weight: 600; }
.tb-werkstatt__verlust td:last-child { color: var(--tb-warn); }
.tb-warn { color: var(--tb-warn); }
.tb-ausstiege__beste { font-weight: 700; color: var(--tb-success); }
.tb-ausstiege__kurve svg { width: 160px; height: 40px; }
.tb-ausstiege { font-size: 12px; }
.tb-werkstatt__urteil { font-size: 15px; margin: 8px 0 4px; }
.tb-werkstatt__urteil--bestanden { color: var(--tb-success); }
.tb-werkstatt__urteil--nicht-bestanden { color: var(--tb-warn); }
.tb-urteil td:nth-child(2) { text-align: right; }
.tb-werkstatt__aktionen { margin: 8px 0; gap: 8px; }
.tb-werkstatt__aktionen label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.tb-werkstatt__aktionen input[type="text"] { width: 18em; }
.tb-level__bestanden td:first-child { font-weight: 700; color: var(--tb-success); }
/* Volumenprofil (Baustein O): Value Area als Fläche, Balken in ihr kräftiger, POC in Warnfarbe, LVN gestrichelt. */
.tb-profil__va { fill: color-mix(in srgb, var(--tb-accent) 10%, transparent); }
.tb-profil__balken { fill: color-mix(in srgb, var(--tb-muted) 45%, transparent); }
.tb-profil__balken--va { fill: color-mix(in srgb, var(--tb-accent) 65%, transparent); }
.tb-profil__poc { stroke: var(--tb-warn); stroke-width: 1.5px; }
.tb-profil__hvn { stroke: var(--tb-text); stroke-width: 2px; }
.tb-profil__lvn { stroke: var(--tb-muted); stroke-width: 1px; stroke-dasharray: 3 3; }
.tb-svg-text.tb-profil__form { font-weight: 700; fill: var(--tb-text); }
.tb-profil-formen__gesamt td { font-weight: 700; }
/* Wiedergabe (K): Kerzen in SVG, Zähler als Zeile, Rückgang als Balken. */
.tb-wiedergabe__steuerung label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
#wg-chart { width: 100%; height: 300px; background: var(--tb-surface-soft); border-radius: var(--tb-radius-sm); }
/* Die Wiedergabe zeichnet in der echten Pixelbreite (wiedergabe.js); feste Höhe, sonst wuchs der Kontostand mit der Breite. */
#wg-konto { width: 100%; height: 130px; }
.tb-svg-text.tb-wg-heute { fill: var(--tb-accent); }
#wg-protokoll { max-height: 220px; overflow: auto; font-size: 12px; }

/* ---- Kopfzeile und Navigation im App-Stil (25. Oktober 2026, Vorbild MetaTrader-App) ----
   Kopf: links Verbindung wechseln, Mitte Depot und Modus, rechts „+“. Eine Navigation mit fünf Einträgen: am Desktop als
   Reiterzeile unter dem Kopf, am Handy als schwebende Leiste unten mit Abstand zur Gestenleiste (safe-area). Trefferflächen
   mindestens 44 px. */
.tb-kopf { margin-bottom: 8px; }
.tb-kopf__zeile { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 8px; }
.tb-kopf__zeile > :last-child { justify-self: end; }
.tb-kopf__konto { text-align: center; min-width: 0; }
.tb-kopf__titel { margin: 0; font-size: 1.15rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-kopf__modus { margin: 0; font-size: 12px; color: var(--tb-muted); }
.tb-kopf__knopf { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  color: var(--tb-text); cursor: pointer; list-style: none; text-decoration: none; }
.tb-kopf__knopf::-webkit-details-marker { display: none; }
.tb-kopf__knopf svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb-kopf__knopf:hover, .tb-kopf__knopf:focus-visible { background: var(--tb-surface-soft); color: var(--tb-accent); }
.tb-kopf__knopf--leer { visibility: hidden; }
.tb-nav { display: flex; align-items: center; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--tb-border); border-radius: 14px;
  background: var(--tb-surface); }
.tb-nav__eintrag { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--tb-text);
  text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; cursor: pointer; list-style: none; }
.tb-nav__eintrag::-webkit-details-marker { display: none; }
.tb-nav__eintrag svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb-nav__eintrag:hover { background: var(--tb-surface-soft); }
.tb-nav__eintrag:focus-visible, .tb-kopf__knopf:focus-visible { outline: 2px solid var(--tb-accent); outline-offset: 2px; }
.tb-nav__eintrag--aktiv { background: color-mix(in srgb, var(--tb-accent) 14%, transparent); color: var(--tb-accent); font-weight: 600; }
.tb-nav__mehr { position: relative; margin-left: auto; }
.tb-nav__menue { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; padding: 6px; display: grid; gap: 2px;
  background: var(--tb-bg); border: 1px solid var(--tb-border); border-radius: var(--tb-radius-card); box-shadow: var(--tb-shadow); }
.tb-nav__nutzer { margin: 4px 12px 6px; font-size: 13px; color: var(--tb-muted); }
.tb-nav__punkt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--tb-radius-sm);
  background: transparent; color: var(--tb-text); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.tb-nav__punkt svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tb-nav__punkt:hover, .tb-nav__punkt--aktiv { background: var(--tb-surface-soft); }
.tb-nav__aus { margin: 0; display: contents; }
.tb-ausrichtung { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--tb-muted); }
@media (max-width: 700px) {
  .tb-seite { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tb-fuss { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .tb-nav { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; margin: 0; padding: 6px;
    justify-content: space-around; border-radius: 22px; background: color-mix(in srgb, var(--tb-bg) 88%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
  .tb-nav__eintrag { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 2px; border-radius: 16px;
    color: var(--tb-muted); font-size: 11px; }
  .tb-nav__eintrag svg { width: 22px; height: 22px; }
  .tb-nav__eintrag--mitte { color: var(--tb-text); }
  .tb-nav__eintrag--mitte svg { width: 26px; height: 26px; }
  .tb-nav__eintrag--aktiv { color: var(--tb-accent); }
  .tb-nav__mehr { flex: 1 1 0; display: flex; margin-left: 0; }
  .tb-nav__mehr > summary { width: 100%; }
  .tb-nav__menue { top: auto; bottom: calc(100% + 14px); }
}

/* Kennzahlen von Papers als Liste in einer Kachel (25. Oktober 2026): Bezeichnung mit Zusatz links, Zahl allein rechts.
   Frei auf dem Hintergrund wirkte die Liste wie ein anderer Seitentyp als die Karten darunter; der Zusatz unter der Zahl
   machte jede Zeile eine Textzeile höher und die Spalte rechts unruhig. */
.tb-kzkarte { padding: 4px 16px 14px; }
.tb-kzliste { margin: 0; }
.tb-kzliste__zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--tb-border); }
.tb-kzliste__zeile:last-child { border-bottom: 0; }
.tb-kzliste dt { color: var(--tb-muted); display: grid; gap: 1px; min-width: 0; }
.tb-kzliste__zusatz { font-size: 12px; color: var(--tb-muted); }
.tb-kzliste dd { margin: 0; text-align: right; }
.tb-kzliste__wert { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-kzliste__wert.tb-plus { color: var(--tb-success); }
.tb-kzliste__wert.tb-minus, .tb-kzliste__zeile--warnung .tb-kzliste__wert { color: var(--tb-danger); }
.tb-kzliste__pillen { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--tb-border); }
/* Am Desktop stünden fünf Zeilen über die volle Breite mit der Zahl weit rechts; als Zeile mit fünf Spalten liest sich das
   wie der Kopf eines Kontoauszugs, die Liste bleibt das Handy-Format. Je Spalte Name, Zahl, Zusatz: dt löst sich auf,
   damit der Zusatz unter die Zahl rutschen kann, ohne dass das Markup zweierlei ist. */
@media (min-width: 701px) {
  .tb-kzkarte { padding: 4px 4px 14px; }
  .tb-kzliste { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tb-kzliste__zeile { display: grid; grid-template-areas: "name" "wert" "zusatz"; align-content: start; gap: 2px; padding: 10px 14px; border-bottom: 0; border-left: 1px solid var(--tb-border); }
  .tb-kzliste__zeile:first-child { border-left: 0; }
  .tb-kzliste dt { display: contents; }
  .tb-kzliste__name { grid-area: name; font-size: 13px; }
  .tb-kzliste__zusatz { grid-area: zusatz; }
  .tb-kzliste dd { grid-area: wert; text-align: left; }
  .tb-kzliste__wert { font-size: 18px; }
  .tb-kzliste__pillen { margin: 4px 12px 0; }
}

/* ---- Testwerkstatt, Bausteine der Entwürfe (Oktober 2026): Kachelreihe, Tabellen, Hinweiskasten, Aufklappknöpfe ---- */
.tb-kz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.tb-kz .tb-metrik { box-shadow: none; }
.tb-kz .tb-metrik__zusatz { font-size: 12px; color: var(--tb-muted); white-space: normal; }
.tb-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.tb-tab th { text-align: left; color: var(--tb-muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--tb-border); white-space: nowrap; }
.tb-tab td { padding: 6px 8px; border-bottom: 1px solid var(--tb-border); font-variant-numeric: tabular-nums; }
.tb-tab tr:last-child td { border-bottom: 0; }
.tb-tab .tb-tab__z { text-align: right; }
.tb-tab .tb-plus { color: var(--tb-success); } .tb-tab .tb-minus { color: var(--tb-danger); }
.tb-breit { overflow-x: auto; }
.tb-hinweisbox { border-left: 3px solid var(--tb-warn); background: color-mix(in srgb, var(--tb-warn) 10%, transparent); padding: 8px 12px;
  border-radius: 0 10px 10px 0; font-size: 14px; margin: 12px 0 0; }
.tb-knoepfe-zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-top: 12px; }
.tb-aufklapp > summary { list-style: none; display: inline-flex; align-items: center; cursor: pointer; }
.tb-aufklapp > summary::-webkit-details-marker { display: none; }
.tb-aufklapp[open] { flex-basis: 100%; }
.tb-aufklapp[open] > summary { margin-bottom: 10px; }
.tb-daten__x { display: inline; margin-left: 4px; }
.tb-daten__x .tb-knopf--x { padding: 0 6px; min-height: 22px; font-size: 11px; border-color: transparent; }
.tb-daten__x .tb-knopf--x:hover { border-color: color-mix(in srgb, var(--tb-danger) 45%, transparent); }
@media (max-width: 700px) { .tb-kz { grid-template-columns: 1fr 1fr; } }
.tb-daten td { white-space: nowrap; }
/* Werkstatt-Formular (Entwurf): Felder im Raster, Chips für Werte und Listen, Kriterien-Tabelle */
.tb-feldraster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.tb-feld { display: grid; gap: 4px; margin: 0; font-size: 13px; color: var(--tb-muted); min-width: 0; align-items: end; align-content: start; }
.tb-feld > input, .tb-feld > select, .tb-feld__zwei input, .tb-feld__text { font: inherit; font-size: 15px; color: var(--tb-text); padding: 9px 11px; min-height: 42px;
  border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); background: var(--tb-surface-soft); width: 100%; box-sizing: border-box; }
.tb-feld__zwei, .tb-feld__drei { display: flex; align-items: center; gap: 6px; color: var(--tb-text); font-size: 14px; }
.tb-feld__zwei input, .tb-feld__drei input { width: auto; flex: 1 1 0; min-width: 0; }
.tb-feld__drei input { font: inherit; font-size: 15px; color: var(--tb-text); padding: 9px 11px; min-height: 42px; border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); background: var(--tb-bg); }
.tb-feld__text { display: flex; align-items: center; gap: 8px; }
.tb-feld--breit { grid-column: 1 / -1; }
.tb-feld.tb-haken { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--tb-text); min-height: 42px; align-self: end; }
.tb-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); }
.tb-chip { position: relative; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--tb-border); border-radius: 999px; padding: 3px 10px; font-size: 14px;
  color: var(--tb-text); background: var(--tb-surface-soft); cursor: pointer; }
.tb-chip:has(input:checked) { border-color: var(--tb-accent); background: color-mix(in srgb, var(--tb-accent) 14%, transparent); color: var(--tb-accent); font-weight: 600; }
/* Das Kästchen ist unsichtbar, aber da: Tastatur und Formular nehmen es; der Haken zeigt die Wahl, der Fokusring den Chip. */
.tb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tb-chip:has(input:focus-visible) { outline: 2px solid var(--tb-accent); outline-offset: 2px; }
.tb-chip__haken { display: none; }
.tb-chip:has(input:checked) .tb-chip__haken { display: inline; }
.tb-chip small { font-size: 12px; font-weight: 400; color: var(--tb-muted); }
.tb-chip:has(input:checked) small { color: inherit; opacity: .8; }
@media (max-width: 700px) { .tb-chip__name { display: none; } }
.tb-chips__frei { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--tb-text); flex: 1 1 160px; min-width: 120px; padding: 4px; }
.tb-saetze input { width: 6em; font: inherit; font-size: 14px; padding: 5px 7px; border: 1px solid var(--tb-border); border-radius: 8px; background: var(--tb-surface-soft); color: var(--tb-text); text-align: right; }
.tb-knopf--leise { background: transparent; color: var(--tb-accent); border-color: var(--tb-accent); font-weight: 600; }
.tb-knoepfe-zeile__text { align-self: center; }
@media (max-width: 700px) { .tb-feldraster { grid-template-columns: 1fr; } }
/* Das Formular trägt tb-werkstatt wie der Level-Test; dessen Regeln (inline-flex-Label, 7em-Zahlenfelder) gelten hier nicht. */
.tb-werkstatt > section { min-width: 0; }
.tb-werkstatt .tb-feld { display: grid; text-align: left; }
.tb-werkstatt .tb-feld input[type="number"] { width: 100%; }
.tb-werkstatt .tb-feld__zwei input[type="number"], .tb-werkstatt .tb-feld__zwei input[type="date"] { width: auto; flex: 1 1 0; min-width: 0; }
.tb-werkstatt .tb-feld.tb-haken { display: flex; flex-direction: row; }
.tb-werkstatt .tb-chip { display: inline-flex; flex-direction: row; white-space: nowrap; }
.tb-werkstatt .tb-saetze input[type="number"] { width: 6em; }
.tb-werkstatt .tb-feld[hidden] { display: none; }
.tb-werkstatt .tb-feld__zwei { flex-wrap: wrap; }
/* Ergebnis eines Laufs (Entwurf): zwei Spalten, Legende, Spannen, Abzeichen, Urteilskasten */
.tb-raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tb-raster2 > .tb-karte { margin-bottom: 14px; min-width: 0; }
.tb-legende { display: flex; gap: 14px; font-size: 13px; color: var(--tb-muted); margin-top: 6px; flex-wrap: wrap; }
.tb-legende i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 5px; border-radius: 2px; }
.tb-legende i.tb-legende__gestrichelt { width: 18px; height: 0; border-radius: 0; background: none; border-top: 2px dashed var(--tb-muted); }
/* Kurven füllen die Breite bei fester Höhe (preserveAspectRatio="none"); die Schrift richtet app.js. */
.tb-kurven { display: block; width: 100%; height: 340px; }
.tb-kurven--vergleich { height: 220px; }
@media (max-width: 700px) { .tb-kurven { height: 260px; } .tb-kurven--vergleich { height: 180px; } }
/* Kleine Verlaufslinie (Kursverlauf des Werts, Kapitalkurve je Lauf, Kurve in R im Ausstiegs-Vergleich). Die Regeln gingen
   mit der Kerzen-Großansicht verloren (24. Oktober 2026): Die Trefferstreifen füllten sich schwarz, die Linie war weg. */
.tb-verlauf { width: 100%; height: 90px; display: block; }
.tb-verlauf .tb-svg-linie { stroke-width: 1.5px; }
.tb-verlauf--auf .tb-svg-linie { stroke: var(--tb-success); }
.tb-verlauf--ab .tb-svg-linie { stroke: var(--tb-danger); }
.tb-svg-treffer { fill: transparent; }
.tb-svg-treffer:hover { fill: color-mix(in srgb, var(--tb-muted) 18%, transparent); }
.tb-svg-text { fill: var(--tb-muted); font-size: 11px; font-family: system-ui, sans-serif; }
.tb-spanne { display: grid; grid-template-columns: 120px 1fr; gap: 14px 12px; align-items: start; font-size: 14px; margin-bottom: 14px; }
.tb-spanne small { color: var(--tb-muted); font-size: 12px; }
.tb-bahn { position: relative; height: 22px; background: var(--tb-surface-soft); border-radius: 6px; }
.tb-bahn > span { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: color-mix(in srgb, var(--tb-accent) 35%, transparent); }
.tb-bahn > em { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--tb-accent); }
.tb-bahn > small { position: absolute; top: 24px; font-size: 12px; color: var(--tb-muted); transform: translateX(-50%); white-space: nowrap; }
/* Die drei Werte als Text unter der Bahn, nicht an ihrer Stelle: dort überlagerten sie sich, wenn sie nah beieinander
   lagen (Lauf 39). Im Fluss statt absolut, damit die Zeile auf dem Handy umbricht statt abgeschnitten zu werden. */
.tb-bahn__werte { display: block; margin-top: 4px; }
.tb-monte__titel { margin: 6px 0 2px; }
.tb-histogramm { display: block; width: 100%; height: 140px; }
.tb-badge { font-size: 12px; font-weight: 500; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--tb-border); color: var(--tb-muted); vertical-align: middle; }
.tb-banner--ok { background: color-mix(in srgb, var(--tb-success) 14%, transparent); border: 1px solid var(--tb-success); }
.tb-banner--info { background: color-mix(in srgb, var(--tb-accent) 12%, transparent); border: 1px solid var(--tb-accent); }
.tb-urteilkasten p { font-size: 15px; }
.tb-metrik__wert.tb-plus { color: var(--tb-success); }
.tb-gruppe > summary .tb-sub { margin-left: 8px; }
@media (max-width: 700px) { .tb-raster2 { grid-template-columns: 1fr; } .tb-spanne { grid-template-columns: 90px 1fr; } }
/* Wiedergabe (Entwurf): Kopfzeile mit Stand, Zähler, Steuerung, Protokoll in Schreibmaschinenschrift */
.tb-wiedergabe__kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-wiedergabe__kopf h2 { margin: 0; }
.tb-wiedergabe__zaehler { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 14px; margin: 10px 0; }
.tb-wiedergabe__zaehler .tb-plus { color: var(--tb-success); } .tb-wiedergabe__zaehler .tb-minus { color: var(--tb-danger); }
.tb-wiedergabe__steuerung { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.tb-wiedergabe__wahl { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--tb-muted); }
.tb-wiedergabe__wahl select { font: inherit; font-size: 14px; padding: 7px 10px; border-radius: var(--tb-radius-sm); border: 1px solid var(--tb-border); background: var(--tb-surface-soft); color: var(--tb-text); }
.tb-wiedergabe__balken { flex: 1 1 120px; height: 6px; margin: 8px 0; border-radius: 4px; background: var(--tb-surface-soft); overflow: hidden; }
.tb-wiedergabe__balken div { height: 100%; width: 0; background: var(--tb-accent); transition: width 0.2s; }
#wg-chart, #wg-konto { display: block; }
.tb-proto { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; max-height: 320px; overflow: auto; }
.tb-proto div { padding: 2px 0; border-bottom: 1px dashed var(--tb-border); }
.tb-laeufe td a { text-decoration: none; color: var(--tb-text); } .tb-laeufe td a:hover { color: var(--tb-accent); }
.tb-metrik__wert.tb-minus { color: var(--tb-danger); }
.tb-kachel--bot { margin: 0 0 12px; }
.tb-kachel--still { color: var(--tb-danger); font-weight: 600; background: color-mix(in srgb, var(--tb-danger) 8%, var(--tb-surface)); }
.tb-warnungen { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
/* Karte „Ablauf“ (November 2026): fünf Stationen untereinander, eine Linie verbindet sie. Die Linie über einer Station
   ist grün, wenn die Runde bis dorthin kam; so sieht man auf einen Blick, wie weit ein Signal gelaufen ist. */
.tb-ablauf__kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tb-ablauf__kopf h2 { margin-bottom: 2px; }
.tb-ablauf__puls { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--tb-success);
  animation: tb-ablauf-puls 2s ease-out infinite; }
.tb-ablauf__puls--still { background: var(--tb-danger); animation: none; }
@keyframes tb-ablauf-puls { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tb-success) 50%, transparent); } to { box-shadow: 0 0 0 7px transparent; } }
.tb-ablauf__kette { list-style: none; margin: 12px 0 0; padding: 0; }
.tb-ablauf__station { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 8px 8px 0; border-radius: var(--tb-radius-sm); }
.tb-ablauf__station + .tb-ablauf__station::before { content: ""; position: absolute; left: 15px; top: -50%; height: 100%; width: 2px;
  background: var(--tb-border); }
.tb-ablauf__station--ok + .tb-ablauf__station--ok::before, .tb-ablauf__station--ok + .tb-ablauf__station--jetzt::before,
.tb-ablauf__station--ok + .tb-ablauf__station--halt::before, .tb-ablauf__station--ok + .tb-ablauf__station--ruhe::before { background: var(--tb-success); }
/* Deckende Fläche unter der Marke, sonst scheint die Linie durch die halbdurchsichtige Füllung. */
.tb-ablauf__marke { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: var(--tb-muted); border: 2px solid var(--tb-border); background: var(--tb-bg); }
.tb-ablauf__text { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.tb-ablauf__station--ok .tb-ablauf__marke { color: var(--tb-success); border-color: var(--tb-success); }
.tb-ablauf__station--ruhe .tb-ablauf__marke { border-color: var(--tb-muted); }
.tb-ablauf__station--leer { color: var(--tb-muted); }
.tb-ablauf__station--leer .tb-ablauf__marke { opacity: .6; }
.tb-ablauf__station--jetzt { background: color-mix(in srgb, var(--tb-accent) 10%, transparent); }
.tb-ablauf__station--jetzt .tb-ablauf__marke { color: var(--tb-on-accent); background: var(--tb-accent); border-color: var(--tb-accent);
  animation: tb-ablauf-jetzt 1.6s ease-out infinite; }
@keyframes tb-ablauf-jetzt { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tb-accent) 50%, transparent); } to { box-shadow: 0 0 0 9px transparent; } }
.tb-ablauf__station--halt { background: color-mix(in srgb, var(--tb-danger) 8%, transparent); }
.tb-ablauf__station--halt .tb-ablauf__marke { color: var(--tb-on-danger); background: var(--tb-danger); border-color: var(--tb-danger); }
.tb-ablauf__verlauf { margin-top: 10px; max-height: none; }
.tb-ablauf .tb-kachel--bot { margin: 12px 0 0; }
/* Wer Bewegung abgeschaltet hat, sieht dieselben Zustände ohne Pulsieren. */
@media (prefers-reduced-motion: reduce) { .tb-ablauf__puls, .tb-ablauf__station--jetzt .tb-ablauf__marke { animation: none; } }
/* Fluss in der Karte „Ablauf“ (27. November 2026). Farben nur über die Token, damit hell und dunkel stimmen. */
.tb-ablauf__wahl { display: inline-flex; gap: 4px; margin: 10px 0 2px; padding: 3px; border-radius: 999px; background: var(--tb-surface-soft);
  border: 1px solid var(--tb-border); }
.tb-ablauf__wahl[hidden] { display: none; }
.tb-ablauf__wahl button { min-height: 38px; min-width: 72px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  color: var(--tb-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tb-ablauf__wahl button[aria-pressed="true"] { background: var(--tb-accent); color: var(--tb-on-accent); }
.tb-ablauf__wahl button:focus-visible { outline: 2px solid var(--tb-accent); outline-offset: 2px; }
.tb-fluss { margin-top: 10px; }
.tb-fluss__bild { display: block; width: 100%; height: 240px; overflow: visible; }
.tb-fluss__wert { fill: var(--tb-text); font-weight: 600; }
.tb-fluss__abstand { fill: var(--tb-muted); font-variant-numeric: tabular-nums; }
.tb-fluss__abstand--nah { fill: var(--tb-warn); font-weight: 600; }
.tb-fluss__abstand--ueber { fill: var(--tb-accent); font-weight: 600; }
.tb-fluss__abstand--offen { fill: var(--tb-success); font-weight: 600; }
.tb-fluss__punkt { fill: var(--tb-muted); }
.tb-fluss__punkt--nah { fill: var(--tb-warn); }
.tb-fluss__punkt--ueber { fill: var(--tb-accent); }
.tb-fluss__punkt--offen { fill: var(--tb-success); }
.tb-fluss__punkt--ohne { fill: var(--tb-border); }
.tb-fluss__grund { stroke: var(--tb-border); stroke-width: 2px; }
.tb-fluss__zu { stroke: var(--tb-muted); }
.tb-fluss__zu--nah { stroke: var(--tb-warn); }
.tb-fluss__zu--ueber { stroke: var(--tb-accent); }
.tb-fluss__knoten { fill: var(--tb-surface); stroke: var(--tb-border); stroke-width: 1.5px; }
.tb-fluss__knotentext, .tb-fluss__titel { fill: var(--tb-muted); }
.tb-fluss__knotentext--stark { fill: var(--tb-text); font-weight: 700; }
.tb-fluss__fuellung--frei { fill: color-mix(in srgb, var(--tb-accent) 22%, transparent); }
.tb-fluss__fuellung--knapp { fill: color-mix(in srgb, var(--tb-warn) 35%, transparent); }
.tb-fluss__fuellung--voll { fill: color-mix(in srgb, var(--tb-danger) 35%, transparent); }
.tb-fluss__kette { stroke-width: 3.5px; stroke-linecap: round; }
.tb-fluss__kette--frei { stroke: var(--tb-success); }
.tb-fluss__kette--gestoppt { stroke: var(--tb-danger); }
/* Nur ein neuer Weg zeichnet sich; pathLength fehlt im String, darum eine Länge, die jeder Pfad im Bild unterschreitet. */
.tb-fluss__kette--neu { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: tb-fluss-zeichnen 1.2s ease-out forwards; }
@keyframes tb-fluss-zeichnen { to { stroke-dashoffset: 0; } }
/* Puls nach Richtung (grün gestiegen, rot gefallen) und Betrag (Ringgröße); das Dreieck verschwindet mit ihm. */
.tb-fluss__puls { fill: none; stroke-width: 2px; transform-box: fill-box; transform-origin: center; animation: 1.2s ease-out forwards; }
.tb-fluss__puls--auf { stroke: var(--tb-success); }
.tb-fluss__puls--ab { stroke: var(--tb-danger); }
.tb-fluss__puls--klein { animation-name: tb-fluss-puls-klein; }
.tb-fluss__puls--mittel { animation-name: tb-fluss-puls-mittel; }
.tb-fluss__puls--gross { animation-name: tb-fluss-puls-gross; }
@keyframes tb-fluss-puls-klein { from { transform: scale(1); opacity: .9; } to { transform: scale(2); opacity: 0; } }
@keyframes tb-fluss-puls-mittel { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }
@keyframes tb-fluss-puls-gross { from { transform: scale(1); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }
.tb-fluss__richtung { font-weight: 700; animation: tb-fluss-richtung 1.6s ease-out forwards; }
.tb-fluss__richtung--auf { fill: var(--tb-success); }
.tb-fluss__richtung--ab { fill: var(--tb-danger); }
@keyframes tb-fluss-richtung { 0%, 60% { opacity: 1; } to { opacity: 0; } }
.tb-fluss__hinweis { margin: 8px 0 0; font-size: 14px; }
.tb-fluss__weitere { margin: 4px 0 0; }
.tb-fluss__legende { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--tb-muted); }
.tb-fluss__legende li { display: inline-flex; align-items: center; gap: 6px; }
.tb-fluss__legende .tb-fluss__richtung--auf { color: var(--tb-success); }
.tb-fluss__legende .tb-fluss__richtung--ab { color: var(--tb-danger); margin-left: -4px; }
.tb-fluss__strich { display: inline-block; width: 20px; height: 3px; border-radius: 2px; background: var(--tb-muted); opacity: .45; }
.tb-fluss__strich--nah { background: var(--tb-warn); opacity: 1; }
.tb-fluss__strich--ueber { background: var(--tb-accent); opacity: 1; height: 4px; }
.tb-fluss__strich--fern { height: 1px; }
.tb-fluss__strich--frei { background: var(--tb-success); opacity: 1; height: 4px; }
.tb-fluss__strich--gestoppt { background: var(--tb-danger); opacity: 1; height: 4px; }
.tb-fluss__legende .tb-fluss__punkt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tb-success); }
.tb-fluss__positionen { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.tb-fluss__pos-kopf { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.tb-fluss__pos-kopf > :last-child { margin-left: auto; font-weight: 600; }
.tb-fluss__pos-kopf .tb-plus { color: var(--tb-success); }
.tb-fluss__pos-kopf .tb-minus { color: var(--tb-danger); }
.tb-fluss__balken { position: relative; height: 8px; margin: 6px 0 4px; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tb-danger) 35%, transparent), color-mix(in srgb, var(--tb-success) 35%, transparent)); }
.tb-fluss__marke { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; transform: translateX(-50%); }
.tb-fluss__marke--einstieg { background: var(--tb-muted); }
.tb-fluss__marke--kurs { background: var(--tb-text); }
.tb-fluss__marke--ziel { background: var(--tb-success); }
.tb-fluss__werte { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; flex-wrap: wrap; }
/* Ohne Bewegung: kein Ring, nur das Dreieck, das bis zum nächsten Abruf stehen bleibt. */
@media (prefers-reduced-motion: reduce) { .tb-fluss__kette--neu { animation: none; stroke-dashoffset: 0; } .tb-fluss__puls { animation: none; opacity: 0; }
  .tb-fluss__richtung { animation: none; } }

/* Bilder der Testwerkstatt (27. November 2026). Jede Grafik: Frage als Unterzeile, ein gerechneter Satz darunter. */
.tb-bild__frage { margin: -4px 0 10px; }
.tb-bild__satz { margin: 10px 0 0; font-size: 14px; }
.tb-bild__leer { margin: 6px 0 0; }

/* Streudiagramm der Läufe: Fläche mit Rändern für die Beschriftung, Punkte als Links in Prozent der Fläche. */
.tb-streu { position: relative; padding: 20px 8px 40px 44px; }
.tb-streu__feld { position: relative; aspect-ratio: 16 / 7; border-left: 1px solid var(--tb-border); border-bottom: 1px solid var(--tb-border);
  background: linear-gradient(var(--tb-surface-soft), var(--tb-surface-soft)); border-radius: 0 6px 0 0; }
.tb-streu__bestehen { position: absolute; top: 0; bottom: 0; right: 0; border-left: 2px solid var(--tb-success);
  background: color-mix(in srgb, var(--tb-success) 12%, transparent); }
.tb-streu__bestehen span { position: absolute; top: 4px; left: 6px; font-size: 11px; color: var(--tb-success); white-space: nowrap; }
.tb-streu__ymarke { position: absolute; left: -6px; transform: translate(-100%, -50%); font-size: 11px; color: var(--tb-muted); white-space: nowrap; }
.tb-streu__xmarke { position: absolute; bottom: -18px; transform: translateX(-50%); font-size: 11px; color: var(--tb-muted); }
.tb-streu__achse { position: absolute; font-size: 11px; color: var(--tb-muted); }
.tb-streu__achse--x { right: 8px; bottom: 2px; }
.tb-streu__achse--y { left: 0; top: 0; }
/* Trefferfläche 44 × 44, sichtbar nur der Punkt in der Mitte. */
.tb-streu__punkt { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; }
.tb-streu__punkt::after, .tb-streu__marke { content: ""; display: block; width: 11px; height: 11px; background: currentColor; }
.tb-streu__punkt:focus-visible { outline: 2px solid var(--tb-accent); outline-offset: -8px; }
.tb-streu__punkt--bestanden::after, .tb-legende i.tb-streu__punkt--bestanden { width: 17px; height: 17px; box-shadow: 0 0 0 2px var(--tb-surface), 0 0 0 4px var(--tb-success); }
.tb-streu__punkt--akzent { color: var(--tb-accent); }
.tb-streu__punkt--warn { color: var(--tb-warn); }
.tb-streu__punkt--text { color: var(--tb-text); }
.tb-streu__punkt--grau { color: var(--tb-muted); }
.tb-streu__punkt--kreis::after, .tb-legende i.tb-streu__punkt--kreis { border-radius: 50%; }
.tb-streu__punkt--quadrat::after, .tb-legende i.tb-streu__punkt--quadrat { border-radius: 2px; }
.tb-streu__punkt--raute::after, .tb-legende i.tb-streu__punkt--raute { transform: rotate(45deg) scale(.9); }
.tb-streu__punkt--dreieck::after, .tb-legende i.tb-streu__punkt--dreieck { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tb-legende i.tb-streu__marke { width: 11px; height: 11px; margin-right: 6px; }
.tb-legende i.tb-streu__flaeche { width: 14px; height: 11px; border-left: 2px solid var(--tb-success); border-radius: 0;
  background: color-mix(in srgb, var(--tb-success) 18%, transparent); }
@media (max-width: 700px) { .tb-streu__feld { aspect-ratio: 4 / 3; } .tb-streu { padding-left: 40px; } }

/* Signal-Trichter: Zeilen mit Balken in Prozent der Signale; Ablehnungen und Ausgänge eingerückt. */
.tb-bild__wahl { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.tb-bild__wahl a { min-height: 44px; min-width: 44px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px;
  border: 1px solid var(--tb-border); color: var(--tb-text); text-decoration: none; font-size: 14px; }
.tb-bild__wahl a.tb-bild__wahl--aktiv { background: var(--tb-accent); border-color: var(--tb-accent); color: var(--tb-on-accent); }
.tb-trichter { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tb-trichter__zeile { display: grid; gap: 3px; }
.tb-trichter__name { font-size: 13px; }
.tb-trichter__balken { display: block; height: 10px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--tb-accent); }
.tb-trichter__zeile--ab, .tb-trichter__zeile--plus, .tb-trichter__zeile--minus, .tb-trichter__zeile--aus, .tb-trichter__zeile--offen { padding-left: 16px; }
.tb-trichter__zeile--ab .tb-trichter__balken { background: color-mix(in srgb, var(--tb-danger) 55%, transparent); }
.tb-trichter__zeile--kauf .tb-trichter__balken { background: var(--tb-text); }
.tb-trichter__zeile--plus .tb-trichter__balken { background: var(--tb-success); }
.tb-trichter__zeile--minus .tb-trichter__balken { background: var(--tb-danger); }
.tb-trichter__zeile--aus .tb-trichter__balken { background: var(--tb-muted); }
.tb-trichter__zeile--offen .tb-trichter__balken { background: repeating-linear-gradient(135deg, var(--tb-muted) 0 3px, transparent 3px 6px); }

/* Trades in R: zehn Säulen, die Fläche fest hoch, die Säulen in Prozent davon. */
.tb-rsaeulen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px;
  height: 160px; border-bottom: 1px solid var(--tb-border); padding-bottom: 18px; position: relative; }
.tb-rsaeulen__saeule { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-width: 0; }
.tb-rsaeulen__balken { display: block; min-height: 0; border-radius: 4px 4px 0 0; }
.tb-rsaeulen__balken--plus { background: var(--tb-success); }
.tb-rsaeulen__balken--minus { background: var(--tb-danger); }
.tb-rsaeulen__zahl { font-size: 11px; text-align: center; color: var(--tb-muted); }
.tb-rsaeulen__klasse { position: absolute; bottom: -17px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--tb-muted); white-space: nowrap; }
.tb-bild__hinweis { margin: 8px 0 0; font-size: 14px; color: var(--tb-warn); }

/* Fächer im Vorwärtstest: feste Höhe, die Breite füllt die Karte. */
.tb-faecher { display: block; width: 100%; height: 180px; margin-top: 6px; }
.tb-legende i.tb-faecher__papier { height: 3px; background: var(--tb-text); }
.tb-legende i.tb-faecher__band { height: 10px; background: color-mix(in srgb, var(--tb-accent) 40%, transparent); }
.tb-legende i.tb-faecher__band--weit { background: color-mix(in srgb, var(--tb-accent) 16%, transparent); }
.tb-legende i.tb-faecher__median { border-top-color: var(--tb-accent); }

/* Sektor-Karte: Kacheln je Gruppe, Farbe in drei Stufen je Richtung, offene Position mit dickem Rahmen. */
.tb-sektor + .tb-sektor { margin-top: 10px; }
.tb-sektor__kopf { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--tb-muted); }
.tb-sektor__kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.tb-sektor__kachel { min-height: 48px; padding: 6px 8px; border-radius: var(--tb-radius-sm); display: grid; align-content: center; gap: 1px;
  border: 1px solid var(--tb-border); background: var(--tb-surface-soft); font-size: 12px; }
.tb-sektor__kachel strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-sektor__kachel small { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.tb-sektor__kachel--null { background: var(--tb-surface-soft); }
.tb-sektor__kachel--ohne { background: transparent; color: var(--tb-muted); border-style: dashed; }
.tb-sektor__kachel--plus1 { background: color-mix(in srgb, var(--tb-success) 14%, var(--tb-surface)); }
.tb-sektor__kachel--plus2 { background: color-mix(in srgb, var(--tb-success) 30%, var(--tb-surface)); }
.tb-sektor__kachel--plus3 { background: color-mix(in srgb, var(--tb-success) 50%, var(--tb-surface)); }
.tb-sektor__kachel--minus1 { background: color-mix(in srgb, var(--tb-danger) 14%, var(--tb-surface)); }
.tb-sektor__kachel--minus2 { background: color-mix(in srgb, var(--tb-danger) 30%, var(--tb-surface)); }
.tb-sektor__kachel--minus3 { background: color-mix(in srgb, var(--tb-danger) 50%, var(--tb-surface)); }
.tb-sektor__kachel--offen { border: 2px solid var(--tb-text); }
.tb-legende i.tb-sektor__probe { width: 14px; height: 12px; border-radius: 3px; border: 1px solid var(--tb-border); }
.tb-legende i.tb-sektor__probe.tb-sektor__kachel--offen { border: 2px solid var(--tb-text); background: none; }

/* Annäherung an die Schwelle: je Wert Name und Abstand, die Linie, die Tendenz; am Handy untereinander. */
.tb-annaeherung { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tb-annaeherung__wert { display: grid; grid-template-columns: 130px minmax(0, 1fr) 150px; gap: 10px; align-items: center; min-height: 44px; }
.tb-annaeherung__name { font-size: 14px; }
.tb-annaeherung__abstand { color: var(--tb-muted); font-variant-numeric: tabular-nums; }
.tb-annaeherung__wert--nah .tb-annaeherung__abstand { color: var(--tb-warn); font-weight: 600; }
.tb-annaeherung__linie { display: block; width: 100%; height: 44px; }
.tb-annaeherung__tendenz { font-size: 13px; }
@media (max-width: 700px) { .tb-annaeherung__wert { grid-template-columns: 1fr auto; } .tb-annaeherung__linie { grid-column: 1 / -1; grid-row: 2; } }

/* Risiko über die Zeit: feste Höhe, die Breite füllt die Karte. */
.tb-risikozeit { display: block; width: 100%; height: 150px; }
.tb-legende i.tb-risikozeit__flaeche { height: 10px; background: color-mix(in srgb, var(--tb-accent) 35%, transparent); }
.tb-legende i.tb-risikozeit__limit { border-top-color: var(--tb-warn); }
.tb-legende i.tb-risikozeit__punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--tb-danger); }

/* Kalender der Tagesergebnisse: 5 × 10 Felder, die Spalten teilen sich die Breite. */
.tb-kalender { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-size: 12px; }
.tb-kalender th { font-weight: 500; color: var(--tb-muted); text-align: center; width: auto; }
.tb-kalender th[scope="row"], .tb-kalender thead th:first-child { width: 28px; text-align: left; }
.tb-kalender td { padding: 0; }
.tb-kalender__kw { font-size: 10px; }
.tb-kalender__feld { display: block; height: 26px; border-radius: 4px; background: var(--tb-surface-soft); }
.tb-kalender__schnitt { width: 64px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb-kalender__feld--ohne { background: color-mix(in srgb, var(--tb-muted) 18%, transparent); }
.tb-kalender__feld--feiertag { background: transparent; border: 1px dashed var(--tb-border); }
.tb-kalender__feld--spaeter { background: transparent; }
.tb-kalender__feld--plus1 { background: color-mix(in srgb, var(--tb-success) 25%, transparent); }
.tb-kalender__feld--plus2 { background: color-mix(in srgb, var(--tb-success) 55%, transparent); }
.tb-kalender__feld--plus3 { background: var(--tb-success); }
.tb-kalender__feld--minus1 { background: color-mix(in srgb, var(--tb-danger) 25%, transparent); }
.tb-kalender__feld--minus2 { background: color-mix(in srgb, var(--tb-danger) 55%, transparent); }
.tb-kalender__feld--minus3 { background: var(--tb-danger); }
.tb-legende i.tb-kalender__probe { width: 12px; height: 12px; border-radius: 3px; }
@media (max-width: 700px) { .tb-kalender { border-spacing: 2px; } .tb-kalender__schnitt { width: 52px; font-size: 11px; } .tb-kalender__feld { height: 22px; } }

/* Ähnlichkeit der Werte: Matrix mit Feldern in fünf Stufen von Grau zu Rot. */
.tb-korr { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.tb-korr th { font-weight: 500; color: var(--tb-muted); white-space: nowrap; padding: 2px 4px; }
.tb-korr thead th span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); }
.tb-korr th.tb-korr__offen { color: var(--tb-text); font-weight: 700; }
.tb-korr__feld { width: 30px; height: 28px; text-align: center; border-radius: 4px; font-variant-numeric: tabular-nums; }
.tb-korr__feld--0 { background: color-mix(in srgb, var(--tb-muted) 12%, transparent); }
.tb-korr__feld--1 { background: color-mix(in srgb, var(--tb-danger) 15%, transparent); }
.tb-korr__feld--2 { background: color-mix(in srgb, var(--tb-danger) 30%, transparent); }
.tb-korr__feld--3 { background: color-mix(in srgb, var(--tb-danger) 50%, transparent); }
.tb-korr__feld--4 { background: color-mix(in srgb, var(--tb-danger) 75%, transparent); color: var(--tb-on-danger); }
.tb-korr__feld--selbst { background: var(--tb-surface-soft); }
.tb-korr__feld--leer { background: transparent; border: 1px dashed var(--tb-border); }
.tb-korr__feld--paar { box-shadow: inset 0 0 0 2px var(--tb-text); }
.tb-legende i.tb-korr__probe { width: 12px; height: 12px; border-radius: 3px; }

/* Abdeckung der Kerzen: 26 schmale Wochenfelder je Zeile, am Handy quer scrollbar in .tb-breit. */
.tb-abdeckung { border-collapse: separate; border-spacing: 2px; font-size: 11px; }
.tb-abdeckung th { font-weight: 500; color: var(--tb-muted); white-space: nowrap; text-align: left; padding: 0 6px 0 0; }
.tb-abdeckung thead th + th { text-align: center; padding: 0; min-width: 14px; }
.tb-abdeckung td { padding: 0; }
.tb-abdeckung__feld { display: block; width: 14px; height: 18px; border-radius: 3px; }
.tb-abdeckung__feld--voll { background: var(--tb-success); }
.tb-abdeckung__feld--luecke { background: var(--tb-warn); }
.tb-abdeckung__feld--leer { background: var(--tb-danger); }
.tb-abdeckung__feld--frei { background: var(--tb-surface-soft); border: 1px dashed var(--tb-border); }
.tb-abdeckung__feld--ohne { background: color-mix(in srgb, var(--tb-muted) 12%, transparent); }
.tb-legende i.tb-abdeckung__probe { width: 12px; height: 12px; border-radius: 3px; }

/* Tages-Zeitraffer in der Wiedergabe: feste Höhe, die Breite füllt die Karte. */
.tb-zeitraffer__chart { display: block; width: 100%; height: 160px; margin-top: 8px; }
.tb-legende i.tb-zeitraffer__konto { height: 3px; background: var(--tb-accent); }
.tb-zeitraffer .tb-proto { max-height: 220px; }

/* Strömen im Fluss (30. November 2026): runde Punkte im Abstand von 16 Pixeln, die entlang der Linie wandern; die
   Geschwindigkeit setzt app.js je Linie als animation-duration. Uhr bis zur nächsten Abfrage unter dem Risikomodul. */
.tb-fluss__strom { stroke: var(--tb-muted); stroke-width: 3px; stroke-linecap: round; stroke-dasharray: 0.1 15.9; opacity: .55;
  animation: tb-fluss-strom 1s linear infinite; }
.tb-fluss__strom--nah { stroke: var(--tb-warn); opacity: 1; }
.tb-fluss__strom--ueber { stroke: var(--tb-accent); opacity: 1; stroke-width: 3.5px; }
.tb-fluss__strom--weiter { stroke: var(--tb-accent); opacity: 1; }
.tb-fluss__strom--rand { stroke: var(--tb-bg); stroke-width: 7px; opacity: 1; }
@keyframes tb-fluss-strom { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -16px; } }
.tb-fluss__uhr { fill: var(--tb-border); }
.tb-fluss__uhr-rest { fill: var(--tb-accent); }
.tb-fluss__uhr-text { fill: var(--tb-muted); }
@media (prefers-reduced-motion: reduce) { .tb-fluss__strom { animation: none; display: none; } }
.tb-fluss__strich--strom { height: 3px; opacity: 1; background: repeating-linear-gradient(90deg, var(--tb-accent) 0 3px, transparent 3px 7px); }
