/*
 * TradeButtons Global Finance — Oberfläche
 *
 * Die Farb- und Bausteinlogik ist bewusst dieselbe wie in
 * tradebuttons-smart-money/assets/css/tbsm-app.css, damit die Seite sich in den
 * Bestand einfügt. Die drei Regeln dieser Umgebung gelten hier genauso:
 *
 * 1. Look (tb_look: cyber|standard) und Hell/Dunkel (blockifyDarkMode) sind
 *    ZWEI UNABHÄNGIGE SCHALTER. Alle vier Kombinationen müssen lesbar sein.
 *    Der Zustand wird serverseitig am Container gestempelt — deshalb hängen
 *    alle Farben an .tbgf--dark / .tbgf--light / .tbgf--look-*, niemals an
 *    body-Klassen fremder Plugins.
 *
 * 2. Das Theme INVERTIERT --wp--preset--color--neutral-* im Dark Mode.
 *    Deshalb hier ausschliesslich FESTE HEX-WERTE. Keine neutral-*-Presets.
 *
 * 3. tb-cyber-skin.css formatiert button, select und input global mit
 *    !important. Eigene Bedienelemente gewinnen nur über höhere Spezifität
 *    (body .tbgf …) plus eigenes !important. Das Theme wird nicht angefasst.
 *
 * 4. DURCHSCHEINENDER HINTERGRUND (Ati 23.08.2026: „es muss aussehen wie der
 *    Rest der Seite, Transparenz Hintergrund … siehe Academy oder Smart Money").
 *    Die Vorlage dafür ist das mu-plugin `tb-aits-transparency.php`: Grundfläche
 *    rgba(7,19,36,.40), Karten rgba(…,.62), Academy-Boxen rgba(…,.50).
 *    Genau diese Deckkräfte stehen unten in den Tokens — dadurch scheint das
 *    Hintergrundbild der Seite durch, ohne dass ein !important nötig wird.
 */

/* ═══════════════════════════════════════════════════════════════════
   Farbtokens
   ═══════════════════════════════════════════════════════════════════ */

.tbgf {
	/* Deckender Grund fuer Fenster, die UEBER Inhalt liegen. Alle Flaechen
	   dieses Plugins sind durchscheinend — ein Erklaerfenster darf das nicht
	   sein, sonst scheint die Zahl darunter hindurch. */
	--tbgf-pop-bg: #262c36;
	--tbgf-radius: 10px;
	--tbgf-radius-sm: 6px;
	--tbgf-gap: 16px;
	--tbgf-gap-sm: 10px;
	--tbgf-maxw: 1600px;
	/* ⚠ Die Schrift der SEITE, kein eigener Stapel.
	   GEMESSEN am ausgelieferten Theme: Fliesstext `Inter`, Ueberschriften
	   `Inter Tight`. Ein eigener System-Stapel liess das Plugin wie einen
	   Fremdkoerper wirken. `inherit` nimmt, was an der Stelle gilt — damit
	   folgt es auch einem spaeteren Schriftwechsel der Seite. */
	--tbgf-font: inherit;
	--tbgf-headline: var(--wp--custom--heading--font-family, var(--wp--preset--font-family--inter-tight, inherit));

	/* ⚠ KEINE Monospace mehr in Zahlen.
	   Sie war fuer die Spaltenbuendigkeit gedacht — das leistet
	   `font-variant-numeric: tabular-nums` genauso, ohne die Schrift zu
	   wechseln. Dauerhaft Monospace zu lesen ist anstrengend. */
	--tbgf-mono: inherit;
	--tbgf-shadow: 0 1px 3px rgba(0, 0, 0, .16);
	--tbgf-glow: none;
}

