/* ==========================================================
   GOLDPREIS.TODAY — Clean civic design (goldpricetoday.info style)
   ========================================================== */

/* 1. ROOT VARIABLES */
:root {
  --ink:      #1b1b1b;
  --ink-2:    #454545;
  --muted:    #5d6166;
  --line:     #dfe1e2;
  --bg:       #ffffff;
  --bg-2:     #f0f0f0;
  --navy:     #162e51;
  --blue:     #005ea2;
  --blue-d:   #1a4480;
  --blue-l:   #e7f2f8;
  --gold:     #c2850c;
  --gold-l:   #faf3d1;
  --up:       #00701a;
  --down:     #b50909;
  --focus:    #2491ff;
  --r:        4px;
  --wrap:     1120px;

  /* legacy aliases (used in old templates) */
  --text:        var(--ink);
  --text-2:      var(--muted);
  --border:      var(--line);
  --white:       #fff;
  --positive:    var(--up);
  --negative:    var(--down);
  --positive-bg: #e3f5e1;
  --negative-bg: #f4e3e3;
  --ivory:       var(--bg);
  --champagne:   var(--bg-2);

  --font-sans:   'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif:  var(--font-sans);

  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px;
  --sp-4: 32px; --sp-5: 40px; --sp-6: 48px;

  --radius-sm: var(--r);
  --radius-md: var(--r);
  --radius-lg: var(--r);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,.08);

  --max-w:    var(--wrap);
  --header-h: 68px;
  --ticker-h: 44px;
}

/* 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: 2px; text-decoration: none; }
a:hover { color: var(--blue-d); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 3. LAYOUT */
.container, .wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }

