/* ═══════════════════════════════════════════════════════════
   GOLDPREIS AKTUELL — main.css  v4
   Light-first · Gold accent · Inter + IBM Plex Mono
═══════════════════════════════════════════════════════════ */

/* ── COLOR TOKENS — LIGHT (default) ──────────────────────── */
:root {
  --bg:        #f5f3ee;
  --bg-card:   #ffffff;
  --bg-hover:  #ede9e2;
  --bg-input:  #eeeae3;
  --bg-alt:    #e6e2da;
  --border:    #d8d3ca;
  --gold:      #9b6e07;
  --gold-lt:   #c08c0a;
  --gold-dim:  #f8e9c0;
  --fg:        #1c1a16;
  --fg-muted:  #5c5248;
  --fg-dim:    #a09080;
  --green:     #1e7a42;
  --red:       #b83232;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --radius:    10px;
  --wrap:      1100px;
  color-scheme: light;
}

/* ── DARK MODE via system preference ─────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0d0c0a;
    --bg-card:   #161512;
    --bg-hover:  #1e1c18;
    --bg-input:  #1a1815;
    --bg-alt:    #0a0908;
    --border:    #272420;
    --gold:      #c8a84b;
    --gold-lt:   #e0bf6a;
    --gold-dim:  #5a4a1a;
    --fg:        #ede8dd;
    --fg-muted:  #7a7568;
    --fg-dim:    #3e3b34;
    --green:     #3cb371;
    --red:       #d04a4a;
    --shadow:    0 4px 20px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}

/* ── DARK MODE via explicit toggle ───────────────────────── */
:root[data-theme="dark"] {
  --bg:        #0d0c0a;
  --bg-card:   #161512;
  --bg-hover:  #1e1c18;
  --bg-input:  #1a1815;
  --bg-alt:    #0a0908;
  --border:    #272420;
  --gold:      #c8a84b;
  --gold-lt:   #e0bf6a;
  --gold-dim:  #5a4a1a;
  --fg:        #ede8dd;
  --fg-muted:  #7a7568;
  --fg-dim:    #3e3b34;
  --green:     #3cb371;
  --red:       #d04a4a;
  --shadow:    0 4px 20px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ── FORCE LIGHT when explicitly set ─────────────────────── */
:root[data-theme="light"] {
  color-scheme: light;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  padding-bottom: 68px;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }
img { max-width: 100%; }
h1,h2,h3,h4 { line-height: 1.3; text-wrap: balance; margin-top: 0; }
table { border-collapse: collapse; }
.mono { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }

/* ── TICKER ──────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 32px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 18px;
  border-right: 1px solid var(--border);
  font-size: .7rem;
}
.ti-label { color: var(--fg-muted); }
.ti-val   { color: var(--fg); font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.ti-chg   { font-family: 'IBM Plex Mono', monospace; font-size: .65rem; }
.ti-chg.pos { color: var(--green); }
.ti-chg.neg { color: var(--red); }
.ticker-time { color: var(--fg-dim); gap: 4px; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--bg-card);
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  flex-shrink: 0;
}
.logo-icon { width: 26px; height: 26px; }
.logo-text { font-size: .9rem; font-weight: 500; letter-spacing: -.01em; }
.logo-text strong { color: var(--gold); font-weight: 700; }
.site-logo:hover { color: var(--fg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link, .nav-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link:hover, .nav-btn:hover { color: var(--fg); background: var(--bg-hover); }
.nav-link.active { color: var(--gold); background: rgba(155,110,7,.07); }
[data-theme="dark"] .nav-link.active { background: rgba(200,168,75,.07); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav-link.active { background: rgba(200,168,75,.07); } }
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 200px;
  box-shadow: var(--shadow);
  z-index: 300;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dd-item {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: .8rem;
  color: var(--fg-muted);
  transition: color .12s, background .12s;
}
.dd-item:hover { color: var(--fg); background: var(--bg-hover); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.currency-sel-wrap { position: relative; }
.currency-sel {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  padding: 5px 26px 5px 10px;
  font-size: .75rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7568' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
}

/* ── THEME TOGGLE ─────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--fg-muted);
  transition: color .15s, background .15s, border-color .15s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); }
.theme-toggle svg { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 7px 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg-muted);
  border-radius: 1px;
  transition: .2s;
}

/* ── MOBILE OVERLAY DRAWER ──────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 400;
  backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }
.mobile-drawer {
  /* Always dark, override theme */
  --bg:      #0d0c0a;
  --bg-card: #161512;
  --bg-hover:#1e1c18;
  --border:  #272420;
  --fg:      #ede8dd;
  --fg-muted:#7a7568;
  --fg-dim:  #3e3b34;
  --gold:    #c8a84b;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 280px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 500;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  color: var(--fg);
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-close {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.drawer-close:hover { color: var(--fg); background: var(--bg-hover); }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.di {
  display: block;
  padding: 10px 18px;
  font-size: .85rem;
  color: var(--fg-muted);
  font-weight: 500;
  transition: color .12s, background .12s;
}
.di:hover { color: var(--fg); background: var(--bg-hover); }
.di-sub {
  padding-left: 28px;
  font-size: .8rem;
  font-weight: 400;
}
.di-sep {
  padding: 12px 18px 4px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.drawer-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── STAT BAR ────────────────────────────────────────────── */
.stat-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.stat-bar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-card {
  padding: 12px 20px;
  border-right: 1px solid var(--border);
  transition: background .15s;
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: var(--bg-hover); }
.stat-card-status { display: flex; flex-direction: column; gap: 4px; }
.sc-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 3px;
}
.sc-price {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  line-height: 1.2;
}
.sc-chg {
  font-size: .7rem;
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 2px;
}
.sc-chg.pos { color: var(--green); }
.sc-chg.neg { color: var(--red); }
.market-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
}
.market-sub {
  font-size: .68rem;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.market-badge {
  background: rgba(30,122,66,.12);
  color: var(--green);
  border: 1px solid rgba(30,122,66,.3);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .05em;
}

/* ── PULSE ───────────────────────────────────────────────── */
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }

/* ── PRICE FLASH ─────────────────────────────────────────── */
@keyframes priceFlash { 0%,100% { color: inherit; } 30% { color: var(--gold-lt); } }
.price-flash { animation: priceFlash .7s ease; }

/* ── SITE TWO-COLUMN LAYOUT ─────────────────────────────── */
.site-layout {
  display: flex;
  gap: 24px;
  max-width: calc(var(--wrap) + 296px);
  margin: 0 auto;
  padding: 0 20px;
  align-items: flex-start;
}
main {
  flex: 1;
  min-width: 0;
  padding-top: 24px;
  padding-bottom: 40px;
}
.site-sidebar {
  width: 284px;
  flex-shrink: 0;
  position: sticky;
  top: 74px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 40px;
}

/* ── LEGACY COMPAT ──────────────────────────────────────── */
.container {
  max-width: var(--wrap);
  margin: 0 auto;
}
.page-main { /* absorbed by site-layout/main */ }

/* ── PRICE HERO ─────────────────────────────────────────── */
.price-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
  box-shadow: var(--shadow);
}
.price-hero-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 8px;
}
.price-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(30,122,66,.08);
  border: 1px solid rgba(30,122,66,.2);
  border-radius: 20px;
  padding: 3px 9px;
  margin-bottom: 10px;
}
.price-big {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 3.4rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  line-height: 1;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.price-big-unit { font-size: 1.8rem; color: var(--gold); font-weight: 400; margin-right: 2px; }
.price-usd-sub {
  font-size: .8rem;
  color: var(--fg-dim);
  font-family: 'IBM Plex Mono', monospace;
  margin: 0 0 6px;
}
.price-karat-label { font-size: .75rem; color: var(--fg-muted); margin-bottom: 10px; }
.price-change {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-family: 'IBM Plex Mono', monospace;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.price-change.pos { background: rgba(30,122,66,.1); color: var(--green); border: 1px solid rgba(30,122,66,.25); }
.price-change.neg { background: rgba(184,50,50,.1); color: var(--red);   border: 1px solid rgba(184,50,50,.25); }
.price-ts { font-size: .7rem; color: var(--fg-dim); margin: 4px 0 12px; }
.price-hero-right { text-align: right; }
.price-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 240px;
}
.pmi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
}
.pmi-label { font-size: .65rem; color: var(--fg-muted); margin: 0 0 3px; }
.pmi-val {
  font-size: .9rem;
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  font-weight: 500;
}
.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgba(155,110,7,.3);
  border-radius: 20px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.btn-refresh:hover { background: rgba(155,110,7,.08); border-color: var(--gold); }
