
:root{
  /* Strategy A: technical blue-grey + clean whites + restrained orange accent */
  --ink:#1f2a37;          /* primary text */
  --ink2:#3a4656;         /* headings / strong */
  --muted:#5b6775;        /* secondary text */
  --line:#d9e0e7;         /* borders */
  --soft:#eef2f6;         /* light section bg */
  --bg:#f7f8fa;           /* page background */
  --card:#ffffff;         /* cards */
  --accent:#f28c38;       /* restrained orange */
  --accent2:#ffb46e;      /* soft orange for subtle gradients */
  --shadow: 0 18px 50px rgba(31,42,55,.10);

  --radius:18px;
  --radius2:26px;
  --max:1140px;
  --navh:74px;
}

*{box-sizing:border-box}
html,body{height:100%; margin:0; padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 82% 18%, rgba(242,140,56,.14), transparent 55%),
    radial-gradient(900px 520px at 18% 90%, rgba(31,42,55,.06), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg));
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
p{line-height:1.7; color:var(--muted); margin:0}
h1,h2,h3{letter-spacing:-.02em; margin:0 0 .6rem 0; color:var(--ink)}
h1{font-size:clamp(2rem,3.5vw,3.1rem); line-height:1.05}
h2{font-size:clamp(1.4rem,2.2vw,2rem)}
h3{font-size:1.1rem; color:var(--ink2)}

.container{width:min(var(--max), calc(100% - 2rem)); margin:0 auto}
.spacer{height:clamp(16px, 2.6vw, 30px)}

/* Background layers (do not take layout space) */
.bg{
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
}
.bg canvas{width:100%; height:100%; display:block}

/* Optional very subtle noise for texture */
.noise{
  position:fixed;
  inset:-20%;
  z-index:-1;
  opacity:.035;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  transform:rotate(2deg);
  mix-blend-mode:multiply;
}

/* Header */
header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:50;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(217,224,231,.85);
}
.nav{
  height:var(--navh);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  font-weight:850;
}
.brand span{color:var(--ink)}
.brand small{
  display:block;
  font-weight:650;
  color:rgba(91,103,117,.95);
  margin-top:2px;
}
.logo{
  width:44px;
  height:44px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(217,224,231,.9);
  box-shadow: 0 10px 28px rgba(31,42,55,.10);
  overflow:hidden;
  display:grid;
  place-items:center;
}
.logo img{width:100%; height:100%; object-fit:cover}

.menu{
  display:flex;
  align-items:center;
  gap:.35rem;
  flex-wrap:wrap;
}
.menu a{
  padding:.55rem .9rem;
  border-radius:999px;
  color:rgba(31,42,55,.78);
  border:1px solid transparent;
}
.menu a:hover{
  background:rgba(238,242,246,.9);
  border-color:rgba(217,224,231,.9);
}
.menu a[aria-current="page"]{
  background:rgba(238,242,246,.95);
  border-color:rgba(217,224,231,.95);
  color:rgba(31,42,55,.92);
  font-weight:750;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.74rem 1.1rem;
  border-radius:999px;
  border:1px solid rgba(217,224,231,.95);
  background:#fff;
  box-shadow: 0 12px 26px rgba(31,42,55,.10);
  color:rgba(31,42,55,.92);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  font-weight:800;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(31,42,55,.12);
  background:#fff;
  border-color:rgba(207,216,226,1);
}
.btn.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: rgba(242,140,56,.55);
  color:#1b2430;
}
.btn.primary:hover{
  border-color: rgba(242,140,56,.75);
}

/* Layout */
main{
  padding: calc(var(--headerH, var(--navh)) + 1.4rem) 0 4rem;
}

.hero{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(16px, 2.8vw, 28px);
  align-items:start;
}
@media (max-width: 960px){
  .hero{grid-template-columns:1fr;}
}

/* Cards */
.card{
  background: rgba(255,255,255,.92);
  border:1px solid rgba(217,224,231,.95);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.6vw, 26px);
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(420px 220px at 92% 8%, rgba(242,140,56,.20), transparent 60%),
    radial-gradient(460px 240px at 10% 0%, rgba(31,42,55,.08), transparent 62%);
  opacity:.55;
  pointer-events:none;
}
.card > *{position:relative}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .65rem;
  border-radius:999px;
  border:1px solid rgba(217,224,231,.95);
  background: rgba(238,242,246,.85);
  color: rgba(31,42,55,.88);
  font-weight:800;
  letter-spacing:.01em;
}
.kicker .dot{
  width:9px; height:9px; border-radius:99px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(242,140,56,.14);
}