/* ── Dunkel ────────────────────────────────────────────────────────── */
.tbgf--dark {
	/* Durchscheinend statt deckend — siehe Regel 4 im Kopf. */
	--tbgf-bg: rgba(13, 17, 23, .45);
	--tbgf-surface: rgba(22, 27, 34, .62);
	--tbgf-surface-2: rgba(28, 33, 40, .62);
	--tbgf-surface-3: rgba(38, 44, 54, .70);
	--tbgf-pop-bg: #262c36;
	--tbgf-border: #30363d;
	--tbgf-border-strong: #444c56;
	--tbgf-text: #e6edf3;
	--tbgf-text-muted: #9198a1;
	--tbgf-text-faint: #8b949e;
	--tbgf-accent: #60a5fa;
	--tbgf-success: #3fb950;
	--tbgf-danger: #f85149;
	--tbgf-warning: #d29922;
	--tbgf-info: #a5a5f5;
	--tbgf-on-accent: #04121f;
	--tbgf-aktiv-blau: #58a6ff;
	--tbgf-aktiv-tuerkis: #35d6f5;
	--tbgf-track: #21262d;
	--tbgf-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* ── Hell ──────────────────────────────────────────────────────────── */
.tbgf--light {
	--tbgf-bg: rgba(246, 248, 250, .55);
	--tbgf-surface: rgba(255, 255, 255, .76);
	--tbgf-surface-2: rgba(246, 248, 250, .76);
	--tbgf-surface-3: rgba(234, 238, 242, .82);
	--tbgf-pop-bg: #ffffff;
	--tbgf-border: #d0d7de;
	--tbgf-border-strong: #afb8c1;
	--tbgf-text: #1f2328;
	--tbgf-text-muted: #59636e;
	--tbgf-text-faint: #656d76;
	--tbgf-accent: #0969da;
	--tbgf-success: #1a7f37;
	--tbgf-danger: #cf222e;
	--tbgf-warning: #8a6400;
	--tbgf-info: #512a97;
	--tbgf-on-accent: #ffffff;
	--tbgf-aktiv-blau: #0969da;
	--tbgf-aktiv-tuerkis: #0b6a8f;
	--tbgf-track: #eaeef2;
	--tbgf-shadow: 0 1px 3px rgba(31, 35, 40, .12);
}

/* ── Cyber-Look ────────────────────────────────────────────────────── */
.tbgf--look-cyber.tbgf--dark {
	/* Exakt die Deckkräfte aus tb-aits-transparency.php. */
	--tbgf-bg: rgba(7, 19, 36, .40);
	--tbgf-surface: rgba(17, 34, 55, .62);
	--tbgf-surface-2: rgba(11, 20, 33, .62);
	--tbgf-surface-3: rgba(30, 39, 57, .70);
	--tbgf-pop-bg: #16233a;
	--tbgf-border: #22304a;
	--tbgf-border-strong: #35496e;
	--tbgf-accent: #35d6f5;
	--tbgf-on-accent: #041017;
	--tbgf-info: #b18cff;
	--tbgf-aktiv-blau: #3b82f6;
	--tbgf-aktiv-tuerkis: #35d6f5;
	--tbgf-glow: 0 0 0 1px rgba(53, 214, 245, .18);
}

.tbgf--look-cyber.tbgf--light {
	--tbgf-accent: #0b6a8f;
	--tbgf-info: #5b2ea6;
	--tbgf-aktiv-blau: #0b52a8;
	--tbgf-aktiv-tuerkis: #0b6a8f;
	--tbgf-glow: 0 0 0 1px rgba(11, 106, 143, .16);
}

/* ═══════════════════════════════════════════════════════════════════
   Grundgerüst
   ═══════════════════════════════════════════════════════════════════ */

.tbgf {
	box-sizing: border-box;
	max-width: var(--tbgf-maxw);
	margin: 0 auto;
	padding: clamp(12px, 2vw, 28px);
	background: var(--tbgf-bg);
	color: var(--tbgf-text);
	font-family: var(--tbgf-font);
	/* Gleich breite Ziffern im GANZEN Plugin — ersetzt die Monospace. */
	font-variant-numeric: tabular-nums;
	font-size: 15px;
	line-height: 1.55;
	border-radius: var(--tbgf-radius);
}

/*
 * Die Kopfzeile der Ansicht hatte einen eigenen Farbverlauf. Auf einem
 * durchscheinenden Untergrund wirkt er wie ein aufgesetzter Kasten — deshalb
 * übernimmt sie jetzt dieselbe Fläche wie die Karten.
 */

.tbgf *,
.tbgf *::before,
.tbgf *::after { box-sizing: inherit; }

.tbgf h1, .tbgf h2, .tbgf h3, .tbgf h4 {
	color: var(--tbgf-text);
	margin: 0 0 .4em;
	line-height: 1.25;
	font-weight: 650;
}

.tbgf h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.tbgf h2 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.tbgf h3 { font-size: 1.05rem; }
.tbgf h4 { font-size: .95rem; }

.tbgf p { margin: 0 0 .7em; }
.tbgf a { color: var(--tbgf-accent); text-decoration: none; }
.tbgf a:hover { text-decoration: underline; }

.tbgf-muted { color: var(--tbgf-text-muted); font-size: .94em; }
.tbgf-faint { color: var(--tbgf-text-faint); font-size: .9em; }
/* Frueher eine Monospace-Klasse. Jetzt nur noch gleich breite Ziffern —
   dieselbe Buendigkeit, dieselbe Schrift wie der Rest. */
.tbgf-mono { font-variant-numeric: tabular-nums; }
.tbgf-pos { color: var(--tbgf-success); }
.tbgf-neg { color: var(--tbgf-danger); }
.tbgf-warn { color: var(--tbgf-warning); }

.tbgf-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.tbgf-skip {
	position: absolute;
	left: -9999px; top: auto;
	width: 1px; height: 1px;
	overflow: hidden;
}

.tbgf-skip:focus {
	position: static;
	width: auto; height: auto;
	display: inline-block;
	margin-bottom: 8px;
	padding: 6px 12px;
	background: var(--tbgf-accent);
	color: var(--tbgf-on-accent);
	border-radius: var(--tbgf-radius-sm);
}

/* ── Kopfbereich ───────────────────────────────────────────────────── */

.tbgf-hero {
	--tbgf-zeilenhoehe: 32px;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px 12px;
	background: var(--tbgf-surface);
	border: 1px solid var(--tbgf-border);
	border-radius: var(--tbgf-radius);
	padding: 10px 12px;
	margin-bottom: var(--tbgf-gap);
}

.tbgf--look-cyber .tbgf-hero {
	background:
		radial-gradient(900px 180px at 12% -60%, color-mix(in srgb, var(--tbgf-accent) 12%, transparent) 0%, transparent 70%),
		var(--tbgf-surface);
	border-color: var(--tbgf-border-strong);
}

.tbgf-quick {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
}

.tbgf-quick::-webkit-scrollbar { display: none; height: 0; }

body .tbgf .tbgf-quick .tbgf-btn {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 6px 11px !important;
	font-size: .85rem !important;
	min-height: var(--tbgf-zeilenhoehe);
	height: var(--tbgf-zeilenhoehe);
}

body .tbgf .tbgf-quick .tbgf-btn.is-active {
	background: var(--tbgf-accent) !important;
	border-color: var(--tbgf-accent) !important;
	color: var(--tbgf-on-accent) !important;
	font-weight: 700 !important;
}

/* Stand der Daten — rechts in der Kopfzeile. */
.tbgf-stand {
	flex: 0 0 auto;
	font-size: .86rem;
	color: var(--tbgf-text-faint);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ── Grundriss ─────────────────────────────────────────────────────── */

.tbgf-shell {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

/* min-width: 0 ist zwingend — sonst sprengt eine breite Tabelle das Layout,
   statt in ihrem eigenen Container zu rollen. */
.tbgf-content { flex: 1 1 auto; min-width: 0; }

/* ── Navigation ────────────────────────────────────────────────────── */

.tbgf-nav {
	flex: 0 0 232px;
	position: sticky;
	top: 90px;
	background: var(--tbgf-surface);
	border: 1px solid var(--tbgf-border);
	border-radius: var(--tbgf-radius);
	box-shadow: var(--tbgf-shadow);
	padding: 8px;
}

.tbgf--look-cyber .tbgf-nav { box-shadow: var(--tbgf-shadow), var(--tbgf-glow); }

.tbgf-nav__list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tbgf-nav__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	color: var(--tbgf-text-muted);
	border-radius: var(--tbgf-radius-sm);
	font-size: .92rem;
	font-weight: 500;
	line-height: 1.3;
	border-left: 2px solid transparent;
}

.tbgf-nav__link:hover {
	color: var(--tbgf-text);
	background: var(--tbgf-surface-2);
	text-decoration: none;
}

/* Aktiver Eintrag: derselbe Zweifarb-Verlauf wie in Smart Money.
   background-origin: border-box ist zwingend — sonst beginnt der Verlauf erst
   hinter dem Rahmen und dessen Wiederholung malt links einen harten Streifen. */
.tbgf-nav__link.is-active {
	background-image: linear-gradient(
		90deg,
		var(--tbgf-aktiv-blau) 0%,
		var(--tbgf-aktiv-tuerkis) 38%,
		var(--tbgf-aktiv-tuerkis) 68%,
		var(--tbgf-aktiv-blau) 100%
	);
	background-origin: border-box;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	color: var(--tbgf-on-accent);
	font-weight: 620;
	border-left-color: transparent;
}

.tbgf-nav__link:focus-visible { outline: 2px solid var(--tbgf-accent); outline-offset: -2px; }

.tbgf-nav__icon {
	width: 20px;
	flex: none;
	text-align: center;
	font-size: 1.05em;
	opacity: .9;
	color: currentColor;
	font-variant-emoji: text;
}

.tbgf-nav__label { min-width: 0; }

body .tbgf .tbgf-nav__toggle {
	display: none;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: flex-start;
}

/* ── Karten und Raster ─────────────────────────────────────────────── */

/* ⚠ `auto-fit`, NICHT `auto-fill`.
   `auto-fill` behaelt leere Spuren. GEMESSEN bei 1132 px Inhaltsbreite:
   das schmale Raster legte DREI Spuren a 367 px an, eine einzelne Karte
   besetzte eine davon — 765 px blieben leer. Beim breiten Raster passiert
   dasselbe, sobald der Inhalt ueber 1120 px hinausgeht: zwei Spuren, eine
   Karte, die halbe Zeile leer. Genau die Freiflaechen auf den Unterseiten.
   `auto-fit` laesst leere Spuren zusammenfallen, die Karten dehnen sich. */
.tbgf-grid {
	display: grid;
	gap: var(--tbgf-gap);
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	align-items: stretch;
}

.tbgf-grid--wide { grid-template-columns: repeat(auto-fit, minmax(560px, 1fr)); }

.tbgf-grid--kpi {
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	margin-bottom: calc(var(--tbgf-gap) * 1.5);
}

/* Eine allein stehende Karte nimmt IMMER die ganze Zeile. */
.tbgf-grid > .tbgf-card:only-child { grid-column: 1 / -1; }

.tbgf-grid + .tbgf-grid { margin-top: var(--tbgf-gap); }

.tbgf-card {
	background: var(--tbgf-surface);
	border: 1px solid var(--tbgf-border);
	border-radius: var(--tbgf-radius);
	padding: 14px 16px;
	box-shadow: var(--tbgf-shadow);
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.tbgf--look-cyber .tbgf-card { box-shadow: var(--tbgf-shadow), var(--tbgf-glow); }

.tbgf-card--warn { border-color: var(--tbgf-warning); }
.tbgf-card--leer { border-style: dashed; }

.tbgf-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.tbgf-card__head h2, .tbgf-card__head h3 { margin: 0; font-family: var(--tbgf-headline); }
.tbgf-card__body { flex: 1 1 auto; min-width: 0; }

.tbgf-card__foot {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid var(--tbgf-border);
	font-size: .82em;
	color: var(--tbgf-text-faint);
	display: flex;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

/* Kennzahlkachel */
.tbgf-kpi__value {
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-weight: 680;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
	word-break: break-word;
}

.tbgf-kpi__label {
	color: var(--tbgf-text-muted);
	font-size: .82rem;
	display: flex;
	align-items: center;
	gap: 5px;
}

.tbgf-kpi__sub { font-size: .85rem; color: var(--tbgf-text-faint); margin-top: 4px; line-height: 1.45; }

/* Fehlender Wert: sichtbar als Zustand, nicht als Null. */
.tbgf-kpi__value--leer { color: var(--tbgf-text-faint); font-weight: 500; font-size: 1rem; }

/* ── Bedienelemente ────────────────────────────────────────────────── */

body .tbgf .tbgf-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 7px 14px !important;
	border-radius: var(--tbgf-radius-sm) !important;
	border: 1px solid var(--tbgf-border-strong) !important;
	background: var(--tbgf-surface-2) !important;
	color: var(--tbgf-text) !important;
	font-family: inherit !important;
	font-size: .9rem !important;
	font-weight: 550 !important;
	line-height: 1.35 !important;
	cursor: pointer;
	text-decoration: none;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	min-height: 36px;
}

body .tbgf .tbgf-btn:hover { border-color: var(--tbgf-accent) !important; }
body .tbgf .tbgf-btn:focus-visible { outline: 2px solid var(--tbgf-accent); outline-offset: 2px; }

body .tbgf .tbgf-btn--primary {
	background: var(--tbgf-accent) !important;
	border-color: var(--tbgf-accent) !important;
	color: var(--tbgf-on-accent) !important;
}

body .tbgf .tbgf-btn[disabled] { opacity: .55; cursor: not-allowed; }

body .tbgf input[type="number"],
body .tbgf input[type="text"] {
	background: var(--tbgf-surface-2) !important;
	color: var(--tbgf-text) !important;
	border: 1px solid var(--tbgf-border-strong) !important;
	border-radius: var(--tbgf-radius-sm) !important;
	padding: 6px 10px !important;
	font-family: inherit !important;
	font-size: .9rem !important;
	min-height: 34px;
	max-width: 100%;
}

/* Schalterzeile in den Alarmen */
.tbgf-regel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--tbgf-border);
}

.tbgf-regel:last-child { border-bottom: none; }
.tbgf-regel__titel { flex: 1 1 260px; min-width: 0; }
.tbgf-regel__titel strong { display: block; }
.tbgf-regel__felder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tbgf-regel__felder label { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--tbgf-text-muted); }
.tbgf-regel__felder input[type="number"], .tbgf-regel__felder input[type="text"] { width: 6.5em; }

