
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(49, 53, 81, 0.95);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.navbar.sticky {
  position: fixed; /* Fixiert das Menü beim Scrollen */
  background: rgba(49, 53, 81, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.menu li {
  display: inline;
}

.menu a {
  text-decoration: none;
  color: #48e5c2;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

/* Underline-Effekt */
.menu a::after {
  content: '';
  position: absolute;
  height: 2px;
  left: 0;
  bottom: 0;
  width: 0;
  background: #48e5c2;
  transition: width 0.2s ease;
}

.menu a:hover::after {
  width: 100%;
}

.menu a:hover {
  color: #ffffff;
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 30px;
  height: 20px;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 1100;

}

/* Hamburger-Balken */
.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #48e5c2;
  border-radius: 2px;
  transition: all 0.3s ease;
}


@media screen and (max-width: 600px) {
  .menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-radius: 5px;
    width: 100%;
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar {
    min-height: 57px;
    position: fixed;
    background: rgba(49, 53, 81, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
  }
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px); /* Oberer Balken dreht sich */
  background-color: #ffffff;
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0; /* Mittlerer Balken verschwindet */
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px); /* Unterer Balken dreht sich */
  background-color: #ffffff;
}
