/* === Navigation: Desktop & Mobile === */

#menu {
  height: 80px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: whitesmoke;
  color: black;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#menu > ul {
  display: flex;
  background-color: whitesmoke;
  height: 100%;
}

/* --- Menüelemente --- */
#menu > ul > li {
  padding: 0 1rem;
  list-style: none;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  position: relative;
}

/* --- Linkstil --- */
#menu > ul > li > a {
  text-decoration: none;
  font-size: 1.2em;
  font-family: sans-serif;
  color: black;
  position: relative;
  transition: color 0.3s ease;
}

/* --- dezenter Hover-Effekt (animierter Unterstrich) --- */
#menu > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background-color: #66ccff; /* Akzentfarbe */
  transition: width 0.3s ease;
}

#menu > ul > li > a:hover {
  color: #007acc;
}

#menu > ul > li > a:hover::after {
  width: 100%;
}

/* --- Logo --- */
#brand img {
  height: 55px;
  transition: transform 0.3s ease;
}

#brand img:hover {
  transform: scale(1.05);
}

/* --- Hamburger Button --- */
#menu > button {
  display: none;
  justify-content: space-between;
  flex-direction: column;
  width: 30px;
  height: 23px;
  background: none;
  border: none;
  cursor: pointer;
}

#menu > button > span {
  height: 4px;
  width: 100%;
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === Mobile Ansicht === */
@media only screen and (max-width: 950px) {
  #menu {
    justify-content: space-between;
    padding: 0 1rem;
  }

  #brand img {
    height: 45px;
    margin: 1rem 0;
  }

  #menu > ul {
    position: absolute;
    display: none;
    flex-direction: column;
    width: 100%;
    height: auto;
    align-items: center;
    top: 80px;
    left: 0;
    background-color: whitesmoke;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  #menu > ul.active {
    display: flex;
  }

  #menu > ul > li {
    padding: 1rem 0;
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid #ddd;
  }

  #menu > ul > li > a {
    font-size: 1.2em;
  }

  #menu > button {
    display: flex;
  }
  /* === Aktiver Menüpunkt (Scrollspy) === */
#menu > ul > li > a.active {
  border-bottom: 3px solid var(--accent);
  color: #0077b6;
  transition: all 0.3s ease;
}

#menu > ul > li > a:hover {
  color: #0077b6;
  background-color: rgba(102, 204, 255, 0.1);
  border-bottom: 3px solid var(--accent);
}
}
/* }
#menu > ul > li > a.active::after {
  width: 100%;
  background-color: #007acc;
}
#menu > ul > li > a.active {
  color: #007acc;
} */


