/* ==========================================================================
   Zonnepaneelmaatje.nl - stijlen
   ========================================================================== */

:root {
  --kleur-primair: #0369a1;
  --kleur-primair-donker: #075985;
  --kleur-primair-licht: #dbeffc;
  --kleur-inkt: #0b3a5c; /* diep nachtblauw voor hero en footer */
  --kleur-accent: #f59e0b;
  --kleur-accent-donker: #b45309;
  --kleur-accent-licht: #fdf0d2;
  --kleur-tekst: #24312f;
  --kleur-tekst-licht: #5d6d6a;
  --kleur-achtergrond: #f6f3ec; /* warm papier in plaats van koel grijs */
  --kleur-wit: #ffffff;
  --kleur-rand: #e7e1d3;
  --kleur-groen: #16a34a;
  --kleur-groen-licht: #dcfce7;
  --kleur-rood: #dc2626;
  --kleur-rood-licht: #fee2e2;
  --kleur-blauw: #2563eb;
  --kleur-blauw-licht: #dbeafe;
  --schaduw: 0 1px 2px rgba(38, 33, 20, 0.06), 0 6px 18px rgba(38, 33, 20, 0.07);
  --schaduw-hover: 0 4px 10px rgba(38, 33, 20, 0.08), 0 16px 36px rgba(38, 33, 20, 0.14);
  --radius: 16px;
}

* { box-sizing: border-box; }

/* Voor koppen/labels die alleen voor schermlezers bedoeld zijn */
.visueel-verborgen {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  color: var(--kleur-tekst);
  background: var(--kleur-achtergrond);
  line-height: 1.6;
  /* 1rem in plaats van 16px: zo groeit ook de lopende tekst mee met de
     tekstgrootte-instelling van de browser (toegankelijkheid, WCAG 1.4.4) */
  font-size: 1rem;
  /* Lange (samengestelde) woorden mogen afbreken bij grote tekstinstellingen */
  overflow-wrap: break-word;
}

/* Bij grote tekst op een smal scherm mogen prijsbedragen in de
   systeemtabellen (keuzehulp en samensteller) gewoon afbreken, anders
   lopen die tabellen uit beeld */
@media (max-width: 640px) {
  .systeem-tabel td:last-child,
  .advies-kaart table td { white-space: normal !important; }
}

h1, h2, h3 { letter-spacing: -0.015em; }
h1 { font-weight: 800; }

/* Sectiekoppen krijgen een klein amber accentstreepje voor herkenbaarheid */
main h2 {
  font-weight: 800;
  color: var(--kleur-primair-donker);
}
main > h2::after,
main section > h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: var(--kleur-accent);
  margin-top: 6px;
}

a { color: var(--kleur-primair); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Header en navigatie
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--kleur-wit);
  border-bottom: 1px solid var(--kleur-rand);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  /* Groeit mee met de tekstgrootte-instelling, maar nooit breder dan het
     scherm (6.5vw als plafond op smalle schermen) */
  font-size: min(1.15rem, 6.5vw);
  color: var(--kleur-tekst);
  text-decoration: none;
}

.logo .logo-icoon { font-size: 1.5rem; }
.logo span b { color: var(--kleur-primair); }

