/* versie 260105_18 oclock */

/* ======================================================
   ENVAL – style.css
   Doel:
   - Eén plek voor alle UI-styling (ook dossier)
   - Geen conflicterende table/checkbox/button regels
   - Dossier blijft werken zoals nu
   - Homepage: warmer, uitnodigender + calculator UI
   ====================================================== */

/* ======================================================
   Design tokens
   ====================================================== */
:root{
  --brand: #0f766e;
  --brand-600: #0d6b63;
  --brand-500: #10b981;
  --brand-50:  #ecfdf5;

  --ink: #0f172a;
  --bg: #f8fafc;
  --panel: #ffffff;
  --muted: #64748b;

  --dark: #0b1220;
  --dark-2: #0e1a2f;
  --dark-border: #223049;

  --shadow: 0 14px 30px rgba(15, 23, 42, 0.12);

  /* nieuwe “warmer/softer” helpers */
  --ring: rgba(16, 185, 129, 0.22);
  --soft-border: rgba(15, 23, 42, 0.10);
  --panel-2: #f3f6fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

/* ======================================================
   Layout helpers
   ====================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section-alt { background: #eef2f7; }

.two-column { display: grid; gap: 2.5rem; }
.split { display: grid; gap: 1.5rem; }

/* ======================================================
   Header
   ====================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  color: #e5e7eb;
  border-bottom: 1px solid var(--dark-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo a{
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.logo a:hover{ text-decoration: underline; }

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  opacity: 0.95;
}
nav a:hover { text-decoration: underline; opacity: 1; }

/* ======================================================
   Hero (algemeen)
   ====================================================== */
.hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

/* subtiele “glow” zodat het minder koud/plat voelt */
.hero::before{
  content:"";
  position:absolute;
  inset:-180px -120px auto -120px;
  height: 380px;
  background: radial-gradient(closest-side, rgba(16,185,129,0.28), rgba(16,185,129,0.0));
  pointer-events:none;
  filter: blur(2px);
}
.hero::after{
  content:"";
  position:absolute;
  right:-220px;
  top:-220px;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(14,165,233,0.18), rgba(14,165,233,0.0));
  pointer-events:none;
}

.hero-inner { display: grid; gap: 2.5rem; position: relative; z-index: 1; }

.hero-text h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-text p {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  color: rgba(229,231,235,0.92);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* “trust badges” onder hero */
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 14px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(229,231,235,0.92);
  font-size: 0.9rem;
  white-space: nowrap;
}
.badge .dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(16,185,129,0.9);
}

/* Hero side visual card */
.hero-side .card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.hero-side .card h3 { margin-top: 0; }
.hero-side .card ol { margin: 0; padding-left: 1.25rem; }

/* ======================================================
   Buttons
   ====================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0px); }

.btn.outline {
  background: #fff;
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
}
.btn.outline:hover {
  background: var(--brand-50);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.14);
}

.btn.outline.active,
.tab-toggle.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.22);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn.primary:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
}

.btn.small { padding: 0.55rem 1.05rem; font-size: 0.9rem; }

.full-width { width: 100%; }

/* Submit loading state (gebruikt door script.js & dossier.js) */
button.is-loading { opacity: 0.7; cursor: not-allowed;}
button.is-loading::after { content: " ⏳"; }

.missing-list { margin: 8px 0 0 18px; }

/* Status per laadpaal lijst (stap 4 hint) */
.statuslist { margin: 8px 0 0 18px; padding: 0; }
.statuslist li { margin: 4px 0; }

/* ======================================================
   Tabs
   ====================================================== */
.tab-panel { display: block; }
.js .tab-panel { display: none; }

/* ======================================================
   Cards / Typography
   ====================================================== */
