/* WiBoSim – Handelsoberfläche in Dunkel (Standard) und Hell (data-theme="light" auf <html>, gesetzt von js/theme-init.js bzw. js/theme.js). Keine externen Schriften/Bibliotheken. */
:root {
  --bg: #0b0f17; --panel: #121826; --panel2: #182033; --panel3: #1e2840; --line: #26314a; --text: #e3e9f5; --muted: #95a1b8;
  --up: #2bd36b; --down: #ff5c5c; --accent: #4c8dff; --gold: #f5b942; --focus: #ffd166;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --radius: 10px;
  --link: #8fb6ff; --info: #a9c6ff; --down-soft: #ff8b8b; --violet: #c4b5fd; --violet-bar: #c084fc;
  --buy: #11803d; --sell: #d23c3c; --on-signal: #0b0f17; --strong: #fff;
  --row-line: #1c2538; --row-hover: #161f31; --tip-bg: #0d1422; --panel-glass: rgba(18,24,38,.96); --recap-from: #18233d;
  --overlay: rgba(0,0,0,.62); --shadow: rgba(0,0,0,.45); --shadow-lg: rgba(0,0,0,.6);
  --seg-on: var(--panel3); --seg-shadow: none;
  /* Flächen mit weißer Schrift (Knöpfe, Zähler): eigene, dunklere Töne für WCAG AA */
  --accent-fill: #2f6fe4; --down-fill: #d93636;
  color-scheme: dark;
}
/* Helles Farbschema: Texte mindestens WCAG AA auf Panel- und Hintergrundflächen */
:root[data-theme="light"] {
  --bg: #f2f4f8; --panel: #ffffff; --panel2: #f6f8fb; --panel3: #e9eef5; --line: #d3dae6; --text: #141b2b; --muted: #566175;
  --up: #0b6b34; --down: #b82424; --accent: #1f5bd8; --gold: #855700; --focus: #c25400;
  --link: #1d55c8; --info: #1e4fb8; --down-soft: #b42318; --violet: #6d28d9; --violet-bar: #9333ea;
  --buy: #12803f; --sell: #c22b2b; --on-signal: #fff; --strong: #000;
  --row-line: #e6eaf1; --row-hover: #f1f5fb; --tip-bg: #fff; --panel-glass: rgba(255,255,255,.96); --recap-from: #e4ecfb;
  --overlay: rgba(15,23,42,.45); --shadow: rgba(15,23,42,.14); --shadow-lg: rgba(15,23,42,.22);
  --seg-on: #fff; --seg-shadow: 0 1px 2px rgba(15,23,42,.18), 0 0 0 1px var(--line);
  --accent-fill: #1f5bd8; --down-fill: #b82424;
  color-scheme: light;
}
/* Design-Tokens: Schriftskala, Radien, Steuerelement-Größen (Maus kompakt, Finger mindestens 44 px) */
:root {
  --fs-xs: 11px; --fs-sm: 12px; --fs-base: 14px; --fs-md: 16px; --fs-lg: 19px; --fs-xl: 24px; --fs-2xl: 32px;
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
  --ctl-h-sm: 26px; --ctl-h: 32px; --ctl-h-lg: 40px; --ctl-px: 12px; --ctl-fs: 13px; --ctl-fs-sm: 12px;
  --num-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (pointer: coarse) {
  :root { --fs-base: 15px; --ctl-h-sm: 36px; --ctl-h: 44px; --ctl-h-lg: 48px; --ctl-px: 16px; --ctl-fs: 15px; --ctl-fs-sm: 13px; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--top-h, var(--hdr-h, 56px)) + 8px); }
html, body { margin: 0; background: var(--bg); color: var(--text); font: var(--fs-base)/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { min-height: 100vh; min-height: 100dvh; }
html.modal-open, html.modal-open body { overflow: hidden; }
button, .btn, [role=tab] { touch-action: manipulation; }
button, .btn { -webkit-user-select: none; user-select: none; }
.scroll, .scroll-x, .scroll-y, .modal, .bracket { overscroll-behavior: contain; }
h1, h2, h3 { margin: 0; }
p { margin: 6px 0; }
a { color: var(--link); }
button { font: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
/* Textfelder: Radios, Häkchen und Regler ausgenommen (sonst werden sie 38 px hoch und so breit wie die Zeile) */
input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file])), select, textarea {
  font: inherit; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; width: 100%; min-height: calc(var(--ctl-h) + 2px); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; padding: 0; flex: none; accent-color: var(--accent); vertical-align: -3px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }
