/* ═══════════════════════════════════════════════════════════════════════════
   NMLSS V2 — Design System (Dark default + Light override)
   bg=#050B18  card=#0D1626  accent=#3B82F6  up=#10B981  down=#F43F5E
   Fonts: Outfit (body) + Fira Code (mono/numbers)
═══════════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Fira+Code:wght@400;500;600;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────────────────── */
:root {
  /* Warmes, helles „Papier"-Farbkonzept mit Petrol/Teal-Akzent.
     Einheitliches Schema – kein Dunkelmodus mehr. */
  --bg:           #F4EFE7;
  --bg-1:         #EDE6DA;
  --bg-card:      #FDFBF7;
  --bg-elevated:  #F6F1E8;
  --bg-hover:     rgba(26,23,18,0.035);

  --border:       #DED5C6;
  --border-2:     #C9BDA9;
  --border-focus: rgba(14,147,132,0.45);

  --text:         #1A1712;
  --text-dim:     #6E655A;
  --muted:        #A69B8A;

  --accent:       #0E9384;
  --accent-2:     #0B7A6E;
  --accent-glow:  rgba(14,147,132,0.20);
  --accent-soft:  rgba(14,147,132,0.10);

  --up:           #0C9F6E;
  --up-soft:      rgba(12,159,110,0.12);
  --down:         #E02D49;
  --down-soft:    rgba(224,45,73,0.10);
  --flat:         #A69B8A;

  --gold:         #B7791F;
  --gold-soft:    rgba(183,121,31,0.12);

  /* ── Dashboard-Tokens (Konzept_Dashboard.md, Abschnitt 6.2) ──────────
     Rein additiv: kein Bestandselement verwendet diese Werte.
     --up/--down erreichen als Kleintext nur 3,28:1 bzw. 4,38:1 auf
     --bg-card und sind deshalb als Schriftfarbe nicht AA-konform.
     Die "-ink"-Varianten sind die Textfassungen derselben Bedeutung.
     Bis 08/2026 lagen diese Werte nur lokal in _analyst_styles.html. */
  --up-ink:       #0A7350;   /* 5,67:1 auf --bg-card */
  --down-ink:     #C2213B;   /* 5,68:1 */

  /* Betriebsaufmerksamkeit. Bewusst NICHT rot: Rot bedeutet auf einer
     Preisseite "gefallen" und verliert seine Trennschaerfe, wenn es
     zusaetzlich Stoerungen markiert. */
  --warn:         #8A5C00;   /* 5,63:1  – Textfarbe */
  --warn-bg:      #FBF2DF;   /* Flaeche */
  --warn-border:  #E8D7AC;   /* Haarlinie */
  --warn-strong:  #C9860A;   /* 2,74:1  – NUR Flaeche/Marker, nie Text */

  /* Alterskennzeichnung. Neutral-warm, kein eigener Farbton: "alt" ist
     Abwesenheit von Frische, keine eigene Kategorie. --text-dim darauf
     erreicht 4,73:1. */
  --stale-bg:     #EFE9DC;

  --r-sm:  5px;
  --r:     8px;
  --r-lg:  12px;
  --r-xl:  18px;

  --shadow: 0 2px 8px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.3);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --topbar-h: 58px;
  --sidebar-w: 200px;
}

/* ── Base Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
code {
  font-family: 'Fira Code', monospace;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-size: 0.875em;
  color: var(--text-dim);
}
.mono { font-family: 'Fira Code', monospace; }

/* ── Skip Link ────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: var(--r);
  font-size: 13px; font-weight: 600; z-index: 1000;
}
.skip-link:focus { top: 8px; }

/* ═══════════════════════════════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0; z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 var(--space-6);
  background: rgba(5,11,24,0.85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fira Code', monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(59,130,246,0.45);
  flex-shrink: 0;
}

.nav-links-center {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links-center a {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
}
.nav-links-center a:hover { color: var(--text); background: var(--bg-hover); }

.nav-links-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-links-right a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  transition: color 0.12s, background 0.12s;
}
.nav-links-right a:hover { color: var(--text); background: var(--bg-hover); }

/* ── Mobiler Header: Hamburger-Menü + einzelnes Login/Konto-Icon rechts ── */
.icon-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text);
  flex-shrink: 0;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.menu-backdrop { display: none; }
