/* BASIS */
body {
  font-family: 'Inter', sans-serif;
  background: white;
  margin: 0;
  padding: 0;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  margin-top: 48px;
}

/* SLIDESHOW */
.slideshow {
  position: absolute;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeZoom 12s infinite;
}

/* 4 slides → 3 seconden per slide */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 3s; }
.slide:nth-child(3) { animation-delay: 6s; }
.slide:nth-child(4) { animation-delay: 9s; }

/* KEYFRAMES perfect afgestemd op 3s timing */
@keyframes fadeZoom {
  0%   { opacity: 0; transform: scale(1); }
  8%   { opacity: 1; }
  25%  { opacity: 1; transform: scale(1.08); }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}

/* HERO TEKST */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  color: white;
  text-shadow: 0 0 20px rgba(0,0,0,0.4);
  max-width: 90%;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  margin: 0;
}

.hero-text p {
  font-size: 4rem;
  font-weight: 700;
  margin: 0;
}

/* INTRO */
.intro {
  background: white;
  padding: 0.9rem 2rem 2.5rem 2rem;
}

.intro .container {
  max-width: 900px;
  margin: 0 auto;
}

.intro .container > h2 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.4rem 0;
}

.intro .container > h2 .subline {
  display: block;
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 1rem 0;
}

.intro .container > p {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 300;
  margin: 0 0 1.2rem 0;
}

/* HEADER */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  z-index: 9999;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
}

/* HEADER-CONTAINER */
.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.3px;
  text-decoration: none;
}

/* MENU */
.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #222;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  display: inline-block;
}

.nav a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

body.home .nav a[href^="index.php"],
body.overons .nav a[href^="overons.php"],
body.photos .nav a[href^="photo.php"],
body.omgeving .nav a[href^="omgeving.php"],
body.contact .nav a[href^="contact.php"] {
  opacity: 1;
  font-weight: 600;
  transform: translateY(-2px);
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  margin-left: 1rem;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: #222;
}

/* MOBIEL + TABLET */
@media (max-width: 1100px) {

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255,255,255,0.95);
    padding: 1rem 2rem;
    border-radius: 0 0 0 10px;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav.open {
    display: block;
  }

  .hero-text h1 {
    font-size: 1.2rem;
  }

  .hero-text p {
    font-size: 1.8rem;
  }
}

/* DESKTOP */
@media (min-width: 1101px) {
  .hamburger {
    display: none;
  }
}