.lead{font-size:1.05rem; max-width:70ch}
.stack{display:flex; flex-direction:column; gap:.9rem}
.actions{display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1rem}

/* Sections */
hr.sep{
  border:0;
  border-top:1px solid rgba(217,224,231,.95);
  margin: clamp(18px, 3vw, 34px) 0;
}
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(12px, 2vw, 18px);
}
@media (max-width: 980px){ .grid{grid-template-columns:1fr} }

.feature{
  background:#fff;
  border:1px solid rgba(217,224,231,.95);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 12px 26px rgba(31,42,55,.08);
}
.feature p{margin-top:.5rem}

/* Aside blocks */
.aside{display:flex; flex-direction:column; gap:12px}
.info{
  background:#fff;
  border:1px solid rgba(217,224,231,.95);
  border-radius: var(--radius2);
  padding:18px;
  box-shadow: 0 12px 26px rgba(31,42,55,.08);
}
.info h3{margin:0 0 8px}
.info ul{margin:0; padding-left:18px; color:rgba(91,103,117,.95); line-height:1.7}

/* Footer */
footer{
  border-top:1px solid rgba(217,224,231,.95);
  padding:22px 0 30px;
  background: rgba(255,255,255,.88);
}
.foot{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.foot small{color:rgba(91,103,117,.95)}


/* Force white background behind header logo */
.brand .logo {
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(217,224,231,.95);
  display: inline-flex;
  align-items: center;
}
.brand .logo img {
  background: transparent !important;
}


/* FINAL FIX: remove any background behind header logo */
.brand .logo,
.brand .logo img {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


/* ABSOLUTE FINAL: header logo must be transparent, no containers */
.brand,
.brand .logo,
.brand img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* ---- Mobile navigation: prevent horizontal scrolling ---- */
@media (max-width: 760px){
  header{backdrop-filter: blur(10px);}
  .nav{
    height:auto;
    padding:10px 0;
    flex-wrap:wrap;
    row-gap:10px;
  }
  .brand{
    flex: 1 1 auto;
    min-width: 220px;
  }
  .menu{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:flex-start;
  }
  .menu a{
    padding:.45rem .7rem;
    font-size:.95rem;
  }
  .btn.primary{
    padding:.6rem .95rem;
    font-size:.95rem;
    box-shadow:none;
  }
}

/* Hard guard against accidental overflow */
img, svg, video, canvas { max-width:100%; height:auto; }


/* ---- Mobile header height compensation + sidebar image scaling ---- */
@media (max-width: 760px){
  /* header becomes taller when menu wraps; give main extra room */
  main{
    }

  /* keep any sidebar images from causing horizontal scroll */
  .aside .info img{
    display:block;
    max-width:100% !important;
    height:auto;
    margin-left:auto;
    margin-right:auto;
  }

  /* specifically tame the sidebar logo on index */
  .aside .info img.sidebar-logo{
    width: min(220px, 78vw) !important;
  }

  /* and the bus image */
  .aside .info img.sidebar-bus{
    width: min(320px, 92vw) !important;
  }
}


/* Ensure in-page links aren't hidden behind fixed header */
[id]{ scroll-margin-top: calc(var(--headerH, var(--navh)) + 16px); }


/* ---- Mobile FINAL layout: use sticky header to avoid hidden content ---- */
@media (max-width: 760px){
  header{
    position: sticky;
    top: 0;
  }
  main{
    padding-top: 1.2rem !important;
  }
  .nav{
    position: relative;
  }
}


/* ---- MOBILE HARD FIX: stop header overlapping the page ---- */
@media (max-width: 900px){
  header{
    position: sticky !important;
    top: 0 !important;
  }
  main{
    padding-top: 1.2rem !important; /* header is in normal flow now */
  }
}


/* ---- Mobile hamburger menu ---- */
.burger{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(217,224,231,.95);
  background:#fff;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
}
.burger span{
  display:block;
  width:18px;
  height:2px;
  background:rgba(12,18,28,.85);
  border-radius:2px;
}
.menu-cta{
  display:none;
  font-weight:600;
}

@media (max-width: 900px){
  header{
    position: sticky !important;
    top: 0 !important;
  }

  .nav{
    flex-wrap:nowrap;
    align-items:center;
    gap:12px;
  }

  /* keep brand from forcing width */
  .brand{
    min-width:0;
    flex:1 1 auto;
  }

  /* show burger, hide desktop contact button */
  .burger{ display:inline-flex; }
  .btn.primary{ display:none; }

  /* turn menu into dropdown */
  .menu{
    display:none;
    position:absolute;
    left:16px;
    right:16px;
    top:calc(100% + 10px);
    background:rgba(255,255,255,.98);
    border:1px solid rgba(217,224,231,.95);
    border-radius:16px;
    padding:10px;
    box-shadow:0 20px 60px rgba(14,22,34,.12);
    flex-direction:column;
    gap:6px;
    z-index:50;
  }
  .menu a{
    width:100%;
    padding:.8rem .9rem;
    border-radius:12px;
  }
  .menu-cta{ display:block; }

  header.menu-open .menu{
    display:flex;
  }

  /* Prevent any horizontal scrolling on mobile */
  html, body { overflow-x:hidden; }
}

/* Burger animation (optional but nice) */
header.menu-open .burger span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
header.menu-open .burger span:nth-child(2){ opacity:0; }
header.menu-open .burger span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }
.burger span{ transition: transform .18s ease, opacity .18s ease; }



/* ==== MOBILE MENU OVERRIDES (strong) ==== */
@media (max-width: 900px){
  header{ position: sticky !important; top:0 !important; z-index:999 !important; }
  .nav{ position: relative !important; }

  /* show burger, hide desktop CTA */
  .burger{ display:inline-flex !important; margin-left:auto !important; }
  header .btn.primary{ display:none !important; }

  /* hide inline menu until opened */
  header .menu{ display:none !important; }

  header.menu-open .menu{
    display:flex !important;
    position:absolute !important;
    left:16px !important;
    right:16px !important;
    top:calc(100% + 10px) !important;
    flex-direction:column !important;
    background:rgba(255,255,255,.98) !important;
    border:1px solid rgba(217,224,231,.95) !important;
    border-radius:16px !important;
    padding:10px !important;
    gap:6px !important;
    box-shadow:0 20px 60px rgba(14,22,34,.12) !important;
  }

  header.menu-open .menu a{
    width:100% !important;
  }

  /* prevent horizontal scroll */
  html, body{ overflow-x:hidden !important; }
}


/* ===== v46 FINAL MOBILE MENU + NO OVERLAP ===== */
@media (max-width: 900px){
  header{ position: sticky !important; top:0 !important; z-index:9999 !important; }
  .nav{ position: relative !important; }

  .burger{ display:inline-flex !important; margin-left:auto !important; }
  header .btn.primary{ display:none !important; }

  header .menu{ display:none !important; }

  header.menu-open .menu{
    display:flex !important;
    position:absolute !important;
    left:16px !important;
    right:16px !important;
    top:calc(100% + 10px) !important;
    flex-direction:column !important;
    background:rgba(255,255,255,.98) !important;
    border:1px solid rgba(217,224,231,.95) !important;
    border-radius:16px !important;
    padding:10px !important;
    gap:6px !important;
    box-shadow:0 20px 60px rgba(14,22,34,.12) !important;
  }

  header.menu-open .menu a{ width:100% !important; }

  /* prevent horizontal scroll */
  html, body{ overflow-x:hidden !important; }
}

.side-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

/* Rechterkolom – bus afbeelding volledig vullend */
.bus-card {
  padding: 0;
  overflow: hidden;
}

.bus-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;      /* KEY: vult zonder vervormen */
  border-radius: 12px;
}