.mobile-menu { display: none; }

@media (max-width: 768px) {
  .nav-links-right > a:not(.icon-btn) { display: none; }
  .nav-links-right { gap: 8px; }
  .icon-btn { display: inline-flex; }

  .mobile-menu {
    display: block;
    position: fixed;
    top: var(--topbar-h); left: 0; right: 0; z-index: 99;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .mobile-menu.open { max-height: 320px; }
  .mobile-menu-inner { padding: 8px 20px 18px; display: flex; flex-direction: column; gap: 2px; }
  .mm-link {
    padding: 12px 6px;
    border-radius: var(--r-sm);
    font-size: 15px; font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
  }
  .mm-link:last-of-type { border-bottom: none; }
  .mm-link:hover { background: var(--bg-hover); text-decoration: none; }
  .mm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
  .mm-lang {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--r-sm);
    border: 1px solid var(--border);
    font-size: 13px; font-weight: 700;
    color: var(--text-dim); text-decoration: none;
  }
  .mm-lang:hover { color: var(--text); text-decoration: none; }
  .menu-backdrop.open {
    display: block; position: fixed;
    top: var(--topbar-h); left: 0; right: 0; bottom: 0;
    z-index: 98; background: rgba(0,0,0,0.35);
  }
}

/* Theme toggle — hidden in V2 (dark-first) */
.theme-toggle { display: none; }

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════════ */
.btn, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}
.btn {
  background: var(--accent);
  color: #fff;
}
.btn:hover { background: var(--accent-2); box-shadow: 0 0 20px var(--accent-glow); text-decoration: none; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-dim);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { background: var(--bg-hover); color: var(--text); border-color: rgba(255,255,255,0.2); text-decoration: none; }

.btn-lg { padding: 11px 24px; font-size: 14.5px; }

/* ═══════════════════════════════════════════════════════════════════════
   FORMS & FIELDS
═══════════════════════════════════════════════════════════════════════ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.03em; }

.field input, .field select, .field textarea,
input[type="text"], input[type="email"], input[type="password"], input[type="file"], select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus,
input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus, select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
input[type="file"] { padding: 8px; cursor: pointer; }
select option { background: var(--bg-card); }

/* ── Messages ─────────────────────────────────────────────────────────── */
.error-msg {
  background: var(--down-soft);
  border: 1px solid rgba(244,63,94,0.25);
  color: #FB7185;
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 13.5px;
  margin-bottom: var(--space-4);
}
.success-msg {
  background: var(--up-soft);
  border: 1px solid rgba(16,185,129,0.25);
  color: #34D399;
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 13.5px;
  margin-bottom: var(--space-4);
}
.auth-hint { font-size: 12.5px; color: var(--muted); margin-top: var(--space-3); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════════════════
   AUTH CARD (Login / Forms)
═══════════════════════════════════════════════════════════════════════ */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--topbar-h) - 60px);
  padding: var(--space-6);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  color: var(--text);
}
.auth-card h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
  color: var(--text);
}
.auth-card.wide { max-width: 640px; margin-top: var(--space-5); }

/* ═══════════════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
═══════════════════════════════════════════════════════════════════════ */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
}
.dashboard-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}
.dashboard-sidebar a {
  display: block;
  padding: 9px 12px;
  margin: 1px 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: var(--r);
  transition: color 0.12s, background 0.12s;
}
.dashboard-sidebar a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
.dashboard-sidebar a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.dashboard-sidebar-spacer { flex: 1; }

/* Ausklappbare Sidebar-Gruppen (Markt Informationen, Tools). Toggle per
   JS (sidebar-toggle.js) statt <details>, weil nur so eine fluessige
   Hoehen-Animation moeglich ist (siehe .sidebar-collapse unten). */
.sidebar-group { margin: 1px 8px; }
.sidebar-summary {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 8px 12px; margin: 0; font: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--text-dim); background: none; border: 0; border-radius: var(--r);
  cursor: pointer; text-align: left; transition: color 0.12s, background 0.12s;
}
.sidebar-summary span { display: inline-flex; align-items: center; }
.sidebar-summary:hover { color: var(--text); background: var(--bg-hover); }
.sidebar-summary.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.sidebar-chevron {
  width: 14px; height: 14px; flex-shrink: 0; margin-left: 8px;
  transition: transform 0.28s cubic-bezier(.25,.1,.25,1);
}
.sidebar-group--open .sidebar-chevron { transform: rotate(90deg); }

