/* ==========================================================================
   allesoverbe.com - hoofdstylesheet
   Geen framework: alleen wat de site echt gebruikt.
   ========================================================================== */

/* --- Design tokens -------------------------------------------------------- */
:root {
    --c-bg:          #ffffff;
    --c-bg-soft:     #f7f7f9;
    --c-bg-elevated: #ffffff;
    --c-border:      #e5e5ea;
    --c-text:        #1c1b1f;
    --c-text-soft:   #64626c;
    --c-brand:       #8a1538;   /* diep bordeaux — Belgisch zonder vlagcliché */
    --c-brand-dark:  #650f29;
    --c-brand-soft:  #f9ecf0;
    --c-accent:      #c8a415;   /* goud-oker accent, spaarzaam gebruikt */
    --c-focus:       #1a73e8;

    --radius:    12px;
    --radius-sm: 8px;
    --shadow:    0 1px 2px rgba(28, 27, 31, .06), 0 4px 12px rgba(28, 27, 31, .05);
    --shadow-lg: 0 4px 8px rgba(28, 27, 31, .06), 0 16px 32px rgba(28, 27, 31, .09);

    --wrap: 1180px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --c-bg:          #14181d;
        --c-bg-soft:     #1a1f25;
        --c-bg-elevated: #1f242b;
        --c-border:      #313842;
        --c-text:        #eceaf0;
        --c-text-soft:   #a8a5b2;
        --c-brand:       #e6809c;
        --c-brand-dark:  #f2a8bd;
        --c-brand-soft:  #3a1524;
        --shadow:    0 1px 2px rgba(0, 0, 0, .4);
        --shadow-lg: 0 16px 32px rgba(0, 0, 0, .45);
    }
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

/* Vangnet tegen horizontaal schuiven. Op <html> in plaats van <body>, want
   overflow op <body> breekt `position: sticky` van de inhoudsopgave. */
html { overflow-x: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--c-brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-brand); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1rem; }

