/* ============================================================================
   P2000 Online - portal-styling
   Afgeleid van zuster-sites (variant C v3): zelfde tokens, fonts, wordmark,
   topbar/header/mainnav/footer-pattern. Eigen content-componenten voor
   regio-grid, prose-blocks en FAQ-details.
   ============================================================================ */

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/assets/fonts/ibm-plex-sans-var.woff2') format('woff2-variations');
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('/assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}

:root {
    --c-page:    #F1F3F6;
    --c-card:    #FFFFFF;
    --c-card-hover: #FFFFFF;
    --c-border:  #E2E5EA;
    --c-border-strong: #CBD0D8;
    --c-ink:     #0E1116;
    --c-ink-2:   #2C3137;
    --c-ink-3:   #515660;
    --c-ink-4:   #7A7F87;
    --c-accent:  #0E1116;
    --c-hl:      #C7261D;
    --c-hl-soft: #FDECEA;

    --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --container: 1260px;
    --pad-x: 40px;
}

[data-theme="dark"] {
    --c-page:    #0B0E12;
    --c-card:    #14181E;
    --c-card-hover: #1C2028;
    --c-border:  #232830;
    --c-border-strong: #303640;
    --c-ink:     #ECEEF1;
    --c-ink-2:   #D4D7DC;
    --c-ink-3:   #A8ACB3;
    --c-ink-4:   #777C84;
    --c-accent:  #ECEEF1;
    --c-hl:      #C7261D;
    --c-hl-soft: #2A1614;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-ink);
    background: var(--c-page);
}
a { color: var(--c-hl); text-decoration: none; }
a:hover { text-decoration: underline; }

/* CONTAINER */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}
/* Ademruimte onder de pagina-content vóór de prefooter. Zonder dit raakt de
   langste kolom (vaak de sidebar/.aside met align-items:start) de donkere
   prefooter zonder marge. Geldt voor zowel grid- als niet-grid-pagina's. */
main.container { padding-bottom: 48px; }

/* TOPBAR */
.topbar {
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c-ink-3);
}
.topbar-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 8px; padding-bottom: 8px;
}
.topbar-date { color: var(--c-ink-2); font-weight: 500; }
.topbar-nav { display: flex; gap: 18px; align-items: center; }
.topbar-nav a { color: var(--c-ink-3); text-decoration: none; transition: color .15s; }
.topbar-nav a:hover { color: var(--c-ink); }
/* Topbar-controls — Variant 1: neutraal segmented, geen felle kleuren.
 * Actief segment = opgetild kaartje. (Overgenomen van de regio-sites.) */
