/* BennieWolbers.nl — huisstijl. Rood/zwart uit het oude logo, Archivo voor koppen, Source Serif voor leestekst. */
:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --ink: #1f1f1f;
  --text: #2b2a28;
  --muted: #6a6762;
  --line: #e2dfd9;
  --paper: #ffffff;
  --wash: #f4f3f0;
  --focus: #1a5fd6;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #ff4d5e; --red-dark: #ff7380; --ink: #f2f1ee; --text: #dedcd7; --muted: #a29f99;
    --line: #34322f; --paper: #161514; --wash: #1f1e1c; --focus: #7fb0ff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #ff4d5e; --red-dark: #ff7380; --ink: #f2f1ee; --text: #dedcd7; --muted: #a29f99;
  --line: #34322f; --paper: #161514; --wash: #1f1e1c; --focus: #7fb0ff; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.55 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.badge { display: inline-block; font: 600 12px/1 var(--sans); padding: 4px 7px; border-radius: 3px; background: #fde8eb; color: var(--red-dark); vertical-align: middle; margin-left: 6px; }

/* ---------- Kop ---------- */
.masthead { border-top: 6px solid var(--red); background: var(--paper); }
.masthead__row { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 8px 28px; padding-top: 22px; padding-bottom: 16px; }
.wordmark { text-decoration: none; font-family: var(--sans); font-size: clamp(30px, 5vw, 50px); line-height: .9; letter-spacing: -0.02em; white-space: nowrap; font-stretch: 112%; }
.wordmark:hover { color: inherit; }
.wordmark__a { color: var(--red); font-weight: 300; }
.wordmark__b { color: var(--ink); font-weight: 850; }
.wordmark__c { color: var(--ink); font-weight: 400; font-stretch: 100%; }
.wordmark--small { font-size: 26px; }
.masthead__tagline { margin: 0 0 3px; font-weight: 600; font-size: 15px; color: var(--muted); }
.search { display: flex; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); overflow: hidden; min-width: 0; }
.search:focus-within { border-color: var(--ink); }
.search input { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; padding: 8px 4px 8px 16px; width: 230px; min-width: 0; outline: none; }
.search button { border: 0; background: transparent; color: var(--ink); padding: 0 14px; cursor: pointer; font: 600 15px var(--sans); }
.search--big { border-radius: 6px; margin: 14px 0 8px; max-width: 560px; }
.search--big input { width: 100%; font-size: 18px; padding: 12px 14px; }
.search--big button { background: var(--ink); color: var(--paper); padding: 0 20px; }

.sections { background: var(--ink); }
.sections__scroll { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.sections__scroll::-webkit-scrollbar { display: none; }
.sections a { flex: none; color: #fff; text-decoration: none; font: 600 15px/1 var(--sans); padding: 14px 12px 12px; border-bottom: 3px solid transparent; }
.sections a:first-child { padding-left: 0; }
.sections a:hover { color: #fff; border-bottom-color: #fff; }
.sections a.is-active { border-bottom-color: var(--red); }
.sections__all { margin-left: auto; color: #cfcac2 !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sections { background: #000; } }

/* ---------- Kolommen ---------- */
main.wrap { padding-top: 28px; padding-bottom: 64px; min-height: 60vh; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
.narrow { max-width: 760px; }

/* ---------- Openingsbericht ---------- */
.lead-story { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.lead-story__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--wash); border-radius: 3px; }
.lead-story__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lead-story__title { font: 800 clamp(26px, 3.2vw, 36px)/1.08 var(--sans); font-stretch: 92%; letter-spacing: -0.01em; color: var(--ink); margin: 6px 0 12px; text-wrap: balance; }
.lead-story__title a { text-decoration: none; }
.lead-story__lead { font: 400 18px/1.5 var(--serif); margin: 0 0 10px; }
.lead-story.no-image { grid-template-columns: 1fr; }

/* ---------- Dagen en berichten ---------- */
.day { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 20px; padding-top: 22px; }
.day + .day { border-top: 1px solid var(--line); }
.day__head { margin: 0; position: sticky; top: 8px; align-self: start; font-family: var(--sans); }
.day__num { display: block; font-size: 54px; font-weight: 800; line-height: .85; color: var(--red); font-stretch: 80%; letter-spacing: -0.03em; }
.day__label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.25; margin-top: 6px; }
.stories { list-style: none; margin: 0; padding: 0; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.story:last-child { border-bottom: 0; margin-bottom: 0; }
.story.no-image { grid-template-columns: minmax(0, 1fr); }
.story__cat { font: 700 13px/1 var(--sans); color: var(--red); text-decoration: none; }
.story__title { font: 700 21px/1.2 var(--sans); font-stretch: 94%; color: var(--ink); margin: 5px 0 6px; text-wrap: pretty; }
.story__title a { text-decoration: none; }
.story__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--ink); }
.story__lead { margin: 0; font: 400 16px/1.5 var(--serif); color: var(--text); }
.story__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--wash); }
.story__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story.is-draft { opacity: .75; }
.empty { padding: 40px 0; color: var(--muted); }

