:root {
  --brand: #2e8b43;
  --brand-dark: #1b6b37;
  --brand-light: #7bbb3a;
  --ink: #17211f;
  --soft: #eef6ec;
  --line: #d8e6d5;
  /* 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: #f7faf5;
  --bs-link-color-rgb: 46, 139, 67;
  --bs-link-hover-color-rgb: 27, 107, 55;
}

.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; }
.hero-logo { height: 120px; 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(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--soft) 100%);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--brand);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.metric-panel,
.card-form,
.info-panel,
.concept-card,
.feature,
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 33, 31, .06);
}

.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 33, 31, .06);
  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: #66736f;
  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: 8px;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

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

.label {
  color: #66736f;
  font-size: .95rem;
}

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

.feature p,
.section-heading {
  color: #66736f;
}

/* 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%;
}

/* Opvallende, donkergroene subsidieregel onder een maatregel. */
.subsidy-hint {
  background: var(--soft);
  border-left: 3px solid var(--brand-dark);
  border-radius: 4px;
  color: var(--brand-dark);
  font-weight: 600;
  font-size: .9rem;
  padding: .4rem .6rem;
}

/* Ingeklapte subsidieregel per maatregel: toont alleen het aantal per type. */
.subsidy-collapse > summary {
  color: var(--brand-dark);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  list-style: none;
}

.subsidy-collapse > summary::-webkit-details-marker { display: none; }

.subsidy-collapse > summary::before {
  content: "\25B8";
  display: inline-block;
  margin-right: .4rem;
  opacity: .6;
}

.subsidy-collapse[open] > summary::before { content: "\25BE"; }

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

.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%;
}

.concept-card.is-chosen {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 139, 67, .15);
}

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

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

.stat-card p {
  color: #66736f;
  margin: .35rem 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: vaste zijbalk links met verticaal menu. */
.admin-shell {
  padding: 1.5rem;
}

.admin-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .75rem;
  box-shadow: 0 12px 30px rgba(23, 33, 31, .06);
}

.admin-sidebar-title {
  color: #66736f;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: .25rem .5rem .5rem;
}

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

.admin-sidebar a:hover {
  background: var(--soft);
}

.admin-sidebar a.active {
  background: var(--brand);
  color: #fff;
}

/* Uitklapbare menugroep (bv. Instellingen) via native <details>/<summary>. */
.admin-sidebar details > summary {
  border-radius: 8px;
  color: var(--brand-dark);
  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: var(--soft);
}

.admin-sidebar details > summary.active {
  background: var(--brand);
  color: #fff;
}

.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;
}

@media (max-width: 576px) {
  .hero {
    padding: 3rem 0;
  }

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

/* ---------- Homepage check-container ---------- */
.check-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(23, 33, 31, .08);
  padding: 1.75rem;
}

/* ---------- Verduurzamingscheck (wizard) ---------- */
.wizard-progress {
  background: var(--line);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  width: 100%;
}

.wizard-progress-bar {
  background: var(--energy-gradient);
  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; }

.wizard-step { padding: 1.5rem 0; }

.wizard-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(240px, 360px) 1fr;
  align-items: start;
}

@media (max-width: 768px) {
  .wizard-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.wizard-aside { padding-right: 1rem; }

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

.wizard-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 150px;
  padding: 1rem 1.1rem;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.wizard-card:hover { border-color: var(--brand); }

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

.wizard-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(46, 139, 67, .15);
}

.wizard-card-title { font-weight: 600; color: var(--ink); }

.wizard-card-check {
  color: var(--brand);
  font-weight: 800;
  opacity: 0;
  position: absolute;
  right: .7rem;
  bottom: .6rem;
}

.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-cards.is-invalid .wizard-card { border-color: #dc3545; }

.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: #b02a37;
  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: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

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

.service-area-dot {
  background: #1b6b5f;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(27, 107, 95, .5);
}

.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: #66736f; }

/* 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.25rem;
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  counter-reset: none;
}
.reg-breadcrumb li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #90a099;
  font-weight: 600;
  font-size: .95rem;
}
.reg-breadcrumb .reg-crumb-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--soft);
  color: #90a099;
  font-size: .85rem;
}
.reg-breadcrumb li.is-active { color: var(--brand-dark); }
.reg-breadcrumb li.is-active .reg-crumb-num {
  background: var(--brand);
  color: #fff;
}
.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;
  border-top: 1px solid var(--line);
  display: flex;
  gap: .5rem;
  margin-top: 1.5rem;
  padding: 1rem 0 2rem;
  position: sticky;
  bottom: 0;
  background: #f8faf9;
}

.wizard-prev { 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;
  background: var(--energy-gradient);
  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: #66736f;
  display: flex;
  font-size: .8rem;
  font-weight: 600;
  justify-content: space-between;
  margin-top: .4rem;
  padding: 0 2px;
}

/* ---------- 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 ---------- */
.premium-banner {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--soft) 100%);
  border: 1px solid var(--line);
  border-left: 6px solid transparent;
  border-image: linear-gradient(180deg, #1b6b37 0%, #2e8b43 30%, #7bbb3a 50%, #f4c020 70%, #ef7c1a 85%, #de3b2a 100%) 1;
  border-image-width: 0 0 0 6px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(23, 33, 31, .06);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
}
.premium-banner.is-owned { border-image: none; border-left-color: var(--brand); }
.premium-points { padding-left: 1.1rem; }
.premium-points li { margin-bottom: .25rem; }
.premium-cta { min-width: 200px; text-align: center; }
.premium-price { color: var(--brand-dark); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.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: ""; }
}