/* 4. TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { font-size: 16px; color: var(--ink-2); line-height: 1.7; margin: 0 0 1em; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-d);
  margin-bottom: 4px;
}
.price-num, .big {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.muted, .text-muted { color: var(--muted); }
.up   { color: var(--up); }
.down { color: var(--down); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 5. CARDS */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-3);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid var(--line);
}
.card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Metal/duo cards */
.duo { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.duo-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--r);
  padding: 16px 18px;
}
.duo-card:nth-child(2) { border-top-color: #8a9ba8; }
.duo-card.ratio        { border-top-color: var(--blue); }
.duo-name { font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.duo-name a { color: var(--navy); }
.duo-price { font-size: 2rem; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; margin: 0 0 4px; line-height: 1.1; color: var(--ink); }
.duo-sub { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* 6. TRUST BAR */
.trustbar {
  background: var(--bg-2);
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.trustbar .container { padding-top: 6px; padding-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.trustbar svg { width: 12px; height: 12px; vertical-align: -1px; color: var(--blue); flex-shrink: 0; }

/* 7. HEADER */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-mark, .brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e3b341;
  color: #162e51;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .5px;
  box-shadow: inset 0 0 0 3px var(--gold);
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.logo-name, .brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.2px;
  line-height: 1.1;
  color: var(--navy);
}
.logo-tagline {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-search-btn, .js-open-search-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 10px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  cursor: pointer;
}
.header-search-btn:hover { border-color: var(--blue); color: var(--blue); }
.header-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.header-lang .flag-svg { width: 18px; height: 12px; border-radius: 2px; }
.header-source { display: none; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 14px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: var(--r);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.hamburger span { display: none; }
.hamburger::after { content: 'Menü'; display: block; font-size: 15px; font-weight: 700; }
/* Legacy span spans — hide */
.hamburger > span { display: none !important; }

/* 8. DESKTOP NAVIGATION */
.site-nav {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.site-nav > .container, .site-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav > .container::-webkit-scrollbar { display: none; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-link, .nav-btn {
  display: block;
  padding: 12px 10px 11px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover, .nav-btn:hover,
.nav-link.active, .nav-item:hover > .nav-btn,
.nav-item:focus-within > .nav-btn {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.nav-btn > svg { width: 14px; height: 14px; color: var(--muted); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 200;
  padding: 8px 0;
}
.nav-dropdown a {
  display: block;
  padding: 8px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.nav-dropdown a:hover { background: var(--blue-l); color: var(--blue-d); }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }

/* 9. PRICE TICKER */
.price-ticker {
  background: var(--navy);
  height: var(--ticker-h);
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}
.ticker-live {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.15);
  height: 100%;
}
.ticker-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00cc44;
  box-shadow: 0 0 0 3px rgba(0,204,68,.2);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.ticker-scroll { flex: 1; overflow: hidden; }
.ticker-items {
  display: flex;
  gap: 0;
  animation: tickerScroll 30s linear infinite;
}
@keyframes tickerScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,.1);
  white-space: nowrap;
}
.ticker-label { font-size: 12px; color: rgba(255,255,255,.55); }
.ticker-price { font-size: 13px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ticker-time {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-left: 1px solid rgba(255,255,255,.15);
  height: 100%;
}
.ticker-time-label { font-size: 10px; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }
.ticker-time-val { font-size: 12px; color: rgba(255,255,255,.8); font-weight: 600; }

/* 10. HERO */
.hero {
  background: linear-gradient(180deg, var(--blue-l) 0%, var(--bg) 85%);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 32px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,7fr);
  gap: 32px;
  align-items: start;
}
.hero-content { }
.hero-eyebrow { color: var(--blue-d); margin-bottom: 8px; }
.hero-sub { color: var(--ink-2); font-size: 1rem; max-width: 480px; margin: 8px 0 16px; }
.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.trust-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--up); }

/* Hero visual replacement — subtle decorative */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual-placeholder {
  width: 100%;
  max-width: 340px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--r);
  padding: 20px 24px;
}
.hero-gold-bars {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.gold-bar {
  flex: 1;
  height: 60px;
  background: linear-gradient(135deg, #e3b341 0%, var(--gold) 50%, #a06b00 100%);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(194,133,12,.3);
}
.hero-taglines {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-taglines span {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-l);
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: .04em;
}

/* 11. MAIN CONTENT & GRID */
.main-content { padding: 28px 0 48px; }
.section { margin-bottom: 32px; }
.main-grid {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,7fr);
  gap: 24px;
  align-items: start;
}
.side-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 12. PRICE CARD */
.price-card { border-top: 4px solid var(--gold); }
.price-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.price-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px rgba(0,112,26,.15);
  display: inline-block;
  animation: pulse 2s infinite;
}
.price-main {
  margin: 12px 0;
}
.price-main-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  line-height: 1.05;
}
.price-unit { font-size: 1rem; color: var(--ink-2); font-weight: 600; }
.price-change {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}
.price-change.up   { color: var(--up); }
.price-change.down { color: var(--down); }
.price-updated {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Stats grid */
.price-stats, .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 16px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
}
.price-stat, .stats div {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.price-stat:nth-child(even), .stats div:nth-child(even) { border-right: 0; }
.price-stat:last-child, .price-stat:nth-last-child(-n+2), .stats div:last-child { border-bottom: 0; }
.price-stat-label, .stats dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.price-stat-value, .stats dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin: 0;
  font-size: 15px;
}

/* 13. CHART */
.chart-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.chart-head h3, .chart-head .h3 { margin: 0; font-size: 1rem; }
.chart-tabs, .seg {
  display: inline-flex;
  border: 1px solid var(--blue);
  border-radius: var(--r);
  overflow: hidden;
}
.chart-tab, .seg button {
  background: var(--bg);
  color: var(--blue);
  border: 0;
  border-left: 1px solid var(--blue);
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-width: 36px;
}
.chart-tab:first-child, .seg button:first-child { border-left: 0; }
.chart-tab.active, .chart-tab[aria-pressed="true"], .seg button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}
.chart-wrap { position: relative; aspect-ratio: 600/260; }
.chart-wrap.loading { opacity: .5; }
.chart-svg, .chart { width: 100%; height: 100%; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.chart.up .line { stroke: var(--blue); }
.chart.down .line { stroke: var(--down); }
.chart .area { fill: var(--blue-l); opacity: .7; }
.chart.down .area { fill: #fbe5e5; }
.chart .ylab { font-size: 13px; fill: var(--muted); text-anchor: end; dominant-baseline: middle; }
.chart .xlab { font-size: 13px; fill: var(--muted); }
.chart-meta { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* 14. TABLES */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl, .price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--bg);
}
.tbl th, .tbl td,
.price-table th, .price-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.tbl thead th, .price-table thead th {
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
  background: var(--bg);
}
.tbl tbody tr:nth-child(even) { background: #f9f9f9; }
.tbl .num, .price-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.num, .price-table td.num { font-weight: 700; }
.tbl .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.tbl tr.current, .price-table tr.highlight { background: var(--gold-l) !important; }

/* Legacy karat/price tables */
.karat-table { width: 100%; border-collapse: collapse; }
.karat-table th, .karat-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.karat-table thead th { border-bottom: 2px solid var(--ink); font-size: 13px; font-weight: 700; }
.karat-table tbody tr:nth-child(even) { background: #f9f9f9; }
.karat-table .current-row { background: var(--gold-l) !important; }

/* 15. TAGESÜBERSICHT / INFO BOXES */
.tagesuebersicht, .info-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: 24px;
}
.tagesuebersicht-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  margin-top: 12px;
}
.tagesuebersicht-item {
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}
.tagesuebersicht-item:last-child { border-right: 0; }
.tagesuebersicht-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tagesuebersicht-value { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); margin-top: 2px; }

/* 16. SECTION TITLES */
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
}
.section-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 12px;
}

