/* 
 * BUNKERBANDITS Theme - Developed by Dennis Joest
 */
/* ======================= */
/* HEADER- UND NAVIGATION  */
/* ======================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 150px;
  /* Desktop-Default */
  z-index: 9999;
  background: linear-gradient(180deg, var(--color-bg-black) 30%, var(--color-brand-dark) 60%, var(--color-brand-orange) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.logo {
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo-img {
  max-height: 144px;
  display: block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

.logo-img.is-heartbeating {
  animation: bb_logo_heartbeat 1.2s infinite ease-in-out;
}

@keyframes bb_logo_heartbeat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.15);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.15);
  }

  70% {
    transform: scale(1);
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 30px;
  /* EINHEITLICHER Abstand zwischen allen Items */
}

.nav-menu li {
  display: flex;
  align-items: center;
}

.nav-menu a {
  color: var(--color-text-white);
  /* Nav-Links in Weiß über Variable */
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  transition: color 0.2s;
  line-height: 1.2;
  padding: 0;
  /* kein zusätzliches Padding */
}

.nav-menu a::after {
  content: "";
  display: block;
  width: 0;
  height: 8px;
  /* Height for the curve */
  margin-top: 2px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2,8 Q35,0 98,6' stroke='%23ff5e00' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transition: width 0.3s ease-in-out;
  opacity: 0;
}

/* Active State and Hover */
.nav-menu .current-menu-item>a,
.nav-menu .current_page_item>a,
.nav-menu a:hover {
  color: var(--color-brand-orange);
}

.nav-menu .current-menu-item>a::after,
.nav-menu .current_page_item>a::after,
.nav-menu a:hover::after {
  width: 100%;
  opacity: 1;
}

.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.lang-link {
  display: inline-block;
  width: 20px;
  height: 14px;
  margin-left: 10px;
  cursor: pointer;
}

.lang-icon {
  display: inline-block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  vertical-align: middle;
  position: relative;
  top: -9px;
}

/* ============================================= */
/* 📱📲💻🖥 RESPONSIVE BREAKPOINTS – 5 STUFEN BASIS */
/* ============================================= */

/* 📱 1. XS – Kleine Smartphones */
@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    gap: 10px;
  }

  .nav-menu {
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-menu a {
    font-size: 0.85rem;
  }

  .lang-switch {
    position: absolute;
    top: 10px;
    right: 10px;
    margin-left: 0;
  }

  .logo-img {
    max-width: 65%;
    margin: 0 auto;
  }
}

/* 📱 2. S – Normale Smartphones */
@media (min-width: 481px) and (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 12px;
  }

  .nav-menu {
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-menu a {
    font-size: 0.9rem;
  }

  .lang-switch {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .logo-img {
    max-width: 65%;
    margin: 0 auto;
  }
}

/* 📲 3. M – Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-menu {
    gap: 20px;
  }

  .nav-menu a {
    font-size: 0.95rem;
  }
}

/* 💻 4. L – Laptops / kleine Desktops */
@media (min-width: 1025px) and (max-width: 1440px) {
  .nav-menu {
    gap: 30px;
  }
}

/* 🖥 5. XL – Große Bildschirme / 4K */
@media (min-width: 1441px) {
  .nav-menu {
    gap: 36px;
  }
}