/**
 * Shell-Topnav = lireno-landing.html (NAV + Breakpoints 901px / 900px), nur #tb-site-shell-nav.
 * Ersetzt lireno-shell-nav-parity.css — eine Quelle, keine konkurrierenden Shell-Overrides.
 */

#tb-site-shell-nav.tb-topnav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(247, 245, 240, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tb-border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#tb-site-shell-nav .tb-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 48px 8px;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#tb-site-shell-nav .tb-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#tb-site-shell-nav .tb-lireno-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

#tb-site-shell-nav .tb-lireno-logo img {
  height: 28px;
  width: auto;
  max-width: 140px;
  display: block;
}

#tb-site-shell-nav .tb-mod-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(24px, 3vw, 32px);
  padding: 10px 48px 14px;
  border-top: 1px solid rgba(214, 208, 196, 0.65);
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

#tb-site-shell-nav .tb-mod-rail__group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

#tb-site-shell-nav .tb-mod-rail__group--roadmap {
  margin-left: auto;
}

#tb-site-shell-nav .tb-mod {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--tb-border);
  background: var(--tb-white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

#tb-site-shell-nav .tb-mod--ready {
  border-color: rgba(26, 107, 60, 0.55);
  background: rgba(26, 107, 60, 0.11);
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

#tb-site-shell-nav .tb-mod--ready:hover {
  border-color: rgba(26, 107, 60, 0.95);
  box-shadow:
    0 0 0 1px rgba(26, 107, 60, 0.28),
    0 10px 28px rgba(26, 107, 60, 0.28);
}

#tb-site-shell-nav .tb-mod--ready a {
  color: var(--tb-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.01em;
}

#tb-site-shell-nav .tb-mod--ready a:hover {
  color: var(--tb-accent);
  text-decoration: none;
}

#tb-site-shell-nav .tb-mod--soon {
  opacity: 0.4;
  color: var(--tb-muted);
  border-style: dashed;
  border-color: rgba(107, 114, 128, 0.38);
  cursor: default;
  pointer-events: none;
  font-weight: 600;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.62);
}

#tb-site-shell-nav .tb-mod--roadmap {
  border-width: 1px;
  border-style: solid;
  border-color: rgba(100, 116, 139, 0.42);
  background: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 15px;
}

#tb-site-shell-nav .tb-mod--roadmap a,
#tb-site-shell-nav a.tb-mod--roadmap {
  color: var(--tb-muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

#tb-site-shell-nav .tb-mod--roadmap a:hover {
  color: var(--tb-ink);
  text-decoration: none;
}

#tb-site-shell-nav .nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

#tb-site-shell-nav .nav-links--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  width: 100%;
  justify-content: flex-end;
}

#tb-site-shell-nav .nav-links__langs {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#tb-site-shell-nav .nav-links__langs .tb-lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

#tb-site-shell-nav .nav-links__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

#tb-site-shell-nav .nav-links--pages-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  justify-content: flex-end;
  gap: 12px;
}

#tb-site-shell-nav .nav-links--pages-slot .nav-links__pages {
  flex: 0 1 auto;
  min-width: 0;
}

#tb-site-shell-nav .nav-links a {
  color: var(--tb-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

#tb-site-shell-nav .nav-links a:hover {
  color: var(--tb-ink);
}

#tb-site-shell-nav .nav-cta {
  background: var(--tb-ink);
  color: var(--tb-white) !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

#tb-site-shell-nav .nav-cta:hover {
  background: var(--tb-accent) !important;
  color: var(--tb-white) !important;
}

#tb-site-shell-nav .tb-nav-inner--landing {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
}

#tb-site-shell-nav .tb-nav-trailing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

#tb-site-shell-nav .tb-nav-langs-inline {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

#tb-site-shell-nav .tb-nav-langs-inline .tb-lang-switch-wrap {
  margin-right: 0;
}

#tb-site-shell-nav .tb-nav-inner--landing .tb-brand-block,
#tb-site-shell-nav .tb-nav-inner--landing .tb-nav-langs-inline,
#tb-site-shell-nav .tb-nav-inner--landing .tb-nav-toggle {
  position: relative;
  z-index: 160;
}

#tb-site-shell-nav .tb-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--tb-border);
  border-radius: 10px;
  background: var(--tb-white);
  cursor: pointer;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

#tb-site-shell-nav .tb-nav-toggle:focus-visible {
  outline: 2px solid var(--tb-accent);
  outline-offset: 2px;
}

