:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --text: #1c2321;
  --muted: #5f6862;
  --border: #e2dac8;
  --brand: #0f5c4d;
  --brand-ink: #ffffff;
  --accent: #f2c230;
  --accent-ink: #1c2321;
  --ok: #2a9d68;
  --warn: #d9920b;
  --bad: #d6342b;
  --ok-bg: #e3f3ea;
  --warn-bg: #fbf0d4;
  --bad-bg: #fbe3e0;
  --radius: 14px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101a17;
    --surface: #17241f;
    --text: #f1eee4;
    --muted: #9fada5;
    --border: #274038;
    --brand: #4fc3a5;
    --brand-ink: #0b1a15;
    --ok: #3cc58a;
    --warn: #eba92a;
    --bad: #f0584d;
    --ok-bg: #123324;
    --warn-bg: #3a2d0c;
    --bad-bg: #3d1a17;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.55;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.01em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { border-bottom: 2px solid var(--text); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-svg { width: 38px; height: 38px; flex: none; }
.logo-svg .bubble { fill: var(--brand); }
.logo-svg .pulse { stroke: var(--bg); }
.logo-text { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.logo-text span { color: var(--brand); }
.main-nav { display: flex; gap: 22px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.main-nav a:hover { border-color: var(--accent); }
.main-nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 8px 16px; }
  .logo-text { font-size: 1.12rem; }
  .logo-svg { width: 32px; height: 32px; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .88rem; }
}

/* Hero */
.hero { padding: 54px 0 18px; max-width: 760px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); margin-bottom: 10px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1.04; margin: 0 0 14px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 24px; max-width: 560px; }
.search { position: relative; max-width: 560px; }
.search input {
  width: 100%; padding: 16px 18px 16px 50px; font: inherit; font-size: 1.05rem; border-radius: 12px;
  border: 2px solid var(--text); background: var(--surface); color: var(--text); box-shadow: 4px 4px 0 var(--text);
}
.search input:focus { outline: none; box-shadow: 4px 4px 0 var(--accent); border-color: var(--text); }
.search-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font-size: 1.15rem; pointer-events: none; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 12px); background: var(--surface);
  border: 2px solid var(--text); border-radius: 12px; box-shadow: 4px 4px 0 var(--text); overflow: hidden; z-index: 10;
}
.suggest a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; text-decoration: none; }
.suggest a:hover, .suggest a:focus { background: var(--bg); outline: none; }
.suggest .empty { padding: 14px 16px; color: var(--muted); }
.tally { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 22px 0 0; font-weight: 600; font-size: .95rem; }
.tally span { display: inline-flex; align-items: center; gap: 8px; }

/* Status stip en label */
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 0 rgba(214, 52, 43, .55); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(214, 52, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 52, 43, 0); } }
@media (prefers-reduced-motion: reduce) { .dot.bad { animation: none; } html { scroll-behavior: auto; } }
.badge-logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 800; font-size: .8rem; flex: none; letter-spacing: .02em; }
.status-label { font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.status-label.warn { background: var(--warn-bg); color: var(--warn); }
.status-label.bad { background: var(--bad-bg); color: var(--bad); }

/* Secties */
.section { margin: 44px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; border-bottom: 2px solid var(--text); padding-bottom: 8px; }
.section h2 { margin: 0; font-size: 1.5rem; }
.section-head small { color: var(--muted); }

/* Bord met actuele storingen */
.board { display: grid; gap: 0; border: 2px solid var(--text); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 140px auto; gap: 16px; align-items: center;
  padding: 14px 18px; text-decoration: none; border-top: 1px solid var(--border);
}
.row:first-child { border-top: 0; }
.row:hover { background: var(--bg); }
.row-name strong { display: block; line-height: 1.2; }
.row-name small { color: var(--muted); }
.spark { display: block; width: 100%; height: 34px; }
.row.bad { box-shadow: inset 6px 0 0 var(--bad); }
.row.warn { box-shadow: inset 6px 0 0 var(--warn); }
@media (max-width: 600px) { .row { grid-template-columns: 40px minmax(0, 1fr) auto; } .row .spark { display: none; } }
.calm { padding: 22px; border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface); }
.calm strong { font-family: var(--serif); font-size: 1.2rem; }

