/*
Theme Name: Energiebespaarcheck
Theme URI: https://energiebespaarcheck.nl
Author: Bas Martens / Antigravity
Description: Custom WordPress theme voor Energiebespaarcheck.nl
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: energiebespaarcheck
*/
/* ============================================================
   Energiebespaarcheck.nl — style.css
   ============================================================ */

/* ── Tokens ── */
:root {
  --accent:       #51d870;
  --accent-dark:  #3dbd5e;
  --accent-text:  #14522a;
  --accent-light: #eafbee;
  --bg:           #f8fafc;
  --card:         #ffffff;
  --text:         #3c3c3b;
  --muted:        #6b7280;
  --border:       rgba(220, 230, 235, 0.9);
  --dark:         #1a2e20;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[id] { scroll-margin-top: 89px; }
body    { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
img     { display: block; max-width: 100%; }
ul, ol  { list-style: none; }
a       { color: inherit; text-decoration: none; }
button  { font-family: inherit; }

/* ── Wrap ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Verticale sectie-ruimte ── */
main > section:not(.hero) { padding-top: 2.5rem; padding-bottom: 2.5rem; }
body.home main > div.wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
body.blog main > div.wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
body.blog .filters-wrap + .wrap { padding-top: 1rem; }
.blog-wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
body.single-post main > .wrap { padding-top: 1.5rem; padding-bottom: 1.5rem; }
body.single-post main > .wrap:has(.article-layout) { padding-top: 0; padding-bottom: 0; }

/* ── Typografie ── */
h1 { font-size: clamp(1.6rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; color: var(--text); }
h2 { font-size: clamp(1.375rem, 4vw, 2.5rem);  font-weight: 800; letter-spacing: -0.02em;  line-height: 1.15; color: var(--text); }
h3 { font-size: 1.1rem;  font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--text); }
h4 { font-size: 1rem;    font-weight: 700; letter-spacing: -0.01em;  color: var(--text); }
p  { font-size: 0.975rem; line-height: 1.75; color: var(--muted); }
strong { font-weight: 800; }

/* ── Knoppen ── */
.btn {
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(-1px); }
.btn.primary   { background: var(--accent); color: var(--accent-text); }
.btn.primary:hover  { background: var(--accent-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 500; }
.btn.secondary:hover { background: #fff; border-color: #ccc; }
.btn.ghost    { background: transparent; color: var(--muted); border: 1px solid var(--border); font-weight: 500; padding: 0.5rem 0.875rem; }
.btn.ghost:hover { color: var(--text); border-color: #bbb; background: #fff; }
.btn.large    { font-size: 1rem; padding: 0.875rem 1.75rem; }
.btn.full     { width: 100%; }

/* ── Badge ── */
.badge {
  background: var(--accent-light);
  color: var(--accent-text);
  border-radius: 999px;
  padding: 0.3rem 0.875rem;
  font-size: 0.825rem;
  font-weight: 600;
  display: inline-block;
}

/* ── Tags ── */
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tag:hover, .tag.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* ── Card ── */
.card {
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card.dark     { background: var(--dark); border-color: var(--dark); color: #fff; }
.card.dark p   { color: rgba(255,255,255,0.6); }
.card.featured { border: 2px solid var(--accent); position: relative; }
.card.light    { background: var(--accent-light); border-color: rgba(81,216,112,0.3); }

/* ── Strip ── */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }

/* ══════════════════════════════════
   NAVIGATIE & HEADER
══════════════════════════════════ */

body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
body > header > .wrap {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
body > header > .wrap > div { display: flex; gap: 0.625rem; align-items: center; }

.logo img { height: 60px; }
body > header .btn.ghost { display: none; }

@media (max-width: 1023px) {
  body > header .btn.primary { display: none; }
  body > header .logo img { height: 60px; }
}

body > header nav {
  display: none;
  align-items: center;
}
/* Top-level menu list */
body > header nav > ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
body > header nav > ul > li {
  position: relative;
}
/* Top-level links */
body > header nav > ul > li > a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.2s;
  display: block;
}
body > header nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px;
  background: var(--accent-text);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}
body > header nav > ul > li > a:hover,
body > header nav > ul > li:hover > a     { color: var(--text); }
body > header nav > ul > li > a:hover::after,
body > header nav > ul > li:hover > a::after { transform: scaleX(1); }
body > header nav > ul > li > a.active    { color: var(--text); font-weight: 700; }
body > header nav > ul > li > a.active::after { transform: scaleX(1); }
/* Dropdown ballon */
body > header nav > ul > li > .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 0;
  min-width: 210px;
  list-style: none;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
/* Pijltje omhoog */
body > header nav > ul > li > .sub-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
body > header nav > ul > li:hover > .sub-menu { display: block; }
/* Transparante brug zodat de muis niet door de gap valt */
body > header nav > ul > li > .sub-menu::after {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
/* Sub-menu links */
body > header nav > ul > li > .sub-menu > li > a {
  display: block;
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  position: static;
}
body > header nav > ul > li > .sub-menu > li > a::after { display: none; }
body > header nav > ul > li > .sub-menu > li > a:hover {
  color: var(--accent-text);
  background: var(--bg);
}
body > header nav > ul > li > .sub-menu > li:first-child > a { border-radius: 10px 10px 0 0; }
body > header nav > ul > li > .sub-menu > li:last-child  > a { border-radius: 0 0 10px 10px; }

/* Chevron op items met kinderen (level 2) */
body > header nav > ul > li > .sub-menu > li.menu-item-has-children > a::after {
  display: inline-block;
  content: '›';
  position: static;
  float: right;
  margin-left: 0.5rem;
  font-size: 1rem;
  line-height: 1;
  transform: none;
  background: none;
  height: auto; width: auto;
  color: var(--muted);
  opacity: 0.6;
}

/* ── Level 3: flyout naar rechts ── */
body > header nav > ul > li > .sub-menu > li { position: relative; }

body > header nav > ul > li > .sub-menu > li > .sub-menu {
  display: none;
  position: absolute;
  top: -8px;
  left: calc(100% + 10px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 0;
  min-width: 220px;
  list-style: none;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
/* Pijltje links */
body > header nav > ul > li > .sub-menu > li > .sub-menu::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -6px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}
/* Brug links zodat hover niet verbroken wordt */
body > header nav > ul > li > .sub-menu > li > .sub-menu::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -10px;
  width: 10px;
}
body > header nav > ul > li > .sub-menu > li:hover > .sub-menu { display: block; }

/* Level 3 links */
body > header nav > ul > li > .sub-menu > li > .sub-menu > li > a {
  display: block;
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  position: static;
}
body > header nav > ul > li > .sub-menu > li > .sub-menu > li > a::after { display: none; }
body > header nav > ul > li > .sub-menu > li > .sub-menu > li > a:hover {
  color: var(--accent-text);
  background: var(--bg);
}
body > header nav > ul > li > .sub-menu > li > .sub-menu > li:first-child > a { border-radius: 10px 10px 0 0; }
body > header nav > ul > li > .sub-menu > li > .sub-menu > li:last-child  > a { border-radius: 0 0 10px 10px; }

/* ── Hamburger ── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  min-width: 36px;
  min-height: 36px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.2s; }

body.menu-open { overflow: hidden; }

#site-wrap {
  overflow-x: clip;
}

/* ── Off-canvas overlay ── */
.offcanvas-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.offcanvas-overlay.open { display: block; }

/* ── Off-canvas panel ── */
@keyframes offcanvas-in  { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes offcanvas-out { from { transform: translateX(0); } to { transform: translateX(100%); } }

nav.offcanvas {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  z-index: 200;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
}
nav.offcanvas.is-open {
  display: flex;
  animation: offcanvas-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
nav.offcanvas.is-closing {
  display: flex;
  animation: offcanvas-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Header van het panel */
.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.offcanvas-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.offcanvas-close svg { width: 14px; height: 14px; }
.offcanvas-close:hover { background: var(--bg); color: var(--text); }

/* Scrollbare body van het panel */
.offcanvas-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Menu-items */
nav.offcanvas ul { list-style: none; margin: 0; padding: 0; }
nav.offcanvas > .offcanvas-body > ul > li > a {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.975rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
nav.offcanvas > .offcanvas-body > ul > li > a:hover { background: var(--bg); color: var(--accent-text); }
nav.offcanvas > .offcanvas-body > ul > li > a.active { color: var(--accent-text); }

/* Sub-level 1: ingesprongen */
nav.offcanvas .sub-menu { background: var(--bg); }
nav.offcanvas .sub-menu > li > a {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.25rem 0.6rem 2rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}
nav.offcanvas .sub-menu > li > a:hover { color: var(--accent-text); background: #fff; }

/* Sub-level 2: verder ingesprongen */
nav.offcanvas .sub-menu .sub-menu { background: #fff; }
nav.offcanvas .sub-menu .sub-menu > li > a {
  padding-left: 3rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--bg);
}

/* CTA onderaan */
.offcanvas-account {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.offcanvas-cta {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: auto;
}

/* ── Footer ── */
#site-wrap > footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  background: #fff;
}
#site-wrap > footer > .wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
#site-wrap > footer img { height: 54px; }
#site-wrap > footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
#site-wrap > footer nav a {
  color: var(--muted);
  font-size: 0.825rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: color 0.2s;
}
#site-wrap > footer nav a::after {
  content: '';
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  height: 1px;
  background: var(--muted);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}
#site-wrap > footer nav a:hover { color: var(--text); }
#site-wrap > footer nav a:hover::after { transform: scaleX(1); }
#site-wrap > footer p { font-size: 0.75rem; color: var(--muted); }

/* ══════════════════════════════════
   HOMEPAGE
══════════════════════════════════ */

/* ── Hero ── */
section.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
section.hero h1 { margin: 1rem 0; }
section.hero > div > p { font-size: 1rem; max-width: 480px; margin-bottom: 1.75rem; }
section.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
section.hero .stats { display: flex; flex-wrap: wrap; gap: 0; align-items: center; margin-top: 2rem; }
section.hero .stats > div { display: flex; flex-direction: column; padding-right: 1.5rem; }
section.hero .stats > div + div { padding-left: 1.5rem; border-left: 1px solid var(--border); }
section.hero .stats strong { font-size: 1.5rem; color: var(--text); line-height: 1; display: block; }
section.hero .stats span   { font-size: 0.8rem; color: var(--muted); font-weight: 500; margin-top: 0.1rem; }

/* ── Mockup ── */
.mockup { background: #fff; border-radius: 1rem; box-shadow: 0 4px 24px rgba(0,0,0,0.09), 0 0 0 1px rgba(0,0,0,0.04); overflow: hidden; }
.mockup-head { background: var(--dark); padding: 1.375rem 1.75rem; }
.mockup-head p      { font-size: 0.72rem; font-weight: 600; opacity: 0.55; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 0.25rem; }
.mockup-head strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: #fff; display: block; }
.mockup-head span   { font-size: 0.825rem; opacity: 0.6; color: #fff; margin-top: 0.2rem; display: block; }
.mockup-body { padding: 1.375rem 1.75rem; }
.mockup-row { margin-bottom: 1.125rem; }
.mockup-row:last-child { margin-bottom: 0; }
.mockup-row-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.45rem; }
.mockup-row-head b  { font-weight: 600; font-size: 0.875rem; color: var(--text); flex: 1; }
.mockup-row-head em { font-style: normal; font-weight: 700; color: var(--accent-text); font-size: 0.875rem; }
.mockup-body .icon { width: 28px; height: 28px; background: var(--accent-light); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.track { height: 6px; background: var(--accent-light); border-radius: 999px; overflow: hidden; }
.track > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.mockup-foot { background: var(--bg); border-radius: 0.75rem; padding: 0.75rem 0.875rem; display: flex; justify-content: space-between; align-items: center; }
.mockup-foot b  { font-size: 0.775rem; font-weight: 600; color: var(--text); }
.mockup-foot em { font-style: normal; font-size: 0.775rem; font-weight: 700; color: var(--accent-text); }

/* ── Social proof logos ── */
.strip > .wrap { text-align: center; max-width: 900px; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.strip > .wrap > p { font-size: 0.7rem; color: var(--muted); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; opacity: 0.35; filter: grayscale(1); }
.logos li { font-size: 0.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }

/* ── Steps (hoe het werkt) ── */
section#hoe-werkt-het > h2 { max-width: 440px; margin-top: 0.875rem; }
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  counter-reset: step;
}
.steps .card { padding: 1.5rem; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  width: 32px; height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 8px;
  display: block;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  background: #eafbee;
  color: #7dd6a0;
}
.steps .card:nth-child(2)::before { background: #c5f5d3; color: #3dbd5e; }
.steps .card:nth-child(3)::before { background: #a8edbc; color: #2d9e4f; }
.steps .card:nth-child(4)::before { background: var(--accent); color: var(--accent-text); }
.steps .card h3 { margin-bottom: 0.5rem; }
.steps .card p  { font-size: 0.9rem; line-height: 1.7; }
.steps .tags    { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.steps .live    { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-size: 0.825rem; font-weight: 500; color: var(--accent-text); }
.steps .live::before { content: ''; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.steps .pdf     { background: var(--bg); border-radius: 0.75rem; padding: 0.75rem 0.875rem; display: flex; align-items: center; gap: 0.5rem; margin-top: 1.25rem; font-size: 0.825rem; font-weight: 600; color: var(--accent-text); }
.steps .avatars { display: flex; align-items: center; margin-top: 1rem; }
.steps .avatars img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; margin-right: -6px; }
.steps .avatars span { font-size: 0.825rem; color: var(--muted); font-weight: 500; margin-left: 0.75rem; }

/* ── Stats strip ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}
.stats-bar strong { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; color: var(--accent-text); display: block; line-height: 1; }
.stats-bar span   { color: var(--muted); font-weight: 500; margin-top: 0.375rem; font-size: 0.8rem; display: block; }

/* ── Homepage flexible content ── */
.home-tekst-afb { padding: 3rem 0; background: #fff; }
.home-tekst-afb + .home-tekst-afb { padding-top: 0; }
.home-tekst-afb-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.home-tekst-afb-text { order: 1; }
.home-tekst-afb-image { order: 2; }
.home-tekst-afb-image { aspect-ratio: 3/2; overflow: hidden; border-radius: 1.25rem; }
.home-tekst-afb-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-tekst-afb-text h2 { margin-bottom: 1.125rem; }
.home-tekst-afb-prose p  { font-size: 0.975rem; line-height: 1.8; margin-bottom: 1rem; }
.home-tekst-afb-prose p:last-child { margin-bottom: 0; }
.home-tekst-afb-prose ul { padding-left: 0; list-style: none; margin: 1rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.home-tekst-afb-prose ul li { font-size: 0.925rem; color: var(--muted); padding-left: 1.5rem; position: relative; line-height: 1.5; }
.home-tekst-afb-prose ul li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; }
.home-tekst-afb-prose strong { color: var(--text); font-weight: 700; }
.home-tekst-afb-text .btn { margin-top: 1.75rem; }
@media (min-width: 900px) {
  .home-tekst-afb-inner { grid-template-columns: 1.5fr 1fr; gap: 4.5rem; }
  .home-tekst-afb.no-image .home-tekst-afb-inner { grid-template-columns: 1fr; max-width: 760px; }
  .image-links .home-tekst-afb-inner { grid-template-columns: 1fr 1.5fr; }
  .image-links .home-tekst-afb-image { order: -1; }
  .home-tekst-afb-image { aspect-ratio: 1/1; }
}

/* ── Homepage tekst breed ── */
.home-tekst-breed-wrap { background: #fff; }
.home-tekst-breed { padding-top: 2.5rem; padding-bottom: 2.5rem; max-width: 760px; }
.home-tekst-breed h2 { margin-bottom: 1.125rem; }
.home-tekst-breed-prose p { font-size: 0.975rem; line-height: 1.8; margin-bottom: 1rem; }

/* ── FAQ (gedeeld: homepage en maatregelen) ── */
.home-faq { padding-top: 2.5rem; padding-bottom: 2.5rem; max-width: 760px; }
.home-faq h2 { margin-bottom: 1.5rem; }

/* ── Oplossingen grid ── */
.home-solutions > h2 { max-width: 600px; margin-top: 0.875rem; margin-bottom: 1.25rem; }
.home-solutions-intro { max-width: 600px; margin-bottom: 2rem; }

/* Maatregelen listing */
.maatregelen-listing { padding-top: 3rem; padding-bottom: 3rem; }
.maatregelen-listing > h2 { max-width: 680px; margin-top: 0.875rem; margin-bottom: 1rem; }
.maatregelen-listing .section-header h2 { max-width: 680px; margin-top: 0.875rem; margin-bottom: 0; }
.maatregelen-listing-intro { max-width: 680px; color: var(--muted); margin-bottom: 2rem; font-size: 0.975rem; }
.maatregelen-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .maatregelen-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .maatregelen-grid { grid-template-columns: repeat(3, 1fr); } }
.maatregel-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.maatregel-img { display: block; aspect-ratio: 3/2; overflow: hidden; }
.maatregel-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.maatregel-card:hover .maatregel-img img { transform: scale(1.04); }
.maatregel-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 0.875rem; }
.maatregel-body h3 { font-size: 1.125rem; margin: 0; }
.maatregel-intro { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin: 0; }
.maatregel-body h3 a { color: var(--text); text-decoration: none; }
.maatregel-body h3 a:hover { color: var(--accent-text); }
.maatregel-subitems { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.375rem; }
.maatregel-subitems li { font-size: 0.875rem; }
.maatregel-subitems li a { color: var(--muted); text-decoration: none; padding-left: 1rem; position: relative; }
.maatregel-subitems li a::before { content: '→'; position: absolute; left: 0; color: var(--accent-text); font-size: 0.75rem; top: 1px; }
.maatregel-subitems li a:hover { color: var(--accent-text); }
.maatregel-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 1rem; }
.maatregel-stat { background: var(--accent-light); border-radius: 0.5rem; padding: 0.5rem 0.75rem; display: flex; flex-direction: column; gap: 0.1rem; flex-shrink: 0; }
.maatregel-stat strong { font-size: 1rem; font-weight: 800; color: var(--accent-text); line-height: 1.1; }
.maatregel-stat span { font-size: 0.75rem; color: var(--accent-text); }
.btn.small { font-size: 0.8rem; padding: 0.45rem 0.9rem; }
.maatregel-body > .btn { margin-top: auto; align-self: flex-start; }
.maatregel-footer .btn { align-self: center; }
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
}
.solution-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.solution-img { display: block; aspect-ratio: 3/2; overflow: hidden; }
.solution-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.solution-card:hover .solution-img img { transform: scale(1.04); }
.solution-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.solution-body h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.solution-body h3 a { color: var(--text); text-decoration: none; }
.solution-body h3 a:hover { color: var(--accent-text); }
.solution-body > p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.solution-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; }
.solution-facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.solution-facts li { display: none; }
.solution-facts li:first-child { display: block; background: var(--accent-light); border-radius: 8px; padding: 0.45rem 0.75rem; font-size: 0.8rem; color: var(--muted); line-height: 1.3; }
.solution-facts li strong { display: block; color: var(--accent-text); font-weight: 800; font-size: 0.925rem; letter-spacing: -0.01em; }
.solution-foot .btn { flex-shrink: 0; }

/* ── Pricing ── */
section#prijzen > .badge { display: block; width: fit-content; margin: 0 auto 0.875rem; }
section#prijzen > h2    { text-align: center; }
section#prijzen > p     { text-align: center; max-width: 520px; margin: 0.75rem auto 0; font-size: 0.95rem; }
.pricing { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 740px; margin: 2rem auto 0; }
.pricing .card { padding: 1.75rem; }
.pricing .card > h3 { font-size: 0.775rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.875rem; }
.pricing .card:first-child h3 { color: var(--muted); }
.pricing .card.featured h3    { color: var(--accent-text); }
.pricing .card > strong { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; display: block; margin-bottom: 0.125rem; color: var(--text); }
.pricing small { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 1.5rem; }
.pricing ul { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.75rem; }
.pricing li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.875rem; color: var(--text); }
.pricing li.off { opacity: 0.35; }
.pricing li svg { flex-shrink: 0; margin-top: 2px; }
.pricing mark {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-text);
  padding: 0.2rem 1rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; white-space: nowrap;
  font-style: normal;
}

/* ── Reviews ── */
.reviews-section { padding: 2.5rem 1.25rem; }
.reviews-section > .wrap { max-width: 1100px; }
.reviews-section > .wrap > h2 { text-align: center; margin-top: 0.875rem; }
.reviews {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-top: 1.75rem;
}
.reviews > .card  { min-width: 82vw; max-width: 320px; scroll-snap-align: start; flex-shrink: 0; padding: 1.5rem; }
.reviews .stars   { color: #f59e0b; margin-bottom: 0.75rem; }
.reviews blockquote { color: var(--muted); line-height: 1.7; font-size: 0.875rem; margin-bottom: 1.25rem; font-style: normal; }
.reviews cite { display: flex; align-items: center; gap: 0.625rem; font-style: normal; }
.reviews cite img  { width: 36px; height: 36px; border-radius: 50%; }
.reviews cite b    { font-size: 0.85rem; font-weight: 600; display: block; color: var(--text); }
.reviews cite span { font-size: 0.775rem; color: var(--muted); }
.scroll-hint { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }

/* ── Blog preview (home) ── */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.875rem; }
.section-header > div { flex: 1; min-width: 0; }
.section-header a { color: var(--accent-text); font-weight: 600; font-size: 0.875rem; text-decoration: none; flex-shrink: 0; align-self: flex-end; }
.section-header h2 { margin-top: 0.75rem; }
.blog-preview { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .blog-preview { grid-template-columns: repeat(2, 1fr); } }
.blog-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.blog-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.blog-card-body h3 { font-size: 0.975rem; margin-bottom: 0.875rem; line-height: 1.4; transition: color 0.2s; }
.blog-card-body h3 a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.blog-card-body h3 a:hover { color: var(--accent-text); }
.blog-card-body .read { color: var(--accent-text); font-weight: 600; font-size: 0.875rem; text-decoration: none; margin-top: auto; }

/* ── CTA banner ── */
.cta-strip { background: var(--dark); }
.cta-banner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; padding: 2.5rem 0; }
.cta-banner h2 { color: #fff; font-size: clamp(1.375rem, 3.5vw, 2rem); }
.cta-banner p  { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 0.5rem; }

/* ══════════════════════════════════
   CHECK — COMING SOON
══════════════════════════════════ */
body.page-template-template-check,
body.page-template-template-account,
body.page-template-template-partner-aanmelden,
body.page-template-template-contact {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body.page-template-template-check #site-wrap,
body.page-template-template-account #site-wrap,
body.page-template-template-partner-aanmelden #site-wrap,
body.page-template-template-contact #site-wrap { flex: 1; display: flex; flex-direction: column; }
body.page-template-template-check main,
body.page-template-template-account main,
body.page-template-template-partner-aanmelden main,
body.page-template-template-contact main { flex: 1; }
body.error404 {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body.admin-bar.error404 { height: calc(100svh - 32px); }
@media (max-width: 782px) {
  body.admin-bar.page-template-template-check,
  body.admin-bar.error404 { height: calc(100svh - 46px); }
}
body.page-template-template-check #site-wrap,
body.page-template-template-account #site-wrap,
body.page-template-template-partner-aanmelden #site-wrap,
body.error404 #site-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.error404 main { flex: 1; display: flex; flex-direction: column; }
body.page-template-template-check main,
body.page-template-template-account main,
body.page-template-template-partner-aanmelden main { display: block; }
body.page-template-template-account main { flex: none; min-height: calc(100svh - 85px - 108px); }
body.admin-bar.page-template-template-account main { flex: none; min-height: calc(100svh - 85px - 108px - 32px); }
.check-coming-soon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.check-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  gap: 1rem;
}
.check-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.check-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-text);
}
.check-inner h1 {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  margin: 0.25rem 0 0;
}
.check-inner > p {
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.7;
  margin: 0;
}
.check-inner .btn { margin-top: 0.5rem; }

.error-404-number {
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

/* ══════════════════════════════════
   BLOG PAGINA
══════════════════════════════════ */

.blog-hero-wrap .wrap > .badge { display: inline-block; }
.blog-hero-wrap .wrap > h1 { font-size: clamp(1.75rem, 5vw, 3rem); letter-spacing: -0.025em; margin: 0.875rem 0 0.75rem; }
.blog-hero-wrap .wrap > p  { max-width: 480px; }

/* ── Filters ── */
.blog-hero-wrap { background: #fff; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.wrap.filters-wrap { padding-top: 1.5rem; padding-bottom: 0; }
.filters { display: flex; gap: 0.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.25rem; scrollbar-width: none; justify-content: center; margin-bottom: 1.5rem; }
.filters::-webkit-scrollbar { display: none; }

/* ── Featured artikel ── */
.featured-article { display: grid; grid-template-columns: 1fr; overflow: hidden; cursor: pointer; transition: box-shadow 0.2s; }
.featured-article:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.featured-article img { width: 100%; height: 200px; object-fit: cover; }
.featured-article > div { padding: 1.5rem; }
.featured-article > div > div { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.875rem; }
.featured-article h2 { font-size: clamp(1.125rem, 3vw, 1.625rem); margin-bottom: 0.75rem; }
.featured-article p  { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.featured-article footer { position: static; border: none; background: none; padding: 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.featured-article footer > div { display: flex; align-items: center; gap: 0.625rem; }
.featured-article footer img  { width: 32px; height: 32px; border-radius: 50%; }
.featured-article footer b    { font-size: 0.85rem; font-weight: 600; display: block; color: var(--text); }
.featured-article footer span { font-size: 0.75rem; color: var(--muted); }
.featured-article footer a    { color: var(--accent-text); font-weight: 600; font-size: 0.875rem; }

/* ── Artikelen grid ── */
.blog-listing-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .blog-listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-listing-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card-meta { font-size: 0.8rem; color: var(--muted); display: flex; gap: 0.375rem; align-items: center; margin-bottom: 0.5rem; }
.article-grid footer time { font-size: 0.75rem; color: var(--muted); }
.article-grid footer a    { color: var(--accent-text); font-weight: 600; font-size: 0.825rem; }

/* ── Paginering ── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination a { width: 44px; height: 44px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 0.875rem; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.pagination a.active, .pagination a:hover { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* ── Nieuwsbrief ── */
.newsletter { text-align: center; max-width: 540px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.newsletter h2 { font-size: clamp(1.25rem, 4vw, 1.75rem); margin: 0.875rem 0 0.75rem; }
.newsletter p  { line-height: 1.7; margin-bottom: 1.5rem; font-size: 0.9rem; }
.newsletter form { display: flex; flex-direction: column; gap: 0.625rem; }
.newsletter input {
  flex: 1; padding: 0.875rem 1.25rem;
  border-radius: 999px; border: 1px solid var(--border);
  font-family: 'Outfit', sans-serif; font-size: 0.9rem;
  outline: none; background: var(--bg); color: var(--text);
  min-height: 48px; transition: border-color 0.2s;
}
.newsletter input:focus { border-color: var(--accent); }
.newsletter small { font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; display: block; }

/* ══════════════════════════════════
   ARTIKEL PAGINA
══════════════════════════════════ */

/* ── Leesvorderingsbalk ── */
.reading-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--accent-light); z-index: 201; pointer-events: none; }
.reading-bar > span { display: block; height: 100%; background: var(--accent); width: 0%; transition: width 0.1s linear; border-radius: 0 999px 999px 0; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; font-size: 0.8rem; color: var(--muted); padding: 1rem 0 0; flex-wrap: nowrap; min-width: 0; }
.breadcrumb a { color: var(--muted); font-weight: 500; transition: color 0.2s; white-space: nowrap; flex-shrink: 0; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { opacity: 0.4; flex-shrink: 0; padding: 0 0.45rem; }
.breadcrumb b { color: var(--accent-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }

/* ── Artikel hero (hergebruikt blog-hero-wrap) ── */
body.single-post .blog-hero-wrap h1 { font-size: clamp(1.75rem, 5vw, 3rem); letter-spacing: -0.03em; margin-bottom: 0.75rem; max-width: 760px; }
body.single-post .blog-hero-wrap > .wrap > p { font-size: 1.05rem; max-width: 640px; margin-bottom: 0.75rem; color: var(--muted); }
.article-hero-meta { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; margin-top: 0.25rem; }
.article-date-pill { display: inline-flex; align-items: center; gap: 0.375rem; background: var(--accent-light); color: var(--accent-text); font-size: 0.8rem; font-weight: 500; padding: 0.35rem 0.75rem; border-radius: 999px; }

/* ── Artikel afbeelding (in prose kolom) ── */
.article-image { border-radius: 1.25rem; overflow: hidden; margin-bottom: 2rem; max-width: 100%; width: 100%; }
article.prose { min-width: 0; }
.article-image img { width: 100%; height: 420px; object-fit: cover; }
.prose :not(.article-image) img { max-width: 100%; height: auto; }

/* ── Artikel layout ── */
.article-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 4rem; }

/* ── Prose ── */
.prose h2 { font-size: clamp(1.25rem, 3.5vw, 1.625rem); margin: 2.25rem 0 0.875rem; padding-top: 0.5rem; }
.prose h3 { font-size: clamp(1.05rem, 2.5vw, 1.25rem); margin: 1.75rem 0 0.625rem; }
.prose h4 { margin: 1.5rem 0 0.5rem; }
.prose p  { font-size: 0.975rem; line-height: 1.8; color: var(--muted); margin-bottom: 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { list-style: none; padding-left: 0; margin: 0.75rem 0 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose li { font-size: 0.9625rem; color: var(--muted); padding-left: 1.5rem; position: relative; line-height: 1.6; }
.prose ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; font-size: 0.875rem; top: 1px; }
.prose ol { counter-reset: ol-counter; }
.prose ol li { counter-increment: ol-counter; }
.prose ol li::before { content: counter(ol-counter) '.'; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; font-size: 0.875rem; }

/* ── Callout & alert ── */
.callout, .alert { border-radius: 0 0.75rem 0.75rem 0; padding: 1rem 1.25rem; margin: 1.75rem 0; }
.callout { background: var(--accent-light); border-left: 3px solid var(--accent); }
.callout p { margin-bottom: 0; color: var(--accent-text) !important; font-weight: 500; }
.alert   { background: #fffbeb; border-left: 3px solid #f59e0b; }
.alert p { margin-bottom: 0; color: #92400e !important; font-weight: 500; }

/* ── Tabellen in prose — hergebruik data-table stijl via JS-wrapping ── */
.prose .card:not(.cta-block) { overflow: hidden; margin: 1.75rem 0; border: none; background: none; box-shadow: none; border-radius: 0; }

/* ── Inline CTA ── */
.prose .cta-block { padding: 1.75rem; margin-top: 2.25rem; }
.prose .cta-block small { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 0.375rem; }
.prose .cta-block h3 { color: #fff; margin: 0 0 0.5rem; }
.prose .cta-block p  { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.65; margin: 0 0 1.25rem; }
.prose a:not(.btn):not(.tag),
.tekst-prose a:not(.btn):not(.tag),
.home-tekst-afb-prose a:not(.btn):not(.tag) { color: #1565a0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(21,101,160,0.4); }
.prose a:not(.btn):not(.tag):hover,
.tekst-prose a:not(.btn):not(.tag):hover,
.home-tekst-afb-prose a:not(.btn):not(.tag):hover { color: #0d4f80; text-decoration-color: #0d4f80; }

/* Links op donkere achtergronden */
.card.dark a:not(.btn),
.cta-block a:not(.btn),
.cta-inline a:not(.btn) { color: #7db9df; text-decoration-color: rgba(125,185,223,0.45); }
.card.dark a:not(.btn):hover,
.cta-block a:not(.btn):hover,
.cta-inline a:not(.btn):hover { color: #a8d4ef; }

/* ── Sidebar ── */
aside .card { padding: 1.25rem; margin-bottom: 1.25rem; }
aside h4 { font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.875rem; }
.sidebar { position: static; }

/* ── TOC ── */
.toc nav a { display: flex; align-items: flex-start; gap: 0.625rem; color: var(--muted); font-size: 0.875rem; font-weight: 500; padding: 0.375rem 0; transition: color 0.2s; line-height: 1.4; }
.toc nav a:hover { color: var(--accent-text); }
.toc nav a::before { content: ''; flex-shrink: 0; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 1.5px solid var(--border); transition: border-color 0.2s, background 0.2s; }
.toc nav a:hover::before { border-color: var(--accent); background: var(--accent-light); }

/* ── Mobile TOC strip ── */
.toc-mobile-strip { display: none; padding: 1.25rem; }
@media (max-width: 899px) {
  .toc-mobile-strip { display: block; margin-top: 1.75rem; margin-bottom: 1.5rem; }
  .sidebar .toc { display: none; }
  #toc-mobile:not(.toc-expanded) nav a:nth-child(n+4) { display: none; }
  /* Blog: toon 5 ipv 3 op mobiel */
  body.single-post #toc-mobile:not(.toc-expanded) nav a:nth-child(n+4) { display: flex; }
  body.single-post #toc-mobile:not(.toc-expanded) nav a:nth-child(n+6) { display: none; }
  .toc-toggle {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.825rem;
    color: var(--accent-text);
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
  }
}
/* ── Blog & landing sidebar TOC: max 5 zichtbaar ── */
body.single-post #toc-sidebar:not(.toc-expanded) nav a:nth-child(n+6),
#toc-sidebar-landing:not(.toc-expanded) nav a:nth-child(n+6) { display: none; }
body.single-post .toc-sidebar-toggle,
.toc-landing-toggle {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.825rem;
  color: var(--accent-text);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* ── Feitenlijst sidebar ── */
.facts dl div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 0.75rem; align-items: baseline; padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
.facts dl div:last-child { border-bottom: none; padding-bottom: 0; }
.facts dl div:first-child { padding-top: 0; }
.facts dt { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.facts dd { font-size: 0.9rem; font-weight: 700; color: var(--text); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts dd.accent { color: var(--accent-text); }

/* ── Sidebar CTA ── */
aside .cta-aside { padding: 1.25rem; }
aside .cta-aside small { font-size: 0.8rem; font-weight: 600; color: var(--accent-text); display: block; margin-bottom: 0.5rem; }
aside .cta-aside p { font-size: 0.875rem; color: var(--accent-text); line-height: 1.65; margin: 0 0 1rem; }

/* ── Gerelateerde artikelen ── */
.related { border-top: 1px solid var(--border); padding-top: 2.5rem; padding-bottom: 4rem; }
.related > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.875rem; }
.related > header h2 { font-size: clamp(1.125rem, 3vw, 1.5rem); }
.related > header a  { color: var(--accent-text); font-weight: 600; font-size: 0.875rem; }

.article-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.article-grid .card { display: flex; flex-direction: column; overflow: hidden; padding: 0; cursor: pointer; transition: box-shadow 0.2s; }
.article-grid .card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.09); }
.article-grid .card img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.3s ease; }
.article-grid .card:hover img { transform: scale(1.03); }
.article-grid .card > div { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.article-grid .card h3 { font-size: 1rem; margin: 0; line-height: 1.4; }
.article-grid .card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin: 0; flex: 1; }
.article-grid .card footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; border: none; background: none; padding: 0; }
.article-grid footer time { font-size: 0.75rem; color: var(--muted); }
.article-grid footer a    { color: var(--accent-text); font-weight: 600; font-size: 0.825rem; text-decoration: none; }
.article-grid footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */

@media (min-width: 1024px) {
  .hamburger { display: none; }
  body > header .btn.ghost { display: inline-flex; }
  .steps     { grid-template-columns: 1fr 1fr; }
  .pricing   { grid-template-columns: 1fr 1fr; }
  .reviews   { display: grid; grid-template-columns: 1fr 1fr; overflow-x: unset; padding-bottom: 0; }
  .reviews > .card { min-width: unset; max-width: unset; }
  .scroll-hint { display: none; }

  .article-grid  { grid-template-columns: 1fr 1fr; }
  .logos { gap: 2.5rem; }
  .newsletter form { flex-direction: row; max-width: 480px; margin: 0 auto; }
  .featured-article img { height: 220px; }
}

@media (min-width: 1024px) {
  body > header nav { display: flex; }
  section.hero { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .reviews     { grid-template-columns: repeat(3, 1fr); }
  .blog-preview { grid-template-columns: repeat(4, 1fr); }
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-article { grid-template-columns: 1.2fr 1fr; }
  .featured-article img { height: 100%; max-height: 380px; }
  .cta-banner { flex-direction: row; justify-content: space-between; align-items: center; }
  .article-layout { grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; padding-top: 2rem; }
  .sidebar { position: sticky; top: 7.5rem; }
}

@media (min-width: 768px) {
  #site-wrap > footer > .wrap { flex-direction: row; justify-content: space-between; text-align: left; }
  #site-wrap > footer nav { justify-content: flex-start; }
}

@media (max-width: 1023px) {
  .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
  .btn.large { padding: 0.7rem 1.5rem; }
  .breadcrumb { padding-top: 0.375rem; }
  section.hero { padding-top: 1rem; }
  .blog-hero-wrap { padding-top: 1rem; }
  .landing-hero { padding-top: 1rem; }
  .filters { justify-content: flex-start; padding-left: 0; }
  body > header { position: fixed; top: 0; left: 0; right: 0; backdrop-filter: none; background: rgb(248, 250, 252); z-index: 100; }
  #site-wrap { padding-top: 88px; }
  .article-image img { height: auto; aspect-ratio: 16/9; }
  section.hero .stats { flex-wrap: nowrap; gap: 0; }
  section.hero .stats strong { font-size: 1.1rem; }
  section.hero .stats span   { font-size: 0.7rem; }
  section.hero .stats > div { padding-right: 1rem; }
  section.hero .stats > div + div { padding-left: 1rem; }
  #site-wrap > footer > .wrap { gap: 0.375rem; }
  #site-wrap > footer img { height: 42px; }
  #site-wrap > footer nav { margin-bottom: 0.5rem; }
}
@media (max-width: 639px) {
  .btn { padding: 0.55rem 1.2rem; font-size: 0.825rem; }
  .btn.large { padding: 0.55rem 1.2rem; }
}

/* ══════════════════════════════════
   LANDINGPAGINA
══════════════════════════════════ */

/* Vertical spacing overrides for landing body */
body.landing main > section:not(.landing-hero) { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* ── Landing hero ── */
.landing-hero {
  background: var(--dark);
  color: #fff;
  padding: 3rem 0 3.5rem;
}
.landing-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.hero-content { min-width: 0; overflow: hidden; }
.hero-visual {
  display: none;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  align-self: center;
}
.hero-visual svg { width: 100%; height: auto; }
.hero-visual .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.landing-hero .breadcrumb {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.landing-hero .breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.landing-hero .breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.landing-hero .breadcrumb span { color: rgba(255,255,255,0.35); }
.landing-hero .breadcrumb b { color: var(--accent); }
.landing-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}
.landing-hero .hero-intro {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.landing-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; margin-bottom: 2.5rem; }
.landing-hero .hero-cta .btn.secondary {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75);
  background: transparent;
}
.landing-hero .hero-cta .btn.secondary:hover { border-color: #fff; color: #fff; background: transparent; }

/* ── Trust stats bar ── */
.landing-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.75rem;
}
.trust-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-stat strong { font-size: 1.35rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.trust-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ── Landing article layout ── */
body.landing .article-layout { padding-bottom: 3rem; }
body.landing .article-content { min-width: 0; }
body.landing .article-content > * + *       { margin-top: 1rem; }
body.landing .article-content > * + section { margin-top: 2rem; }
body.landing .article-content > section + * { margin-top: 1.75rem; }
body.landing .article-content section > * + * { margin-top: 1.1rem; }
body.landing .article-content section p { margin-bottom: 1.25rem; }
body.landing .article-content section p:last-child { margin-bottom: 0; }
body.landing .article-content h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 0;
}
body.landing .article-content section > * + h3 { margin-top: 1.75rem; }
body.landing .article-content section > h3 + * { margin-top: 0.625rem; }

/* ── Content cluster links ── */
.cluster-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.cluster-link {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cluster-link:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(81,216,112,0.12); }
.cluster-link strong { font-size: 0.875rem; color: var(--text); display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.2rem; }
.cluster-link strong::before { content: '→'; color: var(--accent-text); font-size: 0.85rem; flex-shrink: 0; }
.cluster-link small { font-size: 0.775rem; color: var(--muted); }

/* ── Content afbeelding (ACF afbeelding_sectie) ── */
.content-image { margin: 0; }
.content-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  display: block;
}
.content-image figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}
.content-image.uitlijning-links,
.content-image.uitlijning-rechts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 640px) {
  .content-image.uitlijning-links  { grid-template-columns: 280px 1fr; }
  .content-image.uitlijning-rechts { grid-template-columns: 1fr 280px; }
  .content-image.uitlijning-rechts img { order: 2; }
}

/* ── Overzichtstabel ── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
  margin: 0;
}
.data-table th {
  background: var(--accent-light);
  color: var(--accent-text);
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.875rem;
  border-bottom: 2px solid rgba(81,216,112,0.3);
  white-space: nowrap;
}
.data-table thead tr th:first-child { border-radius: 0.7rem 0 0 0; }
.data-table thead tr th:last-child  { border-radius: 0 0.7rem 0 0; }
.data-table td {
  padding: 0.6rem 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td strong { color: var(--accent-text); }
.data-table-wrap { border-radius: 0.75rem; border: 1px solid var(--border); overflow: hidden; background: #fff; }
.swipe-hint { display: none; }
@media (max-width: 767px) {
  .data-table { min-width: 480px; }
  .data-table th, .data-table td { white-space: nowrap; }
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.25rem;
  }
  .swipe-hint svg { width: 16px; height: 10px; flex-shrink: 0; }
}

/* ── Prose lijsten (in ACF tekst-secties en FAQ antwoorden) ── */
.tekst-prose ul, .tekst-prose ol,
.faq-body ul, .faq-body ol {
  padding-left: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.625rem 0;
}
.tekst-prose ul li, .faq-body ul li {
  position: relative;
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--muted);
}
.tekst-prose ul li::before, .faq-body ul li::before {
  content: '•';
  position: absolute;
  left: -1.125rem;
  color: var(--accent-text);
  font-weight: 700;
  line-height: 1.75;
}
.tekst-prose ol { counter-reset: tekst-ol; padding-left: 1.75rem; }
.tekst-prose ol li, .faq-body ol li {
  counter-increment: tekst-ol;
  position: relative;
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--muted);
}
.tekst-prose ol li::before, .faq-body ol li::before {
  content: counter(tekst-ol) '.';
  position: absolute;
  left: -1.5rem;
  color: var(--accent-text);
  font-weight: 700;
  line-height: 1.75;
}

/* ── Stap-voor-stap lijst ── */
.steps-list { list-style: none; counter-reset: steps; display: flex; flex-direction: column; gap: 1rem; }
.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.steps-list li::before {
  content: counter(steps);
  min-width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Landing page FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
details.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--card);
  overflow: hidden;
}
details.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.975rem;
  color: var(--text);
  list-style: none;
  transition: background 0.15s;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary:hover { background: var(--bg); }
details.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent-text);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item .faq-body { padding: 0 1.25rem 1.1rem; }
details.faq-item .faq-body p { font-size: 0.925rem; }

/* ── Gerelateerde onderwerpen (sidebar card) ── */
.related-topics { padding: 1.25rem; }
.related-topics h4 { margin-bottom: 0.875rem; }
.related-topics ul { display: flex; flex-direction: column; gap: 0.5rem; }
.related-topics ul li a {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s;
}
.related-topics ul li a::before { content: '→'; color: var(--accent-text); font-size: 0.85rem; }
.related-topics ul li a:hover { color: var(--accent-text); }

/* ── CTA aside (landing) ── */
body.landing .cta-aside { padding: 1.5rem 1.25rem; }
body.landing .cta-aside small {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.5rem;
}
body.landing .cta-aside p { margin-bottom: 1rem; font-size: 0.9rem; }

/* ── Inline CTA banner ── */
.cta-inline {
  background: var(--dark);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.cta-inline p { color: rgba(255,255,255,0.7); font-size: 0.975rem; }
.cta-inline h3 { color: #fff; margin: 0 0 0.5rem; }

@media (min-width: 640px) {
  .landing-trust { grid-template-columns: repeat(4, 1fr); gap: 1rem 3rem; }
  .trust-stat strong { font-size: 1.5rem; }
  .cta-inline { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-inline > div { flex: 1; }
  .cluster-links { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .landing-hero-inner { grid-template-columns: 1fr 340px; align-items: center; gap: 3rem; }
  .hero-visual { display: block; }
  .cluster-links { grid-template-columns: repeat(3, 1fr); }
}

/* ── Scroll-naar-boven knop ── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.2s, background 0.2s;
  z-index: 40;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--accent-dark); transform: translateY(-3px); }
#scroll-top svg { width: 20px; height: 20px; }
@media (max-width: 1023px) {
  #scroll-top { width: 40px; height: 40px; bottom: 1.25rem; right: 1rem; }
  #scroll-top svg { width: 16px; height: 16px; }
}

/* ══════════════════════════════════
   ACCOUNT PAGINA
══════════════════════════════════ */

/* Login — fullscreen gecentreerd (deelt structuur met check-pagina) */
body.page-template-template-account { overflow: hidden; height: 100vh; height: 100svh; padding-bottom: env(safe-area-inset-bottom, 0px); display: flex; flex-direction: column; }
body.admin-bar.page-template-template-account { height: calc(100svh - 32px); }
@media (max-width: 782px) {
  body.admin-bar.page-template-template-account { height: calc(100svh - 46px); }
}
body.page-template-template-account #site-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.page-template-template-account main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
body.page-template-template-account.logged-in { overflow: auto; height: auto; display: block; }
body.page-template-template-account.logged-in #site-wrap { flex: none; min-height: 0; height: auto; }
body.page-template-template-account.logged-in main { overflow: visible; }

.account-login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; }
.account-login-box { width: 100%; max-width: 400px; align-items: center; }
.account-login-box .account-form,
.account-login-box .account-remember,
.account-login-box .account-forgot { align-self: stretch; }
.account-login-box h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
.account-login-box > p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.account-form { display: flex; flex-direction: column; gap: 0.875rem; width: 100%; margin-top: 0.5rem; }
.account-field { display: flex; flex-direction: column; gap: 0.375rem; }
.account-field label { font-size: 0.85rem; font-weight: 600; color: var(--text); text-align: left; }
.account-field input { padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: 0.625rem; font-size: 0.95rem; font-family: inherit; background: #fff; color: var(--text); transition: border-color 0.2s; outline: none; }
.account-field input:focus { border-color: var(--accent); }
.account-remember { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.account-remember input { width: 1rem; height: 1rem; accent-color: var(--accent); cursor: pointer; }
.account-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 0.5rem; padding: 0.625rem 0.875rem; font-size: 0.875rem; font-weight: 500; margin: 0; width: 100%; box-sizing: border-box; }
.account-forgot { font-size: 0.825rem; color: var(--muted); text-align: center; margin-top: 0.25rem; transition: color 0.2s; }
.account-forgot:hover { color: var(--text); }

/* Dashboard */
.account-dashboard-wrap { padding: 0 0 4rem; }
.account-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 2.5rem 0 2rem; gap: 1rem; flex-wrap: wrap; }
.account-header h1 { font-size: clamp(1.6rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 0.875rem 0 0.5rem; }
.account-header > p { color: var(--muted); font-size: 1rem; margin: 0 0 1rem; }
.account-header .btn { margin-top: 0.25rem; }

.account-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .account-grid { grid-template-columns: repeat(2, 1fr); } }

.account-card { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.account-card-icon { width: 44px; height: 44px; border-radius: 0.75rem; background: var(--accent-light); display: flex; align-items: center; justify-content: center; }
.account-card-icon svg { width: 20px; height: 20px; stroke: var(--accent-text); }
.account-card h3 { font-size: 1rem; margin: 0; }
.account-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; margin: 0; flex: 1; }
.account-data { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; background: #f3faf5; border: 1px solid #b6e8c2; border-radius: 10px; padding: 1rem 1.25rem; }
.account-data div { display: flex; flex-direction: column; gap: 0.1rem; }
.account-data dt { font-size: 0.75rem; font-weight: 600; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.05em; }
.account-data dd { font-size: 0.9rem; color: var(--text); margin: 0; }
.account-field { display: flex; flex-direction: column; gap: 4px; }
.account-field label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.account-field input { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.9rem; width: 100%; box-sizing: border-box; }
.account-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.account-field-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.ebc-gen-pass-btn { background: none; border: none; padding: 0; font-size: 0.78rem; font-weight: 600; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ebc-gen-pass-btn:hover { opacity: 0.75; }
.ebc-pass-wrap { position: relative; }
.ebc-pass-wrap input { padding-right: 4.5rem; }
.ebc-pass-toggle { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 0.75rem; font-weight: 600; color: #6b7280; cursor: pointer; padding: 0.25rem; }
.ebc-pass-toggle:hover { color: var(--text); }
.ebc-pass-strength { display: flex; align-items: center; gap: 0.5rem; margin-top: 2px; }
.ebc-pass-strength-bar { flex: 1; height: 4px; border-radius: 2px; background: #e5e7eb; overflow: hidden; }
.ebc-pass-strength-fill { height: 100%; border-radius: 2px; width: 0; transition: width 0.3s, background 0.3s; }
.ebc-pass-strength-label { font-size: 0.72rem; font-weight: 700; min-width: 68px; text-align: right; }

/* ── Partner dashboard ── */
.account-grid--partner { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 900px) { .account-grid--partner { grid-template-columns: 1fr 320px; } }

.account-card--leads { overflow-x: auto; }

.account-badge-new {
  display: inline-flex; align-items: center; justify-content: center;
  background: #dc3545; color: #fff;
  font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 999px; line-height: 1; flex-shrink: 0;
}

.account-leads-table-wrap { overflow-x: auto; overflow-y: hidden; margin-top: 0.75rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.account-leads-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.account-leads-table thead tr { border-bottom: 2px solid rgba(81,216,112,0.3); }
.account-leads-table th { text-align: left; font-size: 0.8rem; font-weight: 700; color: var(--accent-text); padding: 0.6rem 0.75rem; white-space: nowrap; background: var(--accent-light); }
.account-leads-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; background: #fff; color: var(--text); }
.account-leads-table tbody tr:last-child td { border-bottom: none; }
.account-leads-table a { color: var(--accent-text); text-decoration: none; }
.account-leads-table a:hover { text-decoration: underline; }
.account-lead-gezien { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent-light); cursor: pointer; position: relative; flex-shrink: 0; display: block; vertical-align: middle; }
.account-lead-gezien:checked { background: var(--accent-light); border-color: var(--accent); }
.account-lead-gezien:checked::after { content: ''; position: absolute; left: 50%; top: 45%; width: 5px; height: 9px; border: 2px solid var(--accent-text); border-top: none; border-left: none; transform: translate(-50%, -60%) rotate(45deg); }
.account-lead-gezien:disabled { cursor: default; opacity: 0.7; }

/* ══════════════════════════════════
   JURIDISCHE PAGINA'S
══════════════════════════════════ */

.legal-wrap { max-width: 780px; padding-top: 2.5rem; padding-bottom: 5rem; }
.legal-meta { font-size: 0.8125rem; color: var(--muted); padding-bottom: 1.25rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.legal-contact { margin-top: 2.5rem; }
.legal-contact strong { display: block; margin-bottom: 0.375rem; font-size: 1rem; }

/* Footer op fullscreen mobile pagina's: alleen logo tonen */
@media (max-width: 1023px) {
  body.page-template-template-check #site-wrap > footer nav,
  body.page-template-template-check #site-wrap > footer p,
  body.page-template-template-account:not(.logged-in) #site-wrap > footer nav,
  body.page-template-template-account:not(.logged-in) #site-wrap > footer p,
  body.error404 #site-wrap > footer nav,
  body.error404 #site-wrap > footer p { display: none; }
}

/* Gutenberg figure-wrapper resetten zodat data-table-wrap correct werkt */
.data-table-wrap > figure.wp-block-table { margin: 0; overflow: visible; display: block; }
.data-table-wrap > figure.wp-block-table > table { margin: 0; }
.data-table-wrap .wp-block-table thead { border-bottom: none; }
.data-table-wrap .wp-block-table tfoot { border-top: none; }
.data-table-wrap .wp-block-table td,
.data-table-wrap .wp-block-table th { border: none; }

/* ══════════════════════════════════
   CHECK TOOL — template-check.php
══════════════════════════════════ */

.check-page { padding: 2rem 0 4rem; }
.check-page .wrap { max-width: 1060px; width: 100%; }

/* ── Wizard card ── */
.check-wizard {
  width: 100%;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .check-wizard { max-width: 860px; width: 100%; margin-left: auto; margin-right: auto; }
}

.check-wizard-header {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

/* ── Partner dashboard card ── */
.partner-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.partner-dashboard-header h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}
.partner-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.75rem;
}
.partner-tab {
  background: none;
  border: none;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.15s;
}
.partner-tab:hover { color: var(--text); }
.partner-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.partner-tab.is-warning { color: #dc2626; }
.partner-tab.is-warning.is-active { color: #dc2626; border-bottom-color: #dc2626; }
.partner-tab-panel { animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.check-wizard-header h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

/* ── Voortgangsbalk ── */
.check-progress {
  height: 6px;
  background: var(--accent-light);
  border-radius: 999px;
  overflow: hidden;
}

.check-progress-bar {
  height: 100%;
  width: 25%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 200ms ease;
}

.check-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}
.check-loader.is-visible { display: flex; }
.check-loader__spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ebc-spin 0.75s linear infinite;
}
.check-loader__text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
@keyframes ebc-spin {
  to { transform: rotate(360deg); }
}

/* ── Formulier ── */
#check-form { width: 100%; }

.check-step              { display: none; width: 100%; }
.check-step.is-active    { display: grid; gap: 1rem; width: 100%; }

.check-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  width: 100%;
}

.check-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.875rem;
  width: 100%;
}

.check-grid-adres {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 0.875rem;
  width: 100%;
}

.check-field { display: grid; gap: 0.5rem; width: 100%; }

.check-field span {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.check-field em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.check-field input {
  min-height: 46px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e4eaed;
  background: #fff;
  padding: 0 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
}

.check-field input::placeholder { color: #a0adb4; }

.check-field input:focus,
.check-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.check-field input.is-invalid,
.check-field select.is-invalid,
.ebc-aanmeld-field input.is-invalid {
  border: 1px solid #e5321b;
}
.check-field .ebc-required,
.ebc-aanmeld-field .ebc-required,
.check-fieldset .ebc-required {
  color: #e55;
}

.check-field select {
  min-height: 46px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e4eaed;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.875rem center;
  padding: 0 2.75rem 0 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.check-akkoord {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #4b5563);
  line-height: 1.5;
  cursor: pointer;
}
.check-akkoord input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--accent, #22c55e);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  background: #fff;
}
.check-akkoord input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent-dark);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='2,6 5,9 10,3' stroke='%231a2e20' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
}
.check-akkoord a {
  color: var(--accent-dark, #16a34a);
  text-decoration: underline;
}
.check-akkoord input.is-invalid {
  -webkit-appearance: none;
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid #dc2626;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.check-note {
  background: var(--accent-light);
  border: 1px solid rgba(81,216,112,0.25);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--accent-text);
  font-size: 0.875rem;
  line-height: 1.55;
}

.check-note-tooltip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.check-note-arrow {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid rgba(81,216,112,0.35);
  margin-right: 6rem;
  position: relative;
}
.check-note-arrow::after {
  content: '';
  position: absolute;
  top: -11px;
  left: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--accent-light);
}

.check-type-tip {
  position: relative;
  background: var(--accent-light);
  border: 1px solid rgba(81,216,112,0.25);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--accent-text);
  font-size: 0.825rem;
  line-height: 1.5;
  margin-top: 0;
}
.check-type-tip__arrow {
  position: absolute;
  top: -8px;
  left: 1.25rem;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(81,216,112,0.25);
}
.check-type-tip__arrow::after {
  content: '';
  position: absolute;
  top: 2px;
  left: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--accent-light);
}

.check-review {
  background: var(--accent-light);
  border: 1px solid rgba(81,216,112,0.25);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

/* ── Checkboxes maatregelen ── */
.check-fieldset {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
}

.check-fieldset legend {
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0 0.25rem;
  color: var(--text);
}

.check-measure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.check-measure-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.9rem;
  font-weight: 500;
}

.check-measure-item:has(input:checked) {
  background: var(--accent-light);
  border-color: var(--accent);
}

.check-measure-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-text);
  flex-shrink: 0;
}

/* ── Knoppen ── */
.check-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
}

.is-hidden { display: none !important; }

/* ── Resultaten ── */
.check-results { display: grid; gap: 1.25rem; }

.check-results-header {
  background: var(--accent-bg);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
}

.check-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.check-review-card {
  padding: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  background: var(--accent-light);
  border-color: rgba(81,216,112,0.3);
}

/* Oude naam bewaard voor backwards compat */
.check-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.check-summary-main { padding: 1.5rem; }
.check-summary-label { font-size: 0.875rem; font-weight: 700; color: var(--muted); }

.check-summary-main h2 {
  margin: 0.5rem 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-text);
}

.check-label-jump {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.check-label-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 44px;
  padding: 0 0.875rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.check-label-pill.muted   { background: var(--accent-light); color: var(--accent-text); opacity: 0.6; }
.check-label-pill.success { background: var(--accent); color: var(--accent-text); }
.check-arrow { font-size: 1.5rem; color: var(--muted); }

.check-summary-points { display: grid; gap: 0.625rem; }
.check-summary-points li {
  display: flex; gap: 0.35rem; align-items: flex-start;
  font-size: 0.9rem; line-height: 1.5; color: var(--text);
}
.check-summary-points li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a5c2e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ── Woningkaart ── */
.check-house-card { padding: 1.25rem; display: grid; gap: 0.875rem; }

.check-house-visual {
  min-height: 180px;
  border-radius: 0.75rem;
  background: linear-gradient(180deg,
    rgba(202,223,247,0.9) 0%,
    rgba(233,240,240,0.92) 48%,
    rgba(207,222,201,0.95) 100%);
  position: relative;
  overflow: hidden;
}

.check-house-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(107,149,88,0) 0%, rgba(107,149,88,0.36) 100%);
}

.check-house-shape {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  width: 64%; height: 148px;
}

.check-roof {
  position: absolute; inset: 0 0 auto;
  margin: 0 auto; width: 80%; height: 44px;
  background: linear-gradient(180deg, #5d463c, #46352d);
  clip-path: polygon(10% 100%, 50% 0%, 90% 100%);
}

.check-house-body {
  position: absolute; left: 15%; right: 15%;
  bottom: 0; top: 36px;
  background: linear-gradient(180deg, #be8f77, #b07e67);
  border-radius: 4px;
}

.check-windows {
  position: absolute; inset: 54px 22% 18px;
  background: linear-gradient(90deg,
    rgba(230,243,246,0.9) 0 18%, transparent 18% 34%,
    rgba(230,243,246,0.9) 34% 52%, transparent 52% 68%,
    rgba(230,243,246,0.9) 68% 86%, transparent 86% 100%);
}

.check-info-banner {
  background: var(--accent-light);
  border: 1px solid rgba(81,216,112,0.25);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--accent-text);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ── Advieskaarten ── */
.check-advice-section h2 { margin: 0.5rem 0 1rem; }
.check-advice-list { display: grid; gap: 0.875rem; margin-top: 0; }

.check-advice-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  overflow: hidden;
  padding: 0;
}

.check-advice-image {
  min-height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 24%),
    linear-gradient(145deg, var(--accent) 0%, var(--accent-dark) 45%, var(--dark) 45%, #101c14 100%);
  position: relative;
}

.check-advice-image::after {
  content: "";
  position: absolute;
  inset: 18% 12%;
  border-radius: 0.875rem;
  background: rgba(0,0,0,0.18);
  z-index: 0;
}

.check-advice-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.check-advice-icon svg {
  width: 56px;
  height: 56px;
  color: #fff;
  opacity: 0.92;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.check-advice-body { padding: 1.25rem 1.5rem; }

.check-advice-top { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.875rem; }
.check-advice-top h3 { margin: 0; font-size: 1.1rem; flex: 1; }

.check-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}
@media (max-width: 1024px) {
  .check-metrics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .check-metrics { grid-template-columns: repeat(2, 1fr); }
}

.check-metric span   { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.2rem; }
.check-metric strong { font-size: 0.925rem; font-weight: 700; color: var(--text); }

.check-advice-body > p { color: var(--muted); font-size: 0.875rem; line-height: 1.65; margin: 0 0 0.875rem; }

.check-partner-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}
.check-partner-box .btn.primary {
  flex-shrink: 0;
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}
.check-partner-box .btn.primary:hover {
  background: #ea6c0a;
  border-color: #ea6c0a;
}
/* Na aanvraag: oranje → lichtgroen, ballon verdwijnt */
.check-partner-box .btn.is-confirmed {
  background: #e8f5ec !important;
  border-color: #b6e8c2 !important;
  color: #1a5c2e !important;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.check-partner-box .btn.is-confirmed + .check-partner-bubble {
  display: none;
}
.check-affiliate-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  line-height: 1.3;
}
.check-affiliate-link:hover {
  color: var(--accent-dark, #155724);
}
.check-partner-bubble {
  position: relative;
  flex: none;
  max-width: 270px;
  background: #e8f5ec;
  border: 1px solid #b6e8c2;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  color: #2d6a42;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
}
/* pijl naar links */
.check-partner-bubble::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 11px solid #b6e8c2;
}
.check-partner-bubble::before {
  content: '';
  position: absolute;
  right: calc(100% - 1px);
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-right: 10px solid #e8f5ec;
  z-index: 1;
}

/* ── Stap 2: twee-koloms layout ── */
.check-step2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.check-step2-form { display: flex; flex-direction: column; gap: 1rem; }

.check-step2-aside {
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface);
}

.check-step2-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}
.check-step2-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.check-step2-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--dark) 0%, #1a2e20 100%);
}
.check-step2-photo--placeholder::after {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 28L32 8l24 20'/%3E%3Cpath d='M12 28v28h40V28'/%3E%3Crect x='24' y='38' width='16' height='18'/%3E%3Cpath d='M22 18h6v8h-6z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.check-step2-photo--placeholder svg {
  width: 56px;
  height: 56px;
  color: rgba(255,255,255,0.25);
}

.check-step2-address {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.check-step2-street   { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.check-step2-city     { font-size: 0.875rem; color: var(--muted); }
.check-step2-provincie { font-size: 0.8rem; color: var(--muted); }
.check-step2-bouwjaar  { font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 0.5rem; margin-top: 0.125rem; }

.check-step2-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.825rem;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 0.625rem;
  margin-top: 0.125rem;
}
.check-step2-meta span { display: flex; flex-direction: column; gap: 0.125rem; }
.check-step2-meta em { font-style: normal; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

@media (max-width: 680px) {
  .check-step2-grid { grid-template-columns: 1fr; }
  .check-step2-aside { order: -1; }
}

/* ── BAG adres gevonden ── */
.check-bag-found {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  border: 1px solid rgba(81,216,112,0.35);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--accent-text);
  margin-bottom: 1.25rem;
}
.check-bag-found::before {
  content: "✓";
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Resultaten: titel ── */
.check-results-title {
  margin: 0.5rem 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Contactformulier op resultatenpagina ── */
.check-step5-intro {
  background: var(--accent-light);
  border: 1px solid rgba(81,216,112,0.35);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.875rem;
  color: var(--accent-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Opgeslagen melding (PHP-versie) ── */
.check-saved-msg {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 1;
  transition: opacity 0.8s ease;
}
.check-saved-msg a { text-decoration: underline; color: var(--accent-text); }

/* ── Geen aanbevelingen ── */
.check-no-recs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 1.25rem 1.5rem;
  background: var(--accent-light);
  border-radius: 1rem;
  font-size: 0.95rem;
}

/* ── Nieuwe check starten ── */
.check-restart { display: flex; justify-content: flex-start; }

/* ── Opgeslagen melding (oude class, backwards compat) ── */
.check-saved {
  padding: 0.875rem 1.25rem;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 0.75rem;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.9rem;
}

.check-saved a { text-decoration: underline; color: var(--accent-text); }

/* ── Account: opgeslagen check ── */
.account-check-adres  { font-weight: 700; color: var(--text); margin: 0 0 0.25rem; font-size: 0.95rem; }
.account-check-datum  { font-size: 0.8rem; color: var(--muted); margin: 0 0 1rem; }
.account-check-savings {
  display: flex; flex-direction: column; gap: 0.2rem;
  background: var(--accent-light); border-radius: 0.75rem;
  padding: 0.875rem 1rem; margin-bottom: 1rem;
}
.account-check-savings span   { font-size: 0.8rem; font-weight: 600; color: var(--accent-text); }
.account-check-savings strong { font-size: 1.5rem; font-weight: 800; color: var(--accent-text); letter-spacing: -0.02em; line-height: 1; }
.account-check-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.25rem; }

/* ── Responsive ── */
@media (max-width: 780px) {
  .check-summary-grid,
  .check-top-grid { grid-template-columns: repeat(2, 1fr); }
  .check-advice-card { grid-template-columns: 1fr; }
  .check-advice-image { min-height: 200px; }
}

@media (max-width: 560px) {
  .check-wizard { padding: 1.25rem; }
  .check-grid-2,
  .check-grid-3,
  .check-grid-adres,
  .check-measure-grid,
  .check-top-grid,
  .check-summary-grid,
  .check-advice-card { grid-template-columns: 1fr; }
  .check-advice-image { min-height: 180px; }
  .check-top-grid .check-summary-main { order: -1; }
  .check-top-grid .check-review-card  { order:  1; }
  .check-actions .btn { flex: 1; justify-content: center; }

  .check-partner-box { flex-direction: column; align-items: center; gap: 0; }
  .check-partner-box .btn.primary { justify-content: center; margin-bottom: 1.25rem; }
  .check-partner-bubble { max-width: 270px; text-align: center; }
  .check-partner-bubble::after {
    right: auto; left: 50%; top: auto; bottom: 100%;
    transform: translateX(-50%);
    border-top: 0; border-right: 10px solid transparent;
    border-left: 10px solid transparent; border-bottom: 11px solid #b6e8c2;
  }
  .check-partner-bubble::before {
    right: auto; left: 50%; top: auto; bottom: calc(100% - 1px);
    transform: translateX(-50%);
    border-top: 0; border-right: 9px solid transparent;
    border-left: 9px solid transparent; border-bottom: 10px solid #e8f5ec;
    z-index: 1;
  }
}

/* ══════════════════════════════════
   MODAL: OFFERTE AANVRAGEN
══════════════════════════════════ */

.ebc-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ebc-modal.is-open { display: flex; }

.ebc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.ebc-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: min(520px, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 2rem;
  animation: ebc-modal-in 0.22s ease;
}
@keyframes ebc-modal-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ebc-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ebc-modal-close:hover { color: var(--text); border-color: var(--text); }

.ebc-modal-box h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  padding-right: 2.5rem;
}
.ebc-modal-intro {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
#ebc-quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.ebc-modal-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.ebc-modal-row2 .check-field,
.ebc-modal-box .check-field {
  margin-bottom: 0;
}
.ebc-optional {
  font-weight: 400;
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}
.ebc-modal-measures { margin-bottom: 0; }
.ebc-modal-measures-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.ebc-modal-checks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ebc-modal-checks label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: background 0.1s, border-color 0.1s;
}
.ebc-modal-checks label:has(input:checked) {
  background: #e8f5ec;
  border-color: #b6e8c2;
}
.ebc-modal-checks label:has(input:disabled) {
  background: #e8f5ec;
  border-color: #b6e8c2;
}
.ebc-modal-checks input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-dark);
  flex-shrink: 0;
}
.ebc-modal-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: #b91c1c;
  margin-bottom: 0.75rem;
  text-align: center;
}
.ebc-quote-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}
.ebc-modal-box.is-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
#ebc-quote-success {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0;
}
.ebc-modal-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8f5ec;
  margin-bottom: 1rem;
}
.ebc-modal-success p {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
  max-width: 320px;
}
@media (max-width: 480px) {
  .ebc-modal-row2 { grid-template-columns: 1fr; }
  .ebc-modal-box  { padding: 1.5rem; }
}

/* ── Partner aanmeldpagina ── */
.ebc-aanmeld-intro-tekst { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin: -0.75rem 0 1.75rem; }

.ebc-aanmeld-error {
  background: #fef2f2; color: #b91c1c;
  border: 1px solid #fecaca; border-radius: 0.625rem;
  padding: 0.75rem 1rem; font-size: 0.9rem; font-weight: 500;
  margin-bottom: 1.5rem;
}

.ebc-aanmeld-form { display: flex; flex-direction: column; gap: 2rem; }

.ebc-aanmeld-section { display: flex; flex-direction: column; gap: 1rem; }
.ebc-aanmeld-section .check-fieldset { padding-top: 0.625rem; }
.ebc-aanmeld-section .check-measure-grid { margin-top: 0.375rem; }
.check-fieldset.is-invalid { border-color: #e5321b; }
.ebc-aanmeld-section h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--dark);
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent-light);
}
.ebc-aanmeld-sectie-toelichting { font-size: 0.875rem; color: var(--muted); margin: -0.25rem 0 0; }

