/* ══════════════════════════════════════════════════════════════════════════
   Linh Tran — Unified Navigation
   Pixel-identisch zum Landing-Page-Nav, aber ohne Tailwind-Abhaengigkeit.
   Einbinden mit:  <link rel="stylesheet" href="nav.css" />
   ══════════════════════════════════════════════════════════════════════════ */

/* Inter-Font wird bereits global über den <style>-Block jeder Seite geladen
   (Weight-Range 300-900). Hier KEIN eigener @import — sonst entsteht eine
   zusätzliche Request-Kette, die LCP verzögert. */

.ln-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #1f1f1f;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}
.ln-nav {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 56px;
  margin: 0;
}
@media (min-width: 768px) {
  .ln-nav { height: 48px; padding: 0 24px; }
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.ln-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  flex-shrink: 0;
}
.ln-logo img {
  height: 28px; width: auto; display: block;
  filter: drop-shadow(0 0 2px rgba(230, 60, 47, 0.3));
}
.ln-logo span {
  font-size: 16px; font-weight: 700; letter-spacing: 0.06em;
  color: #ffffff; text-transform: uppercase;
  line-height: 1;
}

/* ── Desktop Links ────────────────────────────────────────────────────────── */
.ln-links {
  display: none;
  align-items: center; gap: 2px;
}
@media (min-width: 768px) {
  .ln-links { display: flex; }
}
.ln-links a {
  display: inline-flex; align-items: center; height: 36px;
  padding: 0 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: #a1a1aa; text-transform: uppercase; text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.ln-links a:hover { color: #ffffff; background: rgba(255,255,255,0.05); }
.ln-links a.ln-active { color: #ffffff; }

/* ── Desktop Mega-Menü ────────────────────────────────────────────────── */
.ln-group { position: relative; }
.ln-group-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 36px;
  padding: 0 12px; border: none; background: transparent;
  font-family: inherit;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  color: #a1a1aa; text-transform: uppercase;
  cursor: pointer; border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.ln-group-trigger:hover,
.ln-group--open .ln-group-trigger { color: #ffffff; background: rgba(255,255,255,0.05); }
.ln-group-trigger.ln-active { color: #ffffff; }
.ln-group-trigger .ln-caret {
  transition: transform 0.2s ease;
  flex-shrink: 0; opacity: 0.7;
}
.ln-group--open .ln-group-trigger .ln-caret { transform: rotate(180deg); opacity: 1; }

.ln-mega {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 32px));
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid #1f1f1f; border-radius: 8px;
  padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  z-index: 200;
}
.ln-group--open .ln-mega,
.ln-group:focus-within .ln-mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.ln-group:focus-within .ln-group-trigger { color: #ffffff; background: rgba(255,255,255,0.05); }
.ln-group:focus-within .ln-group-trigger .ln-caret { transform: rotate(180deg); opacity: 1; }
.ln-mega-item {
  display: flex; align-items: center;
  height: 36px; padding: 0 12px;
  border-radius: 5px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4d4d8; text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}
.ln-mega-item:hover { background: rgba(255,255,255,0.05); color: #ffffff; }
.ln-mega-item--active {
  color: #ffffff;
  background: rgba(230,60,47,0.08);
  box-shadow: inset 2px 0 0 #e63c2f;
  padding-left: 14px;
}

/* ── CTA Button ───────────────────────────────────────────────────────────── */
.ln-cta {
  display: inline-flex; align-items: center; height: 36px;
  margin-left: 12px; padding: 0 20px;
  background: #e63c2f; color: #ffffff !important; border: none;
  border-radius: 9999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer; white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 0 0 0 rgba(230,60,47,0);
}
.ln-cta:hover {
  background: #e63c2f;
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(230,60,47,0.25);
}

/* ── Mobile Hamburger ─────────────────────────────────────────────────────── */
.ln-burger {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid #333333; border-radius: 6px;
  background: transparent; color: #ffffff;
  cursor: pointer; padding: 0;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .ln-burger { display: none; }
}
.ln-burger-icon { position: relative; width: 18px; height: 14px; display: block; }
.ln-burger-icon span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: #ffffff; border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.ln-burger-icon .ln-bt { top: 0; }
.ln-burger-icon .ln-bm { top: 6px; }
.ln-burger-icon .ln-bb { top: 12px; }
.ln-burger[aria-expanded="true"] .ln-burger-icon .ln-bt { top: 6px; transform: rotate(45deg); }
.ln-burger[aria-expanded="true"] .ln-burger-icon .ln-bm { opacity: 0; }
.ln-burger[aria-expanded="true"] .ln-burger-icon .ln-bb { top: 6px; transform: rotate(-45deg); }

/* ── Mobile Menu Overlay ──────────────────────────────────────────────────── */
.ln-mobile {
  position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #262626;
  padding: 20px; z-index: 99;
  display: none; flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.ln-mobile.ln-open { display: flex; }
@media (min-width: 768px) { .ln-mobile.ln-open { display: none; } }

.ln-mobile-links { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.ln-mobile-links a {
  display: flex; align-items: center; height: 44px;
  padding: 0 12px; border-radius: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  color: #d4d4d8; text-transform: uppercase; text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.ln-mobile-links a:hover { color: #ffffff; background: rgba(255,255,255,0.05); }
.ln-mobile-links a.ln-active { color: #ffffff; }

/* ── Mobile Accordion-Gruppe ──────────────────────────────────────────── */
.ln-mobile-group { display: flex; flex-direction: column; }
.ln-mobile-group-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 44px;
  padding: 0 12px; border: none; background: transparent;
  font-family: inherit;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  color: #d4d4d8; text-transform: uppercase;
  cursor: pointer; border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
  text-align: left;
}
.ln-mobile-group-trigger:hover { color: #ffffff; background: rgba(255,255,255,0.05); }
.ln-mobile-group-trigger.ln-active { color: #ffffff; }
.ln-mobile-plus {
  font-size: 22px; font-weight: 300; line-height: 1; color: #e63c2f;
  transition: transform 0.25s ease;
  display: inline-block;
}
.ln-mobile-group-trigger[aria-expanded="true"] .ln-mobile-plus {
  transform: rotate(45deg);
}
.ln-mobile-group-panel {
  display: flex; flex-direction: column; gap: 2px;
  margin: 4px 0 8px 8px; padding: 4px 0 4px 14px;
  border-left: 2px solid #e63c2f;
}
.ln-mobile-group-panel a {
  height: 40px; padding: 0 12px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center;
  border-radius: 6px;
  text-transform: uppercase; text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.ln-mobile-group-panel a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.ln-mobile-group-panel a.ln-active { color: #fff; }
.ln-mobile-group-panel[hidden] { display: none; }

.ln-mobile-cta {
  margin-top: auto; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 24px;
  background: #e63c2f; color: #ffffff !important; border: none;
  border-radius: 9999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  box-shadow: 0 0 0 0 rgba(230,60,47,0);
}
.ln-mobile-cta:hover {
  background: #e63c2f;
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(230,60,47,0.25);
}

/* ── Top-Spacer (damit fixed Nav nicht den Content verdeckt) ──────────────── */
.ln-spacer { height: 56px; }
@media (min-width: 768px) { .ln-spacer { height: 48px; } }

/* ══════════════════════════════════════════════════════════════════════════
   Standard Hover-Effekt für rote Brand-Buttons (site-weit)
   Anwendung: .btn-cta auf jedem Button/Link, oder automatisch via .btn-primary,
   .btn-red, .ln-cta — gleicher Effekt überall.
   ══════════════════════════════════════════════════════════════════════════ */
.btn-cta,
.btn-primary,
.btn-red {
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 0 0 0 rgba(230,60,47,0);
  color: #ffffff !important;
}
.btn-cta:hover,
.btn-primary:hover,
.btn-red:hover,
.ln-cta:hover,
.ln-mobile-cta:hover {
  background: #e63c2f !important;
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(230,60,47,0.25);
}

/* Eigene Definition für `.btn-cta` Standard-CTA Button */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.625rem;
  height: 3rem; padding: 0 2rem;
  background: #e63c2f;
  border: none; border-radius: 9999px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  font-family: inherit;
}

/* Auch alle Tailwind-Buttons mit Brand-Hintergrund (#e63c2f) erhalten den Effekt */
a[class*="bg-[#e63c2f]"],
button[class*="bg-[#e63c2f]"] {
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 0 0 0 rgba(230,60,47,0);
  color: #ffffff !important;
}
a[class*="bg-[#e63c2f]"]:hover,
button[class*="bg-[#e63c2f]"]:hover {
  background-color: #e63c2f !important;
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(230,60,47,0.25);
}

/* ══════════════════════════════════════════════════════════════════════════
   Globale Accessibility-Defaults (sitewide via nav.css)
   ══════════════════════════════════════════════════════════════════════════ */

/* Sichtbarer Tastatur-Fokus auf allen interaktiven Elementen */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #e63c2f;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip-Link: visuell komplett unsichtbar (clip-path + 1px), erst bei
   Tastatur-Fokus sichtbar. Klick/Touch zeigt ihn NICHT, weil :focus-visible
   nur auf echte Tastatur-Navigation reagiert. */
.skip-to-main {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: #e63c2f;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.skip-to-main:focus-visible {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border-radius: 6px;
  z-index: 10000;
}

/* prefers-reduced-motion: alle Animationen runterregeln, Hero-Video pausieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  video[autoplay] {
    /* Bewegtbild ist fürs UX nicht zwingend nötig — auf erste Frame zeigen */
    animation-play-state: paused !important;
  }
}
