/* =========================================================================
   Bitcoin Wissens-Hub — Design System
   Dark, modern, responsive, zero dependencies
   ========================================================================= */

:root {
  /* Brand */
  --btc: #f7931a;
  --btc-soft: #ffb04d;
  --btc-deep: #c76e00;

  /* Backgrounds */
  --bg: #0b0e13;
  --bg-1: #11151d;
  --bg-2: #161b25;
  --bg-3: #1d2430;
  --card: #141923;
  --card-hover: #1a2130;

  /* Text */
  --text: #e7ebf2;
  --text-soft: #aeb6c4;
  --text-dim: #8a93a4;   /* a11y: ≥4.5:1 even on --bg-3 (was #7c8698 → 4.25:1) */

  /* Lines / accents */
  --border: #232c3a;
  --border-soft: #1b2330;
  --green: #2ecc71;
  --red: #ff5c5c;
  --blue: #4aa8ff;
  --purple: #b388ff;

  /* Geometry */
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1180px;
  --nav-h: 64px;

  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  --ring: 0 0 0 3px rgba(247,147,26,.25);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}
body::before {
  /* subtle ambient glow */
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(247,147,26,.10), transparent 60%),
    radial-gradient(700px 500px at -10% 10%, rgba(74,168,255,.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--btc-soft); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--btc); }

