/* =========================================
   BASISSTIJLEN
========================================= */

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #2e4d32;
}

h1, h2, h3, h4 {
  color: #2e4d32;
}

a {
  color: #2e4d32;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================
   HEADER + LOGO + NAVIGATIE
========================================= */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
 padding: 0.8rem 1.2rem;
  background: #2e4d32;
  color: #fafafa;
}

/* Logo links */
.logo-link {
  display: flex;
  align-items: center;
}


.logo-round {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

/* Navigatie */
.main-nav ul.nav-root {
  display: flex;
  gap: 2em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover {
  background: #3a5f42;
}

/* Dropdown */
.main-nav li.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: #2e4d32;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  padding: 0.6em 1em;
  color: #fff;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background-color: #375a3f;
}

/* Dropdown tonen bij hover */
.main-nav li.dropdown:hover > .dropdown-menu {
  display: block;
}

/* Responsive navigatie */
@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    margin-top: 0.5rem;
  }

  .main-nav ul.nav-root {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
/* =========================================
   CONTENT & LAYOUT
========================================= */

/* Algemene container voor pagina-secties */
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
  width: 100%;
}

/* Blokken die 100% breed moeten zijn */
.blok {
  width: 100%;
}

/* Fade-in animatie */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   TEKSTVAKKEN
========================================= */

.tekstvak {
  margin: 2em 0;
  width: 100%;
  max-width: none;
  background-color: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Algemene tekstblokken */
.tekst {
  flex: 1 1 60%;
  background-color: white;
  padding: 1em;
  border: 1px solid #ffffff;
}

/* =========================================
   CONTENTBLOK (groene stijl)
========================================= */

.contentblok {
  max-width: 700px;
  margin: 40px 0;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #2e4d32;
  position: relative;
}

/* Accentbalk bovenaan */
.contentblok::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  width: 100%;
  background: linear-gradient(90deg, #2e4d32, #3c6b45, #5ca06a);
}

/* Koppen */
.contentblok h2 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #1c3323;
}

.contentblok h3 {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #3c6b45;
  border-left: 5px solid #5ca06a;
  padding-left: 10px;
}

/* Lijsten */
.contentblok ul {
  margin: 15px 0;
  padding-left: 25px;
}

.contentblok ul li {
  margin-bottom: 12px;
  font-size: 1.05em;
  padding: 8px 12px;
  background: #f5fdf7;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.contentblok ul li:hover {
  background: #d7f0d7;
  transform: translateX(6px);
}

/* Tipblok */
.contentblok .tipblok {
  margin-top: 25px;
  background: linear-gradient(135deg, #e0f0e0, #f5fff5);
  padding: 18px;
  border-left: 6px solid #2e4d32;
  border-radius: 10px;
  font-weight: bold;
  color: #1c3323;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* =========================================
   INTROBLOK
========================================= */

.introblok {
  max-width: 800px;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  color: #2e4d32;
}

/* Op de homepage verwijderen we de grijze achtergrond en schaduw rondom het introblok */
.home-page .introblok {
  background-color: transparent;
  box-shadow: none;
}

.introblok h1 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #1c3323;
}

.introblok p {
  font-size: 1.1em;
  line-height: 1.6;
}

.introblok ul {
  margin-top: 15px;
  padding-left: 20px;
}

.introblok ul li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.introblok .missie {
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.1em;
  background-color: #e0f0e0;
  padding: 10px;
  border-left: 4px solid #2e4d32;
  border-radius: 4px;
}

/* =========================================
   AFBEELDINGEN & MEDIA
========================================= */

/* Afbeelding naast tekst */
/* Plaatje boven tekst: steeds gecentreerd */
.blok-met-afbeelding {
  display: flex;
  flex-direction: column; /* plaatje boven tekst */
  align-items: center;    /* centreer horizontaal */
  gap: 1.5em;
  margin: 2em 0;
}

/* Tekst links */
.blok-met-afbeelding .tekstvak {
  flex: 1 1 60%;
  background-color: #ffffff;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Afbeelding rechts */
.blok-met-afbeelding .plaatje {
  flex: 1 1 40%;
  text-align: right;
}

.blok-met-afbeelding .plaatje img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Kleine afbeeldingen */
.klein,
.kleine-afbeelding {
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

/* Veiligheidsvoorbeelden */
.veiligheidsvoorbeeld {
  text-align: center;
  margin: 20px auto;
  max-width: 300px;
}

.veiligheidsvoorbeeld img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.ondertekst {
  margin-top: 10px;
  font-style: italic;
  color: #2e4d32;
}
/* =========================================
   CHECKLIST (veiligheid & tips)
========================================= */

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.checklist label {
  background: #f5fdf7;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.checklist label:hover {
  background: #d7f0d7;
}

/* =========================================
   QUIZ KNOPPEN
========================================= */

.quiz {
  margin: 5px;
  padding: 8px 12px;
  border: none;
  background-color: #2e4d32;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.quiz:hover {
  background-color: #3c6b45;
}

.quiz.correct {
  background-color: green !important;
}

.quiz.wrong {
  background-color: red !important;
}

/* =========================================
   TABELLEN (klimtabel + niveauTabel)
========================================= */

.klimtabel.cool,
.niveauTabel {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

.klimtabel.cool thead,
.niveauTabel thead {
  background: linear-gradient(90deg, #2e4d32, #3c6b45);
  color: #fff;
}

.klimtabel.cool th,
.klimtabel.cool td,
.niveauTabel th,
.niveauTabel td {
  padding: 12px 15px;
  text-align: left;
  font-size: 1em;
  color: #333;
}

.klimtabel.cool tbody tr:nth-child(even),
.niveauTabel tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.klimtabel.cool tbody tr:nth-child(odd),
.niveauTabel tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.klimtabel.cool tbody tr:hover,
.niveauTabel tbody tr:hover {
  background-color: #d7f0d7;
  transform: scale(1.01);
  transition: all 0.3s ease;
}

.klimtabel.cool th,
.niveauTabel th {
  font-size: 1.1em;
  letter-spacing: 0.5px;
}

/* =========================================
   VEILIGHEIDSPAGINA OVERRIDE
========================================= */

body.veiligheid-pagina {
  background-color: #ffffff !important;
  color: #333;
}
/* =========================================
   SHOP PAGINA
========================================= */

.shop-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  padding: 2em;
  max-width: 1200px;
  margin: auto;
}

.product {
  background-color: #ffffff;
  border: 2px solid #2e4d32;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1em;
}

.product img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.price {
  font-weight: bold;
  color: #3a5f42;
  margin-bottom: 1em;
}

.btn {
  background-color: #2e4d32;
  color: #ffffff;
  border: none;
  padding: 0.5em 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #3a5f42;
}

/* Winkelmandje */
#cart {
  background-color: #ffffff;
  border: 2px solid #2e4d32;
  border-radius: 12px;
  padding: 1em;
  margin: 2em auto;
  max-width: 600px;
}

#cart h2 {
  margin-top: 0;
}

#cart-items {
  list-style: none;
  padding: 0;
}

#cart-items li {
  margin: 0.5em 0;
}