:is(input, select, textarea):focus-visible:not([type=checkbox]):not([type=radio]) { outline: 0 !important; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
/* iOS zoomt beim Fokussieren von Feldern unter 16 px */
@media (pointer: coarse) { input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; } }
input:user-invalid { border-color: var(--down); }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 10px 0; min-inline-size: 0; min-width: 0; }
legend { color: var(--muted); padding: 0 4px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 6px 8px; position: sticky; top: 0; background: var(--panel); z-index: 1; }
td { padding: 6px 8px; border-top: 1px solid var(--row-line); vertical-align: middle; }
th.num, td.num, .num { text-align: right; font-family: var(--num-font); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); } .muted { color: var(--muted); } .gold-t { color: var(--gold); }
.warn { color: var(--gold); }
.small { font-size: 12px; } .block { display: block; } .center { text-align: center; } .pad { padding: 10px 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 4px; background: var(--accent-fill); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- Schaltflächen */
/* Knöpfe: ein Rand ist immer da (transparent), damit alle Varianten gleich hoch sind. Größen über --ctl-* (Maus 26/32/40, Finger 36/44/48) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent-fill); color: #fff; border: 1px solid transparent; border-radius: var(--r-sm); padding: 0 var(--ctl-px); font-size: var(--ctl-fs); line-height: 1.2; font-weight: 600; text-decoration: none; min-height: var(--ctl-h); }
.btn:hover:not(:disabled) { filter: brightness(1.1); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.small { padding: 0 10px; font-size: var(--ctl-fs-sm); min-height: var(--ctl-h-sm); }
.btn.buy { background: var(--buy); } .btn.sell { background: var(--sell); }
.btn.wide { width: 100%; padding: 0 12px; min-height: var(--ctl-h-lg); font-size: 15px; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; font: inherit; }
.plink { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.plink:hover { color: var(--link); }
.icon-btn { position: relative; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 34px; height: 34px; display: grid; place-items: center; color: var(--text); }
.icon-btn .count { position: absolute; top: -6px; right: -6px; background: var(--down-fill); color: #fff; border-radius: 10px; font-size: 12px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; font-weight: 700; }
.theme-ic { display: inline-flex; line-height: 1; }
.seg .theme-ic svg { width: 16px; height: 16px; }
.seg button:has(.theme-ic) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--down); margin-left: 4px; vertical-align: middle; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-form { display: flex; gap: 8px; margin-bottom: 10px; }
.inline-form input { flex: 1; }
.push { margin-left: auto; align-self: center; }

/* ---------------------------------------------------------------- Kopfzeile */
header.top { display: flex; align-items: center; gap: 18px; padding: max(6px, var(--safe-t)) max(14px, var(--safe-r)) 6px max(14px, var(--safe-l)); min-height: 56px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: .4px; white-space: nowrap; }
.logo-t > span { color: var(--accent); }
.phase { display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px 4px 10px; min-width: 0; flex: 0 1 auto; }
.phase-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.phase[data-phase="continuous"] .phase-dot { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 20%, transparent); }
.phase[data-phase="opening"] .phase-dot, .phase[data-phase="closing"] .phase-dot { background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.phase[data-phase="preopen"] .phase-dot { background: var(--link); }
.phase.stale .phase-dot { background: var(--muted); box-shadow: none; }
.phase.stale .phase-txt b { color: var(--muted); }
.phase-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.phase-txt b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phase-txt small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stat { display: flex; flex-direction: column; line-height: 1.2; }
.stat small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.stat b { font-family: var(--num-font); font-variant-numeric: tabular-nums; font-weight: 650; font-size: 14px; white-space: nowrap; }
.stat-btn { background: none; border: 1px solid transparent; border-radius: 8px; padding: 2px 8px; text-align: left; }
.stat-btn:hover { border-color: var(--line); }
.chip { display: inline-block; background: var(--panel3); border-radius: 12px; padding: 2px 9px; font-size: 12px; color: var(--muted); }
.chip.new { background: var(--accent-fill); color: #fff; }
.chip.pos { color: var(--up); } .chip.neg { color: var(--down); }
.spacer { flex: 1; }
.conn { color: var(--gold); font-size: 12px; }

.banner { padding: 8px 16px; background: color-mix(in srgb, var(--accent) 10%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 13px; }
.banner.gold { background: color-mix(in srgb, var(--gold) 12%, transparent); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.banner-in { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); font-size: 13px; }
.banner-in.down-b { background: color-mix(in srgb, var(--down) 10%, transparent); border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.stock-col .banner-in { margin: 0 14px 8px; }

.mainnav { display: flex; gap: 2px; padding: 0 max(10px, var(--safe-r)) 0 max(10px, var(--safe-l)); background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mainnav button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 12px; white-space: nowrap; font-weight: 600; flex: none; }
.mainnav button:hover { color: var(--text); }
.mainnav button[aria-current="page"] { color: var(--text); border-color: var(--accent); }

/* ---------------------------------------------------------------- Ansichten */
main { padding: 10px max(10px, var(--safe-r)) 10px max(10px, var(--safe-l)); outline: none; }
.view { display: none; }
body[data-view="markt"] #v-trade, body[data-view="handeln"] #v-trade { display: grid; }
body[data-view="depot"] #v-depot, body[data-view="termine"] #v-termine, body[data-view="parlament"] #v-parlament,
body[data-view="battles"] #v-battles, body[data-view="clans"] #v-clans, body[data-view="fortschritt"] #v-fortschritt, body[data-view="community"] #v-community,
body[data-view="news"] #v-news, body[data-view="hilfe"] #v-hilfe, body[data-view="mehr"] #v-mehr, body[data-view="heute"] #v-heute { display: block; }
.page { max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

#v-trade { grid-template-columns: 290px minmax(0, 1fr) 340px; gap: 10px; align-items: start; }
.market-col { position: sticky; top: calc(var(--top-h, 104px) + 8px); max-height: calc(100vh - var(--top-h, 104px) - 20px); max-height: calc(100dvh - var(--top-h, 104px) - 20px); }
.stock-col, .ticket-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sticky-trade { display: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; }
.card-h { margin: 0; padding: 10px 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.h-inline { font-size: 13px; display: inline; }
.card .body { padding: 12px; min-height: 0; }
.card .body.flush { padding: 0; }
.scroll { overflow: auto; }
.scroll-x { overflow-x: auto; }
.scroll-y { max-height: 70vh; max-height: 70dvh; overflow-y: auto; }
.h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 14px 0 6px; }
.h4:first-child { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.grid2.tight { gap: 16px; margin: 10px 0; }
.grid3 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.grid-pa { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 10px; align-items: start; max-width: 1300px; }
.grid-pa .pa-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.field { margin-bottom: 9px; }
.field label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.check { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.check input { flex: none; }
.err-line { color: var(--down); min-height: 1em; font-size: 13px; }
.lead { font-size: 15px; }

/* Marktliste */
.mlist td { padding: 6px 4px; }
.mlist td:first-child { padding-left: 6px; }
/* Marktliste: feste Spaltenbreiten – Kurs und Änderung bleiben immer sichtbar, der Name kürzt sich */
.mlist { table-layout: fixed; }
.mlist th:nth-child(2) { width: 64px; } .mlist th:nth-child(3) { width: 84px; }
.mlist td.num { font-size: 13px; }
.mlist td:first-child { overflow: hidden; }
.mlist tr { cursor: pointer; }
.mlist tr:hover td { background: var(--row-hover); }
.mlist tr.sel td { background: var(--panel3); }
.mlist tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.mlist tr.dim { opacity: .55; }
.sym-btn { background: none; border: 0; padding: 0; text-align: left; display: block; max-width: 100%; }
.sym-btn b { font-size: 14px; }
.sym-btn small { display: block; color: var(--muted); font-size: 12px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.ind { display: block; color: var(--gold); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.mlist .ind { white-space: normal; margin-top: 2px; }
.badge-s { display: inline-block; font-size: 12px; padding: 0 6px; border-radius: 8px; font-weight: 600; background: var(--panel3); color: var(--muted); line-height: 1.6; white-space: nowrap; }
.badge-s.halt { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.badge-s.auction { background: color-mix(in srgb, var(--link) 18%, transparent); color: var(--info); }
.badge-s.earn { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--info); }
.badge-s.div { background: color-mix(in srgb, var(--up) 15%, transparent); color: var(--up); }
.badge-s.short { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down-soft); }
.badge-s.battle { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.badge-s .gl { border: 0; }
/* Kursblitz: nur die Ziffern kurz einfärben (kein Farbblock) */
.flash-up { animation: fu .6s ease-out; } .flash-down { animation: fd .6s ease-out; }
@keyframes fu { from { color: var(--up); } } @keyframes fd { from { color: var(--down); } }

/* Aktienkopf & Chart */
.stock-head { padding: 12px 14px 6px; }
.sh-top { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; position: relative; }
.sh-top > .help-q { order: 9; margin-left: auto; }
.sh-top .sym { font-size: 22px; font-weight: 800; display: inline; margin-right: 8px; }
.px-big { font-size: 22px; font-weight: 700; letter-spacing: -.01em; font-family: var(--num-font); font-variant-numeric: tabular-nums; display: flex; gap: 10px; align-items: baseline; }
.px-big .num { font-family: inherit; }
.px-big .up, .px-big .down, .px-big .flat { font-size: 15px; }
.kv-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px 16px; margin: 10px 0 2px; }
.kv-row div { display: flex; flex-direction: column; min-width: 0; }
.kv-row dt { color: var(--muted); font-size: 12px; white-space: nowrap; }
.kv-row dd { margin: 0; font-size: 13px; font-weight: 600; }
.kv-row dd.num { text-align: left; }
.ind-line { display: inline-block; margin-left: 6px; }
.chart-bar { display: flex; align-items: center; gap: 8px 12px; padding: 0 14px 6px; flex-wrap: wrap; }
.chart-bar .seg.ranges button { padding: 4px 8px; min-width: 36px; }
.chart-stats { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-stats .num { font-family: var(--num-font); }
.chart-note { flex-basis: 100%; }
.chart-wrap { position: relative; height: 360px; margin: 0 6px 8px; }
.chart-wrap.small { height: 220px; margin: 0; }
.chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 2px; margin-bottom: 10px; gap: 2px; }
.seg.w-auto { display: inline-grid; width: auto; }
.seg button { border: 0; background: none; color: var(--muted); padding: 0 12px; border-radius: var(--r-sm); font-weight: 600; min-height: 28px; }
@media (pointer: coarse) { .seg button { min-height: 40px; } }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--seg-on); color: var(--text); box-shadow: var(--seg-shadow); }
.seg.side[data-on="buy"] button[data-side="buy"] { background: var(--buy); color: #fff; }
.seg.side[data-on="sell"] button[data-side="sell"] { background: var(--sell); color: #fff; }
.seg.mini { margin: 0; display: inline-grid; }
.seg.mini button { padding: 0 10px; min-height: 24px; font-size: 12px; }
@media (pointer: coarse) { .seg.mini button { min-height: 34px; font-size: 13px; } }
/* Segment-Schalter aus Radios (Analysen, Hauptversammlung, Fehlerbericht): Kreis unsichtbar, das Label ist die Fläche */
.seg-radio { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 28px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--muted); font-weight: 600; cursor: pointer; text-align: center; line-height: 1.2; white-space: nowrap; }
@media (pointer: coarse) { .seg-radio { min-height: 40px; } }
.seg-radio input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg-radio:hover { color: var(--text); }
.seg-radio:has(input:checked) { background: var(--seg-on); color: var(--text); box-shadow: var(--seg-shadow); }
.seg-radio:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }

.tabs { display: flex; gap: 2px; padding: 4px 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; align-items: flex-end; scrollbar-width: thin; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 0 12px; min-height: 36px; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; flex: none; }
@media (pointer: coarse) { .tabs button { min-height: 44px; } }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.tabs.sub { padding: 0; margin-bottom: 8px; }

dl.kv { display: grid; grid-template-columns: fit-content(50%) minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--muted); hyphens: auto; overflow-wrap: break-word; min-width: 0; }
dl.kv dd { margin: 0; overflow-wrap: break-word; min-width: 0; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; margin: 6px 0 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 12px; color: var(--muted); min-width: 0; }
.bars .b .v { color: var(--text); font-variant-numeric: tabular-nums; }
.bars .b i { display: block; width: 70%; max-width: 44px; border-radius: 3px 3px 0 0; background: var(--up); min-height: 2px; }
.bars .b i.miss { background: var(--down); }
.bars .b i.est { background: repeating-linear-gradient(45deg, transparent 0 4px, color-mix(in srgb, var(--muted) 35%, transparent) 4px 6px); border: 1px dashed var(--muted); }
.an-counts { margin-bottom: 8px; }
.range { position: relative; height: 22px; background: var(--bg); border-radius: 11px; margin: 4px 0; }
.range-bar { position: absolute; top: 7px; height: 8px; background: color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 4px; }
.range-mark { position: absolute; top: 2px; width: 3px; height: 18px; margin-left: -1px; border-radius: 2px; }
.range-mark.med { background: var(--accent); }
.range-mark.cur { background: var(--gold); }
.range-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.rating { font-weight: 700; } .r-Kaufen { color: var(--up); } .r-Verkaufen { color: var(--down); } .r-Halten { color: var(--gold); }
.mini-t td { padding: 3px 6px; font-size: 13px; }
details summary { cursor: pointer; color: var(--link); margin: 6px 0; }
ul.plain { margin: 0; padding-left: 18px; } ul.plain li { margin: 3px 0; }
ul.plain.ana-list, ul.ana-list { list-style: none; padding-left: 0; }
.flow-row { display: grid; grid-template-columns: 130px 1fr 48px; gap: 8px; align-items: center; margin: 5px 0; font-size: 13px; }
.meter { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.meter div { height: 100%; background: var(--accent); }
.meter.ok div { background: var(--up); } .meter.mid div { background: var(--gold); } .meter.hi div { background: var(--down); }
.meter.xp div { background: linear-gradient(90deg, var(--accent), var(--gold)); }

/* Nachrichten & Kommentare */
ul.news, ul.c-list, ul.inbox, ul.events, ul.cal, ul.quests { list-style: none; margin: 0; padding: 0; }
ul.news li { padding: 8px 0; border-bottom: 1px solid var(--row-line); }
.meta { color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
ul.news a { color: var(--text); text-decoration: none; } ul.news a:hover { text-decoration: underline; }
.c-form { margin-bottom: 10px; }
.c-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
ul.c-list li { padding: 8px 0; border-bottom: 1px solid var(--row-line); }
ul.c-list p { margin: 3px 0 0; white-space: pre-wrap; word-break: break-word; }
ul.events li { padding: 5px 0; border-bottom: 1px solid var(--row-line); font-size: 13px; display: flex; gap: 8px; }

/* Ticket, Orderbuch, Umsätze */
.ticket .card-h { text-transform: none; letter-spacing: 0; }
.switch { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; cursor: pointer; }
.switch input { accent-color: var(--accent); }
.qty-quick { display: flex; gap: 6px; margin: -2px 0 8px; }
.qty-quick .btn { flex: 1; }
.lim-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 8px; }
.lim-tools .btn { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; }
.lim-tools .lim-band { flex-basis: 100%; font-variant-numeric: tabular-nums; }
.adv { border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; margin-bottom: 8px; }
.adv[open] { padding-bottom: 6px; }
.hint { color: var(--muted); font-size: 12px; min-height: 16px; margin: 2px 0 6px; }
.hint.after-submit { margin-top: 10px; }
dl.est { margin: 4px 0 10px; }
dl.est div { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); margin: 3px 0; font-size: 13px; }
dl.est dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
dl.est .tot dd { font-weight: 700; }
.book td { padding: 2px 8px; border: 0; font-size: 13px; position: relative; }
.book .barcell { width: 32%; padding: 0 6px 0 0; }
.book .barcell i { display: block; height: 14px; border-radius: 2px; margin-left: auto; }
.book tr.ask .barcell i { background: color-mix(in srgb, var(--down) 35%, transparent); } .book tr.bid .barcell i { background: color-mix(in srgb, var(--up) 35%, transparent); }
.book tr.ask .px-btn { color: var(--down); } .book tr.bid .px-btn { color: var(--up); }
.px-btn { background: none; border: 0; padding: 0; font-variant-numeric: tabular-nums; font-size: 13px; }
.px-btn:hover { text-decoration: underline; }
.book tr.mid td { text-align: center; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; padding: 4px; }
.tape-card .body { max-height: 260px; }
.tape td { font-size: 13px; padding: 2px 8px; border: 0; }
.tape tr.me td { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Depot */
.kpis { display: flex; gap: 10px 26px; flex-wrap: wrap; margin-bottom: 10px; }
.kpis div { display: flex; flex-direction: column; min-width: 90px; }
.kpis small { color: var(--muted); font-size: 12px; }
.kpis b { font-family: var(--num-font); font-variant-numeric: tabular-nums; font-weight: 650; font-size: 15px; }
.kpis.big b { font-size: var(--fs-lg); letter-spacing: -.01em; }
.kpis .rank-l { font-family: inherit; font-size: 13px; font-weight: 500; }
.margin-line { display: grid; grid-template-columns: auto minmax(120px, 300px) auto 1fr; gap: 10px; align-items: center; font-size: 13px; }

/* Kalender */
ul.cal li { display: grid; grid-template-columns: 28px 52px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--row-line); align-items: start; }
ul.cal li.past { opacity: .55; }
ul.cal time { font-variant-numeric: tabular-nums; color: var(--muted); }
.ic { font-size: 16px; text-align: center; }
.probs .prob { display: grid; grid-template-columns: 70px 1fr 48px; gap: 8px; align-items: center; margin: 4px 0; font-size: 13px; }

/* Parlament */
.bill-title { font-size: var(--fs-lg); font-weight: 800; margin: 2px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chips .chip { font-size: 13px; padding: 3px 10px; }
.big-num { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.votebar { height: 10px; background: var(--down); border-radius: 5px; overflow: hidden; margin: 8px 0 4px; }
.votebar div { height: 100%; background: var(--up); }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vote-btns .btn[aria-pressed="true"] { outline: 2px solid var(--strong); outline-offset: 2px; }

/* Battles */
.battle-card { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; text-align: center; background: var(--panel2); border-radius: 10px; padding: 14px; }
.battle-card .vs { font-weight: 800; color: var(--gold); }
.battle-card .ret { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.battle-card .me { border: 1px solid var(--accent); border-radius: 8px; padding: 6px; }
.invite { border-color: var(--gold); }

/* Fortschritt */
.level-box { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.level-box .lvl { font-size: 15px; } .level-box .lvl b { font-size: 28px; color: var(--gold); }
.grow { flex: 1; }
ul.quests li { padding: 8px 0; border-bottom: 1px solid var(--row-line); }
ul.quests li.done { opacity: .7; }
.q-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.q-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.q-foot .linkish { font-size: 12px; cursor: pointer; }
.tiers { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; color: var(--muted); }
.tier { padding: 3px 10px; border-radius: 12px; background: var(--panel3); font-size: 13px; }
.tier.on { background: var(--gold); color: var(--on-signal); font-weight: 700; }
table.league tr.promo td:first-child { box-shadow: inset 3px 0 0 var(--up); }
table.league tr.releg td:first-child { box-shadow: inset 3px 0 0 var(--down); }
tr.me td { background: color-mix(in srgb, var(--accent) 12%, transparent); }
ol.hof { padding-left: 0; list-style: none; } ol.hof li { padding: 3px 0; }
.medal { display: inline-block; width: 28px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ach { background: var(--panel2); border-radius: 8px; padding: 10px; opacity: .45; display: flex; flex-direction: column; gap: 2px; border: 1px solid transparent; }
.ach.on { opacity: 1; border-color: var(--gold); }
.ach .i { font-size: 22px; }
.ach small { color: var(--muted); font-size: 12px; }
.ach-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ach-chip { background: var(--panel3); border-radius: 12px; padding: 2px 10px; font-size: 13px; }
.recap { text-align: center; }
.recap-big { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 8px 0; }
.recap .kpis { justify-content: center; text-align: left; }
.recap-modal { background: linear-gradient(160deg, var(--recap-from), var(--panel) 60%); }

/* Community */
.online { color: var(--up); } .offline { color: var(--muted); }
ul.inbox li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--row-line); }
ul.inbox li.unread b { color: var(--strong); }
ul.inbox p { margin: 2px 0 6px; }

/* Mehr (mobil) */
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.more-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; text-align: left; display: flex; flex-direction: column; gap: 6px; font-weight: 600; min-height: 84px; }
.more-item span { font-size: 22px; }

/* Glossar */
.gl { border-bottom: 1px dotted var(--muted); cursor: help; }
.gl-i { color: var(--muted); cursor: help; font-size: 13px; text-transform: none; }
.gl-tip { position: fixed; z-index: 90; background: var(--tip-bg); border: 1px solid var(--accent); border-radius: 8px; padding: 9px 11px; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 30px var(--shadow); pointer-events: none; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); }

/* Dialoge & Toasts */
/* Dialoge liegen über Meldungen (Toasts), aber unter der Einführung */
.modal-bg { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; z-index: 82; padding: max(12px, var(--safe-t)) max(12px, var(--safe-r)) max(12px, var(--safe-b)) max(12px, var(--safe-l)); overscroll-behavior: contain; }
.modal { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; width: min(460px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px - var(--safe-t) - var(--safe-b)); overflow: auto; outline: none; box-shadow: 0 16px 48px var(--shadow-lg); }
.modal.wide { width: min(720px, 100%); }
.modal h2 { margin: 0 0 12px; font-size: var(--fs-lg); padding-right: 30px; }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 2; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; }
@media (pointer: coarse) { .modal-x { width: 44px; height: 44px; top: 6px; right: 6px; } }
.modal-x:hover { color: var(--text); background: var(--panel2); }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.dlg-actions.top { margin: -4px 0 8px; justify-content: flex-start; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.empty-cta p { margin: 0; }
.toasts { position: fixed; right: max(16px, var(--safe-r)); bottom: max(16px, var(--safe-b)); display: flex; flex-direction: column; gap: 8px; z-index: 80; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
/* Handelsseite: Meldungen links unten, damit sie das Orderticket (rechts) nicht verdecken */
@media (min-width: 761px) { body[data-view="markt"] .toasts, body[data-view="handeln"] .toasts { right: auto; left: 16px; } }
.toast { pointer-events: auto; position: relative; background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 36px 10px 14px; box-shadow: 0 8px 24px var(--shadow); animation: tin .25s; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.toast b { font-size: 13px; }
.toast.err { border-left-color: var(--down); } .toast.ok { border-left-color: var(--up); } .toast.gold, .toast.warn { border-left-color: var(--gold); }
.toast-x { position: absolute; top: 4px; right: 4px; background: none; border: 0; color: var(--muted); font-size: 18px; width: 28px; height: 28px; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }

/* Einführung */
.tour { position: fixed; inset: 0; z-index: 85; }
.tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px var(--overlay); border: 2px solid var(--gold); transition: all .25s; pointer-events: none; }
.tour-card { position: fixed; width: min(380px, calc(100vw - 16px)); background: var(--panel); border: 1px solid var(--gold); border-radius: 12px; padding: 16px 18px; box-shadow: 0 16px 40px var(--shadow-lg); }
.tour-card h2 { font-size: 18px; margin-bottom: 6px; }
.tour.nospot { background: var(--overlay); }

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- Responsiv */
.bnav { display: none; }
@media (max-width: 1250px) {
  #v-trade { grid-template-columns: 250px minmax(0, 1fr) 320px; }
  .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hide-s { display: none !important; }
  .mlist td { padding: 6px 4px; }
  .sym-btn small { max-width: 96px; }
}
@media (max-width: 1020px) {
  #v-trade { grid-template-columns: 280px minmax(0, 1fr); }
  .ticket-col { grid-column: 2; }
  .market-col { grid-row: span 2; }
  .grid-pa { grid-template-columns: minmax(0, 1fr); }
  header.top { gap: 12px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  #idxStat { display: none; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + var(--safe-b)); }
  header.top { gap: 10px; padding: max(6px, var(--safe-t)) max(10px, var(--safe-r)) 6px max(10px, var(--safe-l)); min-height: 52px; }
  .logo { font-size: 16px; }
  header.top { flex-wrap: wrap; row-gap: 6px; }
  .phase { padding: 3px 10px 3px 8px; order: 10; flex: 1 1 100%; border-radius: 8px; }
  .phase-txt { flex-direction: row; gap: 8px; align-items: baseline; }
  #idxStat, #eqBtn { display: none !important; }
  #userBtn { padding: 6px 10px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  .mainnav { display: none; }
  main { padding: 8px max(8px, var(--safe-r)) 8px max(8px, var(--safe-l)); }
  #v-trade { grid-template-columns: 1fr; }
  .market-col { position: static; max-height: none; }
  .ticket-col { grid-column: auto; }
  body[data-view="markt"] .stock-col, body[data-view="markt"] .ticket-col, body[data-view="markt"] .sticky-trade { display: none; }
  body[data-view="handeln"] .market-col { display: none; }
  body[data-view="handeln"] .sticky-trade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: calc(56px + var(--safe-b)); padding: 8px max(8px, var(--safe-r)) 8px max(8px, var(--safe-l)); background: var(--panel-glass); border-top: 1px solid var(--line); z-index: 25; transition: transform .18s ease-out, opacity .18s; }
  /* Kauf-Leiste weg, sobald das Orderticket selbst im Bild ist – sonst liegen zwei „Kaufen“-Knöpfe übereinander */
  body[data-view="handeln"].ticket-visible .sticky-trade { transform: translateY(calc(100% + 56px + var(--safe-b))); opacity: 0; pointer-events: none; }
  body[data-view="handeln"] { padding-bottom: calc(124px + var(--safe-b)); }
  #ticket, #ticketCard { scroll-margin-bottom: calc(64px + var(--safe-b)); }
  .sticky-trade .btn { min-height: 48px; flex-direction: column; gap: 0; line-height: 1.15; font-size: 15px; }
  .sticky-trade small { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 12px; }
  /* Aktie am Handy: Chart früher sichtbar – Kennzahlen als waagrecht scrollende Zeile, Zeitraum und Darstellung in einer Reihe */
  .stock-head { padding: 10px 12px 4px; }
  .sh-top { gap: 6px 12px; }
  .px-big { font-size: 22px; }
  .kv-row { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 16px; margin: 8px -12px 0; padding: 0 12px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .kv-row > div { flex: none; }
  .chart-wrap { height: 240px; }
  .chart-bar { padding: 2px 10px 6px; flex-wrap: wrap; gap: 6px; }
  .chart-bar .seg.ranges { flex: 1 1 auto; }
  .chart-bar .seg.ranges button { min-width: 0; padding: 0 4px; }
  .chart-stats { white-space: normal; flex-basis: 100%; order: 3; }
  .chart-note { display: none; }
  .grid2, .grid3, .row3 { grid-template-columns: minmax(0, 1fr); }
  .margin-line { grid-template-columns: auto 1fr auto; }
  .margin-line .muted { grid-column: 1 / -1; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(56px + var(--safe-b)); padding: 0 var(--safe-r) var(--safe-b) var(--safe-l); background: var(--panel); border-top: 1px solid var(--line); z-index: 30; }
  .bnav button { background: none; border: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; position: relative; }
  .bnav svg { width: 22px; height: 22px; }
  .bnav button[aria-current="page"] { color: var(--accent); }
  .bnav .dot { position: absolute; top: 8px; right: calc(50% - 18px); }
  /* Meldungen unten über der Navigationsleiste (im Handel über der Kauf-Leiste), nicht über dem Seitenkopf */
  .toasts { top: auto; bottom: calc(64px + var(--safe-b)); left: max(8px, var(--safe-l)); right: max(8px, var(--safe-r)); width: auto; }
  body[data-view="handeln"]:not(.ticket-visible) .toasts { bottom: calc(128px + var(--safe-b)); }
  /* Dialoge als Bottom-Sheet */
  .modal-bg { align-items: flex-end; padding: max(12px, var(--safe-t)) 0 0; }
  .modal { width: 100%; max-width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; padding: 18px max(16px, var(--safe-r)) calc(18px + var(--safe-b)) max(16px, var(--safe-l)); max-height: 92vh; max-height: calc(100dvh - 24px - var(--safe-t)); animation: sheet-in .2s ease-out; }
  .modal.wide { width: 100%; }
  .battle-card .ret { font-size: 17px; }
  .flow-row { grid-template-columns: 100px 1fr 44px; }
  td, th { padding: 6px 6px; }
}


/* ---------------------------------------------------------------- Anlageklassen & Unternehmensereignisse */
.badge-s.offer { background: color-mix(in srgb, var(--gold) 25%, transparent); color: var(--gold); }
.badge-s.trial { background: color-mix(in srgb, var(--violet) 20%, transparent); color: var(--violet); }
.mlist tr.grp { cursor: default; }
.mlist tr.grp th { position: static; padding: 0; background: var(--panel2); border-top: 1px solid var(--line); }
.grp-btn { width: 100%; text-align: left; background: none; border: 0; padding: 7px 8px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text); }
.grp-btn:hover { background: var(--panel3); }
.sym-btn small.yl { color: var(--info); }
.unit-line { margin: 4px 0 0; }
.corp-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: var(--panel2); }
.corp-box.offer { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.corp-box .kpis { margin: 6px 0; }
.tender { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.tender .inline-form { max-width: 440px; margin: 6px 0; }
.chart-wrap.mini { height: 190px; margin: 4px 0; }
.chart-wrap.hemi { height: 210px; margin: 0 0 6px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: baseline; }
.linkchip { border: 0; cursor: pointer; }

/* ---------------------------------------------------------------- Politik */
.pol-tabs { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 8px 0; }
.pol-body { display: flex; flex-direction: column; gap: 10px; }
.pa-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
ul.pipe-list, ul.prop-list, ul.seat-legend, ul.agenda { list-style: none; margin: 0; padding: 0; }
.pipe, .prop-list li { padding: 10px 0; border-bottom: 1px solid var(--row-line); }
.pipe:first-child, .prop-list li:first-child { padding-top: 0; }
.pipe.live { border-left: 3px solid var(--gold); padding-left: 10px; }
.pipe-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.stepper { display: flex; list-style: none; margin: 8px 0 4px; padding: 0; counter-reset: st; }
.stepper li { flex: 1 1 0; min-width: 0; position: relative; font-size: 12px; color: var(--muted); padding-top: 14px; text-align: center; }
.stepper li span { display: block; padding: 0 2px; line-height: 1.25; overflow-wrap: break-word; hyphens: manual; }
.stepper li::before { content: ''; position: absolute; top: 3px; left: 0; right: 0; height: 4px; background: var(--panel3); }
.stepper li::after { content: ''; position: absolute; top: 0; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--panel3); border: 1px solid var(--line); }
.stepper li.done::before, .stepper li.done::after { background: var(--up); }
.stepper li.cur { color: var(--text); font-weight: 700; }
.stepper li.cur::before { background: linear-gradient(90deg, var(--up), var(--panel3)); }
.stepper li.cur::after { background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.stepper li.off { opacity: .45; }
.psplit { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13px; background: var(--bg); border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.psplit b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.psplit > span { white-space: nowrap; }
.psplit b.big { font-size: 16px; color: var(--gold); }
.badge-s.src-agenda { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--info); }
.badge-s.src-player { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }
.badge-s.src-news { background: color-mix(in srgb, var(--up) 15%, transparent); color: var(--up); }
.cosign { display: grid; grid-template-columns: minmax(80px, 160px) auto auto auto; gap: 8px; align-items: center; margin-top: 6px; }
.prop-prev { background: var(--bg); border-radius: 8px; padding: 8px 10px; margin: 4px 0 10px; }
.prop-prev:empty { display: none; }
.prop-title { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.posbars { display: flex; gap: 10px; flex-wrap: wrap; }
.pb { display: inline-flex; flex-direction: column; gap: 2px; }
.pb small { color: var(--muted); font-size: 11px; }
.pbar { position: relative; display: inline-block; width: 64px; height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.pbar::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--muted); }
.pbar i { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.pbar i.neg { background: var(--violet-bar); }
.seat-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2px 14px; margin-bottom: 6px; }
/* Raster je Zeile: Farbe | Kürzel | Name | Sitze | „Reg.“ – so stehen Zahlen und Abzeichen bündig untereinander */
.seat-legend li { display: grid; grid-template-columns: 10px auto minmax(0, 1fr) auto 3.2em; gap: 6px; align-items: center; font-size: 13px; }
.seat-legend li .swatch { margin: 0; }
.seat-legend li .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-legend li .badge-s { justify-self: start; }
ul.agenda li { padding: 3px 0; }
ul.agenda li.done { color: var(--up); }
.ballot { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin: 4px 0 6px; }
.ballot-btn { display: flex; align-items: center; gap: 4px; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 40px; }
.ballot-btn span:not(.swatch):not(.up) { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ballot-btn[aria-pressed="true"] { border-color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.poll-row { display: grid; grid-template-columns: 70px 1fr 56px; gap: 8px; align-items: center; margin: 3px 0; font-size: 13px; }
.pollbar { height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.pollbar i { display: block; height: 100%; }
.nc-card { border-color: var(--gold); }
fieldset.dir { margin: 0 0 9px; padding: 4px 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.scenario { border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.scenario.calm { border-color: var(--line); background: var(--panel2); }
.scenario small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.scenario b { font-size: 15px; }
.scenario p { margin: 2px 0 0; font-size: 13px; }
.gov-line { font-size: 13px; }
.ind-t th[scope="row"] { position: static; font-size: 13px; color: var(--text); }
@media (max-width: 760px) {
  .cosign { grid-template-columns: 1fr auto; }
  .stepper li { font-size: 11px; }
  .chart-wrap.hemi { height: 180px; }
}

/* ===== GUI-Aufräumen: Admin ===== */
/* Alle Regeln für admin.html in diesem Block. Grundsätze: Grid/Flex mit minmax(0, …), Tabellen scrollen waagrecht,
   lange Texte und Auswahllisten bekommen die volle Breite statt abgeschnitten zu werden. */
.admin-wrap { max-width: 1400px; margin: 0 auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.asec:not([hidden]) { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* Kopfzeile und Menü: Menü bricht in Zeilen um statt Einträge hinter dem Rand zu verstecken – auch am Handy sichtbar */
body.admin header.top #aWho { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.admin .mainnav { flex-wrap: wrap; overflow-x: visible; }

/* Karten-Kopf mit kleinem Knopf so hoch wie ohne (Raster nebeneinander bleibt bündig) */
.admin-wrap .card-h .btn.small { min-height: 26px; padding-block: 2px; margin-block: -4px; text-transform: none; letter-spacing: 0; }

/* Übersicht: Kennzahlen im gleichmäßigen Raster, Textwerte nicht in Monospace-Großschrift */
.admin-wrap .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 12px 20px; }
.admin-wrap .kpis div { min-width: 0; }
.admin-wrap .kpis b { overflow-wrap: anywhere; }
.admin-wrap .kpis b.small { font-family: inherit; font-size: 14px; }

/* Einstellungen: Gruppen spaltenweise (kein Leerraum durch ungleich hohe Karten) */
.set-groups { columns: 3 24rem; column-gap: 10px; }
.set-groups > .card { display: flow-root; break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; margin: 0 0 10px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; gap: 6px 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--row-line); }
.set-row > label { font-size: 13px; min-width: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.set-row small { display: block; color: var(--muted); font-size: 12px; }
.set-row.changed > label { color: var(--gold); }
.card .body > .set-row:last-child { border-bottom: 0; }
/* Textfelder, Auswahllisten und Listen: Beschriftung oben, Feld in voller Breite */
.set-row.set-stack, .set-row.wide { grid-template-columns: minmax(0, 1fr); }
.set-row.set-bool > .toggle { justify-self: start; }
.set-row textarea { min-height: 120px; font-family: var(--mono); font-size: 12px; }
#setErr:empty { display: none; }
#sec-settings > .card:first-child .admin-actions { margin-bottom: 0; }
@media (min-width: 761px) {
  /* Speichern-Leiste bleibt beim Scrollen durch die lange Einstellungsseite sichtbar */
  #sec-settings > .card:first-child { position: sticky; top: 57px; z-index: 6; box-shadow: 0 4px 14px var(--shadow); }
}
.toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; min-height: 0; }
.toggle > span:not(.sr) { position: absolute; inset: 0; background: var(--panel3); border-radius: 13px; border: 1px solid var(--line); }
.toggle > span:not(.sr)::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: left .15s; }
.toggle input:checked + span { background: color-mix(in srgb, var(--up) 35%, transparent); }
.toggle input:checked + span::after { left: 23px; background: var(--up); }
.toggle input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.presets { font-size: 12px; color: var(--muted); }
.presets .btn { margin: 2px 0; }

/* Knopfleisten und Eingabezeilen: umbrechen statt quetschen */
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.admin-actions input, .admin-actions select { width: auto; max-width: 100%; min-width: 0; }
.admin-wrap .inline-form { flex-wrap: wrap; }
.admin-wrap .inline-form input { flex: 1 1 15rem; min-width: 0; }
.sector-picks { display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* Nachrichtenquellen: Kategorien spaltenweise, je Feed Auswahl, Prüfstatus und Ergebnis */
.feed-cats { columns: 3 22rem; column-gap: 12px; }
.feed-cats > fieldset { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; margin: 0 0 10px; display: flow-root; }
ul.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: start; padding: 5px 0; border-bottom: 1px solid var(--row-line); }
.feed-row:last-child { border-bottom: 0; }
.feed-row .check { margin: 0; align-items: flex-start; min-width: 0; }
.feed-row .check input { margin-top: 3px; }
.feed-row .check span { min-width: 0; overflow-wrap: anywhere; }
.feed-row > .btn { grid-column: 2; justify-self: end; }
.feed-row .feed-st { padding-top: 2px; }
.feed-res { grid-column: 1 / -1; }
.feed-res:empty { display: none; }
.feed-res p { margin: 2px 0 0 24px; }
.feed-samples { margin: 2px 0 0 24px; font-size: 13px; }
.feed-samples ul { margin: 4px 0 0; padding-left: 18px; }
.feed-samples li { margin-bottom: 4px; }
.feed-mgr .inline-form { margin-top: 8px; }

/* Tabellen: Zeitspalte ohne Umbruch, Text- und Aktionsspalten mit Mindestbreite (Rest scrollt waagrecht) */
#sec-moderation td:first-child, #sec-bugs td:first-child, #sec-log td:first-child { white-space: nowrap; }
#sec-players td:first-child { min-width: 12rem; }
#sec-players .row-actions { min-width: 24rem; }
#sec-bots .row-actions { min-width: 14rem; }
#sec-moderation td:nth-child(4), #sec-bugs td:nth-child(4) { min-width: 16rem; }
#sec-log td:last-child { min-width: 14rem; }

@media (max-width: 1020px) {
  .admin-wrap .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body.admin { padding-bottom: env(safe-area-inset-bottom); }
  body.admin .mainnav { display: flex; padding: 0 4px; }
  body.admin .mainnav button { padding: 7px 8px; font-size: 13px; }
  body.admin header.top #aWho { display: none; }
  .admin-wrap { padding: 8px; gap: 8px; }
  .asec:not([hidden]) { gap: 8px; }
  .set-row { grid-template-columns: minmax(0, 1fr) 8rem; }
}

/* ---------------------------------------------------------------- Clans & Fonds, Turniere */
input.upper { text-transform: uppercase; }
.clan-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.clan-list li .plink { margin-right: auto; }
ul.tours { list-style: none; margin: 0; padding: 0; }
.tours > li.tn { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tn-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; justify-content: space-between; }
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 12px; overflow-x: auto; padding: 6px 0 4px; }
.bracket .round { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; min-width: 0; }
.bracket h4 { margin: 0 0 2px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.match { background: var(--panel2); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.match.me { border-color: var(--accent); }
.match.running { border-left: 3px solid var(--gold); }
.match .pl { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.match .pl.win { font-weight: 700; }
.match .pl.win::after { content: '✓'; color: var(--up); margin-left: 4px; }
.match .pl.out { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.match .pl .num { font-size: 12px; }
.match .m-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; }
.match .note { font-size: 11px; color: var(--muted); margin-top: 3px; }
@media (max-width: 760px) {
  .bracket { grid-auto-columns: minmax(160px, 78vw); scroll-snap-type: x mandatory; }
  .bracket .round { scroll-snap-align: start; }
}

/* Nachrichten-Auswertung */
.nana { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 4px; font-size: 12px; }
.ntopic { display: inline-flex; gap: 3px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; color: var(--muted); }
.ntopic.up { color: var(--up); } .ntopic.down { color: var(--down); }
.nwhy { flex-basis: 100%; }
.nwhy summary { cursor: pointer; color: var(--muted); width: max-content; }
.nwhy ul { margin: 4px 0; padding-left: 18px; color: var(--muted); }
ul.news .nwhy li { border: 0; padding: 1px 0; }
.news li.nstrong { border-left: 3px solid var(--gold); padding-left: 8px; }

/* Version, Änderungsprotokoll, Update-Hinweis */
.nav-ver { margin-left: auto; display: flex; align-items: center; }
.ver-btn { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 6px 8px; font-family: var(--mono); }
.ver-btn:hover { color: var(--text); text-decoration: underline; }
.changelog { max-height: 65vh; max-height: 65dvh; overflow-y: auto; }
.cl-entry { padding: 8px 0; border-top: 1px solid var(--row-line); }
.cl-entry.cl-new { border-left: 3px solid var(--accent); padding-left: 10px; }
.cl-title { font-weight: 600; margin: 2px 0 6px; }
.cl-entry ul { margin: 0; padding-left: 18px; }
.cl-entry li { margin: 4px 0; }
.cl-type { display: inline-block; min-width: 74px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.cl-neu { color: var(--up); } .cl-besser { color: var(--accent); } .cl-fix { color: var(--gold); }
.update-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 90; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  max-width: min(640px, calc(100vw - 20px)); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 10px 14px; box-shadow: 0 8px 28px var(--shadow-lg); }
.update-banner.restart { border-left-color: var(--gold); }
.update-banner .ub-acts { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 760px) { .update-banner { bottom: calc(74px + var(--safe-b)); } }
.update-banner.maintenance { border-left-color: var(--gold); }

/* Admin: Börse neu aufsetzen (Vorschau des simulierten Vorjahrs), Sicherungen */
.ph-bar { height: 12px; border-radius: 6px; background: var(--panel3); overflow: hidden; margin: 8px 0; }
.ph-bar > span { display: block; height: 100%; background: var(--accent-fill); transition: width .4s; }
.ph-fig { margin: 8px 0 12px; }
.ph-fig svg { width: 100%; height: auto; display: block; background: var(--panel2); border-radius: var(--radius); }
.ph-grid { stroke: var(--line); stroke-width: 1; }
.ph-grid.base { stroke: var(--muted); stroke-dasharray: 4 3; }
.ph-ax { fill: var(--muted); font-size: 11px; font-family: var(--num-font); }
.ph-line { fill: none; stroke-width: 1.4; stroke-linejoin: round; opacity: .8; }
.ph-line.main { stroke-width: 2.6; opacity: 1; }
.ph-l0 { stroke: var(--accent); background: var(--accent); } .ph-l1 { stroke: var(--gold); background: var(--gold); }
.ph-l2 { stroke: var(--violet); background: var(--violet); } .ph-l3 { stroke: var(--up); background: var(--up); }
.ph-key { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; white-space: nowrap; }
.ph-key i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.ph-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.ph-stats .stat { background: var(--panel2); border-radius: var(--r-sm); padding: 8px 10px; }
.ph-stats .stat span { font-size: 12px; color: var(--muted); }
.ph-stats .stat span.up { color: var(--up); } .ph-stats .stat span.down { color: var(--down); }
.ph-events { max-height: 320px; overflow-y: auto; font-size: 13px; }
.ph-events li { display: flex; gap: 6px; align-items: baseline; padding: 3px 0; border-bottom: 1px solid var(--line); }
.ph-events li > .muted { flex: none; min-width: 6.2em; }
.bk-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bk-list .row-actions { margin-left: auto; }

/* Rivalen (computergesteuerte Mitspieler) */
.ki-badge { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; line-height: 1; padding: 2px 5px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--panel3); color: var(--muted); vertical-align: 1px; }
h2 .ki-badge { font-size: var(--fs-xs); vertical-align: 3px; }
tr.bot-row td { color: var(--muted); }
tr.bot-row td .plink { color: inherit; }
.rival-card { border: 1px solid var(--line); background: var(--panel2); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.rival-card p { margin: 6px 0 0; }

/* Nächster Schritt (Hinweis für neue Spieler) */

/* ===== Börsengänge ===== */
.grid2 > .span2 { grid-column: 1 / -1; }
.ipo { border-bottom: 1px solid var(--line, rgba(127,127,127,.25)); padding-bottom: .6rem; margin-bottom: .6rem; }
.ipo:last-of-type { border-bottom: 0; }
.ipo .kv-row { margin: .4rem 0; }
.row-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem; }
.row-form .field { margin: 0; min-width: 10rem; }
.badge-s.new { background: rgba(80,140,255,.2); color: var(--text); }
.badge-s.allday { background: rgba(160,100,255,.2); color: var(--text); }

/* ===== Abendhandel ===== */
.seg.venue { margin-top: 6px; }
.eve-info { background: rgba(160,100,255,.12); border-radius: 8px; padding: 6px 8px; margin: 6px 0 0; }
.phase[data-phase="evening"] .phase-dot { background: #a06cff; box-shadow: 0 0 0 3px rgba(160,108,255,.2); }

/* ===== Hauptversammlungen ===== */
.agm { border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: .6rem; }
.agm:last-of-type { border-bottom: 0; }
.agm-item { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.agm-item legend { font-weight: 600; padding: 0 4px; }
.agm-item p { margin: 2px 0; }
/* Abstimmung als gleich breiter Segment-Schalter „Ja | Nein | Enthaltung“ */
.seg.agm-vote { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 6px 0 2px; min-width: min(100%, 300px); }

/* ===== Tippspiel ===== */
.tip-list .tip-q { padding: 6px 0; border-bottom: 1px solid var(--line); }
.tip-list .tip-q:last-child { border-bottom: 0; }
.tip-opt { cursor: pointer; }
.tip-opt.on { background: var(--accent-fill); color: #fff; border-color: var(--accent-fill); }
.tip-opt.right { outline: 2px solid var(--up); }
span.tip-opt { cursor: default; }
.tip-board { margin-top: 8px; }

/* ===== Feierabend: Plan, Watchlist, Analysen ===== */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.recap { border-left: 3px solid var(--accent); padding-left: 10px; margin-bottom: 10px; }
.sh-act { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-act [aria-pressed="true"] { color: var(--accent); }
.ana-form { display: grid; gap: 6px; margin-bottom: 10px; }
.ana-form textarea { width: 100%; }
.ana-form .seg { max-width: 320px; margin-bottom: 4px; }
.ana-list .ana { padding: 8px 0 8px 10px; border-bottom: 1px solid var(--line); }
.ana-list .ana--up { border-left: 3px solid var(--up); }
.ana-list .ana--down { border-left: 3px solid var(--down); }
.ana-list .ana p { margin: 4px 0; }
.ana-list .meta { display: flex; gap: 8px; align-items: baseline; font-size: .85em; }

/* ===== Käfer: Fehler melden ===== */
.bug-btn { position: relative; font-size: 18px; }
.bug-btn .dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--down); }
.bug-form { display: grid; gap: 10px; }
.bug-form textarea { width: 100%; }
.bug-incl { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.bug-incl label { display: flex; gap: 8px; align-items: flex-start; }
.bug-incl label input { margin-top: 1px; }
.bug-form fieldset.seg { margin: 0; padding: 2px; }
@media (max-width: 480px) { .bug-form fieldset.seg { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } }
.bug-shot { max-width: 100%; max-height: 220px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; }
.bug-pre { max-height: 240px; overflow: auto; font-size: 11px; white-space: pre-wrap; word-break: break-word; background: var(--bg2, rgba(127,127,127,.08)); padding: 8px; border-radius: 6px; }
.bug-shot.big { max-height: none; width: 100%; margin: 8px 0; }
.pre { white-space: pre-wrap; }

/* ===== Hilfe: „?“, Begriffe, Handbuch ===== */
.help-q { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0 6px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted, inherit); font: 600 12px/1 inherit;
  cursor: pointer; vertical-align: middle; text-transform: none; letter-spacing: 0; flex: none; }
/* „?“ bleibt direkt hinter dem Kartentitel; weitere Angaben der Kopfzeile (Zähler, Knöpfe) rücken nach rechts */
.card-h > .help-q { margin: 0 auto 0 6px; }
.help-q:hover, .help-q:focus-visible { background: var(--accent-fill); color: #fff; border-color: var(--accent-fill); }
.help-ic { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-fill); color: #fff; font-size: 15px; }
.help-modal .help-sec { margin: 10px 0; }
.help-modal .help-sec h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; opacity: .75; }
.help-modal .help-sec p, .help-modal .help-sec ol { margin: 0; }
.help-modal .help-sec ol { padding-left: 1.2em; display: grid; gap: 3px; }
.help-modal .effect, .help-modal .tip, .help-modal .example { border-left: 3px solid var(--accent); padding: 6px 10px; border-radius: 0 6px 6px 0; background: rgba(127, 127, 127, .07); }
.help-modal .tip { border-left-color: var(--warn, #d9a400); }
.help-modal .example { border-left-color: var(--up); }
.help-lead { font-size: 15px; }
.term-chip { cursor: pointer; }
.gl { cursor: help; }
.hbook { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
.book-toc { position: sticky; top: calc(var(--top-h, 56px) + 14px); }
.book-toc input { width: 100%; margin-bottom: 8px; }
.toc-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 8px; border-radius: 6px; color: inherit; cursor: pointer; font: inherit; }
.toc-item:hover { background: rgba(127, 127, 127, .1); }
.toc-item[aria-current="page"] { background: var(--accent-fill); color: #fff; }
.book-main p { line-height: 1.6; max-width: 75ch; }
.book-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; }
.gl-demo { border-bottom: 1px dotted currentColor; }
.chain { margin: 12px 0; }
/* Breit: alle Schritte in einer Zeile (kein Pfeil am Zeilenende); schmal: untereinander, siehe unten */
.chain ol { list-style: none; display: flex; flex-wrap: nowrap; align-items: stretch; gap: 6px; padding: 0; margin: 0 0 4px; }
.chain li:not(.arrow) { flex: 1 1 0; min-width: 0; overflow-wrap: break-word; hyphens: auto; display: grid; align-content: start; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(127, 127, 127, .06); }
.chain li:not(.arrow) span { font-size: .85em; opacity: .85; }
.chain .arrow { align-self: center; font-size: 1.3em; opacity: .6; }
.gloss > div { display: grid; grid-template-columns: 200px 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.gloss dt, .gloss dd { margin: 0; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.az a { padding: 2px 7px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
@media (max-width: 760px) {
  .hbook { grid-template-columns: 1fr; }
  .book-toc { position: static; }
  .gloss > div { grid-template-columns: 1fr; gap: 2px; }
  .help-q { width: 24px; height: 24px; }
}

/* ===== Kursursachen ===== */
.causes { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; }
.causes summary { cursor: pointer; }
.cz { display: grid; gap: 4px; margin: 4px 0 8px; }
.cz li { display: grid; grid-template-columns: minmax(0, 1fr) 70px 90px; gap: 8px; align-items: center; font-size: .9em; }
.cz-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-val { text-align: right; font-variant-numeric: tabular-nums; }
.cz-bar { height: 8px; border-radius: 4px; display: block; }
.cz-bar.up { background: var(--up); }
.cz-bar.down { background: var(--down); }
@media (max-width: 760px) { .cz li { grid-template-columns: minmax(0, 1fr) 64px; } .cz-bar { display: none; } }

.klartext { display: block; padding: 6px 8px; margin-bottom: 4px; border-radius: 6px; background: rgba(127, 127, 127, .08); border-left: 3px solid var(--accent); }
.klartext { color: var(--text); }
.klartext .klar-h { display: block; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
.klar-rows { margin: 0; display: grid; gap: 2px; }
.klar-rows > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px; align-items: baseline; }
.klar-rows dt { color: var(--muted); }
.klar-rows dd { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.klar-rows .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ===== Menschen-Bestätigung ===== */
.hc-area { position: relative; height: 160px; margin: 12px 0; border: 1px dashed var(--line); border-radius: 8px; }
.hc-btn { position: absolute; }

/* ===== Bevölkerung ===== */
.pop-groups { display: grid; gap: 10px; }
/* Gruppe: Name und Wähleranteil links untereinander, Stimmung rechts – gleich bei jeder Breite */
.pop-g { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; margin-bottom: 4px; }
.pop-g > .muted { grid-column: 1; grid-row: 2; }
.pop-g > .pop-m { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; }
.pop-m { font-variant-numeric: tabular-nums; font-weight: 600; }
.pop-m.up, .pop-imp .up { color: var(--up); }
.pop-m.down, .pop-imp .down { color: var(--down); }
.pop-imp { display: grid; gap: 4px; margin: 6px 0; }
.pop-imp li { display: grid; grid-template-columns: 140px 1fr 90px; gap: 8px; align-items: center; font-size: .92em; }
.pop-bar { position: relative; height: 10px; border-radius: 5px; background: rgba(127, 127, 127, .12); }
.pop-bar::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; border-left: 1px solid var(--line); }
.pop-bar > span { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.pop-bar > .up { background: var(--up); }
.pop-bar > .down { background: var(--down); }
.pop-voice { margin: 8px 0; padding: 6px 10px; border-left: 3px solid var(--accent); background: rgba(127, 127, 127, .06); border-radius: 6px; font-style: italic; }
.pop-voice small { font-style: normal; }
@media (max-width: 600px) { .pop-imp li { grid-template-columns: 110px 1fr; } .pop-imp li > span:last-child { display: none; } }
ul.pop-groups, ul.pop-imp { list-style: none; padding-left: 0; margin-left: 0; }
/* nur breit: dritte Spalte „gewinnt/verliert“ (schmal ist sie ausgeblendet, sonst bliebe eine leere Spalte) */
@media (min-width: 601px) { .pop-imp li { grid-template-columns: 140px minmax(0, 1fr) 110px; } }
.pop-imp li > span:last-child { white-space: nowrap; }

/* ===== GUI-Aufräumen: Handel/Depot/Kopf ===== */
/* Kopfzeile: die Börsenphase darf nicht zu „F S“ zusammenschrumpfen; Rest bleibt in Originalbreite */
.phase { min-width: 150px; }
header.top > .stat, header.top > .badge-s, header.top > .chip, header.top > .icon-btn, header.top > .btn { flex: none; }
@media (min-width: 761px) { #userBtn { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; } }
@media (max-width: 1600px) { header.top { gap: 12px; } #timeMode { display: none; } }
@media (max-width: 1440px) { #repSeason { display: none !important; } }
@media (max-width: 1250px) { .mainnav button { padding: 10px 9px; } }
/* Kartenkopf: „?“ bleibt direkt hinter der Überschrift, Zusatzangaben rechts */
.card-h > .help-q { margin: 0 auto 0 -2px; }
.card-h > span:first-child { white-space: nowrap; }
#spread { white-space: nowrap; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Handel: breite Bildschirme nutzen, Reiter enger, Unternehmensdaten nicht in schmale Spalten quetschen */
@media (min-width: 1600px) {
  #v-trade { grid-template-columns: 330px minmax(0, 1fr) 370px; }
  .sym-btn small { max-width: 160px; }
}
#sTabs button { padding: 9px 9px; }
@media (min-width: 761px) { #sTabs { flex-wrap: wrap; overflow-x: visible; } }#sTabBody .grid3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cz-lbl { white-space: normal; }
/* Mittlere Breiten und Handy: Chart, dann Orderticket, dann die langen Unternehmensdetails */
@media (max-width: 1020px) and (min-width: 761px) {
  .stock-col { display: contents; }
  .market-col { grid-row: 1 / span 3; }
  .stock-col > .card:first-child { grid-column: 2; grid-row: 1; }
  .ticket-col { grid-column: 2; grid-row: 2; }
  .stock-col > .card:last-child { grid-column: 2; grid-row: 3; }
}
@media (max-width: 760px) {
  .stock-col { display: contents; }
  .stock-col > .card:first-child { order: 1; }
  .ticket-col { order: 2; }
  .stock-col > .card:last-child { order: 3; }
  .sticky-trade { order: 4; }
  #v-trade .btn.small, #v-depot .btn.small { min-height: max(var(--ctl-h-sm), 32px); }
}

/* Depot: Aktionsknöpfe nebeneinander, Symbol + Short-Kennzeichen in einer Zeile */
#v-depot td:first-child { white-space: nowrap; }
#v-depot td .row-actions { flex-wrap: nowrap; justify-content: flex-end; }
@media (max-width: 1020px) and (min-width: 761px) { #v-depot td .row-actions { flex-wrap: wrap; } }
@media (max-width: 760px) {
  #v-depot .scroll-x td { white-space: nowrap; }
  #v-depot .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  #v-depot .scroll-x th:first-child, #v-depot .scroll-x td:first-child { position: sticky; left: 0; background: var(--panel); z-index: 1; }
  #v-depot .scroll-x th:first-child { z-index: 2; }
}
/* ===== GUI-Aufräumen: Politik/Termine/Nachrichten/Hilfe ===== */
.cd { white-space: nowrap; }                       /* Countdown („3 h 34 min“) nie zerreißen */
/* Termine & Briefing: Briefing nicht auf Kalenderhöhe strecken, Termin-Links linksbündig */
#v-termine > .grid2 { align-items: start; }
ul.cal .linkish { text-align: left; }
/* Politik: Kabinett kompakt, Positionsbalken in der Parteientabelle als kleine Liste */
.cab-t .cab-hint { font-weight: 400; text-transform: none; }
#plParties .posbars { flex-direction: column; flex-wrap: nowrap; gap: 3px; }
#plParties .pb { flex-direction: row; align-items: center; gap: 6px; }
#plParties .pb small { width: 3em; }
#plChamber .posbars { gap: 18px; margin-bottom: 8px; }
#plChamber .pbar { width: clamp(64px, 24vw, 120px); height: 10px; }
#plBudget + .grid2 { margin-top: 12px; }
/* Handbuch: Inhaltsverzeichnis ohne Aufzählungspunkte */
.book-toc ul.plain { list-style: none; padding-left: 0; }
.book-toc ul.plain li { margin: 1px 0; }
@media (max-width: 1100px) {
  .chain ol { flex-direction: column; }
  .chain li:not(.arrow) { flex: none; }
  .chain .arrow { transform: rotate(90deg); align-self: center; line-height: 1; }
}
@media (max-width: 760px) {
  /* Reiter umbrechen statt seitlich verschwinden */
  .pol-tabs, #v-news .tabs { flex-wrap: wrap; }
  .pol-tabs button, #v-news .tabs button { padding: 8px 10px; }
  /* Handbuch-Kapitel als kompakte Chips, damit der Text sofort sichtbar ist */
  .book-toc nav ul.plain { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .book-toc nav ul.plain li { margin: 0; }
  .book-toc .toc-item { width: auto; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 13px; }
}
@media (max-width: 600px) {
  #plDonate .row2, #plFound .row2 { grid-template-columns: minmax(0, 1fr); }
  /* Parteientabelle als Karten: Name, Positionen, dann Sitze/Umfrage/Mitglieder und Knopf */
  #plParties table, #plParties tbody { display: block; }
  #plParties thead { display: none; }
  #plParties tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 6px 10px; padding: 10px 12px; border-top: 1px solid var(--row-line); align-items: end; }
  #plParties td { display: block; border: 0; padding: 0; text-align: left; }
  #plParties td:nth-child(1), #plParties td:nth-child(2) { grid-column: 1 / -1; }
  #plParties td[data-l]::before { content: attr(data-l); display: block; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 11px; color: var(--muted); }
  #plParties td.pty-act:empty { display: none; }
  #plParties tr.me { background: color-mix(in srgb, var(--accent) 12%, transparent); }
  #plParties tr.me td { background: none; }
  #plParties .posbars { flex-direction: row; gap: 14px; }
  #plParties .pb { flex-direction: column; align-items: stretch; gap: 2px; }
  #plParties .pb small { width: auto; }
}
/* Frühindikatoren-Tabelle passt auch in die halbe Spalte ohne seitliches Scrollen */
@media (max-width: 1020px) {
  .ind-t th, .ind-t td { padding-left: 4px; padding-right: 4px; }
  .ind-t th[scope="row"] { overflow-wrap: anywhere; hyphens: auto; }
}
/* Hauptversammlung: Firmenname als normale Überschrift, Frist in eigener Zeile */
.agm > h3.h4, .ipo > h3.h4 { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); }
.agm > h3.h4 .muted.small { display: block; font-weight: 400; margin-top: 2px; }
/* Hilfe-Chips (Handbuch, Hilfe-Fenster): schlichter Rand statt Browser-Standardrahmen */
.book-main button.chip, .help-modal button.chip { border: 1px solid var(--line); cursor: pointer; }
.book-main button.chip:hover, .help-modal button.chip:hover { border-color: var(--accent); color: var(--text); }
/* ===== GUI-Aufräumen: Battles/Clans/Aufgaben/Community/Profil ===== */
/* Kartenkopf: „?“ bleibt direkt am Titel, Zusätze und Knöpfe rechts; bei Platzmangel sauber umbrechen */
:is(#v-battles, #v-clans, #v-fortschritt, #v-community) .card-h { flex-wrap: wrap; row-gap: 6px; }
:is(#v-battles, #v-clans, #v-fortschritt, #v-community) .card-h > .help-q { margin-right: auto; margin-left: 4px; }
:is(#v-battles, #v-clans, #v-fortschritt, #v-community) .card-h > span:first-child { min-width: 0; overflow-wrap: anywhere; }
:is(#v-battles, #v-clans, #v-fortschritt, #v-community) .card-h > .btn { flex: none; white-space: nowrap; margin-left: auto; }
/* Tabellen ohne Innenabstand der Karte: erste/letzte Spalte bündig zum Kartentext */
:is(#v-battles, #v-clans, #v-fortschritt, #v-community) .body.flush table :is(th, td):first-child { padding-left: 12px; }
:is(#v-battles, #v-clans, #v-fortschritt, #v-community) .body.flush table :is(th, td):last-child { padding-right: 12px; }
:is(#v-battles, #v-clans, #v-community) td .btn.small { white-space: nowrap; }
/* Kennzahlen als Raster statt Flex – keine einzelne Kachel allein in der letzten Zeile, lange Namen gekürzt */
:is(#v-clans, #v-battles) .kpis, .profile-modal .kpis, .clan-modal .kpis, .recap-modal .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px 18px; }
:is(#v-clans, #v-battles) .kpis > div, .profile-modal .kpis > div, .clan-modal .kpis > div, .recap-modal .kpis > div { min-width: 0; }
:is(#v-clans, #v-battles) .kpis b, .profile-modal .kpis b, .clan-modal .kpis b, .recap-modal .kpis b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(#v-clans, .clan-modal) .kpis b.small { font-size: 14px; }
#v-clans .kpis > div:last-child:has(> b.small) { grid-column: span 2; }   /* Gründername bekommt Platz */
#v-clans .kpis b .muted, :is(#v-clans, .clan-modal) .kpis b.small { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 500; }
/* Battle-Karte: beide Seiten gleich breit und gleich gerahmt, Rendite bleibt in einer Zeile */
.battle-card { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.battle-card > div { min-width: 0; }
.battle-card .plink, .battle-card > div > b { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.battle-card > div:not(.vs) { border: 1px solid transparent; border-radius: 8px; padding: 6px; }
.battle-card > div.me { border-color: var(--accent); }
.battle-card .ret { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(15px, 4vw, 22px); }
/* Aufgaben: XP-Wert nicht umbrechen */
.q-top > span { min-width: 0; }
.q-top > b { white-space: nowrap; flex: none; }
/* Erfolge: gesperrte bleiben lesbar (Halbtransparenz war im hellen Theme zu blass) */
.ach:not(.on) { opacity: 1; border: 1px dashed var(--line); }
.ach:not(.on) .i { filter: grayscale(1); opacity: .5; }
.ach:not(.on) b { color: var(--muted); }
/* Freunde: Name nicht zerquetschen, Aktionen nebeneinander (Zelle bleibt Tabellenzelle) */
table.friends td:first-child { min-width: 8em; }
table.friends td.row-actions { display: table-cell; white-space: nowrap; text-align: right; }
table.friends td.row-actions .btn + .btn { margin-left: 6px; }
/* Battle-Verlauf: Ergebnis darf zweizeilig sein, die Renditen bleiben zusammen */
#btLists td.num { white-space: normal; }
#btLists td.num small.block { white-space: nowrap; }
/* Häkchen-Zeilen mit mehrzeiligem Text: Kästchen an der ersten Zeile ausrichten */
:is(#v-clans, #setForm) .check { align-items: flex-start; }
:is(#v-clans, #setForm) .check input { margin-top: 2px; flex: none; }
/* Einstellungen: Passwortfelder auf einer Linie, am Handy untereinander */
#setForm .row2 { align-items: end; }
/* Dialogtitel nicht unter den Schließen-Knopf laufen lassen */
.modal h2 { padding-right: 42px; overflow-wrap: anywhere; }
/* Saisonrückblick: Kollision mit .recap (Wochenrückblick) aufheben, Kennzahlen im 2er-Raster */
.recap-modal .recap { border-left: 0; padding-left: 0; margin-bottom: 0; }
.recap-modal .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 340px; margin: 0 auto 10px; }
.recap-big { white-space: nowrap; }
@media (max-width: 760px) {
  #setForm .row2 { grid-template-columns: minmax(0, 1fr); }
  /* Handy: Freunde ohne Level-Spalte, Knöpfe untereinander – passt ohne Querscrollen */
  table.friends :is(th, td):nth-child(4) { display: none; }
  table.friends td.row-actions .btn { display: flex; width: 100%; }
  table.friends td.row-actions .btn + .btn { margin: 4px 0 0; }
  /* Handy: Mitgliederliste ohne „(–)“-Hinweis (steht als „Gewertet“ in den Kennzahlen) */
  #v-clans td.num > .muted.small { display: none; }
  :is(#v-clans, #btLists) td .plink { display: inline-block; max-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
}

/* ---------------------------------------------------------------- Klick-Rückmeldung (js/feedback.js, js/btnstate.js) */
/* sofortiges Nachgeben beim Drücken; deutlicher Fokusrahmen (Hell und Dunkel über --focus) */
button { --fb-c: var(--text); transition: transform .07s ease-out, filter .12s; }
.btn:not(.ghost) { --fb-c: #fff; }
button:not(:disabled):active { transform: translateY(1px) scale(.97); }
.bnav button:not(:disabled):active, .mainnav button:not(:disabled):active { transform: scale(.95); }
button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }
/* Zustände: Text bleibt (unsichtbar) stehen → Breite bleibt gleich; Symbol liegt darüber */
button.is-busy, button.is-ok, button.is-err { position: relative; color: transparent !important; -webkit-text-fill-color: transparent; }
button.is-busy > *, button.is-ok > *, button.is-err > * { visibility: hidden; }
button.is-busy:disabled { opacity: .9; cursor: progress; }
button.is-busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 1.05em; height: 1.05em; box-sizing: border-box;
  border: 2px solid var(--fb-c); border-right-color: transparent; border-radius: 50%; animation: fb-spin .7s linear infinite; }
button.is-ok, button.is-err { --fb-c: #fff; }
button.is-ok { background: var(--buy) !important; border-color: var(--buy) !important; }
button.is-err { background: var(--sell) !important; border-color: var(--sell) !important; animation: fb-shake .32s ease-in-out; }
button.is-ok::after, button.is-err::after { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; -webkit-text-fill-color: #fff; font-weight: 800; font-size: 1.1em; line-height: 1; }
button.is-ok::after { content: '✓'; }
button.is-err::after { content: '✗'; }
@keyframes fb-spin { to { transform: rotate(360deg); } }
@keyframes fb-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
/* getrennte Verbindung: WebSocket-Aktionen sichtbar gesperrt (Klicks fängt feedback.js ab) */
[data-wsoff] { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }
.conn-bar { position: sticky; top: var(--top-h, var(--hdr-h, 56px)); z-index: 29; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 14px; font-weight: 600; font-size: 13px;
  background: color-mix(in srgb, var(--gold) 22%, var(--panel)); color: var(--text); border-bottom: 2px solid var(--gold); text-align: center; }
.conn-bar .conn-ic { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: fb-pulse 1.2s ease-in-out infinite; }
.conn-bar .btn { min-height: 30px; padding: 4px 12px; font-size: 12px; }
@keyframes fb-pulse { 50% { opacity: .3; } }
@media (max-width: 760px) {
  .conn-bar { gap: 6px 10px; padding: 6px 10px; font-size: 12px; }
}
/* optimistische Orders („wird übermittelt …“) und eigene Orders im Ticket */
tr.ord-pending td { opacity: .6; font-style: italic; }
tr.ord-pending.ok td { opacity: 1; font-style: normal; background: color-mix(in srgb, var(--up) 10%, transparent); }
tr.ord-pending.err td { opacity: 1; font-style: normal; background: color-mix(in srgb, var(--down) 12%, transparent); }
.badge-s.sending { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--info); white-space: nowrap; }
.badge-s.sending::before { content: ''; display: inline-block; width: .8em; height: .8em; margin-right: 4px; vertical-align: -1px; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fb-spin .8s linear infinite; }
.badge-s.done { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.badge-s.fail { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down-soft); }
.my-orders { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.my-orders h3 { margin: 0 0 4px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; display: flex; justify-content: space-between; gap: 8px; }
.my-orders td { padding: 4px; font-size: 12px; }
.my-orders .btn.small { min-height: var(--ctl-h-sm); padding: 0 8px; }
/* Meine letzten Aktionen (Profil) */
.trail-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; font-size: 13px; }
.trail-list li { display: grid; grid-template-columns: 4.4em 1.2em minmax(0, 1fr); gap: 6px; padding: 4px 2px; border-top: 1px solid var(--row-line); }
.trail-list li:first-child { border-top: 0; }
.trail-list .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.trail-list .ok-i { color: var(--up); font-weight: 700; } .trail-list .err-i { color: var(--down); font-weight: 700; }
.trail-list .why { display: block; color: var(--down-soft); font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  button:not(:disabled):active { transform: none; filter: brightness(.9); }
  button.is-busy::after { content: '…'; border: 0; width: auto; height: auto; display: grid; place-items: center; color: var(--fb-c); -webkit-text-fill-color: var(--fb-c); font-weight: 800; font-size: 1.2em; }
  button.is-err { animation: none !important; }
}

/* ---------------------------------------------------------------- Mein Tag */
.todo-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 4px; border-radius: 17px; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--text); font-weight: 600; font-size: 13px; white-space: nowrap; }
.todo-pill:hover { border-color: var(--accent); }
.todo-pill .todo-n { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--accent-fill); color: #fff; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.todo-pill.urgent { border-color: color-mix(in srgb, var(--down) 55%, var(--line)); background: color-mix(in srgb, var(--down) 12%, var(--panel)); }
.todo-pill.urgent .todo-n { background: var(--down-fill); }
.todo-pill.none { border-color: var(--line); background: transparent; color: var(--muted); }
.todo-pill.none .todo-n { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--accent-fill); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.nav-count.urgent { background: var(--down-fill); }
.more-item { position: relative; }
.more-item .nav-count { position: absolute; top: 10px; right: 10px; margin: 0; font-size: 12px; min-width: 20px; height: 20px; border-radius: 10px; }
.today { max-width: 980px; }
.today-card .body { padding: 10px 14px; }
.td-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 15px; }
.td-head .sep { color: var(--muted); }
.td-head .cd { font-variant-numeric: tabular-nums; }
.td-groups { display: flex; flex-direction: column; gap: 10px; }
.td-group { border-left: 4px solid var(--line); }
.td-group.td-urgent { border-left-color: var(--down); }
.td-group.td-today { border-left-color: var(--gold); }
.td-group.td-claim { border-left-color: var(--up); }
.td-group.td-watch { border-left-color: var(--muted); }
.td-group.td-start { border-left-color: var(--accent); }
.td-gh { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.td-urgent .td-gh { color: var(--down); } .td-today .td-gh { color: var(--gold); } .td-claim .td-gh { color: var(--up); }
.td-gn { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 12px; background: var(--panel3); color: var(--text); border-radius: 9px; padding: 0 7px; }
.td-list { list-style: none; margin: 0; padding: 0; }
.td-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 10px 12px; border-top: 1px solid var(--row-line); }
.td-item > .td-ic { margin-top: 1px; }
.td-item > .td-acts { align-self: center; }
.td-item:first-child { border-top: 0; }
.td-ic { font-size: 19px; line-height: 1; text-align: center; }
.td-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.td-title { font-weight: 650; }
.td-detail { color: var(--muted); font-size: 13px; }
.td-due { font-size: 12px; color: var(--muted); }
.td-due .cd { font-variant-numeric: tabular-nums; color: var(--text); }
.td-due.soon, .td-due.soon .cd { color: var(--down-soft); font-weight: 600; }
.td-acts { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.td-acts .btn { white-space: nowrap; }
.td-acts .btn.claim { background: var(--buy); }
.td-hide { color: var(--muted); font-size: 12px; white-space: nowrap; }
.td-empty .body { text-align: center; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.td-empty h3 { font-size: 18px; }
.td-done { display: grid; place-items: center; width: 48px; height: 48px; margin: 0; border-radius: 50%; background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); font-size: 26px; font-weight: 800; }
.td-hidden { text-align: center; }
.td-flash { animation: tdFlash 2.2s ease-out; }
@keyframes tdFlash { 0%, 30% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .td-flash { animation: none; outline: 3px solid var(--gold); } }
#v-heute [id], #v-termine [id], #v-parlament [id], #v-battles [id], #v-clans [id] { scroll-margin-top: 8px; }
@media (max-width: 760px) {
  .todo-pill { height: 32px; padding: 0 4px; gap: 0; }
  .todo-pill .todo-l { display: none; }
  header.top { column-gap: 8px; }
  #userBtn { max-width: 92px; }
}
@media (max-width: 760px) {
  /* untere Leiste: Zähler oben rechts am Symbol (auch 401–760 px) */
  .bnav .nav-count { position: absolute; top: 5px; left: calc(50% + 5px); margin: 0; min-width: 18px; height: 18px; font-size: 11px; box-shadow: 0 0 0 2px var(--panel); }
  /* Mein Tag: Knöpfe unter den Text statt eine schmale Textspalte */
  .td-item { grid-template-columns: 24px minmax(0, 1fr); padding: 10px; }
  .td-acts { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 400px) {
  .todo-pill .todo-n { min-width: 24px; height: 24px; }
  .bnav button { font-size: 11px; }
  .td-head { font-size: 14px; }
}

/* ---------------------------------------------------------------- Freunde einladen */
.col-stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.invite-hero { margin: 0 0 12px; padding: 14px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 14%, var(--panel)), var(--panel2)); }
.invite-hero .kicker { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.invite-hero h2 { margin: 4px 0 8px; font-size: 20px; line-height: 1.25; }
.invite-points { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 5px; font-size: var(--fs-base); }
.invite-points li { display: flex; gap: 8px; align-items: baseline; }
.invite-link { display: flex; gap: 8px; margin: 10px 0 4px; }
.invite-link input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; }
.invite-actions { margin: 10px 0 12px; }
.invite-kpis { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
b.code, .code { font-family: var(--mono); letter-spacing: 1.5px; }
.qr-box { display: grid; place-items: center; padding: 12px; margin: 8px 0; background: #fff; border-radius: 10px; }
.qr-box canvas { display: block; image-rendering: pixelated; }
.qr-link { text-align: center; word-break: break-all; margin: 6px 0; font-size: 13px; }
.invite-list td { vertical-align: top; }
.inv-steps { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.inv-step { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--panel3); color: var(--muted); white-space: nowrap; }
.inv-step.on { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); font-weight: 600; }
.inv-step .plink { font-size: 12px; }
.inv-arrow { color: var(--muted); font-size: 11px; }
.invite-fs .row-actions { margin-top: 6px; }
.inv-codes td, .inv-codes th { white-space: nowrap; }
@media (max-width: 760px) {
  .invite-link { flex-direction: column; }
  .invite-actions .btn { flex: 1 1 calc(50% - 6px); }
}

/* ---------- Projekt unterstützen (Buy me a coffee) ---------- */
.coffee-ico { width: 18px; height: 18px; flex: none; }
.bmc-btn { display: inline-flex; align-items: center; gap: 6px; background: #ffdd00; color: #1a1a1a; border-radius: 999px; padding: 5px 12px 5px 9px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; line-height: 1.2; box-shadow: 0 1px 0 rgba(0,0,0,.15); transition: transform .12s, box-shadow .12s; }
.bmc-btn:hover, .bmc-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(255,221,0,.35); color: #1a1a1a; text-decoration: none; }
.nav-ver .bmc-btn { margin-right: 4px; }
.bmc-tile { color: var(--text); text-decoration: none; border-color: rgba(255,221,0,.55); }
.bmc-tile .coffee-ico { width: 26px; height: 26px; color: #e6c200; }
.bmc-tile small { font-weight: 400; }
.bmc-note { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; border: 1px solid rgba(255,221,0,.55); background: rgba(255,221,0,.08); border-radius: var(--radius); padding: 12px 14px; margin: 8px 0 14px; }
.bmc-note p { margin: 0; font-size: 14px; }
.bmc-note .bmc-btn { grid-column: 2; justify-self: start; }
.bmc-note-ico { color: #e6c200; }
.bmc-note-ico .coffee-ico { width: 30px; height: 30px; }
@media (max-width: 1379px) { .nav-ver .bmc-btn span { display: none; } .nav-ver .bmc-btn { padding: 5px 8px; } }
@media (max-width: 1119px) { .nav-ver .bmc-btn { display: none; } }

/* ---------------------------------------------------------------- Icons (js/icons.js) & Logos (js/logos.js) */
:root { --icon-fill: currentColor; --icon-fill-o: .16; --logo-ring: rgba(255,255,255,.1); }
:root[data-theme="light"] { --logo-ring: rgba(15,23,42,.1); }
.ico { flex: none; vertical-align: -.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ico:not([width]) { width: 1.25em; height: 1.25em; }
.ico .f { fill: var(--icon-fill); fill-opacity: var(--icon-fill-o); }
.ico .n { fill: var(--icon-fill); fill-opacity: var(--icon-fill-o); stroke: none; }
.ico .s { fill: currentColor; stroke: none; }
.logo-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tlogo { flex: none; display: inline-block; vertical-align: middle; border-radius: 25%; box-shadow: 0 0 0 1px var(--logo-ring); }
/* Einsatzorte */
.with-logo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sym-tag { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.sym-btn.has-logo { display: flex; align-items: center; gap: 9px; }
.sym-btn .sym-txt { display: block; min-width: 0; }
.sh-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sh-id .sh-logo { border-radius: 14px; }
.sh-act .ico, .btn .ico { width: 16px; height: 16px; }
.ico.star-on { color: var(--gold); --icon-fill-o: 1; }
#tSym { display: inline-flex; align-items: center; gap: 6px; vertical-align: -5px; margin-left: 4px; }
ul.news li.n-sym { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; }
ul.news li.n-sym > * { grid-column: 2; }
ul.news li.n-sym > .n-logo { grid-column: 1; grid-row: 1 / span 3; margin-top: 2px; }
.ic { display: inline-flex; justify-content: center; color: var(--muted); }
ul.inbox li.unread .ic { color: var(--accent); }
ul.cal .ic { padding-top: 1px; }
ul.events .ic { flex: none; }
.more-item .more-ic { width: 26px; height: 26px; color: var(--accent); }
.td-ic { display: grid; place-items: center; position: relative; }
.td-urgent .td-ic { color: var(--down); } .td-today .td-ic { color: var(--gold); } .td-claim .td-ic { color: var(--up); } .td-watch .td-ic, .td-start .td-ic { color: var(--accent); }
.td-badge { position: absolute; right: -6px; bottom: -6px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.td-due .ico { width: 14px; height: 14px; vertical-align: -2px; }
.toast.has-ic { padding-left: 44px; }
.toast .t-ic { position: absolute; left: 13px; top: 11px; color: var(--accent); }
.toast.ok .t-ic { color: var(--up); } .toast.err .t-ic { color: var(--down); } .toast.gold .t-ic, .toast.warn .t-ic { color: var(--gold); }
.toast-x { display: grid; place-items: center; }
.ach .i { color: var(--gold); line-height: 0; }
.ach-chip .ico { color: var(--gold); }
.medal .ico { width: 20px; height: 20px; }
.ico.rank-1 { color: var(--gold); } .ico.rank-2 { color: #9aa6b8; } .ico.rank-3 { color: #c27a3e; }
.toc-item .ico { margin-right: 4px; color: var(--accent); }
.toc-item[aria-current="page"] .ico { color: inherit; }
.help-sec h3 .ico, .help-modal h2 .ico { color: var(--accent); }
.gov-line .ico { color: var(--muted); }
.bnav .ico { width: 24px; height: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo .signet { width: 28px; height: 28px; flex: none; }
@media (max-width: 760px) { .logo .signet { width: 24px; height: 24px; } .sh-id .sh-logo { width: 42px; height: 42px; border-radius: 11px; } }

/* ---------------------------------------------------------------- Feinschliff 0.22: Größen, Touch, Navigation (Design-Review) */
/* Unsichtbare Trefferfläche: kleine sichtbare Elemente (?, Links, Chips) bekommen am Finger mindestens 44 × 44 px */
@media (pointer: coarse) {
  .help-q, .linkish, .plink, .td-hide, button.chip, .px-btn, .ver-btn { position: relative; }
  :is(.help-q, .linkish, .plink, .td-hide, .toast-x, button.chip, .px-btn, .ver-btn)::before {
    content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
  .help-q { width: 24px; height: 24px; }
  .toast-x { width: 36px; height: 36px; }
  .grp-btn { min-height: 44px; }
  .mlist td { padding-top: 8px; padding-bottom: 8px; }
  .toc-item { min-height: 44px; }
  .bnav button { min-height: 52px; }
}

/* Kopf am Handy: Fehler-Knopf liegt im Menü „Mehr“ (sichtbar bleibt er nur, wenn gerade ein Fehler auftrat) */
@media (max-width: 760px) {
  #bugBtn:not(:has(.dot:not([hidden]))) { display: none; }
  header.top .icon-btn { width: 40px; height: 40px; }
  header.top :is(.icon-btn, .todo-pill, #userBtn) { position: relative; }
  header.top :is(.icon-btn, .todo-pill, #userBtn)::before { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 44px; transform: translateY(-50%); }
  #userBtn { min-height: 40px; padding: 7px 10px; line-height: 26px; }
  .todo-pill { height: 40px; min-width: 44px; justify-content: center; }
  .sh-act-l { display: none; }
  .sh-act .btn { min-width: 40px; padding: 0 9px; }
  .sh-act { margin-left: auto; }
}
@media (min-width: 761px) and (pointer: coarse) {
  header.top .icon-btn { width: 40px; height: 40px; }
  .mainnav button, .nav-more { min-height: 44px; }
}
@media (max-width: 1020px) and (min-width: 761px) {
  /* Tablet: Kopf priorisieren – Text der Aufgaben-Pille weg, Name kürzer */
  .todo-pill .todo-l { display: none; }
  .todo-pill { padding: 0 4px; }
  #userBtn { max-width: 120px; }
  header.top { gap: 10px; }
  .phase { min-width: 130px; }
}

/* Hauptnavigation mit „Mehr“-Überlauf (js/navfit.js) */
.mainnav::-webkit-scrollbar { display: none; }
.nav-more { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 12px; white-space: nowrap; font-weight: 600; flex: none; display: inline-flex; align-items: center; gap: 4px; position: relative; }
.nav-more:hover, .nav-more[aria-expanded="true"] { color: var(--text); }
.nav-more[aria-current="page"] { color: var(--text); border-color: var(--accent); }
.nav-more.has-count::after { content: ''; position: absolute; top: 9px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.nav-more-ic { width: 14px; height: 14px; stroke-width: 2.2; }
.nav-pop { position: fixed; z-index: 40; min-width: 220px; max-width: calc(100vw - 16px); display: flex; flex-direction: column; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 32px var(--shadow-lg); }
.nav-pop-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; background: none; border: 0; border-radius: var(--r-sm); padding: 0 12px; min-height: var(--ctl-h-lg); color: var(--text); font-weight: 600; white-space: nowrap; }
.nav-pop-item:hover { background: var(--panel2); }
.nav-pop-item[aria-current="page"] { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.nav-pop-item .nav-count { margin-left: auto; }
.nav-pop-ver { display: flex; align-items: center; gap: 8px; padding: 6px 8px 2px; margin-top: 4px; border-top: 1px solid var(--line); }
.nav-pop-ver .bmc-btn { display: inline-flex; }
.nav-pop-ver .bmc-btn span { display: inline; }

/* Tabellen mit seitlichem Scrollen: Schattenkante zeigt, dass es weitergeht */
.card .scroll-x { background:
  linear-gradient(90deg, var(--panel) 30%, transparent) left / 24px 100% no-repeat local,
  linear-gradient(-90deg, var(--panel) 30%, transparent) right / 24px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, var(--shadow), transparent) left / 10px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, var(--shadow), transparent) right / 10px 100% no-repeat scroll; }

/* Briefing „Deine Positionen“: am Handy ohne Vortag/Indikativ, passt dann ohne Querscrollen */
@media (max-width: 520px) { table.brief-pos :is(th, td):is(:nth-child(4), :nth-child(5)) { display: none; } }

/* Freunde am Handy als Kartenliste: Name oben, Kennzahlen darunter, Aktionen rechts */
@media (max-width: 760px) {
  table.friends, table.friends tbody { display: block; }
  table.friends thead { display: none; }
  table.friends tr { display: grid; grid-template-columns: repeat(3, auto) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--row-line); align-items: end; }
  table.friends td { display: block; border: 0; padding: 0; text-align: left; }
  table.friends td:first-child { grid-column: 1 / -1; min-width: 0; }
  table.friends td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); }
  table.friends :is(th, td):nth-child(4) { display: block; }
  table.friends td.row-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }
  table.friends td.row-actions .btn { display: inline-flex; width: auto; }
  table.friends td.row-actions .btn + .btn { margin: 0; }
  .card .scroll-x:has(> table.friends) { background: none; overflow: visible; }
}

/* Analysen: Formular-Beschriftungen über dem Feld */
.ana-form > label { display: grid; gap: 3px; color: var(--muted); font-size: 12px; }
.ana-form > label > :is(input, textarea) { color: var(--text); font-size: var(--fs-base); }
@media (pointer: coarse) { .ana-form > label > :is(input, textarea) { font-size: 16px; } }

/* Bottom-Sheet-Einschub */
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }

/* Querformat am Handy: Kopf nicht kleben lassen (sonst bleibt kaum Inhalt sichtbar) */
@media (max-height: 500px) and (pointer: coarse) {
  header.top { position: static; }
  body:not(.admin) .mainnav { position: static; }
  .market-col { top: 8px; max-height: calc(100dvh - 16px); }
}

/* Marktliste in mittleren Breiten: etwas breiter, kleinere Logos – Name bleibt lesbar */
@media (max-width: 1250px) and (min-width: 1021px) { #v-trade { grid-template-columns: 272px minmax(0, 1fr) 310px; } }
@media (max-width: 1250px) { .mlist .tlogo { width: 24px; height: 24px; } .sym-btn.has-logo { gap: 7px; } .mlist th:nth-child(2) { width: 62px; } }
@media (max-width: 760px) {
  .chart-bar .seg.ranges { flex: 1 1 0; min-width: 0; }
  .chart-bar .seg.mini:not(.ranges) { flex: none; }
  .chart-bar .seg.mini:not(.ranges) button { padding: 0 8px; }
  .sh-id { min-width: 0; flex: 1 1 150px; }
  .sh-act { order: 1; margin-left: 0; }
  .sh-top > .help-q { order: 2; margin: 0 0 0 2px; }
  .px-big { order: 3; flex: 1 1 100%; }
  .sh-top > .badges { order: 4; }
  /* Handeln am Handy: der Börsen-Hinweis steht schon im Aktienkopf */
  body[data-view="handeln"] #marketBanner { display: none; }
  .sh-id > div { min-width: 0; }
  .sh-id .sym { font-size: 20px; }
  .sh-id .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
}
@media (max-width: 760px) {
  .phase-txt { min-width: 0; }
  .phase-txt b { flex: none; }
  .stock-col .banner-in { font-size: 13px; padding: 6px 10px; margin: 0 12px 8px; }
}
/* Mein Tag: gefüllte Knöpfe nur für „Sofort handeln“, „Heute fällig“ und „Abholen“ – „Im Blick“ als Umriss */
.td-watch .td-acts .btn:not(.ghost) { background: transparent; border-color: var(--line); color: var(--text); }
/* kleine Knöpfe am Finger: 36 px sichtbar, 44 px Trefferfläche */
@media (pointer: coarse) { .btn.small { position: relative; } .btn.small::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); } }

/* ================================================================ Bilanz, Rating, Gewinnserie, Branchenausblick */
.credit-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: var(--panel2); }
.credit-card .kpis { margin: 6px 0; gap: 8px 22px; }
.credit-card .kpis div { min-width: 84px; }
.cc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.cc-head h3 { margin: 0; }
.cc-rating { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rt-badge { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 0 7px; border-radius: 6px; line-height: 1.6; white-space: nowrap; }
.rt-badge.sm { font-size: 11px; padding: 0 5px; line-height: 1.5; }
.rt-aa { background: color-mix(in srgb, var(--up) 20%, transparent); color: var(--up); }
.rt-a { background: color-mix(in srgb, var(--up) 12%, transparent); color: var(--up); }
.rt-bbb { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--info); }
.rt-bb { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.rt-b { background: color-mix(in srgb, var(--down) 16%, transparent); color: var(--down-soft); }
.rt-d { background: var(--down); color: var(--on-signal); }
.rt-ol { font-size: 10px; margin-left: 2px; }
.streak { margin: 6px 0; padding: 4px 8px; border-left: 3px solid var(--line); font-size: 14px; }
.streak.on { border-left-color: var(--up); }
.streak.broke { border-left-color: var(--down); }
.ol-own { margin: 6px 0; font-size: 14px; }
.ol-list li { display: grid; grid-template-columns: minmax(90px, 140px) minmax(80px, 1fr) auto; align-items: center; gap: 2px 10px; padding: 4px 0; border-bottom: 1px solid var(--row-line); }
.ol-list .ol-why { grid-column: 1 / -1; }
.ol-name { font-weight: 600; }
.ol-val { font-family: var(--mono); text-align: right; white-space: nowrap; }
.ol-bar { position: relative; height: 8px; border-radius: 4px; background: var(--panel3); }
.ol-bar::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--muted); }
.ol-bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--up); }
.ol-bar i.down { background: var(--down); }
.ol-wrap { margin-top: 12px; }
.ol-brief summary { cursor: pointer; margin: 10px 0 4px; }
@media (max-width: 600px) {
  .ol-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .ol-list .ol-bar { grid-column: 1 / -1; grid-row: 2; }
  .credit-card .kpis div { min-width: 40%; }
}

/* Hauptnavigation am Desktop bleibt beim Scrollen unter dem Kopf stehen; --top-h = Kopf + Navigation (gemessen in app.js) */
body:not(.admin) .mainnav { position: sticky; top: var(--hdr-h, 56px); z-index: 29; }

/* ---------------------------------------------------------------- Hebelprodukte (Optionsscheine, Turbos) */
.d-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.d-u { margin: 0; }
.d-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
.d-filters .seg { margin: 0; }
.d-f { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.d-f select { padding: 3px 6px; min-height: 28px; }
.d-table { width: 100%; }
.d-table td { vertical-align: top; }
.d-table tr.d-held td { background: color-mix(in srgb, var(--up) 6%, transparent); }
.th-sort { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.th-sort:hover { color: var(--text); }
.d-open { text-align: left; white-space: nowrap; }
.d-k { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 6px; line-height: 1.6; }
.d-k.d-call, .d-k.d-long { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); }
.d-k.d-put, .d-k.d-short { background: color-mix(in srgb, var(--down) 16%, transparent); color: var(--down-soft); }
.d-theta { color: var(--muted); }
.d-explain { margin: 10px 0 4px; }
.d-warn .btn-row { margin-top: 8px; }
.modal.d-modal { width: min(560px, 100%); }
.d-sub { margin: -6px 0 10px; }
.d-quote { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px; }
.d-quote > div { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; min-width: 0; }
.d-quote small { display: block; color: var(--muted); font-size: 11px; }
.d-quote b { font-size: 15px; }
.d-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; margin: 0 0 10px; font-size: 13px; }
.d-kpis > div { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dashed var(--line); padding: 2px 0; min-width: 0; }
.d-kpis dt { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-kpis dd { margin: 0; white-space: nowrap; }
.d-ticket .seg.mini { margin-bottom: 8px; }
.d-ticket .btn-row { display: flex; gap: 4px; flex-wrap: wrap; }
.lbl-s { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.klar-say { margin: 6px 0 0; min-height: 2.8em; line-height: 1.4; }
.d-risk { margin: 6px 0 8px; color: var(--down-soft); }
.d-ack { color: var(--down-soft); }
.d-depot td { vertical-align: top; }
@media (max-width: 760px) {
  .d-quote { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-filters .seg { overflow-x: auto; max-width: 100%; }
}

/* Einheitliche Felder in allen Browsern: Safari zeichnet <select> sonst nativ (eigene, kleinere Höhe) und zeigt Pfeile in Zahlenfeldern */
select:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none; height: calc(var(--ctl-h) + 2px); line-height: 1.2; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238d9ab1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px 8px;
}
select::-ms-expand { display: none; }
input:where(:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file])) { height: calc(var(--ctl-h) + 2px); }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.d-f select { height: calc(var(--ctl-h-sm) + 4px); min-height: 0; padding: 0 26px 0 8px; background-position: right 8px center; }
/* Orderticket: Schnellknöpfe so hoch wie die Eingabefelder (ein Raster, keine springenden Höhen) */
@media (pointer: fine) {
  #ticketCard .lim-tools .btn, #ticketCard .qty-quick .btn { min-height: calc(var(--ctl-h) + 2px); }
}
/* Orderticket „Erweitert“: Gültigkeit über die volle Breite, darunter Datum/Iceberg; Häkchen-Optionen als eigene Abschnitte */
.adv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; align-items: end; }
.adv-grid .adv-wide { grid-column: 1 / -1; }
.adv-grid > .field[hidden] { display: none; }
#fDate[hidden] + #fPeak { grid-column: 1 / -1; }
.adv #fBracket, .adv #fOco { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }
.adv .check { margin: 8px 0; line-height: 1.35; }
.adv .check > span { min-width: 0; }
.adv summary { padding: 10px 0; }

/* Admin: Modellauswahl für die KI-Auswertung */
.llm-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.llm-pick select { flex: 1 1 200px; min-width: 0; }
.llm-pick small { flex-basis: 100%; }

/* Admin-Einstellungen nach Kategorien: links Themenliste, rechts eine Spalte mit den Gruppen der Kategorie */
.set-bar .admin-actions { margin-bottom: 0; }
.set-bar #setSearch { margin-left: auto; width: 16rem; max-width: 100%; }
.set-layout { display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 10px; }
.set-nav { display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius, 10px); background: var(--panel); }
.set-cat { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.set-cat:hover { background: var(--hover, rgba(127, 127, 127, .1)); }
.set-cat[aria-current] { background: var(--accent-bg, rgba(59, 130, 246, .16)); color: var(--accent); font-weight: 600; }
.set-cat small { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.set-cat-n:empty { display: none; }
.set-cat-n { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #111; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.set-main { min-width: 0; max-width: 58rem; }
.set-pane + .set-pane:not([hidden]) { margin-top: 18px; }
.set-pane-h { margin: 2px 0 10px; font-size: 18px; }
.set-card { margin: 0 0 10px; }
.set-card .card-h { font-size: 12px; }
.set-main .set-row { grid-template-columns: minmax(0, 1fr) 12rem; }
.set-main .set-row.set-stack, .set-main .set-row.wide { grid-template-columns: minmax(0, 1fr); }
.link-btn { display: inline; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 0; }
@media (min-width: 761px) {
  .set-nav { position: sticky; top: calc(57px + 66px); }
}
@media (max-width: 760px) {
  .set-layout { grid-template-columns: minmax(0, 1fr); }
  .set-nav { flex-direction: row; overflow-x: auto; padding: 4px; scrollbar-width: none; }
  .set-cat { width: auto; flex: none; grid-template-columns: auto auto auto; white-space: nowrap; }
  .set-cat small { display: none; }
  .set-bar #setSearch { margin-left: 0; width: 100%; }
  .set-main .set-row { grid-template-columns: minmax(0, 1fr) 8rem; }
}

/* Unter-Reiter (Spielsteuerung) */
.subtabs { display: flex; gap: 4px; margin: 0 0 10px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius, 10px); background: var(--panel); overflow-x: auto; scrollbar-width: none; }
.subtabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.subtabs button:hover { color: var(--text); }
.subtabs button[aria-selected="true"] { background: var(--accent-bg, rgba(59, 130, 246, .16)); color: var(--accent); font-weight: 600; }
.subpanel > .card + .card, .subpanel > .grid2 + .card { margin-top: 10px; }
@media (max-width: 760px) {
  /* Admin-Hauptnavigation auf dem Handy: eine wischbare Zeile statt drei umbrochener */
  body.admin .mainnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body.admin .mainnav button { flex: none; }
}

/* ================================================================ Laufband (Live-Ticker) */
.news-ticker { --tk-h: 36px; display: flex; align-items: stretch; height: var(--tk-h); background: linear-gradient(180deg, var(--panel2), var(--panel)); border-block: 1px solid var(--line); font-size: 13px; overflow: hidden; position: relative; z-index: 28; }
.news-ticker[hidden] { display: none; }
.tk-live { flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px 0 14px; background: var(--down-fill); color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11.5px; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 20px; }
.tk-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: tk-pulse 1.6s ease-out infinite; }
@keyframes tk-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); } 70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.news-ticker.tk-new .tk-live { background: var(--gold); color: #111; }
.news-ticker.tk-new .tk-live i { background: #111; }
.tk-viewport { flex: 1; min-width: 0; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 32px), transparent); }
.tk-track { display: flex; width: max-content; height: 100%; animation: tk-scroll var(--tk-dur, 60s) linear infinite; will-change: transform; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--tk-w, 50%))); } }
.news-ticker:hover .tk-track, .news-ticker:focus-within .tk-track, .news-ticker.tk-paused .tk-track, .news-ticker.tk-hold .tk-track { animation-play-state: paused; }
.tk-run { display: flex; align-items: center; flex: none; padding-left: 28px; white-space: nowrap; }
.tk-item { display: inline-flex; align-items: center; gap: 8px; }
.tk-sep { display: inline-block; width: 5px; height: 5px; margin: 0 18px; border-radius: 1px; background: var(--accent); opacity: .6; transform: rotate(45deg); flex: none; }
.tk-time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.tk-src { padding: 1px 6px; border-radius: 4px; background: var(--panel3); color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.tk-dir { font-size: 10px; }
.tk-item[data-dir="up"] .tk-dir { color: var(--up); }
.tk-item[data-dir="down"] .tk-dir { color: var(--down); }
.tk-item[data-dir="flat"] .tk-dir { color: var(--muted); }
.tk-title { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; min-height: 0; white-space: nowrap; }
.tk-title:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tk-strong .tk-title { font-weight: 700; }
.tk-flag { padding: 1px 7px; border-radius: 4px; background: var(--gold); color: #111; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tk-sym { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; min-height: 0; white-space: nowrap; }
.tk-sym:hover { border-color: var(--accent); }
.tk-sym .logo, .tk-sym svg { flex: none; }
.tk-market { gap: 0; }
.tk-idx { display: inline-flex; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; }
.tk-idx b { color: var(--accent); font-weight: 700; }
.tk-movers { display: inline-flex; align-items: center; gap: 6px; }
.tk-lbl { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.tk-empty { color: var(--muted); }
.tk-ctl { flex: none; display: flex; align-items: center; gap: 2px; padding: 0 6px; border-left: 1px solid var(--line); background: var(--panel); }
.tk-btn { display: grid; place-items: center; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.tk-btn:hover { background: var(--panel3); color: var(--text); }
/* Weniger Bewegung: Meldungen wechseln einzeln statt zu laufen */
.news-ticker.tk-reduce .tk-track { animation: none; width: 100%; }
.news-ticker.tk-reduce .tk-run { width: 100%; padding-left: 14px; overflow: hidden; }
.news-ticker.tk-reduce .tk-run > .tk-sep { display: none; }
.news-ticker.tk-reduce .tk-run > .tk-item { display: none; }
.news-ticker.tk-reduce .tk-run > .tk-item.tk-on { display: inline-flex; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tk-reopen:has(> [hidden]) { display: none; }
.tk-reopen { margin: 0 0 8px; }
@media (prefers-reduced-motion: reduce) { .tk-live i { animation: none; } }

/* Desktop: feste Leiste am unteren Rand, Inhalt und Hinweise rücken darüber */
@media (min-width: 761px) {
  .news-ticker { position: fixed; left: 0; right: 0; bottom: 0; border-bottom: 0; box-shadow: 0 -4px 16px var(--shadow, rgba(0, 0, 0, .25)); }
  body.has-ticker { padding-bottom: 36px; }
  body.has-ticker .toasts { bottom: calc(max(16px, var(--safe-b)) + 36px); }
  body.has-ticker .market-col { max-height: calc(100dvh - var(--top-h, 104px) - 20px - 36px); }
}
/* Handy: schmale Leiste unter dem Kopf, im Fluss */
@media (max-width: 760px) {
  .news-ticker { --tk-h: 32px; font-size: 12.5px; }
  .tk-live { padding-left: 10px; padding-right: 16px; letter-spacing: .05em; }
  .tk-live small { display: none; }
  .tk-ctl { padding: 0 2px; }
  .tk-time { display: none; }
}
/* ---------------------------------------------------------------- Marktliste: Indizes, Suche, Filter, Merkliste (ab 0.25) */
.idx-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 6px 6px 0; }
.idx-chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 6px; text-align: left;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; color: var(--text); font-size: 12px; min-width: 0; }
.idx-chip .idx-n { grid-column: 1 / -1; color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idx-chip b { font-size: 13px; font-variant-numeric: tabular-nums; }
.idx-chip > span:last-child { font-size: 12px; justify-self: end; }
.idx-chip.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel2)); }
.mfilter { display: grid; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); }
.mfilter input[type=search] { min-height: var(--ctl-h, 34px); padding: 4px 10px; width: 100%; box-sizing: border-box; }
.mf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.mf-row select { min-height: var(--ctl-h, 34px); padding: 2px 4px; font-size: 12px; text-overflow: ellipsis; min-width: 0; }
.mfilter.active .mf-row select { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.mlist tr[data-sym] > td:first-child { position: relative; padding-left: 22px; }
.mlist .wl-btn { position: absolute; left: 1px; top: 6px; background: none; border: 0; padding: 7px 3px; color: var(--muted); opacity: .5; line-height: 0; }
.mlist .wl-btn .ico { width: 15px; height: 15px; }
.mlist .wl-btn.on { color: var(--gold); opacity: 1; --icon-fill: currentColor; --icon-fill-o: 1; }
.mlist tr:hover .wl-btn, .mlist .wl-btn:focus-visible { opacity: 1; }
.seg-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); vertical-align: 1px; }
.seg-tag.seg-mid { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.seg-tag.seg-small { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.idx-members { columns: 2 220px; column-gap: 16px; padding: 0; margin: 6px 0 0; list-style: none; font-size: 13px; }
.idx-members li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; break-inside: avoid; border-bottom: 1px solid var(--row-line); }
@media (pointer: coarse) {
  .mlist .wl-btn { padding: 9px 4px; top: 3px; left: 0; }
  .mlist .wl-btn .ico { width: 18px; height: 18px; }
  .mf-row select, .mfilter input[type=search] { font-size: 16px; }
}
@media (max-width: 760px) {
  .idx-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .idx-chip { padding: 4px 6px; }
  .idx-chip b { font-size: 12px; }
}
@media (max-width: 400px) { .idx-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.idx-strip .idx-more { grid-column: 1 / -1; justify-self: end; font-size: 12px; padding: 0 2px; }
.idx-members li .ellip { flex: 1; min-width: 0; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.idx-members li .sym-tag { flex: none; min-width: 64px; }
@media (max-width: 480px) { .mf-row { grid-template-columns: 1fr 1fr; } .mf-row select:first-child { grid-column: 1 / -1; } }
.idx-tbl .linkish { white-space: nowrap; }
@media (max-width: 480px) { .idx-tbl .idx-what { display: none; } }

/* ================================================================ Startseite (ohne Anmeldung) – immer im dunklen Börsen-Look */
html.splash-open, html.splash-open body { overflow: hidden; }
.spl { --s-panel: rgba(18, 24, 38, .72); --s-line: rgba(120, 150, 210, .18); --s-text: #e8eef9; --s-muted: #93a0b8; --s-up: #2bd36b; --s-down: #ff5c5c; --s-acc: #4c8dff; --s-gold: #f5b942;
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: #070b13; color: var(--s-text); isolation: isolate; animation: spl-in .35s ease-out; }
.spl.spl-out { animation: spl-out .35s ease-in forwards; pointer-events: none; }
@keyframes spl-in { from { opacity: 0; } }
@keyframes spl-out { to { opacity: 0; transform: scale(1.02); } }
.spl .up { color: var(--s-up); } .spl .down { color: var(--s-down); } .spl .flat { color: var(--s-muted); }
.spl-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(1200px 600px at 75% 20%, rgba(76, 141, 255, .18), transparent 60%), radial-gradient(900px 500px at 10% 90%, rgba(43, 211, 107, .10), transparent 60%), linear-gradient(180deg, #0a1020 0%, #070b13 100%); }
.spl-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(120, 150, 210, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 210, .07) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 80%); }
.spl-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.spl-float { position: absolute; font: 600 13px/1 var(--mono, ui-monospace, Menlo, monospace); color: var(--s-muted); opacity: 0; white-space: nowrap; animation: spl-drift 14s linear infinite; }
.spl-float b { color: var(--s-text); margin-right: 6px; }
@keyframes spl-drift { 0% { transform: translateY(30px); opacity: 0; } 15%, 85% { opacity: .32; } 100% { transform: translateY(-120px); opacity: 0; } }

.spl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(18px + var(--safe-t)) clamp(18px, 4vw, 56px) 18px; }
.spl-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.spl-brand em { font-style: normal; color: var(--s-acc); }
.spl-signet { width: 38px; height: 38px; filter: drop-shadow(0 6px 16px rgba(76, 141, 255, .45)); }
.spl-live { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 14px 7px 10px; border: 1px solid var(--s-line); border-radius: 999px; background: var(--s-panel); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 13px; white-space: nowrap; overflow: hidden; }
.spl-live b { font-weight: 700; }
.spl-t { color: var(--s-muted); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.spl-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--s-gold); }
.spl-dot[data-st="on"] { background: var(--s-up); animation: spl-pulse 1.8s infinite; }
.spl-dot[data-st="off"] { background: var(--s-muted); }
.spl-dot[data-st="eve"] { background: #a78bfa; }
@keyframes spl-pulse { 0% { box-shadow: 0 0 0 0 rgba(43, 211, 107, .7); } 70% { box-shadow: 0 0 0 8px rgba(43, 211, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 211, 107, 0); } }

.spl-main { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 420px); grid-template-areas: 'hero card' 'more card'; column-gap: clamp(24px, 5vw, 80px);
  align-content: center; align-items: center; padding: 10px clamp(18px, 4vw, 56px) 40px; max-width: 1360px; width: 100%; margin: 0 auto; }
.spl-hero { grid-area: hero; align-self: end; } .spl-more { grid-area: more; align-self: start; } .spl-card { grid-area: card; }
.spl-kicker { display: inline-flex; gap: 8px; align-items: center; padding: 5px 12px; border-radius: 999px; background: rgba(245, 185, 66, .12); color: var(--s-gold); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.spl h1 { margin: 18px 0 14px; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.03em; font-weight: 850; color: var(--s-text); }
.spl-grad { background: linear-gradient(90deg, #4c8dff, #2bd36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spl-lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: #c3cde0; max-width: 34em; margin: 0 0 26px; }
.spl-muted { color: var(--s-muted); font-size: 12.5px; }
.spl-idx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 660px; margin-bottom: 26px; }
.spl-tile { padding: 12px 14px 10px; border: 1px solid var(--s-line); border-radius: 14px; background: var(--s-panel); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); min-width: 0; }
.spl-tile small { display: block; color: var(--s-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spl-tile b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; margin: 3px 0 1px; }
.spl-c { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.spl-tile svg { display: block; width: 100%; height: 28px; margin-top: 6px; }
.spl-tile .spl-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spl-tile .spl-area { fill: currentColor; opacity: .12; stroke: none; }
.spl-tile svg.up { color: var(--s-up); } .spl-tile svg.down { color: var(--s-down); }
.spl-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 760px; }
.spl-feat { display: flex; gap: 12px; align-items: flex-start; }
.spl-feat > i { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(76, 141, 255, .14); color: var(--s-acc); }
.spl-feat:nth-child(2) > i { background: rgba(245, 185, 66, .14); color: var(--s-gold); }
.spl-feat:nth-child(3) > i { background: rgba(43, 211, 107, .14); color: var(--s-up); }
.spl-feat b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.spl-feat span { color: var(--s-muted); font-size: 13px; line-height: 1.45; }

.spl-card { position: relative; padding: 26px 26px 22px; border-radius: 22px; background: linear-gradient(180deg, rgba(24, 32, 51, .9), rgba(15, 21, 34, .94)); border: 1px solid rgba(120, 150, 210, .22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.spl-card::before { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; pointer-events: none; background: linear-gradient(140deg, rgba(76, 141, 255, .7), transparent 40%, transparent 60%, rgba(43, 211, 107, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spl-card h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; color: var(--s-text); }
.spl-sub { margin: 0 0 18px; color: var(--s-muted); font-size: 13.5px; }
.spl-invite { margin: -6px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--s-line); }
.spl-invite h2 { font-size: 18px; }
.spl-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--s-line); margin-bottom: 18px; }
.spl-seg button { min-height: 0; padding: 9px; border: 0; border-radius: 9px; background: none; color: var(--s-muted); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.spl-seg button[aria-selected="true"] { background: var(--s-acc); color: #fff; box-shadow: 0 4px 14px rgba(76, 141, 255, .4); }
.spl-f { margin-bottom: 13px; }
.spl-f[hidden] { display: none; }
.spl-f label { display: block; font-size: 12.5px; color: var(--s-muted); margin-bottom: 6px; font-weight: 600; }
.spl-opt { font-weight: 400; }
.spl .spl-f input { width: 100%; height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid rgba(120, 150, 210, .25); background: rgba(5, 8, 14, .6); color: var(--s-text); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.spl .spl-f input::placeholder { color: #6b7790; }
.spl .spl-f input:focus { border-color: var(--s-acc); box-shadow: 0 0 0 3px rgba(76, 141, 255, .25); }
.spl-err { margin: 0 0 6px; color: var(--s-down); font-size: 13px; }
.spl-err:empty { display: none; }
.spl-go { width: 100%; height: 48px; margin-top: 6px; border: 0; border-radius: 12px; background: linear-gradient(90deg, #2f6fe4, #4c8dff); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 28px rgba(47, 111, 228, .45); display: flex; align-items: center; justify-content: center; gap: 10px; }
.spl-go:hover { filter: brightness(1.08); }
.spl-go:disabled { opacity: .6; cursor: progress; }
.spl-bonus { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(43, 211, 107, .09); border: 1px solid rgba(43, 211, 107, .25); font-size: 13px; color: var(--s-text); }
.spl-bonus[hidden] { display: none; }
.spl-bonus svg { color: var(--s-up); flex: none; }
.spl-bonus b { color: var(--s-up); }
.spl-watch { display: block; width: 100%; min-height: 0; margin-top: 14px; padding: 10px; border: 1px dashed rgba(120, 150, 210, .35); border-radius: 12px; background: none; color: var(--s-muted); font: inherit; font-size: 13.5px; cursor: pointer; }
.spl-watch:hover { color: var(--s-text); border-color: var(--s-acc); }

.spl-tape { position: sticky; bottom: 0; flex: none; height: 38px; display: flex; align-items: center; border-top: 1px solid var(--s-line); background: rgba(10, 15, 26, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; font-size: 13px; padding-bottom: var(--safe-b); box-sizing: content-box; }
.spl-lbl { flex: none; position: relative; z-index: 2; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 22px 0 16px; background: #d93636; color: #fff; font-weight: 800; letter-spacing: .08em; font-size: 11.5px; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.spl-lbl i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: spl-pulse 1.6s infinite; }
.spl-vp { flex: 1; min-width: 0; overflow: hidden; }
.spl-run { display: flex; align-items: center; width: max-content; white-space: nowrap; padding-left: 24px; animation: spl-run var(--spl-dur, 60s) linear infinite; }
.spl-run > span { display: inline-flex; gap: 6px; align-items: baseline; }
.spl-acc { color: var(--s-acc); }
.spl-news { color: #c3cde0; }
.spl-sep { display: inline-block; width: 5px; height: 5px; margin: 0 18px; border-radius: 1px; background: var(--s-acc); opacity: .6; transform: rotate(45deg); }
@keyframes spl-run { to { transform: translateX(-50%); } }

@media (max-width: 860px) {
  .spl-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'hero' 'card' 'more'; row-gap: 22px; padding-top: 0; }
  .spl-top { padding: calc(12px + var(--safe-t)) 16px 12px; }
  .spl-brand { font-size: 20px; } .spl-signet { width: 34px; height: 34px; }
  .spl-t { display: none; }
  .spl h1 { margin-top: 12px; }
  .spl-lead { margin-bottom: 4px; }
  .spl-idx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spl-feats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .spl-card { padding: 22px 18px 18px; }
  .spl .spl-f input { font-size: 16px; }
  .spl-float { display: none; }
}
@media (prefers-reduced-motion: reduce) { .spl, .spl.spl-out, .spl-float, .spl-run, .spl-dot, .spl-lbl i { animation: none !important; } .spl-float { opacity: .25; } }
/* ================================================================ Bilanz & Bonität: Historie (Quartale, Ratingwechsel, Verlauf) */
.cc-hist { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.cc-hist > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.cc-hist > summary small { font-weight: 400; margin-left: 4px; }
.cc-hist h4 { margin: 10px 0 4px; }
.hist-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 16px; margin: 6px 0; }
.hist-fig { margin: 0; min-width: 0; }
.hist-fig figcaption { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.hist-fig figcaption small { font-weight: 400; }
.hist-svg { display: block; width: 100%; height: auto; max-height: 170px; overflow: visible; }
.hist-svg text { font-size: 10px; fill: var(--muted); font-family: var(--num-font); }
.hist-svg .g { stroke: var(--row-line, var(--line)); stroke-width: 1; }
.hist-svg .ig { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 4 3; }
.hist-svg .igt { fill: var(--gold); }
.hist-svg .ln { fill: none; stroke: var(--info, var(--accent)); stroke-width: 2; stroke-linejoin: round; }
.hist-svg .ln.acc { stroke: var(--accent); }
.hist-svg circle.pt { fill: var(--accent); }
.hist-svg circle.up { fill: var(--up); stroke: var(--panel2); stroke-width: 1.5; }
.hist-svg circle.down { fill: var(--down); stroke: var(--panel2); stroke-width: 1.5; }
.hist-tw { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.hist-t { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.hist-t th, .hist-t td { padding: 4px 6px; border-bottom: 1px solid var(--row-line, var(--line)); vertical-align: middle; white-space: nowrap; }
.hist-t thead th { font-size: 12px; font-weight: 600; color: var(--muted); white-space: normal; line-height: 1.2; vertical-align: bottom; min-width: 4.5em; }
.hist-t tbody th { text-align: left; font-weight: 400; }
.hist-t tbody th small { display: block; font-size: 11px; }
.hist-t th:first-child { position: sticky; left: 0; background: var(--panel2); z-index: 1; }
.hist-t .hd { display: inline-block; min-width: 0; font-size: 11px; text-align: left; }
.hist-t tr.partial td, .hist-t tr.partial th { opacity: .8; }
.rh-list { margin: 2px 0 4px; padding-left: 0; list-style: none; }
.rh-list li { display: grid; grid-template-columns: 4.5em 1fr; gap: 0 8px; padding: 4px 0; border-bottom: 1px solid var(--row-line, var(--line)); font-size: 14px; }
.rh-list .rh-day { font-size: 13px; padding-top: 1px; }
.rh-list .rh-why { grid-column: 2; font-size: 12px; }
.rh-kind { font-size: 13px; }
@media (max-width: 600px) {
  .hist-t { font-size: 12px; }
  .hist-t th, .hist-t td { padding: 4px 6px; }
  .hist-t .hd { min-width: 0; display: block; text-align: right; }
  .rh-list li { grid-template-columns: 1fr; }
  .rh-list .rh-why { grid-column: 1; }
}

/* Kontomenü am Namen oben rechts (Profil, Admin, Abmelden) */
.user-menu { position: fixed; z-index: 90; min-width: 230px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.user-menu .um-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.user-menu .um-head b { font-size: 15px; }
.user-menu [role="menuitem"] { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 14px; color: inherit; text-decoration: none; cursor: pointer; text-align: left; }
.user-menu [role="menuitem"]:hover, .user-menu [role="menuitem"]:focus-visible { background: var(--row-hover); outline: none; }
.user-menu .um-logout { color: var(--sell); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.more-item.more-logout { color: var(--sell); }
/* ETF-Detailseite, Aktionärsstruktur */
.etf-tbl td { vertical-align: middle; }
.etf-tbl .etf-w { display: flex; align-items: center; gap: 8px; justify-content: flex-end; min-width: 130px; }
.etf-tbl .etf-w .meter { flex: 1 1 70px; max-width: 110px; }
.etf-tbl .etf-w span { min-width: 3.6em; }
.etf-tbl .tlogo { vertical-align: middle; }
.holders-box .holders-tbl { margin-bottom: 8px; }
@media (max-width: 760px) {
  .etf-tbl .etf-name { display: none; }
  .etf-tbl .etf-w { min-width: 0; }
  .etf-tbl .etf-w .meter { display: none; }
}

/* ================================================================ Farbschema „Börse“ (Look der Startseite im Spiel)
   data-look="boerse" liegt über dem dunklen Schema: tieferes Blau, Raster und Lichthöfe im Hintergrund,
   gläserne Kopfzeile, Karten mit Verlauf, Verlaufs-Knöpfe. Nur Farben/Flächen – Abstände und Größen bleiben gleich. */
:root[data-look="boerse"] {
  --bg: #070b13; --panel: #0e1422; --panel2: #121a2b; --panel3: #192338; --line: rgba(120, 150, 210, .2); --text: #e8eef9; --muted: #93a0b8;
  --row-line: rgba(120, 150, 210, .1); --row-hover: rgba(76, 141, 255, .08); --tip-bg: #0c1220; --panel-glass: rgba(12, 18, 30, .9);
  --seg-on: #1d2a44; --seg-shadow: inset 0 0 0 1px rgba(76, 141, 255, .35);
  --recap-from: #142140;
}
:root[data-look="boerse"] body {
  background-color: #070b13;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(76, 141, 255, .14), transparent 70%),
    radial-gradient(700px 420px at -5% 105%, rgba(43, 211, 107, .08), transparent 70%),
    linear-gradient(rgba(120, 150, 210, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 150, 210, .045) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-attachment: fixed;
}
:root[data-look="boerse"] header.top,
:root[data-look="boerse"] .mainnav { background: rgba(9, 14, 24, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: rgba(120, 150, 210, .16); }
:root[data-look="boerse"] .logo-t > span { background: linear-gradient(90deg, #4c8dff, #2bd36b); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-look="boerse"] .phase { background: rgba(18, 24, 38, .72); border-color: rgba(120, 150, 210, .22); }
:root[data-look="boerse"] .card { background: linear-gradient(180deg, rgba(20, 28, 46, .92), rgba(12, 18, 30, .94)); border-color: rgba(120, 150, 210, .18); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035); }
:root[data-look="boerse"] .card-h { border-bottom-color: rgba(120, 150, 210, .12); }
:root[data-look="boerse"] .btn:not(.ghost):not(.buy):not(.sell) { background: linear-gradient(135deg, #4c8dff, #2f6fe4); box-shadow: 0 6px 18px rgba(47, 111, 228, .28); }
:root[data-look="boerse"] .btn.buy { background: linear-gradient(135deg, #18a14f, #0f7a3a); box-shadow: 0 6px 18px rgba(24, 161, 79, .22); }
:root[data-look="boerse"] .btn.sell { background: linear-gradient(135deg, #e04848, #b52a2a); box-shadow: 0 6px 18px rgba(224, 72, 72, .22); }
:root[data-look="boerse"] .btn.ghost, :root[data-look="boerse"] .icon-btn { background: rgba(18, 24, 38, .6); border-color: rgba(120, 150, 210, .22); }
:root[data-look="boerse"] input, :root[data-look="boerse"] select, :root[data-look="boerse"] textarea { background-color: rgba(7, 11, 19, .7); border-color: rgba(120, 150, 210, .22); }
:root[data-look="boerse"] input:focus, :root[data-look="boerse"] select:focus, :root[data-look="boerse"] textarea:focus { border-color: #4c8dff; box-shadow: 0 0 0 3px rgba(76, 141, 255, .22); }
:root[data-look="boerse"] .stock-head .sym { letter-spacing: -.01em; }
:root[data-look="boerse"] .px-big .num { text-shadow: 0 0 24px rgba(76, 141, 255, .25); }
:root[data-look="boerse"] .modal { background: linear-gradient(180deg, #141c2e, #0c1220); border-color: rgba(120, 150, 210, .22); }
:root[data-look="boerse"] .user-menu { background: linear-gradient(180deg, #141c2e, #0c1220); }
@media (max-width: 760px) {
  /* Handy: kein fester Hintergrund (iOS rendert background-attachment: fixed schlecht) und weniger Unschärfe */
  :root[data-look="boerse"] body { background-attachment: scroll; }
  :root[data-look="boerse"] header.top, :root[data-look="boerse"] .mainnav { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
@media (prefers-reduced-transparency: reduce) {
  :root[data-look="boerse"] header.top, :root[data-look="boerse"] .mainnav { background: #0b111d; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* „Börse“ – kräftigere Akzente: leuchtende Index-Kacheln, Lichtkanten, Glüh-Navigation */
:root[data-look="boerse"] header.top { box-shadow: 0 1px 0 rgba(76, 141, 255, .18), 0 10px 30px rgba(0, 0, 0, .35); }
:root[data-look="boerse"] header.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(76, 141, 255, .7) 30%, rgba(43, 211, 107, .6) 70%, transparent); }
:root[data-look="boerse"] .logo .signet { filter: drop-shadow(0 0 10px rgba(76, 141, 255, .55)); }
:root[data-look="boerse"] .phase[data-phase="continuous"] .phase-dot { box-shadow: 0 0 0 3px rgba(43, 211, 107, .2), 0 0 12px rgba(43, 211, 107, .8); animation: look-pulse 2s ease-in-out infinite; }
@keyframes look-pulse { 50% { box-shadow: 0 0 0 6px rgba(43, 211, 107, .06), 0 0 18px rgba(43, 211, 107, .9); } }
:root[data-look="boerse"] .mainnav button[aria-current="page"], :root[data-look="boerse"] .nav-more[aria-current="page"] { color: #fff; border-color: #4c8dff; text-shadow: 0 0 14px rgba(76, 141, 255, .7);
  background: linear-gradient(180deg, transparent 55%, rgba(76, 141, 255, .14)); }
:root[data-look="boerse"] .tabs button[aria-selected="true"] { border-color: #4c8dff; text-shadow: 0 0 12px rgba(76, 141, 255, .55); }
/* Lichtkante oben an jeder Karte als eigene Hintergrundebene (ohne position – manche Karten sind sticky) */
:root[data-look="boerse"] .card { background:
  linear-gradient(90deg, transparent 4%, rgba(120, 170, 255, .5) 50%, transparent 96%) top / 100% 1px no-repeat,
  linear-gradient(180deg, rgba(20, 28, 46, .92), rgba(12, 18, 30, .94)); }
:root[data-look="boerse"] .card-h { color: #b7c3da; letter-spacing: .09em; }
/* Index-Kacheln wie auf der Startseite: Glas, farbige Lichtkante je Richtung */
:root[data-look="boerse"] .idx-chip { background: linear-gradient(180deg, rgba(24, 32, 51, .85), rgba(12, 18, 30, .9)); border-color: rgba(120, 150, 210, .2); border-radius: 12px; }
:root[data-look="boerse"] .idx-chip:has(.up) { border-color: rgba(43, 211, 107, .35); box-shadow: 0 0 18px rgba(43, 211, 107, .12), inset 0 -2px 0 rgba(43, 211, 107, .55); }
:root[data-look="boerse"] .idx-chip:has(.down) { border-color: rgba(255, 92, 92, .32); box-shadow: 0 0 18px rgba(255, 92, 92, .1), inset 0 -2px 0 rgba(255, 92, 92, .5); }
:root[data-look="boerse"] .idx-chip.on { box-shadow: 0 0 0 1px #4c8dff, 0 0 22px rgba(76, 141, 255, .35); }
/* Kurse mit leichtem Leuchten */
:root[data-look="boerse"] .px-big .up, :root[data-look="boerse"] .stat .up { text-shadow: 0 0 14px rgba(43, 211, 107, .45); }
:root[data-look="boerse"] .px-big .down, :root[data-look="boerse"] .stat .down { text-shadow: 0 0 14px rgba(255, 92, 92, .45); }
:root[data-look="boerse"] .px-big .num { background: linear-gradient(180deg, #fff, #c9d6ee); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
/* Kopfzahlen (Index, Depotwert) als Terminal-Anzeige */
:root[data-look="boerse"] header.top .stat small { color: #7f8db0; letter-spacing: .12em; }
:root[data-look="boerse"] header.top .stat b { font-variant-numeric: tabular-nums; }
/* Handy: Bodennavigation aus Glas mit leuchtendem aktiven Eintrag */
@media (max-width: 760px) {
  :root[data-look="boerse"] .bnav { background: rgba(9, 14, 24, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top-color: rgba(120, 150, 210, .18); }
  :root[data-look="boerse"] .bnav button[aria-current="page"] { color: #7fb0ff; text-shadow: 0 0 12px rgba(76, 141, 255, .7); }
  :root[data-look="boerse"] .bnav button[aria-current="page"] .ico { filter: drop-shadow(0 0 6px rgba(76, 141, 255, .8)); }
}
@media (prefers-reduced-motion: reduce) { :root[data-look="boerse"] .phase-dot { animation: none !important; } }
