.site-header {
  background: linear-gradient(180deg, #d71920 0%, #c9151b 100%);
  color: #ffffff;
  position: relative;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 86px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 58px;
  width: auto;
  max-width: 100%;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-group-center {
  justify-content: center;
  flex: 1 1 auto;
}

.nav-group-right {
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 10px;
}

/* Base nav link */
.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Center nav = normal links */
.nav-group-center a {
  background: transparent;
  opacity: 0.96;
}

.nav-group-center a:hover {
  background: rgba(255, 255, 255, 0.10);
  opacity: 1;
}

.nav-group-center a.active {
  background: rgba(255, 255, 255, 0.14);
}

/* Right pills = same visual base */
.main-nav a.nav-cta,
.main-nav a.nav-login {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Neues Team = same pill shape, just slightly more present */
.main-nav a.nav-cta {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  animation: navCtaPulse 2.8s ease-in-out infinite;
}

.main-nav a.nav-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.30);
  transform: translateY(-1px);
}

.main-nav a.nav-cta.active {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.34);
}

/* Login = same geometry, more subtle */
.main-nav a.nav-login {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  font-weight: 700;
}

.main-nav a.nav-login:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.main-nav a.nav-login.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Profile / Logout when logged in */
.nav-group-right a:not(.nav-cta):not(.nav-login) {
  opacity: 0.96;
}

.nav-group-right a:not(.nav-cta):not(.nav-login):hover {
  background: rgba(255, 255, 255, 0.10);
  opacity: 1;
}

.nav-group-right a.active:not(.nav-cta):not(.nav-login) {
  background: rgba(255, 255, 255, 0.14);
}

/* CTA animation */
@keyframes navCtaPulse {
  0% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10), 0 0 0 0 rgba(255, 255, 255, 0.22);
  }
  70% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10), 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10), 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Reduce animation for users preferring less motion */
@media (prefers-reduced-motion: reduce) {
  .main-nav a.nav-cta {
    animation: none;
  }

  .main-nav a {
    transition: none;
  }
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: #ffffff;
}

/* Slightly tighter on medium widths */
@media (max-width: 1180px) {
  .site-header .header-inner {
    min-height: 80px;
    gap: 20px;
  }

  .brand-logo {
    height: 52px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 0.96rem;
    padding: 9px 11px;
  }

  .main-nav a.nav-cta,
  .main-nav a.nav-login {
    min-height: 42px;
    padding: 0 16px;
  }
}

/* Mobile */
@media (max-width: 920px) {
  .site-header .header-inner {
    min-height: 76px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-logo {
    height: 48px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 8px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-group-center,
  .nav-group-right {
    justify-content: flex-start;
    flex: 0 0 auto;
  }

  .main-nav a,
  .main-nav a.nav-cta,
  .main-nav a.nav-login {
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    border-radius: 14px;
    padding: 14px 16px;
  }

  .main-nav a.nav-cta {
    animation: none;
  }
}