/* hodlers.nl — basisstijl
   Kleurenschema via CSS-variabelen, licht standaard, donker via
   prefers-color-scheme én een handmatige toggle (data-theme op <html>). */

:root {
  --orange: #f7931a;
  --orange-soft: rgba(247, 147, 26, 0.12);
  --bg: #fbfaf8;
  --bg-elev: #ffffff;
  --bg-sunken: #f2efea;
  --text: #16181d;
  --text-muted: #5d6470;
  --border: #e3dfd8;
  --link: #b35c00;
  --ok: #1c7c54;
  --warn: #a8551a;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgba(16, 18, 22, .05), 0 8px 24px rgba(16, 18, 22, .06);
  --radius: 14px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --orange: #ffa629;
    --orange-soft: rgba(255, 166, 41, 0.14);
    --bg: #0d1016;
    --bg-elev: #161a22;
    --bg-sunken: #11151c;
    --text: #e9ecf1;
    --text-muted: #9aa3b2;
    --border: #262c38;
    --link: #ffb655;
    --ok: #4cc38a;
    --warn: #e0a458;
    --danger: #ef6f6a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --orange: #ffa629;
  --orange-soft: rgba(255, 166, 41, 0.14);
  --bg: #0d1016;
  --bg-elev: #161a22;
  --bg-sunken: #11151c;
  --text: #e9ecf1;
  --text-muted: #9aa3b2;
  --border: #262c38;
  --link: #ffb655;
  --ok: #4cc38a;
  --warn: #e0a458;
  --danger: #ef6f6a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.2rem; margin-top: 1.8em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin: .35em 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 6px; padding: .1em .38em; }
strong { font-weight: 650; }
img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--orange); color: #111; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }

.brand {
  display: inline-flex; align-items: center;
  font-weight: 750; font-size: 1.12rem; letter-spacing: -.03em;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; margin-right: 9px;
  background: var(--orange); color: #17130a; font-size: 1.05rem; font-weight: 800;
}
.brand-tld { color: var(--text-muted); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 7px 11px; border-radius: 9px;
  color: var(--text-muted); text-decoration: none; font-size: .95rem; font-weight: 550;
}
.site-nav a:hover { background: var(--bg-sunken); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--orange-soft); }

/* Koopknop in de header — blijft ook op mobiel buiten het hamburgermenu zichtbaar */
.btn-header {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 9px 16px; margin-left: 12px; border-radius: 10px;
  background: var(--orange); color: #17130a;
  font-size: .92rem; font-weight: 650; text-decoration: none;
}
.btn-header:hover { filter: brightness(1.06); }
.btn-header::before { content: "₿"; font-weight: 800; margin-right: 7px; }
/* Op desktop uiterst rechts, op mobiel direct naast het logo (vóór de hamburger) */
.btn-header { order: 1; }
@media (max-width: 900px) { .btn-header { order: 0; } }
@media (max-width: 420px) {
  .btn-header { padding: 8px 12px; font-size: .86rem; margin-left: 8px; }
  .btn-header .long { display: none; }
}

.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; margin-left: 6px;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); cursor: pointer; font-size: 1rem; line-height: 1;
}
.icon-btn:hover { background: var(--bg-sunken); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 8px; font-size: 1rem; }
  .site-nav .icon-btn { margin: 10px 0 0; width: auto; padding: 0 14px; height: 40px; gap: 8px; }
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 30% auto -10%; height: 480px;
  background: radial-gradient(closest-side, var(--orange-soft), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.lead { font-size: 1.16rem; color: var(--text-muted); max-width: 62ch; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 11px; font-weight: 620; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--orange); color: #17130a; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--bg-elev); }
.btn-ghost:hover { background: var(--bg-sunken); }

/* ---------- Layout blokken ---------- */

section.band { padding: 56px 0; }
section.band.sunken { background: var(--bg-sunken); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 66ch; margin-bottom: 28px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--text-muted); margin: 0; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 .4em; font-size: 1.12rem; }
.card p { color: var(--text-muted); margin: 0; font-size: .97rem; }
.card p + p { margin-top: .8em; }

a.card { text-decoration: none; color: var(--text); display: block; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { transform: translateY(-2px); border-color: var(--orange); }
a.card .more { display: inline-block; margin-top: 14px; color: var(--orange); font-weight: 620; font-size: .93rem; }

.card-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--orange-soft); color: var(--orange); font-size: 1.15rem; margin-bottom: 14px;
}