:focus-visible {
    outline: 3px solid var(--c-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

.skiplink {
    position: absolute; left: -9999px;
    background: var(--c-brand-dark); color: #fff;
    padding: .7rem 1.2rem; z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skiplink:focus { left: 0; top: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- Header --------------------------------------------------------------- */
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--c-bg) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(10px);
    border-bottom: 1px solid var(--c-border);
}
.topbar__inner {
    display: flex; align-items: center; gap: 1.5rem;
    min-height: 74px;
}

.wordmark {
    display: inline-flex; align-items: center; gap: .6rem;
    text-decoration: none; color: var(--c-text); flex-shrink: 0;
}

/* Beeldmerk: schildvorm in een afgerond vierkant — verwijst naar het Belgische
   wapenschild zonder de vlag na te bootsen, en geeft het tekstlogo een anker. */
.wordmark__badge {
    display: grid; place-items: center; flex-shrink: 0;
    width: 2.35rem; height: 2.35rem;
    background: var(--c-brand); border-radius: 10px;
    color: #fff;
    transition: transform .18s ease, background .18s;
}
.wordmark:hover .wordmark__badge { background: var(--c-brand-dark); transform: rotate(-4deg); }
.wordmark__badge svg { width: 1.3rem; height: 1.3rem; }

.wordmark__body {
    display: flex; flex-direction: column;
    line-height: 1.12;
}
.wordmark__name {
    font-weight: 800; font-size: 1.16rem; letter-spacing: -.025em;
    display: flex; align-items: baseline; gap: .3rem;
}
.wordmark__accent { color: var(--c-brand); }
.wordmark__tld  { color: var(--c-text-soft); font-weight: 600; font-size: .74em; }
.wordmark__sub {
    font-size: .68rem; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--c-text-soft);
}

/* In de footer mag het merk iets ruimer staan. */
.sitefoot .wordmark__badge { width: 2.6rem; height: 2.6rem; }
.sitefoot .wordmark__badge svg { width: 1.45rem; height: 1.45rem; }

@media (max-width: 420px) {
    .wordmark__sub { display: none; }
    .wordmark__badge { width: 2.1rem; height: 2.1rem; }
    .wordmark__name { font-size: 1.05rem; }
}

.menu { margin-left: auto; }
.menu__list {
    display: flex; align-items: center; gap: .2rem;
    list-style: none; margin: 0; padding: 0;
}
.menu__link {
    display: block; padding: .5rem .8rem;
    border-radius: var(--radius-sm);
    color: var(--c-text-soft); text-decoration: none;
    font-size: .94rem; font-weight: 550; white-space: nowrap;
    transition: background .15s, color .15s;
}
.menu__link:hover { background: var(--c-bg-soft); color: var(--c-text); }
.menu__link[aria-current="page"] { color: var(--c-brand-dark); background: var(--c-brand-soft); }

.topbar__burger {
    display: none; margin-left: auto;
    background: none; border: 1px solid var(--c-border);
    border-radius: var(--radius-sm); padding: .45rem .6rem;
    cursor: pointer; color: var(--c-text);
}

@media (max-width: 900px) {
    .topbar__burger { display: block; }
    .menu {
        display: none; position: absolute; inset-inline: 0; top: 100%;
        background: var(--c-bg); border-bottom: 1px solid var(--c-border);
        box-shadow: var(--shadow-lg); padding: .5rem 20px 1rem;
    }
    .menu.is-open { display: block; }
    .menu__list { flex-direction: column; align-items: stretch; gap: 0; }
    .menu__link { padding: .8rem .6rem; border-radius: 0; }
}

/* --- Homepage: opening ----------------------------------------------------
   Bewust asymmetrisch en links uitgelijnd, niet gecentreerd. De homepage van
   deze site moet er anders uitzien dan die van de andere domeinen die ik
   beheer: een gedeelde template-vingerafdruk tussen domeinen van dezelfde
   eigenaar is voor zoekmachines een sterker signaal van een sitenetwerk dan
   de tekst zelf. */
.opening {
    padding: clamp(2.25rem, 1rem + 4vw, 4rem) 0 clamp(2rem, 1rem + 3vw, 3.25rem);
    border-bottom: 1px solid var(--c-border);
}
.opening__grid {
    display: grid; gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
    grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 900px) {
    .opening__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}
.opening__grid > * { min-width: 0; }

/* Tekstkolom van de opening. Krijgt expliciet min-width:0 omdat een grid-item
   anders weigert te krimpen onder zijn langste woord. */
.opening__intro { min-width: 0; }

.opening__kicker {
    display: inline-block; margin: 0 0 1rem;
    padding-left: .85rem; position: relative;
    font-size: .8rem; font-weight: 650; letter-spacing: .05em;
    text-transform: uppercase; color: var(--c-text-soft);
}
/* Verticaal streepje in plaats van een pill-badge: rustiger en visueel
   onderscheidend van de eyebrow-stijl op de andere sites. */
.opening__kicker::before {
    content: ""; position: absolute; left: 0; top: .15em; bottom: .15em;
    width: 3px; border-radius: 2px; background: var(--c-brand);
}
.opening h1 { margin-bottom: .75rem; max-width: 20em; }
.opening h1 em {
    font-style: normal; color: var(--c-brand);
    /* Subtiele onderstreping die de klemtoon legt zonder een link te lijken. */
    box-shadow: inset 0 -.28em 0 var(--c-brand-soft);
}
.opening__lead {
    max-width: 34em;
    font-size: clamp(1rem, .95rem + .35vw, 1.11rem); color: var(--c-text-soft);
}
.opening__actions {
    display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem;
}

/* Feitenkaart: verifieerbare eigenschappen van de site, als definitielijst. */
.factcard {
    background: var(--c-bg-soft); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 1.4rem;
}
.factcard__title {
    font-size: .8rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--c-text-soft);
    margin: 0 0 1rem; padding-bottom: .8rem;
    border-bottom: 1px solid var(--c-border);
}
.factcard__list { margin: 0; }
.factcard__list > div {
    display: flex; flex-wrap: wrap; gap: .5rem 1rem;
    justify-content: space-between; align-items: baseline;
    padding: .5rem 0; border-bottom: 1px dashed var(--c-border);
}
.factcard__list > div:last-child { border-bottom: 0; }
.factcard__list dt {
    font-size: .84rem; color: var(--c-text-soft); flex-shrink: 0;
}
.factcard__list dd {
    margin: 0; font-size: .88rem; font-weight: 600;
    text-align: right; min-width: 0;
}
.factcard__foot {
    margin: 1rem 0 0; padding-top: .9rem;
    border-top: 1px solid var(--c-border);
    font-size: .82rem; color: var(--c-text-soft);
}