.theme-switch, .text-size-switch {
    display: inline-flex;
    align-items: center;
    background: var(--c-page);
    border: 1px solid var(--c-border);
    border-radius: 9px;
    padding: 2px;
}
.theme-btn, .ts-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent;
    border: 0;
    border-radius: 7px;
    padding: 5px 11px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--c-ink-4);
    cursor: pointer;
    transition: color .12s, background .12s;
}
.theme-btn:hover, .ts-btn:hover { color: var(--c-ink-2); }
.theme-btn.is-active, .ts-btn.is-active {
    background: var(--c-card);
    color: var(--c-ink);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
[data-theme="dark"] .theme-btn.is-active,
[data-theme="dark"] .ts-btn.is-active { box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.theme-btn svg { width: 14px; height: 14px; }
.ts-btn { min-width: 30px; justify-content: center; }
.ts-btn[data-size="0"] { font-size: 11px; }
.ts-btn[data-size="1"] { font-size: 14px; }

/* Tekstgrootte-switch (A+) — schaal ALLE tekst, gelijk aan de regio-sites
 * (regio A+ schaal: paragraaf 17px, lede 17-18px, h1 32px, h2 24px, h3 20px). */
body[data-textsize="large"] {
    /* Leestekst & paragrafen */
    & .hero .lede { font-size: 18px; line-height: 1.6; }
    & .block p, & .block li, & .block-intro,
    & .content-card p, & .content-card li,
    & .content-page p, & .content-page li,
    & .faq p, & .faq li, & .kaart-faq p,
    & .druk-uitleg, & .hc-melding,
    & .regio-list-tagline, & .ontdek-list li { font-size: 17px; line-height: 1.65; }

    /* Headings */
    & .hero h1 { font-size: clamp(24px, 3.6vw, 32px); }
    & .block h2, & .content-card h2, & .content-page h2,
    & .faq h2, & .kaart-faq h2, & .druk-label { font-size: 24px; }
    & .content-page h1 { font-size: 32px; }
    & .content-page h3, & .faq h3, & .kaart-faq h3 { font-size: 20px; }
    & .footer h5 { font-size: 15px; }

    /* Topbar + hoofdnavigatie */
    & .topbar { font-size: 14px; }
    & .topbar-date { font-size: 14px; }
    & .theme-btn, & .ts-btn { font-size: 13px; }
    & .mainnav-item { font-size: 16px; }

    /* Hero KPI-strip */
    & .kpi strong { font-size: 30px; }
    & .kpi span { font-size: 13px; }

    /* Hero-teaser (homepage) */
    & .teaser-kicker { font-size: 12px; }
    & .teaser-druk { font-size: 22px; }
    & .teaser-fig strong { font-size: 24px; }
    & .teaser-fig span { font-size: 12px; }
    & .teaser-cta { font-size: 15px; }

    /* Regio-overzicht (homepage) */
    & .site-naam { font-size: 16px; }
    & .site-meta { font-size: 13px; }
    & .prov-title { font-size: 16px; }
    & .dorp-line a { font-size: 14px; }
    & .regio-list a { font-size: 17px; }
    & .regio-list-tag { font-size: 12px; }

    /* Statistieken */
    & .stat-kpi strong { font-size: 32px; }
    & .stat-kpi span { font-size: 13px; }
    & .spark-label { font-size: 13px; }
    & .sbu-lbl { font-size: 11px; }
    & .dzl { font-size: 11px; }
    & .dienst-naam, & .top-gem-naam, & .trend-naam { font-size: 16px; }
    & .dienst-cijfer, & .top-gem-aantal, & .trend-aantal, & .trend-delta { font-size: 14px; }

    /* Live kaart + lijst */
    & .kaart-status { font-size: 13px; }
    & .kaart-legend .lg { font-size: 13px; }
    & .kaart-lijst-cap { font-size: 16px; }
    & .kli-meta { font-size: 11px; }
    & .kli-loc { font-size: 12px; }
    & .kli-text { font-size: 15px; }

    /* Helikopters */
    & .heli-statusstrip { font-size: 17px; }
    & .hc-type { font-size: 12px; }
    & .hc-fase, & .hc-tijd { font-size: 13px; }
    & .hc-naam { font-size: 18px; }
    & .hc-meta { font-size: 14px; }
    & .hc-link { font-size: 14px; }

    /* Knoppen, foot, badges */
    & .faq-buttons a { font-size: 14px; }
    & .kaart-foot, & .stats-foot { font-size: 15px; }
    & .badge, & .kli-badge { font-size: 11px; }

    /* Footer */
    & .footer p { font-size: 17px; line-height: 1.65; }
    & .footer-links a { font-size: 16px; }
    & .footer-bottom { font-size: 13px; }
}

/* HEADER */
.header {
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    /* Iets ruimer, in lijn met de opgefriste regio-site-header (2026-06-14). */
    padding-top: 24px;
    padding-bottom: 22px;
}
.wordmark {
    display: inline-flex; align-items: baseline; gap: 0;
    font-family: var(--font-body);
    line-height: 1;
    letter-spacing: -0.04em;
    text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wm-block {
    background: var(--c-hl);
    color: #fff;
    font-weight: 800;
    font-size: 44px;
    padding: 6px 11px 8px;
    border-radius: 3px;
}
.wm-tx {
    color: var(--c-ink);
    font-weight: 700;
    font-size: 44px;
    margin-left: 8px;
}
.header-tagline {
    font-size: 13px;
    color: var(--c-ink-3);
    font-family: var(--font-mono);
    margin: 0;
    text-align: right;
}

/* MAINNAV */
.mainnav {
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
}
.mainnav-inner {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}
.mainnav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 12px;
    color: var(--c-ink-2);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .12s;
}
.mainnav-item:hover { color: var(--c-ink); text-decoration: none; }
.mainnav-item.is-active { color: var(--c-hl); }
.mainnav-item.is-active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--c-hl);
}
.mainnav-item:first-child { padding-left: 0; }
.mainnav-item:first-child.is-active::after { left: 0; }

