:root {
  /* Palet van de startpagina, site-breed. */
  --brand: #2f7d3b;
  --brand-dark: #1f4a2c;
  --brand-light: #7bbb3a;
  --ink: #263029;
  --heading: #1f4a2c;
  --muted: #55615a;
  --soft: #e7efe1;
  --line: #e6e0d3;
  --line-soft: #eee9de;
  --bg: #faf7f0;
  --gold: #e3a92b;
  --gold-soft: #fbecc4;
  --gold-ink: #5a3f05;
  --shadow: 0 12px 32px rgba(52, 46, 24, .08);
  /* Accenten uit de energie-ring van het logo */
  --accent-yellow: #f4c020;
  --accent-orange: #ef7c1a;
  --accent-red: #de3b2a;
  --energy-gradient: linear-gradient(90deg, #1b6b37 0%, #2e8b43 30%, #7bbb3a 50%, #f4c020 70%, #ef7c1a 85%, #de3b2a 100%);
}

body {
  color: var(--ink);
  background: var(--bg);
  --bs-link-color-rgb: 47, 125, 59;
  --bs-link-hover-color-rgb: 31, 74, 44;
}

.btn-link {
  --bs-btn-color: var(--brand);
  --bs-btn-hover-color: var(--brand-dark);
}

/* Dunne energie-accentstreep onder de navigatie, als echo van de logo-ring. */
.brand-strip {
  height: 4px;
  background: var(--energy-gradient);
}

.site-logo { display: block; }
.navbar-brand .site-logo { height: 40px; width: auto; }

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--heading);
  --bs-btn-border-color: var(--heading);
  --bs-btn-hover-bg: var(--heading);
  --bs-btn-hover-border-color: var(--heading);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--heading);
  --bs-btn-border-width: 2px;
}

/* Klein label boven een titel, zoals 'Voorbeeld' op de startpagina. */
.eyebrow {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold-ink);
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: .8rem;
  padding: .22rem .6rem;
  text-transform: uppercase;
}

.metric-panel,
.card-form,
.info-panel,
.concept-card,
.feature,
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chart-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}

.chart-range-label {
  color: var(--muted);
  font-size: .8rem;
  white-space: nowrap;
}

.chart-canvas-wrap {
  position: relative;
  height: 260px;
}

.chart-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-slider {
  margin-top: .75rem;
}

.chart-slider input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.metric-panel {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.metric-panel > div {
  align-items: center;
  background: var(--soft);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.metric {
  color: var(--brand-dark);
  font-size: 1.8rem;
  font-weight: 800;
}

.label {
  color: var(--muted);
  font-size: .95rem;
}

.feature,
.card-form,
.info-panel,
.concept-card,
.stat-card {
  padding: 1.6rem;
}

.feature p,
.section-heading {
  color: var(--muted);
}

/* Paginatitel groot en donkergroen, zoals op de startpagina. */
.section-heading h1,
.section-heading .h1,
.section-heading .h3 {
  color: var(--heading);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: .5rem;
}
.section-heading > p:not(.eyebrow) { font-size: 1.1rem; }

/* Alle feature-kaarten even hoog maken, ongeacht de hoeveelheid tekst.
   De Bootstrap-kolom (col-md-4) rekt al uit; height:100% laat de kaart die
   volledige kolomhoogte vullen zodat de drie kaarten gelijk zijn. */
.feature {
  height: 100%;
}

/* Aantal mogelijke subsidies onder een maatregel (voorlopig rapport). */
.subsidy-count { align-items: center; color: var(--brand); display: flex; font-size: .9rem; font-weight: 700; gap: .4rem; }
.subsidy-count .ui-icon { width: 1.1rem; height: 1.1rem; }

.section-heading {
  margin-bottom: 1.75rem;
}

.narrow {
  max-width: 480px;
}

.check-grid {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.check-grid.compact {
  grid-template-columns: 1fr;
}

.concept-card {
  height: 100%;
}

.subsidy-row {
  background: var(--soft);
  border-radius: 12px;
  padding: 1rem;
}

.stat-card span {
  color: var(--heading);
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
}

.stat-card p {
  color: var(--muted);
  font-weight: 600;
  margin: .2rem 0 0;
}

.admin-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.admin-links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-dark);
  font-weight: 600;
  padding: .65rem 1rem;
  text-decoration: none;
}

/* Admin-layout: zijbalk links met verticaal menu. Breder dan de publieke site,
   omdat de beheertabellen veel kolommen hebben (navigatie schuift mee via .page-admin). */
.admin-shell {
  margin: 0 auto;
  max-width: 1672px;
  padding: 1.75rem 1rem 1rem;
}

.admin-main h1.h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
/* Zijbalk vast smal, de content krijgt de rest; min-width 0 zodat brede tabellen
   binnen hun kaart blijven in plaats van de kolom op te rekken. */
.admin-main { min-width: 0; }
@media (min-width: 1200px) {
  .admin-aside { flex: 0 0 220px; width: 220px; }
}

/* Losse tabellen op beheerpagina's als witte kaart. */
.admin-main > div > .table-responsive {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  padding: .35rem 0 .15rem;
}
.admin-main > div > .table-responsive > .table { margin-bottom: 0; }
.admin-main > div > .table-responsive > .table > :not(caption) > * > *:first-child { padding-left: 1.25rem; }
.admin-main > div > .table-responsive > .table > :not(caption) > * > *:last-child { padding-right: 1.25rem; }
.admin-main > div > .table-responsive > .table > tbody > tr:last-child > * { border-bottom: 0; }

.admin-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .85rem;
  box-shadow: var(--shadow);
}

.admin-sidebar-title {
  color: var(--gold-ink);
  background: var(--gold-soft);
  align-self: flex-start;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: .15rem .5rem .6rem;
  padding: .2rem .55rem;
}

.admin-sidebar a {
  border-radius: 10px;
  color: var(--heading);
  display: block;
  font-weight: 600;
  padding: .55rem .85rem;
  text-decoration: none;
}

.admin-sidebar a:hover {
  background: #f6f2e9;
}

/* Actieve pagina: mint met groene streep, zoals een gekozen wizardkaart. */
.admin-sidebar a.active {
  background: var(--soft);
  box-shadow: inset 3px 0 0 var(--brand);
  color: var(--heading);
  font-weight: 700;
}

/* Uitklapbare menugroep (bv. Instellingen) via native <details>/<summary>. */
.admin-sidebar details > summary {
  border-radius: 10px;
  color: var(--heading);
  cursor: pointer;
  display: block;
  font-weight: 600;
  list-style: none;
  padding: .55rem .85rem;
}

.admin-sidebar details > summary::-webkit-details-marker {
  display: none;
}

.admin-sidebar details > summary::after {
  content: "\25B8";
  float: right;
  opacity: .55;
}

.admin-sidebar details[open] > summary::after {
  content: "\25BE";
}

.admin-sidebar details > summary:hover {
  background: #f6f2e9;
}

.admin-sidebar details > summary.active {
  color: var(--heading);
  font-weight: 700;
}

.admin-sidebar .admin-submenu {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin: .25rem 0 .25rem .6rem;
}

.admin-sidebar .admin-submenu a {
  font-size: .95rem;
  font-weight: 500;
}

/* Onder 1200px: menu als compacte balk boven de pagina, zodat tabellen de volle
   breedte krijgen. Instellingen staat achteraan en klapt uit op een eigen regel. */
