/* KapFixIT Kurvenleiste auf kapfixit.de (15.11.2026)
   Baustein: kfx-kurvenleiste.css/.js (gleich wie im TrafficDashboard).
   Die Links stehen als echtes HTML in jeder Seite. Ohne JavaScript zeigt ein noscript-Block die bisherige Kopfnavigation. */

html:not(.kl-an) #kfx-leiste { display: none; }

/* Hell: Seite schaltet über #kfx-root.welt-tag, leiste.js setzt data-hell an die Leiste */
#kfx-leiste[data-hell] .kl-fuss { border-top-color: rgba(14, 27, 42, .12); }
@media (max-width: 980px) {
  #kfx-leiste[data-hell] { --kl-grund: rgba(255, 255, 255, .78); }
}

/* Die Kopfnavigation steckt jetzt in der Leiste (Links bleiben im HTML). Ohne Bedingung, damit beim Laden
   nichts springt. Ohne JavaScript holt ein noscript-Block die Kopfnavigation zurück. */
nav:is(.kfx-nav, .u-nav, .p-nav) { display: none; }

/* Desktop: schwebt links, senkrecht mittig, eingeklappt als Start */
@media (min-width: 981px) {
  #kfx-leiste {
    --kl-hoehe: min(660px, calc(100vh - 2 * var(--kl-abstand)));
    top: calc((100vh - var(--kl-hoehe)) / 2);
    bottom: auto;
    height: var(--kl-hoehe);
  }
  /* Inhalt rückt nur so weit ein, wie die Leiste ihn sonst verdecken würde */
  .kfx-wrap { padding-left: max(40px, calc(124px - (100vw - 1320px) / 2)); }
  :is(.u-wrap, .p-wrap) { padding-left: max(40px, calc(124px - (100vw - 1200px) / 2)); }
  .kfx-leiste-knopf { display: none !important; }
}

/* Das bisherige Handy-Menü aus glanz.js wird durch das Glasblatt der Leiste ersetzt */
html.kl-an :is(.kfx-menue-knopf, #kfx-menue) { display: none !important; }

/* Menüknopf im Kopf (Handy und Tablet), im Stil der runden Kopfknöpfe */
.kfx-leiste-knopf {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--linie); background: transparent;
  color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.kfx-leiste-knopf svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.kfx-leiste-knopf:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