/* HERO */
.hero {
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
    padding: 40px 0 32px;
}
.hero h1 {
    /* Gelijkgetrokken met de regio-sites: 32px op desktop (= .info-page h1),
     * schaalt op smalle schermen mee terug tot ~22px (regio-stapgrootte). */
    font-size: clamp(22px, 3.4vw, 32px);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.hero .lede {
    font-size: 17px;
    color: var(--c-ink-3);
    max-width: 760px;
    margin: 0 0 24px;
    line-height: 1.55;
}
.kpi-row {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi strong { font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--c-hl); }
.kpi span { font-size: 12px; color: var(--c-ink-4); text-transform: uppercase; letter-spacing: 0.04em; }

/* BLOCK (eenheids-card voor grid + prose) */
.block {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 3px;
    padding: 28px 32px;
    margin: 20px 0;
}
.block > h2:first-child { margin-top: 0; }
.block h2 {
    font-size: 20px;
    margin: 32px 0 12px;
    letter-spacing: -0.01em;
}
/* SPOOK-SIDEBAR (opgeruimd 2026-07-14).
   Deze portal heeft geen sidebar, maar had wél de tekst-breedtes van de
   regio-sites overgenomen: 820px = precies de contentkolom die daar naast een
   336px-sidebar past (1180 container - 336 sidebar - 24 gap). Zonder die sidebar
   ernaast bleef de tekst op ~73% hangen met een lege kolom rechts. De caps zijn
   eruit; de leesbreedte wordt nu bepaald door de kaart/container zelf. */
.block p, .block li {
    color: var(--c-ink-2);
    line-height: 1.65;
}
.block-intro { color: var(--c-ink-3) !important; margin-top: 0; }
.block code, .block em.code {
    color: var(--c-ink);
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: var(--c-hl-soft);
    padding: 1px 5px;
    border-radius: 3px;
    font-style: normal;
}
.block-cta {
    margin-top: 24px !important;
    padding-top: 18px;
    border-top: 1px solid var(--c-border);
    color: var(--c-ink-3) !important;
    font-size: 15px;
}

/* CONTENT-CARD - één lange article met subtle subheading-borders */
.content-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 3px;
    padding: 28px 36px 36px;
    margin: 20px 0;
}
.content-card h2 {
    font-size: 20px;
    margin: 36px 0 14px;
    padding-top: 28px;
    border-top: 1px solid var(--c-border);
    letter-spacing: -0.01em;
    scroll-margin-top: 80px;
}
.content-card h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.content-card p, .content-card li {
    color: var(--c-ink-2);
    line-height: 1.65;
}
.content-card ul, .content-card ol { padding-left: 22px; }
.content-card ul li, .content-card ol li { margin-bottom: 6px; }
.content-card em.code, .content-card code {
    color: var(--c-ink);
    font-family: var(--font-mono);
    font-size: 0.92em;
    background: var(--c-hl-soft);
    padding: 1px 5px;
    border-radius: 3px;
    font-style: normal;
}
.content-card em:not(.code) {
    color: var(--c-ink);
    font-family: var(--font-mono);
    font-size: 0.92em;
    font-style: italic;
}
.dienst-list { list-style: none; padding-left: 0 !important; margin: 12px 0 0; }
.dienst-list li {
    padding: 8px 0 8px 12px;
    border-left: 3px solid var(--c-hl);
    margin-bottom: 10px !important;
    background: var(--c-page);
    padding-right: 14px;
}
[data-theme="dark"] .dienst-list li { background: var(--c-card-hover); }

/* REGIO-LIST (op /over/) */
.regio-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px 24px;
}
.regio-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border);
    line-height: 1.45;
}
.regio-list a, .regio-list-naam {
    font-weight: 600;
    color: var(--c-ink);
    text-decoration: none;
}
.regio-list a:hover { color: var(--c-hl); text-decoration: underline; }
.regio-list-naam { color: var(--c-ink-3); }
.regio-list-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-ink-4);
    background: var(--c-page);
    padding: 1px 7px;
    border-radius: 3px;
    margin-left: 4px;
    vertical-align: 2px;
}
.regio-list-tagline {
    font-size: 13px;
    color: var(--c-ink-3);
}

/* PROVINCIE GRID - echte CSS-grid met 4 outer kolommen.
 * PHP verdeelt provincies greedy over de 4 cols (op site-count basis)
 * zodat elke kolom ongeveer even hoog wordt en geen content-gat ontstaat. */