.hoofdnav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.hoofdnav a {
  text-decoration: none;
  color: var(--kleur-tekst-licht);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.hoofdnav a:hover { background: var(--kleur-achtergrond); color: var(--kleur-tekst); }
.hoofdnav a.actief { background: var(--kleur-primair-licht); color: var(--kleur-primair-donker); }

/* Uitklapmenu "Meer" in de hoofdnavigatie (werkt zonder JavaScript, ook op touch) */
.hoofdnav details.nav-meer { position: relative; }
.hoofdnav details.nav-meer summary {
  cursor: pointer;
  list-style: none;
  color: var(--kleur-tekst-licht);
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  user-select: none;
}
.hoofdnav details.nav-meer summary::-webkit-details-marker { display: none; }
.hoofdnav details.nav-meer summary:hover { background: var(--kleur-achtergrond); color: var(--kleur-tekst); }
.hoofdnav details.nav-meer[open] summary { background: var(--kleur-primair-licht); color: var(--kleur-primair-donker); }
.hoofdnav details.nav-meer .nav-meer-paneel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  z-index: 60;
}
.hoofdnav details.nav-meer .nav-meer-paneel a { padding: 9px 12px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  /* Diepe inkt-teal met een warme "zon" rechtsboven en zachte gloed linksonder */
  background:
    radial-gradient(circle 220px at 88% 8%, rgba(245, 158, 11, 0.55), rgba(245, 158, 11, 0.12) 55%, transparent 75%),
    radial-gradient(circle 420px at -5% 110%, rgba(45, 212, 191, 0.22), transparent 70%),
    linear-gradient(140deg, #0b3a5c 0%, #0c4f7d 55%, #0369a1 100%);
  color: var(--kleur-wit);
  padding: 56px 0 46px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4.6vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 800px;
}

.hero p {
  margin: 0;
  max-width: 720px;
  font-size: 1.05rem;
  opacity: 0.92;
}

.hero .update-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Infobalk regelgeving
   -------------------------------------------------------------------------- */

.regel-banner {
  background: var(--kleur-accent-licht);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 24px 0 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.regel-banner .icoon { font-size: 1.3rem; line-height: 1.3; }
.regel-banner p { min-width: 0; }
/* hidden-attribuut wint van display:flex (voor de kruisverwijzing-banner) */
.regel-banner[hidden] { display: none; }
.regel-banner p { margin: 0; }

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */

/* Op mobiel zijn de filters standaard ingeklapt zodat de panelen snel in beeld komen */
.filter-toggle {
  display: none;
  width: 100%;
  margin: 20px 0 0;
  padding: 13px 16px;
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  font-size: 1rem;
  font-weight: 700;
  color: var(--kleur-tekst);
  cursor: pointer;
  text-align: left;
}

@media (max-width: 640px) {
  .filter-toggle { display: block; }
  .filterbalk.ingeklapt { display: none; }
  .filterbalk { margin-top: 10px; }
}

.filterbalk {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: var(--schaduw);
}

.filter-rij {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: flex-end;
}

.filter-groep { display: flex; flex-direction: column; gap: 6px; }

.filter-groep > label,
.filter-groep .filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--kleur-tekst-licht);
}

.filter-groep select {
  padding: 9px 12px;
  border: 1px solid var(--kleur-rand);
  border-radius: 8px;
  background: var(--kleur-wit);
  font-size: 0.95rem;
  color: var(--kleur-tekst);
  min-width: 150px;
}

.checkbox-groep { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 4px; }

.checkbox-groep label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.93rem;
  cursor: pointer;
  background: var(--kleur-achtergrond);
  border: 1px solid var(--kleur-rand);
  padding: 8px 12px;
  border-radius: 8px;
  user-select: none;
}

.checkbox-groep label:has(input:checked) {
  background: var(--kleur-primair-licht);
  border-color: var(--kleur-primair);
  color: var(--kleur-primair-donker);
  font-weight: 600;
}

.checkbox-groep input { accent-color: var(--kleur-primair); width: 16px; height: 16px; }

.filter-reset {
  background: none;
  border: none;
  color: var(--kleur-primair);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 9px 4px;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Resultatenbalk
   -------------------------------------------------------------------------- */

.resultaten-balk {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
}

.resultaten-telling { font-weight: 600; color: var(--kleur-tekst-licht); font-size: 0.95rem; }

.weergave-knoppen { display: flex; gap: 8px; align-items: center; }

.weergave-knoppen button {
  padding: 8px 14px;
  border: 1px solid var(--kleur-rand);
  background: var(--kleur-wit);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--kleur-tekst-licht);
}

