/* Konzertplaner Plattform-Kopfleiste — eigenständig, funktioniert auf hellen
   App-Seiten UND im dunklen Planer (keine body-/globalen Regeln!) */

.kp-topbar {
  /* Defensive Werte, damit Engine-/CMF-Stylesheets die Leiste nicht verformen */
  /* Sticky: bleibt beim Scrollen oben kleben (App-Auth-Seiten + CMF-Webseite,
     dort als erstes <body>-Kind eingesetzt). Der Planer (Engine) hat eine
     eigene Sticky-Toolbar und setzt die Leiste per Inline-Style zurück auf
     static (siehe planer.php → kp_platform_head_html). z-index 200: über
     CMF-Nav/Suche (50/100), unter Skip-Link/Dialog (1000). */
  position: sticky;
  top: 0;
  z-index: 200;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #16213a;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-align: left;
}
.kp-topbar * { box-sizing: border-box; }
.kp-topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.kp-marke {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  letter-spacing: .01em;
}
.kp-marke img { display: block; width: 34px; height: 34px; }
.kp-topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.kp-topnav-link {
  color: #aeb6c8;
  text-decoration: none;
  font-size: 14px;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  padding: 7px 12px;
  border-radius: 8px;
  line-height: 1;
}
.kp-topnav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}
/* Eigener Fokus-Indikator — die App-Auth-Seiten laden base.css nicht, daher
   nicht auf den globalen :focus-visible-Stil verlassen. */
.kp-marke:focus-visible,
.kp-topnav-link:focus-visible {
  outline: 2px solid #5b8def;
  outline-offset: 2px;
}
.kp-topnav-link.aktiv {
  color: #fff;
  background: #3a5fc4;
}
/* "Anmelden" als hervorgehobene Aktion — überall blau hinterlegt (App + CMF) */
.kp-topnav-link.kp-topnav-cta {
  color: #fff;
  background: #3a5fc4;
}
.kp-topnav-link.kp-topnav-cta:hover {
  color: #fff;
  background: #2f4fa0;
}
.kp-topnav-link.kp-abmelden {
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
}
@media (max-width: 560px) {
  .kp-topbar-inner { gap: 10px; }
  .kp-topnav { margin-left: 0; }
}

/* Sprungziele (Skip-Link "Zum Inhalt springen") nicht unter der klebenden
   Leiste verstecken: Versatz in Höhe der Leiste. Greift auf der CMF-Webseite
   (#main-content) und den App-Auth-Seiten (.app-main). */
#main-content,
.app-main { scroll-margin-top: 64px; }