.tbgf-schalter { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }

/* ── Filterleiste ───────────────────────────────────────────────────
   ⚠ EINE ZEILE. Die Auswahlfelder erben vom Theme-Skin eine Breitenregel
   (`width:100%`), dadurch sprengte jedes von ihnen eine eigene Zeile.
   Deshalb hier ausdruecklich `width:auto` mit Vorrang und feste Flex-Basis.
   Passt es nicht mehr, rollt die Leiste seitlich in sich selbst — die Seite
   bekommt dadurch keinen waagerechten Ueberlauf. */

.tbgf-zeit {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: var(--tbgf-gap);
	padding: 7px 10px;
	background: var(--tbgf-surface);
	border: 1px solid var(--tbgf-border);
	border-radius: var(--tbgf-radius);

	/* ⚠ KEIN overflow-x: auto.
	   Vorher rollte die Leiste seitlich in sich selbst — zusammen mit
	   `flex: 0 0 auto` an JEDEM Kind konnte nichts schrumpfen, also lief sie
	   immer ueber und zeigte dauerhaft einen Balken, auch wenn rechts noch
	   Platz war. Jetzt duerfen die Auswahlfelder schrumpfen; ein Balken kann
	   damit gar nicht mehr entstehen. */
	/* `!important`, weil tbgf-app.css als 3. von 17 Stylesheets laedt —
	   vierzehn kommen danach. Ohne Vorrang koennte eine spaetere Datei den
	   Balken zurueckholen. GEMESSEN: ohne diese Zeile gewann heute niemand
	   dagegen, aber die Ladereihenfolge ist nichts, worauf man sich verlaesst. */
	overflow: visible !important;
	min-width: 0;
	justify-content: flex-start;
}