/* --- Homepage: gewesten --------------------------------------------------
   Dit blok staat hoog op de pagina omdat het de werkelijke identiteit van
   deze site is: het onderscheid tussen de drie gewesten bestaat op geen van
   de andere domeinen. */
.regions {
    padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0;
    background: var(--c-bg-soft);
    border-bottom: 1px solid var(--c-border);
}
.regions__head { max-width: 44rem; margin-bottom: 1.75rem; }
.regions__head p { color: var(--c-text-soft); margin: 0; }

.regions__grid {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.region {
    display: flex; flex-direction: column;
    background: var(--c-bg-elevated); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 1.25rem;
}
/* Genummerde/gekleurde bovenrand vervangen door een subtiel label-streepje
   naast de naam — anders dan de border-top van de gewestblokken in de tekst. */
.region__name {
    display: flex; align-items: center; gap: .55rem;
    font-size: 1.02rem; margin: 0 0 .6rem;
}
.region__name::before {
    content: ""; flex-shrink: 0;
    width: .55rem; height: .55rem; border-radius: 2px;
    background: var(--c-brand);
}
.region__body {
    margin: 0 0 1rem; font-size: .89rem; color: var(--c-text-soft);
}
.region__org {
    margin: auto 0 0; padding-top: .8rem;
    border-top: 1px solid var(--c-border);
    font-size: .84rem; font-weight: 600;
}
.region__org span {
    display: block; font-weight: 500; font-size: .76rem;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--c-text-soft); margin-bottom: .15rem;
}
.regions__foot {
    margin: 1.5rem 0 0; font-size: .9rem; color: var(--c-text-soft);
}

/* --- Homepage: onderwerpen als genummerde rijen --------------------------
   Gestapelde rijen in plaats van een kaartgrid: dat is het duidelijkste
   verschil met de kaartenrasters op de andere sites, en het leest op mobiel
   beter omdat elk onderwerp de volle breedte krijgt. */
.topics { padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0; }
.topics__head { max-width: 44rem; margin-bottom: 2rem; }
.topics__head p { color: var(--c-text-soft); margin: 0; }

.topics__list { list-style: none; margin: 0; padding: 0; }

.topic {
    display: grid; gap: .85rem 1.75rem;
    grid-template-columns: auto 1fr;
    padding: 1.6rem 0;
    border-top: 1px solid var(--c-border);
}
.topic:last-child { border-bottom: 1px solid var(--c-border); }

@media (min-width: 820px) {
    .topic {
        grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 15rem);
        align-items: start; gap: 1.75rem;
    }
}
.topic > * { min-width: 0; }

.topic__index {
    font-size: 1.15rem; font-weight: 700;
    color: var(--c-brand); font-variant-numeric: tabular-nums;
    letter-spacing: -.02em; padding-top: .1rem;
}
.topic__main { min-width: 0; }
.topic__title { margin: 0 0 .4rem; font-size: 1.2rem; }
.topic__title a { color: inherit; text-decoration: none; }
.topic__title a:hover { color: var(--c-brand); text-decoration: underline; }
.topic__lead { margin: 0; color: var(--c-text-soft); font-size: .95rem; max-width: 40em; }

.topic__stat {
    display: flex; align-items: baseline; gap: .5rem;
    margin: .9rem 0 0;
}
.topic__stat b {
    font-size: 1.25rem; color: var(--c-brand); letter-spacing: -.02em;
}
.topic__stat span { font-size: .83rem; color: var(--c-text-soft); }

