/* Technische aanvullingen op het Webflow-stijlblad. Doel: zelfde weergave als live met andere markup. */

/* <picture> mag de opmaak niet beinvloeden: de <img> gedraagt zich als in het origineel */
picture { display: contents; }
/* width/height-attributen op beelden niet als vaste maat gebruiken */
.card_image, .brand-image { height: auto; }
.footer_copyright-image { width: auto; }

/* "#"-links zijn knoppen geworden. :where() = geen voorrang boven de Webflow-classes */
:where(.zv-btn) { background-color: transparent; padding: 0; line-height: inherit; font: inherit; color: inherit; cursor: pointer; text-align: inherit; border: 0; }
.zv-btn { -webkit-appearance: none; appearance: none; }
.contact_modal-heading > .zv-btn { display: flex; }
button.service_perk { width: 100%; border-width: 0; font: inherit; }
@media screen and (max-width: 991px) {
  button.navbar_link { width: 100%; }
}

/* <dialog> als contactpaneel: standaardopmaak van de browser uitzetten */
:where(dialog.contact_modal) { margin: 0; padding: 0; border: 0; max-width: none; max-height: none; color: inherit; }
dialog.contact_modal { overflow: auto; text-align: left; }
dialog.contact_modal[open] { display: flex; }
dialog.contact_modal::backdrop { background: transparent; }

/* Liggende telefoon (laag scherm): contactpaneel en open menu zijn hoger dan het scherm, dus scrollbaar maken. */
@media screen and (orientation: landscape) and (max-height: 600px) {
  /* Bovenaan uitlijnen zodat niets boven beeld valt; past het paneel wel, dan blijft het gecentreerd. */
  dialog.contact_modal { align-items: flex-start; overscroll-behavior: contain; }
  .contact_modal-wrapper { height: auto; min-height: 100%; }
}
@media screen and (max-width: 991px) and (orientation: landscape) and (max-height: 600px) {
  /* 76px = hoogte van de vaste balk (.navbar-spacer). vh als terugval voor oude browsers. */
  .w-nav .nav_menu[data-nav-menu-open] { box-sizing: border-box; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
}
