/* =========================================================
   Styles für Shortcode [events_list_custom]
   Kompakte Eventliste mit rechter CTA-Spalte
   ========================================================= */

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hauptcontainer je Event */
.fe-list-item--compact {
  display: grid;
  grid-template-columns: 1fr auto; /* links: Inhalt | rechts: CTA */
  align-items: center;
  column-gap: 22px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  padding: 16px 20px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.fe-list-item--compact:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* --- Linker Inhaltsbereich --- */
.fe-list-item__main {
  text-decoration: none;
  color: inherit;
}

.fe-title {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.25;
}

.fe-title__date {
  font-weight: 500;
  opacity: .85;
  margin-left: 6px;
}

/* Unterzeilen: Bestand & Ort */
.fe-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.3;
}

.fe-sub__stock {
  font-weight: 600;
  color: #111;
}

.fe-sub__loc {
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65ch;
}

/* --- Rechte Spalte: CTA --- */
.fe-list-item__cta {
  justify-self: end;
}

.fe-list-item__cta .button {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.fe-list-item__cta .button:hover {
  background: #222;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .fe-list-item--compact {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }
  .fe-list-item__cta {
    justify-self: start;
  }
}

.fe-list-item--soldout .button {
  background: #aaa;
  cursor: not-allowed;
  pointer-events: none;
}


/* --- Umbruch-Korrektur für fe-title & fe-sub__loc --- */

/* Grundsätzlich sicherstellen, dass Grid/Flex-Items schrumpfen dürfen */
.fe-list-item__main,
.fe-list-item--compact {
  min-width: 0;
}

/* Titel darf umbrechen */
.fe-title {
  display: block;
  white-space: normal !important;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 1.3;
}

/* Ort darf ebenfalls umbrechen */
.fe-sub__loc {
  display: block;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
  max-width: 100%;
}