.sidebar-collapse {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(.25,.1,.25,1);
}
.sidebar-group--open .sidebar-collapse { grid-template-rows: 1fr; }
.sidebar-collapse-inner { overflow: hidden; }

.sidebar-subnav {
  position: relative; display: flex; flex-direction: column;
  margin: 2px 0 4px 21px; padding-left: 12px; border-left: 1.5px solid var(--border-2);
}
.sidebar-subnav a { margin: 1px 0; padding: 6px 10px; font-size: 12.8px; }

@media (prefers-reduced-motion: reduce) {
  .sidebar-chevron, .sidebar-collapse { transition: none; }
}

/* Zaehler am Sidebar-Eintrag (aktuell: offene Rueckfragen im Analyst).
   Orange und gefuellt, weil er eine Handlung verlangt - im Unterschied zu
   allen anderen Sidebar-Zustaenden, die nur Ort und Auswahl anzeigen. */
.sidebar-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 17px; height: 17px; padding: 0 5px; margin-left: 6px;
  border-radius: 99px; background: #c9860a; color: #fff;
  font-size: 10.5px; font-weight: 700; vertical-align: 1px;
}

.dashboard-content {
  flex: 1;
  padding: var(--space-6) clamp(24px, 4vw, 56px);
  min-width: 0;
  max-width: 1440px;
  margin: 0 auto;   /* zentriert den Inhalt in der Restbreite neben der Sidebar */
  width: 100%;
}

/* ── Page Header ──────────────────────────────────────────────────────── */
.page-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.page-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 13.5px;
  color: var(--text-dim);
}
.page-subtitle a { color: var(--accent); text-decoration: none; }
.page-subtitle a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════════════════════════ */
.log-table, .price-table, .markets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.log-table th, .price-table th, .markets-table th {
  padding: 9px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.log-table td, .price-table td, .markets-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.log-table tr:last-child td,
.price-table tr:last-child td,
.markets-table tr:last-child td { border-bottom: none; }
.log-table tr:hover td,
.price-table tr:hover td,
.markets-table tr:hover td { background: var(--bg-hover); }
.log-table a, .price-table a, .markets-table a { color: var(--accent); font-weight: 500; }
.log-table a:hover, .price-table a:hover, .markets-table a:hover { text-decoration: underline; }

.col-product { color: var(--text); font-weight: 500; }
.col-value {
  font-family: 'Fira Code', monospace;
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.col-change { text-align: right; }
.unit { font-size: 0.78em; color: var(--muted); margin-left: 2px; }

/* ── Status ───────────────────────────────────────────────────────────── */
.status-ok    { color: var(--up);   font-weight: 600; }
.status-error { color: var(--down); font-weight: 600; }

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-active   { background: var(--up-soft);   color: var(--up);   border: 1px solid rgba(16,185,129,0.25); }
.badge-inactive { background: var(--bg-elevated); color: var(--muted); border: 1px solid var(--border-2); }
.badge-locked   { background: var(--down-soft); color: var(--down); border: 1px solid rgba(244,63,94,0.25); }
.badge-market   { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(59,130,246,0.2); }
.badge-currency { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(245,158,11,0.2); }
.badge-premium  { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(14,147,132,0.25); }

/* ── Change Pills ─────────────────────────────────────────────────────── */
.chg-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Fira Code', monospace;
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chg-pill.up   { background: var(--up-soft);   color: var(--up); }
.chg-pill.down { background: var(--down-soft); color: var(--down); }
.chg-pill.flat { background: var(--bg-elevated); color: var(--muted); }

/* ── Empty State ──────────────────────────────────────────────────────── */
.empty-state {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-7) var(--space-6);
  text-align: center;
  color: var(--text-dim);
}
.empty-state strong { display: block; font-size: 15px; color: var(--text); margin-bottom: var(--space-2); }
.empty-state p { font-size: 13.5px; line-height: 1.6; }
.empty-state a { color: var(--accent); }
.empty-state.error-page { max-width: 480px; margin: var(--space-8) auto; }
.empty-state .btn { margin-top: var(--space-5); }

/* ── Stats Row ────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: var(--space-5);
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
.stat-box .label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.stat-box .value {
  font-family: 'Fira Code', monospace;
  font-size: 24px; font-weight: 700;
  color: var(--text); letter-spacing: -0.03em; line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════════
   UPLOAD BOX (Admin)
═══════════════════════════════════════════════════════════════════════ */
.upload-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.result-list { margin-bottom: var(--space-5); display: flex; flex-direction: column; gap: 8px; }
.result-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.95rem; }
.checkbox-label input[type="checkbox"] { width: 17px; height: 17px; cursor: pointer; accent-color: var(--accent); }
.user-search { display: flex; gap: 8px; margin-bottom: var(--space-5); flex-wrap: wrap; }
.user-search input { max-width: 320px; }