/* Bus afbeelding – desktop + mobiel correct afgerond */
.bus-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px; /* iets ruimer voor mobiel */
}

/* Afbeelding zelf */
.bus-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}


.image-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.image-card-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Afbeelding-venster rechterkolom (bus / zonnepanelen) */
.image-card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

.image-card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

/* Image cards overal volledig vullend (desktop + mobiel) */
.image-card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

/* Image cards – definitieve mobile fix */
@media (max-width: 768px) {
  .image-card {
    padding: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;

    /* cruciaal */
    aspect-ratio: 4 / 3;
  }

  .image-card img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: cover !important;
    border-radius: 18px !important;
  }
}


/* Regio blok homepage */
.regio-links {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.regio-links li a {
  background: #f2f2f2;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
}

.regio-links li a:hover {
  background: #e4e4e4;
}



/* Werkgebied (regio) blok – compact en consistent */
.regio-block{
  margin-top: 22px;
}
.regio-block p{
  margin: 8px 0 12px;
}
.regio-block .regio-links li a{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(217,224,231,.95);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: .95rem;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.regio-block .regio-links li a:hover{
  background: rgba(242,140,56,.12);
  border-color: rgba(242,140,56,.35);
}

/* Werkgebied blok – centreren onderin */
.regio-block {
  max-width: 900px;
  margin: 40px auto 0 auto; /* horizontaal gecentreerd */
  text-align: center;
}

.regio-block p {
  text-align: center;
}

/* Regio links netjes gecentreerd */
.regio-links {
  justify-content: center;
}

.regio-block {
  padding: 24px 28px;
}






/* ===== Contact Widget (cw) – Oranje lichte layout + footer safe ===== */
:root{
  --cw-accent: #ff8c1a;
  --cw-accent-2: #ffb366;
  --cw-bg: #ffffff;
  --cw-card: #fff7ef;
  --cw-border: rgba(255,140,26,.25);
  --cw-text: #111;
  --cw-muted: rgba(0,0,0,.6);
  --cw-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.cw{
  position: fixed;
  left: 18px;
  bottom: calc(18px + var(--cw-footer-offset, 0px));
  z-index: 999999;
}

/* iPhone safe-area: voeg safe-area toe BOVENOP de footer-offset */
@supports (padding: max(0px)) {
  .cw{
    left: max(18px, env(safe-area-inset-left));
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--cw-footer-offset, 0px));
  }
}

.cw-fab{
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle at top, var(--cw-accent-2), var(--cw-accent));
  box-shadow: 0 10px 25px rgba(255,140,26,.35);
  display: grid;
  place-items: center;
}

