/* Drie kolommen in de handleiding (menu · artikel · op deze pagina); startpagina is één kolom met productkaarten */
:root {
  --bg: #f6f8f9;
  --surface: #ffffff;
  --sunken: #eef2f4;
  --line: #dde4e8;
  --fg: #17232b;
  --muted: #5b6b75;
  --accent: #1d6b86;
  --accent-soft: #e2f0f5;
  --warn: #9a5b00;
  --warn-soft: #fdf3e2;
  --ok: #2f7a4a;
  --ok-soft: #e6f4ea;
  --danger: #b4372f;
  --shadow: 0 1px 2px rgba(20, 35, 45, .06), 0 8px 24px -12px rgba(20, 35, 45, .18);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --header-h: 60px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1619; --surface: #151f24; --sunken: #1b272d; --line: #26343b;
  --fg: #e4ecef; --muted: #93a4ad; --accent: #6cc3e0; --accent-soft: #16323c;
  --warn: #f0b45a; --warn-soft: #2e2414; --ok: #7fd09a; --ok-soft: #15291d; --danger: #f08a80;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 15.5px; line-height: 1.65; }
a { color: var(--accent); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
svg { width: 1em; height: 1em; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h); display: flex; align-items: center; gap: 14px;
  padding-inline: 20px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-size: 16px; }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 2px; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 8px; height: 36px; width: 40px; color: var(--fg); cursor: pointer; display: grid; place-items: center; font-size: 17px; flex: none; }
.menu-btn { display: none; }

.switcher { position: relative; }
.switcher-btn {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.switcher-btn svg { color: var(--muted); }
.prod-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--prod); }
.switcher-menu {
  position: absolute; top: calc(100% + 6px); left: 0; width: 280px; padding: 6px; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.switcher-menu a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: var(--fg); text-decoration: none; }
.switcher-menu a:hover, .switcher-menu a.actief { background: var(--sunken); }
.switcher-menu b { display: block; font-size: 14px; }
.switcher-menu small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.prod-tile { width: 32px; height: 32px; border-radius: 8px; flex: none; overflow: hidden; display: block; }
.prod-tile img { width: 100%; height: 100%; display: block; }
.prod-tile.groot { width: 48px; height: 48px; border-radius: 12px; }

.search { margin-left: auto; position: relative; width: min(320px, 40vw); }
.search > svg { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: var(--muted); }
.search input {
  width: 100%; height: 36px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); padding: 0 12px 0 34px; font: inherit; font-size: 14px;
}
.zoek-resultaten {
  position: absolute; top: calc(100% + 6px); right: 0; width: min(420px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 30;
}
.zoek-resultaten a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--fg); text-decoration: none; }
.zoek-resultaten a:hover, .zoek-resultaten a.focus { background: var(--sunken); }
.zoek-resultaten small { display: block; color: var(--muted); font-size: 12.5px; }
.zoek-resultaten a.concept b { color: var(--muted); font-weight: 500; }
.zoek-resultaten .geen { padding: 10px; color: var(--muted); font-size: 14px; }

