/* KMikt: aanvullingen voor de statische versie (vervangt plugin-CSS en Google Fonts) */

/* Questrial, lokaal (SIL Open Font License) */
@font-face {
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/questrial-latin-400-normal.woff2) format("woff2"),
       url(/assets/fonts/questrial-latin-400-normal.woff) format("woff");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/questrial-latin-ext-400-normal.woff2) format("woff2"),
       url(/assets/fonts/questrial-latin-ext-400-normal.woff) format("woff");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Toetsenbordfocus zichtbaar */
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Skiplink: buiten beeld, alleen zichtbaar bij toetsenbordfocus */
.ewf-skip {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 100000;
  padding: 10px 16px;
  background: #fff;
  color: #006400;
  font-size: 16px;
  text-decoration: underline;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transform: translateY(-200%);
}
.ewf-skip:focus,
.ewf-skip:focus-visible {
  transform: none;
  color: #006400;
}
/* Vanaf 992px staat de header vast (125-151px hoog). Na de skiplink
   moet de inhoud eronder blijven, niet erachter. */
@media (min-width: 992px) {
  #inhoud { scroll-margin-top: 160px; }
}

/* Koppen die van h2 naar h1 zijn gegaan: zelfde maat als de h2 van het thema.
   Koppen met een eigen maat (per Beaver Builder-module) houden die. */
h1.ewf-h1 { font-size: 30px; }

/* Desktop-submenu: zachte fade zoals voorheen */
.fl-page-nav ul li.fl-sub-menu-open > ul.sub-menu {
  animation: ewf-fade-in .2s ease-out;
}
.fl-page-nav ul li.fl-mobile-sub-menu-open > ul.sub-menu {
  animation: ewf-fade-in .2s ease-out;
}
@keyframes ewf-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Achtergrond-slideshow (vervangt YUI fl-slideshow) */
.fl-row-bg-slideshow .fl-row-content-wrap { position: relative; }
.ewf-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.ewf-slideshow .ewf-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform-origin: 50% 50%;
}
.ewf-slideshow .ewf-slide.is-active { opacity: 1; }
.ewf-slideshow .ewf-slide.is-active,
.ewf-slideshow .ewf-slide.is-leaving {
  animation: ewf-kenburns 10s linear forwards;
}
@keyframes ewf-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
.fl-row-bg-slideshow .fl-row-content { position: relative; z-index: 2; }

/* Testimonial-carrousel (vervangt Owl Carousel) */
.pp-testimonials .owl-carousel { display: block; }
.pp-testimonials .owl-carousel.ewf-fade { display: grid; }
.ewf-fade > .pp-testimonial {
  grid-area: 1 / 1;
  position: relative !important;
  top: auto !important;
  visibility: hidden !important;
  opacity: 0;
  transition: opacity 1s ease, visibility 0s linear 1s;
}
.ewf-fade > .pp-testimonial.is-active {
  visibility: visible !important;
  opacity: 1;
  transition: opacity 1s ease, visibility 0s;
}
.ewf-fade > .owl-dots { grid-area: 2 / 1; margin-top: 10px; }
.pp-testimonials .owl-dot { touch-action: manipulation; }

/* Postgrid zonder Isotope */
.pp-content-post-grid .pp-content-post { visibility: visible; }
.pp-content-post[hidden],
.pp-content-grid-load-more[hidden] { display: none !important; }
.pp-content-grid-load-more .pp-grid-loader-icon { display: none; }

/* Knop "Naar boven" (vervangt WPFront Scroll Top) */
.ewf-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  padding: 3px 10px;
  border: 0;
  border-radius: 3px;
  background: #008000;
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 4px 4px 5px 0 rgba(50, 50, 50, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s, background-color .2s ease;
}
.ewf-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease, visibility 0s, background-color .2s ease;
}
.ewf-to-top:hover,
.ewf-to-top:focus-visible { background: #444; color: #fff; }
/* Het thema geeft button:focus/active position:relative; top:1px. Niet voor deze knop. */
button.ewf-to-top,
button.ewf-to-top:focus,
button.ewf-to-top:active {
  position: fixed;
  top: auto;
  border: 0;
}
.ewf-lb button:focus,
.ewf-lb button:active { position: absolute; border: 0; background: transparent; }
.ewf-lb .ewf-lb-close:focus,
.ewf-lb .ewf-lb-close:active { top: 4px; }
.ewf-lb .ewf-lb-prev:focus,
.ewf-lb .ewf-lb-next:focus,
.ewf-lb .ewf-lb-prev:active,
.ewf-lb .ewf-lb-next:active { top: 50%; }

/* Lightbox (vervangt Magnific Popup) */
.ewf-lb {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.ewf-lb::backdrop { background: rgba(11, 11, 11, .8); }
.ewf-lb figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  box-sizing: border-box;
}
.ewf-lb img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  box-shadow: 0 0 8px rgba(0, 0, 0, .6);
}
.ewf-lb figcaption { color: #ccc; font-size: 12px; margin-top: 8px; }
.ewf-lb button {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: 400 48px/1 Arial, sans-serif;
  opacity: .75;
  padding: 10px 16px;
}
.ewf-lb button:hover,
.ewf-lb button:focus-visible { opacity: 1; }
.ewf-lb .ewf-lb-close { top: 4px; right: 4px; font-size: 40px; }
.ewf-lb .ewf-lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.ewf-lb .ewf-lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.ewf-lb button[hidden] { display: none; }

/* Contactknoppen (vervangen het contactformulier) */
.ewf-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 20px;
}
.ewf-contact-buttons a.ewf-btn,
.ewf-contact-buttons a.ewf-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid #008000;
  border-radius: 4px;
  background: #008000;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: all .3s ease;
}
.ewf-contact-buttons a.ewf-btn:hover,
.ewf-contact-buttons a.ewf-btn:focus-visible {
  background: #fff;
  color: #008000;
}

/* Off-canvas sluitknop toegankelijk */
.fl-offcanvas-close { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  .ewf-slideshow .ewf-slide.is-active,
  .ewf-slideshow .ewf-slide.is-leaving { animation: none; }
  .ewf-slideshow .ewf-slide,
  .ewf-fade > .pp-testimonial { transition-duration: .01s; }
  .fl-page-nav ul li.fl-sub-menu-open > ul.sub-menu { animation: none; }
}