.cw-fab-icon path{ stroke: #1b1b1b; }

.cw-popup{
  position: absolute;
  left: 0;
  bottom: 72px;
  width: min(320px, 92vw);
  background: var(--cw-bg);
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--cw-border);
  box-shadow: var(--cw-shadow);
  display: none;
  max-height: min(70vh, 420px);
  overflow: auto;
}

.cw-popup.is-open{ display: block; }

.cw-head{ padding: 4px 4px 10px 4px; }
.cw-title{
  font-weight: 800;
  color: var(--cw-text);
  letter-spacing: .2px;
}
.cw-sub{
  margin-top: 4px;
  font-size: 13px;
  color: var(--cw-muted);
}

.cw-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--cw-card);
  border: 1px solid var(--cw-border);
  text-decoration: none;
  color: var(--cw-text);
  margin-bottom: 10px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.cw-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  background: #fff2e5;
}

.cw-ico{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}

.cw-txt{ line-height: 1.15; }
.cw-main{ font-weight: 800; }
.cw-small{ font-size: 12px; color: var(--cw-muted); margin-top: 4px; }
.cw-arrow{ margin-left: auto; color: rgba(0,0,0,.45); font-weight: 700; }

.cw-close{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--cw-border);
  background: #fff;
  color: #a44a00;
  cursor: pointer;
}

.cw-close:hover{
  background: var(--cw-accent);
  color: #111;
}

@media (max-width: 360px){
  .cw{ left: 12px; }
  .cw-fab{ width: 52px; height: 52px; }
}




/* ===== CTA blok – Koeling ===== */
.cta-block{
  margin: 60px auto 0;
  padding: 48px 24px;
  background:
    radial-gradient(420px 220px at 90% 10%, rgba(242,140,56,.18), transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border-top: 1px solid rgba(217,224,231,.95);
}

.cta-inner{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2{
  margin-bottom: 10px;
}

.cta-inner p{
  max-width: 620px;
  margin: 0 auto 22px;
  font-size: 1.05rem;
}

.cta-actions{
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}


/* Zonnepanelen calculator: 1 koloms layout */
.page-calculator .hero {
  display: block;
}

.page-calculator .aside {
  display: none;
}

.page-calculator .card {
  max-width: 820px;
  margin: 0 auto;
}

.page-calculator .card {
  max-width: 960px;
}

/* Minder “propperig” in Mijn echte opbrengst */
.real-toggle{
  display:flex;
  align-items:flex-start;     /* checkbox bovenaan uitlijnen */
  gap:12px;
  margin:6px 0 2px;           /* wat ademruimte onder de titel */
  font-weight:700;
  line-height:1.25;           /* rustiger bij afbreken */
}

.real-toggle input[type="checkbox"]{
  margin-top:3px;             /* checkbox netjes t.o.v. de tekst */
  transform:scale(1.1);
}

.real-toggle span{
  display:block;              /* voorkomt rare inline-wrap */
}

/* --- Mijn echte opbrengst: rust & lucht --- */

.info h3{
  margin-bottom:12px;           /* meer ademruimte onder titel */
}

.real-toggle{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:2px 0 12px;            /* ruimte onder checkboxblok */
  font-weight:600;              /* iets minder schreeuwerig */
  line-height:1.35;
}

.real-toggle input[type="checkbox"]{
  margin-top:3px;
  transform:scale(1.05);        /* iets subtieler */
}

.real-toggle span{
  max-width:420px;              /* voorkomt te brede tekst */
  opacity:.95;
}

/* Input iets losser van checkbox */
#realWrap{
  margin-top:14px;
}

/* De kWh/kWp-zin iets rustiger */
#realHint{
  margin-top:10px;
  font-size:.95rem;
  opacity:.85;
}

