/* ==================
   Base Styles
================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.wrapper {
  background-color: #ffffff;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.full-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

main {
  padding: 20px;
  width: 100%;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==================
   Header
================== */
header {
  background-color: #f8f9fa;
  color: #006d77;
  padding: 20px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  margin: 0 0 10px 0;
}

header img {
  height: 60px;
  width: auto;
  max-width: 100%;
}

/* ==================
   Footer
================== */
footer {
  background-color: #006d77;
  color: white;
  text-align: center;
  padding: 15px;
}

/* ==================
   Navigation & Menu
================== */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #006d77;
  position: absolute;
  top: 25px;
  right: 25px;
}

nav#mainNav {
  width: 100%;
  border-top: 5px solid #006d77;
  padding-top: 10px;
}

.main-nav {
  border-bottom: 2px solid #006d77;
  margin-top: 10px;
  padding-bottom: 10px;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.main-nav.active ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  padding: 10px 0;
}

.main-nav li a {
  display: inline-block;
  padding: 10px 15px;
  background-color: #006d77;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.main-nav li a:hover {
  background-color: #0056b3;
}

/* Submenu */
.has-submenu {
  position: relative;
}

.has-submenu > a::after {
  content: " ▼";
  font-size: 12px;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 180px;
  width: 180px; /* <-- Zorgt dat submenu altijd dezelfde breedte heeft */
  border-radius: 5px;
  z-index: 1000;
}


.submenu li {
  width: 100%;
}

.submenu li a {
  display: block; /* <-- maakt van a een blok */
  width: 80%; /* <-- maakt a net zo breed als submenu */
  padding: 10px 15px;
  color: white;
  font-weight: bold;
  text-align: left;
  text-decoration: none;
}

.submenu li a:hover {
  background-color: #f1f1f1;
}

/* Desktop: submenu openen bij hover */
.has-submenu:hover > .submenu,
.has-submenu.active > .submenu {
  max-height: 500px;
  padding: 10px 0;
}



/* Mobiel: submenu openen bij klik */
.has-submenu.active > .submenu {
  max-height: 500px;
  padding: 10px 0;
  flex-direction: column;
}

/* ==================
   Layout Containers
================== */
.middelen-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.left, 
.right {
  flex: 1 1 300px;
}

/* ==================
   Thumbnails
================== */
.left img,
.right img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.gallery img {
  flex: 1 1 calc(33.333% - 20px);
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 2px solid #006d77;
  border-radius: 10px;
}

.left img:hover,
.right img:hover,
.gallery img:hover {
  transform: scale(1.05);
}

/* ==================
   Sections
================== */
.section-block {
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.section-block h2 {
  text-align: center;
  margin-bottom: 20px;
}

.content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.content img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.text {
  flex: 1;
  text-align: left;
}

/* ==================
   Buttons
================== */
.top-button, button {
  display: block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #006d77;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  width: fit-content;
  transition: background-color 0.3s ease;
}

.top-button:hover, button:hover {
  background-color: #0056b3;
}

/* ==================
   Numered List
================== */
.numbered-list {
  counter-reset: list-counter;
  list-style: none;
  padding-left: 0;
  text-align: left;
}

.numbered-list li {
  position: relative;
  padding-left: 50px;
  margin: 15px 0;
  text-align: left;
}

.numbered-list li::before {
  content: counter(list-counter);
  counter-increment: list-counter;
  position: absolute;
  left: 0;
  top: 0;
  background: #e0f7fa;
  color: #006d77;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 16px;
}

.numbered-list li a {
  display: inline-block;
  text-decoration: none;
  color: #006d77;
  font-weight: bold;
  font-size: 18px;
}

.numbered-list li a:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* ==================
   Contactformulier
================== */
.contact-form {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-row label {
  flex: 0 0 150px;
  font-weight: bold;
  text-align: right;
}

.form-row input,
.form-row select,
.form-row textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

.contact-form button {
  align-self: center;
  padding: 10px 20px;
  background-color: #006d77;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.contact-form button:hover {
  background-color: #0056b3;
}

/* ==================
   Grid Container
================== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
}

.grid-item {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
}

.grid-item a {
  display: block;
  font-weight: bold;
  color: #006d77;
  margin-bottom: 10px;
  text-decoration: none;
  font-size: 18px;
}

.grid-item a:hover {
  text-decoration: underline;
}

.grid-item img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-top: 10px;
  border-radius: 5px;
}

/* ==================
   Responsive
================== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    padding: 20px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active ul {
    display: flex;
  }

  .submenu {
    position: static;
    box-shadow: none;
    background: none;
    padding-left: 20px;
    display: none;
  }

  .has-submenu.active > .submenu {
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  .main-nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
}