@media (max-width: 1199.98px) {
  .admin-sidebar { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .25rem; padding: .55rem .65rem; }
  .admin-sidebar-title { align-self: center; margin: 0 .4rem 0 .2rem; }
  .admin-sidebar a, .admin-sidebar details > summary { padding: .4rem .75rem; }
  .admin-sidebar a.active { box-shadow: inset 0 -3px 0 var(--brand); }
  .admin-sidebar details { order: 1; }
  .admin-sidebar details > summary::after { float: none; margin-left: .35rem; }
  .admin-sidebar details[open] { flex-basis: 100%; }
  .admin-sidebar details[open] > summary { display: inline-block; }
  .admin-sidebar .admin-submenu { flex-direction: row; flex-wrap: wrap; margin: .2rem 0 .1rem; }
}

@media (max-width: 576px) {
  .card-form,
  .info-panel,
  .concept-card,
  .feature,
  .stat-card {
    padding: 1rem;
  }
}

/* ---------- Verduurzamingscheck (wizard) ---------- */
.wizard { padding-bottom: 2.5rem; }

.wizard-progress {
  background: #ece5d6;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin: 1.5rem auto 0;
  max-width: 1240px;
  width: calc(100% - 2rem);
}

.wizard-progress-bar {
  /* Omgekeerde energiereeks, vast over de volle breedte: je werkt van rood naar
     groen toe (zoals van label G naar A) en de balk eindigt nooit "in het rood". */
  background: linear-gradient(90deg, #de3b2a 0%, #ef7c1a 15%, #f4c020 30%, #7bbb3a 50%, #2e8b43 70%, #1b6b37 100%);
  background-size: 100vw 100%;
  height: 100%;
  width: 12%;
  transition: width .35s ease;
}

/* Zonder JS: toon alle stappen als één lange pagina en verberg de stepper-knoppen. */
.wizard.no-js .wizard-progress { display: none; }
.wizard.no-js .wizard-prev,
.wizard.no-js .wizard-next { display: none; }
.wizard.no-js .wizard-step { display: block; margin-bottom: 2rem; }

/* Met JS: één stap tegelijk. */
.wizard.js .wizard-step { display: none; }
.wizard.js .wizard-step.is-active { display: block; }

/* Elke stap staat in een witte kaart, zoals het checkformulier op de startpagina. */
.wizard-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
  padding: 2.25rem 2.25rem 1.75rem;
}

.wizard-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(260px, 380px) 1fr;
  align-items: start;
}

@media (max-width: 768px) {
  .wizard-grid { grid-template-columns: 1fr; gap: 1rem; }
  .wizard-step { padding: 1.4rem 1.1rem 1.25rem; border-radius: 18px; }
  .wizard-aside .wizard-reassure { display: none; }
}

.wizard-aside { padding-right: 1rem; }
.wizard-aside h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; }
.wizard-aside > p { font-size: 1.05rem; line-height: 1.55; }
.wizard-reassure { margin-top: 1.5rem; font-size: .95rem; }

