/* Lions-Events Card-Grid — Senior-XXL Mobile-Default + kompaktes Desktop. */

/* Flex-Layout statt Grid: Cards haben fixe Maxbreite — egal wie viele,
   sie bleiben gleich groß und stretchen sich nicht auf volle Reihen-Breite. */
.lions-events-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0;
  align-items: stretch;       /* gleiche Höhe in derselben Reihe */
}
/* Monatstrenner: volle Reihenbreite, erzwingt Zeilenumbruch im Flex-Grid. */
.lions-events-grid .lions-events-month {
  flex: 1 1 100%;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--lions-primary,#00338D);
  border-bottom: 2px solid var(--lions-secondary,#EBB700);
  text-transform: capitalize;
}
.lions-events-grid .lions-events-month:first-child { margin-top: 0; }
.lions-events-grid .lions-event-card {
  flex: 1 1 280px;
  max-width: 360px;
  min-width: 0;
}
@media (max-width: 720px) {
  .lions-events-grid .lions-event-card { flex: 1 1 100%; max-width: 100%; }
}
@media (min-width: 1100px) {
  .lions-events-grid { gap: 28px; }
}

.lions-events-grid.is-list { flex-direction: column; gap: 14px; }
.lions-events-grid.is-list .lions-event-card { flex: 1 1 100%; max-width: 100%; }

.lions-events-empty {
  font-size: 1.25rem;
  color: #4a5468;
  background: #f0f3f9;
  padding: 26px;
  border-radius: 14px;
  text-align: center;
}

.lions-event-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(7, 25, 47, 0.10);
  transition: transform .15s ease, box-shadow .15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  /* Karten im Grid streckt sich auf gleiche Höhe — Body wächst, CTA klebt unten. */
}
.lions-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(7, 25, 47, 0.18);
}

.lions-event-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.lions-event-card__link:hover .lions-event-card__title { color: var(--lions-primary,#00338D); }
.lions-event-card__link:hover .lions-event-card__cta { background: var(--lions-primary,#00338D); color: var(--lions-secondary,#EBB700); }

.lions-event-card__media {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;     /* 16:9 aspect ratio, einheitlich für Foto und Fallback */
  background-color: #e9edf4;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  flex: 0 0 auto;
}
.lions-event-card__media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3.5rem;
  color: rgba(0, 51, 141, 0.25);
}

/* Datum-Badge oben links — auffällig, Lions-Blau. */
.lions-event-card__date-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: #fff;
  color: var(--lions-primary,#00338D);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(7,25,47,0.25);
  padding: 8px 12px;
  text-align: center;
  font-weight: 800;
  line-height: 1;
}
.lions-event-card__date-day {
  display: block;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}
.lions-event-card__date-mon {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5b6478;
  margin-top: 2px;
}

/* Flag-Chip oben rechts — z.B. „Charity". */
.lions-event-card__flag-chip {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--lions-secondary,#EBB700);
  color: var(--lions-primary,#00338D);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Roter „Jetzt Anmelden"-Störer für offizielle Homepage-Ankündigungen. */
.lions-event-card__stoerer {
  position: absolute;
  bottom: -14px; right: 16px;
  background: #d63638;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(214,54,56,0.45);
  transform: rotate(-4deg);
  z-index: 3;
  white-space: nowrap;
}

.lions-event-card__stoerer--charity {
  background: #EBB700;
  color: #0a1f3a;
  box-shadow: 0 6px 18px rgba(235,183,0,0.45);
}

.lions-event-card__body {
  padding: 20px 22px 16px;
  flex: 1;                   /* füllt verbleibende Höhe, hält CTA bündig unten */
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lions-event-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #07192f;
  transition: color .15s ease;
}
/* Referent/Dozent als Subline unter dem Titel. */
.lions-event-card__subline {
  margin: 0 0 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--lions-primary,#00338D);
  line-height: 1.3;
}
.lions-event-card__meta {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.05rem;
  color: #4a5468;
}
.lions-event-card__meta li { display: flex; gap: 8px; align-items: center; }
.lions-event-card__excerpt {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #5b6478;
}

.lions-event-card__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--lions-secondary,#EBB700);
  color: var(--lions-primary,#00338D);
  padding: 14px 22px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transition: background .15s ease, color .15s ease;
  margin-top: auto;          /* immer am unteren Rand */
}
/* Eigener RSVP-Status (eingeloggt) — farblich codiert, überschreibt auch den Hover. */
.lions-event-card__cta.is-yes,
.lions-event-card__link:hover .lions-event-card__cta.is-yes   { background: #1a8a4a; color: #fff; }
.lions-event-card__cta.is-no,
.lions-event-card__link:hover .lions-event-card__cta.is-no    { background: #b23b3b; color: #fff; }
.lions-event-card__cta.is-maybe,
.lions-event-card__link:hover .lions-event-card__cta.is-maybe { background: #d98b0b; color: #fff; }

/* Handy: kompaktere Event-Cards. */
@media (max-width: 1099px) {
  .lions-event-card__title       { font-size: 1.2rem; }
  .lions-event-card__meta        { font-size: 1rem; gap: 8px; }
  .lions-event-card__date-day    { font-size: 1.7rem; }
  .lions-event-card__date-mon    { font-size: 0.85rem; }
  .lions-event-card__cta         { font-size: 1.05rem; padding: 13px 16px; }
  .lions-event-card__flag-chip   { font-size: 0.85rem; padding: 6px 11px; }
}

/* List-Layout: Horizontal flach. */
.lions-events-grid.is-list .lions-event-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: stretch;
}
.lions-events-grid.is-list .lions-event-card__media { height: 100%; min-height: 120px; padding-bottom: 0; }
.lions-events-grid.is-list .lions-event-card__cta {
  flex-direction: column;
  gap: 4px;
  padding: 18px 24px;
  font-size: 1rem;
}
