/* ── SIVON brand tokens ── */
:root {
  --red:      #dc4228;
  --gold:     #cbb356;
  --gold-dark:#907c30;
  --blue:     #a8ced9;
  --blue-mid: #516a79;
  --grey:     #34444d;
  --grey1:    #516a79;
  --grey2:    #a8c1d9;
  --grey3:    #f4f9ff;
  --offwhite: #f8f8f5;
  --white:    #ffffff;
  --max-w:    1400px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--grey);
  background: var(--white);
}

/* ── Utility ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header / Nav ── */
header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid #e4ecf0;
  z-index: 100;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--grey);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--grey);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .2s;
}

.nav-links a:hover { color: var(--gold); }

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-tekst { flex: 1; }

.hero-acties { flex-shrink: 0; }

.hero-download-btn {
  display: inline-block;
  padding: .55rem 1.25rem;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  border: 2px solid var(--gold);
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.hero-download-btn:hover {
  background: var(--gold);
  color: var(--grey);
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grey);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ── Hero ── */
.hero {
  background: var(--grey);
  color: var(--white);
  padding: 2.5rem 0 2.25rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .85rem;
  color: var(--white);
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 640px;
  opacity: 0.88;
  margin-bottom: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .65rem 1.6rem;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--grey);
}

.btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--grey);
  border-color: var(--white);
}

/* ── Sections ── */
.section-light { background: var(--grey3); }
.section-white { background: var(--white); }

.section-light .container,
.section-white .container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--grey1);
  margin-bottom: 1rem;
  line-height: 1.25;
}

p {
  color: var(--grey);
  margin-bottom: 1.25rem;
}

p:last-child { margin-bottom: 0; }

/* ── Sectie intro ── */
.sectie-intro {
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ── Footer links ── */
footer a {
  color: rgba(255,255,255,.6);
  text-decoration: underline;
}

/* ── Beslisboom ── */
.beslisboom {
  max-width: 860px;
}

/* ── Stap-voor-stap navigatie ── */
.bb-stappen {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bb-stap-sectie {
  border-left: 4px solid var(--grey2);
  padding: 0 0 2rem 1.5rem;
  position: relative;
}

.bb-stap-sectie:last-of-type {
  padding-bottom: .5rem;
}

.bb-stap-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0 1rem;
  flex-wrap: wrap;
}

.bb-stap-cirkel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-left: -1.85rem; /* pull onto the border line */
  box-shadow: 0 0 0 3px var(--white);
}

.bb-stap-cirkel--a { background: var(--blue-mid); }
.bb-stap-cirkel--b { background: var(--red); }
.bb-stap-cirkel--c { background: #2d8a4e; }
.bb-stap-cirkel--d { background: var(--gold-dark); }

.bb-stap-header-tekst {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.bb-stap-header-tekst strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--grey);
  line-height: 1.3;
}

.bb-stap-omschrijving {
  font-size: .85rem;
  color: var(--grey1);
}

.bb-stap-status {
  flex-shrink: 0;
  margin-top: .15rem;
}

.bb-stap-inhoud {
  /* content directly below header */
}

/* Status-badge (uitkomst) */
.bb-blok-badge {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 800;
  padding: .15rem .55rem;
  border-radius: 2px;
  letter-spacing: .03em;
  color: var(--white);
}

.bb-blok-badge--av-ja     { background: var(--blue-mid); }
.bb-blok-badge--geen-av   { background: #2d8a4e; }
.bb-blok-badge--verboden  { background: var(--red); }
.bb-blok-badge--hoog      { background: var(--gold-dark); }
.bb-blok-badge--niet-hoog { background: #2d8a4e; }

/* Voortgang-tekst */
.bb-blok-voortgang {
  font-size: .75rem;
  font-weight: 700;
  color: var(--grey1);
}

/* Kaart: linker rand per blok/fase */
.bb-card--a  { border-left-color: var(--blue-mid); }
.bb-card--b2 { border-left-color: var(--red); }
.bb-card--b3 { border-left-color: var(--gold-dark); }

/* Deel-badge in stapnr */
.bb-stap-deel {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 800;
  padding: .1rem .45rem;
  border-radius: 2px;
  letter-spacing: .04em;
  color: var(--white);
}

.bb-stap-deel--a  { background: var(--blue-mid); }
.bb-stap-deel--b2 { background: var(--red); }
.bb-stap-deel--b3 { background: var(--gold-dark); }
.bb-stap-deel--c  { background: #2d8a4e; }

/* Voortgangsbalk */
.bb-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bb-progress-track {
  flex: 1;
  height: 6px;
  background: var(--grey2);
  border-radius: 3px;
  overflow: hidden;
}

.bb-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width .4s ease;
  width: 0%;
}

.bb-progress-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--grey1);
  white-space: nowrap;
}