/* ═══════════════════════════════════════════════════════════════════════
   WATCHLIST
═══════════════════════════════════════════════════════════════════════ */
.watch-list { display: flex; flex-direction: column; gap: 8px; }
.watch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  transition: border-color 0.15s;
  flex-wrap: wrap;
}
.watch-row:hover { border-color: var(--border-2); }
.watch-row-main { flex: 1; min-width: 200px; }
.watch-product-name { font-size: 14px; font-weight: 600; color: var(--text); }
.watch-product-name a { color: var(--text); text-decoration: none; }
.watch-product-name a:hover { color: var(--accent); }
.watch-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.watch-sparkline { display: flex; align-items: center; }
.watch-sparkline svg { display: block; }
.watch-price { text-align: right; }
.watch-price-value {
  font-family: 'Fira Code', monospace;
  font-size: 16px; font-weight: 700;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.watch-form { display: flex; align-items: center; }
.watch-btn {
  width: 32px; height: 32px;
  border-radius: var(--r);
  border: 1px solid var(--border-2);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  line-height: 1;
}
.watch-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.watch-btn.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(59,130,246,0.3); }

/* ═══════════════════════════════════════════════════════════════════════
   MARKETS TOOLBAR
═══════════════════════════════════════════════════════════════════════ */
.markets-toolbar { display: flex; gap: 10px; margin-bottom: var(--space-4); flex-wrap: wrap; }
.markets-toolbar input { max-width: 280px; }
.markets-toolbar select { max-width: 200px; }
.col-watch { text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════
   NEWS
═══════════════════════════════════════════════════════════════════════ */
/* Quellen-Filter (nur gezeigt, wenn mehr als eine Quelle vorhanden ist).
   Response-Prinzip: sofortiges Press-Feedback (:active), kein Warten auf
   den Klick-Effekt. */
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--space-4); }
.news-chip {
  padding: 6px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-dim); background: var(--bg-card);
  cursor: pointer; transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.1s;
}
.news-chip:hover { border-color: var(--border-2); color: var(--text); }
.news-chip:active { transform: scale(0.96); }
.news-chip.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(14,147,132,0.3); }

/* Featured: der juengste Artikel bekommt mehr Gewicht statt in der
   gleichfoermigen Kartenreihe unterzugehen (Simplicity: Hierarchie durch
   Groesse/Gewicht statt gleicher Betonung fuer alles). */
