/* Asbestattest gemene delen. Stijl: papier met een stempel.
   Kobalt alleen voor de verzendknop, de actieve ankerlink en de stempel in het logo. */

:root {
  --paper: #f5f5f4;
  --chalk: #e6e3e2;
  --white: #ffffff;
  --ink: #111111;
  --graphite: #222222;
  --fog: #78716b;
  --fog-text: #6b645e; /* Fog Gray, iets donkerder voor AA-contrast op papier */
  --ice: #d1dee8;
  --ash: #d7d3d1;
  --charcoal: #45403c;
  --cobalt: #165dfb;
  --cobalt-deep: #0f4fe0;

  --r: 8.8px;
  --r-deco: 15px;

  --font: "Figtree", "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --bar-h: 68px;

  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1040px) { :root { --gutter: 32px; --bar-h: 72px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 20px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1040px) { body { font-size: 18px; } }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--ash);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

strong { font-weight: 600; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.frame {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.jump {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: var(--r); text-decoration: none;
}
.jump:focus { top: 12px; }

/* ---------- knoppen ---------- */

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: var(--r);
  font: 500 15px/1.2 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer;
}
.cta-stamp { background: var(--cobalt); color: var(--white); }
.cta-stamp:hover { background: var(--cobalt-deep); }
.cta-ink { background: var(--charcoal); color: var(--white); }
.cta-ink:hover { background: var(--graphite); }
.cta-line { background: transparent; border-color: var(--ice); color: var(--ink); }
.cta-line:hover { border-color: var(--ink); }

/* ---------- kopbalk ---------- */

.bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.bar.is-scrolled, .bar.is-open { border-bottom-color: var(--ice); }
.bar-row { display: flex; align-items: center; gap: 20px; height: 100%; }

.logo {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: var(--ink); text-decoration: none;
}
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-stamp { fill: var(--cobalt); }
.logo-type { display: flex; flex-direction: column; font-size: 16px; line-height: 1.08; letter-spacing: -0.02em; white-space: nowrap; }
.logo-type span:first-child { font-weight: 600; }
.logo-type span:last-child { font-weight: 400; }

.anchors { flex: 1; display: flex; justify-content: center; min-width: 0; }
.anchors ul { display: flex; flex-wrap: nowrap; gap: 2px; list-style: none; }
.anchors a {
  display: block; padding: 8px 12px; border-radius: var(--r);
  font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.anchors a:hover { background: var(--chalk); }
.anchors a[aria-current="location"] { color: var(--cobalt); }
.anchors-extra { display: none; }

.menu-btn {
  display: none; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px; margin-left: auto;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--ice); border-radius: var(--r);
  font: 500 15px/1 var(--font); cursor: pointer;
}
.menu-btn-icon { position: relative; display: block; width: 16px; height: 10px; }
.menu-btn-icon::before, .menu-btn-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.8px;
  background: currentColor; border-radius: 2px; transition: transform .2s, top .2s;
}
.menu-btn-icon::before { top: 1px; }
.menu-btn-icon::after { top: 7px; }
.bar.is-open .menu-btn-icon::before { top: 4px; transform: rotate(45deg); }
.bar.is-open .menu-btn-icon::after { top: 4px; transform: rotate(-45deg); }

@media (min-width: 600px) and (max-width: 1039px) {
  .bar-cta { margin-left: auto; }
  .menu-btn { margin-left: 0; }
}
@media (max-width: 1039px) {
  .menu-btn { display: inline-flex; }
  .anchors {
    display: none;
    position: absolute; top: var(--bar-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--ice);
    padding: 8px var(--gutter) 20px;
  }
  .bar.is-open .anchors { display: block; }
  .anchors ul { flex-direction: column; gap: 0; max-width: 1200px; margin: 0 auto; }
  .anchors a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--ice); }
  .anchors a:hover { background: none; }
  .anchors-extra { display: block; }
  .anchors-extra a { border-bottom: 0; color: var(--cobalt); }
}
@media (max-width: 599px) {
  .bar-cta { display: none; }
}

