/* -----------------------------------------------------------
   HERO – Grundlayout
----------------------------------------------------------- */
.hero {
  background: radial-gradient(circle at 40% 50%, #0b253c 0%, #010b16 60%);
  padding: 2rem 3rem;
  min-height: 32vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;

  position: relative; /* wichtig */
  z-index: 1; /* Safari-Fix */
}

/* -----------------------------------------------------------
   HERO – Obere Zeile: Logo links, Text + CTA rechts
----------------------------------------------------------- */
.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Logo links */
.hero-left {
  flex: 0 0 auto;
}

.hero-logo {
  width: 220px;
  height: auto;
}

/* Text + CTA rechts */
.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.hero-headline {
  font-size: 1.8rem;
  color: var(--color-white);
  margin: 0;
}

.hero-subline {
  font-size: 1.1rem;
  color: var(--color-white);
  opacity: 0.85;
  margin: 0;
  max-width: 40ch;
}

.hero-cta {
  padding: 0.8rem 1.6rem;
  background: #153551;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-cta:hover {
  background: #1e4a6e;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* -----------------------------------------------------------
   HERO – Navigation unten über volle Breite
----------------------------------------------------------- */
.hero-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.hero-nav a {
  position: relative;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1rem;
  opacity: 0.85;
  padding-bottom: 2px;
  transition: opacity 0.25s ease;
}

.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: #1e4a6e; /* ArcSentinel-Blau */
  transition: width 0.25s ease;
}

.hero-nav a:hover {
  opacity: 1;
}

.hero-nav a:hover::after {
  width: 100%;
}

.hero-nav a.active {
  color: #3b82f6; /* Sentinel-Blau */
  font-weight: 600;
  border-bottom: 2px solid #3b82f6;
}

/* Burger Button */
.burger {
  display: flex; /* sichtbar im Mobile-Bereich */
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;

  position: fixed; /* immer oben rechts */
  top: 1.5rem;
  right: 1.5rem;

  z-index: 999999; /* über allem, auch Safari */
  pointer-events: auto; /* Klicks garantiert */
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-white);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Burger aktiv (X-Animation) */
.burger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Fullscreen Mobile Navigation */
.mobile-nav-wrapper {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  display: none;
}

.mobile-nav-wrapper.open {
  display: block;
}

.mobile-nav {
  position: absolute;
  top: 0;
  left: -100%; /* ← Off-Canvas Start */
  width: 80%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: left 0.35s ease; /* ← Safari-sicher */
}

.mobile-nav.open {
  left: 0; /* ← Menü fährt rein */
}

.mobile-nav a {
  font-size: 1.6rem;
  color: var(--color-white);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.mobile-nav a:hover {
  opacity: 1;
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .hero-nav {
    display: none; /* Desktop-Navigation ausblenden */
  }
}

/* -----------------------------------------------------------
   Optionaler Scroll-Indikator (falls später genutzt)
----------------------------------------------------------- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-size-small);
  color: var(--color-gray-light);
  opacity: 0.8;
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0% {
    opacity: 0.4;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(6px);
  }
  100% {
    opacity: 0.4;
    transform: translateX(-50%) translateY(0);
  }
}

/* -----------------------------------------------------------
   Abstand nach dem Hero-Bereich
----------------------------------------------------------- */
.hero + section {
  margin-top: var(--space-l);
}

/* Neutraler Hero für rechtliche Seiten */
.legal-hero {
  position: relative; /* ← NEU – Safari-Fix */
  width: 100%;
  padding: 4rem 1.5rem 2rem;
  background-color: #0a0f14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.legal-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.legal-hero-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0;
  color: #e5e7eb; /* helles Grau, kein Werbe-Look */
}

/* Navigation für rechtliche Seiten */
.legal-nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.legal-nav a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.legal-nav a:hover {
  color: #ffffff;
}

/* -----------------------------------------------------------
   MOBILE – Optimierung für rechtliche Inhalte
----------------------------------------------------------- */
@media (max-width: 768px) {
  .legal-content {
    width: 100%;
    padding: 0 1.2rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .legal-content h2 {
    font-size: 1.4rem;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .legal-content h3 {
    font-size: 1.2rem;
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
  }

  .legal-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .legal-content ul,
  .legal-content ol {
    padding-left: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .legal-content li {
    margin-bottom: 0.6rem;
  }
}

/* -----------------------------------------------------------
   MOBILE – Optimierung für Smartphones
----------------------------------------------------------- */
@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
    min-height: 48vh;
    gap: 1.2rem;
  }

  .hero-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }

  .hero-logo {
    width: 180px;
  }

  .hero-headline {
    font-size: 1.3rem;
  }

  .hero-cta {
    font-size: 1rem;
    padding: 0.7rem 1.4rem;
  }

  .hero-nav {
    position: static;
    margin-top: 1rem;
    gap: 1.2rem;
  }
}

/* Aktiver Link im mobilen Burger-Menü */
.mobile-nav a.active {
  color: #3b82f6;
  font-weight: 600;
  position: relative;
}

.mobile-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: #3b82f6;
  border-radius: 2px;
}