.ebc-aanmeld-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ebc-aanmeld-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.ebc-aanmeld-field { display: flex; flex-direction: column; gap: 0.35rem; }
.ebc-aanmeld-full  { grid-column: 1 / -1; }

.ebc-aanmeld-field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.ebc-aanmeld-field input {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border); border-radius: 0.625rem;
  font-size: 0.95rem; font-family: inherit; background: #fff;
  color: var(--text); transition: border-color 0.2s; outline: none;
}
.ebc-aanmeld-field input:focus { border-color: var(--accent); }
.ebc-aanmeld-hint { font-size: 0.78rem; color: var(--muted); }
.ebc-required { color: #e55; font-size: 0.8rem; }
.ebc-akkoord-fout { display: none; color: #dc2626; font-size: 0.8rem; margin: 0.35rem 0 0; }
.ebc-akkoord-fout.is-zichtbaar { display: block; }

.ebc-aanmeld-checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
.ebc-aanmeld-check {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.6rem 0.75rem; border: 1.5px solid var(--border);
  border-radius: 0.5rem; cursor: pointer; font-size: 0.875rem;
  background: #fff; transition: border-color 0.15s, background 0.15s;
  line-height: 1.4;
}
.ebc-aanmeld-check:hover { border-color: var(--accent); background: var(--accent-light); }
.ebc-aanmeld-check input[type="checkbox"] {
  flex-shrink: 0; width: 1rem; height: 1rem; margin-top: 0.1rem;
  accent-color: var(--accent); cursor: pointer;
}
.ebc-aanmeld-check:has(input:checked) {
  border-color: var(--accent-dark); background: var(--accent-light);
}

.ebc-aanmeld-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 2rem 1rem 1rem; gap: 1rem;
}
.ebc-aanmeld-success-icon {
  width: 56px; height: 56px; color: var(--accent-dark);
}
.ebc-aanmeld-success-icon svg { width: 100%; height: 100%; }
.ebc-aanmeld-success p { color: var(--muted); max-width: 480px; line-height: 1.7; font-size: 0.95rem; }

/* ── Partner pakket-kaartjes ── */
.aanmeld-pakket-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}
.aanmeld-pakket-card {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.375rem 1.25rem;
  padding-top: 1.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: center;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.aanmeld-pakket-card:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(81,216,112,0.18);
}
.aanmeld-pakket-card.is-popular {
  border-color: var(--accent);
}
.aanmeld-pakket-card input[type="radio"] { display: none; }
.aanmeld-pakket-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  background: var(--accent);
  color: #1a2e20;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  width: fit-content;
}
.aanmeld-pakket-leads {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-top: 0.25rem;
}
.aanmeld-pakket-leads-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.aanmeld-pakket-bonus {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-text);
  background: rgba(81,216,112,0.18);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.25rem;
}
.aanmeld-pakket-naam {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.aanmeld-pakket-prijs {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-text);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  width: 100%;
}
.aanmeld-pakket-prijs em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