/* ---------- opener (H1, intro, heldbeeld) ---------- */

.opener { padding-block: 28px 40px; }
@media (min-width: 900px) { .opener { padding-block: 32px 44px; } }

.opener-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.opener-text, .opener-art, .desk { min-width: 0; }
@media (min-width: 900px) {
  .opener-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 48px; align-items: center; }
}

.label-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 10px; margin-bottom: 20px;
  background: var(--chalk); color: var(--fog-text);
  border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.4;
}
.label-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }

h1, h2 { text-wrap: balance; }
.h1-sub {
  display: block; margin-top: 10px;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); font-weight: 500;
  line-height: 1.15; letter-spacing: -0.012em; color: var(--graphite);
}

h1 {
  font-size: clamp(2.5rem, 1.55rem + 3.3vw, 3.625rem);
  line-height: 1.07; letter-spacing: -0.016em; font-weight: 600;
}
.lede { margin-top: 20px; font-size: 18px; line-height: 1.55; }
@media (min-width: 1040px) { .lede { font-size: 19px; } }
.lede-sub { margin-top: 14px; color: var(--graphite); }

.checks { list-style: none; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fog-text); }
.checks li::before, .ticks li::before {
  content: ""; width: 16px; height: 16px; flex: none; background: var(--fog);
  -webkit-mask: var(--check) center / 16px no-repeat; mask: var(--check) center / 16px no-repeat;
}
.updated { margin-top: 12px; font-size: 14px; color: var(--fog-text); }

/* ---------- beelden ---------- */

.plate { background: var(--white); border: 1px solid var(--ice); border-radius: var(--r); padding: 8px; }
.plate img { width: 100%; border-radius: 5px; }
.plate figcaption { padding: 12px 6px 4px; font-size: 14px; line-height: 1.45; color: var(--graphite); }
.chapter .plate { margin-top: 28px; }

/* ---------- bord: inhoud links, aanvraag rechts ---------- */

.board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 80px; }
@media (min-width: 1040px) {
  .board { grid-template-columns: minmax(0, 1fr) 368px; gap: 56px; align-items: start; }
  .desk { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--bar-h) + 20px); }
  .flow { grid-column: 1; grid-row: 1; }
}
@media (min-width: 1040px) and (max-height: 760px) { .desk { position: static; } }
.flow { min-width: 0; }
.desk { max-width: 640px; width: 100%; }

.request { background: var(--white); border: 1px solid var(--ice); border-radius: var(--r); padding: 22px; }
.request h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; }
.request-intro { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--graphite); }
.request-form { display: grid; gap: 12px; margin-top: 18px; }

.field { display: grid; gap: 5px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field-hint { margin-top: -6px; font-size: 13px; color: var(--fog-text); }

.request input:not([type="checkbox"]), .request select {
  width: 100%; height: 44px; padding: 0 12px;
  font: 400 16px/1.2 var(--font); color: var(--ink);
  background: var(--white); border: 1px solid var(--ice); border-radius: var(--r);
  appearance: none;
}
.request select { padding-right: 36px; background: var(--white) var(--chevron) right 12px center / 16px no-repeat; }
.request input:not([type="checkbox"]):focus, .request select:focus { border-color: var(--ink); outline: 2px solid var(--cobalt); outline-offset: 1px; }
.request input:user-invalid { border-color: var(--charcoal); }

.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; color: var(--graphite); }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.request-submit { width: 100%; min-height: 48px; font-size: 16px; }
.request-note { font-size: 13px; color: var(--fog-text); text-align: center; }
.request-status:empty { display: none; }
.request-status { font-size: 14px; background: var(--paper); border-radius: var(--r); padding: 10px 12px; }
.trap-veld { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- verplichtingscheck (centerpiece) ---------- */

.checker { background: var(--white); border: 1px solid var(--ice); border-radius: var(--r); padding: 22px; }
@media (min-width: 700px) { .checker { padding: 30px; } }
.checker h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.2; letter-spacing: -0.014em; font-weight: 500; }
.checker-lead { margin-top: 10px; font-size: 16px; color: var(--graphite); }
.checker-form { display: grid; gap: 18px; margin-top: 22px; }
.checker fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checker legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: inline-block; padding: 10px 14px;
  background: var(--white); border: 1px solid var(--ice); border-radius: var(--r);
  font-size: 15px; font-weight: 500; line-height: 1.2;
}
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.opt input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.verdict { margin-top: 22px; padding: 20px; background: var(--paper); border-radius: var(--r); }
.verdict-state {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600;
}
.verdict[data-staat="nee"] .verdict-state { background: var(--chalk); color: var(--ink); }
.verdict[data-staat="nakijken"] .verdict-state { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ice); }
.verdict-text { margin-top: 10px; font-size: 17px; line-height: 1.55; }
.verdict-clock { margin-top: 6px; font-size: 14px; color: var(--fog-text); }
.verdict-clock:empty { display: none; }
.verdict-cta { margin-top: 16px; }
.verdict-cta[hidden] { display: none; }