.news-featured {
  background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--r-lg); padding: 22px 24px; margin-bottom: var(--space-4);
  display: flex; flex-direction: column; gap: 8px;
}
.news-featured-title {
  font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--text);
}
.news-featured-title a { color: var(--text); text-decoration: none; }
.news-featured-title a:hover { color: var(--accent); }
.news-featured-summary { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; max-width: 70ch; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.news-grid-compact .news-card { padding: 16px 18px; }
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, transform 0.2s;
}
.news-card:hover { border-color: var(--border-2); transform: translateY(-1px); }
.news-meta { display: flex; align-items: center; gap: 6px; }
.news-source {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 99px;
}
.news-time, .news-date { font-size: 11px; color: var(--muted); }
.news-time::before, .news-date::before { content: '·'; margin-right: 6px; }
.news-title { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.45; flex: 1; }
.news-title a { color: var(--text); text-decoration: none; }
.news-title a:hover { color: var(--accent); }
.news-summary { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.news-link { font-size: 12.5px; font-weight: 600; color: var(--accent); margin-top: auto; }
.news-link:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .news-chip, .news-card { transition: none; }
}
.news-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: var(--space-4);
}
.news-preview-all { font-size: 13.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════════
   SECTION TITLE (common heading)
═══════════════════════════════════════════════════════════════════════ */
.section-title {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-5);
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.2);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-5);
}
/* Statischer Punkt, keine Animation: Ein pulsierender "Live"-Indikator
   ueber Daten, die einmal taeglich per PDF kommen, ist eine Falschaussage
   ueber die Datenquelle (Konzept_Dashboard.md, Abschnitt 6.4). */
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--up);
}
.hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.accent-text { color: var(--accent); }
.hero-lead {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-6);
  font-weight: 300;
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-as-of { font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.hero-art {
  position: relative; z-index: 1;
  border-radius: var(--r-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-5);
  box-shadow: 0 0 40px rgba(59,130,246,0.1), var(--shadow);
  overflow: hidden;
}
.hero-art::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Features */
.features { max-width: 1160px; margin: 0 auto; padding: var(--space-7) var(--space-6); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.2s, box-shadow 0.2s;
  color: var(--text);
}
.feature-card:hover { border-color: var(--border-2); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.feature-icon {
  width: 42px; height: 42px;
  background: var(--accent-soft);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.feature-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.feature-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* News preview */
.news-preview { max-width: 1160px; margin: 0 auto; padding: 0 var(--space-6) var(--space-7); }

/* How it Works */
.how-it-works { max-width: 1160px; margin: 0 auto; padding: var(--space-7) var(--space-6); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); }
.step { display: flex; flex-direction: column; gap: 14px; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fira Code', monospace;
  font-size: 16px; font-weight: 700;
  color: var(--accent);
}
.step-title { font-size: 15px; font-weight: 700; color: var(--text); }
.step-desc { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }

/* Roadmap */
.roadmap { max-width: 1160px; margin: 0 auto; padding: var(--space-7) var(--space-6); }
.roadmap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: var(--space-5); }
.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.15s;
}
.roadmap-card:hover { border-color: var(--border-2); }
.roadmap-badge {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.2);
  width: fit-content;
}

/* ═══════════════════════════════════════════════════════════════════════
   PRICES PAGE (/preise)
═══════════════════════════════════════════════════════════════════════ */
.prices-page { max-width: 1160px; margin: 0 auto; padding: var(--space-5) var(--space-6) var(--space-7); }
.prices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.prices-title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
}
.prices-date {
  font-size: 12px; color: var(--muted);
  font-family: 'Fira Code', monospace;
  display: flex; align-items: center; gap: 8px;
}
.prices-date::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--up);
}

/* Outer Tabs */
.tabs-bar {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-5);
  overflow-x: auto;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 9px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-family: 'Outfit', sans-serif;
}
.tab-btn:hover { color: var(--text); background: var(--bg-hover); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Inner Tabs */
.inner-tabs-scroll { overflow-x: auto; margin-bottom: var(--space-4); }
.inner-tabs-scroll::-webkit-scrollbar { display: none; }
.inner-tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--border); }
.inner-tab-btn {
  padding: 7px 16px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-family: 'Outfit', sans-serif;
}
.inner-tab-btn:hover { color: var(--text); }
.inner-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.inner-tab-panel { display: none; }
.inner-tab-panel.active { display: block; }

/* Section Blocks (price tables) */
.section-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  overflow: hidden;
}
.section-name {
  padding: 10px 16px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}

/* Metals toggle */
.metals-toggle { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-4); }
.metals-toggle-label { font-size: 12.5px; color: var(--text-dim); }
.metals-toggle-btn {
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
}
.metals-toggle-btn.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(59,130,246,0.3); }

.metals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: var(--space-5);
}
.metal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  transition: border-color 0.15s;
}
.metal-card:hover { border-color: var(--border-2); }
.metal-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-2); }
.metal-name { font-size: 13px; font-weight: 700; color: var(--text); }
.metal-price {
  font-family: 'Fira Code', monospace;
  font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; margin-bottom: 4px;
}
.metal-sparkline { margin-top: var(--space-2); }