.btn-remove {
  background-color: #b22222;
  color: #ffffff;
  border: none;
  padding: 0.3em 0.8em;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 1em;
}

.btn-remove:hover {
  background-color: #8b0000;
}

/* =========================================
   CONTACTFORMULIER
========================================= */

#contactForm {
  max-width: 500px;
  margin: auto;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#contactForm .btn {
  background-color: #2e4d32;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#contactForm .btn:hover {
  background-color: #3c6b45;
}

/* Social media knoppen */
.socials {
  text-align: center;
  margin-top: 20px;
}

.socials a {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 15px;
  text-decoration: none;
  color: #fff;
  background-color: #2e4d32;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.socials a:hover {
  background-color: #3c6b45;
  transform: scale(1.1);
}

.socials a:active {
  transform: scale(0.95);
}

/* =========================================
   FOOTER
========================================= */

footer {
  background-color: #2e4d32;
  color: #ffffff;
  text-align: center;
  padding: 1em;
  margin-top: 3em;
  font-size: 0.9em;
}
/* =========================================
   RESPONSIVE REGELS
========================================= */

/* Mobiel: afbeelding onder tekst */
@media (max-width: 768px) {
  .blok-met-afbeelding {
    flex-direction: column;
  }

  .blok-met-afbeelding .tekstvak,
  .blok-met-afbeelding .plaatje {
    flex: 1 1 100%;
    text-align: left;
  }

  .logo-round {
    width: 90px;
    height: 90px;
  }

  .main-nav ul.nav-root {
    gap: 1em;
    flex-wrap: wrap;
  }

  .contentblok {
    padding: 20px;
  }

  .introblok {
    padding: 15px;
  }

  .shop-container {
    grid-template-columns: 1fr;
  }
}

/* Extra klein scherm */
@media (max-width: 480px) {
  .main-nav a {
    padding: 0.5rem 0.7rem;
    font-size: 0.9em;
  }

  .contentblok h2 {
    font-size: 1.5em;
  }

  .contentblok h3 {
    font-size: 1.2em;
  }

  .introblok h1 {
    font-size: 1.6em;
  }
}

/* =========================================
   SCROLL-TO-TOP KNOP (optioneel)
========================================= */

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background-color: #2e4d32;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

#scrollTopBtn:hover {
  background-color: #3c6b45;
  transform: scale(1.1);
}

/* =========================================
   KLEINE FIXES & AFWERKING
========================================= */

/* Zorgt dat dropdown niet achter content valt */
.dropdown-menu {
  z-index: 1000;
}

/* Zorgt dat afbeeldingen nooit uitrekken */
img {
  max-width: 100%;
  height: auto;
}

/* Mooie spacing onder secties */
section {
  margin-bottom: 2em;
}
/* =========================================
   UNIVERSELE AFBEELDING-RECHTS LAYOUT
========================================= */

.tekstvak + .plaatje,
.blok-met-afbeelding .plaatje {
  order: 0; /* plaatje bovenaan */
  text-align: center;
}

