/* ==========================================================================
   Rivsenn A.I. — stylesheet (papier-ontwerp)
   Bron: rivsenn-overdracht (HANDOFF.md, "papier"). Deel 1 is het stylesheet uit de handoff
   (tokens, kop met pil en tegelmenu, hero, carrousel, lijsten, formulier, voet en stijlgids);
   deel 2 zijn de aanvullingen voor de onderdelen van de website die de handoff niet uitwerkt
   (productpagina, blog, privacy, zoeken, 404, cookies, taalkeuze, tekst uit de backend).
   Lettertypen zijn zelf gehost (Geist en Geist Mono, SIL Open Font License), dus zonder Google Fonts.
   ========================================================================== */
@font-face { font-family: "Geist"; src: url(../fonts/geist-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geist-mono-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* ===== Deel 1 · handoff ===== */
/* Rivsenn A.I. · papier-stijl
   Alle stijlen voor de site. Tokens bovenaan, licht/donker via :root, @media (prefers-color-scheme) en [data-theme]. */
/* Layout: één smalle kolom (760px) op warm papier, zwevende pil-kop die openklapt tot tegelmenu */
:root {
  --bg: #F1ECE3;
  --card: #F7F3EC;
  --soft: rgba(38, 34, 30, 0.06);
  --fg: #26221E;
  --muted: #6B645A;
  --faint: #B5AC9E;
  --line: #DCD4C6;
  --pill: rgba(247, 243, 236, 0.88);
  --btn: #26221E;
  --btn-fg: #F7F3EC;
  --input: #FBF8F3;
  --pattern: rgba(38, 34, 30, 0.13);
  --scrim: rgba(241, 236, 227, 0.6);
  --shadow: 0 8px 30px rgba(38, 34, 30, 0.08);
  --clay: #B4683F;
  --ok: #3D8B5A;
  --font-display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131211; --card: #1C1A18; --soft: rgba(236, 230, 219, 0.07); --fg: #ECE6DB; --muted: #A69E91; --faint: #4E4943;
    --line: #2F2C28; --pill: rgba(28, 26, 24, 0.88); --btn: #ECE6DB; --btn-fg: #131211; --input: #161513;
    --pattern: rgba(236, 230, 219, 0.12); --scrim: rgba(19, 18, 17, 0.6); --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131211; --card: #1C1A18; --soft: rgba(236, 230, 219, 0.07); --fg: #ECE6DB; --muted: #A69E91; --faint: #4E4943;
  --line: #2F2C28; --pill: rgba(28, 26, 24, 0.88); --btn: #ECE6DB; --btn-fg: #131211; --input: #161513;
  --pattern: rgba(236, 230, 219, 0.12); --scrim: rgba(19, 18, 17, 0.6); --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }

.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 760px; margin: 0 auto; }

/* Kop: zwevende pil */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; padding-block: 12px 0; }
.pill { background: var(--pill); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); overflow: hidden; }
.pill-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.logo span { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }
.logo .tile { fill: var(--fg); }
.logo .letter { stroke: var(--bg); }
.logo .leg { fill: var(--bg); }
.pill-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--soft); color: var(--fg); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn { height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--fg); display: flex; align-items: center; gap: 8px; cursor: pointer; font: 13px var(--font-body); }
.menu-btn .i-close, .menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.theme-btn .i-sun { display: none; }
.logo svg { transition: opacity 0.25s; }
.logo.has-orb svg { opacity: 0; }
.is-dark .theme-btn .i-sun { display: block; }
.is-dark .theme-btn .i-moon { display: none; }

/* Het nieuwe menu: pil klapt open tot tegels */
.pill-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.menu-open .pill-menu { grid-template-rows: 1fr; }
.pill-menu > div { overflow: hidden; }
.pill-menu-inner { padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr 1fr; } }
main { overflow-x: clip; }
.tile-link { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 104px; padding: 14px; border-radius: 16px; background: var(--soft); text-decoration: none; transition: transform 0.15s ease, background 0.15s ease; }
.tile-link:hover { transform: translateY(-2px); }
.tile-link .t-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.tile-link .t-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; display: block; }
.tile-link .t-sub { font-size: 12px; color: var(--muted); line-height: 1.4; display: block; }
.tile-link[aria-current="page"] { background: var(--fg); color: var(--bg); }
.tile-link[aria-current="page"] .t-top, .tile-link[aria-current="page"] .t-sub { color: var(--bg); opacity: 0.75; }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 6px 0; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; }
.me img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.me b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 15px; line-height: 1.3; }
.status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); line-height: 1.3; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.scrim { position: fixed; inset: 0; z-index: 25; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Knoppen */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--btn); color: var(--btn-fg); border: 1px solid var(--btn); text-decoration: none; font: 13px var(--font-body); cursor: pointer; }
.btn-line { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-line:hover { border-color: var(--fg); }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }

/* Hero */
.hero { position: relative; padding-top: clamp(270px, 40vw, 330px); }
.hero .orb-spot { position: absolute; left: 50%; top: -24px; width: min(118vw, 820px); height: calc(clamp(270px, 40vw, 330px) + 14px); transform: translateX(-50%); pointer-events: none; z-index: 0; }
/* De orb is een vliegend botje: vast in beeld, JS zet positie en grootte */
canvas.orb { position: fixed; left: 0; top: 0; width: 320px; height: 320px; transform-origin: 0 0; pointer-events: none; z-index: 35; display: block; will-change: transform; }
.hero > div { position: relative; z-index: 1; }
.hero h1 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: clamp(36px, 6vw, 58px); letter-spacing: -0.035em; }
.hero h1 img { width: 0.82em; height: 0.82em; border-radius: 50%; border: 1px solid var(--line); }
.hero p.intro { margin: 22px 0 0; max-width: 34em; font-size: 16px; }
.facts { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.down { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--muted); font-size: 13px; }
.down span { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--fg); }

.stack { margin-top: 52px; padding-block: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; gap: 34px; overflow-x: auto; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--faint); white-space: nowrap; scrollbar-width: none; }

.sec { padding-top: clamp(64px, 12vw, 120px); }
.sec h2 { font-size: clamp(30px, 4.6vw, 42px); }
.sec .lead { margin: 14px 0 0; max-width: 28em; }