.topic__jump { grid-column: 1 / -1; }
@media (min-width: 820px) {
    .topic__jump { grid-column: auto; }
}
.topic__jump-label {
    display: block; margin-bottom: .35rem;
    font-size: .74rem; font-weight: 650; letter-spacing: .06em;
    text-transform: uppercase; color: var(--c-text-soft);
}
.linklist--compact { margin: 0; }
.linklist--compact a { font-size: .88rem; padding: .3rem .6rem; }

/* --- Homepage: uitgelichte vraag ------------------------------------------
   Vraag links, antwoord rechts. Bewust géén accordeon: dit is één vraag die
   meteen leesbaar moet zijn, niet een lijst om door te klikken. */
.primer {
    padding: clamp(2.25rem, 1.5rem + 2vw, 3.25rem) 0;
    border-top: 1px solid var(--c-border);
}
.primer__grid {
    display: grid; gap: clamp(1.25rem, 1rem + 2vw, 3rem);
    grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 860px) {
    .primer__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
.primer__grid > * { min-width: 0; }

.primer__label {
    margin: 0 0 .5rem;
    font-size: .78rem; font-weight: 650; letter-spacing: .06em;
    text-transform: uppercase; color: var(--c-text-soft);
}
.primer__q h2 {
    margin: 0; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
    color: var(--c-brand);
}
.primer__a p { color: var(--c-text-soft); }
.primer__a p:last-of-type { margin-bottom: 0; }
.primer__more { margin-top: 1.1rem; font-weight: 600; }
.primer__more a { color: var(--c-brand-dark); }

/* --- Homepage: verantwoording -------------------------------------------- */
.account {
    padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0;
    background: var(--c-bg-soft); border-top: 1px solid var(--c-border);
}
.account__grid {
    display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 860px) {
    .account__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}
.account__grid > * { min-width: 0; }
.account__intro h2 { margin-bottom: .6rem; }
.account__intro p { color: var(--c-text-soft); }

.account__list { list-style: none; margin: 0; padding: 0; }
.account__list li {
    padding: .9rem 0 .9rem 1.6rem; position: relative;
    border-bottom: 1px solid var(--c-border);
    font-size: .92rem; color: var(--c-text-soft);
}
.account__list li:last-child { border-bottom: 0; }
.account__list li::before {
    content: ""; position: absolute; left: 0; top: 1.35em;
    width: .55rem; height: .3rem;
    border-left: 2px solid var(--c-brand); border-bottom: 2px solid var(--c-brand);
    transform: rotate(-45deg);
}
.account__list strong { display: block; color: var(--c-text); font-weight: 650; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    border: 1px solid transparent; border-radius: 999px;
    padding: .6rem 1.3rem; font: inherit; font-weight: 600; font-size: .95rem;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .15s, transform .1s;
}
.btn--primary { background: var(--c-brand); color: #fff; }
.btn--primary:hover { background: var(--c-brand-dark); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost {
    background: transparent; color: var(--c-text);
    border-color: var(--c-border);
}
.btn--ghost:hover { background: var(--c-bg-soft); color: var(--c-text); }

/* --- Secties -------------------------------------------------------------- */
.section { padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0; }

/* --- Linklijsten ----------------------------------------------------------- */
.linklist { list-style: none; margin: .4rem 0 1.4rem; padding: 0; }
.linklist li + li { margin-top: .1rem; }
.linklist a {
    display: block; padding: .42rem .6rem; margin-inline: -.6rem;
    border-radius: var(--radius-sm);
    text-decoration: none; color: var(--c-text); font-size: .94rem;
}
.linklist a::before { content: "→"; color: var(--c-brand); margin-right: .55rem; }
.linklist a:hover { background: var(--c-brand-soft); color: var(--c-brand-dark); }

/* --- Roadmap ("waar ik aan werk") ----------------------------------------
   Vervangt de oude "Binnenkort"-linklijsten. Die lazen als een menu waarin de
   helft niet werkte — voor een bezoeker frustrerend en voor een zoekmachine
   een signaal dat de site nog niet af is. Plannen horen als tekst, niet als
   link. */
.roadmap {
    background: var(--c-bg-soft); border: 1px dashed var(--c-border);
    border-radius: var(--radius); padding: 1.25rem;
    margin-top: 1.15rem;
}
.roadmap h3 {
    font-size: .8rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--c-text-soft);
    margin: 0 0 .7rem;
}
.roadmap ul { margin: 0; padding-left: 1.1rem; }
.roadmap li {
    margin-bottom: .45rem; font-size: .88rem; color: var(--c-text-soft);
}
.roadmap__note {
    margin: .9rem 0 0; padding-top: .8rem;
    border-top: 1px solid var(--c-border);
    font-size: .82rem; color: var(--c-text-soft);
}

/* --- Auteursregel --------------------------------------------------------
   Het belangrijkste E-E-A-T-signaal van een eenpersoonssite: de bezoeker moet
   zonder de broncode te openen kunnen zien wie dit schreef en wanneer het is
   nagekeken. Schema-markup alleen is daarvoor niet genoeg. */
.byline {
    display: flex; align-items: center; gap: .8rem;
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px solid var(--c-border);
    max-width: 44rem;
}
.byline__avatar {
    display: grid; place-items: center; flex-shrink: 0;
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--c-brand); color: #fff;
    font-weight: 700; font-size: 1.1rem; line-height: 1;
}
.byline__text { font-size: .9rem; min-width: 0; }
.byline__text a { font-weight: 650; }
.byline__meta {
    display: block; font-size: .82rem; color: var(--c-text-soft);
}

/* --- Wegwijzerkaarten (404-pagina) ---------------------------------------- */
.signposts {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.signpost {
    background: var(--c-bg-soft); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 1.3rem;
}
.signpost h2 { font-size: 1.02rem; margin: 0 0 .4rem; }
.signpost h2 a { color: inherit; text-decoration: none; }
.signpost h2 a:hover { color: var(--c-brand); text-decoration: underline; }
.signpost p { margin: 0; font-size: .89rem; color: var(--c-text-soft); }
.signposts__foot { margin-top: 2rem; color: var(--c-text-soft); }

/* --- Subpagina's ---------------------------------------------------------- */
.breadcrumb { padding: 1rem 0 0; font-size: .86rem; color: var(--c-text-soft); }
.breadcrumb ol {
    display: flex; flex-wrap: wrap; gap: .4rem;
    list-style: none; margin: 0; padding: 0;
}
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--c-border); }
.breadcrumb a { color: var(--c-text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-brand); text-decoration: underline; }