/* ---------- hoofdstukken ---------- */

.chapter { padding-top: 72px; }
.chapter-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--fog-text); }
.chapter-tag span {
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 8px;
  background: var(--white); border: 1px solid var(--ice); border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.chapter h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.1875rem); line-height: 1.2; letter-spacing: -0.014em; font-weight: 500; max-width: 24ch; }
.chapter > p { margin-top: 18px; max-width: 66ch; }
.chapter > h2 + p { margin-top: 20px; }
.chapter h3 { margin-top: 40px; font-size: 21px; line-height: 1.35; font-weight: 600; letter-spacing: -0.006em; }
.chapter > h3 + p { margin-top: 10px; }

.panel { margin-top: 72px; padding: 36px 20px 40px; background: var(--chalk); border-radius: var(--r-deco); }
@media (max-width: 599px) { .panel { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; padding-inline: var(--gutter); } }
@media (min-width: 700px) { .panel { padding: 44px 44px 48px; } }
.panel .chapter-tag { color: var(--graphite); }

.source { font-size: 14px; color: var(--fog-text); }
.chapter > .source { margin-top: 14px; }
.source a { color: var(--ink); }

.ticks { list-style: none; margin-top: 16px; display: grid; gap: 10px; max-width: 66ch; }
.ticks li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: start; }
.ticks li::before { margin-top: 0.3em; background: var(--ink); }

/* tijdlijn */
.dates { list-style: none; margin-top: 28px; padding: 10px 0; background: var(--white); border: 1px solid var(--ice); border-radius: var(--r); }
.dates li { position: relative; display: grid; gap: 2px 20px; padding: 14px 22px 14px 54px; }
@media (min-width: 700px) { .dates li { grid-template-columns: 168px 1fr; } }
.dates li::before {
  content: ""; position: absolute; left: 24px; top: 21px; width: 12px; height: 12px;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--white); z-index: 1;
}
.dates li::after { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 1px; background: var(--ice); }
.dates li:first-child::after { top: 24px; }
.dates li:last-child::after { bottom: calc(100% - 24px); }
.dates time { font-size: 16px; font-weight: 600; }
.dates-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.dates p { font-size: 16px; line-height: 1.5; }
.dates .is-past { color: var(--fog-text); }
.dates .is-past::before { border-color: var(--fog); background: var(--fog); }
.dates .is-next::before { background: var(--ink); }
.dates-flag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-size: 12px; font-weight: 600; line-height: 1.6;
}

/* tabellen */
.scroller { margin-top: 28px; overflow-x: auto; background: var(--white); border: 1px solid var(--ice); border-radius: var(--r); }
.grid-table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.grid-table caption { caption-side: top; text-align: left; padding: 16px 20px 8px; font-size: 14px; font-weight: 500; color: var(--fog-text); }
.grid-table th, .grid-table td { padding: 13px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--ice); }
.grid-table thead th { border-top: 0; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--fog-text); }
.grid-table tbody th { font-weight: 500; }
.grid-table .num { font-weight: 600; white-space: nowrap; }
.panel .scroller { border-color: transparent; }