.stat { text-align: left; }
.stat .num { font-size: 1.9rem; font-weight: 750; letter-spacing: -.03em; display: block; }
.stat .lbl { color: var(--text-muted); font-size: .92rem; }

/* ---------- Artikel ---------- */

.page-head { padding: 52px 0 8px; border-bottom: 1px solid var(--border); }
.page-head .lead { margin-bottom: 32px; }
.crumbs { font-size: .88rem; color: var(--text-muted); margin-bottom: 14px; }
.crumbs a { color: var(--text-muted); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding: 40px 0 72px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 8px; } }

article { max-width: 72ch; }
article h2:first-child { margin-top: 0; }
article ul li::marker { color: var(--orange); }

.toc { position: sticky; top: 88px; font-size: .93rem; }
.toc strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--orange); border-left-color: var(--orange); font-weight: 600; }
@media (max-width: 900px) {
  .toc { position: static; margin: 24px 0 0; padding: 18px 20px; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius); }
}

.callout {
  border: 1px solid var(--border); border-left: 4px solid var(--orange);
  background: var(--bg-elev); border-radius: 10px; padding: 16px 20px; margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--orange); }
.callout.warn { border-left-color: var(--danger); }
.callout.warn strong:first-child { color: var(--danger); }
.callout.tip { border-left-color: var(--ok); }
.callout.tip strong:first-child { color: var(--ok); }

.table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: var(--bg-elev); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--bg-sunken); font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }
.crosslist { list-style: none; padding: 0; }
.crosslist li { padding-left: 30px; position: relative; }
.crosslist li::before { content: "✕"; position: absolute; left: 4px; color: var(--danger); font-weight: 700; }

.steps { list-style: none; counter-reset: step; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 52px; margin-bottom: 22px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange); font-weight: 750; font-size: .95rem;
}
.steps h3 { margin: 2px 0 .35em; font-size: 1.08rem; }

details.faq {
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev);
  padding: 0 18px; margin-bottom: 10px;
}
details.faq summary { cursor: pointer; padding: 15px 0; font-weight: 620; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--orange); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
details.faq[open] summary::after { content: "−"; }
details.faq[open] summary { border-bottom: 1px solid var(--border); }
details.faq .faq-body { padding: 14px 0 4px; color: var(--text-muted); }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Call to action / partnerlink ---------- */

.cta {
  border: 1px solid var(--border); border-left: 4px solid var(--orange);
  background: var(--bg-elev); border-radius: var(--radius);
  padding: 26px 28px; margin: 36px 0; box-shadow: var(--shadow);
}
.cta h3 { margin: 0 0 .4em; font-size: 1.2rem; }
.cta p { color: var(--text-muted); margin: 0 0 18px; max-width: 58ch; }
.cta .btn-row { margin-top: 0; }

.btn-buy { background: var(--orange); color: #17130a; }
.btn-buy:hover { filter: brightness(1.06); }

.disclosure {
  display: block; margin-top: 14px; font-size: .82rem; line-height: 1.55; color: var(--text-muted);
  max-width: 62ch;
}
.disclosure strong { color: var(--text); font-weight: 620; }
.hero .disclosure { margin-top: 16px; }

/* ---------- Begrippenlijst ---------- */

.glossary-search {
  width: 100%; max-width: 420px; padding: 12px 16px; font-size: 1rem; font-family: inherit;
  color: var(--text); background: var(--bg-elev); border: 1px solid var(--border); border-radius: 11px;
}
.glossary-search:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.term { border-bottom: 1px solid var(--border); padding: 18px 0; }
.term:last-child { border-bottom: 0; }
.term h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.term p { margin: 0; color: var(--text-muted); }
.no-results { color: var(--text-muted); padding: 24px 0; display: none; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.pill {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-elev); font-size: .9rem; color: var(--text-muted); text-decoration: none;
}
.pill:hover { border-color: var(--orange); color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); background: var(--bg-sunken); padding: 48px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3em 0; }
.site-footer a { color: var(--text-muted); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .about { color: var(--text-muted); font-size: .95rem; max-width: 46ch; }
.disclaimer {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .86rem; line-height: 1.6;
}
.disclaimer strong { color: var(--text); }