/* Breadcrumb */
.bb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
  min-height: 1.5rem;
}

.bb-crumb {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 2px;
}

.bb-crumb-ja {
  background: #d4edda;
  color: #1a5e2a;
}

.bb-crumb-nee {
  background: #f8d7da;
  color: #7b1d22;
}

.bb-crumb-label {
  opacity: .7;
  font-weight: 600;
}

/* Vraag-kaart */
.bb-card {
  background: var(--grey3);
  border-left: 4px solid var(--gold);
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 1.5rem;
}

.bb-stap-label {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--grey1);
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.bb-optioneel {
  font-size: .72rem;
  font-weight: 700;
  color: var(--white);
  background: var(--grey1);
  padding: .1rem .45rem;
  border-radius: 2px;
  letter-spacing: .04em;
}

/* Criteria-lijst (uitklapbaar) */
.bb-criteria-wrap {
  background: var(--white);
  border: 1px solid var(--grey2);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  animation: bbSlideIn .2s ease;
}

@keyframes bbSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bb-criteria-inhoud {
  font-size: .88rem;
  color: var(--grey);
  line-height: 1.6;
}

.bb-criteria-inhoud p {
  max-width: 100%;
  margin-bottom: .75rem;
}

.bb-criteria-inhoud p:last-child { margin-bottom: 0; }

.bb-criteria-inhoud ul,
.bb-criteria-inhoud ol {
  padding-left: 1.35rem;
  margin-bottom: .75rem;
}

.bb-criteria-inhoud li {
  margin-bottom: .35rem;
  line-height: 1.55;
}

.bb-criteria-inhoud li:last-child { margin-bottom: 0; }

.bb-criteria-inhoud strong { color: var(--grey); }

.bb-criteria-inhoud em {
  color: var(--grey1);
  font-style: italic;
}

.bb-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--grey);
  margin-bottom: 1rem;
  line-height: 1.35;
}

.bb-toelichting {
  font-size: .9rem;
  color: var(--grey1);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.bb-toelichting strong {
  color: var(--grey);
}

.bb-knoppen {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.bb-btn {
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  padding: .6rem 1.75rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.bb-btn-ja {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--grey);
}

.bb-btn-ja:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

.bb-btn-nee {
  background: transparent;
  border-color: var(--grey1);
  color: var(--grey1);
}

.bb-btn-nee:hover {
  background: var(--grey1);
  color: var(--white);
}

.bb-btn-onzeker {
  background: transparent;
  border-color: transparent;
  color: var(--grey1);
  font-weight: 600;
  text-decoration: underline;
  padding-left: .5rem;
  padding-right: .5rem;
}

.bb-btn-onzeker:hover {
  color: var(--grey);
}

.bb-btn-onzeker-used {
  opacity: .35;
  text-decoration: none;
  cursor: default;
}

/* Resultaat */
.bb-result {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.bb-result-verboden {
  background: #fdf0ee;
  border-left: 4px solid var(--red);
}

.bb-result-hoog {
  background: #fdf6e3;
  border-left: 4px solid var(--gold);
}

.bb-result-geen-av {
  background: #edf7f0;
  border-left: 4px solid #2d8a4e;
}

.bb-result-niet-hoog {
  background: #edf7f0;
  border-left: 4px solid #2d8a4e;
}

.bb-result h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .6rem;
  color: var(--grey);
}

.bb-result p {
  font-size: .95rem;
  max-width: 100%;
}

/* Opnieuw beginnen */
.bb-reset {
  margin-top: .5rem;
}

.btn-sm {
  padding: .45rem 1.2rem;
  font-size: .875rem;
}

.hidden { display: none; }

/* ── Intro: lees verder ── */
.intro-meer-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.intro-meer-btn:hover { color: var(--grey); }

.intro-meer-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform .25s ease;
  color: currentColor;
}

.intro-meer-btn[aria-expanded="true"] .intro-meer-icon {
  transform: rotate(180deg);
}

details.intro-meer > summary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
  list-style: none;
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
details.intro-meer > summary::-webkit-details-marker { display: none; }
details.intro-meer > summary::after {
  content: ' ↓';
  font-weight: 400;
}
details.intro-meer[open] > summary::after { content: ' ↑'; }

details.bb-deel-c-meer { border: none; background: none; }
details.bb-deel-c-meer > summary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
  list-style: none;
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
details.bb-deel-c-meer > summary::-webkit-details-marker { display: none; }
details.bb-deel-c-meer > summary::after { content: ' ↓'; font-weight: 400; }
details.bb-deel-c-meer[open] > summary::after { content: ' ↑'; }

.intro-meer {
  margin-top: 2rem;
  border-top: 2px solid var(--grey2);
  padding-top: 2rem;
  animation: introSlideIn .25s ease;
}
details.intro-meer { border-top: none; padding-top: 0; margin-top: 0; }

@keyframes introSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-meer h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--grey1);
  margin-bottom: .75rem;
  margin-top: 2rem;
  line-height: 1.3;
}