/* 17. KARAT-TABLE BOX */
.karat-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.karat-box-header {
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.karat-box-title { font-weight: 700; font-size: 14px; }
.karat-box-sub { font-size: 12px; color: rgba(255,255,255,.6); }

/* 18. BREADCRUMBS */
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb-sep { color: var(--line); }
.crumbs a { color: var(--blue); }

/* 19. ALERTS / CALLOUTS */
.alert {
  border-left: 6px solid var(--blue);
  background: var(--blue-l);
  padding: 14px 18px;
  margin: 24px 0 8px;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 15px;
  color: var(--ink-2);
}

/* 20. CALCULATOR */
.calc { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; margin: 18px 0 14px; align-items: start; }
.calc-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.calc-form .btn { grid-column: 1/-1; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.field input, .field select {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #565c65;
  border-radius: 0;
  background: var(--bg);
  min-height: 44px;
  font-size: 16px;
}
.calc-out {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--r);
  padding: 18px;
}
.calc-label { font-weight: 700; color: var(--muted); margin: 0; font-size: 14px; }
.calc-big { font-size: 2.4rem; font-weight: 800; margin: 0 0 12px; font-variant-numeric: tabular-nums; color: var(--ink); }

/* 21. BTN */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--blue-d); color: #fff; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #a06b00; }

/* 22. FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 14px 32px 14px 0;
  font-weight: 700;
  list-style: none;
  position: relative;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 10px; font-size: 22px; color: var(--blue); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); max-width: 760px; padding-bottom: 12px; }

/* 23. CONTENT / PROSE */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 760px; }
.lead-sm { color: var(--ink-2); margin-top: -4px; font-size: 15px; }
.more { margin: 12px 0 0; font-weight: 600; }
.list { padding-left: 1.2em; max-width: 780px; }
.list li { margin-bottom: .5em; color: var(--ink-2); }

/* 24. RELATED CARDS (Münzen etc.) */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.related-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  text-decoration: none;
  color: var(--navy);
  display: block;
  transition: border-color .15s;
}
.related-card:hover { border-color: var(--blue); color: var(--blue); }
.related-card-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.related-card-price { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 25. PERFORMANCE TABLE */
.perf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.perf-table th, .perf-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.perf-table th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--line); }
.perf-table td:last-child, .perf-table th:last-child { text-align: right; }