/* Prestatie-indicatie blok iets los trekken */
#realExplain{
  margin-top:14px;
}

/* Calculator: links breder, rechts smaller */
.page-calculator .calc-grid{
  grid-template-columns: 1.35fr 0.65fr;
}

/* iets later omschakelen naar 1 kolom */
@media (max-width: 980px){
  .page-calculator .calc-grid{
    grid-template-columns: 1fr;
  }
}

.page-calculator .calc-results{
  max-width: 380px;
  justify-self: end;
}
@media (max-width: 980px){
  .page-calculator .calc-results{
    max-width: none;
    justify-self: stretch;
  }
}

/* Calculator: rechter kolom echt smaller maken */
.page-calculator .calc-grid{
  grid-template-columns: 1fr auto;   /* links flexibel, rechts inhoud */
  align-items: start;
}

.page-calculator .calc-results{
  width: 420px;        /* 👈 HIER regel je de breedte */
  max-width: 100%;
}

/* Calculator: rechter kolom exact binnen grid houden */
.page-calculator .calc-grid{
  grid-template-columns: 1fr minmax(0, 420px);
}

/* Zorg dat cards nooit buiten hun kolom steken */
.page-calculator .calc-results{
  max-width: 420px;
  width: 100%;
  overflow: hidden;
}

/* Extra veiligheid: cards respecteren container */
.page-calculator .calc-results .info{
  max-width: 100%;
  box-sizing: border-box;
}

/* Calculator: rechter kolom strak binnen houden */
.page-calculator .calc-results{
  max-width: 420px;
  width: 100%;
  overflow: clip;          /* moderne, betere versie van hidden */
}

/* Zorg dat schaduwen niet buiten de kolom vallen */
.page-calculator .calc-results .info{
  overflow: hidden;
}

@media (max-width: 980px){
  .page-calculator .calc-results{
    max-width: 100%;
    overflow: visible;
  }
}

/* Rechter kolom: KPI's mogen niet afkappen */
.page-calculator .calc-results .calc-kpis{
  grid-template-columns: repeat(2, minmax(0, 1fr));  /* i.p.v. 3 naast elkaar */
}

.page-calculator .calc-results .calc-kpis .kpi{
  min-width: 0;                 /* essentieel: anders kan text overflowen */
}

.page-calculator .calc-results .calc-kpis .kpi-value{
  white-space: normal;          /* mag afbreken */
  overflow-wrap: anywhere;      /* voorkom afkappen van lange waarden */
}

/* Specifiek: bedrag "Besparing na 10 jaar" iets rustiger */
.page-calculator #profit10{
  font-size: 1.25rem;           /* was 1.4rem; net wat compacter */
}

/* Nog smaller scherm: 1 kolom KPI's */
@media (max-width: 520px){
  .page-calculator .calc-results .calc-kpis{
    grid-template-columns: 1fr;
  }
}

.footer-note{
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  opacity: .85;
}
.footer-note a{
  text-decoration: underline;
}

.regio-block {
  margin-bottom: 20px;
}

footer {
  margin-top: 20px;
}

@media (max-width: 900px){
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px){
  .grid { grid-template-columns: 1fr !important; }
}

.regio-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;          /* ruimte tussen de "pill" buttons */
  row-gap: 22px;      /* extra zekerheid onder elkaar */
  margin-top: 12px;
}

/* 404 achtergrond */
.page-404 {
  min-height: 100vh;
  background-image: url("/assets/ace-404.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* subtiele overlay voor leesbaarheid */
.page-404::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.45),
    rgba(0,0,0,.25)
  );
  z-index: 0;
}

/* zorg dat content boven de achtergrond ligt */
.page-404 main {
  position: relative;
  z-index: 1;
}

.page-404 {
  min-height: 100vh;
  background-image: url("/assets/ace-404.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* 👈 DIT is de sleutel */
}