h1, h2, h3, h4 { line-height: 1.2; color: #fff; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.28rem; margin: 1.6em 0 .5em; color: #f3f6fb; }
h4 { font-size: 1.05rem; margin: 1.3em 0 .4em; color: var(--btc-soft); }
p { margin: 0 0 1.05em; color: var(--text-soft); }
strong { color: var(--text); font-weight: 650; }
ul, ol { color: var(--text-soft); padding-left: 1.25em; }
li { margin: .35em 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
::selection { background: rgba(247,147,26,.3); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; position: relative; z-index: 1; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.lead { font-size: 1.18rem; color: var(--text-soft); max-width: 70ch; }
.muted { color: var(--text-dim); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--btc); margin-bottom: .6em;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(11,14,19,.78);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 100%; }
/* Nav-Container weiter als Seiten-Container: einzeiliger Bedarf ES 1227px > Standard-Contentbox
   1136px (--maxw 1180 - 44 Padding). Ohne diese Regel ragt die Nav ab 1321px aus dem Schirm. */
.nav .container { max-width: 1320px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 1.06rem; white-space: nowrap; }
.brand .logo {
  /* Original-Bitcoin-Logo (favicon.svg) — Kreis steckt im SVG selbst */
  width: 30px; height: 30px; border-radius: 50%; display: block; flex: none;
  box-shadow: 0 4px 14px rgba(247,147,26,.4);
}
.brand small { color: var(--text-dim); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; flex-wrap: nowrap; }
.nav-links a {
  color: var(--text-soft); font-size: .92rem; font-weight: 550;
  padding: 8px 11px; border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: var(--bg-2); }
.nav-links a.active { color: var(--btc); background: rgba(247,147,26,.1); }

/* language toggle */
/* language switcher (dropdown, 7 languages) */
.lang-toggle { position: relative; display: inline-flex; margin-inline-start: 6px; }
.lang-current {
  background: transparent; color: var(--text-dim); border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700;
  height: 34px; display: inline-flex; align-items: center; gap: 5px; line-height: 1;
  padding: 0 12px; white-space: nowrap; transition: color .15s;
}
.lang-current:hover { color: var(--text); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 138px; z-index: 70;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; padding: 6px;
  box-shadow: 0 14px 34px rgba(0,0,0,.4); display: none; flex-direction: column;
}
.lang-toggle.open .lang-menu { display: flex; }
.lang-menu button {
  background: transparent; color: var(--text-soft); border: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.lang-menu button:hover { background: rgba(247,147,26,.10); color: var(--text); }
.lang-menu button.active { background: var(--btc); color: #1a1205; }
html[dir="rtl"] .lang-menu button { text-align: right; }

.nav-burger {
  display: none; margin-inline-start: 8px; width: 44px; height: 44px; border-radius: 9px;
  background: var(--bg-2); border: 1px solid var(--border); color: #fff; cursor: pointer;
  font-size: 1.2rem; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 64px; position: relative; }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-top: .4em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 650; font-size: .98rem; padding: 12px 22px; border-radius: 11px;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s, background .2s; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(145deg, var(--btc-soft), var(--btc-deep)); color: #1a1205; box-shadow: 0 8px 22px rgba(247,147,26,.35); }
.btn-primary:hover { color: #1a1205; box-shadow: 0 12px 30px rgba(247,147,26,.5); }
.btn-ghost { background: var(--bg-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: #fff; background: var(--bg-3); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--card), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .18s ease, border-color .18s, box-shadow .18s;
}
.card:hover { border-color: #34405440; box-shadow: var(--shadow); }
a.card:hover { transform: translateY(-4px); border-color: rgba(247,147,26,.4); }
.card h3 { margin-top: 0; }
.card .ico { font-size: 1.7rem; margin-bottom: 6px; display: block; }
.card .arrow { color: var(--btc); font-weight: 700; font-size: .9rem; margin-top: 10px; display: inline-block; }
.card[id] { scroll-margin-top: 90px; }   /* Anker-Sprünge nicht unter der Sticky-Nav verstecken */

/* Tool-Sprungnavigation (Rechner-Seite) */
.tool-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tool-nav a {
  font-size: .82rem; font-weight: 600; padding: 10px 16px; border-radius: 999px;
  background: var(--bg-2); color: var(--text-soft); border: 1px solid var(--border); white-space: nowrap;
}
.tool-nav a:hover { color: var(--btc); border-color: rgba(247,147,26,.4); background: rgba(247,147,26,.08); }

/* topic nav cards on home */
.topic-card { position: relative; }
.topic-card .num {
  position: absolute; top: 16px; right: 18px; font-size: 2.4rem; font-weight: 800;
  color: #ffffff08; line-height: 1; font-family: var(--mono);
}

/* ---------- Stats ---------- */
.stat {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.stat .big { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; color: var(--btc); font-family: var(--mono); }
.stat .label { color: var(--text-dim); font-size: .85rem; margin-top: 4px; }
.stat .muted { font-size: .85rem; margin-top: 4px; }  /* rechner/prognose nutzen .muted als Stat-Label -> gleiche Typo wie .label */

/* ---------- Callouts ---------- */
.callout {
  border-left: 4px solid var(--btc); background: var(--bg-2);
  padding: 16px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.4em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout .tag { font-weight: 700; color: var(--btc); display: block; margin-bottom: 4px; font-size: .9rem; }
.callout.warn { border-color: var(--red); }
.callout.warn .tag { color: var(--red); }
.callout.tip { border-color: var(--green); }
.callout.tip .tag { color: var(--green); }
.callout.info { border-color: var(--blue); }
.callout.info .tag { color: var(--blue); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
thead th { background: var(--bg-3); color: #fff; text-align: left; font-weight: 650; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border-soft); color: var(--text-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #ffffff04; }
td.num, th.num { font-family: var(--mono); text-align: right; }

/* ---------- Code ---------- */
code { font-family: var(--mono); background: var(--bg-3); padding: .12em .4em; border-radius: 6px; font-size: .88em; color: var(--btc-soft); }
pre { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; }
pre code { background: none; padding: 0; color: var(--text-soft); }

/* ---------- Definition list / glossary ---------- */
.glossary { display: grid; gap: 12px; }
.glossary .term {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.glossary .term dt { font-weight: 750; color: var(--btc-soft); margin-bottom: 3px; }
.glossary .term dd { margin: 0; color: var(--text-soft); }

/* ---------- TOC (on-page) ---------- */
.toc {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin: 0 0 30px;
}
.toc strong { display: block; margin-bottom: 8px; color: #fff; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 26px; }
.toc li { margin: .25em 0; break-inside: avoid; }
.toc a { color: var(--text-soft); font-size: .92rem; }
.toc a:hover { color: var(--btc); }

/* ---------- Page header ---------- */
.page-head { padding: 48px 0 8px; border-bottom: 1px solid var(--border-soft); margin-bottom: 36px; }
.breadcrumb { font-size: .85rem; color: var(--text-dim); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--btc); }

/* article spacing */
.article > h2:first-child { margin-top: 0; }
.article p, .article li { max-width: 75ch; }

/* pills / badges */
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-3); color: var(--text-soft); border: 1px solid var(--border); margin: 2px; }
.pill.btc { background: rgba(247,147,26,.12); color: var(--btc-soft); border-color: rgba(247,147,26,.3); }

/* timeline */
.timeline { position: relative; margin: 1.5em 0; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(var(--btc), transparent); }
.timeline .ev { position: relative; margin-bottom: 22px; }
.timeline .ev::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--btc); box-shadow: 0 0 0 4px rgba(247,147,26,.15); }
.timeline .ev .yr { font-family: var(--mono); font-weight: 700; color: var(--btc); font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 70px; background: var(--bg-1); }
.footer .container { padding-top: 46px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.footer a { color: var(--text-dim); font-size: .9rem; display: block; padding: 3px 0; }
.footer a:hover { color: var(--btc); }
.footer .legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-soft); color: var(--text-dim); font-size: .82rem; }
.footer .disclaimer { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .82rem; color: var(--text-dim); margin-top: 16px; }

/* ---------- Language visibility system (7 languages) ----------
   Hide every translation whose language ≠ the active <body> language class.
   The active language keeps its natural display (block, inline, inline-block…).
   Languages: de en es pt ja zh ar. */
body.lang-de [data-lang]:not([data-lang="de"]),
body.lang-en [data-lang]:not([data-lang="en"]),
body.lang-es [data-lang]:not([data-lang="es"]),
body.lang-pt [data-lang]:not([data-lang="pt"]),
body.lang-ja [data-lang]:not([data-lang="ja"]),
body.lang-zh [data-lang]:not([data-lang="zh"]),
body.lang-ar [data-lang]:not([data-lang="ar"]) { display: none !important; }

/* ---------- Arabic: right-to-left ---------- */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .lead, html[dir="rtl"] .article p, html[dir="rtl"] .article li,
html[dir="rtl"] .article h1, html[dir="rtl"] .article h2, html[dir="rtl"] .article h3,
html[dir="rtl"] .card, html[dir="rtl"] .hero, html[dir="rtl"] .page-head,
html[dir="rtl"] .footer, html[dir="rtl"] .disclaimer { text-align: right; }
html[dir="rtl"] .nav-inner, html[dir="rtl"] .footer-grid, html[dir="rtl"] .breadcrumb { direction: rtl; }
html[dir="rtl"] .article ul, html[dir="rtl"] .article ol { padding-right: 1.4em; padding-left: 0; }
/* Callouts sind div/p/blockquote.callout -> Klassenselektor statt nur blockquote; Radius mitspiegeln */
html[dir="rtl"] .callout {
  border-left: 0; border-right: 4px solid var(--btc);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding-left: 18px; padding-right: 18px;
}
html[dir="rtl"] .lang-menu { left: 0; right: auto; }
html[dir="rtl"] .topic-card .num { right: auto; left: 18px; }  /* Wasserzeichen weg vom rechtsbündigen Icon */
/* code / latin-embedded stays LTR for readability */
html[dir="rtl"] code, html[dir="rtl"] pre, html[dir="rtl"] .mono, html[dir="rtl"] [data-price] { direction: ltr; unicode-bidi: embed; }

/* ---------- Scroll progress bar ---------- */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--btc), var(--btc-soft)); z-index: 60; transition: width .1s linear; }

/* back to top */
#toTop {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--btc); color: #1a1205; border: 0; cursor: pointer; font-size: 1.2rem; font-weight: 800;
  display: none; place-items: center; box-shadow: var(--shadow); z-index: 40;
}
#toTop.show { display: grid; }

/* fade-in on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Nav klappt ab 1320px zum Hamburger. Einzeiliger Bedarf gemessen (Inter, Preis 6-stellig):
   ES 1227px > PT 1215px > DE 1165px > EN 1147px > AR 1131px > JA 1105px > ZH 1005px.
   Der Standard-Container liefert nur 1136px (--maxw 1180 - 44 Padding), daher .nav .container
   auf 1320px geweitet + Burger <=1320px. Preis-Chip waechst ~9px je USD-Stelle.
   (Dropdown-Regeln fuer den Burger stehen NACH der Dropdown-Basissektion, sonst verliert
   dieser fruehe Block die Kaskade gegen die spaeteren Basisregeln.) */
@media (max-width: 1320px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0;
    background: var(--bg-1); border-bottom: 1px solid var(--border);
    padding: 8px; max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease; margin-inline-start: 0;
  }
  .nav-links.open { max-height: 80vh; overflow-y: auto; padding: 12px; visibility: visible; }
  /* Panel-Inhalt > 80vh: ohne flex:none quetscht flex-shrink die Kinder zusammen
     (Icons wurden auf 18px gestaucht) — stattdessen sauber scrollen */
  .nav-links > * { flex: none; }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .lang-toggle { margin: 8px 0 0; align-self: flex-start; }
  /* Touch: Tap-Targets auf >=44px (WCAG 2.5.5 / Apple HIG); .icon-btn steht wegen der
     Kaskade (Basisregel kommt später) in einem eigenen Block NACH der Basisdefinition */
  .lang-current { height: 44px; padding: 0 16px; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .toc ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Dropdown (nav "Themen / Topics") ---------- */
.dropdown { position: relative; }
.drop-btn {
  background: transparent; border: 0; color: var(--text-soft); font: inherit; font-size: .92rem;
  font-weight: 550; padding: 8px 11px; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.drop-btn:hover { color: #fff; background: var(--bg-2); }
.drop-btn .caret, .lang-current .caret { transition: transform .2s; font-size: .7em; }
.dropdown.open .drop-btn .caret, .lang-toggle.open .caret { transform: rotate(180deg); }
.drop-btn.active-parent { color: var(--btc); background: rgba(247,147,26,.1); }
.drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column; gap: 2px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  /* visibility verzögert = 300ms Gnadenfrist: kurzes Verlassen schließt nicht sofort */
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .3s;
}
/* unsichtbare Brücke über die 8px-Lücke Button->Menü, sonst reißt der Hover dazwischen ab */
.drop-menu::before { content: ""; position: absolute; left: -8px; right: -8px; top: -10px; height: 10px; }
html[dir="rtl"] .drop-menu { left: auto; right: 0; }
/* :focus-within liegt bewusst auf dem MENÜ, nicht auf .dropdown: sonst hielte der fokussierte
   Button das Menü nach dem Zuklappen per Klick offen (Klick-Toggle wirkte kaputt). */
.drop-menu:focus-within, .dropdown.open .drop-menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
/* Hover öffnet nur bei echtem Zeiger (iOS wertet den ersten Tap als Hover -> Klick-Toggle dort) */
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .drop-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .lang-toggle:hover .lang-menu { display: flex; }
}
/* gleiche Brücke fürs Sprachmenü */
.lang-menu::before { content: ""; position: absolute; left: -8px; right: -8px; top: -8px; height: 8px; }
.drop-menu a { padding: 9px 12px; border-radius: 8px; font-size: .9rem; color: var(--text-soft); display: flex; gap: 10px; align-items: center; }
.drop-menu a:hover { background: var(--bg-2); color: #fff; }
.drop-menu a.active { color: var(--btc); background: rgba(247,147,26,.1); }
.drop-menu a .di { width: 1.5em; text-align: center; flex: none; line-height: 1; }  /* em: skaliert mit Schrift, Emoji ragen nie über den Kasten */

/* Burger-Layout: Themen als Akkordeon IM Panel (muss NACH den Basisregeln stehen, damit
   position:static & display:none die Kaskade gewinnen; öffnet per Klick-Toggle .open) */
@media (max-width: 1320px) {
  .dropdown { width: 100%; }
  .drop-btn { width: 100%; justify-content: space-between; padding: 12px; }
  .drop-menu {
    position: static; display: none; box-shadow: none; border: 0; background: transparent;
    padding: 4px 0; padding-inline-start: 8px; min-width: 0;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .dropdown.open .drop-menu { display: flex; }
  .drop-menu::before { display: none; }
}

/* ---------- Live price: nav chip ---------- */
.price-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 6px;
  height: 34px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-2); font-size: .85rem; font-weight: 650; color: var(--text);
  white-space: nowrap; line-height: 1;
}
.price-chip:hover { color: #fff; border-color: rgba(247,147,26,.45); }
.price-chip .pc-ico { color: var(--btc); font-weight: 800; }
.price-chip .pc-val { font-family: var(--mono); }
.price-chip .pc-chg { font-size: .76rem; font-family: var(--mono); }
.pc-chg.up { color: var(--green); } .pc-chg.down { color: var(--red); }
.price-chip.offline { opacity: .55; }

/* ---------- Live price: hero card ---------- */
.price-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 22px; margin-top: 26px;
}
.price-card .pc-block { display: flex; flex-direction: column; }
.price-card .pc-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); }
.price-card .pc-big { font-family: var(--mono); font-size: clamp(1.4rem,3vw,1.9rem); font-weight: 800; color: #fff; line-height: 1.1; }
.price-card .pc-big.usd { color: var(--btc); }
.price-card .pc-chg { font-family: var(--mono); font-weight: 700; }
.price-card .pc-meta { font-size: .78rem; color: var(--text-dim); margin-inline-start: auto; }
.price-card.offline { opacity: .7; }

/* ---------- Charts ---------- */
.chart-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 14px; margin: 1.4em 0; }
.chart-card figcaption, .chart-cap { font-weight: 700; color: #fff; margin: 0 0 10px; font-size: 1.04rem; }
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; }
.chart-note { font-size: .82rem; color: var(--text-dim); margin: 10px 0 0; }
.chart-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); margin: 1.4em 0; }
@media (max-width: 760px) { .chart-grid { grid-template-columns: 1fr; } }