.page-title, .section-head__title { font: 800 34px/1.1 var(--sans); font-stretch: 92%; color: var(--ink); margin: 0 0 6px; letter-spacing: -0.01em; }
.section-head { padding-bottom: 14px; border-bottom: 3px solid var(--ink); margin-bottom: 4px; }
.subnav { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.subnav a { display: inline-block; font: 600 14px/1 var(--sans); text-decoration: none; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; }
.subnav a:hover { border-color: var(--red); }
.crumbs { font: 600 14px/1.4 var(--sans); color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--red); text-decoration: none; }
.meta { font: 400 14px/1.4 var(--sans); color: var(--muted); margin: 0; }

/* ---------- Paginering ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 3px solid var(--ink); font: 600 15px var(--sans); }
.pager a, .pager span { text-decoration: none; padding: 6px 10px; border-radius: 3px; }
.pager__pages { display: flex; gap: 2px; flex-wrap: wrap; }
.pager [aria-current] { background: var(--ink); color: var(--paper); }
.pager__step { border: 1.5px solid var(--ink); }

/* ---------- Zijbalk ---------- */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.side-block__head { font: 800 20px/1 var(--sans); color: var(--ink); margin: 0 0 12px; padding-top: 10px; border-top: 3px solid var(--red); }
.side-block__head a { text-decoration: none; }
.side-block--ad .side-block__head { border-top-color: var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.side-block--ad img { display: block; margin: 0 auto; }
.agenda-mini, .agenda-list { list-style: none; padding: 0; margin: 0; }
.agenda-mini li, .agenda-list li { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.3; }
.agenda-mini time, .agenda-list time { grid-row: span 2; text-align: center; font: 600 12px/1 var(--sans); color: var(--muted); }
.agenda-mini time span, .agenda-list time span { display: block; font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.agenda-mini a, .agenda-list a { text-decoration: none; font-weight: 600; color: var(--ink); }
.agenda-mini small, .agenda-list small { color: var(--muted); font-size: 13px; display: block; }
.agenda-month h2 { font: 800 22px var(--sans); margin: 28px 0 4px; color: var(--ink); }
.agenda-month--past { opacity: .7; }

/* ---------- Bericht ---------- */
.article { max-width: 720px; }
.article__head { margin-bottom: 18px; }
.article__title { font: 800 clamp(30px, 4.4vw, 46px)/1.05 var(--sans); font-stretch: 90%; letter-spacing: -0.015em; color: var(--ink); margin: 4px 0 14px; text-wrap: balance; }
.article__lead { font: 600 20px/1.5 var(--serif); color: var(--ink); margin: 0 0 20px; }
.article__lead:empty { display: none; }
.prose { font: 400 19px/1.65 var(--serif); color: var(--text); overflow-wrap: break-word; }
.prose p, .prose div { margin: 0 0 1em; }
.prose div > div { margin: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); color: var(--ink); line-height: 1.2; margin: 1.4em 0 .5em; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; } .prose h4 { font-size: 18px; }
.prose a { color: var(--red); text-underline-offset: 2px; }
.prose img { display: block; margin: 1.2em 0; border-radius: 3px; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font: 400 14px/1.4 var(--sans); color: var(--muted); margin-top: 6px; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 20px; border-left: 4px solid var(--red); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; font: 400 15px/1.4 var(--sans); margin: 1.2em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1.2em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.share { font: 600 14px/1 var(--sans); text-decoration: none; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; }
.share:hover { border-color: var(--ink); color: var(--ink); }
.related { max-width: 720px; margin-top: 40px; }
.related__head { font: 800 22px var(--sans); color: var(--ink); padding-top: 12px; border-top: 3px solid var(--ink); margin: 0 0 6px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--line); font: 600 17px/1.35 var(--sans); }
.related li a { text-decoration: none; color: var(--ink); }
.related .muted { font-weight: 400; font-size: 14px; white-space: nowrap; }

/* ---------- Rubrieken ---------- */
.catlist { list-style: none; padding: 0; margin: 0; columns: 2 260px; column-gap: 40px; }
.catlist > li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.catlist__main { font: 700 19px var(--sans); text-decoration: none; color: var(--ink); }
.catlist ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; }
.catlist ul a { color: var(--muted); text-decoration: none; }
.catlist ul a:hover { color: var(--red); }