/* 26. FOOTER */
.site-footer {
  margin-top: 48px;
  background: var(--navy);
  color: #dfe1e2;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 16px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e3b341;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--gold);
  flex-shrink: 0;
}
.footer-logo-mark svg { display: none; }
.footer-logo-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}
.footer-tagline { font-weight: 700; color: rgba(255,255,255,.9); margin-bottom: 6px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.5; }
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul { }
.footer-col ul li { margin-bottom: 2px; }
.footer-col ul a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 2px 0;
}
.footer-col ul a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 14px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-copyright { font-size: 14px; color: rgba(255,255,255,.55); margin: 0; }
.footer-disclaimer { font-size: 13px; color: rgba(255,255,255,.4); margin: 0; }
.footer-imza a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-imza a:hover { color: #fff; }

/* 27. SEARCH OVERLAY */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(22,46,81,.6);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-box {
  background: var(--bg);
  border-radius: var(--r);
  width: 100%;
  max-width: 600px;
  margin: 0 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.search-input-row svg { color: var(--muted); flex-shrink: 0; }
.search-input-row input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}
.search-results {
  max-height: 400px;
  overflow-y: auto;
}
.search-result {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.search-result:hover { background: var(--blue-l); color: var(--blue-d); }

/* 28. MOBILE NAV */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
}
.mobile-nav.open { display: block; }
.mobile-nav-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22,46,81,.5);
}
.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 340px;
  height: 100%;
  background: var(--bg);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.2);
}
.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1;
}
.mobile-nav-close {
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
}
.mobile-nav-close:hover { color: var(--ink); }
.mobile-nav-links { padding: 8px 0 24px; }
.mobile-nav-link {
  display: block;
  padding: 12px 20px;
  color: var(--navy);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-link:hover { background: var(--blue-l); color: var(--blue); }

/* Accordion toggles */
.mn-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 12px 20px;
  margin: 0;
  text-align: left;
}
.mn-section-toggle:hover { color: var(--blue); background: var(--blue-l); }
.mn-section-toggle::after { content: '+'; font-size: 18px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.mn-section-toggle.open::after { transform: rotate(45deg); }
.mn-section-sub { display: none; background: #f9f9f9; }
.mn-section-sub.open { display: block; }
.mobile-nav-sub-a {
  display: block;
  padding: 9px 20px 9px 28px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.3;
}
.mobile-nav-sub-a:hover { background: var(--blue-l); color: var(--blue); }

/* 29. RESPONSIVE */
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tagesuebersicht-grid { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .header-right { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .price-main-value { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 8px; }
  .tagesuebersicht-grid { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .calc-form { grid-template-columns: 1fr; }
  .duo-price { font-size: 1.6rem; }
}

/* Misc legacy */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 99px; }
.badge-up   { background: #e3f5e1; color: #19561c; }
.badge-down { background: var(--negative-bg); color: #8b0a03; }
.badge-neu  { background: var(--blue-l); color: var(--blue-d); }
.flash { animation: flash .8s ease; }
@keyframes flash { 0%{opacity:1} 25%{opacity:.4} 100%{opacity:1} }
.sep { height: 1px; background: var(--line); margin: 24px 0; }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; } .ticker-items { animation: none; } }

/* ==========================================================
   SUPPLEMENT — Component classes missing from new CSS
   ========================================================== */

/* BADGE VARIANTS */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; display: inline-block; }
.badge-positive { background: #e3f5e1; color: var(--up); }
.badge-negative { background: var(--negative-bg); color: var(--down); }
.badge-live { background: #e3f5e1; color: var(--up); }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.5} }

/* TABS */
.tab-group { display: flex; gap: 4px; flex-wrap: wrap; }
.tab-btn {
  padding: 5px 10px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.tab-btn:hover { background: var(--blue-l); color: var(--blue-d); }
.tab-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* SECTION HEADER */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.section-header h2 { margin-bottom: 2px; }
.section-header p { font-size: 13px; color: var(--muted); margin: 0; }

/* PRICE CARD — detailed components */
.price-value {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.05;
}
.price-unit { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-karat { font-size: 14px; color: var(--muted); margin-top: 4px; }
.price-change-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.price-timestamp { font-size: 13px; color: var(--muted); margin-top: 8px; overflow: visible; white-space: normal; }
.price-source {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.price-source a { color: var(--blue); text-decoration: underline; }
.price-source .sep { color: var(--line); }

/* DATA TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg);
}
.data-table thead tr { background: var(--bg-2); border-bottom: 2px solid var(--line); }
.data-table th {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.data-table td {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #f9f9f9; }
.data-table td:first-child { font-weight: 600; }
.data-table .td-price { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); text-align: right; }
.data-table .td-change { font-size: 12px; font-weight: 700; text-align: right; }
.data-table .td-change.pos { color: var(--up); }
.data-table .td-change.neg { color: var(--down); }

/* KARAT BADGES */
.karat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.karat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  display: inline-block;
}
.karat-badge.k24 .karat-dot { background: var(--gold); opacity: 1; }
.karat-badge.k22 .karat-dot { background: #c48a14; opacity: .9; }
.karat-badge.k18 .karat-dot { background: #b87d1a; opacity: .75; }
.karat-badge.k14 .karat-dot { background: #a37020; opacity: .6; }

/* CHART CARD */
.chart-card { }
.chart-area {
  width: 100%;
  position: relative;
  min-height: 200px;
}
.chart-area svg { width: 100%; height: 100%; display: block; }
.chart-tooltip {
  position: absolute;
  background: var(--navy);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--r);
  font-size: 12px;
  pointer-events: none;
  display: none;
}

/* CALCULATOR */
.calculator-card { }
.calc-tabs { margin-bottom: 14px; }
.calc-unit-btn { }
.calc-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-weight: 700; font-size: 14px; color: var(--ink); }
.form-input, .form-select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #565c65;
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  width: 100%;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,94,162,.15);
}
.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--muted);
  pointer-events: none;
}
.calc-result {
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--line);
}
.calc-result-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.calc-result-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  letter-spacing: -.02em;
}

/* REGION GRID */
.region-grid { display: flex; flex-direction: column; gap: 10px; }
.region-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  transition: border-color .15s;
}
.region-card:hover { border-color: var(--blue); }
.region-flag { font-size: 22px; flex-shrink: 0; }
.region-name { font-weight: 600; font-size: 14px; color: var(--navy); flex: 1; }
.region-price { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink); }
.region-change { font-size: 11px; color: var(--muted); font-weight: 600; }