.tbgf-zeit__gruppe {
	display: flex;
	flex: 0 1 auto;
	min-width: 0;
	gap: 3px;
	padding-right: 12px;
	/* Schiebt alles Folgende an den rechten Rand: Zeitknoepfe links,
	   Auswahlfelder rechts — dicht nebeneinander, nicht verteilt. */
	margin-right: auto;
	border-right: 1px solid var(--tbgf-border);
}

body .tbgf .tbgf-chip {
	flex: 0 0 auto;
	padding: 4px 10px !important;
	border-radius: 999px !important;
	border: 1px solid var(--tbgf-border-strong) !important;
	background: var(--tbgf-surface-2) !important;
	color: var(--tbgf-text-muted) !important;
	font-family: inherit !important;
	font-size: .78rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	min-height: 0 !important;
	height: auto !important;
	width: auto !important;
	white-space: nowrap;
	cursor: pointer;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
}

body .tbgf .tbgf-chip:hover { color: var(--tbgf-text) !important; border-color: var(--tbgf-accent) !important; }
body .tbgf .tbgf-chip:focus-visible { outline: 2px solid var(--tbgf-accent); outline-offset: 1px; }

body .tbgf .tbgf-chip.is-active {
	background: var(--tbgf-accent) !important;
	border-color: var(--tbgf-accent) !important;
	color: var(--tbgf-on-accent) !important;
}

/* ⚠ GEMESSEN am ausgelieferten Theme-CSS dieser Seite:
       label  { display:flex; align-items:center; margin-bottom:.5em; width:100%; }
   `width:100%` liess JEDES Feld die ganze Zeile beanspruchen — daher die
   grossen Luecken zwischen den drei Feldern. `margin-bottom` hob das Feld
   gegen seine Beschriftung an — daher der Versatz.
   Beides muss hier ausdruecklich zurueckgenommen werden; `display` allein
   reichte nicht. */
body .tbgf .tbgf-zeit__wahl {
	display: inline-flex !important;
	flex: 0 0 auto;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.tbgf-zeit__titel {
	flex: 0 0 auto;
	font-size: .74rem;
	color: var(--tbgf-text-faint);
	white-space: nowrap;
}

/* Der entscheidende Teil: Breite NICHT vom Skin erben. */
body .tbgf .tbgf-zeit__wahl select {
	/* ⚠ Das Theme setzt `select { margin: 0 0 1em }`. Ohne diese Ruecknahme
	   ist die Randbox des Feldes hoeher als seine sichtbare Flaeche und
	   `align-items: center` schiebt es nach oben — die Beschriftung rutscht
	   darunter. Genau das war im Bild zu sehen. */
	margin: 0 !important;
	flex: 0 1 9.5em;
	width: auto !important;
	min-width: 5em !important;
	max-width: 12em !important;
	background: var(--tbgf-surface-2) !important;
	color: var(--tbgf-text) !important;
	border: 1px solid var(--tbgf-border-strong) !important;
	border-radius: var(--tbgf-radius-sm) !important;
	padding: 4px 8px !important;
	font-family: inherit !important;
	font-size: .78rem !important;
	line-height: 1.3 !important;
	min-height: 0 !important;
	height: auto !important;
	box-shadow: none !important;
}

/* Unter 700px reicht eine Zeile nicht mehr aus. Dann bricht die Leiste
   IN SICH um — die Seite selbst bekommt dadurch keinen waagerechten
   Ueberlauf, und das ist die Regel, die Vorrang hat. */
@media (max-width: 700px) {
	.tbgf-zeit { flex-wrap: wrap; }
	.tbgf-zeit__gruppe { flex: 1 1 100%; border-right: 0; padding-right: 0; margin-right: 0; flex-wrap: wrap; }
	body .tbgf .tbgf-zeit__wahl { flex: 1 1 auto; }
	body .tbgf .tbgf-zeit__wahl select { flex: 1 1 auto; max-width: none !important; }
}

/* ── Abzeichen ─────────────────────────────────────────────────────── */

.tbgf-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: .74rem;
	font-weight: 600;
	line-height: 1.6;
	border: 1px solid var(--tbgf-border-strong);
	color: var(--tbgf-text-muted);
	background: var(--tbgf-surface-2);
	white-space: nowrap;
}