.btn-refresh svg { transition: transform .7s ease; }
.btn-refresh.spinning svg { transform: rotate(360deg); }

/* ── HERO SECTION (inner pages) ─────────────────────────── */
.hero-section {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.hero-inner {
  padding: 28px 0 24px;
  text-align: center;
}
.hero-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.hero-sub {
  font-size: .9rem;
  color: var(--fg-muted);
  margin: 0 0 20px;
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.price-unit {
  font-size: .8rem;
  color: var(--fg-muted);
}
.price-timestamp {
  font-size: .7rem;
  color: var(--fg-dim);
  margin: 6px 0 0;
  text-align: center;
}
.pmg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
}
.pmg-label { font-size: .75rem; color: var(--fg-muted); }
.pmg-val   { font-size: .85rem; font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }

/* ── BADGE ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.badge-live {
  color: var(--green);
  background: rgba(30,122,66,.08);
  border: 1px solid rgba(30,122,66,.2);
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}

/* ── SECTION WRAP (inner page content areas) ────────────── */
.section-wrap {
  padding-bottom: 28px;
}
.content-text { max-width: 820px; }

/* ── SECTION TITLES ─────────────────────────────────────── */
.section-title {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── KARAT / PRICE TABLE ─────────────────────────────────── */
.price-table-wrap,
.table-wrap { overflow-x: auto; margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.price-table,
.karat-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 480px; }
.price-table th,
.karat-table th {
  padding: 8px 12px;
  text-align: left;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.price-table td,
.karat-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-table tr:last-child td,
.karat-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td,
.karat-table tr:hover td { background: var(--bg-hover); }
.karat-name   { font-weight: 600; color: var(--fg); }
.karat-purity { color: var(--fg-muted); font-size: .7rem; }
.val-eur     { font-family: 'IBM Plex Mono', monospace; color: var(--fg); }
.val-ankauf  { font-family: 'IBM Plex Mono', monospace; color: var(--green); }
.val-verkauf { font-family: 'IBM Plex Mono', monospace; color: var(--red); }
.val-usd     { font-family: 'IBM Plex Mono', monospace; color: var(--fg-muted); }

/* ── CHART SECTION ───────────────────────────────────────── */
.chart-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
}
.chart-section-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chart-section-title {
  font-size: .8rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart-section-title .pulse { margin-right: 2px; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.card-title { font-size: .78rem; font-weight: 600; color: var(--fg-muted); margin: 0 0 14px; }

/* ── CONTENT TEXT AREA ───────────────────────────────────── */
.content-section { max-width: 820px; margin-bottom: 36px; }
.content-section h2,
.content-text h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 28px 0 10px;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}
.content-section h2:first-child,
.content-text h2:first-child { margin-top: 0; }
.content-section h3,
.content-text h3 { font-size: .95rem; font-weight: 600; color: var(--fg); margin: 18px 0 7px; }
.content-section p,
.content-text p  { color: var(--fg-muted); margin: 0 0 12px; font-size: .87rem; line-height: 1.8; }
.content-section strong,
.content-text strong { color: var(--fg); }
.content-section ul, .content-section ol,
.content-text ul, .content-text ol {
  color: var(--fg-muted);
  font-size: .87rem;
  line-height: 1.8;
  padding-left: 20px;
  margin: 0 0 12px;
}
.content-section li,
.content-text li { margin-bottom: 5px; }
.hint-text {
  background: rgba(155,110,7,.06);
  border: 1px solid rgba(155,110,7,.2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: .82rem;
  color: var(--fg-muted);
  margin: 16px 0;
  line-height: 1.7;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { margin-top: 12px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 13px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: .88rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-q svg { flex-shrink: 0; transition: transform .25s; color: var(--fg-muted); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  font-size: .83rem;
  color: var(--fg-muted);
  line-height: 1.75;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease, padding .3s;
}
.faq-item.open .faq-a { max-height: 500px; padding-top: 10px; }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  margin-bottom: 20px;
  font-size: .73rem;
  color: var(--fg-muted);
  /* padding handled by site-layout */
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.breadcrumb ol li { display: flex; align-items: center; }
.breadcrumb ol li:not(:last-child)::after {
  content: '›';
  margin: 0 6px;
  color: var(--fg-dim);
}
.breadcrumb a { color: var(--fg-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .active { color: var(--fg); }

/* ── RELATED LINKS ───────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.related-link,
.rel-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color .15s, border-color .15s, background .15s;
  box-shadow: var(--shadow);
}
.rel-card {
  display: flex;
  align-items: center;
  min-height: 50px;
  font-weight: 600;
}
.related-link:hover,
.rel-card:hover { color: var(--gold); border-color: var(--gold); background: var(--bg-hover); }
.related-link .rl-label {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--fg-dim);
  display: block;
  margin-bottom: 3px;
}

/* ── CITY GRID ───────────────────────────────────────────── */
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.city-link {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 14px;
  font-size: .8rem;
  color: var(--fg-muted);
  transition: color .12s, border-color .12s, background .12s;
  text-align: center;
}
.city-link:hover { color: var(--gold); border-color: var(--gold); background: var(--bg-hover); }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sb-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sb-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.sb-heading {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
}
.sb-price-area {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.sb-price-big {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
}
.sb-price-num {
  font-size: 2rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -.02em;
}
.sb-price-unit {
  font-size: .85rem;
  color: var(--gold);
  font-weight: 600;
  margin-left: 4px;
}
.sb-chg {
  font-size: .72rem;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--fg-dim);
  margin-top: 4px;
}
.sb-chg.pos { color: var(--green); }
.sb-chg.neg { color: var(--red); }
.sb-rows { padding: 0; }
.sb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
}
.sb-row:last-child { border-bottom: none; }
.sb-flag { font-size: .85rem; flex-shrink: 0; }
.sb-label { color: var(--fg-muted); flex: 1; }
.sb-val   { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--fg); font-size: .78rem; }
.sb-status {
  padding: 8px 16px;
  font-size: .65rem;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 5px;
  border-top: 1px solid var(--border);
}
.sb-links { padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.sb-link {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: .78rem;
  color: var(--fg-muted);
  transition: color .12s, background .12s;
  font-weight: 500;
}
.sb-link:hover { color: var(--gold); background: var(--bg-hover); }

/* ── BOTTOM NAV ─────────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  /* Always dark */
  --bg:     #0d0c0a;
  --border: #272420;
  --fg-dim: #3e3b34;
  --gold:   #c8a84b;
  background: rgba(13,12,10,.97);
  border-top: 1px solid #272420;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 0;
  flex: 1;
  font-size: .62rem;
  color: #3e3b34;
  transition: color .15s;
}
.bn-item svg { width: 20px; height: 20px; }
.bn-item:hover, .bn-item.active { color: var(--gold); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  /* Always dark */
  --bg:      #0e0c0a;
  --bg-card: #161412;
  --border:  #242220;
  --fg:      #ede8dd;
  --fg-muted:#7a7568;
  --fg-dim:  #3e3b34;
  --gold:    #c8a84b;
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding: 36px 0 24px;
  color: var(--fg);
}
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.footer-brand { margin-bottom: 28px; }
.footer-tagline { font-size: .75rem; color: var(--fg-dim); margin: 4px 0 0; max-width: 420px; }
.footer-logo { color: var(--fg); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}
.fcol { display: flex; flex-direction: column; gap: 6px; }
.fcol strong { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 4px; }
.fcol a { font-size: .78rem; color: var(--fg-dim); transition: color .12s; }
.fcol a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; }
.footer-disclaimer { font-size: .7rem; color: var(--fg-dim); margin-bottom: 12px; line-height: 1.6; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.footer-legal a { font-size: .75rem; color: var(--fg-dim); }
.footer-legal a:hover { color: var(--gold); }
.footer-copy { font-size: .7rem; color: var(--fg-dim); }

/* ── CHART TABS ─────────────────────────────────────────── */
.chart-container { margin: 0 0 24px; }
.chart-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ctab {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-muted);
  border-radius: 6px;
  font-size: .78rem;
  cursor: pointer;
  transition: all .15s;
}
.ctab:hover { background: var(--bg-hover); color: var(--fg); }
.ctab.active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-lt); font-weight: 600; }
.tradingview-widget-container { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 460px; }

/* ── GOLDRECHNER ─────────────────────────────────────────── */
.calc-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.calc-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.calc-input {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: .9rem;
  transition: border-color .15s;
}
.calc-input:focus { outline: none; border-color: var(--gold); }
.calc-result {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.calc-label { font-size: .72rem; color: var(--fg-dim); margin: 4px 0 0; }
.karat-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-muted);
  border-radius: 20px;
  font-size: .78rem;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.karat-btn:hover { background: var(--bg-hover); color: var(--fg); }
.karat-btn.active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-lt); font-weight: 600; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .site-layout { flex-direction: column; }
  .site-sidebar { width: 100%; position: static; flex-direction: row; flex-wrap: wrap; }
  .sb-block { flex: 1; min-width: 240px; }
}
@media (max-width: 900px) {
  .stat-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-card-status { border-top: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .bottom-nav { display: flex; }
  .price-hero { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .price-hero-right { text-align: left; }
  .price-big { font-size: 2.6rem; }
  .price-mini-grid { min-width: 0; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-title { font-size: 1.4rem; }
}
@media (max-width: 540px) {
  .stat-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 10px 14px; }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .stat-card-status { border-top: 1px solid var(--border); border-right: none; }
  .sc-price { font-size: .9rem; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .price-big { font-size: 2.2rem; }
}