.pagetop {
    padding: 1.5rem 0 clamp(1.75rem, 1rem + 2vw, 2.75rem);
    border-bottom: 1px solid var(--c-border);
    background: radial-gradient(48rem 18rem at 8% -30%, var(--c-brand-soft), transparent 65%);
}
.pagetop__icon { font-size: 2.2rem; line-height: 1; margin-bottom: .6rem; }
.pagetop__lead {
    max-width: 44rem; font-size: clamp(1rem, .95rem + .35vw, 1.12rem);
    color: var(--c-text-soft); margin: 0;
}

/* Tekstkolom binnen .layout: daar staat een zijbalk naast die de breedte
   al begrenst. */
.copy { max-width: 44rem; }

/* Staat .copy direct in een .wrap (pagina zonder zijbalk), dan gebruikt hij
   de volledige containerbreedte — gelijk aan de homepage. Alleen lopende
   tekst houdt een leesbare regellengte; koppen en blokken lopen wél door. */
.wrap > .copy { max-width: none; }
.wrap > .copy > p,
.wrap > .copy > ul,
.wrap > .copy > ol { max-width: 46rem; }

.copy__meta {
    color: var(--c-text-soft); font-size: .9rem;
    padding-bottom: 1.25rem; border-bottom: 1px solid var(--c-border);
}

/* Lange, onbreekbare tekst (URL's, e-mailadressen, code) mag de kolom niet
   oprekken — anders schuift de hele pagina horizontaal. `anywhere` breekt ook
   midden in een URL af, wat `break-word` bij een lange host niet doet. */