.prov-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 18px;
    align-items: start;
}
.prov-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.prov-block { padding: 4px 0; }
@media (max-width: 900px) { .prov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .prov-grid { grid-template-columns: 1fr; } }
.prov-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-ink-3);
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--c-hl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.prov-count {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--c-ink-4);
    background: var(--c-hl-soft);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
}
.site-list { list-style: none; padding: 0; margin: 0; }
.site-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border);
}
.site-row:last-child { border-bottom: 0; }
.site-row-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px;
}
.site-link {
    display: inline-flex; align-items: baseline; gap: 8px;
    color: var(--c-ink);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: color .12s;
}
.site-link:hover { color: var(--c-hl); text-decoration: none; }
.site-meta {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--c-ink-4);
    background: var(--c-page);
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
}
.dorp-line {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 13px;
    line-height: 1.5;
}
.dorp-line li { display: inline; }
.dorp-line a {
    color: var(--c-ink-3);
    text-decoration: none;
    font-weight: 400;
    transition: color .12s;
}
.dorp-line a:hover { color: var(--c-hl); text-decoration: underline; }
.dorp-line li:not(:last-child) a::after {
    content: '·';
    color: var(--c-ink-4);
    margin-left: 10px;
    text-decoration: none;
    display: inline-block;
}

.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 99px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}
.badge-knrm { background: #FFE4D0; color: #A04A0F; }
[data-theme="dark"] .badge-knrm { background: #3A2010; color: #FFB880; }

/* HOW-LIST */
.how-list { padding-left: 0; counter-reset: how; list-style: none; }
.how-list li {
    counter-increment: how;
    padding: 14px 0 14px 50px;
    position: relative;
    border-bottom: 1px solid var(--c-border);
}
.how-list li:last-child { border-bottom: 0; }
.how-list li::before {
    content: counter(how);
    position: absolute;
    left: 0; top: 14px;
    width: 32px; height: 32px;
    background: var(--c-hl);
    color: #fff;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* FAQ */
.faq details {
    border-bottom: 1px solid var(--c-border);
    padding: 12px 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--c-ink);
    padding-right: 24px;
    position: relative;
    list-style: none;
    user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute;
    right: 0; top: -2px;
    color: var(--c-hl);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 400;
    transition: transform .15s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 10px 0 4px; color: var(--c-ink-3); }

/* CONTENT-PAGE (over/privacy/contact) */
.content-page {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: 3px;
    padding: 32px 40px 40px;
    margin: 20px 0;
}
.content-page h1 { font-size: 32px; margin: 0 0 18px; letter-spacing: -0.02em; }
.content-page h2 { font-size: 20px; margin: 28px 0 10px; }
.content-page h3 { font-size: 17px; margin: 22px 0 8px; }
.content-page p, .content-page li {
    color: var(--c-ink-2); line-height: 1.65;
}
.content-page ul { padding-left: 22px; }
.content-page a { color: var(--c-hl); }
.content-page .back-link { display: inline-block; margin-top: 28px; font-family: var(--font-mono); font-size: 13px; }

/* FOOTER */
.footer {
    background: var(--c-card);
    border-top: 1px solid var(--c-border);
    margin-top: 32px;
    padding: 28px 0;
}
.footer-cols {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr;
    gap: 32px;
}
.footer h5 {
    font-size: 13px; font-weight: 700; margin-bottom: 10px;
    color: var(--c-ink);
}
.footer p {
    font-size: 14px; color: var(--c-ink-3); line-height: 1.55; margin-bottom: 8px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 5px; }
.footer-links a { color: var(--c-ink-2); font-size: 14px; text-decoration: none; }
.footer-links a:hover { color: var(--c-hl); text-decoration: underline; }
.footer-links--cols { column-count: 2; column-gap: 20px; }
.footer-links--cols li { break-inside: avoid; }
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 22px; padding-top: 14px;
    border-top: 1px solid var(--c-border);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-ink-4);
}
.footer-bottom-left { text-align: left; }
.footer-bottom-center { text-align: center; }
.footer-bottom-right { text-align: right; display: inline-flex; justify-content: flex-end; gap: 18px; }
.footer-bottom-right a { color: var(--c-ink-2); text-decoration: none; }
.footer-bottom-right a:hover { color: var(--c-hl); text-decoration: underline; }
@media (max-width: 720px) {
    .footer-bottom { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom-left, .footer-bottom-center, .footer-bottom-right { text-align: center; justify-content: center; }
}

/* PRIVACY-CTA blok op /privacy/ */
.privacy-cta {
    background: var(--c-hl-soft);
    border-left: 4px solid var(--c-hl);
    padding: 22px 26px;
    margin: 32px 0;
    border-radius: 0 3px 3px 0;
}
.privacy-cta h2 {
    margin-top: 0 !important;
    border-top: 0 !important;
    padding-top: 0 !important;
}
.privacy-cta p { margin-bottom: 10px; }
.privacy-cta p:last-child { margin-bottom: 0; }

@media (max-width: 820px) {
    :root { --pad-x: 20px; }
    .header-tagline { display: none; }
    .wm-block, .wm-tx { font-size: 30px; }  /* logo meeschalen op mobiel (regio-look) */
    .footer-cols { grid-template-columns: 1fr; }
    .footer-links--cols { column-count: 2; }
    .kpi-row { gap: 22px; }
    .block { padding: 22px 20px; }
    .content-page { padding: 24px 22px; }
}

/* ============================================================
   STATS — hero-teaser, druktemeter, statistieken-pagina
   ============================================================ */

/* Drukte-niveau accentkleuren (werken in licht + donker) */
:root {
    --dn-rustig: #1F9D6B;
    --dn-normaal: #3A78C2;
    --dn-druk: #D98324;
    --dn-zeerdruk: #C7261D;
    --d-amb: #1F9D6B;
    --d-bra: #C7261D;
    --d-pol: #3A78C2;
    --d-knrm: #E08A1E;
    --d-overig: #8A8F97;
}
[data-niveau="rustig"]    { --dn: var(--dn-rustig); }
[data-niveau="normaal"]   { --dn: var(--dn-normaal); }
[data-niveau="druk"]      { --dn: var(--dn-druk); }
[data-niveau="zeer druk"] { --dn: var(--dn-zeerdruk); }

/* --- Hero tweekoloms met teaser --- */
.hero-grid.has-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: stretch;
}
.hero-teaser {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--c-page);
    border: 1px solid var(--c-border-strong);
    border-radius: 4px;
    padding: 20px 22px;
    text-decoration: none;
    color: var(--c-ink);
    transition: border-color .15s, transform .15s;
    border-left: 4px solid var(--dn, var(--dn-normaal));
}
.hero-teaser:hover { border-color: var(--dn, var(--dn-normaal)); transform: translateY(-2px); text-decoration: none; }
.teaser-top { display: flex; align-items: center; gap: 8px; }
.teaser-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dn, var(--dn-normaal)); box-shadow: 0 0 0 0 var(--dn, var(--dn-normaal)); animation: dotpulse 2.4s infinite; }
@keyframes dotpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dn, var(--dn-normaal)) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.teaser-kicker { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-ink-4); }
.teaser-druk { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--dn, var(--dn-normaal)); }
.teaser-figs { display: flex; gap: 26px; margin-top: 2px; }
.teaser-fig { display: flex; flex-direction: column; }
.teaser-fig strong { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--c-ink); }
.teaser-fig span { font-size: 11px; color: var(--c-ink-4); text-transform: uppercase; letter-spacing: 0.03em; }
.teaser-cta { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--c-hl); padding-top: 8px; border-top: 1px solid var(--c-border); }

