.zen-maru-gothic-regular {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.zen-maru-gothic-medium {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Zen Maru Gothic';
  background: linear-gradient(to bottom right, #e0f7fa, #c8e6c9);
  color: black;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: white;
  color: black;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5px 0;
  flex-shrink: 0;
}

header img
 {
  width: 1000px;
  max-width: 90%;
  height: auto;
  margin-bottom: -10px;
 }

.menu-bar {
  background-color: black;
  height: auto;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 30px;
  border-bottom: 4px solid #2B783B;
}

.menu-bar a {
  color: white;
  text-decoration: none;
  margin-right: 25px;
  font-family: 'Zen Maru Gothic';
  font-weight: bold;
  font-size: 1.6em;
}

.menu-bar a:hover,
.menu-bar a.active {
  text-decoration: underline;
}

.menu-bar nav {
  display: flex;
  justify-content: flex-start;
  gap: 25px;
}

main {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  flex-grow: 1;
}

.intro {
  background-color: white;
  color: black;
  flex: 1 1 18%;
  padding: 30px;
  box-sizing: border-box;
}

.intro h2 {
  font-size: 1.6em;
  margin-bottom: 0px;
  text-align: center;

}
.intro h3 {
  font-size: 0.95em;
  margin-top: 2px;
  margin-bottom: 10px;
  text-align: center;
}

.intro img {
  width: 50%;
  max-width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.spreuk {
  background-color: white;
  color: black;
  flex: 1 1 18%;
  padding: 30px;
  box-sizing: border-box;
}

.spreuk h2 {
  font-size: 1.6em;
  margin-top: 250px;   
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
}

.spreuk img {
 width: 80%;
  max-width: 100px;    
  height: auto;
  display: block;      
  margin: 0 auto;      
}

.welkom {
  background-color: black;
  flex: 1 1 82%;
  padding: 30px;
  box-sizing: border-box;
  padding-right: 0;
}

.welkom h2 {
    color:white;
  font-size: 1.6em;
  margin-bottom: 15px;
}

.welkom p {
    color: white;
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.welkom a {
  color: white;       
  text-decoration: underline; 
  font-weight: bold;     
}

.welkom a:hover {
  color: #2B783B;       
  text-decoration: none; 
}

.welkom img {
    width: 25%;        
  max-width: 150px;     
  height: auto;
  float: right;        
  margin-left: 20px;   
  margin-right: 0;
  margin-top: -100px;    
  margin-bottom: 10px;
}

.introductie {
  background-color: black;
  flex: 1 1 82%; /* Dit houdt hem rechts van de witte spreuk (18%) */
  display: block;
  padding: 0;
  box-sizing: border-box;
}

.introductie h2 {
    color:white;
  font-size: 1.6em;
  margin-bottom: 15px;
}

.introductie p {
    color: white;
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.introductie img {
width: 100%;          
  height: 300px;        
  object-fit: cover;    
  display: block;      
  margin-bottom: 30px;  
  margin-top: 30px;
}

.overmij-container {
  display: flex !important;
  flex-direction: row; /* Dwingt ze NAAST elkaar op computer */
  align-items: flex-start;
  gap: 30px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.overmij-tekst {
  flex: 1; /* Tekst pakt de ruimte links */
  color: white;
  text-align: left;
}

.overmij-tekst h2{
  margin-top: 0;
  margin-left: 0;
  text-align: left;
  font-size: 1,6em;
  color: white;
}

.overmij-tekst p{
  line-height: 1.7;
  font-size: 1.2em;
}

.overmij-foto {
  width: 150px; /* Vaste breedte op computer */
  max-width: 200px;
  height: auto;
  flex-shrink: 0; /* Voorkomt dat de foto naar beneden geduwd wordt */
}


.aanbod {
  background-color: white;
  color: black;
  flex: 1 1 18%;
  padding: 30px;
  box-sizing: border-box;
}

.aanbod h2 {
  font-size: 1.6em;
  margin-bottom: 0px;
  text-align: center;

}

.aanbod h3 {
  font-size: 1.0em;
  margin-bottom: 0px;
  text-align: center;

}
.aanbod img {
  width: 50%;
  max-width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}


.portfolio {
  background-color: black;
  flex: 1 1 82%;
  padding: 30px;
  box-sizing: border-box;
  display:flex;
  flex-direction: column;
  align-items: center;
}

.portfolio h2 {
    color:white;
  font-size: 1.6em;
  margin-bottom: 15px;
  text-align: center;
}

.carousel-container {
  position: relative;
  max-width: 800px; 
  width: 90%;          /* Iets smaller dan het scherm voor de pijlen */
  height: 450px;       /* Vaste hoogte voor stabiliteit */
  margin: 0 auto;
  overflow: hidden;    /* Zorgt dat je maar 1 foto ziet */
  background-color: black;
}

.carousel-slide {
  display: flex;
  height: 100%;
  width: 100%;
  /* Geen justify-content: center hier! Dat propt ze op elkaar */
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  min-width: 100%;     /* Dwingt 1 foto per 'scherm' */
  height: 100%;
  object-fit: contain; /* Zorgt dat de foto niet vervormt */
  flex-shrink: 0;
}


.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid white;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 100;        /* Altijd bovenop */
  font-size: 20px;
  border-radius: 5px;
}
.prev { left: 5px; }
.next { right: 5px; }

.prev:hover, .next:hover {
  background: #2B783B; /* Jouw groene accentkleur bij hover */
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

#caption {
  text-align: center;
  color: white;
  padding: 10px;
}


.adresgegevens {
  background-color: white;
  color: black;
  flex: 1 1 18%;
  padding: 30px;
  box-sizing: border-box;
}

.adresgegevens h2 {
  font-size: 1.6em;
  margin-bottom: 10px;
  text-align: left;
}

.adresgegevens p {
    color: black;
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.map {
    width: 100%;      
    height: 300px;     
    border: 0;
    display: block;
    padding-top: 20px;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
textarea {
    width: 400px;
    max-width: 100%;
    display: block;
    margin-bottom: 10px;
}

textarea {
    height: 150px !important; /* Pas dit getal aan naar hoe hoog je het wilt hebben */
    min-height: 100px;        /* Zorgt dat het nooit té klein wordt */
    resize: vertical;         /* Hiermee kan de bezoeker het vak zelf groter slepen als ze dat willen */
}

button {
 display: block;
    margin: 15px 0;
    background-color: #2B783B;
    color: white;
    padding: 12px 24px;       
    font-size: 1.1em;         
    border: none;            
    border-radius: 5px;       
    cursor: pointer;     
    margin-top: 20px;    
}

button:hover {
    background-color: #3a964e; 
}

.contactformulier {
 background-color: black;
  flex: 1 1 82%;
  padding: 30px;
  box-sizing: border-box;
  padding-right: 0;
}

.contactformulier h2 {
    color:white;
  font-size: 1.6em;
  margin-bottom: 15px;
}

.contactformulier h3 {
  color:white;
  font-size: 1.2em;
  margin-top: 2px;
  margin-bottom: 10px;
  text-align: left;
}


.contactformulier label {
color: white;
  font-size: 0.95em;
  line-height: 1.5;
}

footer {
  background-color: black;
  color: white;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
    border-top: 4px solid #2B783B;
    flex-shrink: 0;
}

  .portfolio h2, .aanbod h3 {
    text-align: center !important;
    width: 100%;
  }


@media (max-width: 767px) {

  main {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  main > section {
    width: 100%;
  }

  header img {
    width: 120% !important; /* Maakt het logo breder dan de standaard container */
    max-width: none !important; /* Zorgt dat hij niet wordt tegengehouden door andere regels */
    margin-left: -10%; /* Dit centreert het logo weer omdat hij nu breder is dan 100% */
  }

  .intro,
  .welkom,
  .tarieven,
  .voorwaarden,
  .adresgegevens,
  .contactformulier {
    flex: 1 1 100%;
  }

  .intro img{
    width: 100%;
  }
  .welkom img {
    width: 60%;
    max-width: 250px;
    height: auto;
    margin: 20px auto;
    display: block;
  }

.menu-bar {
  padding-left: 0;
}
   .menu-bar nav{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  margin: 0;
   }

  .menu-bar a {
    margin-right: 0;
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .menu-bar .nav-link {
    margin: 8px 0;
    text-align: center;
    width: 100%;
    display: block;
   }

input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    width: 100% !important;
  }

 .welkom, .intro {
    text-align: left;           /* Lijn de tekst links uit */
    padding-left: 20px;         /* Ruimte aan de linkerkant */
    padding-right: 25px;        /* Iets meer ruimte rechts voor de scrollbalk */
    box-sizing: border-box;     /* Zorgt dat padding de sectie niet breder maakt dan het scherm */
  }

  /* Zorg dat de afbeeldingen binnen deze secties netjes blijven */
  .welkom img, .intro img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;      /* Duwt de afbeelding naar rechts */
    margin-right: -25px;
    display: block;
  }

.overmij-container {
  display: flex !important;
    flex-direction: column !important; 
    padding: 30px 20px !important;
    gap: 10px;
  }

  .overmij-tekst {
    text-align: left;
    width: 100%;
    order: 1; 
  }

  .overmij-foto {
    order: 2; 
    width: 100% !important; 
    max-width: 280px !important;
    margin: 10px 0 30px 0 !important;
    align-self: center !important;
  }

  .spreuk {
    padding-top: 10px !important;    
    padding-bottom: 10px !important; 
  }

  .spreuk h2 {
    margin-top: 20px !important;    
    font-size: 1.4em;               
  }
  
  
  .introductie {
    padding-right: 30px; 
  }

  .contactformulier {
    padding-left: 20px !important;  
    padding-right: 20px !important; 
    box-sizing: border-box;         
  }

  .portfolio {
    width: 100% !important;
    padding: 20px !important;
    display: block !important; /* Terug naar standaard voor mobiele stapeling */
  }

 .carousel-container {
    width: 100% !important; /* Gebruik de volle breedte van het zwarte vlak */
    height: 350px !important; /* Iets lager voor mobiel */
    margin: 0 auto !important;
    overflow: hidden !important;
    position: relative;
    display: block !important; /* Zorg dat het geen flex-container is die alles propt */
  }

  .carousel-slide {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
  }

  .carousel-slide img {
    min-width: 100% !important; /* Dwingt EXACT één foto per beeld */
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Zorgt dat de hele flyer zichtbaar blijft */
    flex-shrink: 0 !important;
  }

  .prev, .next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.6) !important; /* Iets donkerder voor leesbaarheid */
    padding: 10px 5px !important;
    z-index: 100 !important;
  }

  .prev { left: 0 !important; }
  .next { right: 0 !important; }

}

@media (max-width: 500px) {
  header h1 {
    font-size: 2em;
  }
  header h6 {
    font-size: 1em;
  }
}

@media screen and (min-width: 768px) and (max-width: 1150px) {

   /* 1. Lettertype onder logo fixen */
    header div { 
        font-family: "Zen Maru Gothic", sans-serif !important;
    }

    /* 2. Voetstappen midden op iPad */
    .welkom img {
        display: block !important;
        margin: 20px auto !important;
        max-width: 200px !important;
        position: static !important;
    }

    /* 3. Over mij witruimte fix */
    .overmij-container {
        margin-bottom: 10px !important;
        margin-top: 10px !important;
    }
    .overmij-foto {
    display: block !important;
    margin-left: auto !important;   /* Houdt de foto's strak tegen de rechterkant */
    margin-right: 0 !important;
    width: 150px !important;        /* Een mooie maat voor op de iPad Air */
}

.overmij-container:first-of-type .overmij-foto {
    margin-top: 50px !important;    /* Duwt de foto omlaag */
    margin-bottom: 0px !important;  /* Haalt de ruimte eronder weg */
    margin-left: auto !important;   /* Houdt hem rechts */
}

/* De onderste foto omhoog en minder ruimte erboven */
.overmij-container:last-of-type .overmij-foto {
    margin-top: 50px !important;   /* Trekt de foto omhoog richting de bovenste */
    margin-bottom: 20px !important;
    margin-left: auto !important;   /* Houdt hem rechts */
}

    /* 4. Contactvlakken NAAST elkaar (Alleen op iPad) */
    main {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 20px !important;
        padding: 20px !important;
    }

    .adresgegevens, .contactformulier {
        width: 50% !important;
    }

  input[type="text"], 
input[type="email"], 
input[type="tel"], 
textarea {
    width: 85% !important;         /* Iets korter dan de volle breedte */
    max-width: 380px !important;   /* Zorgt dat ze op een iPad Air 3 heel netjes ogen */
}
    
    .map {
        width: 100% !important;
        height: auto !important;
    }
}