/* Watchlist star button in price tables */
.watch-col { text-align: center; width: 42px; }
.price-watch-btn {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted); font-size: 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.12s;
  font-family: inherit;
}
.price-watch-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.price-watch-btn.active { color: var(--accent); background: var(--accent-soft); border-color: rgba(59,130,246,0.3); }

.disclaimer-table-note { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-top: var(--space-5); }

/* ═══════════════════════════════════════════════════════════════════════
   PRODUCT DETAIL
═══════════════════════════════════════════════════════════════════════ */
.product-page { max-width: 900px; margin: 0 auto; padding: var(--space-5) var(--space-6) var(--space-7); }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: var(--space-5); }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.product-header h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -0.025em; color: var(--text); margin-bottom: 4px; }
.meta { font-size: 13px; color: var(--text-dim); }
.current-price { text-align: right; }
.current-price .value {
  font-family: 'Fira Code', monospace;
  font-size: 36px; font-weight: 700;
  color: var(--text); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.1; margin-bottom: 6px;
}
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  font-size: 13.5px; color: var(--text-dim);
  line-height: 1.65; margin-bottom: var(--space-5);
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.chart-card h2 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: var(--space-4); letter-spacing: -0.01em; }

/* Metals switcher on product page */
.metals-switchers { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0 1.5rem; }
.switcher-group { display: flex; align-items: center; gap: 0.4rem; }
.switcher-label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.switcher-btn {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  font-family: 'Outfit', sans-serif;
}
.switcher-btn.active, .switcher-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  background: var(--bg-1);
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text-dim); }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: var(--space-7) var(--space-5); }
  .hero-art { display: none; }
}
@media (max-width: 768px) {
  .topbar { padding: 0 var(--space-4); }
  .nav-links-center { display: none; }
  .dashboard-layout { flex-direction: column; }
  .dashboard-sidebar {
    width: 100%; height: auto; position: static;
    flex-direction: row; overflow-x: auto;
    padding: var(--space-2) var(--space-3);
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .dashboard-sidebar a { padding: 7px 12px; white-space: nowrap; }
  .dashboard-sidebar-spacer { display: none; }
  .sidebar-group { position: relative; flex-shrink: 0; margin: 0 4px; }
  .sidebar-summary { padding: 7px 12px; white-space: nowrap; }
  .sidebar-collapse {
    position: absolute; top: calc(100% + 4px); left: 0; z-index: 20;
    display: block; grid-template-rows: none; height: 0; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow); min-width: 180px; transition: none;
  }
  .sidebar-group--open .sidebar-collapse { height: auto; padding: 6px; }
  .sidebar-collapse-inner { overflow: visible; }
  .sidebar-subnav { margin: 0; padding: 0; border-left: 0; }
  .dashboard-content { padding: var(--space-4); }
  .features, .roadmap, .how-it-works, .news-preview, .roadmap { padding-left: var(--space-4); padding-right: var(--space-4); }
  .hero { padding: var(--space-6) var(--space-4); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .product-header { flex-direction: column; }
  .current-price { text-align: left; }
  .prices-page { padding-left: var(--space-4); padding-right: var(--space-4); }
  .product-page { padding-left: var(--space-4); padding-right: var(--space-4); }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .metals-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES  [data-theme="light"]
═══════════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  /* Identisch zum :root-Schema – die Seite ist durchgehend hell. */
  --bg:           #F4EFE7;
  --bg-1:         #EDE6DA;
  --bg-card:      #FDFBF7;
  --bg-elevated:  #F6F1E8;
  --bg-hover:     rgba(26,23,18,0.035);

  --border:       #DED5C6;
  --border-2:     #C9BDA9;
  --border-focus: rgba(14,147,132,0.45);

  --text:         #1A1712;
  --text-dim:     #6E655A;
  --muted:        #A69B8A;

  --accent:       #0E9384;
  --accent-2:     #0B7A6E;
  --accent-glow:  rgba(14,147,132,0.20);
  --accent-soft:  rgba(14,147,132,0.10);

  --up:           #0C9F6E;
  --up-soft:      rgba(12,159,110,0.12);
  --down:         #E02D49;
  --down-soft:    rgba(224,45,73,0.10);
  --gold:         #B7791F;
  --gold-soft:    rgba(183,121,31,0.12);
}
[data-theme="light"] body {
  background: var(--bg);
}
[data-theme="light"] .topbar {
  background: rgba(253,251,247,0.9);
  border-bottom-color: var(--border);
}
[data-theme="light"] .brand-mark {
  box-shadow: 0 0 10px rgba(37,99,235,0.25);
}
[data-theme="light"] .section-name {
  background: rgba(0,0,0,0.035);
  color: var(--text);
}
[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}
[data-theme="light"] .hero-art {
  box-shadow: 0 0 30px rgba(37,99,235,0.07), 0 2px 16px rgba(0,0,0,0.08);
}
[data-theme="light"] .feature-card:hover,
[data-theme="light"] .news-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
[data-theme="light"] code {
  background: var(--bg-elevated);
  color: var(--text-dim);
}
[data-theme="light"] .site-footer {
  background: var(--bg-1);
}
[data-theme="light"] .dashboard-sidebar {
  background: var(--bg-1);
}

/* Light mode: table improvements */
[data-theme="light"] .log-table th,
[data-theme="light"] .price-table th,
[data-theme="light"] .markets-table th {
  color: var(--text);
  border-bottom-color: var(--border-2);
}
[data-theme="light"] .log-table a,
[data-theme="light"] .price-table a,
[data-theme="light"] .markets-table a {
  color: var(--accent-2);
  font-weight: 600;
}
[data-theme="light"] .section-block {
  border-color: var(--border-2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ═══════════════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
═══════════════════════════════════════════════════════════════════════ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--r);
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--text); border-color: rgba(255,255,255,0.2); }
[data-theme="light"] .theme-toggle:hover { border-color: rgba(0,0,0,0.2); }