/* ---------- Formulieren ---------- */
.form-page { max-width: 460px; margin: 20px auto; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.form label { display: flex; flex-direction: column; gap: 5px; font: 600 15px var(--sans); }
.form small { font-weight: 400; color: var(--muted); }
.form input, .admin__filters input, .admin__filters select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--text); }
.form input:focus { border-color: var(--ink); outline: none; }
.button { display: inline-block; align-self: flex-start; font: 700 16px/1 var(--sans); background: var(--red); color: #fff; border: 0; border-radius: 4px; padding: 13px 20px; cursor: pointer; text-decoration: none; }
.button:hover { background: var(--red-dark); color: #fff; }
.button--quiet { background: var(--ink); color: var(--paper); padding: 11px 16px; }
.alert { background: #fde8eb; color: #7d0a1c; padding: 12px 14px; border-radius: 4px; border-left: 4px solid var(--red); }
.notice { background: var(--wash); padding: 14px 16px; border-radius: 4px; border-left: 4px solid var(--ink); margin: 16px 0; }
.notice p { margin: 0 0 10px; }

/* ---------- Beheer ---------- */
.admin__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin__filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; }
.admin__filters input { width: 280px; max-width: 100%; }
.admin__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin__table th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--ink); padding: 8px 10px 8px 0; }
.admin__table td { border-bottom: 1px solid var(--line); padding: 9px 10px 9px 0; vertical-align: top; }
.admin__table td:first-child a { font-weight: 600; text-decoration: none; color: var(--ink); }
.admin__table td:nth-child(3) { white-space: nowrap; }

/* ---------- Voet ---------- */
.footer { background: var(--wash); border-top: 6px solid var(--ink); padding: 32px 0 90px; font-size: 15px; }
.footer__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px 40px; }
.footer p { margin: 8px 0 0; color: var(--muted); }
.footer__links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer__links li { padding: 3px 0; }
.footer__links a { text-decoration: none; font-weight: 600; }
.footer__credit { grid-column: 1 / -1; font-size: 13px; }

