/* TICKETBAR
   Portiert aus sections/StickyTicketBar.module.css — Klassennamen auf BEM umgestellt,
   Regeln und Tokens unverändert. */

.ticketbar {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: var(--z-sticky);
  background-color: var(--background-secondary);
  border-block-start: var(--border-width-thin) solid var(--border-default);
  box-shadow: 0 -8px 32px rgb(18 18 18 / 0.1);
  will-change: transform;
  /* Sicherer Abstand auf Geräten mit Home-Indicator */
  padding-block-end: env(safe-area-inset-bottom, 0);
}

.ticketbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-6);
  padding-block: var(--spacing-3);
}

/* ==========================================================================
   INFO
   ========================================================================== */

.ticketbar__info {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  min-width: 0;
}

/* Datumsblock als Kachel */
.ticketbar__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.25rem;
  padding: var(--spacing-1);
  background-color: var(--brand-primary-500);
  border-radius: var(--brand-radius);
  color: var(--color-white);
  line-height: 1.1;
}

.ticketbar__date-day {
  font-family: var(--brand-font-title);
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
}

.ticketbar__date-month {
  font-size: var(--font-size-tiny);
  letter-spacing: var(--letter-spacing-wide);
}

.ticketbar__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ticketbar__event-title {
  font-family: var(--brand-font-title);
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--text-primary);
  /* Lange Titel nicht umbrechen lassen — die Leiste bleibt einzeilig */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticketbar__event-meta {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   AKTION
   ========================================================================== */

.ticketbar__action {
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
  .ticketbar__inner {
    gap: var(--spacing-3);
    padding-block: var(--spacing-2);
  }

  .ticketbar__date {
    width: 2.75rem;
  }

  .ticketbar__event-title {
    font-size: var(--font-size-body);
  }

  .ticketbar__event-meta {
    font-size: var(--font-size-tiny);
  }

  .ticketbar__action {
    padding-inline: var(--spacing-4);
    font-size: var(--font-size-small);
  }
}

/* Sehr schmal: Datumskachel weglassen, Platz für Titel und Button */
@media (max-width: 400px) {
  .ticketbar__date {
    display: none;
  }
}
