/* ============================================================
   KLANG TV — Marken-Header/-Footer für CHARTSYSTEM/public
   ============================================================
   Bildet nur die OPTIK des echten KLANG-TV-Headers/-Footers nach
   (Vorlage: D:\CLAUDE\KLANGTV\css\style.css, Abschnitte "Header",
   "Footer", "Mobile nav"). Wird bewusst NICHT aus KLANGTV
   eingebunden — keine Datei-Abhängigkeit zwischen den beiden
   Projekten in irgendeine Richtung.

   Alle Selektoren sind mit "ktv-" präfixiert und ausschließlich
   innerhalb von .ktv-brandbar / .ktv-mobile-nav / .ktv-brandfooter
   gültig, damit nichts mit den bestehenden Chartsystem-Klassen
   (design-system.css / charts.css — z. B. .container, .btn,
   .site-header, .footer-claim) kollidiert. Der Chartinhalt
   (#charts-content) und dessen Desktopansicht bleiben dadurch
   unverändert.

   Farben/Maße sind bewusst als feste Werte (nicht var()) direkt
   aus KLANGTV/css/style.css übernommen, um keine :root-Variablen
   mit design-system.css zu teilen oder zu überschreiben.

   Optische Anpassungen an dieses Element bitte HIER pflegen,
   nicht in design-system.css/charts.css.
   ============================================================ */

.ktv-brandbar {
  position: sticky;   /* wie das bestehende .site-header aus charts.css — keine Layoutverschiebung des Chartinhalts */
  top: 0;
  z-index: 1000;
  height: 88px;
  display: flex;
  align-items: center;
  background: rgba(8,8,9,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
}

.ktv-brandbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: calc(100% - 80px);
  max-width: 1600px;
  margin-inline: auto;
}

.ktv-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.ktv-logo-box { width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; }
.ktv-logo-box img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

.ktv-main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.ktv-main-nav a {
  position: relative;
  padding: 10px 11px;
  font-size: 14px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b4b4ba;
  text-decoration: none;
  transition: color .2s ease;
}
.ktv-main-nav a:hover { color: #ffffff; }
.ktv-main-nav a.is-active { color: #ffffff; }
.ktv-main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px;
  background: #b445ff;
}

.ktv-header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

/* Eigenständiger, bewusst NICHT ".btn"-benannter Button, damit er
   nicht mit .btn/.btn-outline aus design-system.css kollidiert. */
.ktv-djlogin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
.ktv-djlogin-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.ktv-djlogin-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.ktv-btn-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #9b1fe0;
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease;
}
.ktv-btn-live:hover { background: #b445ff; }
.ktv-btn-live .ktv-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ffffff; display: inline-block;
  animation: ktv-pulse 1.6s infinite;
}
@keyframes ktv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

.ktv-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.ktv-burger span {
  display: block;
  width: 22px; height: 2px;
  background: #ffffff;
  transition: transform .25s ease, opacity .25s ease;
}
.ktv-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ktv-burger.is-open span:nth-child(2) { opacity: 0; }
.ktv-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile-Nav ---------- */
.ktv-mobile-nav {
  position: fixed;
  top: 88px; left: 0; right: 0; bottom: 0;
  background: rgba(6,6,7,0.98);
  z-index: 1500;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  padding: 30px 32px 40px;
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
}
.ktv-mobile-nav.is-open { transform: translateX(0); }
.ktv-mobile-nav a {
  display: block;
  padding: 18px 0;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  border-bottom: 1px solid #2a2a2e;
}
.ktv-mobile-nav a.is-active { color: #b445ff; }
.ktv-mobile-nav .ktv-djlogin-btn {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 860px) {
  .ktv-main-nav { display: none; }
  .ktv-burger { display: flex; }
  .ktv-header-actions { gap: 10px; }
  .ktv-btn-live span.ktv-label { display: none; }
  .ktv-btn-live { padding: 11px 13px; }
}

/* ---------- Footer ---------- */
.ktv-brandfooter {
  position: relative;
  z-index: 2;
  background: #0f0f11;
  border-top: 1px solid #2a2a2e;
  padding: 56px 0 32px;
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
}
.ktv-brandfooter-inner {
  width: calc(100% - 80px);
  max-width: 1600px;
  margin-inline: auto;
}
.ktv-footer-top { padding-bottom: 32px; border-bottom: 1px solid #2a2a2e; }
.ktv-footer-brand { display: flex; align-items: center; gap: 20px; }
.ktv-footer-brand .ktv-logo-box { width: 68px; height: 68px; flex-shrink: 0; }
.ktv-footer-brand-text { display: flex; flex-direction: column; gap: 6px; }
.ktv-footer-brand-name { font-size: 17px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #ffffff; }
.ktv-footer-brand-slogan { font-size: 14.5px; color: #b4b4ba; }
.ktv-footer-brand-project { font-size: 13px; color: #86868c; }
.ktv-footer-brand-project strong { color: #b4b4ba; font-weight: 700; }

.ktv-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  padding-top: 24px;
}
.ktv-footer-navigation { display: flex; align-items: center; flex-wrap: wrap; row-gap: 10px; gap: clamp(18px, 1.5vw, 32px); min-width: 0; }
.ktv-footer-navigation a {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: #86868c;
  transition: color .2s ease;
}
.ktv-footer-navigation a:hover { color: #b445ff; }
.ktv-footer-navigation a.ktv-legal { color: #b4b4ba; }
.ktv-footer-copyright { margin-left: auto; flex-shrink: 0; white-space: nowrap; text-align: right; font-size: 12.5px; color: #86868c; }

@media (max-width: 640px) {
  .ktv-footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ktv-footer-copyright { margin-left: 0; text-align: left; }
}
