/* ============================================================
   ElektroKlik – Landingspagina CSS
   Stap-voor-stap funnel · Modern & betrouwbaar
============================================================ */

/* ---- RESET & BASE ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #0E7A78;
  --teal-dark:   #095e5c;
  --teal-licht:  #e6f4f4;
  --blauw:       #0E4A72;
  --oranje:      #F5A623;
  --oranje-dark: #d48a10;
  --tekst:       #1a1a1a;
  --tekst-2:     #4a4a4a;
  --tekst-3:     #6b7280;
  --rand:        #e2e8f0;
  --rand-sterk:  #cbd5e1;
  --bg-licht:    #f8fafc;
  --bg-alt:      #f1f5f9;
  --wit:         #ffffff;
  --fout:        #dc2626;
  --fout-bg:     #fef2f2;
  --succes:      #059669;
  --radius-s:    6px;
  --radius-m:    10px;
  --radius-l:    16px;
  --schaduw-s:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --schaduw-m:   0 4px 16px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  --schaduw-l:   0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1120px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--tekst);
  background: var(--wit);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- UTILS ----------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.verborgen { display: none !important; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-licht); }

/* ---- HEADER ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--wit);
  border-bottom: 1px solid var(--rand);
  height: 72px;
  display: flex; align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; display: block; }

.header-spoed {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fout-bg);
  border: 1px solid #fecaca;
  border-radius: var(--radius-m);
  padding: 8px 14px;
  text-decoration: none;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.18s;
}
.header-spoed:hover { background: #fee2e2; }
.spoed-label { color: #991b1b; }
.spoed-nr { color: #b91c1c; }

/* ---- HERO ------------------------------------------------ */
.hero {
  background: linear-gradient(135deg, #0b3f5e 0%, #0E4A72 55%, #0a6068 100%);
  padding: 72px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 56px;
  align-items: start;
}

.hero-tekst { color: #fff; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--oranje);
  margin-bottom: 16px;
}

.hero-tekst h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-keurmerken {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-keurmerken li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.9);
}

.check-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---- FUNNEL KAART ---------------------------------------- */
.funnel-kaart {
  background: var(--wit);
  border-radius: var(--radius-l);
  box-shadow: var(--schaduw-l);
  overflow: hidden;
}

/* --- Voortgangsbalk --- */
.funnel-voortgang {
  display: flex;
  align-items: center;
  padding: 20px 24px 0;
  margin-bottom: 4px;
}

.voortgang-stap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.vstap-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
  background: var(--rand);
  color: var(--tekst-3);
  transition: background 0.25s, color 0.25s;
}

.vstap-lbl {
  font-size: 0.76rem; font-weight: 500;
  color: var(--tekst-3);
  transition: color 0.25s;
}

.voortgang-stap.active .vstap-num { background: var(--teal); color: #fff; }
.voortgang-stap.active .vstap-lbl { color: var(--teal); }
.voortgang-stap.klaar .vstap-num { background: var(--succes); color: #fff; }
.voortgang-stap.klaar .vstap-lbl { color: var(--succes); }

.voortgang-lijn {
  flex: 1;
  height: 2px;
  background: var(--rand);
  margin: 0 6px;
  border-radius: 2px;
  transition: background 0.25s;
}

/* --- Funnel stap --- */
.funnel-stap {
  border: none;
  padding: 24px 28px 28px;
}

.stap-header { margin-bottom: 22px; }

.terug-knop {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--teal); padding: 0;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.terug-knop:hover { color: var(--teal-dark); }

.stap-titel {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tekst);
  margin-bottom: 4px;
}

.stap-sub {
  font-size: 0.875rem;
  color: var(--tekst-3);
}

/* --- Formuliervelden --- */
.form-groep { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-groep:last-child { margin-bottom: 0; }

.form-groep label, .form-groep .groep-label {
  font-size: 0.875rem; font-weight: 600;
  color: var(--tekst);
}

.form-groep input[type="text"],
.form-groep input[type="tel"],
.form-groep input[type="email"],
.form-groep textarea,
.form-groep select.select-veld {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--rand-sterk);
  border-radius: var(--radius-s);
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--tekst);
  background: var(--wit);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-groep select.select-veld {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-groep input:focus,
.form-groep textarea:focus,
.form-groep select.select-veld:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,122,120,.12);
}

.form-groep input.error,
.form-groep textarea.error {
  border-color: var(--fout);
}

.form-groep textarea { resize: vertical; min-height: 80px; }