.intro-meer h3:first-child { margin-top: 0; }

.intro-meer p {
  font-size: .95rem;
  margin-bottom: 1rem;
}

.intro-meer p:last-child { margin-bottom: 0; }
.bb-stap-omschrijving .intro-meer p { font-size: inherit; color: inherit; }
.bb-stap-omschrijving details.intro-meer { margin-top: 0; }
.bb-stap-omschrijving details.intro-meer > summary { margin-top: 0; }

.intro-meer a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.intro-meer a:hover { color: var(--grey); }

.intro-lijst {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.intro-lijst li {
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: .75rem;
  color: var(--grey);
}

.intro-lijst li:last-child { margin-bottom: 0; }

.intro-voetnoten {
  margin-top: 2rem;
  padding-top: 1.25rem;
  padding-left: 1.25rem;
  border-top: 1px solid var(--grey2);
}

.intro-voetnoten li {
  font-size: .82rem;
  color: var(--grey1);
  line-height: 1.6;
  margin-bottom: .4rem;
}

.intro-voetnoten li a {
  color: var(--grey1);
  font-size: .8rem;
}

/* ── Voetnoot-verwijzingen (superscript in lopende tekst) ── */
sup a {
  font-size: .65em;
  vertical-align: super;
  line-height: 0;
  color: var(--blue-mid);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .01em;
}

sup a:hover { text-decoration: underline; }

/* ── Colofon ── */
.colofon-meta {
  display: grid;
  gap: 0;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--grey2);
}

.colofon-rij {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--grey2);
  align-items: baseline;
}

.colofon-meta dt {
  font-weight: 700;
  color: var(--grey1);
  font-size: .9rem;
}

.colofon-meta dd {
  font-size: .95rem;
  color: var(--grey);
  margin: 0;
}

#colofon p {
  font-size: .95rem;
  color: var(--grey);
  margin-bottom: 1rem;
}

#colofon p:last-child { margin-bottom: 0; }

/* ── Footer ── */
footer {
  background: var(--grey);
  color: rgba(255,255,255,.6);
  font-size: .875rem;
}

footer .container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ── Result: av-ja ── */
.bb-result-av-ja {
  background: #edf4fb;
  border-left: 4px solid var(--blue-mid);
}

/* ── Hoofdvraag intro block ── */
.bb-hoofd-intro {
  background: var(--white);
  border: 1px solid var(--grey2);
  padding: .85rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
  color: var(--grey1);
}
.bb-hoofd-intro p { max-width: 100%; margin: 0; }

/* ── 3-button row ── */
.bb-knoppen-3 { flex-wrap: wrap; gap: .6rem; }
.bb-knoppen-3 .bb-btn-onzeker {
  border: 2px solid var(--grey2);
  text-decoration: none;
  padding: .6rem 1.25rem;
  font-size: .9rem;
}
.bb-knoppen-3 .bb-btn-onzeker:hover {
  border-color: var(--grey1);
  background: var(--grey3);
}

/* ── Hulpvragen ── */
.bb-hulpvragen {
  background: #edf4fb;
  border-left: 3px solid var(--blue-mid);
  padding: .85rem 1.1rem;
  margin-bottom: 1rem;
  font-size: .88rem;
}
.bb-hulpvragen-titel {
  font-weight: 700;
  color: var(--grey1);
  margin-bottom: .5rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  max-width: 100%;
}
.bb-hulpvragen-voetnoot {
  margin-top: .5rem;
  font-size: .78rem;
  color: var(--grey2);
  font-style: italic;
}
.bb-nb {
  font-size: .88rem;
  color: var(--grey1);
  margin-bottom: .75rem;
}
.bb-hulpvragen ul {
  padding-left: 1.25rem;
  margin: 0;
}
.bb-hulpvragen li {
  margin-bottom: .3rem;
  color: var(--grey);
  line-height: 1.55;
}
.bb-hulpvragen li:last-child { margin-bottom: 0; }