.card {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 1.5rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.card h3 { margin-top: 0; }

h1{ font-size: 2rem; line-height: 1.2; }
h2 { font-size: 1.6rem; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-top: 1rem; margin-bottom: 0.4rem; }

p { margin-top: 0; margin-bottom: 1rem; }

.list {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem 0;
}
.list li { margin-bottom: 0.25rem; }

/* ======================================================
   Homepage – nieuwe secties (warm, minder “tekstmuur”)
   ====================================================== */
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title p{
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
}

.cards-3{
  display:grid;
  gap: 14px;
}
@media (min-width: 768px){
  .cards-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.feature-card{
  border: 1px solid var(--soft-border);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  min-width: 0;
}
.feature-card h3{ margin: 6px 0 8px 0; }
.feature-card p{ color: var(--muted); margin-bottom: 12px; }

.icon{
  width: 40px; height: 40px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(16,185,129,0.25);
  background: rgba(16,185,129,0.10);
  color: var(--brand);
  font-weight: 800;
}

.kicker{
  display:inline-block;
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.callout{
  background: linear-gradient(180deg, rgba(16,185,129,0.10), rgba(16,185,129,0.04));
  border: 1px solid rgba(16,185,129,0.20);
  border-radius: 18px;
  padding: 18px;
}

.callout strong{ color: var(--ink); }
.callout p{ color: rgba(15,23,42,0.82); margin-bottom: 0; }

.steps{
  display:grid;
  gap: 12px;
}
@media (min-width: 768px){
  .steps{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.step{
  background: #fff;
  border: 1px solid var(--soft-border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
.step .n{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 32px; height: 32px;
  border-radius: 12px;
  background: rgba(15,118,110,0.10);
  border: 1px solid rgba(15,118,110,0.22);
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 10px;
}
.step p{ color: var(--muted); margin-bottom: 0; }

/* Calculator */
.calc-wrap{
  display:grid;
  gap: 14px;
  align-items: start;
}
@media (min-width: 768px){
  .calc-wrap{ grid-template-columns: 1.2fr 0.8fr; }
}
.calc{
  background:#fff;
  border: 1px solid var(--soft-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
.calc .row2{
  display:grid;
  gap: 12px;
}
@media (min-width: 768px){
  .calc .row2{ grid-template-columns: 1fr 1fr; }
}
.calc .result{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #0b1220;
  color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.10);
}
.calc .result small{ color: rgba(229,231,235,0.78); display:block; margin-top: 6px; }

.note{
  font-size: 0.9rem;
  color: var(--muted);
}

/* Calculator: 2 kolommen binnen het form */
.calc-grid2{
  display: grid;
  gap: 14px;
}
@media (min-width: 768px){
  .calc-grid2{ grid-template-columns: 1fr 1fr; }
}

.calc-col{
  min-width: 0;
}

.calc-title{
  margin: 0 0 10px 0;
  font-size: 1.05rem;
}

/* Number input spinners uit (Chrome/Safari/Edge + Firefox) */
.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.no-spin[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}


/* ======================================================
   FAQ
   ====================================================== */
.faq-intro { max-width: 52rem; margin-bottom: 2rem; }
.faq-grid { display: grid; gap: 1rem; }
.faq-item{
  background:#fff;
  border: 1px solid var(--soft-border);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}
.faq-item h3 { margin: 0 0 6px 0; }
.faq-item p{ margin: 0; color: var(--muted); }

/* ======================================================
   Forms
   ====================================================== */
.form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

/* Form actions: vaste spacing boven/onder primaire knop */
.form-actions{
  margin: 14px 0;         /* ≈ “2 enters” boven + onder */
  display: grid;
  gap: 8px;
}
.form-actions .btn{ margin: 0; }

.form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.25rem;
}

.form span { font-weight: 600; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  border-radius: 0.65rem;
  border: 1px solid #cbd5e1;
  padding: 0.62rem 0.78rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px var(--ring);
}

textarea { resize: vertical; }

input[name="installer_ref"] { text-transform: uppercase; }

.form-note {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Checkbox row */
.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:0.6rem;
}

/* Checkbox */
.checkbox-row input[type="checkbox"]{
  margin:0;
  margin-top:2px;
  flex-shrink:0;
}

/* Label tekst */
.checkbox-row label{
  display:block;
  font-size:0.95rem;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:break-word;
  min-width:0;
}


/* Inline errors */
.input-error { border-color: #ff4d4f !important; }
.input-error:focus {
  border-color: #ff4d4f !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.20);
}
.field-error {
  color: #a8071a;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}



/* ======================================================
   Footer
   ====================================================== */
footer {
  background: #0b1120;
  color: #9ca3af;
  padding: 1rem 0;
  margin-top: 2rem;
}
.footer-inner { text-align: center; font-size: 0.85rem; }

/* ======================================================
   Responsive
   ====================================================== */
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 2fr 1.2fr;
    align-items: center;
  }
  .two-column {
    grid-template-columns: 1.3fr 1.1fr;
    align-items: flex-start;
  }
  .split { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  nav a { margin-left: 0.75rem; font-size: 0.85rem; }
  .header-inner { padding-inline: 1rem; }
  .hero { padding-top: 4rem; }
}

/* Mobile nav toggle */
.nav-toggle{
  display: none;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 767px) {
  .header-inner { position: relative; }

  /* Hide nav by default on mobile */
  header nav { display: none; }

  /* Show toggle button */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* When open: show nav as dropdown */
  body.nav-open header nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: var(--dark);
    border-bottom: 1px solid var(--dark-border);
  }

  /* Reset link spacing for dropdown */
  header nav a { margin: 0; font-size: 0.98rem; }
}

/* ======================================================
   Toast
   ====================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  max-width: calc(100% - 32px);
  width: 520px;
}

.toast--success {
  background: #e6f7e9;
  border: 1px solid #52c41a;
  color: #135200;
}

.toast--error {
  background: #fff2f0;
  border: 1px solid #ff4d4f;
  color: #a8071a;
}

/* ======================================================
   DOSSIER (alles dossier-specifiek hier)
   ====================================================== */

/* Kleine helpers die dossier.html/dossier.js gebruiken */
.hidden { display: none !important; }
.muted { color: #64748b; }
.small { font-size: 0.85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.notice { background:#f8fafc; border:1px solid #e2e8f0; padding:10px; border-radius:10px; }
.danger { color:#b91c1c; }
.ok { color:#15803d; }

/* Dossier header bar */
.statusbar { display:flex; gap:12px; align-items:center; justify-content:space-between; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

/* Dossier status pill */
.pill {
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-weight:600;
  font-size:0.85rem;
  border:1px solid #cbd5e1;
  background:#fff;
}
.pill.ok { border-color:#22c55e; }
.pill.warn { border-color:#f59e0b; }
.pill.err { border-color:#ef4444; }

/* Dossier grid */
.grid2 { display:grid; gap:16px; width:100%; }
@media (min-width:768px){ .grid2 { grid-template-columns: 1fr 1fr; } }

/* voorkom dat lange strings cards laten "uitrekken" */
.grid2 > .card { min-width: 0; }
.card { min-width: 0; }

/* Dossier tables */
.table{
  width:100%;
  border-collapse:collapse;
  table-layout: fixed;
}

.table th, .table td{
  border-bottom:1px solid #e2e8f0;
  padding:10px 6px;
  text-align:left;
  font-size:0.95rem;
  vertical-align:top;

  /* default: GEEN ellipsis; voorkomt “alles wordt ...” */
  overflow:hidden;
  white-space:nowrap;
  text-overflow:clip;
}

.table th{
  font-size:0.85rem;
  color:#64748b;
  font-weight:600;
}

.table .right{ text-align:right; }

/* Actie-kolom: precies ruimte voor 1 icon button */
.table-chargers th.right, .table-chargers td.right,
.table-docs th.right, .table-docs td.right{
  width:64px;
}

/* ===== Step 3: Laadpalen ===== */
.table-chargers th:nth-child(1),
.table-chargers td:nth-child(1){ width:10ch; } /* serienummer */

.table-chargers th:nth-child(2),
.table-chargers td:nth-child(2){ width:8ch; }  /* merk */

.table-chargers th:nth-child(3),
.table-chargers td:nth-child(3){ width:10ch; } /* model */

/* Toelichting = variabel + ellipsis */
.table-chargers th:nth-child(4),
.table-chargers td:nth-child(4){
  width:auto;
  text-overflow:ellipsis;
}

/* ===== Step 4: Documenten ===== */
.table-docs th:nth-child(1),
.table-docs td:nth-child(1){ width:15ch; } /* foto_laadpunt past */

.table-docs th:nth-child(2),
.table-docs td:nth-child(2){ width:10ch; } /* paalnummer */

.table-docs th:nth-child(3),
.table-docs td:nth-child(3){
  width:auto;
  text-overflow:ellipsis; /* alleen bestandnaam ellipsis */
}

/* Button stack in actie-cel: altijd zichtbaar, nooit wrappen */
.btnstack{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
}

/* Dossier hint compact (mag ellipsis) */
#docsHint{
  padding:8px 10px;
  font-size:0.82rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}




/* ======================================================
   Page hero + prose (juridische/tekstpagina’s)
   ====================================================== */
.page-hero{
  padding: 3rem 0 2.25rem;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #e5e7eb;
  border-bottom: 1px solid var(--dark-border);
}
.page-hero .kicker{ color: rgba(16,185,129,0.95); }
.page-hero h1{ margin: 8px 0 8px 0; font-size: 2rem; line-height: 1.15; }
.page-hero .lead{
  margin: 0;
  max-width: 58rem;
  color: rgba(229,231,235,0.88);
}

/* nettere lange tekst in cards */
.prose h3{ margin-top: 1.25rem; }
.prose p, .prose li{ color: rgba(15,23,42,0.86); }
.prose a{ color: var(--brand); text-decoration: underline; }
