/* === Navigatieknoppen === */
nav .nav-list a {
  display: inline-block;
  background-color: #003366;
  color: #fff;
  border: 2px solid var(--kleur-body);
  border-radius: 5px;
  padding: 9px 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(230, 242, 255, 0.4);
  position: relative;
  transition: all 0.3s ease;
}

/* === Hovergedrag === */
nav .nav-list a:hover {
  background-color: #2672CC;
  box-shadow: 0 0 8px rgba(230, 242, 255, 0.6);
}

/* === Actieve knop met gele onderstreping + animatie === */
nav .nav-list a.active {
  background-color: #003366;
  color: #fff;
}

nav .nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--kleur-cta); /* geel */
  border-radius: 2px;
  animation: underlineFade 0.6s ease forwards;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0 ); /* glow effect */
}

@keyframes underlineFade {
  0% {
    width: 0;
    opacity: 0;
    box-shadow: 0 0 0 rgba(255, 215, 0, 0);
  }
  60% {
    width: 100%;
    opacity: 1;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
  }
  100% {
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  }
}


/* === Navigatiecontainer === */
nav {
  background-color: var(--kleur-nav-balk);
}

/* === Navigatielijst === */
nav ul.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;/* minder verticale ruimte */
  margin: 0;
  gap: 1rem;
}

/* === Submenu gedrag met fade-in === */
.has-submenu {
  position: relative;
}

.has-submenu:hover .submenu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* === Submenu styling === */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 4px;
  width: max-content;
  z-index: 100;
  background-color: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* === Bullet points verwijderen === */
.submenu {
  list-style: none;
  padding-left: 0;
}

/* === Submenu links === */
.submenu li {
  margin-bottom: 0.25rem;
}

.submenu a {
  display: block;
  white-space: nowrap;
  background-color: var(--kleur-accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.submenu a:hover {
  background-color: var(--kleur-cta-hover);
}

/* === Pijl-icoontje bij submenu-knoppen === */
.arrow {
  font-size: 0.8rem;
  margin-left: 6px;
  color: #fff;
}
/* === Mobiele navigatie (hamburger menu) === */
/* Basis: verberg menu op mobiel */
.nav-list {
  display: none;
}

/* Als hamburger is geklikt */
.main-nav.active {
  display: block;
}

/* Hamburger styling */

.menu-toggle {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Optioneel: animatie bij open */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* Responsive aanpassingen */
@media (max-width: 768px) {
  .main-nav {
    display: block;
    padding: 0.5rem 1rem;
  }
.logo {
    font-size: 1.2rem;
  
  }
  .menu-toggle {
    display: flex;
  }
.main-nav.active .nav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  text-align: left;
  padding-left: 1rem;
}

.nav-list a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  background-color: var(--kleur-accent);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
}

nav ul.nav-list {
  flex-wrap: nowrap;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 1rem;
  gap: 0.5rem;
}


  /* overige mobiele styling... */
}

  .submenu {
  position: static;
  transform: none;
  opacity: 1;
  background-color: transparent;
  box-shadow: none;
  border: none;
  padding-left: 1rem;
}

  .has-submenu.open .submenu {
    display: flex;
    flex-direction: column;
  }

@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }

  .main-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
  }
.nav-list a {
  padding: 0.5rem 1rem;
  border: 1px solid #fff;
  border-radius: 4px;
  background-color: var(--kleur-accent);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.nav-list a:hover {
  background-color: var(--kleur-cta-hover);
}


  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background-color: rgba(255, 215, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    border-radius: 5px;
    z-index: 100;
  }

  .has-submenu:hover .submenu {
    display: flex;
    flex-direction: column;
  }
}
/* === Einde navigatieknoppen === */