/* ---------- Klein scherm ---------- */
@media (max-width: 960px) {
  .columns { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .masthead__row { grid-template-columns: 1fr auto; }
  .masthead__tagline { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead__row { grid-template-columns: 1fr; padding-top: 16px; gap: 12px; }
  .search input { width: 100%; }
  .lead-story { grid-template-columns: 1fr; gap: 14px; }
  .day { grid-template-columns: 1fr; }
  .day__head { position: static; display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
  .day__num { font-size: 34px; }
  .day__label { margin: 0; font-size: 15px; }
  .story { grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
  .story__title { font-size: 18px; }
  .story__lead { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .prose { font-size: 18px; }
  .footer__row { grid-template-columns: 1fr; }
  .admin__table th:nth-child(2), .admin__table td:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.side-note { font-size: 14px; margin: -4px 0 4px; }
.subnav-more { margin-top: 10px; }
.subnav-more summary { cursor: pointer; font: 600 15px var(--sans); color: var(--ink); display: inline-block; padding: 7px 12px; border: 1.5px solid var(--ink); border-radius: 999px; list-style: none; }
.subnav-more summary::-webkit-details-marker { display: none; }
.subnav-more summary::after { content: " +"; }
.subnav-more[open] summary::after { content: " –"; }
@media (max-width: 640px) { .article__lead { font-size: 18px; } }

/* ---------- Beheer: navigatie, statistieken, banners ---------- */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: -8px 0 24px; border-bottom: 1px solid var(--line); }
.admin-nav a { font: 600 15px/1 var(--sans); text-decoration: none; padding: 12px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); }
.admin-nav a:hover { color: var(--ink); }
.admin-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
.admin--narrow { max-width: 620px; }
.small { font-size: 14px; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.period { display: flex; gap: 2px; background: var(--wash); padding: 3px; border-radius: 6px; }
.period a { font: 600 14px/1 var(--sans); text-decoration: none; padding: 9px 12px; border-radius: 4px; color: var(--muted); }
.period a[aria-current] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 30px; }
.tile { padding: 16px 18px; background: var(--wash); border-radius: 6px; }
.tile__label { font: 600 14px var(--sans); color: var(--muted); }
.tile__value { font: 800 36px/1.1 var(--sans); color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; font-stretch: 92%; }
.tile__sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-block { margin-bottom: 32px; }
.stat-block__head { font: 800 20px var(--sans); color: var(--ink); margin: 0 0 12px; }
.stat-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.stat-grid .admin__table td:first-child { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__axis { font: 400 12px var(--sans); fill: var(--muted); }
.chart__mark { fill: var(--red); }
.chart__hit { fill: transparent; }
.chart__bar { outline: none; cursor: default; }
.chart__bar:hover .chart__hit, .chart__bar:focus .chart__hit { fill: var(--wash); }
.chart__bar:hover .chart__mark, .chart__bar:focus .chart__mark { fill: var(--red-dark); }
.chart__tip { position: absolute; top: -6px; pointer-events: none; background: var(--ink); color: var(--paper); font: 400 13px/1.35 var(--sans); padding: 7px 10px; border-radius: 4px; white-space: nowrap; transform: translateY(-100%); }
.chart__tip strong { display: block; font-weight: 700; }
.chart__table { margin-top: 10px; font-size: 14px; }
.chart__table summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.banner-list { list-style: none; padding: 0; margin: 18px 0 0; }
.banner-item { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.banner-item__img { display: flex; align-items: center; justify-content: center; min-height: 60px; background: var(--wash); border-radius: 4px; padding: 6px; }
.banner-item__img img { max-height: 110px; width: auto; }
.banner-item h2 { font: 700 18px var(--sans); margin: 0 0 2px; }
.banner-item h2 a { text-decoration: none; color: var(--ink); }
.banner-item p { margin: 6px 0 0; }
.banner-item .muted { overflow-wrap: anywhere; }
.banner-upload { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.banner-upload__label { font: 600 15px var(--sans); }
.banner-upload__preview { max-width: 300px; border: 1px solid var(--line); border-radius: 4px; background: var(--wash); }
.form .banner-upload__pick { display: inline-flex; flex-direction: row; align-items: center; font: 600 15px var(--sans); padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 4px; cursor: pointer; }
.banner-upload__pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.banner-upload__pick:focus-within { outline: 3px solid var(--focus); }
.danger-zone { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.link-danger { background: none; border: 0; padding: 0; color: var(--red); font: 600 15px var(--sans); cursor: pointer; text-decoration: underline; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-grid { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 640px) { .banner-item { grid-template-columns: 1fr; } .tile__value { font-size: 28px; } }

/* Google-advertentie: desktop in de zijbalk, mobiel onderaan de pagina. Nooit over de inhoud heen. */
.ad-bottom { min-height: 1px; padding-top: 8px; padding-bottom: 32px; }
.ad-bottom[hidden], [data-ad-spot][hidden] { display: none; }
.ad-label { font: 600 13px var(--sans); color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); margin-bottom: 10px; }
.side-block--google .ad-label { margin-top: 0; }
@media (min-width: 961px) { .ad-bottom { display: none !important; } }
