/* economy.html — „Live Economy". Nav + :root aus _nav.css.
   Aufbau folgt tournament.css (dieselbe Seitenklasse: Live-Daten, JS-gefüllt). */
:root {
    --accent2:#ff6b35;
    --green:#3fb950;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { line-height: 1.7; }
.container { max-width: 800px; margin: 0 auto; padding: 0 2rem 2rem; }
h1 { color: #fff; font-size: 2.4rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
h2 { color: #fff; font-size: 1.4rem; margin: 3rem 0 1rem; }
h3 { color: var(--accent2); font-size: 1rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
.subtitle { opacity: 0.6; margin-bottom: 2.5rem; font-size: 1.05rem; }
.h2-slash { color: var(--accent2); opacity: 0.35; transition: opacity 0.2s ease-out; }
h2:hover .h2-slash { opacity: 0.85; }
.note { background: rgba(0,200,255,0.06); border-left: 3px solid var(--accent); padding: 0.8rem 1.2rem; margin: 1.5rem 0; border-radius: 0 6px 6px 0; font-size: 0.85rem; }
.muted { opacity: 0.5; font-size: 0.85rem; }

/* Kopf: die fünf Zahlen. Kein Link — sie sind Anzeige, nicht klickbar,
   deshalb weiß/Opacity statt Accent (Styleguide: Accent = klickbar). */
/* Fünf Zahlen, fünf Spalten. Bei minmax(150px) passten nur vier in die
   800px-Spalte und die fünfte stand allein in einer zweiten Reihe — das sah
   nach Versehen aus, nicht nach Absicht. 128px sind schmal genug für fünf und
   breit genug für „ACTIVE TRADERS" ohne Umbruch. */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 1rem; margin: 1.5rem 0 0.5rem; }
.figure { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.2rem; }
.figure .value { color: #fff; font-size: 1.5rem; font-weight: bold; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; }
.figure .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.45; margin-top: 0.35rem; }
.figure .hint { font-size: 0.7rem; opacity: 0.4; margin-top: 0.2rem; }

/* Zeitraum-Wahl. Buttons, weil sie den Inhalt ändern — also klickbar, also Accent. */
.window-picker { display: flex; gap: 0.5rem; margin: 0.5rem 0 1rem; flex-wrap: wrap; }
.window-picker button {
    background: transparent; border: 1px solid var(--border); color: var(--accent);
    font-family: inherit; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
    padding: 0.35rem 0.9rem; border-radius: 4px; cursor: pointer; transition: background 0.2s ease-out;
}
.window-picker button:hover { background: rgba(0,200,255,0.08); }
.window-picker button[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* Sechs Spalten passen auf 390 px nicht. Sie sollen dort in ihrem eigenen
   Kasten scrollen — NICHT die ganze Seite nach rechts schieben. Gemessen: ohne
   das lag scrollWidth 19 px über der Viewport-Breite, die Seite liess sich
   seitlich wegziehen. */
#overview, #report { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 0.5rem; min-width: 340px; }
table.data th { color: var(--accent); border-bottom: 1px solid var(--border); padding: 0.4rem 0.6rem; text-align: left; font-weight: normal; font-size: 0.72rem; text-transform: uppercase; }
table.data td { padding: 0.35rem 0.6rem; border-bottom: 1px solid rgba(0,200,255,0.06); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr { cursor: pointer; transition: background 0.2s ease-out; }
table.data tbody tr:hover { background: rgba(0,200,255,0.08); }
table.data tbody tr[aria-selected="true"] { background: rgba(0,200,255,0.12); }
table.data tbody tr:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }

/* Kursverlauf: inline-SVG, in JS gezeichnet — keine Bibliothek, kein CDN
   (Pflichtenheft-Engineering §1.4: nichts zur Laufzeit nachladen). */
.chart-wrap { margin-top: 1.2rem; }
.chart-wrap h3 { margin-bottom: 0.6rem; }
svg.chart { width: 100%; height: 180px; display: block; background: #0d1117; border: 1px solid var(--border); border-radius: 6px; }
svg.chart .grid { stroke: rgba(0,200,255,0.10); stroke-width: 1; }
svg.chart .wick { stroke: rgba(200,220,255,0.45); stroke-width: 1; }
svg.chart .body-up { fill: var(--green); }
svg.chart .body-down { fill: var(--accent2); }
svg.chart text { fill: #c8dcff; opacity: 0.45; font-size: 9px; font-family: inherit; }

.empty { opacity: 0.5; font-size: 0.85rem; padding: 1rem 0; }

.disclaimer { font-size: 0.72rem; opacity: 0.45; border-top: 1px solid var(--border); padding-top: 1.2rem; margin-top: 2.5rem; line-height: 1.8; }

.cta-box { text-align: center; padding: 2.5rem 0; margin-top: 2rem; border-top: 1px solid var(--border); }
.btn { display: inline-block; padding: 0.75rem 2rem; border-radius: 4px; font-weight: bold; font-size: 0.9rem; text-decoration: none; transition: opacity 0.2s; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { border: 1px solid var(--accent); color: var(--accent); margin-left: 1rem; }
.btn-secondary:hover { background: rgba(0,200,255,0.1); }

footer { text-align: center; padding: 2rem 0; font-size: 0.75rem; color: #6b7fa0; border-top: 1px solid var(--border); margin-top: 3rem; }
footer a { color: var(--accent); }

@media (max-width: 600px) {
    footer { line-height: 2.2; }
    .figure .value { font-size: 1.25rem; }
    table.data { font-size: 0.75rem; }
    table.data th, table.data td { padding: 0.3rem 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