/* Sun visible in dark, Moon visible in light */
.icon-sun  { display: block; }
.icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ═══════════════════════════════════════════════════════════════════════
   LANGUAGE TOGGLE BUTTON (DE/EN)
═══════════════════════════════════════════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px; height: 34px;
  padding: 0 8px;
  border-radius: var(--r);
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.lang-toggle:hover { background: var(--bg-hover); color: var(--text); border-color: rgba(255,255,255,0.2); text-decoration: none; }
[data-theme="light"] .lang-toggle:hover { border-color: rgba(0,0,0,0.2); }

/* ═══════════════════════════════════════════════════════════════════════
   PRICES PAGE — MISSING CLASSES (index.html)
═══════════════════════════════════════════════════════════════════════ */

/* Outer tab container — index.html uses .tabs-scroll + .tabs */
.tabs-scroll {
  overflow-x: auto;
  margin-bottom: var(--space-5);
}
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
}

/* .tab-btn already defined above — reuse same styles */

/* Page header inside prices page */
.prices-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.watch-hint { font-size: 12.5px; color: var(--muted); }
.watch-hint a { color: var(--accent); }

/* Section header with actions (minimize / hide) */
.section-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
[data-theme="light"] .section-name-row { background: rgba(0,0,0,0.035); color: var(--text); }

.section-actions { display: flex; align-items: center; gap: 4px; }
.section-btn {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.section-btn:hover { background: var(--bg-hover); color: var(--text-dim); border-color: var(--border-2); }

.section-body { transition: max-height 0.2s ease; }
.section-block.minimized .section-body { display: none; }
.section-block.minimized .section-btn.section-minimize { color: var(--accent); }
.section-block.search-no-match { display: none; }

/* Hidden sections banner */
.hidden-sections-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--r);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

/* Metals overview: sparkline column */
.col-sparkline { width: 84px; }
.metals-sparkline { display: block; }
.metals-toolbar {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: var(--space-4);
}
.switcher-label { font-size: 12.5px; color: var(--text-dim); font-weight: 500; }
.switcher-btn {
  padding: 4px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  background: transparent;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: 'Outfit', sans-serif;
}
.switcher-btn.active, .switcher-btn:hover {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Prices page wrapper */
.prices-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6) var(--space-7);
}
.prices-page .page-title { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; }
.prices-page .page-subtitle { font-size: 13.5px; color: var(--text-dim); margin-bottom: var(--space-4); }
.prices-page .markets-toolbar { margin-bottom: var(--space-4); }

@media (max-width: 768px) {
  .prices-page { padding-left: var(--space-4); padding-right: var(--space-4); }
}
