/* =====================================================
   Sticky Promo Top-Bar CSS
   - z-index 25 (unter Nav)
   - max-height: 36px Mobile, 44px Desktop
   - Dismissible via JS (localStorage 30 Tage)
   ===================================================== */

.stb-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  width: 100%;
  background: linear-gradient(90deg, #06121f 0%, #0a1628 50%, #06121f 100%);
  color: #fff;
  border-bottom: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  font-size: 0.82rem;
  line-height: 1.2;
  overflow: hidden;
  max-height: 44px;
  transition: max-height 0.32s ease, opacity 0.25s ease, transform 0.25s ease;
}
.stb-bar.is-hidden {
  max-height: 0 !important;
  border-bottom-width: 0;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.stb-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  position: relative;
}

.stb-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  background: linear-gradient(90deg, #22D3EE, #60A5FA);
  color: #06121f;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

.stb-msg {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}
.stb-msg strong { color: #22D3EE; font-weight: 700; }

.stb-cta {
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.18), rgba(96, 165, 250, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.45);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
  font-size: 0.78rem;
}
.stb-cta:hover {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.32), rgba(96, 165, 250, 0.32));
  transform: translateY(-1px);
}

.stb-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.stb-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.stb-close:focus-visible { outline: 2px solid #22D3EE; outline-offset: 2px; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .stb-bar { max-height: 36px; font-size: 0.74rem; }
  .stb-inner { gap: 0.5rem; padding: 0.4rem 0.7rem; }
  .stb-pill { display: none; }       /* Platz sparen */
  .stb-cta  { padding: 0.28rem 0.6rem; font-size: 0.72rem; }
  .stb-msg strong:nth-of-type(n+3) { display: none; } /* Letztes Bullet weg */
}
@media (max-width: 420px) {
  .stb-msg strong:nth-of-type(n+2) { display: none; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .stb-bar { transition: none; }
}