.wizard-cards {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.wizard-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 160px;
  /* Extra ruimte rechts zodat het vinkje (rechtsboven) nooit over de tekst valt. */
  padding: 1.05rem 2.2rem 1.05rem 1.15rem;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* Hover alleen bij een muis (op touch blijft hover "hangen" en leek een kaart dan
   geselecteerd) en lichter dan de selectiestijl. */
@media (hover: hover) {
  .wizard-card:hover { border-color: #b9c4b3; }
}
/* Zichtbare focus voor toetsenbordgebruikers (niet bij tikken/klikken). */
.wizard-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.wizard-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-card.is-selected {
  background: var(--soft);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 125, 59, .14);
}

.wizard-card-title { font-weight: 700; color: var(--heading); }

/* Rond groen vinkje rechtsboven bij een gekozen kaart. */
.wizard-card-check {
  align-items: center;
  background: var(--brand);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 800;
  height: 1.35rem;
  justify-content: center;
  opacity: 0;
  position: absolute;
  right: .6rem;
  top: .6rem;
  width: 1.35rem;
}

.wizard-card.is-selected .wizard-card-check { opacity: 1; }

.wizard-card-sm {
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: .75rem 0;
  text-align: center;
}
.wizard-card-unknown { padding-inline: 1rem; }
/* Type warmtepomp: twee even brede knoppen met ruimte rond de tekst. */
.wizard-cards[data-group="heat_pump_type"] .wizard-card-sm { min-width: 10rem; padding: .85rem 1.25rem; }
.wizard-card-unknown .wizard-card-title { font-weight: 600; font-size: .95rem; }

.wizard-cards.is-invalid .wizard-card { border-color: #b42318; }

.wizard-card-illus { align-items: center; text-align: center; }

.wizard-card-icon {
  display: block;
  width: 100%;
  max-width: 88px;
  margin: 0 auto .2rem;
}

.wizard-card-icon svg { display: block; width: 100%; height: auto; }

.field-error {
  color: #b42318;
  font-size: .85rem;
  margin-top: .3rem;
}

/* ---------- Werkgebied-kaart ---------- */
.service-area-controls {
  display: flex;
  gap: .5rem;
  margin-bottom: .5rem;
}
.service-area-controls .service-area-search { flex: 1 1 auto; }
.service-area-controls .service-area-locate { white-space: nowrap; }

.service-area-map {
  height: 380px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.service-area-slider { margin-top: .75rem; }

.service-area-dot {
  background: var(--brand-dark);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(31, 74, 44, .45);
}

.service-area-count { margin-top: .4rem; }

/* Uitklapbare postcodegebieden op het dashboard */
.stat-card-toggle > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
}
.stat-card-toggle > summary::-webkit-details-marker { display: none; }
.stat-card-toggle > summary::after {
  content: "\25BE";
  position: absolute;
  right: .25rem;
  top: .35rem;
  color: var(--brand);
  transition: transform .15s ease;
}
.stat-card-toggle[open] > summary::after { transform: rotate(180deg); }

.region-list {
  list-style: none;
  margin: .75rem 0 0;
  padding: .75rem 0 0;
  border-top: 1px solid var(--line);
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  columns: 2;
  column-gap: 1rem;
  font-size: .9rem;
}
.region-list li {
  break-inside: avoid;
  display: flex;
  gap: .4rem;
  padding: .12rem 0;
}
.region-list .region-pc,
.region-list .region-gem {
  display: inline;
  font-size: .9rem;
  line-height: 1.35;
}
.region-list .region-pc { font-weight: 600; color: var(--brand-dark); }
.region-list .region-gem { font-weight: 400; color: var(--muted); }

/* Verberg de lege live-lijst onder de kaart tot er iets geselecteerd is */
.service-area-list:empty { display: none; }

/* ---------- Registratie-wizard: breadcrumb ---------- */
.reg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0 0 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  counter-reset: none;
}
.reg-breadcrumb li {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #8b948e;
  font-weight: 700;
  font-size: .95rem;
}
.reg-breadcrumb .reg-crumb-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #ece5d6;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}
.reg-breadcrumb li.is-active { color: var(--heading); }
.reg-breadcrumb li.is-active .reg-crumb-num {
  background: var(--gold);
  color: #2d2106;
}
.reg-breadcrumb li.is-done { color: var(--brand); }
.reg-breadcrumb li.is-done .reg-crumb-num {
  background: var(--brand);
  color: #fff;
}
.wizard.js .reg-breadcrumb li.is-reachable { cursor: pointer; }

.reg-agree {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.wizard-nav {
  align-items: center;
  display: flex;
  gap: .5rem;
  padding: 1.25rem 0 0;
}

/* Op mobiel blijft de navigatie onderaan in beeld (lange stappen). */
@media (max-width: 768px) {
  .wizard-nav {
    background: var(--bg);
    border-top: 1px solid var(--line);
    bottom: 0;
    margin-top: 1rem;
    padding: .75rem 0 1rem;
    position: sticky;
    z-index: 5;
  }
}

.wizard-prev { color: var(--heading); font-weight: 700; text-decoration: none; }

/* ---------- Slider gewenst energielabel (groen = goed, rood = minder goed) ---------- */
.wizard.no-js .label-slider { display: none; }

.label-slider { max-width: 520px; }

.label-slider-readout {
  align-items: center;
  display: flex;
  gap: .6rem;
  margin-bottom: .75rem;
}

.label-badge {
  align-items: center;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  font-size: 1.3rem;
  font-weight: 800;
  height: 2.4rem;
  justify-content: center;
  min-width: 2.4rem;
  transition: background-color .15s ease;
}

.label-range {
  -webkit-appearance: none;
  appearance: none;
  /* G (links, rood) -> A++++ (rechts, donkergroen), gelijk aan de knoppen "huidig label". */
  background: linear-gradient(90deg, #de3b2a 0%, #ef7c1a 10%, #f4c020 20%, #7bbb3a 40%, #2e8b43 50%, #1b6b37 60%, #08431a 100%);
  border-radius: 999px;
  cursor: pointer;
  height: 10px;
  width: 100%;
}

.label-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border: 3px solid var(--brand-dark);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(23, 33, 31, .25);
  cursor: pointer;
  height: 26px;
  width: 26px;
}

.label-range::-moz-range-thumb {
  background: #fff;
  border: 3px solid var(--brand-dark);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(23, 33, 31, .25);
  cursor: pointer;
  height: 26px;
  width: 26px;
}

.label-range:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

.label-scale {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
  height: 1.1rem;
  letter-spacing: -.02em;
  margin-top: .4rem;
  position: relative;
}
/* Elk label precies onder zijn stop: de duim (26px) loopt van 13px tot 100% - 13px. */
.label-scale span {
  left: calc(13px + (100% - 26px) * var(--i) / var(--n));
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.label-scale span:first-child { left: 0; transform: none; }
.label-scale span:last-child { left: auto; right: 0; transform: none; }
.label-slider { max-width: 620px; }
.label-slider-readout .label-badge { flex: 0 0 auto; padding: 0 .45rem; }
.label-slider-hint { font-size: .92rem; }
@media (max-width: 575.98px) {
  /* Smal scherm: om en om een label (G, E, C, A, A++, A++++); de badge toont de keuze. */
  .label-scale span:nth-child(even) { display: none; }
}

/* Huidig energielabel: kleurstreep per label en omschrijving van de keuze. */
.wizard-card-label { flex-direction: column; gap: .3rem; min-width: 62px; padding: .6rem .35rem; }
.wizard-card-swatch { border-radius: 99px; display: block; height: .32rem; width: 1.7rem; }
.label-desc { color: var(--heading); font-size: .92rem; font-weight: 600; }

/* ---------- Geclaimde leads in het contractor-overzicht accentueren ---------- */
.lead-row-mine { --bs-table-bg: var(--soft); }
.lead-row-mine > td:first-child { box-shadow: inset 3px 0 0 var(--brand); }


/* ---------- Uitgebreid adviesrapport: banner (mint vlak, zoals de afsluiter op de startpagina) ---------- */
.premium-banner {
  align-items: center;
  background: var(--soft);
  border: 0;
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1.9rem 2.1rem;
}
.premium-banner.is-owned { background: #fff; border: 2px solid var(--brand); }
.premium-points { list-style: none; padding-left: 0; }
.premium-points li { margin-bottom: .45rem; padding-left: 2rem; position: relative; }
.premium-points li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / .8rem;
}
.premium-cta { min-width: 200px; text-align: center; }
.premium-price { color: var(--heading); font-size: 2.2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.credentials-box code { font-size: 1.05rem; }
.credentials-password { letter-spacing: .06em; user-select: all; }
.account-request { padding: .9rem 0; }

/* ---------- Routekaart ---------- */
.installation-card { border-left: 5px solid var(--line); }
.installation-card.is-ok { border-left-color: var(--brand); }
.installation-card.is-soon { border-left-color: var(--accent-orange, #ef7c1a); }
.installation-card.is-overdue { border-left-color: var(--accent-red, #de3b2a); }
.installation-badge { background: var(--soft); color: var(--brand-dark); }
.installation-card.is-soon .installation-badge { background: #fdebd9; color: #9a4a08; }
.installation-card.is-overdue .installation-badge { background: #fbe1de; color: #9b2216; }

.roadmap-timeline { list-style: none; margin: 0; padding: 0 0 0 1.75rem; position: relative; }
.roadmap-timeline::before {
  background: var(--energy-gradient);
  border-radius: 3px;
  bottom: .5rem;
  content: "";
  left: .45rem;
  position: absolute;
  top: .4rem;
  width: 4px;
}
.roadmap-phase { margin-bottom: 1.5rem; position: relative; }
.roadmap-phase::before {
  background: #fff;
  border: 4px solid var(--brand);
  border-radius: 50%;
  content: "";
  height: 18px;
  left: -1.75rem;
  position: absolute;
  top: .2rem;
  width: 18px;
}
.roadmap-phase.phase-mid::before { border-color: var(--accent-yellow, #f4c020); }
.roadmap-phase.phase-long::before { border-color: var(--accent-orange, #ef7c1a); }
.roadmap-subsidies { padding-left: 1.1rem; }

@media print {
  .navbar, footer, .brand-strip, .no-print, .alert { display: none !important; }
  body { background: #fff; }
  .info-panel, .concept-card, .stat-card { box-shadow: none !important; break-inside: avoid; }
  .roadmap a[href]::after { content: ""; }
}

/* ---------- Registratie: voordelen/voorwaarden-opsomming met groene vinkjes ---------- */
.reg-benefits { list-style: none; padding-left: 0; color: var(--ink); }
.reg-benefits li { margin-bottom: .55rem; padding-left: 2rem; position: relative; }
.reg-benefits li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / .8rem;
}

/* In de registratie staat de wizard al in een kaart: de stappen niet nog eens als kaart. */
.reg-wizard .wizard-step { background: none; border: 0; border-radius: 0; box-shadow: none; margin-top: 0; padding: .25rem 0 0; }
.card-form:has(.reg-wizard) { padding: 2rem 2.25rem 1.5rem; border-radius: 22px; }
@media (max-width: 768px) {
  .card-form:has(.reg-wizard) { padding: 1.25rem 1.1rem 1rem; }
  .reg-wizard .wizard-nav { background: #fff; }
}

/* ---------- Privacy-geruststelling bij contactgegevens ---------- */
.privacy-note { background: var(--soft); border: 1px solid #c9d6bf; border-radius: 12px; display: flex; font-size: .9rem; gap: .6rem; padding: .75rem 1rem; color: #3d4a46; }
.privacy-note-icon { font-size: 1.1rem; line-height: 1.3; color: var(--brand); }
.privacy-note-icon .ui-icon { width: 1.25rem; height: 1.25rem; }

/* ---------- Aanbevolen pakket + keuzebevestiging ---------- */
.concept-card { display: flex; flex-direction: column; }
.concept-card.is-recommended { border: 2px solid var(--brand); box-shadow: 0 16px 36px rgba(47, 125, 59, .16); }
.concept-card.is-chosen { border: 2px solid var(--brand); background: #fbfdf9; }
.badge-recommended { background: var(--gold-soft); color: var(--gold-ink); white-space: normal; text-align: right; }
.concept-card-label { align-items: center; color: var(--heading); display: flex; font-weight: 700; gap: .5rem; margin-top: 1rem; }
.concept-card-label .energy-pill { min-width: 1.75rem; height: 1.75rem; font-size: .95rem; }
.concept-card-action { margin-top: auto; padding-top: 1.1rem; }
.choice-confirm ol { padding-left: 1.2rem; }

/* ---------- Rapport: kerncijfers in een mint band ---------- */
.report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.5rem 0 2rem; padding: .9rem 0; }
.report-kpis > div { padding: .4rem 1.4rem; }
.report-kpis > div + div { border-left: 1px solid #c9d6bf; }
.report-kpi-label { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; margin-bottom: .2rem; }
.report-kpis strong { align-items: center; color: var(--heading); display: flex; font-size: 1.55rem; font-weight: 800; gap: .35rem; letter-spacing: -.01em; min-height: 2.2rem; }
@media (max-width: 767.98px) {
  .report-kpis { grid-template-columns: 1fr; }
  .report-kpis > div + div { border-left: 0; border-top: 1px solid #c9d6bf; }
}

/* ================= Voorlopig advies (resultatenpagina) ================= */
.report-page section + section { margin-top: 3.25rem; }
/* Ankers (#offerte) niet onder de vaste navigatie laten vallen. */
.report-page [id] { scroll-margin-top: 90px; }
.report-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.1; margin-bottom: .35rem; }
.report-address { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }
.report-result .report-kpis { margin: 1.25rem 0 1rem; }
.report-home-details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.report-home-details > summary {
  cursor: pointer; font-weight: 700; color: var(--heading); list-style: none; padding: .75rem 1.1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.report-home-details > summary::-webkit-details-marker { display: none; }
.report-home-details > summary::after { content: "\25BE"; color: var(--brand); transition: transform .15s ease; }
.report-home-details[open] > summary::after { transform: rotate(180deg); }
.report-home-body { padding: 0 1.1rem 1rem; color: var(--ink); }
.report-home-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1.25rem; margin: 0; }
.report-home-facts dt { color: var(--muted); font-size: .8rem; font-weight: 600; }
.report-home-facts dd { margin: 0; font-weight: 600; }
.report-bridge { color: var(--heading); font-size: 1.15rem; font-weight: 700; margin: 1.75rem 0 0; }

/* Betaald aanbod */
.plan-offer {
  background: #fff; border: 2px solid var(--brand); border-radius: 24px; box-shadow: 0 18px 44px rgba(47, 125, 59, .14);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; padding: 2.5rem;
  margin-top: 1.75rem !important;
}
.plan-offer-kicker { color: var(--brand); font-weight: 800; letter-spacing: .02em; margin-bottom: .5rem; }
.plan-offer-title { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.12; margin-bottom: .9rem; }
.plan-offer-lead { font-size: 1.08rem; line-height: 1.55; color: var(--ink); }
.plan-offer-points { gap: .7rem; margin: 1.25rem 0 1.5rem; }
.plan-offer-points li { align-items: flex-start; font-weight: 600; line-height: 1.4; }
.plan-offer-points .ui-icon { margin-top: .1rem; }
.plan-offer-buy {
  align-items: center; background: var(--soft); border-radius: 16px; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  justify-content: space-between; padding: 1.1rem 1.25rem;
}
.plan-offer-price { color: var(--heading); display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plan-offer-price-note { color: var(--muted); font-size: .9rem; font-weight: 600; }
.plan-offer-fine { color: var(--muted); font-size: .88rem; margin: .6rem 0 0; }
.plan-cta { box-shadow: 0 8px 20px rgba(47, 125, 59, .25); }
.plan-owned { align-items: center; background: #fff; border: 2px solid var(--brand); border-radius: 20px; display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: space-between; padding: 1.75rem 2rem; margin-top: 1.75rem !important; }

/* Voorvertoning eigen omgeving */
.plan-preview { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; margin: 0; overflow: hidden; }
.plan-preview-bar {
  align-items: center; background: #fff; border-bottom: 1px solid var(--line); color: var(--muted); display: flex;
  font-size: .8rem; font-weight: 600; gap: .75rem; padding: .55rem .9rem;
}
.plan-preview-dots { display: inline-flex; gap: .3rem; }
.plan-preview-dots i { background: #e3ddcf; border-radius: 50%; display: block; height: .55rem; width: .55rem; }
.plan-preview-body { padding: 1rem 1.1rem .75rem; }
.plan-preview-label {
  background: var(--gold-soft); border-radius: 6px; color: var(--gold-ink); display: inline-block; font-size: .72rem;
  font-weight: 800; letter-spacing: .05em; margin-bottom: .75rem; padding: .2rem .55rem; text-transform: uppercase;
}
.plan-preview-home { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: .75rem; padding: .65rem .8rem; }
.plan-preview-home .ui-icon-tile { width: 2.4rem; height: 2.4rem; border-radius: 10px; }
.plan-preview-home strong { color: var(--heading); display: block; }
.plan-preview-home span { color: var(--muted); font-size: .88rem; }
.plan-preview-heading { color: var(--heading); font-weight: 800; margin: .9rem 0 .4rem; }
.plan-preview-phases { list-style: none; margin: 0; padding: 0 0 0 1.1rem; position: relative; }
.plan-preview-phases::before { background: var(--energy-gradient); border-radius: 3px; bottom: .3rem; content: ""; left: .3rem; position: absolute; top: .35rem; width: 3px; }
.plan-preview-phase { margin-bottom: .6rem; position: relative; }
.plan-preview-phase::before {
  background: #fff; border: 3px solid var(--brand); border-radius: 50%; content: ""; height: 12px; left: -1.1rem; position: absolute; top: .3rem; width: 12px;
}
.plan-preview-phase.phase-mid::before { border-color: var(--accent-yellow); }
.plan-preview-phase.phase-long::before { border-color: var(--accent-orange); }
.plan-preview-phase-title { color: var(--heading); font-size: .92rem; font-weight: 800; margin-bottom: .3rem; }
.plan-preview-phase-title span { color: var(--muted); font-weight: 600; }
.plan-preview-step { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .35rem; padding: .5rem .7rem; }
.plan-preview-step strong { color: var(--ink); display: block; font-size: .9rem; }
.plan-preview-step.is-open { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(47, 125, 59, .12); }
.plan-preview-meta { color: var(--muted); display: flex; align-items: center; gap: .3rem; font-size: .8rem; }
.plan-preview-meta .ui-icon { width: .9rem; height: .9rem; }
.plan-preview-action {
  border: 1.5px solid var(--heading); border-radius: 8px; color: var(--heading); display: inline-block; font-size: .78rem;
  font-weight: 700; margin-top: .4rem; padding: .15rem .5rem;
}
.plan-preview-caption { border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; padding: .6rem 1.1rem .75rem; }

/* Vergelijking betaald / gratis */
.route-compare-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.route-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; padding: 1.5rem; }
.route-card.is-paid { border: 2px solid var(--brand); }
.route-card .check-list { margin: .25rem 0 1.25rem; }
.route-card .btn { margin-top: auto !important; align-self: flex-start; }
.route-card-tag { color: var(--brand); font-size: .8rem; font-weight: 800; letter-spacing: .04em; margin-bottom: .35rem; text-transform: uppercase; }
.route-card:not(.is-paid) .route-card-tag { color: var(--muted); }

/* Maatregelen */
.measure-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .85rem; }
.measure-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.3rem; }
.measure-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; }
.measure-title { font-size: 1.1rem; margin: 0; }
.measure-cost { color: var(--heading); font-weight: 700; white-space: nowrap; }
.measure-text { color: var(--muted); margin: .35rem 0 .5rem; }
.measure-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .92rem; }
.plan-repeat { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: space-between; margin-top: 1.5rem; }
.plan-repeat p { color: var(--heading); font-weight: 600; max-width: 42rem; }

/* Gratis route */
.quote-route { border-top: 1px solid var(--line); padding-top: 2.75rem; }
.quote-lead { color: var(--heading); font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.quote-step-title { align-items: center; color: var(--heading); display: flex; font-size: 1.1rem; font-weight: 800; gap: .6rem; margin: 1.75rem 0 .35rem; }
.quote-step-title .step-badge-nr { width: 1.9rem; height: 1.9rem; font-size: .95rem; }
.package-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.package-card { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; padding: 1.1rem 1.2rem; }
.package-card.is-active { background: #fbfdf9; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 125, 59, .12); }
.package-measures { font-size: .9rem; margin-bottom: .75rem; padding-left: 1.1rem; }
.package-facts { align-items: center; display: flex; flex-wrap: wrap; font-weight: 700; gap: .5rem 1rem; justify-content: space-between; margin: auto 0 .8rem; }
.package-facts .energy-pill { min-width: 1.6rem; height: 1.6rem; font-size: .85rem; }
.package-select[aria-pressed="true"] { background: var(--soft); }
.quote-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.quote-select { border: 0; margin: 0; min-width: 0; padding: 0; }
.quote-select legend { float: none; width: auto; }
.quote-option {
  align-items: flex-start; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; display: flex;
  gap: .75rem; margin-bottom: .5rem; padding: .8rem .95rem;
}
.quote-option:has(input:checked) { background: var(--soft); border-color: var(--brand); }
.quote-option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.quote-option .form-check-input { flex: none; height: 1.25rem; margin-top: .1rem; width: 1.25rem; }
.quote-option-text strong { color: var(--heading); display: block; }
.quote-option-text span { color: var(--muted); font-size: .88rem; }
.quote-empty { color: #b42318; font-weight: 600; margin-top: .5rem; }
.quote-review { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.25rem 1.4rem 1.4rem; position: sticky; top: 1rem; }
.quote-review .quote-step-title { margin-top: 0; }
.quote-review-block { border-bottom: 1px solid var(--line-soft); margin-bottom: .9rem; padding-bottom: .8rem; }
.quote-review-block h4 { color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; margin-bottom: .45rem; text-transform: uppercase; }
.quote-summary { margin: 0 0 .4rem; padding-left: 1.1rem; font-weight: 600; color: var(--heading); }
.quote-summary:empty { display: none; }
.quote-total { margin: 0; font-size: .95rem; }
.quote-contact { display: grid; gap: .3rem; margin: 0; }
.quote-contact div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .5rem; }
.quote-contact dt { color: var(--muted); font-weight: 600; }
.quote-contact dd { margin: 0; overflow-wrap: anywhere; }
.quote-next { margin: 0; padding-left: 1.1rem; font-size: .93rem; }
.quote-next li + li { margin-top: .3rem; }

@media (max-width: 991.98px) {
  .plan-offer { grid-template-columns: 1fr; padding: 1.75rem 1.4rem; gap: 1.75rem; }
  .route-compare-grid, .quote-grid { grid-template-columns: 1fr; }
  .quote-review { position: static; }
}
@media (max-width: 575.98px) {
  .report-home-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-offer-buy .btn, .plan-repeat .btn, .route-card .btn { width: 100%; }
  .plan-owned .btn { width: 100%; }
}

/* Energielabel als gekleurd blokje */
.energy-pill {
  align-items: center; border-radius: 8px; color: #fff; display: inline-flex; font-size: 1.1rem; font-weight: 800;
  height: 2rem; justify-content: center; letter-spacing: 0; min-width: 2rem; padding: 0 .35rem; background: #8b948e;
}
.energy-a4 { background: #08431a; }
.energy-a3 { background: #0c4d21; }
.energy-a2 { background: #115728; }
.energy-a1 { background: #16612f; }
.energy-a { background: #1b6b37; }
.energy-b { background: #2e8b43; }
.energy-c { background: #7bbb3a; }
.energy-d { background: #f4c020; color: #3d2c00; }
.energy-e { background: #ef7c1a; }
.energy-f { background: #e45a22; }
.energy-g { background: #de3b2a; }
/* Pillen met A+ t/m A++++ zijn breder; iets kleinere letters zodat ze passen. */
.energy-pill.energy-a2, .energy-pill.energy-a3, .energy-pill.energy-a4 { font-size: .85em; letter-spacing: -.02em; }

.stat-card span.stat-card-text { font-size: 1.35rem; }

/* Woninggegevens (BAG + EP-Online) in wizard stap 1 */
.home-slot:empty { display: none; }
.home-slot { margin-top: 1.25rem; }
.home-card { background: var(--soft); border: 1px solid #d3e3cc; border-radius: 14px; padding: .95rem 1.15rem; }
.home-card p { margin: 0; }
.home-card-title { color: var(--heading); font-weight: 700; }
.home-card-facts { align-items: center; color: var(--ink); display: flex; flex-wrap: wrap; font-size: .95rem; gap: .35rem 1rem; margin-top: .4rem; }
.home-card-facts > span + span::before { color: var(--muted); content: "\00b7"; margin-right: 1rem; }
.home-card-label { align-items: center; display: inline-flex; gap: .45rem; }
.home-card-label .energy-pill { border-radius: 7px; font-size: .95rem; height: 1.7rem; min-width: 1.7rem; }
.home-card-warning { color: var(--gold-ink); font-size: .88rem; font-weight: 600; margin-top: .5rem !important; }
.home-card-source { color: var(--muted); font-size: .82rem; margin-top: .45rem !important; }
.home-card-missing { background: var(--gold-soft); border-color: #efd99a; }
.home-card-missing .home-card-title { color: var(--gold-ink); }
.ep-hint { color: var(--brand-dark); font-size: .85rem; font-weight: 600; margin-top: .35rem; }
.ep-hint[hidden] { display: none; }
/* Auditlog: lange details (bv. API-URL's) mogen overal afbreken. */
.audit-detail { min-width: 16rem; overflow-wrap: anywhere; }
.payload-json {
  background: #f7f5ef; border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  font-size: .8rem; line-height: 1.45; margin: 0; max-height: 65vh; overflow: auto;
  padding: .9rem 1rem; white-space: pre-wrap; word-break: break-word;
}

/* Voorbeeldtekst lichter zodat hij niet als ingevulde waarde oogt. */
.form-control::placeholder { color: #9aa6a2; opacity: 1; }

/* ---------- Mobiel: wizardkaarten in een rustig raster van 2 even brede kolommen ---------- */
@media (max-width: 575.98px) {
  .wizard-cards:not(.wizard-cards-compact) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wizard-cards:not(.wizard-cards-compact) .wizard-card { min-width: 0; }
}

/* Dashboard wachtend bedrijf (V17): genummerde stappen (groen = klaar, goud = nu). */
.pending-steps, .profile-checklist { list-style: none; padding-left: 0; }
.pending-steps { counter-reset: stap; }
.pending-steps li, .profile-checklist li { position: relative; padding: .3rem 0 .3rem 1.9rem; }
.pending-steps li { counter-increment: stap; padding: .55rem 0 .55rem 2.7rem; }
.profile-checklist li::before { content: ''; position: absolute; left: 0; top: .45rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.profile-checklist li.is-done::before { background: var(--brand); border-color: var(--brand); }
.pending-steps li::before {
  content: counter(stap); position: absolute; left: 0; top: .35rem; width: 1.95rem; height: 1.95rem; border-radius: 50%;
  background: #ece5d6; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem;
}
.pending-steps li.is-done::before { background: var(--brand); color: #fff; }
.pending-steps li.is-current { font-weight: 700; color: var(--heading); }
.pending-steps li.is-current::before { background: var(--gold); color: #2d2106; }

/* Actieband onder het dashboard */
.dash-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.dash-actions .btn { white-space: nowrap; }

/* Tabel in een kaart: kaart zonder binnenruimte, tabel loopt tot de rand */
.table-panel { padding: .4rem 0 .2rem; overflow: hidden; }
.table-panel .table { margin-bottom: 0; }
.table-panel .table > :not(caption) > * > *:first-child { padding-left: 1.4rem; }
.table-panel .table > :not(caption) > * > *:last-child { padding-right: 1.4rem; }
.table-panel .table > tbody > tr:last-child > * { border-bottom: 0; }

.lead-price { font-size: 1.6rem; }
.lead-facts dd .energy-pill { min-width: 1.6rem; height: 1.6rem; font-size: .85rem; }

/* ================= Inlogknop in de navigatie + footer (alle pagina's) ================= */
.nav-login {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1.5px solid var(--brand-dark); color: var(--brand-dark);
  border-radius: 10px; font-weight: 600; padding: .35rem .85rem;
}
.nav-login:hover, .nav-login:focus-visible { background: var(--soft); color: var(--brand-dark); border-color: var(--brand-dark); }
.nav-login-icon { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.75rem 0; color: #5b6762; font-size: .875rem; }
.site-footer-brand { display: flex; align-items: center; gap: .75rem; }
.site-footer-brand strong { display: block; color: var(--ink); font-size: .95rem; }
.site-footer-logo { width: 36px; height: 36px; flex: none; }
.site-footer a { color: var(--brand-dark); }

/* ================= Startpagina ================= */
.page-home {
  --home-bg: #faf7f0;
  --home-heading: #1f4a2c;
  --home-text: #263029;
  --home-muted: #55615a;
  --home-cta: #2f7d3b;
  --home-cta-hover: #24662f;
  --home-mint: #e7efe1;
  --home-gold: #e3a92b;
  --home-border: #e6e0d3;
  --home-shadow: 0 12px 32px rgba(52, 46, 24, .08);
  background: var(--home-bg);
  color: var(--home-text);
}
@media (prefers-reduced-motion: no-preference) { html:has(.page-home) { scroll-behavior: smooth; } }
.page-home [id] { scroll-margin-top: 90px; }
.page-home main > .container:first-child:not(:has(.alert)) { margin-top: 0 !important; }

/* Navigatie en focus: sinds de site-brede huisstijl op alle pagina's gelijk (zie onderaan). */

.home-container { max-width: 1272px; margin: 0 auto; padding: 0 1rem; }

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home .form-control:focus-visible {
  outline: 3px solid var(--home-gold); outline-offset: 2px; box-shadow: none;
}

/* ---- Hero ---- */
.home-hero { padding: 2.75rem 0 2.5rem; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 2.5rem; align-items: stretch; }
.home-hero-intro { display: flex; flex-direction: column; justify-content: center; }
.home-title {
  color: var(--home-heading); font-weight: 800; letter-spacing: -.025em; line-height: 1.06;
  font-size: clamp(2.25rem, 4.3vw, 3.6rem); margin-bottom: 1.1rem;
}
.home-title-accent {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11 C 80 3, 200 2, 297 9' fill='none' stroke='%23e3a92b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat left bottom / 94% .32em;
  padding-bottom: .16em;
}
.home-lead { font-size: 1.2rem; line-height: 1.55; color: var(--home-text); max-width: 36rem; margin-bottom: 1.6rem; }

.home-check {
  background: #fff; border: 1px solid var(--home-border); border-radius: 18px;
  box-shadow: var(--home-shadow); padding: 1.6rem 1.6rem 1.25rem;
}
.home-check-title { color: var(--home-heading); font-weight: 800; font-size: 1.45rem; letter-spacing: -.01em; margin-bottom: .2rem; }
.home-check-sub { color: var(--home-muted); margin-bottom: 1.1rem; }
.home-check-form { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; column-gap: .75rem; row-gap: 0; align-items: start; }
/* Subgrid: label, veld en foutmelding staan per kolom op dezelfde rij, ook als een label afbreekt. */
.home-field { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.home-field label { align-self: end; }
.home-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; color: var(--home-text); }
.home-optional { font-weight: 400; color: var(--home-muted); }
.home-field .form-control { min-height: 50px; border-radius: 10px; border-color: #d6d0c3; font-size: 1.02rem; }
.home-field .form-control:focus { border-color: var(--home-cta); box-shadow: 0 0 0 .2rem rgba(47, 125, 59, .15); }
.home-field .form-control.is-invalid { border-color: #b42318; background-image: none; padding-right: .75rem; }
.home-field-error { color: #b42318; font-size: .85rem; margin-top: .3rem; min-height: 0; }
.home-field-error:empty { display: none; }
.home-check-submit { grid-column: 1 / -1; margin-top: .9rem; }
.home-check-note { text-align: center; color: var(--home-muted); margin: .8rem 0 .35rem; }
.home-check-privacy { text-align: center; color: var(--home-muted); font-size: .8rem; margin: 0; }

.home-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--home-cta); color: #fff; border: 0; border-radius: 10px;
  font-weight: 700; font-size: 1.1rem; min-height: 52px; padding: .7rem 1.25rem;
}
.home-btn-primary:hover, .home-btn-primary:focus-visible { background: var(--home-cta-hover); color: #fff; }
.home-btn-icon { width: 1.25rem; height: 1.25rem; }
.home-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--home-heading); border: 2px solid var(--home-heading); border-radius: 12px;
  font-weight: 700; min-height: 50px; padding: .6rem 1.5rem; white-space: nowrap;
}
.home-btn-secondary:hover, .home-btn-secondary:focus-visible { background: var(--home-heading); color: #fff; }

/* Foto + voorbeeldkaart */
.home-hero-visual { position: relative; min-height: 470px; }
.home-photo { position: relative; margin: 0; height: 100%; min-height: 470px; border-radius: 22px; overflow: hidden; box-shadow: var(--home-shadow); background: var(--home-mint); }
.home-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.home-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.home-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; }
@media (prefers-reduced-motion: reduce) { .home-slide, .home-slide.is-active { transition: none; } }
.home-photo-credit {
  position: absolute; left: .75rem; bottom: .65rem; max-width: calc(100% - 1.5rem);
  background: rgba(20, 24, 20, .62); color: #fff; font-size: .72rem; line-height: 1.3; padding: .2rem .5rem; border-radius: 6px;
}
.home-photo-credit a { color: #fff; text-decoration: underline; }
.home-slide-controls {
  position: absolute; left: .75rem; top: .75rem; display: flex; align-items: center; gap: .15rem;
  background: rgba(255, 255, 255, .88); border-radius: 999px; padding: .2rem .45rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.home-slide-controls[hidden] { display: none; }
.home-slide-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  border: 0; border-radius: 50%; background: transparent; color: var(--home-heading); padding: 0;
}
.home-slide-toggle:hover { background: var(--home-mint); }
.home-icon-sm { width: 1rem; height: 1rem; }
/* Ruim aanraakvlak (2rem) met een kleine zichtbare stip. */
.home-slide-dot { width: 1.6rem; height: 2rem; border: 0; background: transparent; padding: 0; position: relative; }
.home-slide-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: .6rem; height: .6rem; margin: -.3rem 0 0 -.3rem;
  border-radius: 50%; background: #b9c4b3; transition: background .2s, transform .2s;
}
.home-slide-dot.is-active::before { background: var(--home-heading); transform: scale(1.25); }
.home-slide-dot:hover::before { background: var(--home-cta); }
/* Alle voorbeeld-panelen in dezelfde cel: de kaart houdt de hoogte van het langste paneel,
   zodat de pagina niet verspringt bij het wisselen. Verborgen panelen blijven onzichtbaar
   (ook voor schermlezers) maar tellen mee voor de hoogte. */
.home-example-panels { display: grid; }
.home-example-panel { grid-area: 1 / 1; }
.home-example-panel[hidden] { display: block !important; visibility: hidden; }
.home-example {
  position: absolute; right: 1.25rem; bottom: 1.25rem; width: min(310px, calc(100% - 2.5rem));
  background: #fff; border-radius: 16px; box-shadow: 0 14px 36px rgba(20, 30, 20, .18); padding: 1.1rem 1.2rem .9rem;
}
.home-example-label {
  display: inline-block; background: #fbecc4; color: #5a3f05; border-radius: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem;
}
.home-example-title { color: var(--home-heading); font-weight: 800; font-size: 1.2rem; margin: .5rem 0 .4rem; }
.home-example-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.home-example-list li { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid #eee9de; }
.home-example-list .home-icon { color: var(--home-heading); }
.home-example-note { font-size: .8rem; font-style: italic; color: var(--home-muted); margin: 0; }

.home-icon { width: 1.4rem; height: 1.4rem; flex: none; }
.home-icon-lg { width: 2.1rem; height: 2.1rem; }

/* ---- Voordelen ---- */
.home-benefits { background: var(--home-mint); padding: 1rem 0; }
.home-benefits-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.home-benefits-list li {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  font-weight: 700; color: var(--home-heading); font-size: 1.08rem; padding: .35rem 1rem;
}
.home-benefits-list li + li { border-left: 1px solid #c9d6bf; }
.home-benefits-list .home-icon { color: var(--home-cta); }

/* ---- Stappen ---- */
.home-steps { padding: 3rem 0 3.25rem; }
.home-section-title { color: var(--home-heading); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.5rem; }
.home-steps-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.home-step {
  display: flex; gap: 1rem; align-items: flex-start; height: 100%;
  background: #fff; border: 1px solid var(--home-border); border-radius: 16px; box-shadow: var(--home-shadow); padding: 1.35rem 1.4rem;
}
.home-step h3 { color: var(--home-heading); font-weight: 800; font-size: 1.2rem; margin: .25rem 0 .45rem; }
.home-step p { margin: 0; color: var(--home-text); line-height: 1.5; }
.home-step-nr {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--home-gold); color: #2d2106; font-weight: 800; font-size: 1.1rem;
}

/* ---- Afsluiter ---- */
.home-closing { background: var(--home-mint); padding: 2.25rem 0; }
.home-closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.home-closing-title { color: var(--home-heading); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin: 0; }
.page-home .site-footer { margin-top: 0; }

/* ---- Tablet ---- */
@media (max-width: 991.98px) {
  .home-hero { padding-top: 1.75rem; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .home-hero-visual { min-height: 0; }
  .home-photo { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .home-example { position: relative; right: auto; bottom: auto; width: auto; margin: -3.5rem 1rem 0; }
  .home-steps-list { grid-template-columns: 1fr; }
}

/* ---- Mobiel ---- */
@media (max-width: 575.98px) {
  .home-lead { font-size: 1.05rem; }
  .home-check { padding: 1.25rem 1.1rem 1rem; border-radius: 16px; }
  .home-check-form { grid-template-columns: 1fr 1fr; }
  .home-field-postcode { grid-column: 1 / -1; margin-bottom: .75rem; }
  .home-benefits-list { grid-template-columns: 1fr; }
  .home-benefits-list li { justify-content: flex-start; padding: .45rem .25rem; }
  .home-benefits-list li + li { border-left: 0; border-top: 1px solid #c9d6bf; }
  .home-closing-inner { flex-direction: column; align-items: flex-start; }
  .home-btn-secondary { width: 100%; }
}

/* Adviesregels: regel die wordt aangepast */
.rule-row-editing > td { background: var(--soft); }
.rule-row-editing > td:first-child { box-shadow: inset 4px 0 0 var(--brand); }
.rule-edit-btn { display: inline-flex; align-items: center; justify-content: center; padding: .25rem .45rem; margin-left: .25rem; vertical-align: middle; }
.rule-form-editing { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 125, 59, .15), var(--shadow); }

/* Adviesregels: meerdere voorwaarden */
.cond-block { border: 1px solid var(--line); border-radius: 8px; padding: .75rem .85rem .85rem; background: #fbf8f2; }
.cond-block legend { float: none; width: auto; padding: 0; font-weight: 600; }
.cond-row + .cond-row { margin-top: .5rem; }
.cond-and { display: none; }
.cond-row + .cond-row .cond-and { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; color: var(--brand-dark); margin-bottom: .35rem; }
.cond-and-inline { font-size: .7rem; font-weight: 700; color: var(--brand-dark); }
.cond-remove { min-width: 2.4rem; line-height: 1.2; font-size: 1.15rem; }

/* ================= Site-brede huisstijl (gelijk aan de startpagina) ================= */
/* Navigatie */
.navbar { border-bottom-color: #eee8dc !important; }
.navbar > .container,
.site-footer > .container,
main .container:not(.narrow) { max-width: 1272px; }
/* Beheer heeft brede tabellen: daar mag de pagina breder worden op grote schermen. */
.page-admin .navbar > .container,
.page-admin .site-footer > .container { max-width: 1640px; }
.navbar .nav-link { color: var(--heading); font-weight: 600; padding-inline: .9rem; }
.navbar .nav-link:hover, .navbar .nav-link:focus-visible { color: var(--brand); }
.navbar-brand > span { color: var(--ink); }
.site-footer { border-top-color: #eee8dc; }
@media (max-width: 991.98px) {
  .navbar .nav-link { padding-inline: .25rem; }
  .navbar-nav .nav-login, .navbar-nav form { margin: .5rem 0; }
}

/* Zichtbare focus voor toetsenbordgebruikers */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: none; }

/* Typografie */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 { color: var(--heading); font-weight: 800; letter-spacing: -.02em; }
h6, .h6 { color: var(--heading); font-weight: 700; }
.text-muted { color: var(--muted) !important; }
/* Gouden onderstreping onder een deel van een titel, zoals 'voor morgen.' op de startpagina. */
.title-accent {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11 C 80 3, 200 2, 297 9' fill='none' stroke='%23e3a92b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat left bottom / 96% .3em;
  padding-bottom: .14em;
}

/* Knoppen */
.btn { border-radius: 10px; font-weight: 700; }
.btn-sm { border-radius: 8px; }
.btn-lg { min-height: 52px; padding-inline: 1.4rem; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-secondary {
  --bs-btn-color: var(--heading); --bs-btn-border-color: #cfc8b8;
  --bs-btn-hover-bg: var(--soft); --bs-btn-hover-border-color: var(--heading); --bs-btn-hover-color: var(--heading);
  --bs-btn-active-bg: var(--soft); --bs-btn-active-border-color: var(--heading); --bs-btn-active-color: var(--heading);
  --bs-btn-border-width: 1.5px;
}
.btn-secondary {
  --bs-btn-bg: var(--heading); --bs-btn-border-color: var(--heading);
  --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
}
.btn-success { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); }
.btn-outline-success {
  --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-hover-color: #fff;
}
.btn-outline-warning {
  --bs-btn-color: var(--gold-ink); --bs-btn-border-color: var(--gold);
  --bs-btn-hover-bg: var(--gold-soft); --bs-btn-hover-border-color: var(--gold); --bs-btn-hover-color: var(--gold-ink);
  --bs-btn-active-bg: var(--gold-soft); --bs-btn-active-color: var(--gold-ink);
}

/* Formulieren */
.form-control, .form-select { border-radius: 10px; border-color: #d6d0c3; }
.form-control:not(.form-control-sm):not(textarea), .form-select:not(.form-select-sm) { min-height: 46px; }
.form-control-lg { min-height: 54px !important; font-size: 1.05rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(47, 125, 59, .15); }
.form-label { font-weight: 600; color: var(--ink); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(47, 125, 59, .15); }
.form-range { accent-color: var(--brand); }

/* Tabellen */
.table { --bs-table-border-color: var(--line-soft); --bs-table-hover-bg: #f6f2e9; --bs-table-striped-bg: #fbf8f2; color: var(--ink); }
.table > thead th {
  color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.info-panel > .table:last-child,
.info-panel > .table-responsive:last-child > .table { margin-bottom: 0; }
.table-light, .table > thead.table-light th { --bs-table-bg: #f6f2e9; }

/* Badges */
.badge { border-radius: 8px; font-weight: 700; padding: .4em .65em; }
.badge.text-bg-success { background: var(--soft) !important; color: var(--heading) !important; }
.badge.text-bg-warning { background: var(--gold-soft) !important; color: var(--gold-ink) !important; }
.badge.text-bg-primary { background: var(--heading) !important; color: #fff !important; }
.badge.text-bg-secondary { background: #ece5d6 !important; color: #3f4a44 !important; }
.badge.text-bg-light { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--line); }

/* Meldingen */
.alert { border-radius: 14px; }
.alert-success { --bs-alert-bg: var(--soft); --bs-alert-border-color: #c9d6bf; --bs-alert-color: var(--heading); }
.alert-info { --bs-alert-bg: #f3efe5; --bs-alert-border-color: var(--line); --bs-alert-color: var(--ink); }
.alert-warning { --bs-alert-bg: var(--gold-soft); --bs-alert-border-color: #f0d68e; --bs-alert-color: var(--gold-ink); }
.alert-secondary { --bs-alert-bg: #f3efe5; --bs-alert-border-color: var(--line); --bs-alert-color: var(--ink); }

/* Uitklapmenu's (accordion) in het palet */
.accordion {
  --bs-accordion-border-color: var(--line);
  --bs-accordion-border-radius: 14px;
  --bs-accordion-inner-border-radius: 13px;
  --bs-accordion-active-bg: var(--soft);
  --bs-accordion-active-color: var(--heading);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(47, 125, 59, .15);
}

/* Lijsten, kaartjes in kaarten */
.list-group { --bs-list-group-border-color: var(--line-soft); --bs-list-group-bg: transparent; }
.list-group-flush > .list-group-item { padding-block: 1rem; }
.card { border-color: var(--line); border-radius: 18px; }

/* Mint band voor samenvattingen en acties, zoals de voordelenstrook */
.mint-band { background: var(--soft); border-radius: 18px; padding: 1.4rem 1.6rem; }

/* Icoon in een mint tegel (statkaarten, actiebanden) */
.ui-icon { width: 1.4rem; height: 1.4rem; flex: none; }
.ui-icon-tile {
  flex: none; width: 3rem; height: 3rem; border-radius: 14px; background: var(--soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.ui-icon-tile .ui-icon { width: 1.5rem; height: 1.5rem; }

/* Lijst met vinkjes (geruststelling) */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.check-list li { display: flex; gap: .55rem; align-items: center; font-weight: 600; color: var(--heading); }
.check-list .ui-icon { width: 1.2rem; height: 1.2rem; color: var(--brand); stroke-width: 2.4; }

/* ---------- Inloggen: formulier links, foto rechts ---------- */
.login-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.5rem; align-items: stretch;
  max-width: 1100px; margin: 0 auto;
}
.login-main { display: flex; flex-direction: column; justify-content: center; }
.login-main > .eyebrow { align-self: flex-start; }
.login-title { font-size: clamp(2.1rem, 3.4vw, 2.8rem); line-height: 1.08; margin-bottom: .5rem; }
.login-sub { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.5rem; }
.login-form { padding: 2rem 2rem 1.6rem; }
.login-help { text-align: center; color: var(--muted); font-size: .92rem; margin: 1rem 0 0; }
.login-photo { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); min-height: 460px; background: var(--soft); }
.login-photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.login-photo-card {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; background: #fff; border-radius: 16px;
  box-shadow: 0 14px 36px rgba(20, 30, 20, .18); padding: 1rem 1.2rem;
}
.login-photo-card .check-list { gap: 0; }
.login-photo-card .check-list li { padding: .45rem 0; border-bottom: 1px solid var(--line-soft); }
.login-photo-card .check-list li:last-child { border-bottom: 0; }
@media (max-width: 767.98px) {
  .login-split { grid-template-columns: 1fr; }
  .login-photo { display: none; }
  .login-form { padding: 1.4rem 1.2rem 1.2rem; }
}

/* Energielabels ook in kleur afdrukken (routekaart). */
.energy-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Stapnummer in een gouden cirkel */
.step-badge { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; color: var(--muted); font-weight: 600; font-size: .95rem; }
.step-badge-nr {
  display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; flex: none;
  border-radius: 50%; background: var(--gold); color: #2d2106; font-weight: 800; font-size: 1.1rem;
}

/* Kerncijfer met icoon */
.stat-card.has-icon { display: flex; align-items: center; gap: 1rem; height: 100%; }
.stat-card .ui-icon-tile { display: inline-flex; font-size: 1rem; line-height: 1; color: var(--brand); }
/* Routekaart: bedragen zijn langer dan een getal, dus iets kleiner. */
.roadmap-totals .stat-card div > span { font-size: 1.2rem; }
.stat-card-toggle.has-icon { display: block; }
.stat-card-toggle.has-icon > summary { display: flex; align-items: center; gap: 1rem; }