/* ── Partner controle-samenvatting ── */
.aanmeld-controle {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.aanmeld-controle-blok {
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
}
.aanmeld-controle-kop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.aanmeld-controle-kop strong {
  font-size: 0.9rem;
  color: var(--text);
}
.aanmeld-controle-wijzig {
  font-size: 0.8rem;
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
}
.aanmeld-controle-wijzig:hover { text-decoration: underline; }
.aanmeld-controle-rijen {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.aanmeld-controle-rijen > div {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
}
.aanmeld-controle-rijen > div > span:first-child {
  color: var(--muted);
  min-width: 120px;
  flex-shrink: 0;
}
.aanmeld-controle-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.aanmeld-controle-pill {
  background: var(--accent-light);
  border: 1px solid rgba(81,216,112,0.3);
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .aanmeld-pakket-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ebc-aanmeld-grid,
  .ebc-aanmeld-grid-3 { grid-template-columns: 1fr; }
  .ebc-aanmeld-checkgrid { grid-template-columns: 1fr 1fr; }
}

/* ── Partner betaling-geannuleerd ── */
.ebc-aanmeld-cancel {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.ebc-aanmeld-cancel-icon {
  width: 64px;
  height: 64px;
  color: #d97706;
  margin: 0 auto 1.25rem;
}
.ebc-aanmeld-cancel-icon svg { width: 100%; height: 100%; }
.ebc-aanmeld-cancel p { color: var(--muted); }

/* ── Partner dashboard ── */
.ebc-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.25rem 0 0.5rem;
}
.ebc-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.ebc-dash-stat {
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.25rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ebc-dash-stat--balance {
  border-color: #b6e8c2;
  background: #f0fdf4;
}
.ebc-dash-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ebc-dash-stat--warning .ebc-dash-stat-value { color: #dc2626; }
.ebc-dash-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-text);
  line-height: 1.1;
}
.ebc-dash-stat-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.ebc-dash-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}
.ebc-dash-pill {
  background: var(--accent-light);
  border: 1px solid rgba(81,216,112,0.3);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.ebc-dash-section {
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.375rem 1.5rem;
  background: var(--card);
}
.ebc-dash-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.ebc-dash-intro {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.ebc-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ebc-dash-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 0.5rem 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.ebc-dash-table td {
  padding: 0.6rem 0.5rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.ebc-dash-table tr:last-child td { border-bottom: none; }
.ebc-dash-pos { color: #166534; font-weight: 600; }
.ebc-dash-neg { color: #dc2626; font-weight: 600; }
.ebc-factuur-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  transition: background 0.15s;
  outline: none;
}
.ebc-factuur-link:hover,
.ebc-factuur-link:focus,
.ebc-factuur-link:focus-visible,
.ebc-factuur-link:active { outline: none !important; box-shadow: none !important; }
.ebc-factuur-link:hover { background: var(--accent-light); text-decoration: none !important; }

.ebc-tegoed-warning-text {
  margin: 0.75rem 0 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.ebc-btn-warning {
  background: #f97316;
  color: #fff;
  border-color: #f97316;
  font-weight: 700;
  align-self: flex-start;
}
.ebc-btn-warning:hover {
  background: #ea6c0a;
  border-color: #ea6c0a;
}

/* Modal: bijkopen (account pagina) */
#ebc-bijkopen-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ebc-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.ebc-modal-box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.ebc-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.ebc-modal-close:hover { color: var(--text); }

/* Bijkopen modal breder */
#ebc-bijkopen-modal .ebc-modal-box {
  max-width: 860px;
}
#ebc-bijkopen-modal .aanmeld-pakket-card {
  padding: 0.75rem 0.875rem;
  padding-top: 1rem;
}
#ebc-bijkopen-modal .aanmeld-pakket-grid {
  gap: 1.75rem;
}
@media (max-width: 760px) {
  #ebc-bijkopen-modal .aanmeld-pakket-leads { font-size: 2rem; }
}

#ebc-bijkopen-modal .btn.primary {
  background: #f97316;
  border-color: #f97316;
  color: #fff;
}
#ebc-bijkopen-modal .btn.primary:hover {
  background: #ea6c0a;
  border-color: #ea6c0a;
  color: #fff;
}

/* Gegevens-tab: persoonsgegevens links, maatregelen rechts */
.ebc-gegevens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.ebc-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
}
.ebc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  cursor: pointer;
}
.ebc-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Tegoed-tab: tegoed + leadprijzen naast elkaar */
.ebc-tegoed-row {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
.ebc-leadprijzen-wrap {
  margin-top: 0 !important;
}

/* Inklapbare leadprijzen */
.ebc-collapsible-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.5rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.ebc-collapsible-toggle:hover { color: var(--accent); }
.ebc-collapsible-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

@media (max-width: 760px) {
  .ebc-dash-stats { grid-template-columns: 1fr; }
  .ebc-tegoed-row { grid-template-columns: 1fr; }
  .ebc-gegevens-grid { grid-template-columns: 1fr; }
  .ebc-checkbox-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Contactpagina ─────────────────────────────────────────────────────────── */
.contact-wrap { padding-top: 2.5rem; padding-bottom: 4rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 0; align-items: flex-start; }
.contact-fields { width: 100%; }

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.contact-field-full { grid-column: 1 / -1; }

.contact-field-full textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  line-height: 1.55;
}
.contact-field-full textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,92,46,.12);
}
.contact-field-full textarea.is-invalid { border-color: #e5321b; }

.contact-akkoord {
  width: 100%;
  margin-bottom: 1.5rem;
  border: none;
  padding: 0;
}
.contact-akkoord-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}
.contact-akkoord-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.contact-akkoord-label a { color: var(--accent); text-decoration: underline; }

