/* ============================================================
   Nav-Komponente · Top-Nav + Mega-Menu-Dropdowns + Mobile-Burger
   Wird auf jeder Seite über svw-shell.js injiziert.
   ============================================================ */
.web-nav {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 56px;
  background: white; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.web-nav .logo { display: flex; align-items: center; gap: 14px; }
.web-nav .logo img { height: 44px; }
.web-nav .logo .div { width: 1px; height: 28px; background: rgba(0,0,0,0.18); }
.web-nav .logo .liga img { height: 30px; }
.web-nav .menu { display: flex; gap: 28px; align-items: center; }
.web-nav .menu .item {
  position: relative;
}
.web-nav .menu .item > a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(14,14,18,0.65); text-decoration: none;
  transition: color .12s;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 0;
}
.web-nav .menu .item > a:hover { color: var(--ink); }
.web-nav .menu .item > a.on { color: var(--red); font-weight: 700; }
.web-nav .menu .item > a.has-sub::after {
  content: "▾"; font-size: 9px; opacity: 0.5; margin-top: -1px;
  transition: transform .15s;
}
.web-nav .menu .item:hover > a.has-sub::after { transform: rotate(180deg); opacity: 1; }

/* ============================================================
   MEGA-MENU · Dropdown unter Top-Nav-Items
   ============================================================ */
.web-nav .mega {
  position: absolute; top: 100%; left: -24px;
  min-width: 360px;
  background: var(--ink); color: white;
  padding: 20px 0;
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: all .15s;
  z-index: 100;
}
.web-nav .mega::before {
  content: "";
  position: absolute; top: 0; left: 24px;
  width: 60px; height: 3px;
  background: var(--red);
}
.web-nav .menu .item:hover > .mega,
.web-nav .menu .item:focus-within > .mega,
.web-nav .menu .item.mega-open > .mega {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
/* Mega gap-bridge — Hover über die Lücke zwischen Item und Mega hält Mega offen */
.web-nav .menu .item::before {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}
.web-nav .mega .col {
  display: flex; flex-direction: column;
}
.web-nav .mega .head {
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 28px; text-transform: uppercase; line-height: 0.95;
  padding: 0 28px 14px;
  letter-spacing: 0.005em;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 8px;
}
.web-nav .mega .head .r { color: var(--red); }
.web-nav .mega .head small {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); font-weight: 700;
  margin-bottom: 6px; font-style: normal;
}
.web-nav .mega a.sub {
  display: block;
  padding: 10px 28px;
  text-decoration: none;
  transition: background .12s;
}
.web-nav .mega a.sub:hover { background: var(--graphite); }
.web-nav .mega a.sub.on { background: linear-gradient(90deg, rgba(226,0,26,0.20) 0%, transparent 100%); }
.web-nav .mega a.sub .ico {
  width: 32px; height: 32px;
  background: var(--steel); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 16px; line-height: 1; letter-spacing: 0;
}
.web-nav .mega a.sub:hover .ico { background: var(--red); color: white; }
.web-nav .mega a.sub.on .ico { background: var(--red); color: white; }
.web-nav .mega a.sub .text {
  font-family: var(--body); font-size: 14px; line-height: 1.3;
  color: white; font-weight: 500;
}
.web-nav .mega a.sub .text small {
  display: block; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; color: rgba(255,255,255,0.55); margin-top: 2px;
  text-transform: uppercase; font-weight: 600;
}
.web-nav .mega .cta-row {
  padding: 14px 28px 0;
  margin-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.web-nav .mega .cta-row a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: white; text-decoration: none;
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 14px; padding: 10px 16px; text-transform: uppercase;
  letter-spacing: 0.02em;
}
.web-nav .mega .cta-row a:hover { background: var(--red-deep); color: white; }

.web-nav .cta {
  background: var(--red); color: white; text-decoration: none;
  font-family: var(--display); font-weight: 900; font-style: normal;
  font-size: 16px; letter-spacing: 0.02em;
  padding: 12px 22px; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .12s;
}
.web-nav .cta:hover { background: var(--red-deep); }

/* Burger ist auf Desktop unsichtbar */
.web-nav .burger { display: none; }

/* ---------------- TABLET · ≤ 1024px ---------------- */
@media (max-width: 1024px) {
  .web-nav { flex-wrap: wrap; padding: 16px 22px; }
  .web-nav .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0; margin-left: auto;
    background: none; border: 0; cursor: pointer;
  }
  .web-nav .burger span {
    display: block; width: 26px; height: 2px; background: var(--ink);
    transition: transform .2s, opacity .2s;
  }
  .web-nav.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .web-nav.nav-open .burger span:nth-child(2) { opacity: 0; }
  .web-nav.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .web-nav .menu {
    display: none; flex-basis: 100%; flex-direction: column; gap: 0; margin-top: 12px;
  }
  .web-nav.nav-open .menu { display: flex; }
  .web-nav .menu .item { width: 100%; position: static; }
  .web-nav .menu .item > a {
    display: flex; width: 100%; padding: 15px 4px;
    font-size: 13px; letter-spacing: 0.18em; color: var(--ink);
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .web-nav .menu .item > a.has-sub::after { display: none; }
  .web-nav .menu .item > a.on { color: var(--red); }
  .web-nav .mega { display: none !important; }  /* keine Hover-Dropdowns auf Touch */
  .web-nav .cta { display: none; }
  .web-nav.nav-open .cta {
    display: inline-flex; flex-basis: 100%; justify-content: center; margin-top: 12px;
  }
}