/* Tabs en overzicht */
.tabs { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { border: 0; background: none; color: var(--muted); padding: 6px 0; cursor: pointer; font: inherit; font-weight: 700; border-bottom: 3px solid transparent; }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.dir { columns: 3 230px; column-gap: 28px; }
.dir-item { display: flex; align-items: center; gap: 10px; padding: 9px 4px; text-decoration: none; border-bottom: 1px solid var(--border); break-inside: avoid; }
.dir-item:hover .dir-name { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dir-name { flex: 1; font-weight: 600; }
.dir-item .status-label { font-size: .65rem; padding: 2px 7px; }
.dir-cat { color: var(--muted); font-size: .8rem; }

/* Advertenties */
.ad-slot {
  display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .8rem;
  border: 2px dashed var(--border); border-radius: var(--radius); min-height: 90px; margin: 32px 0;
}
.ad-slot.tall { min-height: 250px; margin: 0; }
.ad-slot span { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.ad-live { margin: 32px 0; text-align: center; overflow: hidden; }
.ad-live.tall { margin: 0; }
.ad-live:empty { display: none; }

/* Detailpagina */
.crumbs { margin: 24px 0 14px; font-size: .88rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 2px solid var(--text); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.panel h2 { margin: 0 0 12px; font-size: 1.25rem; }
.answer { border-left-width: 10px; padding: 26px 26px 24px; }
.answer.ok { border-left-color: var(--ok); }
.answer.warn { border-left-color: var(--warn); }
.answer.bad { border-left-color: var(--bad); }
.answer-head { display: flex; align-items: center; gap: 14px; }
.answer-head .badge-logo { width: 52px; height: 52px; font-size: 1rem; }
.answer-q { margin: 0; color: var(--muted); font-weight: 600; font-family: var(--sans); font-size: 1rem; letter-spacing: 0; }
.answer-a { font-family: var(--serif); font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.08; margin: 2px 0 0; letter-spacing: -.02em; }
.answer.ok .answer-a { color: var(--ok); }
.answer.warn .answer-a { color: var(--warn); }
.answer.bad .answer-a { color: var(--bad); }
.answer-note { margin: 14px 0 0; font-size: 1.05rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); }
.facts div { display: flex; flex-direction: column; }
.facts b { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.facts span { color: var(--muted); font-size: .82rem; }
.cta { margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 800;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--text); padding: 13px 22px; border-radius: 12px;
  box-shadow: 3px 3px 0 var(--text); transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--text); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--text); }
.btn:disabled { background: var(--border); color: var(--muted); cursor: default; box-shadow: none; transform: none; border-color: var(--border); }
.hint { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
.hint.err { color: var(--bad); font-weight: 600; }
.hint.err:empty { display: none; }

.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart .area { fill: var(--brand); opacity: .14; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .band { fill: var(--ok); opacity: .1; }
.chart .limit { stroke-dasharray: 4 4; stroke-width: 1.2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .82rem; margin-top: 8px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px dashed; vertical-align: middle; margin-right: 6px; }

.comments { list-style: none; padding: 0; margin: 14px 0 0; }
.comments li { padding: 12px 0; border-top: 1px solid var(--border); }
.comments .who { font-weight: 700; font-size: .92rem; }
.comments time { color: var(--muted); font-size: .8rem; margin-left: 8px; }
.comments p { margin: 4px 0 0; }
form.comment-form { display: grid; gap: 10px; }
form.comment-form input, form.comment-form textarea {
  font: inherit; padding: 11px 13px; border-radius: 10px; border: 2px solid var(--border); background: var(--bg); color: var(--text); width: 100%;
}
form.comment-form input:focus, form.comment-form textarea:focus { outline: none; border-color: var(--text); }
form.comment-form textarea { min-height: 84px; resize: vertical; }
form.comment-form .btn { justify-self: start; padding: 10px 18px; }
.tips { margin: 0; padding-left: 20px; color: var(--muted); }
.tips li { margin-bottom: 6px; }
.related { display: grid; gap: 4px; }
.related a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; text-decoration: none; }
.related a:hover { background: var(--bg); }
.related .badge-logo { width: 30px; height: 30px; font-size: .68rem; }
.card-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

.notice { margin-top: 20px; padding: 12px 16px; border-radius: 10px; background: var(--warn-bg); border: 2px solid var(--warn); color: var(--text); font-weight: 600; }

/* Tekstpagina's */
.prose { max-width: 720px; margin: 40px auto; }
.prose h1 { margin-top: 0; font-size: 2.3rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.3rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

/* Cookiebanner */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 760px; margin-inline: auto;
  background: var(--surface); border: 2px solid var(--text); border-radius: var(--radius); padding: 18px 20px; box-shadow: 5px 5px 0 var(--text);
}
.consent[hidden] { display: none; }
.consent h2 { margin: 0 0 6px; font-size: 1.1rem; }
.consent p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { padding: 9px 18px; }
.consent-actions .btn.secondary { background: transparent; color: var(--text); box-shadow: none; }

/* Footer */
.site-footer { margin-top: 70px; border-top: 2px solid var(--text); color: var(--muted); font-size: .88rem; }
.footer-inner { padding: 26px 0 34px; }
.footer-inner p { margin: 0 0 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