#tb-site-shell-nav .tb-nav-toggle-bars,
#tb-site-shell-nav .tb-nav-toggle-bars::before,
#tb-site-shell-nav .tb-nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--tb-ink);
  border-radius: 1px;
  position: relative;
}

#tb-site-shell-nav .tb-nav-toggle-bars::before,
#tb-site-shell-nav .tb-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

#tb-site-shell-nav .tb-nav-toggle-bars::before {
  top: -7px;
}

#tb-site-shell-nav .tb-nav-toggle-bars::after {
  top: 7px;
}

#tb-site-shell-nav.tb-topnav.is-nav-open .tb-nav-toggle-bars {
  background: transparent;
}

#tb-site-shell-nav.tb-topnav.is-nav-open .tb-nav-toggle-bars::before {
  transform: rotate(45deg);
  top: 0;
}

#tb-site-shell-nav.tb-topnav.is-nav-open .tb-nav-toggle-bars::after {
  transform: rotate(-45deg);
  top: 0;
}

#tb-site-shell-nav .tb-nav-slot {
  display: flex;
  align-items: center;
}

#tb-site-shell-nav .tb-lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}

#tb-site-shell-nav .tb-lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

#tb-site-shell-nav .tb-lang {
  font-size: 13px;
  text-decoration: none;
  color: var(--tb-muted);
  font-weight: 500;
}

#tb-site-shell-nav .tb-lang:hover {
  color: var(--tb-ink);
  text-decoration: underline;
}

#tb-site-shell-nav .tb-lang--active {
  color: var(--tb-ink);
  font-weight: 700;
  cursor: default;
  text-decoration: none;
}

@media (min-width: 901px) {
  #tb-site-shell-nav .tb-nav-inner.tb-nav-inner--landing {
    flex-wrap: nowrap;
  }

  #tb-site-shell-nav .tb-nav-inner--landing .tb-brand-block,
  #tb-site-shell-nav .tb-nav-inner--landing .tb-nav-trailing,
  #tb-site-shell-nav .tb-nav-inner--landing .tb-nav-langs-inline {
    order: unset;
  }

  #tb-site-shell-nav .tb-nav-inner--landing .tb-nav-toggle {
    display: none !important;
  }

  #tb-site-shell-nav .tb-nav-inner--landing .tb-nav-trailing {
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
  }

  #tb-site-shell-nav .tb-nav-inner--landing .tb-nav-slot {
    display: flex !important;
    position: static !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    justify-content: flex-end;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
    inset: auto !important;
  }

  #tb-site-shell-nav .tb-nav-langs-inline {
    flex-shrink: 0;
  }

  #tb-site-shell-nav .nav-links--split {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 16px 24px;
  }

  #tb-site-shell-nav .nav-links--pages-slot {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #tb-site-shell-nav .nav-links__pages {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  #tb-site-shell-nav .tb-nav-inner {
    padding: 10px 20px 8px;
  }

  #tb-site-shell-nav.tb-topnav {
    padding: 0 20px;
  }

  #tb-site-shell-nav .tb-nav-inner.tb-nav-inner--landing {
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px;
  }

  #tb-site-shell-nav .tb-nav-inner--landing .tb-brand-block {
    order: 1;
    flex: 0 1 auto;
    min-width: 0;
  }

  #tb-site-shell-nav .tb-nav-inner--landing .tb-nav-langs-inline {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 4px;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
  }

  #tb-site-shell-nav .tb-nav-inner--landing .tb-nav-trailing {
    order: 3;
    margin-left: 0 !important;
    flex: 0 0 auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  #tb-site-shell-nav .tb-mod-rail {
    padding: 8px 20px 14px;
  }

  #tb-site-shell-nav .tb-mod-rail__group--roadmap {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  #tb-site-shell-nav .tb-nav-inner--landing .tb-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 160;
  }

  #tb-site-shell-nav .tb-nav-slot {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    flex-direction: column;
    align-items: stretch;
    padding: max(
        env(safe-area-inset-top, 0px) + clamp(148px, 32vh, 220px),
        148px
      )
      max(24px, env(safe-area-inset-right, 0px))
      32px
      max(24px, env(safe-area-inset-left, 0px));
    background: rgba(247, 245, 240, 0.98);
    backdrop-filter: blur(14px);
    overflow-y: auto;
  }

  #tb-site-shell-nav.tb-topnav.is-nav-open .tb-nav-slot {
    display: flex;
    z-index: 165;
  }

  #tb-site-shell-nav.tb-topnav.is-nav-open .tb-nav-inner--landing .tb-brand-block {
    z-index: 120;
  }

  #tb-site-shell-nav.tb-topnav.is-nav-open .tb-nav-inner--landing .tb-nav-langs-inline,
  #tb-site-shell-nav.tb-topnav.is-nav-open .tb-nav-inner--landing .tb-nav-toggle {
    z-index: 180;
  }

  #tb-site-shell-nav.tb-topnav.is-nav-open .tb-nav-inner--landing {
    position: relative;
    z-index: 400;
  }

  html.tb-shell-nav-open {
    overflow: hidden;
  }

  #tb-site-shell-nav .tb-nav-slot .nav-links--pages-slot {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100%;
  }

  #tb-site-shell-nav .tb-nav-slot .nav-links__pages {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100%;
  }

  #tb-site-shell-nav .tb-nav-slot .nav-links__pages > a {
    min-height: 52px;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    padding: 14px 4px;
    font-size: 16px !important;
    border-bottom: 1px solid rgba(214, 208, 196, 0.75);
    box-sizing: border-box;
  }

  #tb-site-shell-nav .tb-nav-slot .nav-links__pages > a.nav-cta {
    margin-top: 14px;
    border-radius: 12px;
    justify-content: center;
    border: 0 !important;
    background: var(--tb-ink) !important;
    color: #fff !important;
    min-height: 52px;
  }
}

