/* ==========================================================================
   De Penningmeestergids – stylesheet
   Mobile-first. Eén lettertypefamilie (Source Sans 3) op alle pagina's.
   Kleuren afgeleid van de omslag van de gids: marineblauw, blauw en groen.
   ========================================================================== */

/* ---------- Lettertype (zelf gehost) ---------- */
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-wght.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/source-sans-3-wght-italic.woff2") format("woff2");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}

/* ---------- Ontwerptokens ---------- */
:root {
    --ink: #13294b;
    --ink-2: #1c3763;
    --blue: #1d5ea8;
    --blue-dark: #164a86;
    --blue-soft: #e8f0f9;
    --green: #3d7f22;
    --green-dark: #326b1b;
    --green-book: #6db33f;
    --green-soft: #edf5e6;
    --paper: #f6f4ee;
    --white: #fff;
    --line: #e2dfd6;
    --line-strong: #cfcabd;
    --text: #1f2a37;
    --muted: #5b6573;
    --error: #b42318;
    --error-soft: #fdecea;

    --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow: 0 1px 2px rgba(19, 41, 75, .06), 0 6px 20px rgba(19, 41, 75, .07);
    --shadow-hover: 0 2px 4px rgba(19, 41, 75, .08), 0 14px 32px rgba(19, 41, 75, .12);
    --container: 72rem;
    --gutter: clamp(1.125rem, 4vw, 2rem);
    --section: clamp(3.5rem, 8vw, 6.5rem);
    --header-h: 4.25rem;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.15; color: var(--ink); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
p, li { overflow-wrap: break-word; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }
strong { font-weight: 700; }
main { display: block; outline: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.section-ink :focus-visible, .hero :focus-visible, .page-hero :focus-visible,
.site-footer :focus-visible, .order-band :focus-visible, .aside-card-ink :focus-visible { outline-color: #fff; }

.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;
}
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 200;
    background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius);
    font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 48rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Typografie-hulpklassen ---------- */
.h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); }
.h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
.h3 { font-size: 1.35rem; }
.lead { font-size: clamp(1.125rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }
.small { font-size: .9375rem; }
.muted { color: var(--muted); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--green); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }
.eyebrow-light { color: #b9e29b; }
.label { display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.label-light { color: #b9e29b; }
.text-link {
    display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--blue);
}
.text-link::after { content: "→"; transition: transform .25s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Knoppen ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 2.875rem; padding: .7rem 1.35rem;
    font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
    border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 3.25rem; padding: .85rem 1.6rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 6px 16px rgba(29, 94, 168, .25); }
.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: var(--green-dark); color: #fff; box-shadow: 0 6px 16px rgba(61, 127, 34, .28); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn-row.center { justify-content: center; }
.link-light { color: #fff; font-weight: 600; }
.link-light:hover { color: #fff; }

/* ---------- Header en navigatie ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(19, 41, 75, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo-text { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.logo-a { color: var(--ink); }
.logo-b { color: var(--green); }

.nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    min-height: 2.75rem; padding: .5rem .85rem;
    font: inherit; font-weight: 700; color: var(--ink);
    background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 1.25rem; height: .875rem; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobiel menu: uitklappaneel onder de header */
.main-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--white);
    padding: 1rem var(--gutter) 2rem;
    overflow-y: auto; overscroll-behavior: contain;
    border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.no-js .main-nav { position: static; visibility: visible; opacity: 1; transform: none; padding: 0; border: 0; }
.no-js .nav-toggle { display: none; }
.no-js .header-inner { flex-wrap: wrap; padding-block: .75rem; }
.nav-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.nav-list a {
    display: block; padding: .9rem .25rem; font-size: 1.15rem; font-weight: 600;
    color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.nav-list a:hover { color: var(--blue); }
.nav-list a[aria-current="page"] { color: var(--blue); box-shadow: inset 4px 0 0 var(--green); padding-left: .9rem; }
.nav-cta { width: 100%; }
.nav-cta-price { font-weight: 600; opacity: .9; }

@media (min-width: 75em) {
    .nav-toggle { display: none; }
    .main-nav {
        position: static; inset: auto; visibility: visible; opacity: 1; transform: none;
        display: flex; align-items: center; gap: 1.25rem;
        padding: 0; border: 0; background: none; overflow: visible;
    }
    .nav-list { display: flex; gap: .15rem; margin: 0; }
    .nav-list a {
        position: relative; padding: .5rem .6rem; font-size: .975rem; border: 0; border-radius: var(--radius);
    }
    .nav-list a::after {
        content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .2rem; height: 2px;
        background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
    }
    .nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
    .nav-list a[aria-current="page"] { box-shadow: none; padding-left: .6rem; }
    .nav-list a { white-space: nowrap; }
    .nav-cta { width: auto; min-height: 2.6rem; padding: .55rem 1rem; font-size: .95rem; white-space: nowrap; }
}

/* ---------- Secties ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem) var(--section); }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: #dbe3ef; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p:last-child { margin-bottom: 0; }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > *, .toc-layout > *, .article-layout > *, .contact-layout > *, .author-layout > *, .hero-inner > * { min-width: 0; }
@media (min-width: 48em) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .split-wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}

.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--blue-soft); aspect-ratio: 4 / 3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media-frame:hover img { transform: scale(1.02); }

/* ---------- Hero (homepage): achtergrondfoto + donkere overlay ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--ink); color: #fff;
    min-height: min(46rem, calc(100svh - var(--header-h)));
    display: flex; align-items: center;
}
.hero-media, .page-hero-media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before, .page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(13, 29, 54, .94) 0%, rgba(13, 29, 54, .86) 45%, rgba(13, 29, 54, .62) 100%);
}
.hero-inner { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 8vw, 5.5rem); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 8.5vw, 4.25rem); overflow-wrap: break-word; font-weight: 800; letter-spacing: -.025em; margin-bottom: 1.1rem; }
.hero-lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.5; color: #e3eaf4; max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .975rem; color: #cfdaea; }
.hero-facts li { display: inline-flex; align-items: flex-start; gap: .5rem; }
.hero-facts li::before { content: ""; flex-shrink: 0; width: .5rem; height: .5rem; margin-top: .55em; border-radius: 50%; background: var(--green-book); }
.hero-book { position: relative; justify-self: center; width: min(21.5rem, 80vw); }
.hero-cover img { width: 100%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }
/* Klikbare boekomslag (naar de bestelpagina) */
.cover-link { display: block; cursor: pointer; }
.cover-link img { transition: transform .35s var(--ease); }
.cover-link:hover img { transform: translateY(-4px) scale(1.015); }
.price-tag { pointer-events: none; }
.price-tag {
    position: absolute; right: -.25rem; bottom: 12%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 5.5rem; height: 5.5rem; border-radius: 50%;
    background: var(--green); color: #fff; font-weight: 800; font-size: 1.15rem; line-height: 1.1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3); transform: rotate(-8deg); margin: 0;
}
.price-tag span { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
@media (min-width: 56em) {
    .hero-inner { grid-template-columns: 1.3fr 1fr; }
    .hero-book { width: 100%; max-width: 27.5rem; }
}

/* ---------- Paginakop subpagina's ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; }
.page-hero-inner { padding-block: clamp(2.75rem, 7vw, 5rem); max-width: var(--container); }
.page-hero h1 { color: #fff; font-size: clamp(1.85rem, 7vw, 3.4rem); overflow-wrap: break-word; font-weight: 800; letter-spacing: -.02em; max-width: 46rem; }
.page-hero-intro { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #e3eaf4; max-width: 40rem; margin: 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 0 0 1.5rem; font-size: .9rem; color: #c3d0e2; }
.breadcrumb li + li::before { content: "/"; margin-right: .25rem; opacity: .6; }
.breadcrumb a { color: #fff; }
.breadcrumb-dark ol { color: var(--muted); }
.breadcrumb-dark a { color: var(--blue); }
.simple-hero { background: var(--paper); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; border-bottom: 1px solid var(--line); }
.simple-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }

/* ---------- Lijsten en tags ---------- */
.tag-list, .chip-grid { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.tag-list li, .chip-grid li {
    padding: .4rem .85rem; border: 1px solid var(--line-strong); border-radius: 999px;
    font-size: .95rem; font-weight: 600; color: var(--ink-2); background: var(--white);
}
.chip-grid { gap: .6rem; margin-bottom: 2rem; }

/* Kasboek-stijl genummerde vragenlijst */
.ledger {
    list-style: none; counter-reset: q; padding: 0; margin: 0;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
    display: grid;
}
.ledger li {
    counter-increment: q; display: grid; grid-template-columns: 3rem 1fr; gap: .75rem; align-items: baseline;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-size: 1.075rem; color: var(--ink-2); font-weight: 500;
}
.ledger li::before { content: counter(q, decimal-leading-zero); font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.ledger li:last-child { border-bottom: 0; }
@media (min-width: 48em) {
    .ledger { grid-template-columns: 1fr 1fr; }
    .ledger li:nth-child(odd) { border-right: 1px solid var(--line); }
    .ledger li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
.ledger-foot { margin: 1.5rem 0 0; font-weight: 600; color: var(--ink); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.85rem; margin-bottom: .55rem; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%233d7f22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.numbered { padding-left: 0; list-style: none; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; padding: .55rem 0; border-bottom: 1px dashed var(--line-strong); }
.numbered li::before { content: counter(n); font-weight: 800; color: var(--blue); }
.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem; }

/* ---------- Kaarten ---------- */
.card-grid { display: grid; gap: 1.5rem; }
@media (min-width: 40em) { .card-grid-2, .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
    display: flex; flex-direction: column; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue-soft); }
.card-media-wide { aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.3rem; }
.card-body p:last-child { margin-bottom: 0; }
.card-kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: .5rem; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card-link:hover img { transform: scale(1.04); }
.card-more { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--blue); }
.card-more::after { content: " →"; }

/* ---------- T-rekening (balans) ---------- */
.t-account { margin: 0; background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.t-account-head { display: flex; justify-content: space-between; font-weight: 800; color: var(--ink); padding-bottom: .75rem; border-bottom: 3px double var(--ink); margin-bottom: .75rem; font-size: 1.05rem; }
.t-account-head span:last-child { font-weight: 600; color: var(--muted); font-size: .95rem; }
.t-account-cols { display: grid; grid-template-columns: 1fr 1fr; }
.t-account dl { margin: 0; padding: 0 .9rem; }
.t-account dl:first-child { border-right: 2px solid var(--ink); padding-left: 0; }
.t-account dl:last-child { padding-right: 0; }
.t-account dt { font-weight: 800; color: var(--green); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }
.t-account dd { display: flex; justify-content: space-between; gap: .5rem; margin: 0; padding: .3rem 0; font-size: .95rem; border-bottom: 1px dotted var(--line-strong); font-variant-numeric: tabular-nums; }
.t-account dd span:first-child { min-width: 0; overflow-wrap: anywhere; }
.t-account dd.total { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); margin-top: .35rem; color: var(--ink); }
.t-account figcaption { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
@media (max-width: 26em) { .t-account { padding: 1rem; } .t-account dl { padding: 0 .5rem; } .t-account dd { font-size: .85rem; } }

/* ---------- Auteur-teaser ---------- */
.author-teaser { max-width: 50rem; border-left: 4px solid var(--green); padding-left: clamp(1.25rem, 3vw, 2rem); }

/* ---------- Productkaart / specs ---------- */
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.product-cover { max-width: 15rem; margin: 0 auto 1.25rem; }
.spec-list { margin: 0 0 1.5rem; }
.spec-list div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-weight: 700; color: var(--muted); font-size: .95rem; }
.spec-list dd { margin: 0; }
.spec-price { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.2; }

/* ---------- Kenmerken ---------- */
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .25s, transform .25s var(--ease); }
.feature:hover { border-color: var(--green-book); transform: translateY(-2px); }
.feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius); background: var(--blue-soft); margin-bottom: 1rem; }
.feature-icon svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Inhoudsopgave ---------- */
.toc-layout { display: grid; gap: 2.5rem; }
@media (min-width: 56em) { .toc-layout { grid-template-columns: 1fr 1.6fr; align-items: start; } .toc-intro { position: sticky; top: calc(var(--header-h) + 2rem); } }
.toc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.toc-list li { border-bottom: 1px solid var(--line); }
.toc-list a, .toc-list span:not(.badge) { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; padding: .85rem 0; font-weight: 600; color: var(--ink); }
.toc-list a { text-decoration: none; }
.toc-list a:hover { color: var(--blue); }
.badge {
    display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
    letter-spacing: .04em; background: var(--green-soft); color: var(--green-dark); white-space: nowrap;
}

/* ---------- Index ---------- */
.index-search { width: 100%; max-width: 22rem; }
.index-search .label { margin-bottom: .4rem; }
.index-search p { margin: .4rem 0 0; min-height: 1.4em; }
.alpha-nav { position: sticky; top: var(--header-h); z-index: 5; background: var(--paper); padding-block: .75rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.alpha-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.alpha-nav a, .alpha-nav span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius); font-weight: 700; }
.alpha-nav a { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; transition: background-color .2s, color .2s; }
.alpha-nav a:hover { background: var(--ink); color: #fff; }
.alpha-nav span { color: #a4a9b1; }
.index-grid { columns: 1; column-gap: 3rem; }
@media (min-width: 40em) { .index-grid { columns: 2; } }
@media (min-width: 64em) { .index-grid { columns: 3; } }
.index-group { break-inside: avoid; margin-bottom: 1.75rem; }
.index-letter { font-size: 1.6rem; color: var(--green); border-bottom: 2px solid var(--ink); padding-bottom: .2rem; margin-bottom: .4rem; }
.index-group ul { list-style: none; padding: 0; margin: 0; }
.index-group li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4rem; padding: .3rem 0; }
.index-term { font-weight: 600; color: var(--ink); min-width: 0; }
.index-dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--line-strong); transform: translateY(-.25em); }
.index-pages { font-variant-numeric: tabular-nums; color: var(--blue); font-weight: 700; white-space: nowrap; }
.index-see { font-style: italic; color: var(--muted); margin-left: auto; }
.index-empty { padding: 1.5rem; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
mark { background: #fff2a8; color: inherit; padding: 0 .05em; border-radius: 2px; }

/* ---------- Artikel (onderwerppagina's) ---------- */
.article-layout { display: grid; gap: 3rem; }
@media (min-width: 60em) { .article-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .article-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 2.25rem; }
.prose > h2:first-child { margin-top: 0; }
.callout { margin: 2rem 0; padding: 1.5rem; background: var(--blue-soft); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.callout h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.test-question { margin: 2rem 0; padding: 1.75rem; background: var(--ink); color: #fff; border-radius: var(--radius-lg); position: relative; }
.test-question p { font-size: clamp(1.2rem, 2.4vw, 1.45rem); font-weight: 700; line-height: 1.4; margin-bottom: .75rem; }
.test-question footer { color: #b9e29b; font-weight: 600; }
.article-aside { display: grid; gap: 1.25rem; }
.aside-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.aside-card > :last-child { margin-bottom: 0; }
.aside-card-ink { background: var(--ink); border-color: var(--ink); color: #dbe3ef; }
.aside-card-ink strong { color: #fff; }
.aside-cover { max-width: 9rem; margin: 0 auto 1rem; }
.mini-index { list-style: none; padding: 0; margin: 0 0 1rem; }
.mini-index li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dotted var(--line-strong); font-size: .975rem; }
.mini-index li span:last-child { color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-card { background: var(--green-soft); border-color: transparent; }
.stat-number { font-size: 3.25rem; font-weight: 800; line-height: 1; color: var(--green); margin-bottom: .5rem; font-variant-numeric: tabular-nums; }

/* ---------- Workshops ---------- */
.workshop-grid { display: grid; gap: 1.5rem; }
@media (min-width: 56em) { .workshop-grid { grid-template-columns: 1fr 1fr; } }
.workshop { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 4px solid var(--blue); }
.workshop:nth-child(2) { border-top-color: var(--green); }
.workshop-head h3 { font-size: 1.5rem; }
.workshop-duration { display: inline-block; font-weight: 700; font-size: .875rem; padding: .2rem .7rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); margin-bottom: .75rem; }
.workshop:nth-child(2) .workshop-duration { background: var(--green-soft); color: var(--green-dark); }
.rating { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0 0; padding: 1rem; background: var(--paper); border-radius: var(--radius); }
.rating-score { flex-shrink: 0; font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1; }
.contact-card { padding: 2rem; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.contact-line { margin: 1.25rem 0; }
.contact-line .footer-label { color: var(--muted); }
.email-strong { font-weight: 700; }

/* ---------- Auteur ---------- */
.author-layout { display: grid; gap: 2.5rem; }
@media (min-width: 48em) { .author-layout { grid-template-columns: 18rem 1fr; align-items: start; } }
.author-portrait { margin: 0; max-width: 20rem; }
.portrait-frame { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.author-portrait figcaption { margin-top: .75rem; font-size: .95rem; color: var(--muted); font-weight: 600; }
.fact-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }
.fact-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.fact-grid h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.fact-grid p:last-child { margin: 0; color: var(--muted); }
.fact-marker { font-weight: 800; color: var(--green); font-size: .95rem; letter-spacing: .04em; margin-bottom: .5rem; }

/* ---------- Andere gidsen ---------- */
.guide-grid { display: grid; gap: 1.5rem; }
@media (min-width: 44em) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.guide { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.guide:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.guide-cover { aspect-ratio: 1; display: grid; place-items: center; padding: 1.75rem; background: var(--paper); }
.guide-cover img { max-height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(19, 41, 75, .2)); }
.guide-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.guide-body h3 { font-size: 1.25rem; }
.guide-body .btn { margin-top: auto; }
.guide-price { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: .25rem; line-height: 1.3; }
.guide-price span { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); }
.feature-pair { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; align-items: center; background: #fff; padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.feature-pair p { margin-bottom: .5rem; }
.feature-pair .btn { margin-top: .5rem; }
@media (max-width: 26em) { .feature-pair { grid-template-columns: 1fr; text-align: center; } .pair-cover { max-width: 9rem; margin: 0 auto; } }

/* ---------- Bestellen ---------- */
.order-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.order-hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.order-hero h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 800; }
@media (min-width: 52em) { .order-hero-inner { grid-template-columns: 1.4fr 1fr; } }
.order-summary { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 1.75rem; box-shadow: var(--shadow); }
.summary-cover { max-width: 14rem; margin: 0 auto 1rem; }
.order-summary dl { margin: 0; }
.order-summary dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.order-summary dt { color: var(--muted); font-weight: 600; }
.order-summary dd { margin: 0; text-align: right; font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; gap: 1.25rem; counter-reset: none; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); }
.step-no { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.order-extra { margin-top: 1rem; }
.order-total { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 0; line-height: 2.9rem; font-variant-numeric: tabular-nums; }

/* Bestelformulier in de kop: e-mailadres + betaalknop */
.order-form { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.order-form .alert { margin-bottom: 1rem; }
.order-form-label { display: block; font-weight: 700; color: var(--ink); font-size: 1.0625rem; margin-bottom: .2rem; }
.field-hint { margin: 0 0 .6rem; color: var(--muted); font-size: .9375rem; }
.order-form-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.order-form-row .input { flex: 1 1 15rem; min-width: 0; min-height: 3.25rem; }
.order-form-row .btn { flex: 0 0 auto; }
@media (max-width: 30em) { .order-form-row .btn { flex: 1 1 100%; } }
.order-privacy { margin: .9rem 0 0; font-size: .9375rem; color: var(--muted); max-width: 36rem; }
.demo-note { margin: 1rem 0 0; padding: .7rem .9rem; font-size: .9375rem; background: #fff8e1; border-left: 3px solid #e0a800; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); }

/* Bestelproces: compact, onder het formulier */
.order-steps-section { padding-block: clamp(2rem, 5vw, 3rem); }
.steps-title { margin-bottom: 1rem; }
.steps-compact { margin-bottom: 1.5rem; gap: .75rem; }
.steps-compact .step { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--paper); border-color: transparent; }
.steps-compact .step-no { width: 2rem; height: 2rem; margin: 0; flex-shrink: 0; font-size: .95rem; }
.steps-compact .step h3 { font-size: 1.05rem; margin-bottom: .15rem; }
.steps-compact .step p { font-size: .95rem; }
.order-questions { margin: 0; color: var(--muted); }

/* Na de betaling */
.result-card { display: grid; gap: 1.5rem; align-items: center; padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 2rem; }
.result-card .lead { margin-top: 0; }
.result-card p:last-child { margin-bottom: 0; }
.result-cover { max-width: 9rem; margin: 0 auto; }
@media (min-width: 40em) { .result-card { grid-template-columns: 9rem 1fr; } }
.alert-info { background: var(--blue-soft); border-color: var(--blue); }
.demo-summary { max-width: 30rem; margin-top: 1.5rem; }
.demo-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* ---------- Formulieren ---------- */
.form-grid { display: grid; gap: 1.25rem; margin-bottom: 1rem; }
@media (min-width: 40em) { .form-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font-weight: 700; color: var(--ink); margin-bottom: .4rem; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.req { color: var(--error); }
.optional { font-weight: 400; color: var(--muted); }
.input {
    width: 100%; min-height: 3rem; padding: .7rem .9rem;
    font: inherit; font-size: 1.0625rem; color: var(--text);
    background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
}
.input:hover { border-color: #a9a395; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 94, 168, .2); }
.input[aria-invalid="true"] { border-color: var(--error); background: #fffafa; }
.input-short { max-width: 8rem; }
textarea.input { resize: vertical; min-height: 7rem; }
select.input {
    appearance: none; padding-right: 2.5rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2313294b' stroke-width='2'/%3E%3C/svg%3E") right .8rem center / 1rem no-repeat;
}
.check { display: flex; gap: .75rem; align-items: flex-start; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; flex-shrink: 0; accent-color: var(--blue); }
.check label { font-weight: 400; color: var(--text); }
.field-error { color: var(--error); font-size: .9375rem; font-weight: 600; margin: .4rem 0 0; }
.field-error::before { content: "! "; font-weight: 800; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1.25rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; border-left: 4px solid; outline: none; }
.alert h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.alert p { margin: 0; }
.alert-success { background: var(--green-soft); border-color: var(--green); }
.alert-success h3 { color: var(--green-dark); }
.alert-error { background: var(--error-soft); border-color: var(--error); }
.alert-error h3 { color: var(--error); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 56em) { .contact-layout { grid-template-columns: 20rem 1fr; align-items: start; } }
.contact-aside { display: grid; gap: 1rem; }
.contact-cover .contact-cover-img { display: block; max-width: 20rem; margin-inline: auto; }
.contact-cover picture, .contact-cover img { display: block; width: 100%; height: auto; }
@media (max-width: 47.99em) { .contact-cover .contact-cover-img { max-width: 15rem; } }
.contact-aside .aside-card p { margin-bottom: .25rem; }
.contact-aside .aside-card-ink p { margin-bottom: 1rem; }

/* ---------- 404 ---------- */
.notfound .h1 { max-width: 30rem; }

/* ---------- Bestelband (onderaan elke pagina) ---------- */
.order-band { background: var(--ink); color: #dbe3ef; padding-block: clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; }
.order-band::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 18rem; height: 18rem; border-radius: 50%; border: 40px solid rgba(109, 179, 63, .1); pointer-events: none; }
.order-band-inner { display: grid; gap: 1.5rem; align-items: center; position: relative; z-index: 1; }
.order-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.order-band p:last-child { margin: 0; }
.order-band-cover { width: 8rem; }
.order-band-cover img { filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .4)); }
.order-band-action { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
@media (min-width: 56em) { .order-band-inner { grid-template-columns: 9rem 1fr auto; gap: 2.5rem; } .order-band-cover { width: 100%; } .order-band-action { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: #0d1d36; color: #b8c4d6; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .975rem; }
.site-footer a { color: #e3eaf4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 40em) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-logo { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: .75rem; }
.footer-logo .logo-b { color: var(--green-book); }
.footer-brand p:last-child { max-width: 22rem; }
.footer-title { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-label { display: block; font-size: .8125rem; color: #8f9db2; }
.site-footer .js-email a { color: #e3eaf4; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Afbeeldingsfallback ---------- */
img.img-failed { object-fit: contain !important; background: var(--blue-soft); }
/* In heroes is de donkere achtergrond zelf de fallback */
.hero-media img.img-failed, .page-hero-media img.img-failed { opacity: 0; }

/* ---------- Zeer smalle schermen (≤ 360px) ---------- */
@media (max-width: 30em) {
    .hero h1, .page-hero h1 { hyphens: auto; }
}
@media (max-width: 22.5em) {
    .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .logo-text { font-size: 1.15rem; }
}

/* ---------- Animaties (subtiel) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero-text > *, .js .page-hero-inner > * { animation: rise .8s var(--ease) both; }
.js .hero-text > *:nth-child(2), .js .page-hero-inner > *:nth-child(2) { animation-delay: .06s; }
.js .hero-text > *:nth-child(3), .js .page-hero-inner > *:nth-child(3) { animation-delay: .12s; }
.js .hero-text > *:nth-child(4), .js .page-hero-inner > *:nth-child(4) { animation-delay: .18s; }
.js .hero-text > *:nth-child(5) { animation-delay: .24s; }
.js .hero-book { animation: rise 1s var(--ease) .2s both; }
.js .hero-media img, .js .page-hero-media img { animation: settle 1.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .hero-media, .page-hero-media { transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .order-band, .site-footer, .alpha-nav, .index-search { display: none; }
    .hero, .page-hero { background: none; color: #000; }
    .hero::before, .page-hero::before, .hero-media, .page-hero-media { display: none; }
    .page-hero h1, .hero h1 { color: #000; }
}