.tbgf-badge--ok { color: var(--tbgf-success); border-color: var(--tbgf-success); }
.tbgf-badge--warn { color: var(--tbgf-warning); border-color: var(--tbgf-warning); }
.tbgf-badge--danger { color: var(--tbgf-danger); border-color: var(--tbgf-danger); }
.tbgf-badge--info { color: var(--tbgf-info); border-color: var(--tbgf-info); }
.tbgf-badge--accent { color: var(--tbgf-accent); border-color: var(--tbgf-accent); }

/* ── Tabellen ──────────────────────────────────────────────────────── */

.tbgf-tablewrap {
	overflow-x: auto;
	border: 1px solid var(--tbgf-border);
	border-radius: var(--tbgf-radius);
	background: var(--tbgf-surface);
	-webkit-overflow-scrolling: touch;
}

.tbgf-table {
	width: 100%;
	border-collapse: collapse;
	/* ⚠ GEMESSEN waren es 13,4 px. Der Kontrast war in Ordnung (15,6), die
	   GROESSE war die Anstrengung — hier wird am laengsten gelesen. */
	font-size: .94rem;
	line-height: 1.5;
	min-width: 640px;
}

.tbgf-table th,
.tbgf-table td {
	padding: 11px 12px;
	text-align: left;
	border-bottom: 1px solid var(--tbgf-border);
	vertical-align: middle;
	white-space: nowrap;
}

.tbgf-table th {
	background: var(--tbgf-surface-2);
	color: var(--tbgf-text-muted);
	font-weight: 620;
	font-size: .86rem;
}

.tbgf-table tbody tr:hover { background: var(--tbgf-surface-2); }
.tbgf-table tbody tr:last-child td { border-bottom: none; }
.tbgf-table td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.tbgf-table td.is-wrap { white-space: normal; min-width: 220px; }

/* Innerhalb einer Karte darf die Tabelle nicht rollen müssen. */
.tbgf-card .tbgf-tablewrap { border: none; border-radius: 0; background: transparent; overflow-x: auto; }
/* ⚠ DIESE Regel gewinnt ueber `.tbgf-table` — jede Tabelle steht in einer
   Karte, und der zusammengesetzte Waehler ist spezifischer. Wer die
   Schriftgroesse der Tabellen aendern will, muss HIER hin. */
.tbgf-card .tbgf-table { min-width: 0; font-size: .92rem; line-height: 1.5; }
.tbgf-card .tbgf-table th, .tbgf-card .tbgf-table td { padding: 10px 10px; }

/* ── Zeilenliste (Kapitalflüsse) ───────────────────────────────────── */

.tbgf-zeile {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--tbgf-border);
}