/* Startpagina */
.start { max-width: 1120px; margin: 0 auto; padding: 64px 20px 80px; }
.hero { max-width: 640px; margin-bottom: 40px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.product-card:hover { border-color: color-mix(in srgb, var(--prod) 55%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card-link { position: absolute; inset: 0; border-radius: 14px; z-index: 1; }
.product-card .populair a { position: relative; z-index: 2; }
.product-head { display: flex; align-items: center; gap: 14px; }
.product-head h2 { font-family: var(--font-display); font-size: 24px; margin: 0; line-height: 1.1; }
.voluit { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.product-omschrijving { margin: 0; }
.product-voor { margin: 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.populair { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.populair li::before { content: "→ "; color: var(--muted); }
.product-voet { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.voortgang { color: var(--muted); font-variant-numeric: tabular-nums; }
.open { font-weight: 600; color: var(--prod); display: inline-flex; align-items: center; gap: 4px; }
:root[data-theme="dark"] .open { color: color-mix(in srgb, var(--prod) 40%, #fff); }
.uitleg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.uitleg h3 { margin: 0 0 4px; font-size: 15.5px; }
.uitleg p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Layout handleiding */
.shell { display: grid; grid-template-columns: 270px minmax(0, 1fr) 220px; max-width: 1360px; margin: 0 auto; }
.weergave-product .shell { grid-template-columns: 270px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h));
  overflow-y: auto; padding: 24px 12px 40px 20px; border-right: 1px solid var(--line);
}
.nav-home { display: block; padding: 5px 10px; margin-bottom: 14px; border-radius: 6px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav-group { margin-bottom: 22px; }
.nav-group h4 { margin: 0 0 6px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-link { display: block; padding: 5px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; font-size: 14.5px; }
.nav-link:hover, .nav-home:hover { background: var(--sunken); }
.nav-link.active, .nav-home.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-link.concept, .sectie-kaart a.concept { color: var(--muted); opacity: .7; }
.nav-link.verborgen { display: none; }

.content { padding: 40px 56px 80px; min-width: 0; }
.article { max-width: 760px; }
.weergave-product .article { max-width: 980px; }
.toc { position: sticky; top: var(--header-h); align-self: start; padding: 40px 20px 0 8px; font-size: 13.5px; }
.toc h5 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--fg); }
.toc a.current { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }

/* Typografie artikel */
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span:not(:last-child)::after { content: "›"; margin-left: 6px; }
h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 40px); line-height: 1.15; font-weight: 700; margin: 0 0 12px; text-wrap: balance; letter-spacing: -.01em; }
.h1-sub { display: block; font-family: var(--font-body); font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 20px; max-width: 65ch; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 99px; background: var(--sunken); color: var(--muted); border: 1px solid var(--line); }
.article h2 { font-family: var(--font-display); font-size: 25px; font-weight: 700; margin: 52px 0 12px; scroll-margin-top: calc(var(--header-h) + 20px); text-wrap: balance; }
.article h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; scroll-margin-top: calc(var(--header-h) + 20px); }
.article p { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 14px; }
.article li { margin-bottom: 6px; }
.article code { font-family: var(--font-mono); font-size: .86em; padding: 1px 5px; border-radius: 4px; background: var(--sunken); }
.bijgewerkt { font-size: 13px; color: var(--muted); margin-top: 16px; }

.ui { font-weight: 600; font-size: .93em; white-space: nowrap; padding: 1px 7px; border-radius: 5px; background: var(--sunken); border: 1px solid var(--line); }

/* Callouts */
.callout { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 10px; margin: 20px 0; border: 1px solid; }
.callout > svg { width: 20px; height: 20px; margin-top: 2px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout strong.t { display: block; margin-bottom: 2px; }
.callout.info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.callout.info > svg { color: var(--accent); }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.callout.warn > svg { color: var(--warn); }
.callout.tip { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.callout.tip > svg { color: var(--ok); }

/* Screenshots */
.shot { margin: 18px 0 22px; }
.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Stappen */
.steps { list-style: none; padding: 0 !important; margin: 24px 0; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 26px 52px; counter-increment: step; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent);
  font-family: var(--font-mono); font-size: 14px; display: grid; place-items: center;
}
.steps > li::after { content: ""; position: absolute; left: 15.5px; top: 38px; bottom: 6px; width: 1px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li > h3 { margin: 4px 0 6px; }

/* Tabs */
.tabs { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 20px 0; overflow: hidden; }
.tab-list { display: flex; border-bottom: 1px solid var(--line); background: var(--sunken); overflow-x: auto; }
.tab-btn { border: 0; background: none; padding: 11px 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab-btn[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); background: var(--surface); }
.tab-panel { padding: 18px 20px 6px; }

/* Tabellen */
.table-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 14px; background: var(--sunken); border-bottom: 1px solid var(--line); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
.req { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; white-space: nowrap; }
.req.yes { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.req.no { background: var(--sunken); color: var(--muted); }

/* Vragen */
details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 10px; }
summary { cursor: pointer; padding: 13px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 16px 6px; }

/* Productoverzicht */
.sectie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.sectie-kaart { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.sectie-kaart h2 { font-family: var(--font-display); font-size: 17px; margin: 0 0 8px; }
.sectie-kaart ul { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.sectie-kaart li { margin: 0; padding: 3px 0; }
.sectie-kaart a { text-decoration: none; }
.sectie-kaart a:hover { text-decoration: underline; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.pager a { text-decoration: none; }
.pager a.rechts { text-align: right; margin-left: auto; }
.pager small { display: block; color: var(--muted); font-size: 12px; }

.leeg-staat { max-width: 560px; margin: 0 auto; padding: 96px 20px; text-align: center; }
.knop { display: inline-block; padding: 9px 16px; border-radius: 8px; background: var(--fg); color: var(--bg); text-decoration: none; font-weight: 600; }

@media (max-width: 1180px) {
  .shell { grid-template-columns: 250px minmax(0, 1fr); }
  .toc { display: none; }
  .content { padding: 36px 40px 80px; }
}
@media (max-width: 900px) {
  .product-grid, .uitleg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .shell, .weergave-product .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: grid; }
  .sidebar {
    position: fixed; top: var(--header-h); left: 0; bottom: 0; width: min(300px, 85vw); height: auto; z-index: 15;
    background: var(--bg); transform: translateX(-100%); transition: transform .2s ease;
  }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.25); }
  .content { padding: 28px 16px 64px; }
  .start { padding-top: 40px; }
  .brand small { display: none; }
  .topbar { gap: 8px; padding-inline: 12px; }
}
@media (max-width: 560px) {
  .brand > span:last-child { display: none; }
  .search { width: auto; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