.postcode-rij {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.postcode-veld, .hnr-veld { margin-bottom: 0; }

.form-rij {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.form-rij .form-groep { margin-bottom: 0; }

.required-mark { color: var(--fout); margin-left: 2px; }

.veld-fout {
  font-size: 0.8rem; font-weight: 500;
  color: var(--fout);
  display: flex; align-items: center; gap: 4px;
}

.verplicht-ster { color: var(--fout); margin-left: 2px; }
.optioneel { font-size: 0.75rem; font-weight: 400; color: var(--tekst-3); margin-left: 4px; }

/* --- Radio pillen (details vragen) --- */
.radio-rij {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-pil {
  position: relative;
  cursor: pointer;
}
.radio-pil input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.radio-pil span {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid var(--rand-sterk);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tekst-2);
  background: var(--wit);
  transition: all 0.15s;
  user-select: none;
}
.radio-pil:hover span {
  border-color: var(--teal);
  color: var(--teal);
}
.radio-pil input[type="radio"]:checked + span {
  border-color: var(--teal);
  background: var(--teal-licht);
  color: var(--teal-dark);
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(14,122,120,.15);
}
.radio-pil input[type="radio"]:focus-visible + span {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* --- Details blok info --- */
.details-info {
  padding: 16px;
  background: var(--bg-licht);
  border: 1px dashed var(--rand-sterk);
  border-radius: var(--radius-m);
  font-size: 0.9rem;
  color: var(--tekst-2);
  text-align: center;
}

/* --- Privacy checkbox --- */
.privacy-rij { margin-bottom: 18px; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: 0.875rem;
  color: var(--tekst-2);
}
.checkbox-label input[type="checkbox"] {
  width: 17px; height: 17px; flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--teal);
  cursor: pointer;
}
.checkbox-label a { color: var(--teal); text-decoration: underline; }

/* --- Dienst keuze grid (stap 2) --- */
.dienst-keuze-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.dienst-keuze-kaart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1.5px solid var(--rand-sterk);
  border-radius: var(--radius-m);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  background: var(--wit);
  text-align: center;
}

.dienst-keuze-kaart:hover {
  border-color: var(--teal);
  background: var(--teal-licht);
}

.dienst-keuze-kaart input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.dienst-keuze-kaart:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-licht);
  box-shadow: 0 0 0 3px rgba(14,122,120,.18);
}

.dienst-ikoon {
  width: 44px; height: 44px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  transition: background 0.18s;
}

.dienst-keuze-kaart:hover .dienst-ikoon,
.dienst-keuze-kaart:has(input:checked) .dienst-ikoon {
  background: rgba(14,122,120,.15);
}

.dienst-naam {
  font-size: 0.8125rem; font-weight: 600;
  color: var(--tekst);
  line-height: 1.3;
}

.dienst-storing .dienst-ikoon { color: #dc6b19; }
.dienst-storing:has(input:checked) .dienst-ikoon { background: rgba(220,107,25,.12); }
.dienst-storing:has(input:checked) { border-color: #dc6b19; box-shadow: 0 0 0 3px rgba(220,107,25,.15); }

/* --- Spoed melding --- */
.spoed-melding {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-m);
  font-size: 0.875rem;
  color: #9a3412;
  margin-bottom: 16px;
}
.spoed-melding svg { flex-shrink: 0; margin-top: 1px; color: #ea580c; }
.spoed-melding a { color: #9a3412; font-weight: 700; text-decoration: underline; }

/* --- Volgende / verstuur knop --- */
.btn-volgende {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-m);
  font-size: 1rem; font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  margin-top: 4px;
}
.btn-volgende:hover { background: var(--teal-dark); }
.btn-volgende:active { transform: scale(0.985); }
.btn-volgende:disabled { opacity: 0.65; cursor: not-allowed; }

.btn-verstuur { background: var(--oranje); }
.btn-verstuur:hover { background: var(--oranje-dark); }

.form-sub-noot {
  text-align: center;
  font-size: 0.78rem;
  color: var(--tekst-3);
  margin-top: 10px;
}

/* --- Succes melding --- */
.form-succes {
  padding: 40px 28px;
  text-align: center;
}
.succes-ikoon { margin-bottom: 16px; }
.form-succes h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.form-succes p { font-size: 0.9375rem; color: var(--tekst-2); }
.succes-spoed { margin-top: 12px; }
.succes-spoed a { color: var(--teal); font-weight: 600; }

/* ---- VERTROUWEN STROOK ----------------------------------- */
.vertrouwen-strook {
  background: var(--wit);
  border-bottom: 1px solid var(--rand);
  padding: 32px 0;
}

.vertrouwen-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.vertrouwen-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.vertrouwen-item svg { flex-shrink: 0; margin-top: 2px; }

.vertrouwen-item strong {
  display: block;
  font-size: 0.9rem; font-weight: 700;
  color: var(--tekst);
  margin-bottom: 2px;
}
.vertrouwen-item span {
  font-size: 0.8125rem;
  color: var(--tekst-3);
}

/* ---- DIENSTEN -------------------------------------------- */
.diensten h2 {
  font-size: 1.6rem; font-weight: 800;
  margin-bottom: 36px;
  color: var(--tekst);
}

.diensten-rij {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dienst-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--rand);
  border-radius: var(--radius-l);
  background: var(--wit);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.dienst-item:hover {
  border-color: var(--teal);
  box-shadow: var(--schaduw-m);
}

.dienst-item-ikoon {
  width: 48px; height: 48px;
  border-radius: var(--radius-m);
  background: var(--teal-licht);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.storing-ikoon { background: #fff7ed; color: #dc6b19; }

.dienst-item h3 { font-size: 0.95rem; font-weight: 700; color: var(--tekst); margin-bottom: 6px; }
.dienst-item p { font-size: 0.875rem; color: var(--tekst-2); line-height: 1.55; }

/* ---- FAQ ------------------------------------------------- */
.faq-inner { max-width: 720px; margin: 0 auto; }

.faq h2 {
  font-size: 1.6rem; font-weight: 800;
  margin-bottom: 32px;
  color: var(--tekst);
}

.faq-list { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  border: 1px solid var(--rand);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--wit);
}

.faq-vraag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9375rem; font-weight: 600;
  color: var(--tekst);
  text-align: left;
  transition: background 0.15s;
}
.faq-vraag:hover { background: var(--bg-licht); }

.faq-pijl {
  flex-shrink: 0;
  color: var(--tekst-3);
  transition: transform 0.22s;
}
.faq-vraag[aria-expanded="true"] .faq-pijl { transform: rotate(180deg); }

.faq-antwoord {
  padding: 0 20px 18px;
  border-top: 1px solid var(--rand);
}
.faq-antwoord p { font-size: 0.9rem; color: var(--tekst-2); line-height: 1.65; }

/* ---- CTA SLOT -------------------------------------------- */
.cta-slot {
  background: linear-gradient(135deg, #0b3f5e 0%, #0E4A72 100%);
  padding: 56px 0;
}

.cta-slot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-slot-tekst h2 {
  font-size: 1.6rem; font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.cta-slot-tekst p { color: rgba(255,255,255,.75); font-size: 1rem; }

.btn-cta-slot {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: var(--oranje);
  color: var(--tekst);
  border-radius: var(--radius-m);
  font-size: 1.05rem; font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, transform 0.12s;
  flex-shrink: 0;
}
.btn-cta-slot:hover { background: var(--oranje-dark); color: #fff; }
.btn-cta-slot:active { transform: scale(0.985); }

/* ---- FOOTER ---------------------------------------------- */
.site-footer { background: var(--blauw); color: rgba(255,255,255,.85); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
  align-items: start;
}

.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,.55); margin-top: 10px; }
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  /* Logo werkt op donkere achtergrond door lichte invert achter de letters */
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.footer-contact { text-align: right; }
.footer-contact p { font-size: 0.875rem; margin-bottom: 6px; }
.footer-contact a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
}
.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,.4); }