.tbgf-zeile:last-child { border-bottom: none; }
.tbgf-zeile__wert { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbgf-zeile--summe { font-weight: 700; border-top: 2px solid var(--tbgf-border-strong); margin-top: 4px; padding-top: 10px; }

/* ── Zustände ──────────────────────────────────────────────────────── */

.tbgf-loading, .tbgf-empty {
	padding: 34px 20px;
	text-align: center;
	color: var(--tbgf-text-muted);
	border: 1px dashed var(--tbgf-border-strong);
	border-radius: var(--tbgf-radius);
	background: var(--tbgf-surface);
}

.tbgf-empty h3 { color: var(--tbgf-text); }

.tbgf-spinner {
	display: inline-block;
	width: 14px; height: 14px;
	margin-right: 7px;
	border: 2px solid var(--tbgf-border-strong);
	border-top-color: var(--tbgf-accent);
	border-radius: 50%;
	animation: tbgf-spin .8s linear infinite;
	vertical-align: -2px;
}

@keyframes tbgf-spin { to { transform: rotate(360deg); } }

.tbgf-notice {
	padding: 10px 14px;
	border-radius: var(--tbgf-radius-sm);
	border: 1px solid var(--tbgf-border-strong);
	background: var(--tbgf-surface-2);
	margin-bottom: var(--tbgf-gap);
	font-size: .9rem;
}

.tbgf-notice--error { border-color: var(--tbgf-danger); color: var(--tbgf-danger); }
.tbgf-notice--ok { border-color: var(--tbgf-success); color: var(--tbgf-success); }
.tbgf-notice--warn { border-color: var(--tbgf-warning); color: var(--tbgf-warning); }

.tbgf-hinweiszeile {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: 0 0 var(--tbgf-gap);
	padding: 7px 11px;
	border: 1px solid var(--tbgf-border);
	border-left: 3px solid var(--tbgf-warning);
	border-radius: var(--tbgf-radius-sm);
	background: var(--tbgf-surface);
	font-size: .87rem;
	color: var(--tbgf-text-muted);
}

.tbgf-locked {
	padding: 44px 22px;
	text-align: center;
	background: var(--tbgf-surface);
	border: 1px solid var(--tbgf-border);
	border-radius: var(--tbgf-radius);
}

/* ── Diagramme ───────────────────────────────────────────────────────
   KEINE Farbe steht im JavaScript. Alles haengt hier an Klassen, damit die
   Bilder in allen vier Kombinationen aus Look und Hell/Dunkel stimmen. */

.tbgf-chart { width: 100%; display: block; overflow: visible; height: auto; }

/* ⚠ Die Uebersichtsgrafik darf NICHT mitwachsen.
   Eine SVG mit viewBox skaliert ihre Schrift mit der Breite. Seit die Raster
   auf `auto-fit` stehen, ist die Karte volle Breite — die 640er viewBox wurde
   auf rund 1500 px gestreckt, also Zellen UND Beschriftung 2,3-fach.
   Linien- und Balkendiagramme gewinnen durch Breite, eine Matrix nicht:
   sie wird nur gross, nicht lesbarer. */
.tbgf-chart--heat { max-width: 860px; margin-inline: auto; }
.tbgf-chart text { fill: var(--tbgf-text-muted); font-size: 10px; font-family: var(--tbgf-font); }
.tbgf-chart .tbgf-achse { stroke: var(--tbgf-border-strong); stroke-width: 1; }
.tbgf-chart .tbgf-raster { stroke: var(--tbgf-border); stroke-width: 1; opacity: .6; }
.tbgf-chart .tbgf-linie { fill: none; stroke: var(--tbgf-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tbgf-chart .tbgf-punkt { fill: var(--tbgf-accent); }
.tbgf-chart .tbgf-flaeche { fill: var(--tbgf-accent); opacity: .12; }
.tbgf-chart .tbgf-null { stroke: var(--tbgf-danger); stroke-width: 1; stroke-dasharray: 4 3; }
/* Startlinie 100 im Vergleich — der Bezugspunkt, nicht ein Messwert. */
.tbgf-chart .tbgf-basis { stroke: var(--tbgf-text-faint); stroke-width: 1; stroke-dasharray: 2 4; }

/* Reihenfarben im Vergleich. Fuenf reichen — mehr Linien sind in einem Bild
   ohnehin nicht mehr auseinanderzuhalten. */
.tbgf-chart .tbgf-reihe-0 { stroke: var(--tbgf-accent); }
.tbgf-chart .tbgf-reihe-1 { stroke: var(--tbgf-success); }
.tbgf-chart .tbgf-reihe-2 { stroke: var(--tbgf-warning); }
.tbgf-chart .tbgf-reihe-3 { stroke: var(--tbgf-info); }
.tbgf-chart .tbgf-reihe-4 { stroke: var(--tbgf-danger); }

/* Balken: positiv und negativ unterscheiden sich, weil bei Kapitalfluessen
   das VORZEICHEN die Aussage ist (Zufluss gegen Abfluss). */
.tbgf-chart .tbgf-balken--pos { fill: var(--tbgf-success); opacity: .85; }
.tbgf-chart .tbgf-balken--neg { fill: var(--tbgf-danger); opacity: .85; }

/* Fear-&-Greed-Skala */
.tbgf-skala { height: 10px; border-radius: 999px; background: linear-gradient(90deg, #cf222e 0%, #d29922 35%, #9198a1 50%, #3fb950 78%, #1a7f37 100%); position: relative; margin: 12px 0 6px; }
.tbgf-skala__zeiger { position: absolute; top: -4px; width: 3px; height: 18px; background: var(--tbgf-text); border-radius: 2px; transform: translateX(-50%); }
.tbgf-skala__marken { display: flex; justify-content: space-between; font-size: .72rem; color: var(--tbgf-text-faint); }

/* ── Regime-Karte ───────────────────────────────────────────────────
   Vier Felder, jedes mit seiner eigenen Quelle und Frequenz. Ein Feld ohne
   Wert bleibt sichtbar und sagt „unbekannt" — es verschwindet nicht. */

.tbgf-regime__raster {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}

.tbgf-regime__feld {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-radius: var(--tbgf-radius-sm);
	border: 1px solid var(--tbgf-border);
	background: var(--tbgf-surface-2);
	border-left-width: 3px;
}

.tbgf-regime__feld.is-hoch { border-left-color: var(--tbgf-success); }
.tbgf-regime__feld.is-tief { border-left-color: var(--tbgf-danger); }
.tbgf-regime__feld--leer   { border-left-color: var(--tbgf-border-strong); opacity: .75; }

.tbgf-regime__name   { font-size: .8rem; color: var(--tbgf-text-muted); }
.tbgf-regime__wert   { font-size: 1.25rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.tbgf-regime__quelle { font-size: .72rem; color: var(--tbgf-text-faint); }

/* ── Heatmap ────────────────────────────────────────────────────────
   Die Deckkraft kommt aus dem z-Wert und steht deshalb als Inline-Stil am
   Element — die FARBE bleibt hier, damit sie dem Look folgt. */

.tbgf-chart .tbgf-zelle--pos  { fill: var(--tbgf-success); }
.tbgf-chart .tbgf-zelle--neg  { fill: var(--tbgf-danger); }
.tbgf-chart .tbgf-zelle--leer { fill: var(--tbgf-surface-3); opacity: .5; }
.tbgf-chart .tbgf-zelle__text { fill: var(--tbgf-text); font-size: 9.5px; font-variant-numeric: tabular-nums; }

/* ── Termin-Marker ──────────────────────────────────────────────────
   Liegen als eigenes SVG ueber der Zeitreihe, damit die Linie unveraendert
   bleibt und ein Ausfall des Kalenders nichts am Chart aendert. */

.tbgf-chart--marker { position: absolute; inset: 0; pointer-events: none; }
.tbgf-chart .tbgf-marker { stroke-width: 1; stroke-dasharray: 3 3; pointer-events: stroke; }
.tbgf-chart .tbgf-marker--high { stroke: var(--tbgf-warning); opacity: .75; }
.tbgf-chart .tbgf-marker--mid  { stroke: var(--tbgf-text-faint); opacity: .5; }
.tbgf-chart .tbgf-marker--low  { stroke: var(--tbgf-border-strong); opacity: .4; }

.tbgf-chartbox { position: relative; }

/* ── Fussbereich ───────────────────────────────────────────────────── */

.tbgf-foot {
	margin-top: calc(var(--tbgf-gap) * 1.5);
	padding-top: var(--tbgf-gap);
	border-top: 1px solid var(--tbgf-border);
	font-size: .85rem;
	color: var(--tbgf-text-faint);
}

.tbgf-foot summary { cursor: pointer; color: var(--tbgf-text-muted); }
.tbgf-foot ul { margin: 8px 0 0; padding-left: 20px; }
.tbgf-foot li { margin-bottom: 3px; }

/* ── Kleine Bildschirme ────────────────────────────────────────────── */

@media (max-width: 900px) {
	/* align-items: flex-start bestimmt in Spaltenrichtung die BREITE — im
	   Handy-Layout wüchse die Hauptspalte sonst auf Inhaltsbreite und liefe
	   aus dem Bild. Deshalb überall stretch. */
	.tbgf-hero, .tbgf-grid { align-items: stretch; }

	.tbgf { padding: 12px; font-size: 14.5px; }
	.tbgf-hero { padding: 10px; flex-direction: column; align-items: stretch; }
	.tbgf-stand { white-space: normal; }
	.tbgf-grid, .tbgf-grid--wide, .tbgf-grid--kpi { grid-template-columns: 1fr; }

	.tbgf-shell { flex-direction: column; align-items: stretch; }
	.tbgf-nav { position: static; width: 100%; flex: none; }
	.tbgf-content { width: 100%; max-width: 100%; }
	body .tbgf .tbgf-nav__toggle { display: inline-flex !important; }
	.tbgf-nav__list { display: none; margin-top: 8px; }
	.tbgf-nav__list.is-open { display: flex; }

	.tbgf-regel { flex-direction: column; align-items: stretch; }
}

/* ══ Analyse-Leiste (v1.2) ═══════════════════════════════════════════════
 *
 * Die Reihenauswahl kann lang werden. Sie bekommt deshalb eine eigene
 * Bildlaufflaeche statt die Seite zu strecken — dieselbe Entscheidung wie
 * bei der Filterleiste oben.
 */
.tbgf-analyse-leiste {
	background: var(--tbgf-surface-2);
	border: 1px solid var(--tbgf-border);
	border-radius: var(--tbgf-radius);
	padding: 12px 14px;
	margin-bottom: var(--tbgf-gap);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tbgf-analyse-leiste__wahl {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.tbgf-wahlgruppe { flex: 0 0 auto; min-width: 0; }

.tbgf-wahlgruppe__titel {
	display: block;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--tbgf-text-faint);
	margin-bottom: 5px;
}

.tbgf-wahlgruppe__felder { display: flex; flex-wrap: wrap; gap: 5px; max-width: 46em; }

/* ── Infozeichen und Erklärfenster ───────────────────────────────────── */

.tbgf-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	margin-left: 5px;
	padding: 0;
	border: 1px solid var(--tbgf-border-strong);
	border-radius: 50%;
	background: transparent;
	color: var(--tbgf-text-faint);
	font-family: var(--tbgf-font);
	font-size: 10px;
	font-weight: 700;
	font-style: italic;
	line-height: 1;
	cursor: help;
	vertical-align: middle;
	flex: 0 0 auto;
	transition: color .12s ease, border-color .12s ease;
}

.tbgf-info:hover,
.tbgf-info[aria-expanded="true"] {
	color: var(--tbgf-accent);
	border-color: var(--tbgf-accent);
}

.tbgf-info:focus-visible { outline: 2px solid var(--tbgf-accent); outline-offset: 2px; }

/* Das Erklärfenster haengt am <body>, damit es nicht von `overflow` einer
   Karte abgeschnitten wird. Deshalb absolut zur Seite, nicht zur Karte. */
.tbgf-pop {
	/* `fixed`, nicht `absolute`: die Ausrichtung rechnet in Fensterkoordinaten.
	   Zwei Bezugssysteme in einer Formel waren der Fehler davor. */
	position: fixed;
	z-index: 9999;
	width: min(360px, calc(100vw - 24px));
	max-height: 60vh;
	overflow-y: auto;
	padding: 12px 32px 12px 14px;
	/* DECKEND — nicht `--tbgf-surface-3`. Die Flaechen des Plugins sind
	   durchscheinend; ein Fenster ueber Text muss es zwingend nicht sein. */
	/* Der zweite Wert greift, wenn die Token nicht uebertragen werden konnten —
	   deckend ist hier Pflicht, nicht Geschmack. */
	background: var(--tbgf-pop-bg, #262c36);
	border: 1px solid var(--tbgf-border-strong);
	border-radius: var(--tbgf-radius);
	box-shadow: 0 10px 34px rgba(0, 0, 0, .55);
	color: var(--tbgf-text);
	font-size: .84rem;
	line-height: 1.55;
}

.tbgf-pop p { margin: 0 0 8px; }
.tbgf-pop p:last-of-type { margin-bottom: 0; }

.tbgf-pop__zu {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--tbgf-text-faint);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.tbgf-pop__zu:hover { color: var(--tbgf-text); }

/* Bereichserklärung — dieselbe Hülle wie die Auswahlfelder. */
.tbgf-bereichshilfe { margin-bottom: var(--tbgf-gap); }
.tbgf-bereichshilfe__inhalt {
	padding: 0 14px 12px;
	border-top: 1px solid var(--tbgf-border);
	font-size: .86rem;
	line-height: 1.6;
	color: var(--tbgf-text-muted);
}
.tbgf-bereichshilfe__inhalt p { margin: 10px 0 0; }
.tbgf-bereichshilfe__nutzen { color: var(--tbgf-text); }

/* ── Klappbare Auswahlfelder ─────────────────────────────────────────── */
.tbgf-klapp {
	background: var(--tbgf-surface-2);
	border: 1px solid var(--tbgf-border);
	border-radius: var(--tbgf-radius);
	margin-bottom: var(--tbgf-gap);
}

.tbgf-klapp > summary {
	cursor: pointer;
	padding: 9px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .84rem;
	color: var(--tbgf-text-muted);
	list-style: none;
	user-select: none;
}

.tbgf-klapp > summary::-webkit-details-marker { display: none; }

/* Eigener Pfeil — der Standardmarker sitzt je nach Browser woanders. */
.tbgf-klapp > summary::before {
	content: '▸';
	color: var(--tbgf-accent);
	transition: transform .12s ease;
	display: inline-block;
}

.tbgf-klapp[open] > summary::before { transform: rotate(90deg); }
.tbgf-klapp > summary:hover { color: var(--tbgf-text); }
.tbgf-klapp > summary strong { color: var(--tbgf-text); font-weight: 600; }
.tbgf-klapp__stand { margin-left: auto; font-size: .78rem; color: var(--tbgf-text-faint); }

/* Die Leiste im Inneren traegt den Rahmen nicht doppelt. */
.tbgf-klapp .tbgf-analyse-leiste {
	background: none;
	border: 0;
	border-top: 1px solid var(--tbgf-border);
	border-radius: 0;
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.tbgf-klapp > summary::before { transition: none; }
}

/* ⚠ `.tbgf-wahl` ist ein <label>, und das Theme setzt `label { width:100%;
   margin-bottom:.5em }`. Ohne ausdrueckliche Ruecknahme belegt JEDE Marke
   eine eigene, seitenbreite Zeile — bei dreizehn Laendern wird daraus eine
   halbe Bildschirmseite. Dieselbe Regel wie in der Filterleiste; hier war sie
   uebersehen. */
body .tbgf .tbgf-wahl {
	display: inline-flex !important;
	width: auto !important;
	margin: 0 !important;
	flex: 0 0 auto;
	align-items: center;
	gap: 5px;
	font-size: .82rem;
	line-height: 1.2;
	padding: 4px 9px;
	border: 1px solid var(--tbgf-border);
	border-radius: 999px;
	background: var(--tbgf-surface);
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .12s ease, color .12s ease;
}

.tbgf-wahl:hover { border-color: var(--tbgf-border-strong); }
.tbgf-wahl.is-an { border-color: var(--tbgf-accent); color: var(--tbgf-accent); }
.tbgf-wahl input { margin: 0; }

.tbgf-analyse-leiste__regler {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	border-top: 1px solid var(--tbgf-border);
	padding-top: 10px;
}

.tbgf-regler { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; }
.tbgf-regler input[type="range"] { width: 190px; accent-color: var(--tbgf-accent); }
.tbgf-regler output { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--tbgf-text-muted); min-width: 5.5em; }

/* Termin-Marker liegen ueber der Zeitreihe, ohne sie zu verschieben. */
.tbgf-overlay { position: relative; }
.tbgf-overlay .tbgf-chart--marker {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Umschalter Bestand / Veraenderung */
.tbgf-umschalter { display: inline-flex; gap: 4px; }
.tbgf-btn--klein { padding: 3px 9px; font-size: .78rem; }
.tbgf-btn.is-an { border-color: var(--tbgf-accent); color: var(--tbgf-accent); }

.tbgf-badge--neg { border-color: var(--tbgf-danger); color: var(--tbgf-danger); }

/* ══ Arbeitsblatt ════════════════════════════════════════════════════════ */
.tbgf-notiz-neu {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--tbgf-border);
}

.tbgf-notiz-neu input,
.tbgf-notiz-neu textarea {
	width: 100%;
	background: var(--tbgf-surface-3);
	border: 1px solid var(--tbgf-border);
	border-radius: var(--tbgf-radius-sm);
	color: var(--tbgf-text);
	font: inherit;
	padding: 7px 10px;
	resize: vertical;
}

.tbgf-notiz-neu input:focus,
.tbgf-notiz-neu textarea:focus { outline: 2px solid var(--tbgf-accent); outline-offset: 1px; }
.tbgf-notiz-neu .tbgf-btn { align-self: flex-start; }

.tbgf-notiz { padding: 10px 0; border-bottom: 1px solid var(--tbgf-border); }
.tbgf-notiz:last-child { border-bottom: 0; }

.tbgf-notiz__kopf {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.tbgf-notiz__kopf .tbgf-btn { margin-left: auto; }
.tbgf-notiz__text { font-size: .9rem; line-height: 1.5; color: var(--tbgf-text-muted); }
.tbgf-notiz__text p { margin: 0 0 6px; }

@media (max-width: 900px) {
	.tbgf-wahlgruppe__felder { max-width: 20em; }
	.tbgf-regler input[type="range"] { width: 130px; }
	.tbgf-analyse-leiste__regler { gap: 10px; }
}

@media (min-width: 901px) and (max-width: 1200px) {
	.tbgf-nav { flex-basis: 196px; }
	.tbgf-nav__link { font-size: .88rem; padding: 8px 10px; }
}

@media (max-width: 560px) {
	.tbgf-table { min-width: 520px; }
	.tbgf-kpi__value { font-size: 1.15rem; }
	body .tbgf .tbgf-btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.tbgf-spinner { animation: none !important; border-top-color: var(--tbgf-accent); }
	.tbgf-quick { scroll-behavior: auto; }
}

/* Handy (02.11.2026): Etikett „1 J · Wöchentlich · FRED + Treasury + NY Fed“ (nowrap)
   ragte im nicht umbrechenden Kartenkopf bis 412px bei 375px. */
@media (max-width: 560px) {
	.tbgf-card__head { flex-wrap: wrap; }
	.tbgf-badge { white-space: normal; max-width: 100%; }
}
