/* =========================
   NAVBAR – FINAL VERSION
========================= */
:root {
  --header-h: 110px;   /* Höhe der Navbar */
  --maxw: 1400px;
  --gap: 24px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 2px solid #99999952; /* graue Linie */
  z-index: 1000;
}

.header-inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 40px 0 0;             /* rechts Platz lassen */
  display: grid;
  grid-template-columns: 180px 1fr auto; /* Logo | Nav | Icons */
  align-items: center;
}


/* icon-btn weiter nach rechts */
.icon-btn {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
 
  margin-top: 22px;    /* höher */
  margin-left: 50px;   /* extra Schub nach links */
}

/* Navigation */
.main-nav {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--gap);
}

.main-nav .nav-link {
  position: relative;
  display: flex;
  align-items: center;    /* Text vertikal mittig */
  justify-content: center;
  height: 100%;
  padding: 0 20px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  transition: color .25s ease;
  z-index: 1;
}

/* Schwarzer Hover-Balken: volle Navbar-Höhe */
.main-nav .nav-link::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;               /* bis graue Linie */
  background: #1E73BE;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease-in-out;
  z-index: -1;
}
.main-nav .nav-link:hover {
  color: #fff;
}
.main-nav .nav-link:hover::before {
  transform: scaleY(1);
}

/* Icons rechts */
.header-actions {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* bleiben rechts */
  gap: 16px;
}
.header-actions .icon-btn {
  color: #000;
  transition: color .25s ease;
}
.header-actions .icon-btn:hover {
  color: #005bbb; /* blau beim Hover */
}
.header-actions svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Abstand Video/erste Section */
.hero-video,
.full-bleed {
  margin-top: var(--header-h);  /* nur Höhe der Navbar */
}

/* Sections clean (keine Backgrounds, keine Schatten) */
section {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}
.shadow-box,
.box,
.card {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Mobile deaktivieren */
.hamburger,
.mobile-nav {
  display: none !important;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}
.hero-video,
.full-bleed {
  margin-top: calc(var(--header-h) - 80px); /* z. B. 80px Abstand */
}
/* Standard: Desktop zeigt normale Navbar, kein Hamburger */
.main-nav,
.header-actions {
  display: flex;
}
.hamburger,
.mobile-nav {
  display: none;
}

/* Mobile: nur Hamburger sichtbar */
@media (max-width: 768px) {
  .main-nav,
  .header-actions {
    display: none !important;   /* Desktop-Nav ausblenden */
  }
  .hamburger {
    display: block !important;  /* Hamburger zeigen */
  }
  .mobile-nav {
    display: block !important;  /* Mobile-Menü sichtbar */
  }
}


/* Hamburger-Icon */
.hamburger {
  display: none;
  position: fixed;
  top: 20px; right: 20px;
  width: 32px; height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #111;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation: Hamburger → X */
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile-Overlay */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover {
  color: #00adee;
}

/* Responsive Umschalten */
@media (max-width: 768px) {
  .main-nav,
  .header-actions {
    display: none !important; /* Desktop-Nav ausblenden */
  }
  .hamburger {
    display: flex;
  }
}


/* Hamburger-Icon */
.hamburger {
  display: none;
  position: fixed;
  top: 20px; right: 20px;
  width: 32px; height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #111; /* schwarz im Normalzustand */
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* Animation: Hamburger → X */
.hamburger.active span {
  background: #fff; /* Balken werden weiß im X-Zustand */
}
.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile-Overlay */
.mobile-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover {
  color: #00adee;
}

/* Responsive Umschalten */
@media (max-width: 768px) {
  .main-nav,
  .header-actions {
    display: none !important; /* Desktop-Nav ausblenden */
  }
  .hamburger {
    display: flex;
  }
}
/* Variablen für exakte Kontrolle */
:root {
  --bar-w: 28px;
  --bar-h: 3px;
  --bar-gap: 6px;          /* Abstand zwischen den Balken */
}

/* Hamburger-Icon: präzise absolute Positionen */
.hamburger {
  display: none;
  position: fixed;
  top: 20px; right: 20px;
  width: var(--bar-w);
  height: calc(3 * var(--bar-h) + 2 * var(--bar-gap)); /* Gesamt-Höhe */
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--bar-h);
  background: #111; /* schwarz im Normalzustand */
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
}

/* Präzise Y-Positionen: sauber untereinander */
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: calc(var(--bar-h) + var(--bar-gap)); }
.hamburger span:nth-child(3) { top: calc(2 * (var(--bar-h) + var(--bar-gap))); }

/* Animation: Hamburger → weißes X (symmetrisch) */
.hamburger.active span { background: #fff; }
.hamburger.active span:nth-child(1) {
  transform: translateY(calc(var(--bar-h) + var(--bar-gap))) rotate(45deg);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: translateY(calc(-1 * (var(--bar-h) + var(--bar-gap)))) rotate(-45deg);
}

/* Overlay: absolut mittig platzieren */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: grid;
  place-items: center;        /* horizontal + vertikal zentriert */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;        /* mittig ausrichten */
  text-align: center;
}

.mobile-nav a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: #00adee; }

/* Responsive Umschalten: Mobile zeigt nur Hamburger + Overlay */
@media (max-width: 768px) {
  .main-nav,
  .header-actions { display: none !important; }
  .hamburger { display: block; }
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;

  /* nach unten verschieben */
  padding-top: 200px; /* Wert anpassen */
}


/* Header-Inhalt */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0 0px;   /* nur 10px Abstand links & rechts */
  width: 100%;
}

