/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.1rem;
    padding-bottom: 1rem;
    padding-inline: 2rem;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    transition: top 0.3s;
  }
  .header-spacer {
    height: 50px;
  }

  .header-left, .header-right {
    flex-basis: 25%;
    height: 90px;
    vertical-align: bottom;
    padding-top: 60px;
  }
  .header-center {
    flex-basis: 50%;
    text-align: center;
    height: 100px;
    padding-top: 25px;
  }

  .logo {
    display: inline-block;
    height: 5rem;
  }
 
  .subline-img {
    padding-top: 3px;
  }



  .wortmarke {
    width: 100%; /* Let the container control the width */ /* Add a max-width to prevent it from getting too large */
    height: 3rem;
    margin-top: 1rem;
    margin-left: 20px;
  }


  .logo a {
    display: flex;
    align-items: center;
  }
  .nav-container {
    display: none;
  }
  .nav-links {
    list-style: none;
    display: flex;
    justify-self: center;
    justify-content: center;
    gap: 1.5rem; /* Keep this from original .nav-links */
  }
  .nav-links li {
    margin: 0 10px; /* From inline style */
    opacity: 0;
  }
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 2rem;
    transition: color 0.2s ease;
    font-family: 'ScalaSans';
    justify-content: center;
  }
  .nav-links a:hover {
    color: #ff12a2;
  }
  .nav-links a.active,
  .language-toggle a.active {
    color: #ff12a2;
  }

  .language-toggle a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 2rem;
    margin: 0 0.5rem;
    font-family: 'ScalaSans';
  }
  
  .language-toggle a.active {
    color: #ff12a2;
  }


.burger {
    display: block;
    cursor: pointer;
    justify-self: start;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 6px;
    transition: all 0.3s ease;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: white;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%);
  transition: transform 0.5s ease-in-out;
}

.mobile-nav .language-toggle {
  margin-bottom: 2rem;
}

.mobile-nav.mobile-nav-active {
  transform: translateX(0%);
}

.mobile-nav .nav-links {
  flex-direction: column;
  align-items: center;
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-6px, 5px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-6px, -5px);
}

/* ========== MOBILE HEADER STYLING ========== */
@media (max-width: 768px) {
  /* Place burger on left, logo on right */
  .navbar {
    justify-content: space-between;
  }

  .header-left {
    order: 3; /* Burger stays left */
    margin-left: auto;
  }
  .wortmarke {
    width: auto; /* Let the container control the width */ /* Add a max-width to prevent it from getting too large */
    height: 3rem;
    padding-bottom: 0px;
  }
  .nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.5rem;
    transition: color 0.2s ease;
    font-family: 'ScalaSans';
  }
  .language-toggle a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    font-family: 'ScalaSans';
  }

  .burger {
    display: block;
    cursor: pointer;
    justify-self: end;
}
  .header-center {
    order: 1;
    flex-basis: auto;
    margin-right: auto; /* Push logo to the right */
  }

  .header-right {
    order: 2;
    width: 0%;
    display: none; /* Not needed in mobile */
  }

  /* Hide subline in mobile */
  .subline-img {
    display: none !important;
  }

  /* Adjust logo size for mobile if needed */
  .wortmarke {
    max-width: 50vw; /* shrink a bit on mobile */
  }
  .header-left {
    padding-top: 40px;
  }
}

.header-center {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;

}

.subline-img {
    height: 0.75rem;
    width: auto;
    margin-top: 1rem;
    margin-bottom: 5px;
}