/* --- Statistieken-pagina --- */
/* geen spook-sidebar-cap: zie de toelichting bij .block p */
#stats-root { padding-top: 22px; }   /* lucht tussen header en eerste blokken */

.stat-druk { border-left: 4px solid var(--dn, var(--dn-normaal)); }
.druk-head { display: flex; align-items: center; gap: 10px; }
.druk-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dn, var(--dn-normaal)); flex: none; }
.druk-label { margin: 0 !important; color: var(--dn, var(--dn-normaal)); }
.druk-uitleg { margin: 12px 0 18px !important; font-size: 15px; }
.druk-uitleg strong { color: var(--c-ink); font-family: var(--font-mono); }

/* Druktemeter — gezoneerde balk met grens-markers + naald */
.druk-meter { position: relative; display: flex; height: 12px; border-radius: 6px; overflow: hidden; }
.druk-zone { height: 100%; }
.dz-rustig   { width: 35%; background: color-mix(in srgb, var(--dn-rustig)   30%, transparent); }
.dz-normaal  { width: 30%; background: color-mix(in srgb, var(--dn-normaal)  30%, transparent); }
.dz-druk     { width: 25%; background: color-mix(in srgb, var(--dn-druk)     35%, transparent); }
.dz-zeerdruk { width: 10%; background: color-mix(in srgb, var(--dn-zeerdruk) 40%, transparent); }
.druk-needle { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; background: var(--c-ink); border-radius: 2px; transition: left .4s ease; box-shadow: 0 0 0 2px var(--c-card); }
.druk-zonelabels { display: flex; margin-top: 6px; font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--c-ink-4); }
.dzl { text-align: center; }
.dzl-rustig { width: 35%; } .dzl-normaal { width: 30%; } .dzl-druk { width: 25%; } .dzl-zeerdruk { width: 10%; white-space: nowrap; }