.tekstvak,
.blok-met-afbeelding .tekstvak {
  /* tekst neemt de resterende ruimte */
  flex: 1 1 auto;
  /* forceer dat de tekstkolom niet 100% wordt (overruled globale .tekstvak width) */
  width: auto;
  min-width: 0; /* maakt krimpen binnen flexbox mogelijk */
}

/* Centreer tekst en afbeelding verticaal binnen de blok */
.blok-met-afbeelding {
  align-items: center;
}

/* Zorg dat de afbeelding binnen haar vaste kolom netjes schaalt */
.blok-met-afbeelding .plaatje img {
  width: auto;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Op kleine schermen: stapel onder elkaar (terug naar verticale layout) */
/* op kleine schermen blijft het ook gestapeld en full-width */
@media (max-width: 768px) {
  .blok-met-afbeelding {
    flex-direction: column;
    align-items: stretch;
  }
  .blok-met-afbeelding .plaatje {
    order: 0;
    margin: 0 auto 1em;
    width: 100%;
    text-align: center;
  }
  .blok-met-afbeelding .plaatje img {
    max-width: 100%;
    height: auto;
  }
  .blok-met-afbeelding .tekstvak {
    order: 1;
    text-align: left;
  }
}

/* Op grotere schermen: centreer de inhoud van de tekstkolom verticaal */
@media (min-width: 769px) {
  .blok-met-afbeelding .tekstvak {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.tekstvak,
.plaatje {
  display: block;
}

.tekstvak,
.plaatje {
  margin-bottom: 1em;
}

/* Deze regel veroorzaakte dat de .plaatje een flex-container werd en de layout brak.
   De layout wordt beheerd door .blok-met-afbeelding (display:flex). Houd sibling plaatje block. */
.tekstvak + .plaatje {
  display: block;
}

/* Universele container */
.tekstvak,
.plaatje {
  max-width: 100%;
}

/* Mobiel: onder elkaar */
@media (max-width: 768px) {
  .tekstvak,
  .plaatje {
    flex: 1 1 100%;
    text-align: left;
  }
}
/* Centreer alle afbeeldingen die in secties staan en beperk hun breedte zodat ze boven de tekst goed uitkomen */
section img {
  display: block;
  margin: 0 auto 1em;
  max-width: 220px;
  height: auto;
}
.klein,
.kleine-afbeelding,
.plaatje img,
.product img {
  display: block;
  margin: 0 auto 1em;
  max-width: 220px;
  height: auto;
}

/* Extra sterke override: centreer alle niet-logo afbeeldingen en forceer kolom-layout in blok-met-afbeelding */
.blok-met-afbeelding {
  flex-direction: column !important;
  align-items: center !important;
}

/* Centreer ALLE afbeeldingen behalve de logo (veilig tegen andere regels) */
img:not(.logo-round) {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1em !important;
  max-width: 220px !important;
  height: auto !important;
}

/* Zorg dat plaatje/tekstvakken binnen blok-met-afbeelding full-width nemen en niet floaten */
.blok-met-afbeelding > .plaatje,
.blok-met-afbeelding > .tekstvak {
  width: 100% !important;
  box-sizing: border-box;
}
.externe-knop {
  display: inline-block;
  background-color: #2e4d32;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.externe-knop:hover {
  background-color: #3c6b45;
  transform: scale(1.05);
}

.externe-knop:active {
  transform: scale(0.95);
}
/* =========================================
   GROTE FOOTER MET SOCIALS + CONTACT
========================================= */

.grote-footer {
  background-color: #2e4d32;
  color: #ffffff;
  padding: 3em 1.5em;
  margin-top: 3em;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
  justify-content: space-between;
}

.footer-col {
  flex: 1 1 250px;
}

.footer-col h3 {
  margin-bottom: 1em;
  font-size: 1.3em;
  border-bottom: 2px solid #5ca06a;
  padding-bottom: 0.3em;
}

/* Contactknop */
.footer-contact-btn {
  display: inline-block;
  background-color: #5ca06a;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.footer-contact-btn:hover {
  background-color: #3c6b45;
  transform: scale(1.05);
}

/* Social media links */
.footer-socials a {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 8px;
  padding: 8px 14px;
  background-color: #3c6b45;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background-color: #5ca06a;
  transform: scale(1.05);
}

/* Mobiel */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: left;
  }
}

/* Krachtige, laatste override: centreer ALLE plaatjes die binnen tekstvakken of plaatje-containers staan.
   Dit staat onderaan zodat het eerder gedefinieerde regels kan overschrijven. */
.tekstvak .plaatje,
.tekstvak .plaatje img,
.blok-met-afbeelding .plaatje,
.blok-met-afbeelding .plaatje img,
.veiligheidsvoorbeeld img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1em !important;
  max-width: 220px !important;
  height: auto !important;
  text-align: center !important;
}

/* Als je wilt dat afbeeldingen links uitgelijnd worden, vervang de bovenstaande selector door:
   .tekstvak .plaatje { float: left; margin-right: 1em; }
   of verander de HTML-structuur zodat de afbeelding vóór de tekst staat binnen een rij-layout. */