/* Carrousel diensten */
.carousel { margin-top: 36px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.carousel::-webkit-scrollbar { display: none; }
.card { flex: 0 0 min(82%, 340px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.card .shot { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); max-width: 100%; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .shot img { transform: scale(1.03); }
.card .name { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.01em; }
.track { margin-top: 26px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.track div { height: 2px; width: 25%; background: var(--fg); transition: width 0.1s linear; }

/* Lijsten */
.list { margin-top: 28px; border-top: 1px solid var(--line); }
.row { padding-block: 30px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.row h3 { font-size: 24px; letter-spacing: -0.02em; }
.row p { margin: 0; }
.cover { width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; display: flex; align-items: flex-end; padding: 22px; font-family: var(--font-display); font-size: clamp(28px, 6vw, 44px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.cover.clay { background: var(--clay); color: #FBF9F4; }
.cover.sand { background: #DCD1BF; color: #26221E; }
.cover.ink { background: #26221E; color: #F1ECE3; border: 1px solid var(--line); }
.links { display: flex; gap: 22px; font-size: 13px; }

/* Ebooks-pagina compact */
.mini { display: flex; gap: 18px; align-items: flex-start; flex-direction: row; }
.mini .spine { flex-shrink: 0; width: 64px; height: 84px; border-radius: 6px; }

/* Detail */
.back { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--soft); text-decoration: none; color: var(--muted); font-size: 13px; }
.detail { padding-top: 48px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.detail h1 { margin-top: 14px; font-size: clamp(34px, 5.4vw, 52px); }
.label { font-size: 12px; color: var(--muted); margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.big-shot { margin-top: 40px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.pager { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager a { padding: 16px; border: 1px dashed var(--line); border-radius: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pager a:last-child { text-align: right; }

/* Over */
.about { padding-top: 56px; display: flex; flex-direction: column; gap: 18px; }
.about p { margin: 0; max-width: 36em; }
.portrait { align-self: center; position: relative; margin-bottom: 18px; }
.portrait img { width: 132px; height: 132px; border-radius: 50%; border: 1px solid var(--line); }
.portrait span { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Contact */
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 56px; }
.center p { margin: 0; max-width: 24em; }
.form { margin-top: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; }
.form-head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.form-body { padding: 22px 18px 24px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, legend { font-size: 13px; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 10px; width: 100%; display: flex; justify-content: space-between; }
input[type=text], input[type=email], textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--input); color: var(--fg); font: 16px var(--font-body); }
textarea { min-height: 120px; resize: vertical; }
.toggle { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg); font: 13px var(--font-body); cursor: pointer; }
.toggle[aria-pressed="true"] { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 13px; }

/* Footer */
.foot { padding-block: 72px 36px; }
.wave path { fill: none; stroke: var(--fg); stroke-width: 0.9; opacity: 0.55; }
.foot h2 { margin-top: 40px; font-size: 24px; letter-spacing: -0.02em; }
.foot .ctas { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-size: 12px; }
.copy { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; line-height: 1.8; color: var(--muted); }

.view[hidden] { display: none !important; }

/* ---------- Stijlgids: basis-elementen in .sg ---------- */
.sg-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 86px); z-index: 5; margin-top: 28px; padding-block: 10px; display: flex; gap: 6px; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.sg-toc a { flex-shrink: 0; min-height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 12px; color: var(--muted); }
.sg-toc a:hover { color: var(--fg); border-color: var(--fg); }
.sg-sec { padding-block: 44px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 150px; }
.sg-sec > .label { margin: 0; }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.sg-grid > * { min-width: 0; }
.sg h1 { font-size: clamp(36px, 6vw, 58px); }
.sg h2 { font-size: clamp(30px, 4.6vw, 42px); }
.sg h3 { font-size: 24px; letter-spacing: -0.02em; }
.sg h4, .sg h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0; }
.sg h4 { font-size: 20px; letter-spacing: -0.02em; }
.sg h5 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.sg pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.toast[hidden], .scrim[hidden] { display: none; }
.sg h6 { font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0.02em; color: var(--muted); }
.sg p { margin: 0; max-width: 36em; overflow-wrap: anywhere; }
.sg a:not(.btn):not(.chip-link) { text-underline-offset: 3px; text-decoration-color: var(--clay); }
.sg strong { font-weight: 500; font-family: var(--font-display); font-size: 1.05em; }
.sg mark { background: rgba(180, 104, 63, 0.22); color: var(--fg); padding: 0 0.2em; border-radius: 3px; }
.sg code { font-family: var(--font-body); font-size: 0.92em; background: var(--soft); border: 1px solid var(--line); padding: 0.05em 0.4em; border-radius: 6px; }
.sg kbd { font-family: var(--font-body); font-size: 0.85em; border: 1px solid var(--line); border-bottom-width: 2px; padding: 0.05em 0.45em; border-radius: 6px; background: var(--card); }
.sg abbr[title] { text-decoration: underline dotted; cursor: help; }
.sg del { color: var(--muted); }
.sg ins { text-decoration: none; background: var(--soft); padding: 0 0.2em; border-radius: 3px; }
.sg ul, .sg ol { margin: 0; padding-left: 1.3em; }
.sg li { margin: 0.25em 0; overflow-wrap: anywhere; }
.sg ul li::marker { color: var(--clay); }
.sg ol li::marker { color: var(--muted); font-size: 0.9em; }
.sg dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.sg dl > div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sg dt { color: var(--muted); font-size: 13px; }
.sg dd { margin: 0; text-align: right; }
.sg blockquote { margin: 0; padding-left: 20px; border-left: 1px solid var(--fg); font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.4; letter-spacing: -0.015em; }
.sg blockquote p { margin: 0 0 10px; }
.sg cite { font-family: var(--font-body); font-style: normal; font-size: 12px; color: var(--muted); }
.sg hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 0; }
.sg pre { margin: 0; padding: 18px; border-radius: 14px; background: var(--fg); color: var(--bg); overflow-x: auto; font: 13px/1.7 var(--font-body); }
.sg address { font-style: normal; color: var(--muted); }
.sg .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.sg table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sg caption { text-align: left; padding: 14px 16px 0; font-size: 12px; color: var(--muted); }
.sg th { text-align: left; font-weight: 400; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sg td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sg tbody tr:last-child td { border-bottom: 0; }
.sg tfoot td { border-top: 1px solid var(--line); border-bottom: 0; font-family: var(--font-display); font-size: 15px; }
.sg .num { text-align: right; }
.sg figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sg figure img { border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.sg figcaption { font-size: 12px; color: var(--muted); }
.sg video { width: 100%; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; background: var(--fg); display: block; }
.sg audio { width: 100%; }
.sg details { border-top: 1px solid var(--line); padding-block: 16px; }
.sg details:last-of-type { border-bottom: 1px solid var(--line); }
.sg summary { cursor: pointer; font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.sg summary::-webkit-details-marker { display: none; }
.sg summary::after { content: "+"; color: var(--muted); font-family: var(--font-body); }
.sg details[open] summary::after { content: "−"; }
.sg details p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.sg select, .sg input[type=password], .sg input[type=number], .sg input[type=tel], .sg input[type=url], .sg input[type=search], .sg input[type=date], .sg input[type=time] { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--input); color: var(--fg); font: 16px var(--font-body); }
.sg input:focus, .sg select:focus, .sg textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
.sg input::placeholder, .sg textarea::placeholder { color: var(--muted); opacity: 0.8; }
.sg input:disabled { opacity: 0.55; cursor: not-allowed; }
.sg .is-error input { border-color: #B4483A; }
.sg .is-error .hint { color: #B4483A; }
.sg .is-ok input { border-color: var(--ok); }
.sg .is-ok .hint { color: var(--ok); }
.sg .hint { font-size: 12px; color: var(--muted); }
.sg .req { color: var(--clay); }
.sg .check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; cursor: pointer; }
.sg input[type=checkbox], .sg input[type=radio] { width: 18px; height: 18px; accent-color: var(--fg); margin: 0; }
.sg input[type=range] { width: 100%; accent-color: var(--clay); }
.sg input[type=color] { width: 56px; height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: var(--input); }
.sg input[type=file] { font: 13px var(--font-body); color: var(--muted); }
.sg .switch { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; cursor: pointer; }
.sg .switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.sg .switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s; }
.sg .switch input:checked { background: var(--fg); }
.sg .switch input:checked::after { transform: translateX(18px); }
.sg fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 8px; }
.sg fieldset legend { font-size: 12px; color: var(--muted); padding: 0 6px; width: auto; display: block; margin: 0; }
.sg progress, .sg meter { width: 100%; height: 8px; accent-color: var(--fg); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.btn-clay { background: var(--clay); border-color: var(--clay); color: #FBF9F4; }
.btn-icon { width: 44px; padding: 0; justify-content: center; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); }
.tag-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag-clay { background: rgba(180, 104, 63, 0.16); border-color: transparent; }
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 13px; border: 1px solid var(--line); background: var(--card); }
.alert b { font-weight: 500; flex-shrink: 0; }
.alert-ok { border-color: var(--ok); }
.alert-ok b { color: var(--ok); }
.alert-err { border-color: #B4483A; }
.alert-err b { color: #B4483A; }
.tabs-list { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs-list [role=tab] { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 13px var(--font-body); cursor: pointer; }
.tabs-list [role=tab][aria-selected=true] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tab-panel { padding-top: 14px; }
.sg dialog { width: min(440px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.sg dialog::backdrop { background: var(--scrim); backdrop-filter: blur(6px); }
.toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 13px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.tip { position: relative; display: inline-flex; }
.tip-text { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 220px; padding: 7px 11px; border-radius: 10px; background: var(--fg); color: var(--bg); font-size: 12px; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 4; }
.tip:hover .tip-text, .tip:focus-within .tip-text { opacity: 1; }
@keyframes sg-spin { to { transform: rotate(360deg); } }
@keyframes sg-pulse { 50% { opacity: 0.45; } }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--fg); border-radius: 50%; animation: sg-spin 0.8s linear infinite; flex-shrink: 0; }
.skel { background: var(--soft); border-radius: 8px; animation: sg-pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .spinner, .skel { animation: none; } }
.empty { border: 1px dashed var(--line); border-radius: 16px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pages { display: flex; gap: 6px; }
.pages a { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-size: 13px; }
.pages a[aria-current=page] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.crumbs { font-size: 12px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.av-frame { position: relative; display: block; flex-shrink: 0; padding: 4px; border: 1px solid var(--fg); border-radius: 50%; }
.av-frame img { width: 100%; height: 100%; border-radius: 50%; }
.av-frame::after { content: ""; position: absolute; right: 9%; top: 9%; width: 9px; height: 9px; background: var(--clay); border: 2px solid var(--bg); }
.av-group { display: flex; }
.av-group span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.av-group span + span { margin-left: -10px; }
.cookie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 20px; background: var(--fg); color: var(--bg); font-size: 13px; }
.cookie .btn { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.cookie .btn-line { background: transparent; color: var(--bg); border-color: rgba(127,127,127,0.5); }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.swatch { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 11px; }
.swatch span { display: block; height: 56px; }
.swatch p { padding: 8px 10px; margin: 0; color: var(--muted); }

/* ===== Deel 2 · aanvullingen voor rivsenn.com ===== */

/* Basis voor tekst uit de backend en gewone pagina's */
p { margin: 0 0 1em; }
h1 { font-size: clamp(34px, 5.4vw, 52px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 4.2vw, 40px); letter-spacing: -0.03em; }
h3 { font-size: 24px; letter-spacing: -0.02em; }
h4 { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
h5 { font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 1.3; margin: 0; }
h6 { font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--muted); margin: 0; }
b, strong { font-weight: 500; }
small { font-size: 12px; color: var(--muted); }
::selection { background: rgba(180, 104, 63, 0.28); }
a { text-underline-offset: 3px; text-decoration-color: var(--clay); }
a:hover { text-decoration-color: var(--fg); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rv-skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--btn); color: var(--btn-fg); border-radius: 999px; text-decoration: none; }
.rv-skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.rv-muted { color: var(--muted); }
.rv-mono { font-family: var(--font-body); }
body { min-height: 100vh; display: flex; flex-direction: column; }
main.gutter { flex: 1 0 auto; width: 100%; }
.logo .wordmark { font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: -0.02em; }

/* Taalkeuze (rondjes) */
.rv-lang { display: flex; gap: 4px; }
.rv-lang a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--fg); font-size: 11px; padding: 0; }
.rv-lang a:hover { border-color: var(--fg); }
.rv-lang a[aria-current="true"] { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.pill-menu .menu-lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px; }

/* Hero (home) */
.hero__facts { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hero__btns { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero h1 .hero__avatar { width: 0.82em; height: 0.82em; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; object-position: 46% 24%; }

/* Stack-rij: label links, items scrollen */
.stack { align-items: center; }
.stack .stack__label { flex-shrink: 0; font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }

/* Secties van de website: kop en inhoud onder elkaar in één kolom */
.rv-section { padding-top: clamp(56px, 10vw, 100px); display: flex; flex-direction: column; gap: 20px; }
.rv-section__aside { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.rv-section__aside--stack { gap: 14px; }
.rv-section__main { min-width: 0; }
.rv-section__aside h2.rv-label, .rv-label { font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0; line-height: 1.5; }
.rv-section__aside h2.rv-label { font-size: 13px; }
.rv-section__title { font-size: clamp(30px, 4.6vw, 42px); letter-spacing: -0.03em; margin: 0; text-transform: none; }
.rv-section__text { margin: 0; max-width: 28em; color: var(--muted); font-size: 13px; }
.rv-block .rv-section__aside .btn, .rv-block .rv-section__aside .rv-btn { margin-top: 4px; }
.rv-intro { padding-top: 56px; }
.rv-intro h1 { margin: 6px 0 0; }
.rv-intro .rv-lead { margin: 14px 0 0; }
.rv-intro .rv-section__main > * + * { margin-top: 18px; }
.rv-lead { margin: 0; max-width: 34em; font-size: 16px; line-height: 1.75; color: var(--fg); }
.rv-display { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 6vw, 58px); line-height: 1.06; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.rv-stackflow { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.rv-stackflow > * { margin: 0; }
.rv-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

/* Knoppen onder de oude namen (rv-btn…) */
.rv-btn, button.rv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--btn); color: var(--btn-fg); border: 1px solid var(--btn); text-decoration: none; font: 13px var(--font-body); cursor: pointer; }
.rv-btn:hover { opacity: 0.88; color: var(--btn-fg); }
.rv-btn--outline, button.rv-btn--outline { background: transparent; color: var(--fg); border-color: var(--line); }
.rv-btn--outline:hover { border-color: var(--fg); background: transparent; color: var(--fg); opacity: 1; }
.rv-btn--ghost, button.rv-btn--ghost { background: transparent; border-color: transparent; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; padding-inline: 4px; }
.rv-btn--ghost:hover { background: transparent; opacity: 1; color: var(--fg); }
.rv-btn--clay, button.rv-btn--clay { background: var(--clay); border-color: var(--clay); color: #FBF9F4; }
.rv-btn--lg { min-height: 50px; padding: 0 24px; }
.rv-btn--icon { width: 44px; padding: 0; }
.rv-btn:disabled, button.rv-btn:disabled, .rv-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.rv-btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rv-linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--clay); cursor: pointer; }

/* Formulieren (ook buiten de stijlgids) */
label { font-size: 13px; }
.rv-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rv-field label, .rv-field legend { font-size: 13px; display: block; margin: 0; }
input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], input[type=date], input[type=time], select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--input); color: var(--fg); font: 16px var(--font-body); }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B645A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
input:disabled, select:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--fg); margin: 0; flex-shrink: 0; }
.rv-check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; margin: 0; cursor: pointer; }
.rv-checks { display: flex; flex-wrap: wrap; gap: 2px 20px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 8px; }
fieldset legend { font-size: 12px; color: var(--muted); padding: 0 6px; width: auto; display: block; margin: 0; }
.rv-hint { display: block; font-size: 12px; color: var(--muted); margin: 0; }
.rv-req { color: var(--clay); margin-left: 2px; }
.rv-field.is-error input, .rv-field.is-error textarea, .rv-field.is-error select, input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #B4483A; }
.rv-field.is-error .rv-hint { color: #B4483A; }
.rv-field.is-ok input { border-color: var(--ok); }
.rv-field.is-ok .rv-hint { color: var(--ok); }
.rv-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 18px; }
.rv-form-grid .rv-span-all { grid-column: 1 / -1; }
.rv-switch { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; cursor: pointer; margin: 0; }
.rv-switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.rv-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.2s; }
.rv-switch input:checked { background: var(--fg); }
.rv-switch input:checked::after { transform: translateX(18px); }
.rv-switch input:disabled { opacity: 0.55; cursor: not-allowed; }
.rv-search { display: flex; gap: 8px; max-width: 560px; }
.rv-search input { flex: 1; min-width: 0; }
.rv-filterform { max-width: 560px; }

/* Meldingen */
.rv-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 13px; border: 1px solid var(--line); background: var(--card); align-items: flex-start; }
.rv-alert__type { font-weight: 500; flex-shrink: 0; }
.rv-alert--success { border-color: var(--ok); }
.rv-alert--success .rv-alert__type { color: var(--ok); }
.rv-alert--error { border-color: #B4483A; }
.rv-alert--error .rv-alert__type { color: #B4483A; }
.rv-alert .rv-spinner { width: 18px; height: 18px; }
.rv-spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--fg); border-radius: 50%; animation: sg-spin 0.8s linear infinite; flex-shrink: 0; }
.rv-empty { border: 1px dashed var(--line); border-radius: 16px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.rv-empty p { margin: 0; }
.rv-empty__title { color: var(--fg); font-family: var(--font-display); font-size: 18px; }
.rv-note { background: var(--soft); font-size: 12px; color: var(--muted); padding-block: 10px; }
.rv-note > div { max-width: 760px; margin: 0 auto; }

/* Labels en tags */
.rv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 28px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
a.rv-tag:hover { border-color: var(--fg); }
.rv-tag--solid, a.rv-tag--solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rv-tag--clay { background: rgba(180, 104, 63, 0.16); border-color: transparent; }
.rv-tag--st-open { background: rgba(180, 72, 58, 0.14); border-color: transparent; }
.rv-tag--st-wacht { background: var(--soft); }
.rv-tag--st-dicht { background: rgba(61, 139, 90, 0.16); border-color: transparent; }
.rv-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.rv-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* Avatar, portret en byline */
.rv-avatar { border-radius: 50%; object-fit: cover; object-position: 46% 24%; flex-shrink: 0; display: block; }
.rv-avatar--xs { width: 32px; height: 32px; }
.rv-avatar--sm { width: 48px; height: 48px; }
.rv-avatar--md { width: 64px; height: 64px; border: 1px solid var(--line); }
.rv-avatar-frame { position: relative; display: block; flex-shrink: 0; width: 132px; height: 132px; padding: 4px; border: 1px solid var(--fg); border-radius: 50%; }
.rv-avatar-frame img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 46% 24%; }
.rv-avatar-frame::after { content: ""; position: absolute; right: 9%; top: 9%; width: 9px; height: 9px; background: var(--clay); border: 2px solid var(--bg); }
.rv-byline { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.rv-person { display: flex; align-items: center; gap: 14px; }
.rv-person__name { display: block; font-family: var(--font-display); font-weight: 500; }
.rv-person__role { display: block; font-size: 12px; color: var(--muted); }
.rv-about { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.rv-about__text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.rv-about__intro { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 3.2vw, 30px); line-height: 1.35; letter-spacing: -0.02em; }

/* Kaarten en lijsten */
.rv-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--card); min-width: 0; }
.rv-card h4, .rv-card p { margin: 0; }
.rv-card p { font-size: 13px; color: var(--muted); }
.rv-card--link { text-decoration: none; color: var(--fg); transition: border-color 0.15s; }
.rv-card--link:hover { border-color: var(--fg); color: var(--fg); }
.rv-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--soft); }
.rv-card__more { font-size: 12px; margin-top: 6px; color: var(--fg); }
.rv-aside { background: var(--soft); border-radius: 14px; padding: 18px; }
.rv-aside p { margin: 6px 0 0; font-size: 13px; }
.rv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rv-list li { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.rv-list a { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; text-decoration: none; }
.rv-list a:hover { text-decoration: underline; text-decoration-color: var(--clay); }
.rv-list p { margin: 0; font-size: 13px; color: var(--muted); }
.rv-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rv-steps li { margin: 0; padding: 26px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.rv-steps h3 { margin: 0; font-size: 22px; }
.rv-steps p { margin: 0; font-size: 14px; color: var(--muted); max-width: 36em; }
.rv-dl { margin: 0; display: grid; grid-template-columns: minmax(96px, 150px) 1fr; border-top: 1px solid var(--line); width: 100%; }
.rv-dl dt, .rv-dl dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 13px; }
.rv-dl dt { color: var(--muted); }
.rv-dl dd { overflow-wrap: anywhere; }
details { border-top: 1px solid var(--line); padding-block: 16px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-family: var(--font-body); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* Ebook-omslagen en ebook-rijen */
.rv-cover { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; display: flex; align-items: flex-end; padding: 22px; position: relative; overflow: hidden; }
.rv-cover__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 6vw, 44px); letter-spacing: -0.04em; line-height: 1; }
.rv-cover--clay { background: var(--clay); color: #FBF9F4; }
.rv-cover--sand { background: #DCD1BF; color: #26221E; }
.rv-cover--dark { background: #26221E; color: #F1ECE3; border: 1px solid var(--line); }
.rv-cover--image { padding: 0; background: var(--card); border: 1px solid var(--line); }
.rv-cover--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-ebook { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--fg); min-width: 0; }
.rv-ebook__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.rv-ebook__meta span:first-child { font-family: var(--font-display); font-size: 17px; }
.rv-ebook__meta s, .rv-price s { color: var(--muted); font-weight: 400; }
a.rv-ebook:hover .rv-ebook__meta span:first-child { text-decoration: underline; text-decoration-color: var(--clay); }
.rv-ebooks { display: flex; flex-direction: column; gap: 24px; }
.rv-ebooks__rest { gap: 20px; }
.row .rv-cover { aspect-ratio: 16 / 9; }
.row h3 a { text-decoration: none; }
.row .row__meta { font-size: 12px; color: var(--muted); }

/* Diensten: carrousel op de voorpagina, raster op de dienstenpagina */
.card-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px 18px; }
.card-grid .card { flex: none; }
.card .shot.shot--icon { display: flex; align-items: center; justify-content: center; }
.card .shot.shot--icon svg { width: 54px; height: 54px; }
.card .shot .rv-glyph { font-size: 34px; font-family: var(--font-body); color: var(--muted); }
.card .name { color: var(--fg); }

/* Artikel- en dienstpagina's, tekst uit de backend */
.rv-article { padding-top: 40px; }
.rv-article h1 { margin: 6px 0 14px; }
.rv-article .rv-section__main > * + * { margin-top: 22px; }
.rv-article .rv-section__aside svg { stroke: var(--fg); }
.rv-figure { display: block; width: 100%; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.rv-figure--art { border: 0; background: none; max-width: 100%; }
.rv-illustration { border-radius: 16px; width: 100%; height: auto; }
.rv-prose { max-width: 100%; font-size: 15px; line-height: 1.8; }
.rv-prose > :first-child { margin-top: 0; }
.rv-prose p { margin: 0 0 1.1em; overflow-wrap: anywhere; }
.rv-prose h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 1.8em 0 0.5em; }
.rv-prose h3 { font-size: 22px; margin: 1.5em 0 0.4em; }
.rv-prose h4 { font-size: 18px; margin: 1.3em 0 0.4em; }
.rv-prose ul, .rv-prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.rv-prose li { margin: 0.3em 0; overflow-wrap: anywhere; }
.rv-prose ul li::marker { color: var(--clay); }
.rv-prose ol li::marker { color: var(--muted); font-size: 0.9em; }
.rv-prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 1px solid var(--fg); font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.4; letter-spacing: -0.015em; }
.rv-prose blockquote p { margin: 0 0 10px; }
.rv-prose pre { margin: 1.4em 0; padding: 18px; border-radius: 14px; background: var(--fg); color: var(--bg); overflow-x: auto; font: 13px/1.7 var(--font-body); }
.rv-prose code { font-family: var(--font-body); font-size: 0.92em; background: var(--soft); border: 1px solid var(--line); padding: 0.05em 0.4em; border-radius: 6px; }
.rv-prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.rv-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.rv-prose a { text-decoration-color: var(--clay); }
.rv-prose img { border-radius: 14px; }
.rv-prose figure { margin: 1.6em 0; }
.rv-prose figure img { width: 100%; border: 1px solid var(--line); background: var(--card); }
.rv-prose .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 1.6em 0; }
.rv-prose .gallery figure { margin: 0; }
.rv-prose h2 .rv-label { margin-right: 8px; vertical-align: middle; }
.rv-prose mark { background: rgba(180, 104, 63, 0.22); color: var(--fg); padding: 0 0.2em; border-radius: 3px; }
.rv-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.rv-table-wrap table { min-width: 520px; }
th { text-align: left; font-weight: 400; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rv-num { text-align: right; }
.rv-embed { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--fg); }
.rv-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.rv-thumbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.rv-thumbs li { margin: 0; }
.rv-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.rv-pagination { display: flex; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.rv-pagination a { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-size: 13px; }
.rv-pagination a[aria-current="page"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rv-breadcrumb { font-size: 12px; color: var(--muted); padding-top: 40px; }
.rv-breadcrumb a { color: var(--muted); }
.rv-breadcrumb [aria-current="page"] { color: var(--fg); }
.rv-breadcrumb + .rv-article, .rv-breadcrumb + .rv-product { padding-top: 20px; }

/* Ebookpagina */
.rv-product { padding-top: 20px; display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-start; }
.rv-product__cover { flex: 1 1 260px; max-width: 100%; }
.rv-product__cover .rv-cover { aspect-ratio: 3 / 4; }
.rv-product__img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
.rv-product__info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.rv-product__info h1, .rv-product__info .rv-lead { margin: 0; }
.rv-buy { width: 100%; display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.rv-buy > * { margin: 0; }
.rv-price { font-family: var(--font-display); font-size: 36px; line-height: 1; letter-spacing: -0.03em; }
.rv-price s { font-size: 0.6em; }
.rv-buy__form { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.rv-buy__form .rv-btn, .rv-buy > .rv-btn { width: 100%; }
.rv-code__row { display: flex; gap: 8px; }
.rv-code__row input { flex: 1; min-width: 0; }

/* Contact, 404, privacy */
.rv-split { display: flex; flex-direction: column; gap: 32px; }
.rv-split__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rv-split__main form { padding: 22px 18px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.rv-split__side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.rv-404 { padding-top: 56px; }
.rv-404__code { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: clamp(110px, 24vw, 220px); line-height: 0.9; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--fg); }
.rv-404 h1 { margin: 0 0 12px; }
.rv-404 .rv-section__main > * + * { margin-top: 18px; }
.rv-404__pages { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.rv-404__pages .rv-illustration { max-width: 220px; }
.rv-toc ol { margin: 0; padding-left: 1.6em; font-size: 14px; }
.rv-toc a { text-decoration: none; }
.rv-toc a:hover { text-decoration: underline; text-decoration-color: var(--clay); }
.rv-closer { padding-bottom: 8px; }
.rv-closer .rv-display { margin: 0; }
.rv-closer__side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.rv-closer__side p { margin: 0; color: var(--muted); font-size: 14px; max-width: 30em; }
.rv-closer--center { align-items: center; text-align: center; }
.rv-closer--center .rv-closer__side { align-items: center; }
.rv-closer--accent { background: var(--soft); border-radius: 20px; padding: 36px 22px; margin-top: clamp(56px, 10vw, 100px); }

/* Cookies, dialog, toast, taalmelding */
.rv-dialog { width: min(480px, calc(100vw - 32px)); max-height: 90vh; border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.rv-dialog::backdrop { background: var(--scrim); backdrop-filter: blur(6px); }
.rv-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.rv-dialog__head h2 { font-size: 26px; margin: 0; }
.rv-dialog__foot { margin-top: 16px; }
.rv-dialog p { font-size: 13px; color: var(--muted); }
.rv-lightbox { width: min(980px, calc(100vw - 32px)); }
.rv-lightbox img { width: 100%; max-height: 72vh; object-fit: contain; margin: 0 auto 10px; border-radius: 12px; }
.rv-cookie { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 20px; background: var(--fg); color: var(--bg); font-size: 13px; box-shadow: var(--shadow); }
.rv-cookie[hidden] { display: none; }
.rv-cookie .rv-btn { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.rv-cookie .rv-btn--outline, .rv-cookie .rv-btn--ghost { background: transparent; color: var(--bg); border-color: rgba(127, 127, 127, 0.5); }
.rv-cookie .rv-btn--ghost { border-color: transparent; }
.rv-toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 13px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.rv-toast[hidden] { display: none; }
.rv-toast button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.rv-suggest { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 44; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); font-size: 13px; }
.rv-suggest[hidden] { display: none; }
.rv-suggest p { margin: 0; flex: 1 1 220px; }
.rv-tabs__list { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-tabs__tab { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: 13px var(--font-body); cursor: pointer; }
.rv-tabs__tab[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rv-tabs__panel { padding-top: 14px; }
.rv-tabs__panel[hidden] { display: none; }

/* Voet */
footer.gutter { flex-shrink: 0; }
.foot .foot__lead { margin: 40px 0 0; font-size: 24px; letter-spacing: -0.02em; }
.foot .foot__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12px; }
.foot .foot__links a, .foot .foot__links .rv-linkbtn { color: var(--muted); }
.copy .rv-footer__brand { display: inline-flex; align-items: center; gap: 8px; }
.copy .rv-footer__brand img { width: 16px; height: 16px; }

/* Breedte: op mobiel mag niets de kolom uitrekken */
img, svg, video, iframe { max-width: 100%; }
.rv-prose, .rv-section__main, .rv-card, .rv-product__info { overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .rv-split { flex-direction: row; align-items: flex-start; }
  .rv-split__main { flex: 1.5 1 0; }
  .rv-split__side { flex: 1 1 0; }
  .rv-404 .rv-section__aside { margin-top: 24px; }
}

/* Aanvullingen voor bestaande sjablonen */
.rv-block__foot{margin-top:26px;display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center}
.rv-cover-link{display:block;width:100%;text-decoration:none}
.card .shot img[src*="wijst-"]{object-position:50% 20%}