/* Geneste sub-hulpvragen (bijv. ML-technieken onder criterium 5) */
.bb-sub-hulpvragen {
  margin: .4rem 0 0 0;
  padding-left: 1.1rem;
}
.bb-sub-hulpvragen > li { margin-bottom: .3rem; }
.bb-sub-hulpvragen .bb-info-detail { margin: 0; border: none; background: none; }
.bb-sub-hulpvragen .bb-info-detail > summary {
  font-weight: 600;
  color: var(--blue-mid);
  cursor: pointer;
  padding: .15rem 0;
}
.bb-sub-hulpvragen .bb-info-detail:not([open]) > summary::after {
  content: ' — Lees verder';
  font-weight: 400;
  font-size: .82em;
  color: var(--grey2);
}
.bb-sub-hulpvragen .bb-info-detail ul {
  margin: .35rem 0 .35rem .25rem;
  padding-left: 1.1rem;
}
.bb-sub-hulpvragen .bb-info-detail li {
  margin-bottom: .25rem;
  color: var(--grey);
}

/* ── Info boxes ── */
.bb-info-box {
  padding: .75rem 1rem;
  font-size: .88rem;
  margin-bottom: 1rem;
  border-radius: 2px;
  line-height: 1.55;
}
.bb-info-uitzondering {
  background: #fff8e1;
  border-left: 3px solid var(--gold);
  color: var(--grey);
}
.bb-info-voorbeeld {
  background: var(--grey3);
  border-left: 3px solid var(--grey2);
  color: var(--grey1);
  font-style: italic;
}
.bb-info-warning {
  background: #fff3cd;
  border-left: 3px solid #e6a817;
  color: #7a5200;
}

