/* =====================================================================
   STARPORT · gemeinsamer Seitenkopf (src/header.js) – Startseite, Layout-Seiten, Cloud.
   Eigenständig (feste Werte statt Seiten-Variablen), damit der Kopf überall gleich aussieht.
   ===================================================================== */
.sp-header{position:sticky;top:0;left:0;right:0;z-index:50;background:#000;border-bottom:1px solid rgba(255,255,255,.12)}
.sp-header--fixed{position:fixed}
.sp-wrap{max-width:1320px;height:71px;margin:0 auto;padding:0 clamp(20px,4vw,56px);width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}
.sp-right{display:flex;align-items:center;gap:18px;min-width:0;flex:0 1 auto}
.sp-left{display:flex;align-items:center;gap:14px;min-width:0}
.sp-brand{display:flex;align-items:center;flex:none;color:#f2f2f2;text-decoration:none}
.sp-logo{display:block;height:22px;width:auto}
.sp-mark{display:none;height:22px;width:auto}
/* Bereichsname: dünner grauer Trenner, ~60 % der Logohöhe, normale (nicht breite) Schrift, hellgrau – keine eigene Marke */
.sp-div{width:1px;height:22px;background:#555;flex:none}
.sp-sec{font-family:"Archivo",system-ui,sans-serif;font-variation-settings:"wdth" 100;font-weight:400;font-size:13px;line-height:1;letter-spacing:.14em;text-transform:uppercase;color:#a8a8a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
/* Rechts: ID-Button (Umriss) bzw. Anmelden (gefüllt) – exakt wie auf der Startseite */
.sp-id,.sp-auth{display:inline-flex;align-items:center;gap:12px;height:40px;padding:0 16px;border:1px solid rgba(255,255,255,.28);background:transparent;color:#f2f2f2;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.6875rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;white-space:nowrap;flex:0 1 auto;min-width:0;transition:border-color .2s,background .2s,color .2s}
.sp-id:hover,.sp-id[aria-current="page"]{border-color:#f2f2f2}
.sp-auth{background:#f2f2f2;color:#000;border-color:#f2f2f2}
.sp-auth:hover{background:transparent;color:#f2f2f2}
.sp-id:focus-visible,.sp-auth:focus-visible,.sp-brand:focus-visible{outline:1px solid #f2f2f2;outline-offset:3px}
.sp-user{overflow:hidden;text-overflow:ellipsis;min-width:0}
.sp-lv{color:#8a8a8a;flex:none}
.sp-badge{width:22px;height:22px;flex:none}
.sp-badge .ln,.sp-badge .cv{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:square}
.sp-badge .cv{stroke:#555}
.sp-badge .ch4{display:none}
.sp-id[data-lv="1"] .c1,.sp-id[data-lv="2"] .c1,.sp-id[data-lv="2"] .c2,.sp-id[data-lv="3"] .cv{stroke:#7B3FE4}
.sp-id[data-lv="4"] .ch3{display:none}
.sp-id[data-lv="4"] .ch4{display:inline}
.sp-id[data-lv="4"] .ch4 .cv{stroke:#7B3FE4}
/* 821–960 px: nichts drängt sich – etwas kompakter */
@media (max-width:960px){
  .sp-id,.sp-auth{padding:0 12px;gap:10px;letter-spacing:.12em}
}
/* Mobil: ID-Button nur Badge + Name; mit Bereichsname nur Bildmarke statt Kombi-Logo */
@media (max-width:560px){
  .sp-lv{display:none}
  .sp-logo{height:18px}
  .sp-wrap{gap:12px}
  .sp-left{gap:10px}
  .sp-sec{font-size:12px;letter-spacing:.12em}
  .sp-div{height:18px}
}
@media (max-width:480px){
  .sp-left.has-sec .sp-logo{display:none}
  .sp-left.has-sec .sp-mark{display:block}
}

/* ---------- Status-Symbol (src/status.js) ----------
   Online #9fe3b8 · Beeinträchtigt #F5C542 · Offline #ff6b5b · Wartung #5B9BFF · Hinweis-Punkt #7B3FE4 */
.sp-status{--st:#9fe3b8;display:inline-flex;align-items:center;gap:10px;height:40px;color:#a8a8a8;text-decoration:none;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.6875rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;flex:none}
.sp-status:hover{color:#f2f2f2}
.sp-status:focus-visible{outline:1px solid #f2f2f2;outline-offset:3px}
.sp-status[data-st="degraded"]{--st:#F5C542}
.sp-status[data-st="offline"]{--st:#ff6b5b}
.sp-status[data-st="maintenance"]{--st:#5B9BFF}
.sp-sq{position:relative;display:block;width:8px;height:8px;background:var(--st);flex:none;animation:sp-glow 1.4s ease-out .2s 1 both}
.sp-dot{position:absolute;top:-4px;right:-4px;width:5px;height:5px;border-radius:50%;background:#7B3FE4;box-shadow:0 0 0 1.5px #000}
@keyframes sp-glow{0%{box-shadow:0 0 0 0 transparent}35%{box-shadow:0 0 10px 3px var(--st)}100%{box-shadow:0 0 0 0 transparent}}
@media (prefers-reduced-motion:reduce){.sp-sq{animation:none}}
/* Streifen „Wartungsmodus aktiv“ – nur Admin/Team während einer Wartung */
.sp-strip{height:22px;display:flex;align-items:center;justify-content:center;background:#5B9BFF;color:#000;font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.625rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 12px}
body:has(.sp-strip){--header-h:94px}
@media (max-width:960px){.sp-right{gap:14px}}
@media (max-width:560px){.sp-st-w{display:none}.sp-status{gap:0;padding:0 2px}.sp-right{gap:12px}}