.stat-kpis { display: flex; flex-wrap: wrap; gap: 30px; }
.stat-kpi { display: flex; flex-direction: column; gap: 2px; }
.stat-kpi strong { font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--c-ink); }
.stat-kpi span { font-size: 12px; color: var(--c-ink-4); text-transform: uppercase; letter-spacing: 0.03em; }
.stat-kpi-spoed strong { color: var(--c-hl); }

/* Per-uur staafgrafiek (zelfde stijl als regio-sites) */
.uur-wrap { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.spark-label { display: block; font-size: 12px; color: var(--c-ink-4); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 12px; }
.stats-bars-uur-wrap { display: flex; gap: 8px; align-items: stretch; }
.sbu-yaxis { display: flex; flex-direction: column; justify-content: space-between; height: 160px; font-family: var(--font-mono); font-size: 10px; color: var(--c-ink-4); padding-right: 4px; border-right: 1px solid var(--c-border); text-align: right; min-width: 28px; padding-bottom: 18px; }
.stats-bars-uur { flex: 1; display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; height: 160px; position: relative; }
.sbu-grid { position: absolute; left: 0; right: 0; top: 0; bottom: 18px; pointer-events: none; background-image: linear-gradient(to bottom, var(--c-border) 1px, transparent 1px); background-size: 100% 50%; }
.sbu-col { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; position: relative; z-index: 1; }
.sbu-bar { width: 100%; background: linear-gradient(180deg, #C7261D 0%, #E1701B 100%); border-radius: 3px 3px 0 0; transition: filter .12s; }
.sbu-bar:hover { filter: brightness(1.12); }
.sbu-lbl { font-family: var(--font-mono); font-size: 9px; color: var(--c-ink-4); margin-top: 4px; }

.stat-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-two-col .block { margin: 0; }

.dienst-mix, .top-gem, .trend-list { list-style: none; padding: 0; margin: 8px 0 0; }
.dienst-row { display: grid; grid-template-columns: 96px 1fr 104px; align-items: center; gap: 12px; padding: 7px 0; }
.dienst-naam { font-size: 14px; font-weight: 500; }
.dienst-track { height: 9px; background: var(--c-border); border-radius: 5px; overflow: hidden; width: 100%; }
.dienst-fill { display: block; height: 100%; border-radius: 5px; }
.dienst-fill-AMB { background: var(--d-amb); } .dienst-AMB { color: var(--d-amb); }
.dienst-fill-BRA { background: var(--d-bra); } .dienst-BRA { color: var(--d-bra); }
.dienst-fill-POL { background: var(--d-pol); } .dienst-POL { color: var(--d-pol); }
.dienst-fill-KNRM { background: var(--d-knrm); } .dienst-KNRM { color: var(--d-knrm); }
.dienst-fill-OVERIG { background: var(--d-overig); } .dienst-OVERIG { color: var(--d-overig); }
.dienst-cijfer { font-family: var(--font-mono); font-size: 14px; color: var(--c-ink); white-space: nowrap; text-align: right; }
.dienst-cijfer small { color: var(--c-ink-4); }

.top-gem { counter-reset: gem; }
.top-gem-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--c-border); }
.top-gem-row:last-child { border-bottom: 0; }
.top-gem-row::before { counter-increment: gem; content: counter(gem); font-family: var(--font-mono); font-size: 12px; color: var(--c-ink-4); width: 18px; flex: none; }
.top-gem-naam { flex: 1; font-size: 15px; }
.top-gem-aantal { font-family: var(--font-mono); font-size: 14px; color: var(--c-ink-2); }

.trend-row { display: grid; grid-template-columns: 1fr auto 86px; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.trend-row:last-child { border-bottom: 0; }
.trend-naam { font-size: 15px; }
.trend-aantal { font-family: var(--font-mono); font-size: 14px; color: var(--c-ink-2); }
.trend-delta { font-family: var(--font-mono); font-size: 13px; text-align: right; }
.trend-up { color: var(--dn-zeerdruk); }
.trend-down { color: var(--dn-rustig); }
.trend-flat { color: var(--c-ink-4); }

.stats-foot { color: var(--c-ink-4); font-size: 13px; margin-top: 20px; }
.stats-foot strong { color: var(--c-hl); }

/* Landelijke-overzichten-lijst op de homepage */
.ontdek-list { line-height: 1.9; }
.ontdek-list a strong { color: var(--c-hl); }

/* --- Live kaart --- */
.kaart-block { padding: 16px 16px 18px; }
.kaart-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 0 4px; }
.kaart-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.kaart-legend .lg { font-size: 12px; color: var(--c-ink-3); display: inline-flex; align-items: center; gap: 6px; }
.kaart-legend .lg::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--c-border-strong); }
.lg-AMB::before { background: var(--d-amb); } .lg-BRA::before { background: var(--d-bra); }
.lg-POL::before { background: var(--d-pol); } .lg-KNRM::before { background: var(--d-knrm); }
.kaart-status { font-family: var(--font-mono); font-size: 12px; color: var(--c-ink-4); }
.kaart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 14px; }
.kaart-col-main { min-width: 0; }
.nl-kaart { width: 100%; height: 640px; border-radius: 3px; overflow: hidden; background: var(--c-page); z-index: 0; }
.nl-kaart .leaflet-tile { max-width: none !important; vertical-align: top; }
.kaart-foot { color: var(--c-ink-4); font-size: 13px; margin: 14px 4px 0; max-width: none; }
.kaart-foot strong { color: var(--c-ink-2); }