.copy,
.copy p, .copy li, .copy a, .copy code, .copy td, .copy th {
    overflow-wrap: anywhere;
}

.copy code {
    background: var(--c-bg-soft); border: 1px solid var(--c-border);
    border-radius: 4px; padding: .08em .35em;
    font-size: .88em; word-break: break-all;
}

/* Anker-offset, zodat een kop niet onder de sticky header verdwijnt. */
.copy [id] { scroll-margin-top: 6rem; }

.copy h2 { margin-top: 2.25rem; }
.copy h3 { margin-top: 1.5rem; }
.copy > *:first-child { margin-top: 0; }
.copy ul, .copy ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.copy li { margin-bottom: .35rem; }
.copy strong { font-weight: 650; }

/* --- Inhoudsopgave (zijbalk op tekstpagina's) ----------------------------- */
.onthispage {
    background: var(--c-bg-soft); border: 1px solid var(--c-border);
    border-radius: var(--radius);
    /* Smallere zijpadding: de links hebben zelf .5rem, samen lijnt dat uit. */
    padding: 1.25rem .85rem;
    font-size: .9rem;
    /* Zonder min-width:0 weigert een flex/grid-item te krimpen onder de
       breedte van zijn inhoud — dat veroorzaakte overflow op mobiel. */
    min-width: 0; max-width: 100%;
}
.onthispage h2 {
    font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--c-text-soft); margin: 0 0 .8rem;
    padding-inline: .5rem;   /* lijnt uit met de links eronder */
}
.onthispage ol {
    list-style: none; counter-reset: onthispage;
    margin: 0; padding: 0;
}
.onthispage li { counter-increment: onthispage; }
.onthispage a {
    display: flex; gap: .6rem; padding: .38rem .5rem;
    border-radius: var(--radius-sm);
    color: var(--c-text-soft); text-decoration: none; line-height: 1.4;
    /* Titels breken netjes op woordgrenzen, niet middenin een woord. */
    overflow-wrap: break-word;
}
.onthispage a::before {
    content: counter(onthispage) "."; flex-shrink: 0;
    color: var(--c-brand); font-variant-numeric: tabular-nums;
    font-size: .82em; padding-top: .12em;
}
.onthispage a:hover { background: var(--c-brand-soft); color: var(--c-brand-dark); }
.onthispage + .sidebox { margin-top: 1.15rem; }

@media (min-width: 980px) {
    .onthispage { position: sticky; top: 6rem; max-height: calc(100vh - 7.5rem); overflow-y: auto; }
}

/* Op smalle schermen staat de inhoudsopgave bovenaan, ingeklapt: een lijst van
   vijftien items zou anders het halve scherm vullen vóór de eerste alinea. */
@media (max-width: 979px) {
    .layout--sidenav { display: flex; flex-direction: column; }
    .layout--sidenav > aside { order: -1; min-width: 0; }

    .onthispage[open] > ol { margin-top: .6rem; }

    .onthispage > summary {
        display: flex; align-items: center; gap: .6rem;
        cursor: pointer; list-style: none;
        font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
        color: var(--c-text-soft); padding-inline: .5rem;
    }
    .onthispage > summary::-webkit-details-marker { display: none; }
    .onthispage > summary::after {
        content: ""; margin-left: auto; flex-shrink: 0;
        width: .5rem; height: .5rem;
        border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translate(-2px, -2px);
        transition: transform .15s;
    }
    .onthispage[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
}

/* Op brede schermen is er ruimte genoeg: altijd open, geen pijltje. */
@media (min-width: 980px) {
    .onthispage > summary { list-style: none; }
    .onthispage > summary::-webkit-details-marker { display: none; }
}

/* --- Tabellen ------------------------------------------------------------- */
.tablewrap { overflow-x: auto; margin: 1.5rem 0; }
.table {
    width: 100%; border-collapse: collapse;
    font-size: .89rem; min-width: 34rem;
}
.table th, .table td {
    text-align: left; vertical-align: top;
    padding: .7rem .85rem; border-bottom: 1px solid var(--c-border);
}
.table thead th {
    background: var(--c-bg-soft); font-size: .78rem;
    text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-soft);
    border-bottom-width: 2px;
}
.table tbody th { font-weight: 650; color: var(--c-text); }
.table tbody tr:hover { background: var(--c-bg-soft); }