.contact-errors {
  background: #fff5f5;
  border: 1.5px solid #e5321b;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #b91c1c;
}
.contact-errors ul { margin: 0.5rem 0 0 1.25rem; padding: 0; }

.contact-succes {
  text-align: center;
  padding: 3rem 2rem;
  background: #f0faf4;
  border: 1.5px solid #a7d7b5;
  border-radius: 14px;
}
.contact-succes-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-succes-icon svg { width: 28px; height: 28px; stroke: #fff; }
.contact-succes h2 { margin: 0 0 0.75rem; }
.contact-succes p  { margin: 0 0 0.5rem; color: var(--muted); }
.contact-succes .btn { margin-top: 1.5rem; }

.contact-info-card {
  background: #f9fafb;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  position: sticky;
  top: 100px;
}
.contact-info-card h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.contact-info-card > p { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.5rem; line-height: 1.6; }

.contact-info-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.9rem;
}
.contact-info-list svg {
  width: 20px; height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-list span { display: flex; flex-direction: column; gap: 2px; }
.contact-info-list strong { font-weight: 600; color: var(--text); }
.contact-info-list a { color: var(--accent); text-decoration: none; }
.contact-info-list a:hover { text-decoration: underline; }
.contact-info-list em { color: var(--muted); font-style: normal; }

.contact-partner-cta {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}
.contact-partner-cta p { font-size: 0.88rem; margin: 0 0 0.4rem; color: var(--muted); }
.contact-partner-cta p:first-child { color: var(--text); }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
}

