/* ============================================================
   nytic.ch – Hauptmenü (includes/navbar.php)
   Schwebende Leiste mit Kapsel, Handy-Menü über den ganzen Bildschirm
   ============================================================ */

.nx-nav {
  position: fixed; top: 12px; left: 50%; z-index: 1040;
  width: min(1180px, calc(100% - 32px)); transform: translateX(-50%);
  transition: top .35s ease;
  /* altes Bootstrap-Menü neutralisieren */
  padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.nx-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: 6px 6px 6px 20px; border-radius: 999px;
  background: rgba(16, 18, 15, .62); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
}
.nx-nav.is-scrolled { top: 8px; }
.nx-nav.is-scrolled .nx-bar { background: rgba(10, 11, 9, .88); border-color: rgba(144, 190, 32, .22); padding-top: 4px; padding-bottom: 4px; }

.nx-logo { display: flex; align-items: center; flex: 0 0 auto; margin-right: auto; }
.nx-logo img { display: block; height: 24px; width: auto; transition: height .3s ease; }
.nx-nav.is-scrolled .nx-logo img { height: 21px; }

/* Links mit gleitender Kapsel */
.nx-links { position: relative; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nx-links li { position: relative; z-index: 1; }
.nx-links a {
  display: block; padding: .5rem 1rem; border-radius: 999px;
  font-family: 'Thasadith', sans-serif; font-size: .95rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
  color: rgba(255, 255, 255, .78); text-decoration: none; white-space: nowrap;
  transition: color .25s ease;
}
.nx-links a:hover, .nx-links a:focus-visible { color: #fff; text-decoration: none; }
.nx-links a.is-hot { color: #0b0c0a; }
.nx-links a:focus-visible { outline: 2px solid rgba(255, 255, 255, .6); outline-offset: 2px; }
.nx-ind {
  position: absolute !important; z-index: 0 !important; left: 0; top: 0; bottom: 0;
  width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 999px;
  background: var(--nx-c, #90BE20); box-shadow: 0 0 18px -2px var(--nx-c, #90BE20);
  opacity: 0; pointer-events: none;
}
.nx-ind.is-on { opacity: 1; }
.nx-nav.is-ready .nx-ind { transition: transform .38s cubic-bezier(.2, .8, .2, 1), width .38s cubic-bezier(.2, .8, .2, 1), background-color .3s, box-shadow .3s, opacity .25s; }

/* Support-Knopf mit Live-Punkt */
.nx-support {
  display: inline-flex; align-items: center; gap: .5rem; flex: 0 0 auto;
  padding: .55rem 1.1rem; border-radius: 999px;
  font-family: 'Thasadith', sans-serif; font-size: .95rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
  color: #0b0c0a; background: #90BE20; text-decoration: none;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.nx-support:hover, .nx-support:focus-visible { color: #0b0c0a; background: #a6d42c; text-decoration: none; box-shadow: 0 0 22px -4px #90BE20; }
.nx-support.is-active { box-shadow: 0 0 0 2px #0b0c0a, 0 0 0 3.5px #90BE20; }
.nx-support i, .nx-mhours i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: rgba(11, 12, 10, .45); }
.nx-support.is-open i { background: #0b0c0a; }
.nx-support.is-open i::after, .nx-mhours.is-open i::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: nxPing 1.8s ease-out infinite;
}
@keyframes nxPing { from { transform: scale(1); opacity: .7; } to { transform: scale(2.6); opacity: 0; } }

/* Burger (nur Handy) */
.nx-burger {
  display: none; position: relative; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); cursor: pointer;
}
.nx-burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1); }
.nx-burger span:first-child { top: 17px; }
.nx-burger span:last-child { top: 24px; }
.nx-open .nx-burger span:first-child { top: 20.5px; transform: rotate(45deg); }
.nx-open .nx-burger span:last-child { top: 20.5px; transform: rotate(-45deg); }
.nx-burger:focus-visible { outline: 2px solid #90BE20; outline-offset: 2px; }

/* Handy-Menü */
.nx-overlay {
  position: fixed; inset: 0; z-index: 1035; display: flex; flex-direction: column; justify-content: center;
  padding: 96px 28px 32px; background: rgba(8, 9, 7, .97);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.nx-overlay-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(144, 190, 32, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(144, 190, 32, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(80% 60% at 30% 40%, #000, transparent); mask-image: radial-gradient(80% 60% at 30% 40%, #000, transparent);
}
.nx-open .nx-overlay { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.nx-open, .nx-open body { overflow: hidden; }
.nx-mlinks { position: relative; margin: 0 0 auto; padding: 0; list-style: none; }
.nx-mlinks li, .nx-mfoot { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.nx-open .nx-mlinks li, .nx-open .nx-mfoot { opacity: 1; transform: none; transition-delay: calc(.06s + var(--i) * .05s); }
.nx-mlinks a {
  display: flex; align-items: baseline; gap: .9rem; padding: .45rem 0;
  font-family: 'Thasadith', sans-serif; font-weight: 700; font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.1;
  color: #fff; text-decoration: none;
}
.nx-mlinks a span { font: 700 .75rem ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .08em; color: rgba(255, 255, 255, .35); }
.nx-mlinks a.is-active, .nx-mlinks a.is-active span { color: var(--nx-c); }
.nx-mlinks a:hover, .nx-mlinks a:focus-visible { color: var(--nx-c); text-decoration: none; }
.nx-mfoot { position: relative; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.nx-mhours { display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.nx-mhours i { background: rgba(255, 255, 255, .35); }
.nx-mhours.is-open { color: #c8f06a; }
.nx-mhours.is-open i { background: #90BE20; }
.nx-mactions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.nx-mactions a {
  display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem; border-radius: 14px;
  font-size: .95rem; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
}
.nx-mactions a:hover { color: #fff; border-color: #90BE20; text-decoration: none; }
.nx-mactions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1100px) {
  .nx-links a { padding: .5rem .75rem; font-size: .9rem; }
  .nx-support { padding: .55rem .9rem; }
}
@media (max-width: 991.98px) {
  .nx-nav { top: 10px; width: calc(100% - 24px); }
  .nx-bar { padding: 5px 5px 5px 18px; }
  .nx-links, .nx-support { display: none; }
  .nx-burger { display: block; }
}
@media (min-width: 992px) {
  .nx-overlay { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-nav *, .nx-overlay * { transition: none !important; animation: none !important; }
}
@media print {
  .nx-nav, .nx-overlay { display: none !important; }
}
