

/* Reset & Grundlayout */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 0 0.75px;
    position: relative;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    display: block;
	font-stretch: 80%;
}

nav ul li a:hover {
    background-color: #f1d235;
    border-radius: 1px;
    color: black;
}

/* Untermenü */
nav ul li ul {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: #f1d235;
    padding: 0;
    margin: 0;
    z-index: 1000;
	border-radius: 4px;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    width: 200px;
}

nav ul li ul li a:hover {
    background-color: #F3EABF;
	border-radius: 4px;
}

/* --- Layout-Struktur --- */
.menu-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Hamburger Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: black;
  margin: 4px 0;
}

/* Menüzentrum Desktop */
.menu-center {
  display: block;
}

/* ------------------------------
   NEU: Zentrierung in Desktop-Ansicht
-------------------------------- */
@media (min-width: 769px) {
  .container-fluid {
    position: relative;
  }

  .menu-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }

  .menu-center nav ul {
    justify-content: center;
  }
}

/* Mobil: Umbau */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .menu-center {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-radius: 8px;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
  }

  .menu-center.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  .menu-center nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .menu-center nav ul li {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  .menu-center nav ul li a {
    color: black !important;
    width: 100%;
  }
}