@media (max-width: 600px) {
  .contact-fields { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   Cookie consent banner + instellingenpaneel
══════════════════════════════════════════════ */
#ebc-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
  background: #fff; border-top: 1.5px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  padding: 1.25rem 1.5rem;
  transition: transform .3s ease, opacity .3s ease;
}
#ebc-cookie-banner[aria-hidden="true"]   { transform: translateY(110%); opacity: 0; pointer-events: none; }
#ebc-cookie-banner[aria-hidden="false"]  { transform: translateY(0);    opacity: 1; }

.ebc-cookie-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.ebc-cookie-text { flex: 1; min-width: 240px; }
.ebc-cookie-text strong { display: block; font-weight: 700; margin-bottom: .3rem; color: var(--text); }
.ebc-cookie-text p  { font-size: .875rem; color: var(--muted); margin: 0; line-height: 1.5; }
.ebc-cookie-text a  { color: var(--accent-text); text-decoration: underline; }
.ebc-cookie-actions { display: flex; gap: .625rem; flex-wrap: wrap; align-items: center; }

/* Gedeelde knopstijlen */
.ebc-btn-primary {
  background: var(--accent); color: var(--accent-text);
  border: none; border-radius: 999px;
  padding: .6rem 1.25rem; font-size: .875rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background .15s;
  font-family: inherit;
}
.ebc-btn-primary:hover { background: var(--accent-dark); }
.ebc-btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 999px;
  padding: .575rem 1.125rem; font-size: .875rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: border-color .15s;
  font-family: inherit;
}
.ebc-btn-ghost:hover { border-color: var(--text); }

