/* ====== Grundlayout ====== */
body {
	margin: 0;
	font-family: "Open Sans";
	font-size: 18px;
	font-weight: 400;
}

header {
	position: relative;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ====== Desktop-Navigation ====== */
@media (min-width: 769px) {
  .hamburger {
	display: none;
	background-color: #CCC;
  }

  nav ul {
	display: flex;
	justify-content: center;
  }

  nav ul li {
    margin: 0 15px;
  }

 .row_2 nav ul li a {
  color: white;
}

.row_2 nav ul li a::after {
  color: white;
}


 
 nav ul li a {
  display: block;
  color: white; /* entferne das !important */
  text-decoration: none;
  padding: 15px 10px;
  position: relative;
  transition: all 0.3s ease;
}


  
  nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 100%;
    height: 1px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  nav ul li a:hover::after,
  nav ul li a.active::after {
    transform: scaleX(1);
  }
}

/* ====== Mobile-Navigation ====== */
@media (max-width: 768px) {
  .hamburger {
    display: block !important;
    position: relative;
    z-index: 9999;
    width: 30px;
    height: 25px;
    margin: 10px auto;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    height: 3px;
    margin: 5px 0;
    transition: 0.3s ease;
    background-color: #FFF;
  }

  .hamburger:hover span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger:hover span:nth-child(2) {
    opacity: 0;
  }

  .hamburger:hover span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav ul {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    flex-direction: column;
    will-change: max-height, opacity;
  }

  nav.active ul {
    max-height: 500px; /* Je nach Menüinhalt ggf. anpassen */
    opacity: 1;
  }

  nav ul li {
    width: 100%;
    text-align: center;
  }

  .row_2 nav ul li a {
    display: block;
    padding: 12px 0;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #888;
  }

  nav ul li a:hover {
    color: #FFF;
    font-weight: bold;
  }
}