.layout {
    display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem);
    grid-template-columns: 1fr;
}
/* Grid- en flex-items staan standaard op min-width:auto en weigeren daardoor
   te krimpen onder hun langste inhoud (een URL, een <code>-fragment). Dat duwt
   de hele pagina breder dan het scherm. */
.layout > * { min-width: 0; }

@media (min-width: 980px) {
    .layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

.sidebox {
    background: var(--c-bg-elevated); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 1.4rem;
}
.sidebox + .sidebox { margin-top: 1.15rem; }
.sidebox h2, .sidebox h3 { font-size: 1rem; margin-top: 0; margin-bottom: .8rem; }
.sidebox__note {
    margin: .9rem 0 0; padding-top: .9rem;
    border-top: 1px solid var(--c-border);
    font-size: .84rem; color: var(--c-text-soft);
}
.sidebox__note em { font-style: normal; font-weight: 650; }

/* Notitie / bronvermelding */
.note {
    border-left: 3px solid var(--c-brand);
    background: var(--c-brand-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: .9rem 1.1rem; margin: 1.5rem 0;
    font-size: .92rem;
}
.note p:last-child { margin-bottom: 0; }

/* Actiepunt voor de beheerder — niet bedoeld voor bezoekers. */
.note--action {
    border-left-color: var(--c-accent);
    background: color-mix(in srgb, var(--c-accent) 10%, transparent);
}

/* --- Gewestenblok (Vlaanderen / Wallonië / Brussel) -----------------------
   Het onderscheid tussen de drie gewesten is hét inhoudelijke zwaartepunt van
   deze site: premies, tarieven en bevoegdheden verschillen per gewest. Dit
   blok zet ze naast elkaar zodat het verschil meteen zichtbaar is. */
.gewesten {
    display: grid; gap: 1rem; margin: 1.5rem 0;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gewest {
    background: var(--c-bg-elevated); border: 1px solid var(--c-border);
    border-top: 3px solid var(--c-brand);
    border-radius: var(--radius); padding: 1.15rem;
}
.gewest h3 { font-size: .98rem; margin: 0 0 .5rem; }
.gewest p  { margin: 0 0 .6rem; font-size: .88rem; color: var(--c-text-soft); }
.gewest p:last-child { margin-bottom: 0; }
.gewest__instantie {
    display: block; margin-top: .6rem; padding-top: .6rem;
    border-top: 1px solid var(--c-border);
    font-size: .8rem; color: var(--c-text-soft);
}

/* Stappenlijst met genummerde bolletjes — voor de volgorde van administratie. */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0; padding: 0; }
.steps li {
    counter-increment: step; position: relative;
    padding-left: 2.9rem; margin-bottom: 1.1rem;
}
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: -.1rem;
    width: 1.95rem; height: 1.95rem;
    display: grid; place-items: center;
    background: var(--c-brand-soft); color: var(--c-brand-dark);
    border: 1px solid var(--c-brand); border-radius: 50%;
    font-size: .88rem; font-weight: 700;
}
.steps li > strong { display: block; }

/* FAQ */
.faq { border-top: 1px solid var(--c-border); }
.faq details {
    border-bottom: 1px solid var(--c-border);
    padding: .35rem 0;
}
.faq summary {
    cursor: pointer; padding: .85rem 0; font-weight: 600;
    list-style: none; display: flex; align-items: center; gap: .7rem;
}
.faq summary::-webkit-details-marker { display: none; }
/* Open/dicht-teken. Het plusje wordt NIET als tekst gezet maar als twee
   pseudo-randen getekend: een tekstglyph erft de line-height van de body en
   wordt door place-items dus verticaal verkeerd uitgelijnd, en "+" en "−"
   hebben bovendien verschillende glyph-metrieken waardoor het teken bij het
   openklappen verschoof. Met lijnen is de uitlijning exact en identiek in
   beide standen. */
.faq summary::before {
    content: ""; flex-shrink: 0; position: relative;
    width: 1.4rem; height: 1.4rem;
    border: 1px solid var(--c-border); border-radius: 50%;
    /* Horizontale balk: altijd zichtbaar. */
    background:
        linear-gradient(var(--c-brand), var(--c-brand)) center/.6rem 2px no-repeat,
        /* Verticale balk: verdwijnt bij open, waardoor + een − wordt. */
        linear-gradient(var(--c-brand), var(--c-brand)) center/2px .6rem no-repeat;
    transition: transform .18s ease;
}
.faq details[open] summary::before {
    /* Alleen de horizontale balk overhouden. */
    background: linear-gradient(var(--c-brand), var(--c-brand)) center/.6rem 2px no-repeat;
    transform: rotate(180deg);
}
.faq details > *:not(summary) { margin-bottom: .9rem; color: var(--c-text-soft); font-size: .94rem; }

/* --- Footer --------------------------------------------------------------- */
.sitefoot {
    background: var(--c-bg-soft); border-top: 1px solid var(--c-border);
    padding: 3rem 0 1.5rem; font-size: .91rem;
}
/* Let op: `repeat(auto-fit, …)` mag niet samen met een vaste track staan —
   de hele declaratie wordt dan ongeldig. Daarom expliciete breakpoints. */
.sitefoot__grid {
    display: grid; gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}
@media (min-width: 600px) {
    .sitefoot__grid { grid-template-columns: repeat(3, 1fr); }
    .sitefoot__about { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
    .sitefoot__grid { grid-template-columns: 1.75fr repeat(3, minmax(140px, 1fr)); }
    .sitefoot__about { grid-column: auto; }
}
.sitefoot__about { max-width: 30rem; }
.sitefoot__intro { color: var(--c-text-soft); margin: .6rem 0 1.1rem; }

/* Concrete beloften, geen marketingtaal — vandaar de nuchtere vinkjes. */
.sitefoot__promises { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.sitefoot__promises li {
    position: relative; padding-left: 1.5rem; margin-bottom: .4rem;
    font-size: .88rem; color: var(--c-text-soft); line-height: 1.5;
}
.sitefoot__promises li::before {
    content: ""; position: absolute; left: 0; top: .42em;
    width: .5rem; height: .28rem;
    border-left: 2px solid var(--c-brand); border-bottom: 2px solid var(--c-brand);
    transform: rotate(-45deg);
}

.sitefoot__fix {
    margin: 0; padding-top: .9rem; border-top: 1px solid var(--c-border);
    font-size: .85rem; color: var(--c-text-soft);
}

.sitefoot__legalnote {
    max-width: 62rem; margin: 0 0 1.5rem;
    padding: .9rem 1.1rem;
    background: var(--c-bg-elevated); border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: .82rem; color: var(--c-text-soft); line-height: 1.6;
}

.sitefoot__ids { font-variant-numeric: tabular-nums; }
.sitefoot__col h3 {
    font-size: .82rem; text-transform: uppercase; letter-spacing: .07em;
    color: var(--c-text-soft); margin-bottom: .7rem;
}
.sitefoot__links { list-style: none; margin: 0; padding: 0; }
.sitefoot__links li + li { margin-top: .35rem; }
.sitefoot__links a { color: var(--c-text); text-decoration: none; }
.sitefoot__links a:hover { color: var(--c-brand); text-decoration: underline; }
.sitefoot__base {
    border-top: 1px solid var(--c-border); padding-top: 1.2rem;
    display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between;
    color: var(--c-text-soft); font-size: .85rem;
}

/* --- Cookiebanner (AVG/GDPR) ---------------------------------------------- */
.consent {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    background: var(--c-bg-elevated); border-top: 1px solid var(--c-border);
    box-shadow: 0 -8px 32px rgba(28, 27, 31, .12);
    padding: 1.1rem 0;
}
.consent[hidden] { display: none; }
.consent__inner {
    display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    justify-content: space-between;
}
.consent p { margin: 0; font-size: .89rem; color: var(--c-text-soft); max-width: 46rem; }
.consent__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