/* ── Inline antwoord colours (samenvatting) ── */
.bb-inline-ja  { color: #1a5e2a; font-weight: 700; }
.bb-inline-nee { color: #7b1d22; font-weight: 700; }

/* ── Expandable detail blocks ── */
.bb-info-detail {
  margin: 1rem 0;
  border: 1px solid var(--grey2);
  border-radius: 2px;
  font-size: .88rem;
}
.bb-info-detail summary {
  cursor: pointer;
  padding: .65rem 1rem;
  font-weight: 700;
  color: var(--grey1);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .4rem;
  user-select: none;
}
.bb-info-detail summary::-webkit-details-marker { display: none; }
.bb-info-detail summary::before {
  content: '▸';
  font-size: .8rem;
  flex-shrink: 0;
  color: var(--gold-dark);
  transition: transform .2s;
}
.bb-info-detail[open] summary::before { transform: rotate(90deg); }
.bb-info-detail summary::after {
  content: '↓';
  font-size: .9rem;
  font-weight: 400;
  color: var(--grey1);
  flex-shrink: 0;
  margin-left: auto;
}
.bb-info-detail[open] summary::after { content: '↑'; }
.bb-info-detail > ul,
.bb-info-detail > p {
  padding: .5rem 1rem .85rem 1.5rem;
  margin: 0;
  max-width: 100%;
}
.bb-info-detail > ul { padding-left: 2.5rem; }
.bb-info-detail > ul li { margin-bottom: .35rem; }
.bb-info-detail--warning {
  border-color: #e6a817;
  background: #fffdf0;
}
.bb-info-detail--warning summary { color: #7a5200; }

/* ── Samenvatting (details) ── */
.bb-samenvatting {
  margin: 1.25rem 0 .5rem;
  border: 1px solid var(--grey2);
  border-radius: 2px;
  font-size: .88rem;
}
.bb-samenvatting summary {
  cursor: pointer;
  padding: .6rem 1rem;
  font-weight: 700;
  color: var(--grey1);
  list-style: none;
  user-select: none;
}
.bb-samenvatting summary::-webkit-details-marker { display: none; }
.bb-samenvatting > ul {
  padding: .25rem 1rem .75rem 2.25rem;
  margin: 0;
}
.bb-samenvatting li {
  margin-bottom: .35rem;
  color: var(--grey);
  line-height: 1.55;
}
.bb-samenvatting p {
  padding: .25rem 1rem 0;
  max-width: 100%;
  font-size: .88rem;
}

/* ── Algo checklist ── */
.bb-algo-section { margin-top: 1.25rem; }

.bb-algo-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  color: var(--grey1);
  background: var(--grey3);
  border: 1px solid var(--grey2);
  padding: .55rem 1rem;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s;
}
.bb-algo-toggle:hover { background: var(--white); }

.bb-algo-icon {
  width: .95rem;
  height: .95rem;
  flex-shrink: 0;
  transition: transform .25s;
}

.bb-algo-content {
  margin-top: .5rem;
  border: 1px solid var(--grey2);
  border-radius: 2px;
}

.bb-algo-intro {
  font-size: .88rem;
  color: var(--grey1);
  padding: .75rem 1rem .25rem;
  margin: 0;
  max-width: 100%;
}

.bb-algo-item {
  border-bottom: 1px solid var(--grey2);
  font-size: .88rem;
}
.bb-algo-item:last-child { border-bottom: none; }
.bb-algo-item summary {
  cursor: pointer;
  padding: .6rem 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  user-select: none;
  color: var(--grey);
}
.bb-algo-item summary::-webkit-details-marker { display: none; }
.bb-algo-nr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--grey1);
  color: var(--white);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.bb-algo-item > p,
.bb-algo-item > ul {
  padding: .25rem 1rem .75rem 2.75rem;
  margin: 0;
  max-width: 100%;
}
.bb-algo-item > ul { padding-left: 3.25rem; }
.bb-algo-item > ul li { margin-bottom: .3rem; color: var(--grey1); }

/* ── Verboden-blok (B1 lijstweergave) ── */
.bb-verboden-blok {
  background: var(--offwhite);
  border: 1px solid var(--grey2);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.bb-verboden-cat-titel {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--grey1);
  margin: 0 0 .5rem;
  max-width: 100%;
}
.bb-verboden-cat-titel + .bb-verboden-lijst { margin-bottom: 1rem; }
.bb-verboden-cat-titel:first-child { margin-top: 0; }
.bb-verboden-blok .bb-verboden-cat-titel:not(:first-child) { margin-top: 1rem; }

.bb-verboden-lijst {
  padding-left: 1.3rem;
  margin: 0;
}
.bb-verboden-lijst li {
  font-size: .88rem;
  color: var(--grey);
  line-height: 1.55;
  margin-bottom: .35rem;
}
.bb-verboden-lijst li:last-child { margin-bottom: 0; }

/* Active state for answer buttons in B1 */
.bb-btn-actief { opacity: 1 !important; outline: 3px solid var(--grey); outline-offset: 2px; }

/* ── Checklist items ── */
.bb-checklist { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }

.bb-check-sectie-titel {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--grey1);
  margin: 1rem 0 .5rem;
}
.bb-check-sectie-titel:first-child { margin-top: 0; }

