/* SEGELKEN — Hauptnavigation links (HERO-Ablösung, GF 15.11.2026).
   Eine feste Leiste auf jeder Seite: von überall überall hin und zurück. Aufbau und Logik in haupt.js.
   Breit (ab 1000 px): Leiste steht links, die Seite rückt ein. Schmal: Balken oben mit „Menü“, Leiste fährt herein.
   Das HUD (index.html) bekommt die Leiste nur breit; schmal bleibt es bei seinen Reitern. */
#hn, #hn-balken, #hn-schleier { display: none; }
#hn, #hn-balken { font: 500 14px/1.3 'Inter', 'Segoe UI', Arial, sans-serif; letter-spacing: 0; }
#hn *, #hn-balken * { box-sizing: border-box; }

#hn {
  position: fixed; left: 0; top: 0; bottom: var(--testbanner, 0px); width: 212px; z-index: 25;
  background: #0B2C13; color: #fff; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
}
#hn .hn-marke { display: block; padding: 18px 18px 12px; color: #fff; text-decoration: none; }
#hn .hn-marke b { display: block; font-weight: 700; font-size: 15px; letter-spacing: .14em; }
#hn .hn-marke span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 2px; }
#hn .hn-gruppe { padding: 14px 18px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
#hn a.hn-p {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px;
  padding: 7px 18px 7px 15px; border-left: 3px solid transparent; color: rgba(255,255,255,.86); text-decoration: none; cursor: pointer;
}
#hn a.hn-p:hover { background: rgba(255,255,255,.08); color: #fff; }
#hn a.hn-p:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
#hn a.hn-p.an { background: rgba(255,255,255,.12); border-left-color: #35B86B; color: #fff; font-weight: 600; }
#hn .hn-zahl { background: #fff; color: #0B2C13; border-radius: 9px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
#hn .hn-fuss { margin-top: auto; padding: 10px 0 12px; border-top: 1px solid rgba(255,255,255,.14); }
#hn .hn-wer { padding: 6px 18px 2px; font-size: 12px; color: rgba(255,255,255,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#hn-balken {
  position: fixed; left: 0; right: 0; top: 0; height: 44px; z-index: 24; background: #0B2C13; color: #fff;
  align-items: center; gap: 12px; padding: 0 12px;
}
#hn-balken button { background: none; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; color: #fff; font: inherit; font-weight: 600; padding: 6px 12px; min-height: 32px; cursor: pointer; }
#hn-balken b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hn-schleier { position: fixed; inset: 0; z-index: 24; background: rgba(0,0,0,.45); }

/* Rolle Montage: Reiter zur Auftragsakte weg (am Server gesperrt), in jeder Breite */
body.hn-montage .kopf .tabs button[data-v="auftraege"] { display: none; }

@media (min-width: 1000px) {
  body.hn #hn { display: flex; }
  body.hn { padding-left: 212px; }
  /* HUD: oben liegt das Vorschau-Banner; die Reiter und die Seiten-Links stehen jetzt links */
  body.hn.hn-hud #hn { top: 24px; }
  body.hn.hn-hud .kopf .tabs, body.hn.hn-hud .kopf .zeit a.mini { display: none; }
  /* was im HUD fest am linken Rand klebt, rückt neben die Leiste: Werkstätten, Laufband, Eingabezeile */
  body.hn.hn-hud #v-werkstatt, body.hn.hn-hud #v-auftragswerkstatt, body.hn.hn-hud .ticker, body.hn.hn-hud #konsole { left: 212px; }
}
@media (max-width: 999px) {
  body.hn:not(.hn-hud) { --hn-oben: 44px; padding-top: 44px; }
  body.hn:not(.hn-hud) #hn-balken { display: flex; }
  body.hn:not(.hn-hud).hn-offen #hn { display: flex; z-index: 26; width: min(280px, 86vw); box-shadow: 0 0 40px rgba(0,0,0,.4); }
  body.hn:not(.hn-hud).hn-offen #hn-schleier { display: block; }
  body.hn:not(.hn-hud) #hn a.hn-p { min-height: 44px; }
}
@media print { #hn, #hn-balken, #hn-schleier { display: none !important; } body.hn { padding: 0 !important; } }