/* Instellingenpaneel overlay */
#ebc-cookie-settings {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  transition: opacity .25s ease;
}
#ebc-cookie-settings[aria-hidden="true"]  { opacity: 0; pointer-events: none; }
#ebc-cookie-settings[aria-hidden="false"] { opacity: 1; }

.ebc-settings-box {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 520px;
  padding: 2rem; box-shadow: 0 8px 40px rgba(0,0,0,.16);
  max-height: 90vh; overflow-y: auto;
}
.ebc-settings-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .75rem;
}
.ebc-settings-head h2 { font-size: 1.25rem; font-weight: 800; margin: 0; }
.ebc-settings-close {
  background: none; border: none; cursor: pointer; padding: .25rem;
  color: var(--muted); line-height: 1;
}
.ebc-settings-close svg { width: 20px; height: 20px; display: block; }
.ebc-settings-close:hover { color: var(--text); }
.ebc-settings-intro { font-size: .875rem; color: var(--muted); margin: 0 0 1.5rem; line-height: 1.6; }

.ebc-cookie-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.ebc-cookie-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.ebc-cookie-cat:last-child { border-bottom: none; }
.ebc-cat-info { flex: 1; }
.ebc-cat-info strong { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .2rem; color: var(--text); }
.ebc-cat-info span   { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* Toggle "Altijd aan" label */
.ebc-toggle.always-on { font-size: .75rem; color: var(--accent-text); font-weight: 600; white-space: nowrap; }

/* Toggle schakelaar */
.ebc-toggle-wrap { display: flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.ebc-toggle-wrap input { position: absolute; opacity: 0; width: 0; height: 0; }
.ebc-toggle-track {
  width: 44px; height: 24px; border-radius: 999px;
  background: var(--border); transition: background .2s;
  position: relative; display: block;
}
.ebc-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ebc-toggle-wrap input:checked ~ .ebc-toggle-track { background: var(--accent); }
.ebc-toggle-wrap input:checked ~ .ebc-toggle-track .ebc-toggle-thumb { transform: translateX(20px); }

.ebc-settings-footer {
  display: flex; gap: .625rem; justify-content: flex-end;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Footer-link */
#ebc-cookie-reopen { font-size: .8rem; color: var(--muted); cursor: pointer; }
#ebc-cookie-reopen:hover { color: var(--text); }

@media (max-width: 600px) {
  .ebc-cookie-inner   { gap: 1rem; }
  .ebc-cookie-actions { width: 100%; justify-content: flex-end; }
  .ebc-settings-box   { padding: 1.5rem; }
}