/* Lijst naast de kaart */
.kaart-aside { min-width: 0; }
.kaart-lijst { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 4px; display: flex; flex-direction: column; height: 640px; overflow: hidden; }
.kaart-lijst-cap { font-size: 14px; font-weight: 700; color: var(--c-ink); padding: 12px 14px; border-bottom: 1px solid var(--c-border); }
.kaart-lijst-items { overflow-y: auto; flex: 1; }
.kaart-lijst-empty { padding: 16px 14px; color: var(--c-ink-4); font-size: 13px; }
.kaart-lijst-item { display: flex; align-items: stretch; border-bottom: 1px solid var(--c-border); border-left: 3px solid var(--svc, var(--c-ink-3)); transition: background .1s; }
.kaart-lijst-item:hover { background: var(--c-page); }
.kaart-lijst-item.is-newest { background: color-mix(in srgb, var(--c-hl) 5%, transparent); }
.kli-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; background: transparent; border: 0; padding: 10px 12px; cursor: pointer; font: inherit; }
.kli-detail { display: flex; align-items: center; justify-content: center; width: 36px; border-left: 1px solid var(--c-border); color: var(--c-ink-3); text-decoration: none; font-weight: 700; font-size: 16px; flex-shrink: 0; transition: background .12s, color .12s; }
.kli-detail:hover { background: var(--c-ink); color: #fff; }
/* Rij 1: badges + hulpdiensten */
.kli-meta { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-ink-3); line-height: 1.7; }
.kli-meta .kli-badge { margin-right: 2px; }
.kli-dienst { font-weight: 700; }
.kli-sep { color: var(--c-ink-4); }
/* Rij 2: tijd + plaats */
.kli-loc { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--c-ink-4); }
/* Rij 3: korte tekst */
.kli-text { font-size: 13px; color: var(--c-ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kli-badge { display: inline-block; color: #fff; font-weight: 700; font-size: 10px; padding: 1px 5px; border-radius: 2px; letter-spacing: 0.05em; text-transform: uppercase; }
.kli-newest { background: var(--c-ink); color: var(--c-card); }
[data-theme="dark"] .kli-newest { background: #2E3238; color: var(--c-ink); }
/* Popup-knop (.mp-pop-link) gebruikt var(--c-ink) als bg + color:#fff → in dark-mode
 * wordt de bg licht en valt de witte tekst weg (wit-op-wit). Vaste donkere bg in
 * rust; de bestaande :hover (rood, var(--c-hl)) blijft staan. */
[data-theme="dark"] .mp-pop-link { background: #2E3238; }
.kli-spoed { background: var(--c-hl); }

/* Popup-inhoud */
.pop { font-family: var(--font-body); min-width: 170px; }
.pop-dienst { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.pop-bundel { font-size: 11px; color: var(--c-ink-4); font-family: var(--font-mono); }
.pop-titel { font-size: 15px; color: var(--c-ink); margin: 4px 0 2px; line-height: 1.35; }
.pop-meta { font-size: 12px; color: var(--c-ink-4); margin-bottom: 8px; }
.pop-link { font-size: 13px; font-weight: 500; color: var(--c-hl); }
.pop-btn { display: inline-block; margin-top: 4px; padding: 6px 14px; background: var(--c-hl); color: #fff !important; border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .12s; }
.pop-btn:hover { background: var(--c-ink); text-decoration: none; }

/* Dag-grafiek (7 dagen): bredere labels dan de uur-grafiek */
.stats-bars-uur-wrap.is-dagen .sbu-lbl { font-size: 11px; }

/* FAQ onder de live kaart (statisch, niet uitklapbaar — zoals regio-sites) */
.kaart-faq { background: var(--c-card); border: 1px solid var(--c-border); border-radius: 3px; padding: 24px 32px 28px; margin: 20px 0; }
.kaart-faq h2 { margin: 0 0 8px; font-size: 22px; color: var(--c-ink); letter-spacing: -0.01em; }
.kaart-faq h3 { margin: 28px 0 12px; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; color: var(--c-ink); }
.kaart-faq h3:first-of-type { margin-top: 16px; }
.kaart-faq h3::before { content: '?'; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--c-hl); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; line-height: 1; }
.kaart-faq p { line-height: 1.65; margin: 0 0 10px; color: var(--c-ink-2); }
.kaart-faq a { color: var(--c-hl); text-decoration: underline; }
.kaart-faq a:hover { text-decoration: none; }
.faq-buttons { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.faq-buttons a { display: inline-block; padding: 8px 14px; background: var(--c-card); border: 1.5px solid var(--c-hl); border-radius: 4px; text-decoration: none; color: var(--c-hl); font-size: 13px; font-weight: 600; transition: background .15s, color .15s; }
.faq-buttons a:hover { background: var(--c-hl); color: #fff; }

/* --- Helikopters-pagina --- */
.heli-statusstrip { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 16px; border: 1px solid var(--c-border-strong); border-radius: 40px; background: var(--c-page); font-size: 16px; font-weight: 600; }
.heli-statusstrip[data-actief="1"] { border-color: var(--d-bra); color: var(--d-bra); background: color-mix(in srgb, var(--d-bra) 8%, transparent); }
.hs-icon { font-size: 18px; line-height: 1; }
.heli-statusstrip[data-actief="1"] .hs-icon { animation: heli-bob 1.4s ease-in-out infinite; }
@keyframes heli-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
#heli-root { padding-top: 22px; }
.heli-map-block { padding: 16px; }
.heli-kaart { height: 460px; }

.heli-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.heli-card { border: 1px solid var(--c-border); border-left: 4px solid var(--svc, var(--c-ink-3)); border-radius: 4px; padding: 14px 16px; background: var(--c-page); }
.heli-card.heli-lifeliner { --svc: #C7261D; } .heli-card.heli-politie { --svc: #3A78C2; }
.heli-card.heli-kustwacht { --svc: #E08A1E; } .heli-card.heli-onbekend { --svc: #8A8F97; }
.heli-card.is-actief { background: var(--c-card); box-shadow: 0 0 0 1px var(--svc); }
.hc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.hc-type { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--svc, var(--c-ink-3)); font-weight: 600; }
.hc-fase { font-size: 11px; color: var(--c-ink-4); font-family: var(--font-mono); }
.hc-fase-actief { color: var(--d-bra); font-weight: 700; }
.hc-tijd { font-family: var(--font-mono); font-size: 12px; color: var(--c-ink-4); margin-top: 6px; }
.hc-naam { font-size: 16px; font-weight: 600; color: var(--c-ink); letter-spacing: -0.01em; margin-top: 1px; }
.hc-meta { font-size: 13px; color: var(--c-ink-3); margin-top: 2px; }
.hc-melding { font-size: 13px; color: var(--c-ink-2); margin-top: 8px; line-height: 1.5; padding-top: 8px; border-top: 1px solid var(--c-border); }
.hc-melding-plek { font-weight: 600; color: var(--c-ink); }
.hc-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--c-hl); }
.heli-pulse { animation: heli-pulse 1.6s ease-out infinite; }
@keyframes heli-pulse { 0% { stroke-opacity: 1; } 50% { stroke-opacity: 0.4; } 100% { stroke-opacity: 1; } }

@media (max-width: 920px) {
    .heli-cards { grid-template-columns: 1fr; }
    .hero-grid.has-teaser { grid-template-columns: 1fr; gap: 24px; }
    .hero-teaser { max-width: 420px; }
    .stat-two-col { grid-template-columns: 1fr; }
    .kaart-grid { grid-template-columns: 1fr; }
    .nl-kaart { height: 460px; }
    .kaart-lijst { height: auto; max-height: 440px; }
}