/* TRUST SECTION */
.trust-section { background: var(--navy); padding: 32px 0; color: #fff; }
.trust-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-pillar { text-align: center; }
.trust-pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(194,133,12,.2);
  border: 1px solid rgba(194,133,12,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}
.trust-pillar-icon svg { width: 22px; height: 22px; color: #e3b341; }
.trust-pillar h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.trust-pillar p, .trust-sub { color: rgba(255,255,255,.5); font-size: 13px; line-height: 1.5; }

/* FAQ (div-based, not details/summary) */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 800px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
}
.faq-question:hover { color: var(--blue); }
.faq-icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--blue); }
.faq-answer {
  display: none;
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* HISTORICAL CARD */
.historical-card { }
.hist-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.hist-stat { text-align: center; }
.hist-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 2px; }
.hist-stat-value { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); }
.hist-stat-sub { font-size: 11px; color: var(--muted); }

/* CONTENT PROSE */
.content-prose { max-width: 820px; }
.content-prose h2 { font-size: 1.3rem; margin-top: 1.8em; margin-bottom: .5em; color: var(--navy); }
.content-prose h3 { font-size: 1.05rem; margin-top: 1.4em; margin-bottom: .4em; color: var(--navy); }
.content-prose p { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-bottom: 14px; }
.content-prose strong { color: var(--ink); }
.content-prose ul { padding-left: 1.4em; margin-bottom: 14px; }
.content-prose li { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }

/* GOLDWERTE GRID */
.gw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gw-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ARTICLES GRID */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.article-card:hover { border-color: var(--blue); }
.article-img { aspect-ratio: 16/9; background: var(--bg-2); overflow: hidden; }
.article-img-placeholder { width: 100%; height: 100%; background: var(--bg-2); display: flex; align-items: center; justify-content: center; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-category { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 12px 14px 4px; }
.article-title { font-size: 15px; font-weight: 700; color: var(--navy); padding: 0 14px; margin-bottom: 8px; line-height: 1.35; }
.article-excerpt { font-size: 13px; color: var(--muted); padding: 0 14px 12px; line-height: 1.5; }

/* SEE ALL */
.see-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--blue); text-decoration: none; margin-top: 8px; }
.see-all:hover { color: var(--blue-d); text-decoration: underline; }

/* SEARCH RESULTS */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.search-result-item:hover { background: var(--blue-l); }
.search-result-icon { width: 32px; height: 32px; border-radius: var(--r); background: var(--bg-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); font-weight: 800; font-size: 12px; }

/* MISC */
.td-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }

/* =============================================
   MOBILE RESPONSIVE OVERRIDES
   ============================================= */
@media (max-width: 760px) {
  /* Card header: allow wrap on mobile so tabs stack below title */
  .card-header { flex-wrap: wrap; gap: 8px; }

  /* Price value smaller on mobile */
  .price-value { font-size: 40px; }

  /* Data table: 5-col → hide EUR/Unze + 24h on mobile */
  .data-table th:nth-child(4),
  .data-table td:nth-child(4),
  .data-table th:nth-child(5),
  .data-table td:nth-child(5) { display: none; }

  /* Table font smaller */
  .data-table td, .data-table th { padding: 10px 10px; font-size: 13px; }
  .karat-badge { font-size: 13px; }
  .karat-dot { width: 8px; height: 8px; }

  /* Calculator: single column */
  .calc-form { grid-template-columns: 1fr; }

  /* Hist stats: 2 cols */
  .hist-stats { grid-template-columns: 1fr 1fr; }

  /* Trust pillars: 2 cols */
  .trust-pillars { grid-template-columns: 1fr 1fr; }

  /* Articles: 1 col */
  .articles-grid { grid-template-columns: 1fr; }

  /* GW Grid: 1 col */
  .gw-grid { grid-template-columns: 1fr; }

  /* Section header: stack */
  .section-header { margin-bottom: 14px; }

  /* Footer: 1 col */
  .footer-grid { grid-template-columns: 1fr; gap: 8px; }
  .footer-bottom { flex-direction: column; gap: 4px; text-align: center; }

  /* Tab buttons smaller on mobile */
  .tab-btn { padding: 4px 7px; font-size: 11px; }

  /* Tagesübersicht table: hide USD column on mobile */
  .tagesuebersicht table th:nth-child(3),
  .tagesuebersicht table td:nth-child(3) { display: none; }

  /* Ticker: fewer items visible */
  .ticker-time { display: none; }
}

@media (max-width: 480px) {
  .hist-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust-pillars { grid-template-columns: 1fr 1fr; }
  .price-value { font-size: 36px; }
}

/* ==========================================================
   SUBPAGE CLASSES + CSS VARIABLE ALIASES
   ========================================================== */

