/* Webdrift: kleine correcties bovenop de Webflow-stijl */

/* Extra H1's zijn H2 geworden voor SEO, maar houden de H1-basisstijl */
h2:where(.wd-h1) {
  font-size: 38px;
  line-height: 44px;
}

/* Taalkeuze in het mobiele menu: leesbaar op de donkere achtergrond */
.list-mobile-locale {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}
.list-mobile-locale .w-locales-item a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: #fff;
  opacity: 0.55;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}
.list-mobile-locale .w-locales-item a:hover,
.list-mobile-locale .w-locales-item a:focus-visible {
  opacity: 1;
}
.list-mobile-locale .w-locales-item a.w--current {
  opacity: 1;
  color: var(--megacharge-red, #ff363f);
}

/* ---------- Tablet (768–991px) ---------- */
@media screen and (min-width: 768px) and (max-width: 991px) {
  /* stappen: 2 kolommen in plaats van 3 afgesneden kolommen */
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .steps-grid > * {
    min-width: 0;
  }
  /* "Wat je krijgt": 2 per rij zodat de tekst niet afgekapt wordt */
  .steps-boxes.mobile {
    flex-wrap: wrap;
  }
  .steps-boxes.mobile .step-box {
    flex: 1 1 calc(50% - 0.75rem) !important;
    max-width: calc(50% - 0.75rem);
    min-width: 0 !important;
    height: auto !important;
  }
  /* Charge / Depot / Sync-kaarten: onder elkaar, volle breedte */
  .links-service-page-outer {
    width: 100%;
  }
  .links-service-page-wrap {
    flex-direction: column;
    width: 100%;
  }
  .links-service-page-wrap .single-link-block-nav {
    width: 100%;
    max-width: none;
  }
  /* footer: logo, diensten en links/adres op aparte rijen */
  .footer-middle {
    flex-wrap: wrap;
    row-gap: 2.5rem;
    column-gap: 3rem;
  }
  .footer-middle .link-block-services {
    flex: 1 1 100%;
    order: 2;
  }
  .footer-middle .footer-links-outer-wrap {
    order: 3;
  }
  .footer-middle .footer-text-wrap {
    order: 4;
    min-width: 12rem;
  }
  .footer-end {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .footer-end .policy-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    width: 100%;
  }
}

/* ---------- Mobiel (≤767px) ---------- */
@media screen and (max-width: 767px) {
  /* contactformulier liep rechts buiten het scherm */
  .hero-right,
  .form-outer-wrap,
  .form-wrap {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-wrap.contact {
    padding-bottom: 3rem !important;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .form-grid > *,
  .form-grid .w-input {
    min-width: 0;
    width: 100%;
  }
  /* footer onderaan: alles netjes gecentreerd, zoals de rest van de footer */
  .footer-end {
    align-items: center;
    text-align: center;
  }
  .footer-end .policy-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.25rem;
  }
}

/* grotere tikvlakken voor kleine links */
@media screen and (max-width: 991px) {
  .policy-link,
  .footer-link {
    display: inline-block;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* smalle telefoons: formuliervelden onder elkaar */
@media screen and (max-width: 479px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .form-grid > * {
    grid-column: 1 / -1 !important;
  }
}

/* mobiel menu: grotere tikvlakken */
@media screen and (max-width: 991px) {
  .nav_link.hamburger {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
  }
}