/* ── Lireno Mega Menu (Theme-Layout, Original DOM) ───────── */

#tb-landing-nav .nav-links__pages .lmm-nav-container > ul.tb-main-top-menu > li > ul.sub-menu,
#tb-site-shell-nav .nav-links__pages .lmm-nav-container > ul.tb-main-top-menu > li > ul.sub-menu {
    display: none !important;
}

#tb-landing-nav .nav-links__pages .lmm-nav-container,
#tb-site-shell-nav .nav-links__pages .lmm-nav-container {
    flex: 1 1 auto;
    min-width: 0;
}

#tb-landing-nav .nav-links__pages .lmm-nav-container > ul.tb-main-top-menu,
#tb-site-shell-nav .nav-links__pages .lmm-nav-container > ul.tb-main-top-menu {
    height: auto;
}

#tb-landing-nav .tb-topnav,
#tb-landing-nav .nav-links__pages,
#tb-landing-nav .tb-nav-slot,
#tb-site-shell-nav .nav-links__pages,
#tb-site-shell-nav .tb-nav-slot {
    overflow: visible !important;
}

/* ── Lireno Mega Menu: Anti-Flicker (Hover-Brücke) ──────── */

.lmm-nav-container .lmm-has-mega,
.lmm-nav-container .lmm-has-dropdown {
    position: relative !important;
}

.lmm-nav-container .lmm-has-mega.lmm-open {
    z-index: 9020;
}

.lmm-nav-container .lmm-has-mega > .lmm-mega-panel {
    top: 100% !important;
    margin-top: 0 !important;
}

/* Unsichtbare Brücke zwischen Link und Panel (li-Ebene) */
.lmm-nav-container .lmm-has-mega::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    z-index: 9009;
}

/* Panel-Overlap nach oben — Maus verliert li nicht */
.lmm-nav-container .lmm-has-mega > .lmm-mega-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

/* Overlay darf Hover nicht blockieren (Plugin: click-outside via document) */
.lmm-overlay.lmm-visible {
    pointer-events: none !important;
}

/* Nav über Plugin-Overlay (8990) — sonst blurrt backdrop-filter das Panel */
#tb-landing-nav:has(.lmm-has-mega.lmm-open),
#tb-site-shell-nav:has(.lmm-has-mega.lmm-open) {
    z-index: 10000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Plugin-Overlay: nur Abdunklung, kein Blur */
.lmm-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.08) !important;
}

@media (min-width: 901px) {
    .lmm-overlay.lmm-visible {
        display: none !important;
    }
}

.lmm-nav-container .lmm-has-mega > .lmm-mega-panel {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#tb-landing-nav .tb-nav-inner--landing,
#tb-landing-nav .tb-nav-trailing,
#tb-landing-nav .nav-links--pages-slot,
#tb-site-shell-nav .tb-nav-inner--landing,
#tb-site-shell-nav .tb-nav-trailing,
#tb-site-shell-nav .nav-links--pages-slot {
    overflow: visible !important;
}