/* Logo */
.brand__logo {
  max-height: 90px;   /* Größe nach Wunsch */
  width: auto;
  margin-left: 0;     /* kein extra Abstand mehr */
  display: block;
}

/* Icons rechts */
.header-actions {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px; /* enger zusammen (vorher 16px) */
}

.icon-btn {
  margin: 0; /* unnötige Abstände weg */
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 769px) {
  .header-inner {
    padding-left: 30px;   /* vorher 0 oder 40px – jetzt kleiner */
    padding-right: -60px;  /* mehr Abstand rechts für Icons */
  }

  .brand__logo {
    margin-left: 0;       /* ganz an den Rand */
  }

  .header-actions {
    gap: 16px;            /* falls gewünscht, wieder etwas mehr Abstand zwischen Icons */
  }

  .icon-btn {
    margin-right: -10px;   /* Icons noch weiter nach rechts schieben */
  }
}









/* =============================
   HEADER FLEX ANPASSUNGEN
============================= */

/* Header Container – auf Desktop umstellen */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-h);
}

/* Logo links */
.brand {
  margin-right: auto;
}

/* NAVIGATION: nach rechts neben die Icons */
.desktop-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 48px;
}

/* Main-Nav in Desktop */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--gap);
}

/* Icon-Bereich rechts */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Mobile: .main-nav und .header-actions verstecken */
@media (max-width: 768px) {
  .main-nav,
  .header-actions {
    display: none !important;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .mobile-nav ul {
    padding-top: 160px;
    gap: 32px;
  }
}


@media (max-width: 768px) {
    .mobile-nav {
        padding-top: 6rem; /* Abstand von oben erhöhen */
    }

}





/* =========================================
   MOBILE NAV – ZENTRIERUNG + ANIMATION
========================================= */

/* Zentriere das Overlay perfekt mittig */
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* perfekt vertikal + horizontal */
  padding: 0;              /* kein Padding von oben mehr */
}

/* UL mittig, keine Verschiebung */
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Animations-Setup */
.mobile-nav.active a {
  opacity: 0;
  transform: translateY(30px);
  animation: navFlyIn 0.6s forwards ease-out;
}

/* Keyframes für Fly-In Animation */
@keyframes navFlyIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Verzögerung pro Element für gestaffeltes Reinfliegen */
.mobile-nav.active ul li:nth-child(1) a { animation-delay: 0.1s; }
.mobile-nav.active ul li:nth-child(2) a { animation-delay: 0.25s; }
.mobile-nav.active ul li:nth-child(3) a { animation-delay: 0.4s; }
.mobile-nav.active ul li:nth-child(4) a { animation-delay: 0.55s; }
.mobile-nav.active ul li:nth-child(5) a { animation-delay: 0.7s; }
.mobile-nav.active ul li:nth-child(6) a { animation-delay: 0.85s; }

/* Optional: leichtes Schweben beim Hover */
.mobile-nav a:hover {
  color: #00adee;
  transform: translateY(-2px);
  transition: transform 0.2s, color 0.2s;
}


/* =========================================
   NO SCROLL / NO EDGE PULL ON ANY DEVICE
========================================= */

/* Verhindert horizontales & vertikales Ziehen außerhalb des Viewports */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;   /* kein seitliches Scrollen */
  overscroll-behavior: none; /* kein „Pull to refresh“ oder Bounce-Effekt */
  touch-action: pan-y;       /* nur vertikales Scrollen erlaubt */
  width: 100%;
  max-width: 100vw;
}

/* Wenn die Mobile-Navigation aktiv ist: kein Scrollen */
body.menu-open {
  overflow: hidden;
  height: 100vh;
}

/* Für iOS Safari (verhindert elastisches Scrollen beim Overlay) */
.mobile-nav.active {
  position: fixed;
  overflow: hidden;
  -webkit-overflow-scrolling: none;
}
/* =========================================
   MOBILE NAV – ZENTRIERTER INHALT + ABSTAND
========================================= */

/* Mobile Menü mittig leicht nach unten setzen */
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* wir verschieben mit padding-top */
  padding-top: 25vh; /* Position ca. 1/4 des Viewports von oben */
  text-align: center;
}

/* UL mittig angeordnet */
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Animations-Setup für Einflug */
.mobile-nav.active a {
  opacity: 0;
  transform: translateY(30px);
  animation: navFlyIn 0.6s forwards ease-out;
}

/* Keyframes für das Einfliegen */
@keyframes navFlyIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gestaffeltes Einfliegen */
.mobile-nav.active ul li:nth-child(1) a { animation-delay: 0.1s; }
.mobile-nav.active ul li:nth-child(2) a { animation-delay: 0.25s; }
.mobile-nav.active ul li:nth-child(3) a { animation-delay: 0.4s; }
.mobile-nav.active ul li:nth-child(4) a { animation-delay: 0.55s; }
.mobile-nav.active ul li:nth-child(5) a { animation-delay: 0.7s; }

/* Hover Effekt */
.mobile-nav a:hover {
  color: #00adee;
  transform: translateY(-2px);
  transition: transform 0.2s, color 0.2s;
}