/* stappen */
.route { list-style: none; counter-reset: stap; margin-top: 28px; display: grid; gap: 10px; }
.route li {
  counter-increment: stap; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px;
  padding: 18px 20px; background: var(--white); border: 1px solid var(--ice); border-radius: var(--r);
}
.route li::before { content: counter(stap, decimal-leading-zero); grid-row: span 2; font-size: 26px; font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }
.chapter .route h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.route p { font-size: 16px; line-height: 1.55; }

/* rollen */
.roles { margin-top: 28px; display: grid; gap: 10px; }
@media (min-width: 760px) { .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.roles div { padding: 20px; background: var(--white); border-radius: var(--r); }
.roles dt { font-size: 18px; font-weight: 600; }
.roles dd { margin-top: 8px; font-size: 16px; line-height: 1.55; }

/* tip */
.remark { margin-top: 28px; display: grid; gap: 8px; padding: 20px 22px; background: var(--white); border: 1px solid var(--ice); border-radius: var(--r); max-width: 66ch; }
@media (min-width: 700px) { .remark { grid-template-columns: auto 1fr; gap: 16px; align-items: start; } }
.remark-label {
  display: inline-block; justify-self: start; padding: 2px 10px; border-radius: 999px;
  background: var(--chalk); font-size: 13px; font-weight: 600;
}
.remark p:last-child { font-size: 16px; line-height: 1.55; }

/* vragen */
.qa-list { margin-top: 28px; display: grid; gap: 10px; }
.qa { padding: 20px 22px; background: var(--white); border: 1px solid var(--ice); border-radius: var(--r); }
.chapter .qa h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.qa p { margin-top: 8px; font-size: 16px; line-height: 1.6; }

/* ---------- afsluiter en voet ---------- */

.closing { background: var(--chalk); padding-block: 56px; }
@media (min-width: 900px) { .closing { padding-block: 72px; } }
.closing-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.closing h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem); line-height: 1.15; letter-spacing: -0.014em; font-weight: 500; max-width: 22ch; }
.closing p { margin-top: 12px; color: var(--graphite); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.closing .cta-line { background: var(--paper); }

.base { padding-block: 56px 28px; font-size: 15px; }
.base-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .base-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; } }
.base-about p { margin-top: 16px; max-width: 40ch; color: var(--graphite); }
.base-h { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.base ul { list-style: none; display: grid; gap: 8px; }
.base-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; padding-top: 20px;
  border-top: 1px solid var(--ice); font-size: 14px; color: var(--fog-text);
}

/* ---------- mobiele knop naar het formulier ---------- */

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--ice);
}
.dock[hidden] { display: none; }
.dock .cta { width: 100%; min-height: 48px; font-size: 16px; }
@media (max-width: 1039px) { .base { padding-bottom: 104px; } }
@media (min-width: 1040px) { .dock { display: none !important; } }

/* ---------- tabellen op telefoons: elke rij een blok met labels ---------- */

@media (max-width: 599px) {
  .scroller { overflow: visible; }
  .grid-table { min-width: 0; }
  .grid-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .grid-table tbody, .grid-table tr, .grid-table tbody th, .grid-table td { display: block; }
  .grid-table caption { display: block; padding: 16px 16px 4px; }
  .grid-table tbody tr { padding: 14px 16px; border-top: 1px solid var(--ice); }
  .grid-table tbody th { padding: 0 0 6px; border-top: 0; font-size: 16px; font-weight: 600; }
  .grid-table td {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px;
    padding: 5px 0; border-top: 0; white-space: normal;
  }
  .grid-table td::before { content: attr(data-label); font-size: 14px; font-weight: 500; color: var(--fog-text); }
  .grid-table .num { white-space: normal; }
}
