/* ===== Responsive Breakpoints ===== */

/* ========== Default Desktop Styles (XL & LG) ========== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8rem;
  min-height: 90px;
  background-color: rgba(164, 164, 164, 0.1);
  backdrop-filter: blur(6px);
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  transform: translateX(-30px);
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.logo {
  height: 70px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #3d64ff;
  transform: scale(1.05);
}

.nav-links a.active {
  color: #3d64ff;
  border-bottom: 2px solid #3d64ff;
  padding-bottom: 2px;
}

.navbar-cta {
  background-color: #3d64ff;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.navbar-cta:hover {
  background-color: #1a44ff;
  transform: scale(1.05);
}

/* Burger-Icon */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* === Smartphone: max-width: 767px === */
@media only screen and (max-width: 767px) {
  body::-webkit-scrollbar {
    display: none;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    top: 2.5rem;
    right: 1.5rem;
    z-index: 20;
  }

  .nav-left {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-right {
    display: none;
  }

  .nav-center {
    order: 2;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    padding: 1rem 2rem;
    border-radius: 10px;
  }

  .nav-center.show {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }
}

/* === Tablet: 768px–1023px === */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  body::-webkit-scrollbar {
    display: none;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
    position: absolute;
    top: 2.5rem;
    right: 1.5rem;
    z-index: 20;
  }

  .nav-left {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-right {
    display: none;
  }

  .nav-center {
    order: 2;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 1rem 2rem;
    border-radius: 10px;
  }

  .nav-center.show {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    text-align: left;
  }
}

/* === Desktop: min-width: 1024px === */
@media only screen and (min-width: 1024px) and (max-width: 1199px) {
  .navbar {
    padding: 0 4rem;
  }
}

@media only screen and (min-width: 1200px) {
  /* Kein Override nötig – Desktop ist Default */
}
