/* ==========================================================================
   BetaBe Events - Events-Übersicht
   ========================================================================== */

.page-head {
  position: relative;
  padding-block: clamp(3rem, 10vw, 6rem) clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 340px;
  z-index: -1;
  background:
    radial-gradient(55% 70% at 20% 20%, rgba(37, 99, 235, 0.30), transparent 65%),
    radial-gradient(45% 60% at 80% 10%, rgba(59, 130, 246, 0.24), transparent 65%);
  filter: blur(6px);
}

.page-head h1 { margin-bottom: 1rem; text-wrap: balance; }
.page-head p { max-width: 50ch; font-size: 1.05rem; }

/* --- Tabs ---------------------------------------------------------------- */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-alt);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  padding: 0.7em 1.3em;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.tab:hover { color: var(--color-text); }

.tab.is-active {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.tab__count {
  display: inline-block;
  margin-left: 0.5em;
  opacity: 0.65;
  font-weight: 500;
}

@media (max-width: 599px) {
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1 1 0; text-align: center; padding-inline: 0.6em; }
}