/* ---------- Print / PDF button ---------- */
.print-btn { background: transparent; border: 1px solid var(--border); color: var(--text-dim); border-radius: 8px; padding: 10px 14px; font: inherit; font-size: .82rem; cursor: pointer; }
.print-btn:hover { color: #fff; border-color: var(--btc); }

/* ---------- Print / PDF layout ---------- */
@media print {
  body { background: #fff !important; color: #111 !important; font-size: 10.5pt; }
  body::before { display: none !important; }
  .nav, #site-nav, .footer, #site-footer, #toTop, #progress,
  .lang-toggle, .print-btn, .nav-burger, .price-chip, .price-card, .toc,
  .article-video, .share-row, .article-nav, #videoLangBar, .video-lang-bar,
  .news-filters, .video-filters, .search-overlay { display: none !important; }
  a { color: #111 !important; text-decoration: none; }
  h1, h2, h3, h4 { color: #000 !important; }
  p, li, td, dd, .lead { color: #222 !important; }
  .card, .stat, .callout, .table-wrap, .chart-card, .glossary .term, .page-head { border-color: #ccc !important; background: #fff !important; box-shadow: none !important; }
  .stat .big, .eyebrow, .callout .tag, .glossary .term dt, .card .arrow, .breadcrumb, .timeline .ev .yr { color: #b35e00 !important; }
  thead th { background: #efefef !important; color: #000 !important; }
  .chart svg text { fill: #333 !important; }
  .chart svg line { stroke: #ccc !important; }
  section, .card, .chart-card, .table-wrap, .callout { break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  main, .container { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
}

/* ---------- Icon buttons (search / theme) ---------- */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 34px; margin-inline-start: 6px; padding: 0;
  border: 1px solid var(--border); border-radius: 9px; background: var(--bg-2);
  color: var(--text-soft); cursor: pointer; font-size: 1rem; line-height: 1;
}
.icon-btn:hover { color: #fff; border-color: rgba(247,147,26,.45); }
body.theme-light .icon-btn:hover { color: #0d1524; }
/* Touch-Tap-Target >=44px — muss NACH der Basisregel stehen (Kaskade) */
@media (max-width: 1320px) {
  .icon-btn { width: 44px; height: 44px; }
}

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(4,7,12,.62); backdrop-filter: blur(4px); padding: 10vh 18px 18px;
}
.search-overlay.open { display: block; }
.search-box {
  max-width: 680px; margin: 0 auto; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-box input {
  width: 100%; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 1.1rem; padding: 17px 20px; outline: none; border-bottom: 1px solid var(--border);
}
.search-box input:focus { outline: 2px solid var(--btc); outline-offset: -2px; }   /* a11y: sichtbarer Fokus (Box hat overflow:hidden) */
.search-results { max-height: 58vh; overflow-y: auto; }
.search-results a { display: block; padding: 11px 20px; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.search-results a:hover, .search-results a.sel { background: var(--bg-2); }
.search-results .r-page { font-size: .72rem; color: var(--btc); text-transform: uppercase; letter-spacing: .08em; }
.search-results .r-head { font-weight: 650; }
.search-results .r-head mark { background: rgba(247,147,26,.28); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-results .r-snip { font-size: .85rem; color: var(--text-dim); margin-top: 2px; }
.search-empty, .search-hint { padding: 16px 20px; color: var(--text-dim); font-size: .85rem; }
.search-hint { border-top: 1px solid var(--border-soft); font-size: .78rem; }
.search-hint kbd { font-family: var(--mono); background: var(--bg-3); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: .9em; }

/* ---------- Light theme ---------- */
body.theme-light {
  --bg: #f5f7fa; --bg-1: #ffffff; --bg-2: #eef1f6; --bg-3: #e3e8f0;
  --card: #ffffff; --card-hover: #f3f5f9;
  --text: #172033; --text-soft: #3c485c; --text-dim: #5b6678;   /* a11y: ≥4.5:1 on light --bg (was #6a7689 → 4.29:1) */
  --border: #e1e6ee; --border-soft: #eef1f6;
  --shadow: 0 10px 30px rgba(20,30,50,.08); --shadow-lg: 0 24px 60px rgba(20,30,50,.14);
}
body.theme-light::before { opacity: .4; }
body.theme-light h1, body.theme-light h2, body.theme-light h3, body.theme-light h4,
body.theme-light .brand, body.theme-light .brand:hover,
body.theme-light .toc strong, body.theme-light thead th,
body.theme-light .price-card .pc-big, body.theme-light .chart-card figcaption,
body.theme-light .chart-cap, body.theme-light .footer h4, body.theme-light .card h3 { color: #0d1524; }
body.theme-light .nav { background: rgba(255,255,255,.85); border-bottom-color: var(--border); }
body.theme-light .nav-links a:hover, body.theme-light .drop-menu a:hover { color: #0d1524; }
body.theme-light .nav-links a.active, body.theme-light .drop-btn.active-parent { color: #9a5200; background: rgba(247,147,26,.12); }
body.theme-light a { color: var(--btc-deep); }
body.theme-light a:hover { color: var(--btc); }
body.theme-light code { color: var(--btc-deep); }
body.theme-light .chart svg text { fill: #3c485c; }
body.theme-light .chart svg line { stroke: #e1e6ee; }
body.theme-light #toTop { box-shadow: var(--shadow); }
/* a11y: brand-orange & semantic accent TEXT need darker shades on light bg (WCAG 1.4.3, was ≈2:1) */
body.theme-light .stat .big, body.theme-light .news-card .kicker,
body.theme-light .callout .tag, body.theme-light .card .arrow,
body.theme-light .pill.btc { color: #9a5200; }
body.theme-light .auth-verified { color: #0f7a3d; border-color: rgba(15,122,61,.4); background: rgba(15,122,61,.09); }
body.theme-light .auth-unverified { color: #c62828; border-color: rgba(198,40,40,.4); background: rgba(198,40,40,.09); }
body.theme-light .auth-box .score.s-verified { color: #0f7a3d; }
body.theme-light .auth-box .score.s-unverified { color: #c62828; }
body.theme-light .auth-box .score.s-likely { color: #9a5200; }
/* a11y: 24h-Kursänderung (grün/rot) braucht dunklere Töne auf hellem Chip-BG (war ≈1.9:1 / 2.7:1) */
body.theme-light .pc-chg.up { color: #0f7a3d; }
body.theme-light .pc-chg.down { color: #c62828; }

/* ---------- News section ---------- */
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.news-filters button {
  font: inherit; font-size: .9rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--text-soft); cursor: pointer;
}
.news-filters button:hover { color: #fff; }
body.theme-light .news-filters button:hover { color: #0d1524; }
.news-filters button.active { background: var(--btc); color: #1a1205; border-color: var(--btc); }

.news-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

.news-card { display: flex; flex-direction: column; gap: 8px; }
.news-card .meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-card h3 { margin: 2px 0 0; font-size: 1.12rem; }
.news-card .kicker { font-size: .8rem; color: var(--btc); font-weight: 600; }
.news-card .teaser { color: var(--text-soft); font-size: .93rem; margin: 0; }
.news-card .foot { margin-top: auto; display: flex; gap: 8px; font-size: .78rem; color: var(--text-dim); padding-top: 8px; }

.cat-pill { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }
.cat-krypto { background: rgba(247,147,26,.16); color: var(--btc-soft); }
.cat-tech { background: rgba(74,168,255,.16); color: #7cc0ff; }
.cat-allgemein { background: rgba(179,136,255,.16); color: #c4a8ff; }
body.theme-light .cat-krypto { color: #9a5200; }
body.theme-light .cat-tech { color: #1d6fd0; }
body.theme-light .cat-allgemein { color: #6b3fd0; }

.auth-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; }
.auth-verified { color: var(--green); border-color: rgba(46,204,113,.4); background: rgba(46,204,113,.1); }
.auth-likely { color: var(--btc-soft); border-color: rgba(247,147,26,.4); background: rgba(247,147,26,.1); }
.auth-unverified { color: var(--red); border-color: rgba(255,92,92,.4); background: rgba(255,92,92,.1); }
body.theme-light .auth-likely { color: #9a5200; }

/* news article page */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--text-dim); font-size: .85rem; margin: 14px 0 0; }
.auth-box { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 22px 0; }
.auth-box .score { font-family: var(--mono); font-size: 1.9rem; font-weight: 800; line-height: 1; flex: none; }
.auth-box .score.s-verified { color: var(--green); }
.auth-box .score.s-likely { color: var(--btc); }
.auth-box .score.s-unverified { color: var(--red); }
.auth-box .ab-body { font-size: .9rem; }
.sources-list { list-style: none; padding: 0; margin: 0; }
.sources-list li { padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: .92rem; }
.sources-list li:last-child { border-bottom: 0; }
.ai-disclosure { border-left: 4px solid var(--blue); background: var(--bg-2); padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .86rem; color: var(--text-dim); margin: 22px 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.share-row a { font-size: .85rem; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-soft); }
.share-row a:hover { color: #fff; border-color: var(--btc); }
body.theme-light .share-row a:hover { color: #0d1524; }

/* prev/next article navigation */
.article-nav { display: flex; gap: 12px; margin: 26px 0 6px; }
.article-nav a { flex: 1 1 0; min-width: 0; display: block; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); color: var(--text); }
.article-nav a:hover { border-color: var(--btc); background: var(--card-hover); }
.article-nav .an-next { text-align: right; }
.article-nav .an-dir { display: block; font-size: .8rem; color: var(--text-dim); margin-bottom: 3px; }
.article-nav .an-title { font-weight: 600; font-size: .95rem; line-height: 1.3; }
@media (max-width: 560px) { .article-nav { flex-direction: column; } .article-nav .an-next { text-align: left; } }
html[dir="rtl"] .article-nav .an-next { text-align: left; }   /* RTL: „nächster" liegt links */
.article-nav .an-prev .an-dir::before { content: "\2190\00a0"; }   /* ← + nbsp */
.article-nav .an-next .an-dir::after { content: "\00a0\2192"; }    /* nbsp + → */
html[dir="rtl"] .article-nav .an-prev .an-dir::before { content: "\2192\00a0"; }  /* RTL spiegelt */
html[dir="rtl"] .article-nav .an-next .an-dir::after { content: "\00a0\2190"; }

/* news images */
.news-card .news-thumb { margin: -22px -22px 6px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--bg-2); }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-hero { width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: var(--radius); margin: 6px 0 22px; display: block; border: 1px solid var(--border); }

/* videos */
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }
.video-card video { width: 100%; aspect-ratio: 9 / 16; background: #000; display: block; margin: -22px -22px 10px; border-radius: var(--radius) var(--radius) 0 0; }
.video-card h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.video-card .vmeta { font-size: .78rem; color: var(--text-dim); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.video-card .platforms { margin-top: 6px; }
.video-card .platforms .pill { font-size: .68rem; padding: 2px 7px; }
.video-card h3[dir="rtl"] { text-align: right; }
.vlang-fallback { font-size: .62rem; font-weight: 700; letter-spacing: .04em; padding: 1px 6px;
  border-radius: 999px; background: rgba(247,147,26,.16); color: var(--btc-soft); }

/* video language selector (auto = device language) */
.video-lang-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.video-lang-bar label { font-size: .9rem; font-weight: 600; color: var(--text-soft); }
.video-lang-bar select { background: var(--bg-1); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 7px 12px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.video-lang-bar select:focus { outline: 2px solid var(--btc); outline-offset: 1px; }
.video-lang-bar .vlang-hint { font-size: .78rem; color: var(--text-dim); }
/* Video-„Zum Artikel"-Link: kontraststark in beiden Themes (WCAG 1.4.3) */
.video-article-link { display: inline-block; margin-top: 2px; font-size: .9em; font-weight: 600; color: var(--btc-soft); text-decoration: none; }
body.theme-light .video-article-link { color: #9a5200; }