.weergave-knoppen button.actief {
  background: var(--kleur-primair);
  border-color: var(--kleur-primair);
  color: var(--kleur-wit);
}

/* --------------------------------------------------------------------------
   Kaarten
   -------------------------------------------------------------------------- */

.kaarten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.paneel-kaart {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.paneel-kaart::before {
  /* Teal-naar-amber hairline bovenlangs geeft de kaarten een eigen gezicht */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--kleur-primair), #38bdf8 55%, var(--kleur-accent));
  opacity: 0.9;
}

.paneel-kaart:hover { box-shadow: var(--schaduw-hover); transform: translateY(-3px); border-color: #cfe2f0; }

.kaart-kop {
  padding: 18px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  /* Bij grote tekstinstellingen mag het aanbieding-vlaggetje onder de titel
     vallen in plaats van buiten de kaart te steken */
  flex-wrap: wrap;
}

.kaart-kop .merk { font-size: 0.85rem; font-weight: 700; color: var(--kleur-primair); text-transform: uppercase; letter-spacing: 0.05em; }
.kaart-kop h3 { margin: 2px 0 0; font-size: 1.2rem; line-height: 1.3; }

.aanbieding-vlag {
  background: var(--kleur-rood);
  color: var(--kleur-wit);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.type-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 8px;
}

a.term-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
a.term-link:hover { color: var(--kleur-primair); }

.type-topcon { background: var(--kleur-blauw-licht); color: #1e40af; }
.type-hjt { background: var(--kleur-groen-licht); color: #166534; }
.type-back-contact { background: #ede9fe; color: #5b21b6; }
.type-perc { background: #f1f5f9; color: #475569; }
.type-omv-hybride { background: var(--kleur-groen-licht); color: #166534; }
.type-omv-micro { background: #ede9fe; color: #5b21b6; }
.type-omv-optimizer { background: var(--kleur-blauw-licht); color: #1e40af; }
.type-omv-string { background: #f1f5f9; color: #475569; }

.kaart-specs {
  padding: 14px 20px;
  display: grid;
  /* minmax(0, 1fr): kolommen mogen smaller dan hun langste woord, zodat de
     kaart niet uit beeld groeit bij grote tekstinstellingen */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  font-size: 0.92rem;
}

.spec { display: flex; flex-direction: column; }
.spec .spec-label { font-size: 0.8rem; color: var(--kleur-tekst-licht); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.spec .spec-waarde { font-weight: 600; }

.kaart-badges {
  padding: 0 20px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--kleur-achtergrond);
  border: 1px solid var(--kleur-rand);
  color: var(--kleur-tekst-licht);
}

.kaart-badges .badge { cursor: pointer; }

.badge.ja { background: var(--kleur-groen-licht); border-color: #bbf7d0; color: #166534; }
.badge.deels { background: var(--kleur-accent-licht); border-color: #fde68a; color: #92400e; }

/* Oplichten van de uitleg waar een aangetikte badge bij hoort */
.kaart-details .uitgelicht,
.kaart-details.uitgelicht {
  animation: uitlichten 1.6s ease;
  border-radius: 6px;
}
@keyframes uitlichten {
  0% { background-color: var(--kleur-accent-licht); }
  100% { background-color: transparent; }
}

/* Merklogo's: klein, uitgelijnd met de tekst; alleen zichtbaar als het
   logobestand in assets/logos/ staat en in data/panelen.json is geregistreerd */
.merk-logo { height: 16px; width: auto; max-width: 90px; vertical-align: -3px; }
h1 .merk-logo { height: 28px; vertical-align: -4px; }

/* Mini-illustraties per celtype (eigen tekeningen in de huisstijl) */
.type-illustratie {
  width: 170px;
  height: auto;
  flex-shrink: 0;
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  padding: 10px;
}
@media (max-width: 560px) { .type-illustratie { width: 150px; margin: 0 auto; } }
.icoon-kaart .type-illustratie { width: 100%; max-width: 220px; margin-bottom: 8px; border: none; padding: 0; }

/* Icoon-kaarten: opsommingen als scanbare kaartjes in plaats van tekstmuren */
.icoon-kaarten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.icoon-kaart {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.97rem;
  line-height: 1.55;
}
.icoon-kaart .icoon { font-size: 1.6rem; display: block; }
.icoon-kaart b { display: block; margin: 6px 0 4px; color: var(--kleur-primair-donker); }

/* Woordenlijst: klikbare chips om direct naar een begrip te springen */
.woordenlijst-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 20px; }
.woordenlijst-nav a {
  font-size: 0.9rem;
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--kleur-primair-donker);
  font-weight: 600;
}
.woordenlijst-nav a:hover { background: var(--kleur-primair-licht); border-color: var(--kleur-primair); }
.woord { scroll-margin-top: 90px; }

/* Lees-meer: lange tekstblokken standaard ingeklapt */
details.lees-meer summary {
  cursor: pointer;
  list-style: none;
  color: var(--kleur-primair);
  font-weight: 700;
  padding: 4px 0;
  user-select: none;
}
details.lees-meer summary::-webkit-details-marker { display: none; }
details.lees-meer summary::after { content: " ▾"; }
details.lees-meer[open] summary::after { content: " ▴"; }

/* Legenda: ingeklapte uitleg van de symbolen, rustig en scanbaar */
.legenda { margin: 8px 0 0; font-size: 0.88rem; }
.legenda summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
  color: var(--kleur-tekst-licht);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  user-select: none;
}
.legenda summary::-webkit-details-marker { display: none; }
.legenda summary:hover { background: var(--kleur-achtergrond); color: var(--kleur-tekst); }
.legenda[open] summary { color: var(--kleur-primair-donker); }
.legenda .legenda-lijst {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}
.legenda .legenda-rij { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.legenda .legenda-rij > span:first-child { flex-shrink: 0; }
.legenda .legenda-rij > span:last-child { color: var(--kleur-tekst-licht); min-width: 0; }

/* Zeker-score: eigen Zonnepaneelmaatje-score voor degelijkheid (0-6 punten) */
.badge.zeker-score { font-weight: 700; }
.badge.zeker-hoog { background: #e0f2fe; border-color: #bae6fd; color: #0369a1; }
.badge.zeker-midden { background: var(--kleur-accent-licht); border-color: #fde68a; color: #92400e; }
.badge.zeker-laag { background: #f1f5f9; border-color: #e2e8f0; color: #64748b; }
.badge.nee { background: var(--kleur-achtergrond); color: var(--kleur-tekst-licht); text-decoration: line-through; opacity: 0.7; }
.badge.onbekend { background: var(--kleur-achtergrond); border-style: dashed; color: var(--kleur-tekst-licht); }

/* Koppelgemak sterren */
.koppelgemak { padding: 0 20px 12px; font-size: 0.9rem; }
.koppelgemak .sterren { color: var(--kleur-accent); letter-spacing: 2px; font-size: 1rem; }
.koppelgemak .uitleg { color: var(--kleur-tekst-licht); font-size: 0.85rem; margin-top: 2px; }

.kaart-prijs {
  margin-top: auto;
  padding: 14px 20px;
  border-top: 1px solid var(--kleur-rand);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.kaart-prijs { background: linear-gradient(180deg, rgba(246, 243, 236, 0.0), rgba(246, 243, 236, 0.65)); }
.prijs-blok .van-prijs { font-size: 0.85rem; color: var(--kleur-tekst-licht); text-decoration: line-through; }
.prijs-blok .prijs { font-size: 1.7rem; font-weight: 800; color: var(--kleur-primair-donker); letter-spacing: -0.02em; }
.prijs-blok .prijs-per-kwh { font-size: 0.82rem; color: var(--kleur-tekst-licht); }
.prijs-blok .prijs-winkel { font-size: 0.82rem; color: var(--kleur-tekst-licht); }

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--kleur-primair);
  color: var(--kleur-wit);
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.knop:hover { background: var(--kleur-primair-donker); }

.knop-secundair {
  background: var(--kleur-wit);
  color: var(--kleur-primair);
  border: 1.5px solid var(--kleur-primair);
}

.knop-secundair:hover { background: var(--kleur-primair-licht); }

.kaart-acties { padding: 0 20px 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.kaart-acties .knop { flex: 1; }

.details-toggle {
  background: none;
  border: none;
  color: var(--kleur-primair);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0 20px 16px;
  text-align: left;
  text-decoration: underline;
}

.kaart-details {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--kleur-tekst);
  border-top: 1px dashed var(--kleur-rand);
  padding-top: 12px;
  margin: 0 20px 18px;
}

.kaart-details dt { font-weight: 700; margin-top: 8px; font-size: 0.82rem; color: var(--kleur-tekst-licht); text-transform: uppercase; }
.kaart-details dd { margin: 2px 0 0; }
.kaart-details .winkel-lijst { list-style: none; padding: 0; margin: 4px 0 0; }
.kaart-details .winkel-lijst li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted var(--kleur-rand); }

/* --------------------------------------------------------------------------
   Tabelweergave
   -------------------------------------------------------------------------- */

.tabel-wrap {
  overflow-x: auto;
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  margin-bottom: 40px;
}

table.vergelijk-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 900px;
}

.vergelijk-tabel th {
  text-align: left;
  padding: 12px 14px;
  background: var(--kleur-achtergrond);
  border-bottom: 2px solid var(--kleur-rand);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--kleur-tekst-licht);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.vergelijk-tabel th .sorteer-pijl { opacity: 0.5; }
.vergelijk-tabel td { padding: 12px 14px; border-bottom: 1px solid var(--kleur-rand); vertical-align: top; }
.vergelijk-tabel tr:hover td { background: #f0f8ff; }
.vergelijk-tabel .tabel-prijs { font-weight: 700; white-space: nowrap; }
.vergelijk-tabel .check-ja { color: var(--kleur-groen); font-weight: 700; }
.vergelijk-tabel .check-deels { color: #92400e; font-weight: 700; cursor: help; }
.vergelijk-tabel .check-nee { color: var(--kleur-tekst-licht); }

/* --------------------------------------------------------------------------
   Vergelijk-selectie (max 3)
   -------------------------------------------------------------------------- */

.vergelijk-checkbox-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
}

.vergelijk-balk {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--kleur-primair-donker);
  color: var(--kleur-wit);
  padding: 12px 20px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 60;
  flex-wrap: wrap;
}

.vergelijk-balk.zichtbaar { display: flex; }
.vergelijk-balk .knop { background: var(--kleur-accent); color: #422006; }

/* Vergelijk-modal */
.modal-achtergrond {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 70;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 16px;
  overflow-y: auto;
}

.modal-achtergrond.open { display: flex; }

.modal {
  background: var(--kleur-wit);
  border-radius: var(--radius);
  max-width: 1000px;
  width: 100%;
  padding: 24px;
  position: relative;
}

.modal .sluit {
  position: absolute;
  top: 6px;
  right: 6px;
  background: none;
  border: none;
  font-size: 1.6rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--kleur-tekst-licht);
  line-height: 1;
}

.modal h2 { margin-top: 0; }

/* --------------------------------------------------------------------------
   Contentpagina's (regelgeving)
   -------------------------------------------------------------------------- */

.content-pagina { max-width: 820px; margin: 0 auto; padding: 36px 20px 60px; }
.content-pagina h1 { font-size: 2rem; line-height: 1.25; }
.content-pagina h2 { margin-top: 2.2em; color: var(--kleur-primair-donker); }
.content-pagina .intro { font-size: 1.1rem; color: var(--kleur-tekst-licht); }

.info-kader {
  border-left: 4px solid var(--kleur-primair);
  background: var(--kleur-primair-licht);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  font-size: 0.97rem;
}

.waarschuwing-kader {
  border-left: 4px solid var(--kleur-accent);
  background: var(--kleur-accent-licht);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  font-size: 0.97rem;
}

/* Vaste mitsen en maren onder het rekenresultaat: één compact inklapbaar
   blok in plaats van een stapel gele waarschuwingskaders */
details.kanttekeningen {
  margin: 14px 0 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--kleur-rand);
  font-size: 0.85rem;
  color: var(--kleur-tekst-licht);
}
details.kanttekeningen summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--kleur-primair);
}
details.kanttekeningen ul {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.bron-lijst { font-size: 0.88rem; color: var(--kleur-tekst-licht); }
.bron-lijst li { margin-bottom: 6px; }

.datum-stempel { font-size: 0.85rem; color: var(--kleur-tekst-licht); font-style: italic; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

details.faq-item {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  padding: 4px 20px;
  margin-bottom: 10px;
}

details.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  overflow-wrap: anywhere;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

details.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--kleur-primair); }
details.faq-item[open] summary::after { content: "\2013"; }
details.faq-item p { margin-top: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background:
    radial-gradient(circle 320px at 92% 0%, rgba(245, 158, 11, 0.14), transparent 70%),
    var(--kleur-inkt);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0;
  margin-top: 48px;
  font-size: 0.9rem;
}

.site-footer a { color: var(--kleur-wit); }
.site-footer .disclaimer { max-width: 760px; opacity: 0.75; font-size: 0.83rem; margin-top: 14px; }

/* --------------------------------------------------------------------------
   Laden en leeg
   -------------------------------------------------------------------------- */

.laad-melding, .leeg-melding {
  text-align: center;
  padding: 60px 20px;
  color: var(--kleur-tekst-licht);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Responsief
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .kaarten-grid { grid-template-columns: 1fr; }
  .filter-rij { gap: 12px; }
  .filter-groep select { min-width: 130px; }
  .hero { padding: 26px 0 24px; }
  .hero p { font-size: 1rem; }
  .kaart-acties { flex-direction: column; }
}

/* Op smalle schermen wrapt de navigatie naar twee regels; een sticky header
   van ~140px eet dan blijvend een zesde van het scherm op. Daarom niet-sticky. */
@media (max-width: 700px) {
  .site-header { position: static; }
  .woord { scroll-margin-top: 12px; }
}

/* Ruimte onderaan zolang de vergelijk-balk over de pagina zweeft,
   zodat de footer bereikbaar blijft */
body.vergelijkbalk-actief { padding-bottom: 150px; }

/* Terug-naar-boven-knop op lange pagina's (uitleg) */
.naar-boven {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--kleur-primair);
  color: var(--kleur-wit);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: var(--schaduw-hover);
  z-index: 40;
  opacity: 0.92;
}
.naar-boven:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   Printen: advies of vergelijking op papier meenemen naar een installateur
   -------------------------------------------------------------------------- */

@media print {
  .site-header nav, .filter-toggle, .filterbalk, .legenda, .weergave-knoppen,
  .vergelijk-balk, .vergelijk-checkbox-wrap, .details-toggle, .kaart-acties,
  .naar-boven, .site-footer p:not(:first-of-type) { display: none !important; }
  body { background: #fff; }
  .hero { background: none; color: #000; padding: 0; }
  .hero h1, .hero p { color: #000; }
  .hero .update-info, .hero .knop { display: none; }
  .paneel-kaart, .advies-kaart, .route-kaart { box-shadow: none; break-inside: avoid; }
  .kaart-details { display: block !important; }
  .kaart-details[hidden] { display: none !important; }
  a { color: #000; text-decoration: none; }
}