.bb-check-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  background: var(--offwhite);
  border: 1px solid var(--grey2);
  border-radius: 2px;
  font-size: .88rem;
  line-height: 1.5;
  transition: background .15s, border-color .15s;
}
.bb-check-item--gevaar { background: #fdf0ee; border-color: #f0b8b0; }
.bb-check-item--ok     { background: #edf7f0; border-color: #9dcfb0; }
.bb-check-item--nee    { background: var(--offwhite); border-color: var(--grey2); opacity: .7; }

.bb-check-tekst {
  flex: 1;
  color: var(--grey);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.bb-check-sub {
  font-size: .82rem;
  color: var(--grey1);
  font-style: italic;
}

.bb-uitz-letter {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--grey1);
}

.bb-check-antwoord {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

.bb-check-btn {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border: 2px solid var(--grey2);
  background: var(--white);
  color: var(--grey1);
  cursor: pointer;
  border-radius: 2px;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.bb-check-btn:hover              { border-color: var(--grey1); background: var(--grey3); }
.bb-check-btn--gevaar-actief     { background: #dc4228; border-color: #dc4228; color: var(--white); }
.bb-check-btn--ok-actief         { background: #2d8a4e; border-color: #2d8a4e; color: var(--white); }
.bb-check-btn--nee-actief        { background: var(--grey1); border-color: var(--grey1); color: var(--white); }

.bb-check-conclusie {
  padding: .85rem 1.1rem;
  font-size: .9rem;
  font-weight: 700;
  border-radius: 2px;
  margin-top: 1rem;
}
.bb-check-conclusie--gevaar     { background: #fdf0ee; border-left: 4px solid var(--red); color: #7b1d22; }
.bb-check-conclusie--waarschuwing { background: #fdf6e3; border-left: 4px solid var(--gold); color: #5a4200; }
.bb-check-conclusie--ok         { background: #edf7f0; border-left: 4px solid #2d8a4e; color: #1a5e2a; }

.bb-check-hint {
  font-size: .88rem;
  color: var(--grey1);
  font-style: italic;
  margin-top: 1rem;
  max-width: 100%;
}

/* ── Hoog-risico use-cases lijst ── */
.bb-hr-usecases {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  font-size: .88rem;
}
.bb-hr-usecases li { margin-bottom: .5rem; }

/* ── Hoog-risico accordeon categorieën ── */
.bb-hr-cats { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }

.bb-hr-cat {
  border: 2px solid var(--grey2);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .2s;
}
.bb-hr-cat--ja  { border-color: #f0b8b0; }
.bb-hr-cat--nee { border-color: #9dcfb0; }

.bb-hr-cat-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--offwhite);
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background .15s;
}
.bb-hr-cat-header:hover       { background: var(--grey3); }
.bb-hr-cat--ja .bb-hr-cat-header  { background: #fdf0ee; }
.bb-hr-cat--nee .bb-hr-cat-header { background: #edf7f0; }

.bb-hr-cat-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--grey1);
  color: var(--white);
  font-size: .82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.bb-hr-cat-titel {
  flex: 1;
  font-size: .88rem;
  font-weight: 700;
  color: var(--grey);
  line-height: 1.3;
}

.bb-hr-cat-val {
  font-size: .82rem;
  font-weight: 700;
  color: var(--grey1);
  white-space: nowrap;
}

.bb-hr-cat-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--grey1);
  transition: transform .2s;
}
.bb-hr-cat-chevron.open { transform: rotate(180deg); }

.bb-hr-cat-body {
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--grey2);
  background: var(--white);
}

.bb-hr-vraag {
  font-weight: 700;
  color: var(--grey);
  font-size: .95rem;
  margin-bottom: 1rem;
  max-width: 100%;
}

.bb-vb-rij {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .82rem;
}
.bb-vb-ja, .bb-vb-nee {
  padding: .6rem .85rem;
  border-radius: 2px;
}
.bb-vb-ja  { background: #fdf6e3; }
.bb-vb-nee { background: #edf7f0; }
.bb-vb-ja strong, .bb-vb-nee strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .3rem;
  color: var(--grey1);
}
.bb-vb-ja ul, .bb-vb-nee ul {
  padding-left: 1.1rem;
  margin: 0;
}
.bb-vb-ja li, .bb-vb-nee li { margin-bottom: .2rem; color: var(--grey); }

/* ── Profilering block ── */
.bb-profilering-blok {
  background: #fff3cd;
  border: 1px solid #e6a817;
  border-radius: 2px;
  padding: 1rem 1.1rem;
  margin-top: 1.5rem;
}
.bb-profilering-vraag {
  font-weight: 700;
  color: #7a5200;
  margin-bottom: .35rem;
  max-width: 100%;
}
.bb-profilering-toel {
  font-size: .88rem;
  color: #7a5200;
  margin-bottom: .85rem;
  max-width: 100%;
}

/* ── Verplichtingen lijst ── */
.bb-verplichtingen-lijst {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  max-width: 100%;
}
.bb-verplichtingen-lijst li {
  font-size: .9rem;
  margin-bottom: .35rem;
  color: var(--grey);
  line-height: 1.55;
}

/* ── Disclaimer ── */
.bb-disclaimer {
  font-size: .82rem;
  color: var(--grey1);
  margin-top: 1.25rem;
  padding-top: .85rem;
  border-top: 1px solid var(--grey2);
  max-width: 100%;
}

/* ── Button variants ── */
.bb-btn-gevaar {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.bb-btn-gevaar:hover { background: #b73319; border-color: #b73319; }

.bb-btn-waarschuwing {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}
.bb-btn-waarschuwing:hover { background: #705f24; border-color: #705f24; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-acties { align-self: flex-start; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #e4ecf0;
    padding: 1rem 2rem 1.5rem;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: .5rem 0; }

  .hero { padding: 2rem 0 1.75rem; }

  .bb-blokken {
    grid-template-columns: 1fr;
  }

  .bb-vb-rij {
    grid-template-columns: 1fr;
  }

  .bb-check-item {
    flex-direction: column;
    gap: .5rem;
  }

  .bb-knoppen-3 { flex-direction: column; }
  .bb-knoppen-3 .bb-btn { width: 100%; text-align: center; }

  /* Optie 4: minder nesting op mobiel */
  .bb-card {
    padding: 1rem .75rem .85rem;
  }

  .bb-criteria-wrap {
    background: transparent;
    border: none;
    border-left: 3px solid var(--grey2);
    padding: .4rem 0 .4rem .75rem;
    margin-bottom: .75rem;
  }
}

/* ── Maatregelen & Ketenverantwoordelijkheid accordions ── */
.maatr-intro {
  margin-bottom: 1.5rem;
  color: var(--grey);
  line-height: 1.7;
}
.maatr-intro + .maatr-intro { margin-top: -.5rem; }

.maatr-accordion {
  border: 1px solid var(--grey2);
  border-radius: 4px;
  margin-bottom: .75rem;
  background: var(--white);
  overflow: hidden;
}
.maatr-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-mid);
  list-style: none;
  user-select: none;
  gap: 1rem;
}
.maatr-accordion summary::-webkit-details-marker { display: none; }
.maatr-accordion summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--grey1);
  flex-shrink: 0;
  line-height: 1;
}
.maatr-accordion[open] > summary {
  background: var(--grey3);
  border-bottom: 1px solid var(--grey2);
}
.maatr-accordion[open] > summary::after { content: '−'; }

/* Nested bb-info-detail inside maatr-accordion: left-align and suppress outer '+' */
.maatr-accordion .bb-info-detail summary { justify-content: flex-start; }
.maatr-accordion .bb-info-detail summary::after { display: none; }

.maatr-content {
  padding: 1rem 1.25rem 1.25rem;
}
.maatr-content > p { margin-bottom: .75rem; line-height: 1.7; }
.maatr-content > p:last-child { margin-bottom: 0; }

.maatr-lijst {
  padding-left: 1.3rem;
  margin: .5rem 0 1rem;
}
.maatr-lijst > li {
  margin-bottom: .75rem;
  line-height: 1.65;
}
.maatr-lijst > li:last-child { margin-bottom: 0; }
.maatr-sub-lijst {
  padding-left: 1.3rem;
  margin: .4rem 0 .2rem;
  list-style: circle;
}
.maatr-sub-lijst li {
  margin-bottom: .3rem;
  font-size: .93rem;
  line-height: 1.55;
}
.maatr-sectie-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--white);
  background: var(--blue-mid);
  border-radius: 2px;
  padding: .15rem .5rem;
  margin-bottom: 1rem;
}
.maatr-note {
  background: var(--grey3);
  border-left: 3px solid var(--gold);
  padding: .75rem 1rem;
  border-radius: 0 4px 4px 0;
  font-size: .9rem;
  margin-top: 1rem;
  line-height: 1.6;
}
.maatr-voorbeeld {
  background: #fff8e1;
  border: 1px solid #e8c84a;
  border-radius: 4px;
  padding: .85rem 1rem;
  font-size: .92rem;
  margin-top: 1.25rem;
  line-height: 1.6;
}
.maatr-voorbeeld strong { color: var(--gold-dark); }

/* ── Bijlagen specifieke stijlen ── */
.bijlage-subkop {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-mid);
  margin: 1.5rem 0 .6rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid var(--grey3);
}
.bijlage-subkop:first-child { margin-top: 0; }

/* Besluitvormings-flowchart */
.bijlage-flow {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: .75rem 0 1.25rem;
}
.bijlage-flow-stap {
  background: var(--grey3);
  border: 1px solid var(--grey2);
  border-radius: 4px;
  padding: .75rem 1rem;
}
.bijlage-flow-stap dt {
  font-weight: 700;
  color: var(--grey);
  margin-bottom: .4rem;
  font-size: .93rem;
  line-height: 1.5;
}
.bijlage-flow-stap dd {
  font-size: .88rem;
  line-height: 1.55;
  margin: .25rem 0 0 0;
  padding-left: .85rem;
  border-left: 3px solid var(--grey2);
  color: var(--grey);
}
.bijlage-flow-stap dd.nee {
  border-left-color: var(--red);
  color: #9a1f10;
}
.bijlage-flow-stap dd.ja {
  border-left-color: var(--gold);
  color: var(--gold-dark);
}

/* Bronnenlijst */
.bijlage-bronnen li {
  font-size: .88rem;
  margin-bottom: .55rem;
  line-height: 1.55;
}
.bijlage-bronnen a {
  color: var(--blue-mid);
  word-break: break-all;
}

/* ── Ingangsdatum tijdlijn ── */
.ingangsdatum-tijdlijn {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.25rem 0 1.5rem;
  border-left: 3px solid var(--blue-mid);
  padding-left: 0;
}
.ingangsdatum-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0 1.25rem;
  padding: .75rem 1rem .75rem 1.25rem;
  position: relative;
}
.ingangsdatum-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.1rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue-mid);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-mid);
}
.ingangsdatum-item:nth-child(odd) { background: var(--grey3); }
.ingangsdatum-datum {
  font-weight: 800;
  font-size: .88rem;
  color: var(--blue-mid);
  line-height: 1.5;
  padding-top: .05rem;
  white-space: nowrap;
}
.ingangsdatum-tekst {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--grey);
}

