/* Zusatzstyles der Event-Seiten (02 · Veranstaltungen + Detailseite).
   Nur Design-System-Tokens (var(--color-…), var(--font-…)) — keine neuen Farben. */

.events-page {
  padding-top: 96px;
}

.events-page > section + section {
  margin-top: 96px;
}

.section-body {
  margin-top: 32px;
}

.section-body-sm {
  margin-top: 24px;
}

.meta-line {
  color: var(--color-muted-foreground);
  font-size: 14px;
  line-height: 20px;
}

/* --- 1 · Nächsten Event's ------------------------------------------------- */

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted-foreground);
  font-size: 14px;
  line-height: 20px;
}

/* Das Coverbild oben in der Karte. Fläche, Rundung und der Rückfall auf den
   Schmetterling kommen aus .card-cover/.cover-leer (main.css, überall
   geladen) — hier steht nur der Abstand nach unten. */
.event-card-cover {
  margin-bottom: 4px;
}

.event-card-text {
  color: var(--color-muted-foreground);
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
}

.event-card-from {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-muted-foreground);
}

/* --- 2 · Beratung --------------------------------------------------------- */

/* Der Beratungsblock steht allein, seit die Buchungskarte daneben entfallen
   ist. Er behält die Breite, die er als eine von zwei Spalten hatte (588px),
   statt über die ganze Seite zu laufen — genau wie der Beratungsblock der
   Startseite. minmax(0, 1fr) hält breite Inhalte in der Spalte, sonst
   sprengte der Terminknopf sie auf schmalen Geräten. */
.beratung-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 588px;
}

.beratung-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* --- 3 · Über mich -------------------------------------------------------- */

.uebermich-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.uebermich-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 34px;
  color: var(--color-notice);
}

.quali-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
}

/* Der Name der Paketstufe führt zu ihrer eigenen Seite. Er soll als Ziel
   erkennbar sein, ohne die Karte in ein Linkfeld zu verwandeln: Farbe erbt er
   von der Überschrift, die Unterstreichung kommt erst bei Aufmerksamkeit. */
.tier-link {
  color: inherit;
  text-decoration: none;
}

.tier-link:hover,
.tier-link:focus-visible {
  text-decoration: underline;
}

/* „Details ansehen" schließt die Merkmalsliste ab und steht über dem Preis —
   die Reihenfolge der Karte bleibt: was drin ist, wo mehr steht, was es kostet. */
.tier-mehr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-secondary);
  text-decoration: none;
}

.tier-mehr:hover,
.tier-mehr:focus-visible {
  text-decoration: underline;
}

.tier-mehr svg {
  flex: none;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list li svg {
  flex: none;
  margin-top: 4px;
  color: var(--color-secondary);
}

.uebermich-closing {
  margin-top: 32px;
  text-align: center;
}

.closing-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 34px;
}

.closing-strong {
  margin-top: 4px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--color-notice);
}

/* --- 4 · Beratungsbereiche ------------------------------------------------ */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-static {
  cursor: default;
}

.bereiche-absatz {
  margin-top: 24px;
}

.bereiche-meta {
  margin-top: 24px;
}

/* --- Detailseite ---------------------------------------------------------- */

.event-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}

/* Kopfbild der Veranstaltung. Dieselbe Wirkung wie .detail-cover auf der
   Produktseite — die Klasse selbst steht aber in catalog.css und wird hier
   nicht geladen, deshalb eine eigene mit denselben Tokens. Die weiße
   Schriftfarbe ist für den Schmetterling: er zeichnet in currentColor. */
.event-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
}

/* Eingepasst statt beschnitten — wie in der Karte. Die unscharfe Grundflaeche
   dahinter (.cover-grund) steht in main.css, die ueberall geladen wird. */
.event-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.event-cover img.cover-grund {
  object-fit: cover;
}

.event-description {
  color: var(--color-muted-foreground);
}
/* |linebreaks liefert echte Absätze. Der Reset nimmt <p> jeden Rand, deshalb
   der Abstand hier — dasselbe Maß wie in der Produktbeschreibung, damit beide
   Detailseiten gleich atmen. */
.event-description p + p {
  margin-top: 16px;
}

.event-past-notice {
  margin-top: 16px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}

.tier-price {
  margin-top: auto;
  padding-top: 8px;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 899.98px) {
  .events-page {
    padding-top: 48px;
  }

  .events-page > section + section {
    margin-top: 64px;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .uebermich-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

}
