/* === NAVBAR STYLES === */

/* Header-Leiste */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 50;
}

/* Container in Navbar */
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.navbar-logo a{
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: inherit;
  text-decoration: none;
  background: none;
  outline: none;
  box-shadow: none;
  transform: none;
  display: inline-block;             /* vermeidet Zeilenhöhen-/Layout-Sprünge */
  -webkit-tap-highlight-color: transparent; /* iOS/Android Tap-Highlight aus */
  transition: none;                  /* keine Animationsänderungen */
}


/* Navigation */
.navbar-links {
  font-weight: 500;
  display: none;
}

.navbar-links a {
  margin-left: 2rem;
}

/* Desktop anzeigen ab 768px */
@media (min-width: 768px) {
  .navbar-links {
    display: flex;
    gap: 2rem;
  }

  .navbar-toggle {
    display: none;
  }
}

/* Navigation links */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;

}

/* Hover Effekt mit Unterstrich */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0%;
  background-color: #333;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Burger-Button (mobile) */
.navbar-toggle {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Mobiles Menü bei Aktivierung */
.nav-mobile-active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  gap: 1rem;
  z-index: 49;
}

.mobile{
    width: fit-content;
}

/* ===============================
   RESPONSIVE BREAKPOINTS
   =============================== */

/* === Smartphone: max-width: 767px === */
@media (max-width: 767px) {

  .navbar {
  background-color: rgba(255, 255, 255, 1);
}
  .navbar-container {
    padding: 0.75rem 1rem;
  }

  .navbar-logo a {
    font-size: 1.3rem;
  }

  .navbar-links {
    display: none; /* Standard: versteckt, per JS togglen */
  }

  .nav-mobile-active {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .navbar-toggle {
    display: block;
    color: black;
  }
}

/* === Tablet: 768px–1023px === */
@media (min-width: 768px) and (max-width: 1023px) {
  .navbar-container {
    padding: 1rem 1.5rem;
  }

  .navbar-links {
    display: flex;
    gap: 1.5rem;
  }

  .navbar-toggle {
    display: none;
  }

  .nav-link {
    font-size: 0.9rem;
  }
}

/* === Desktop: min-width: 1024px === */
@media (min-width: 1024px) {
  .navbar-container {
    padding: 1rem 2rem;
    max-width: 1200px;
  }

  .navbar-links {
    display: flex;
    gap: 2rem;
  }

  .navbar-toggle {
    display: none;
  }

  .nav-link {
    font-size: 1rem;
  }
}