@media (max-width: 540px) {
  .ingangsdatum-item {
    grid-template-columns: 1fr;
    gap: .2rem;
  }
  .ingangsdatum-datum { font-size: .82rem; }
}

/* ── Checklist algoritmes tabel ── */
.checklist-tabel-wrapper {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--grey2);
  border-radius: 4px;
}
.checklist-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  line-height: 1.55;
}
.checklist-tabel thead tr {
  background: var(--blue-mid);
  color: var(--white);
}
.checklist-tabel th {
  padding: .65rem .9rem;
  text-align: left;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.checklist-tabel td {
  padding: .7rem .9rem;
  vertical-align: top;
  border-bottom: 1px solid var(--grey2);
  color: var(--grey);
}
.checklist-tabel tbody tr:last-child td { border-bottom: none; }
.checklist-tabel tbody tr:nth-child(odd) td { background: var(--grey3); }
.checklist-tabel tbody tr:nth-child(even) td { background: var(--white); }
.checklist-tabel .col-nr {
  width: 2.5rem;
  text-align: center;
  font-weight: 800;
  color: var(--blue-mid);
  white-space: nowrap;
}
.checklist-tabel .col-principe { width: 18%; min-width: 130px; }
.checklist-tabel .col-toelichting { width: 38%; }
.checklist-tabel .col-toetsing { width: 38%; }
.checklist-tabel td.col-toetsing { color: var(--blue-mid); font-size: .85rem; }

/* ── Verboden lijst met detail-toelichting ── */
.bb-verboden-lijst--detail {
  list-style: none;
  padding-left: 0;
}
.bb-verboden-lijst--detail li {
  padding: .45rem 0 .45rem .75rem;
  border-left: 3px solid var(--grey2);
  margin-bottom: .75rem;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
}
.bb-verboden-lijst--detail li strong {
  display: block;
  font-size: .9rem;
  color: var(--grey);
  margin-bottom: .2rem;
}
.bb-verboden-lijst--detail .bb-check-sub {
  font-size: .82rem;
  color: var(--grey1);
  font-style: italic;
  display: block;
}

/* ── EC citaat / blockquote ── */
.bb-citaat {
  border-left: 3px solid var(--gold);
  margin: .75rem 0;
  padding: .6rem 1rem;
  background: #fffdf0;
  font-size: .85rem;
  color: var(--grey);
  line-height: 1.65;
  font-style: italic;
}
.bb-citaat p { margin-bottom: .5rem; }
.bb-citaat p:last-child { margin-bottom: 0; }
.bb-citaat strong { font-style: normal; }

/* ── Nested details inside details ── */
.bb-info-detail--nested {
  margin: .5rem 0 0 0;
  border-color: #d4dde8;
  font-size: .85rem;
  background: var(--white);
}
.bb-info-detail--nested summary {
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-mid);
  padding: .5rem .85rem;
}
.bb-info-detail--nested > p,
.bb-info-detail--nested > ul,
.bb-info-detail--nested > ol {
  padding: .4rem 1rem .6rem 1.5rem;
  margin: 0;
  font-size: .85rem;
  line-height: 1.6;
}
.bb-info-detail--nested > ul,
.bb-info-detail--nested > ol { padding-left: 2.2rem; }

/* ── Schematisch overzicht ── */
.bb-schema-overzicht {
  padding: .75rem 1rem;
  background: var(--grey3);
  border-radius: 2px;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--grey);
}

/* ── Info-detail content spacing ── */
.bb-info-detail > blockquote.bb-citaat { margin: 0 1rem .85rem; }
.bb-info-detail > details { margin: .35rem 1rem; }
