/* hallmark: v2.0.0 | theme: custom-bosgroen | genre: editorial | shape: dossier-workbench | hero: split-photo | nav: top-bar | footer: two-col | signature: cbf-doorlichter-en-anbi-rekenhulp */
/* critique: wit en koel kiezelgrijs met diep bosgroen anker en terracotta actie; nul kaartjesbrij, groepering via witruimte en haarlijnen; 180ms state-transitions stilgezet bij reduced-motion. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f5;
  --bg-tint: #ebf1ee;
  --ink: #16231f;
  --ink-muted: #4b5c56;
  --brand: #12493d;
  --brand-dark: #0c352c;
  --accent: #bf4e26;
  --accent-dark: #9e3d1b;
  --line: #d6dfdb;
  --line-strong: #b7c6bf;
  --ok: #1b6b46;
  --warn: #9a5b13;
  --danger: #a62626;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --container: 1120px;
  --measure: 68ch;
  --radius: 6px;
  --radius-sm: 4px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 30;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.015em;
  flex-shrink: 0;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: var(--brand);
  color: var(--bg);
  display: inline-grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--accent);
}
.main-nav .nav-cta {
  background: var(--brand);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border-bottom: none;
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--brand-dark); color: var(--bg); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* Onafhankelijkheidsbalk */
.notice-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-muted);
  padding: 8px 0;
}
.notice-strip a { color: var(--brand); font-weight: 600; }

/* Hero */
.hero {
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.95rem, 3.6vw, 2.75rem);
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ink);
  overflow-wrap: break-word;
  min-width: 0;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin: 0 0 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-figure {
  margin: 0;
  min-width: 0;
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-figure figcaption {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* Knoppen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--bg); }
.btn-secondary {
  background: var(--bg);
  color: var(--brand);
  border-color: var(--brand);
}
.btn-secondary:hover { background: var(--bg-tint); color: var(--brand-dark); }
.btn-brand {
  background: var(--brand);
  color: var(--bg);
}
.btn-brand:hover { background: var(--brand-dark); color: var(--bg); }

/* Secties */
.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
.section-soft { background: var(--bg-soft); }
.section h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
}
.section h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--brand);
}
.section-intro {
  color: var(--ink-muted);
  max-width: var(--measure);
  margin: 0 0 24px;
}

/* Cijferstrook zonder kaartjes */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
.stat-item strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--brand);
  font-weight: 700;
}
.stat-item span {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* Werkbank / Toolpaneel */
.tool-panel {
  background: var(--bg);
  border-top: 3px solid var(--brand);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.section-soft .tool-panel {
  background: var(--bg);
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  outline: none;
}
.field-help { font-size: 0.84rem; color: var(--ink-muted); }

.result-band {
  margin-top: 24px;
  padding: 20px 22px;
  background: var(--bg-tint);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.result-metric strong {
  display: block;
  font-size: 1.45rem;
  color: var(--brand);
}
.result-metric span {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* Filterchips */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.filter-btn {
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.filter-btn[aria-pressed="true"] {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}
.search-input {
  margin-left: auto;
  min-width: 230px;
  padding: 8px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.92rem;
}

/* Tabellen */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border-top: 1.5px solid var(--brand);
  border-bottom: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
th {
  text-align: left;
  padding: 11px 12px;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }

/* Checklist */
.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.check-list input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

/* Tool-index / Directory lijst (haarlijnen i.p.v. kaarten) */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.dir-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.dir-item h3 { margin: 0 0 6px; font-size: 1.08rem; }
.dir-item h3 a { text-decoration: none; color: var(--brand); }
.dir-item h3 a:hover { color: var(--accent); text-decoration: underline; }
.dir-item p { margin: 0; font-size: 0.94rem; color: var(--ink-muted); }

/* Producttabel / Prijsaanbod (alleen gelijkwaardige prijsblokken) */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.offer-box {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.offer-box.featured { border-top-color: var(--accent); }
.offer-price {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
}
.offer-meta { font-size: 0.88rem; color: var(--ink-muted); }

/* Live document preview */
.doc-preview {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-top: 6px solid var(--brand);
  padding: 24px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.doc-preview h3 { margin-top: 0; color: var(--brand); }
.doc-preview pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-sans);
  margin: 0;
  line-height: 1.55;
}

/* Split layout (tekst + zijpaneel/beeld) */
.split-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: start;
}

/* Artikel / Prose */
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin-top: 32px; }
.article-meta { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 16px; }
.article-hero { margin: 22px 0 28px; }
.article-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.article-hero figcaption { font-size: 0.84rem; color: var(--ink-muted); margin-top: 8px; }

/* Blog-overzicht */
.blog-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.blog-row img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.blog-row h2 { font-size: 1.3rem; margin: 0 0 8px; }
.blog-row h2 a { text-decoration: none; color: var(--ink); }
.blog-row h2 a:hover { color: var(--accent); }

/* Status badges */
.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  color: var(--brand);
}
.tag-ok { background: #e5f3ec; color: var(--ok); }
.tag-warn { background: #fdf3e4; color: var(--warn); }
.tag-danger { background: #fbeaea; color: var(--danger); }

.status-msg { margin-top: 10px; font-size: 0.92rem; color: var(--brand); font-weight: 500; }
.status-err { color: var(--danger); }

/* Footer */
.site-footer {
  background: var(--brand-dark);
  color: #dbe6e2;
  padding: 44px 0 32px;
  font-size: 0.92rem;
}
.site-footer a { color: #f2f7f5; text-decoration: none; }
.site-footer a:hover { color: #f5b397; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #24574a;
}
.footer-col h3 { color: #ffffff; font-size: 0.98rem; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  padding-top: 20px;
  font-size: 0.84rem;
  color: #b5cbc4;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 860px) {
  .hero-grid, .split-2, .directory-grid, .offer-grid, .footer-grid, .form-grid, .result-grid, .blog-row {
    grid-template-columns: 1fr;
  }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-input { margin-left: 0; width: 100%; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
    padding: 16px var(--gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .main-nav.open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