/* CSS variable aliases: old names used in sub-page inline styles */
:root {
  /* spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
  --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  /* color aliases */
  --surface:    var(--bg);
  --surface-2:  var(--bg-2);
  --text:       var(--ink);
  --text-2:     var(--muted);
  --border:     var(--line);
  --white:      #ffffff;
  --ivory:      var(--bg-2);
  --positive:   var(--up);
  --negative:   var(--down);
  --positive-bg: #e3f5e1;
  --negative-bg: #fce8e8;
  /* radius aliases */
  --radius-sm:  4px;
  --radius-md:  var(--r);
  --radius-lg:  12px;
  /* misc */
  --navy:       #162e51;
}

/* BREADCRUMB */
.breadcrumb-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 13px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.breadcrumb li::after { content: '›'; color: var(--line); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb li:last-child { color: var(--ink); font-weight: 600; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* PAGE HERO */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4480 100%);
  color: #fff;
  padding: 32px 0 28px;
}
.page-hero .eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 8px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero-sub { color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.6; max-width: 620px; }

/* WEIGHT PRICE GRID */
.weight-price-grid { display: grid; gap: var(--sp-4); }
.weight-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.weight-card-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.weight-card-price {
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  letter-spacing: -.02em;
  margin-bottom: 2px;
}
.price-num { font-variant-numeric: tabular-nums; }
.weight-card-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* TABLE WRAP — makes wide tables scrollable horizontally on mobile */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.table-wrap .data-table {
  min-width: 480px; /* table stays legible even while container scrolls */
}
/* Remove border on wrapped table since wrapper has it */
.table-wrap .data-table { border: none; border-radius: 0; }

/* On mobile, 6-column comparison tables: hide price-per-100g on phones */
@media (max-width: 480px) {
  .table-wrap .data-table th:nth-child(6),
  .table-wrap .data-table td:nth-child(6) { display: none; }
}

/* FAQ SIMPLE (no-JS) — used in sub-pages */
.faq-q {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.faq-a {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  padding: 12px 16px 16px;
}

/* CALC RESULT ROW */
.calc-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: var(--r); }

/* EYEBROW (used on various pages) */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

/* PROSE in subpages */
.prose p { font-size: 15px; color: var(--ink-2); line-height: 1.75; margin-bottom: 14px; }
.prose h2 { font-size: 1.3rem; color: var(--navy); margin-top: 1.8em; margin-bottom: .5em; }
.prose h3 { font-size: 1.05rem; color: var(--navy); margin-top: 1.4em; margin-bottom: .4em; }
.prose ul { padding-left: 1.4em; margin-bottom: 14px; }
.prose li { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.prose strong { color: var(--ink); }


/* MINOR MISSING CLASSES */
.related-card-sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.td-val { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); }
.calc-result-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* USD sub-price below hero EUR price */
.price-usd-sub {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  margin: 2px 0 6px;
  letter-spacing: -.01em;
}

/* FIX: nav dropdown clip — remove overflow-x:auto on desktop so dropdowns are not clipped */
@media (min-width: 769px) {
  .site-nav > .container, .site-nav-inner {
    overflow: visible;
  }
}

/* FIX: breadcrumb-bar and page-hero content centering without .container child */
.breadcrumb-bar {
  padding-left:  max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
}
.page-hero {
  padding-left:  max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
}
/* Pages that already have .container inside: reset outer padding so container handles it */
.breadcrumb-bar:has(> .container),
.page-hero:has(> .container) {
  padding-left: 0;
  padding-right: 0;
}

/* FIX: page-hero content centered, breadcrumb left (standard) */
.page-hero {
  text-align: center;
}
.page-hero-sub {
  margin-left: auto;
  margin-right: auto;
}
.breadcrumb-bar .breadcrumb {
  justify-content: center;
}

/* ---- Refresh button ---- */
.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(194,133,12,.35);
  border-radius: 20px;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-refresh:hover {
  background: rgba(194,133,12,.08);
  border-color: var(--gold);
}
.btn-refresh svg {
  transition: transform .8s ease;
}
.btn-refresh.spinning svg {
  transform: rotate(360deg);
}