/* ---- STICKY SPOED KNOP (mobiel) ------------------------- */
.sticky-spoed {
  display: none;
  position: fixed;
  bottom: 20px; right: 20px; z-index: 200;
  background: #dc2626;
  color: #fff;
  padding: 14px 20px;
  border-radius: 50px;
  border: 2px solid #fff;
  text-decoration: none;
  font-size: 0.9rem; font-weight: 700;
  align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.35), 0 2px 8px rgba(220,38,38,.5);
  transition: background 0.18s;
}
.sticky-spoed:hover { background: #b91c1c; }

/* ---- FOCUS VISIBLE --------------------------------------- */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-sub { max-width: 100%; }
  .funnel-kaart { max-width: 540px; }

  .diensten-rij { grid-template-columns: repeat(2, 1fr); }
  .vertrouwen-inner { grid-template-columns: repeat(2, 1fr); }

  .cta-slot-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobiel */
@media (max-width: 640px) {
  .hero { padding: 40px 0 48px; }

  .site-header { height: 64px; }
  .logo-img { height: 36px; }

  .hero-tekst h1 { font-size: 1.6rem; }
  .hero-sub { font-size: 0.95rem; }

  .spoed-label { display: none; }
  .spoed-nr { font-size: 0.8125rem; }

  .funnel-kaart { border-radius: var(--radius-m); }
  .funnel-stap { padding: 18px 18px 22px; }
  .funnel-voortgang { padding: 14px 14px 0; }

  /* Op mobiel: alleen cijfers tonen in voortgangsbalk */
  .vstap-lbl { display: none; }
  .voortgang-lijn { margin: 0 4px; }

  .postcode-rij { grid-template-columns: 1fr 1fr; }
  .form-rij { grid-template-columns: 1fr; }

  .dienst-keuze-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dienst-keuze-kaart { padding: 12px 8px; }
  .dienst-naam { font-size: 0.75rem; }
  .dienst-ikoon { width: 36px; height: 36px; border-radius: 8px; }

  .diensten-rij { grid-template-columns: 1fr; gap: 12px; }
  .vertrouwen-inner { grid-template-columns: 1fr; gap: 16px; }
  .vertrouwen-strook { padding: 24px 0; }

  .faq h2 { font-size: 1.3rem; }

  .cta-slot-tekst h2 { font-size: 1.3rem; }
  .btn-cta-slot { width: 100%; justify-content: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-contact { text-align: left; }

  .sticky-spoed { display: flex; }
}

/* ---- Animatie: stap overgang ----------------------------- */
@keyframes stapIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.funnel-stap:not(.verborgen) {
  animation: stapIn 0.22s ease-out;
}

/* ---- Reduced motion -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