/* FOTO GALLERY */
.gallery {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.thumb {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background: #f2f2f2;
  transition: transform .15s ease;
}

.thumb:hover {
  transform: scale(1.03);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

/* ZOOM */
.zoom-container {
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.zoom-container:active {
  cursor: grabbing;
}

.zoom-img {
  transition: transform 0.1s ease-out;
  transform-origin: center center;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* SLUITKNOP */
.close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  z-index: 10000;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: background .2s ease;
}

.close-btn:hover {
  background: rgba(0,0,0,0.9);
}

/* MOBIEL + TABLET */
@media (max-width: 1100px) {
  .close-btn {
    top: 12px;
    right: 12px;
    padding: 18px 26px;
    font-size: 22px;
    border-radius: 12px;
  }
}

.page-offset {
  height: 40px;
}

body.photos {
  padding-top: 30px;
}

/* ZOOM HINT (grote foto) */
.zoom-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

/* BASIS voor thumbnails */
.thumb {
  position: relative;
}

.thumb::after {
  position: absolute;
  bottom: 6px;
  left: 6px;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(0,0,0,0.8);
}

/* Hover-animatie (desktop extra) */
.thumb:hover::after {
  animation: thumbHint 3s forwards;
}

/* --- ANIMATIES --- */
@keyframes thumbHint {
  0% { opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes mobileHint {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* MOBIEL + TABLET (automatische hint) */
@media (max-width: 1100px) {
  .thumb::after {
    content: "Tik om te vergroten";
    opacity: 1;
    animation: mobileHint 3s ease-out forwards;
  }
}

/* DESKTOP (automatische hint + hover) */
@media (min-width: 1101px) {
  .thumb::after {
    content: "Klik om te vergroten";
    opacity: 0;
    animation: thumbHint 3s forwards; /* <-- DEZE is cruciaal */
  }

  .thumb:hover::after {
    animation: thumbHint 3s forwards;
  }
}


/* CONTACT HERO — ALLEEN OP CONTACTPAGINA */
body.contact .contact-hero {
  width: 100%;
  height: 35vh;
  background-image: url('2.jpg');
  background-size: cover;
  background-position: center 50%;
  margin-top: 48px;
  border-bottom: 4px solid rgba(0,0,0,0.05);

  opacity: 0;
  animation: contactFade 1.4s ease-out forwards;
}

/* CONTACTFORMULIER */
.contactform {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contactform label {
  font-weight: 500;
  font-size: 1rem;
}

.contactform input,
.contactform textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fafafa;
  transition: border 0.2s ease;
  box-sizing: border-box;
}

.contactform input:focus,
.contactform textarea:focus {
  border-color: #999;
  outline: none;
}

.contactform button {
  width: 100%;
  padding: 0.9rem 1.4rem;
  background: #222;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  box-sizing: border-box;
}

.contactform button:hover {
  background: #000;
}

/* HONEYPOT */
.hp {
  display: none !important;
}

/* MOBIEL: kleinere contact-hero */
@media (max-width: 768px) {
  body.contact .contact-hero {
    height: 25vh;
    background-position: center 35%;
  }
}

body.contact .intro h2 {
  margin-top: 0.3rem;
}

/* --- GEZAMENDE ANIMATIE VOOR CONTACT + OVER ONS + OMGEVING --- */
@keyframes contactFade {
  0%   { opacity: 0; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

/* OVER ONS HERO */
body.overons .overons-hero {
  width: 100%;
  height: 35vh;
  background-image: url('1.jpg');
  background-size: cover;
  background-position: center 40%;
  margin-top: 48px;
  border-bottom: 4px solid rgba(0,0,0,0.05);
  opacity: 0;
  animation: contactFade 2.4s ease-out forwards;
}

body.overons .intro h2 {
  margin-top: 0.3rem;
}

/* OMGEVING HERO */
body.omgeving .omgeving-hero {
  width: 100%;
  height: 35vh;
  background-image: url('19.jpg');
  background-size: 180% auto;
  background-position: 20% 72%;
  margin-top: 48px;
  border-bottom: 4px solid rgba(0,0,0,0.05);
  opacity: 0;
  animation: contactFade 2.4s ease-out forwards;
}

body.omgeving .intro h2 {
  margin-top: 0.3rem;
}

/* OMGEVING BLOKKEN */
.omgeving-blokken {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.omgeving-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.4rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.omgeving-item h3 .icon {
  font-size: 0.95rem;
  font-weight: 400;
  color: #555;
}

.omgeving-item p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  color: #333;
}

/* MOBIEL + TABLET */
@media (max-width: 1100px) {
  .omgeving-item h3 {
    font-size: 1.2rem;
  }
  .omgeving-item h3 .icon {
    font-size: 0.9rem;
  }
}

/* ACCORDION */
.omgeving-accordion {
  max-width: 900px;
  margin: 0.2rem auto 2rem auto;
  padding: 0 2rem;
}

.acc-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 0;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  transition: color .2s ease;
}

.acc-item {
  border-top: 1px solid #eee;
  padding-top: 0.4rem;
}

.acc-header::after {
  content: "▸";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 1.2rem;
  color: #666;
  transition: transform .25s ease;
}

.acc-item.active .acc-header::after {
  transform: translateY(-50%) rotate(90deg);
}

.acc-header:hover {
  color: #000;
}

.acc-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition:
    max-height .35s ease,
    opacity .35s ease,
    transform .35s ease;
}

.acc-item.active .acc-content {
  max-height: 900px;
  opacity: 1;
  transform: translateY(0);
  margin-top: .8rem;
}



/* OMGEVING ITEMS */
.omgeving-item {
  margin-bottom: 1.4rem;
}

.omgeving-item h3 {
  font-size: 1.15rem;
  margin: 0 0 .25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.omgeving-item .icon {
  font-size: .95rem;
  color: #666;
}

.omgeving-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #333;
}

.thumb img[src*="7k.jpg"] {
  object-position: 80% center;
}

/* Alleen voor omgeving.php */
body.omgeving .intro {
  margin-bottom: 10px;
  padding-bottom: 0;
}

body.omgeving .omgeving-accordion {
  margin-top: 0;
}

/* Accordion fix */
.acc-content {
  overflow: hidden;
  max-height: 0;
  opacity: 1;
  transform: none;
  transition: max-height .35s ease;
  margin-top: .8rem;
}

.acc-item.active .acc-content {
  max-height: none;
  opacity: 1;
  transform: none;
}

.slide:nth-child(4) {
  background-position: center 80%;
}

.slide:nth-child(1) {
  background-position: center 30%;
}

.slide:nth-child(2) {
  background-position: center 30%;
}

.hero-hint {
  position: absolute;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  pointer-events: none;
  animation: hintFade 5s ease-in-out infinite;
}

@keyframes hintFade {
  0%   { opacity: 0; transform: translate(-50%, 4px); }
  40%  { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 4px); }
}

/* MOBIEL + TABLET */
@media (max-width: 1100px) {
  body.overons .overons-hero,
  body.omgeving .omgeving-hero {
    height: 25vh;
    background-position: center 35%;
  }
}

/* ---------------------------
   TAALSWITCH
---------------------------- */
.langswitch {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 11px;
  letter-spacing: 0.4px;
  z-index: 2000;
  opacity: 0.75;
}

.langswitch a {
  color: #666;
  margin-left: 6px;
  text-decoration: none;
  font-weight: 400;
  padding: 2px 3px;
  border-radius: 3px;
  transition: 0.2s ease;
}

.langswitch a:hover {
  color: #000;
  opacity: 1;
}

.langswitch a.active {
  color: #000;
  font-weight: 600;
  opacity: 1;
}

/* MOBIEL + TABLET */
@media (max-width: 1100px) {
  .langswitch {
    top: 6px;
    right: 10px;
    font-size: 10px;
  }
  .langswitch a {
    margin-left: 4px;
    padding: 1px 2px;
  }
}

/* DROPDOWN */
.langswitch {
  position: absolute;
  top: 10px;
  right: 50px;
  z-index: 3000;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  opacity: 0.8;
  padding: 4px 8px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 6px 0;
  min-width: 150px;
}

.lang-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.lang-menu a:hover {
  background: #f2f2f2;
}

.lang-menu.open {
  display: block;
}

/* MOBIEL + TABLET */
@media (max-width: 1100px) {
  .langswitch {
    top: 8px;
    right: 46px;
  }
  .lang-btn {
    font-size: 14px;
  }
}

/* taalbutton subtiel */
.lang-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.75;
  padding: 2px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-btn:hover {
  opacity: 1;
}

.lang-btn .langcode {
  font-size: 12px;
  opacity: 0.7;
  margin-left: 2px;
}

.lang-btn::after {
  font-size: 10px;
}

/* Verlaag inhoud taalbutton */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-top: 4px;
}

/* MOBIEL + TABLET */
@media (max-width: 1100px) {
  .langswitch {
    right: 70px;
  }
}

/* OMGEVING HERO extra */
@media (max-width: 1100px) {
  body.omgeving .omgeving-hero {
    background-position: 15% 75%;
  }
}

/* taalbutton mobiel/tablet */
@media (max-width: 1100px) {
  .lang-btn {
    padding-top: 7px !important;
  }
}



/* FORCEER MOBIELE NAVIGATIE OP TOUCH-APPARATEN (TABLETS + TELEFOONS) */
@media (pointer: coarse) {
  .nav {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255,255,255,0.95);
    padding: 1rem 2rem;
    border-radius: 0 0 0 10px;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hamburger {
    display: flex !important;
  }

  .nav.open {
    display: block !important;
  }
}


/* FIX: tablet-landscape moet mobiele layout + correcte taalbutton krijgen */
@media (min-width: 800px) and (max-width: 1280px) and (orientation: landscape) {

    /* mobiele navigatie forceren */
    .hamburger {
        display: flex !important;
    }

    .nav {
        display: none !important;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255,255,255,0.95);
        padding: 1rem 2rem;
        border-radius: 0 0 0 10px;
    }

    .nav.open {
        display: block !important;
    }

    .nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    /* taalbutton fix */
    .langswitch {
        top: 8px !important;
        right: 14px !important;
        z-index: 3000 !important;
    }
}


/* FIX: taalbolletje mag nooit boven de hamburger liggen */
@media (min-width: 800px) and (max-width: 1280px) and (orientation: landscape) {
    .langswitch {
        z-index: 1500 !important; /* lager dan hamburger */
        right: 14px !important;
        top: 8px !important;
    }
}


/* FIX: tablet-landscape taalbutton verder naar links */
@media (min-width: 800px) and (max-width: 1400px) and (orientation: landscape) {
    .langswitch {
        position: absolute !important;
        top: 8px !important;
        right: 120px !important; /* VERDER NAAR LINKS */
        z-index: 1500 !important;
    }
}

.zoom-icon {
    width: 22px;
    height: 22px;
    margin-right: 6px;
    filter: invert(1) brightness(2);
}
