/* RTR Event-Vorschau 1.1.1 – nur Karten dunkel, Layout über Containerbreite statt Fensterbreite. */
.rtr-ev {
  --rtr-red: #ee4054;
  --rtr-surface: #191b1e;
  --rtr-muted: #c9cbd3;
  --rtr-border: #40434a;
  box-sizing: border-box;
  width: 100%; max-width: 100%; min-width: 0;
  padding: 0; margin: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  container: rtr-event-list / inline-size;
}
.rtr-ev *, .rtr-ev *::before, .rtr-ev *::after { box-sizing: border-box; }
.rtr-ev a { text-decoration: none; }
.rtr-ev a:focus-visible { outline: 2px solid #ee4054; outline-offset: 3px; }
.rtr-ev__header {
  display: flex; flex-wrap: wrap; gap: 5px 18px;
  align-items: baseline; justify-content: space-between;
  padding: 0 0 12px; margin: 0 0 14px;
  background: transparent; border-bottom: 2px solid #e22b3a;
}
.rtr-ev .rtr-ev__headline {
  color: inherit; font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800; line-height: 1.2; letter-spacing: -.025em; text-transform: none;
  margin: 0; padding: 0;
  overflow-wrap: normal; word-break: normal; hyphens: auto;
}
.rtr-ev__count { color: inherit; font-size: 12px; line-height: 1.5; opacity: .8; white-space: nowrap; }
.rtr-ev__list { display: grid; gap: 12px; background: transparent; border: 0; overflow: visible; }
.rtr-ev__item {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr) max-content;
  gap: 18px 24px; align-items: center;
  min-height: 146px; padding: 24px;
  background: var(--rtr-surface);
  color: #fff; border: 0; border-radius: 8px;
  margin: 0; min-width: 0;
}
.rtr-ev__date {
  min-width: 0; align-self: stretch;
  padding-right: 14px;
  border-right: 1px solid var(--rtr-border);
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
}
.rtr-ev__date-top { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.rtr-ev .rtr-ev__day { color: #fff; font-size: 68px; font-weight: 850; line-height: 1; letter-spacing: -.065em; }
.rtr-ev__date-right { display: flex; flex-direction: column; line-height: 1.15; font-size: 12px; }
.rtr-ev__date-right b { color: var(--rtr-red); font-size: 19px; font-weight: 800; }
.rtr-ev__date-right span { color: #e4e5e9; }
.rtr-ev__days { color: #d3d7df; font-size: 11px; margin-top: 9px; }
.rtr-ev__body { min-width: 0; max-width: 100%; }
.rtr-ev .rtr-ev__title {
  color: #fff; font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800; line-height: 1.24; letter-spacing: -.012em; text-transform: none;
  margin: 0 0 8px; padding: 0;
  overflow-wrap: normal; word-break: normal; hyphens: auto;
}
.rtr-ev .rtr-ev__title a { color: #fff; overflow-wrap: normal; word-break: normal; }
.rtr-ev .rtr-ev__title a:hover { color: #ffd2d7; }
.rtr-ev__location { color: #c3c8d2; font-size: 12px; margin-bottom: 8px; overflow-wrap: break-word; }
.rtr-ev .rtr-ev__desc { margin: 0; padding: 0; color: #eff1f6; font-size: 14px; line-height: 1.55; overflow-wrap: break-word; word-break: normal; }
.rtr-ev__status {
  display: inline-block; max-width: 100%; background: #44341c; color: #ffd28e;
  border: 1px solid #966b2d; border-radius: 6px;
  font-size: 12px; font-weight: 700; line-height: 1.25;
  padding: 6px 10px; margin-top: 10px;
}
.rtr-ev .rtr-ev__notice { color: #d4d7e0; font-size: 12px; line-height: 1.55; margin: 8px 0 0; padding: 0; overflow-wrap: break-word; }
.rtr-ev__actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 16px; min-width: 0; max-width: 100%;
}
.rtr-ev__image { display: block; width: 98px; max-height: 72px; height: auto; object-fit: contain; flex: 0 1 98px; }
.rtr-ev .rtr-ev__details, .rtr-ev .rtr-ev__more {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px; border: 1px solid #555a65; border-radius: 7px;
  background: #2a2d33; color: #fff;
  font-size: 13px; font-weight: 750; line-height: 1.3;
  white-space: nowrap; text-align: center;
  transition: background .18s ease, border-color .18s ease;
}
.rtr-ev .rtr-ev__details:hover { color: #fff; background: #3a3e47; border-color: #a9adb6; }
.rtr-ev__footer { margin: 20px 0 0; text-align: center; background: transparent; }
.rtr-ev .rtr-ev__more { min-width: 185px; border-color: var(--rtr-red); background: transparent; color: inherit; }
.rtr-ev .rtr-ev__more:hover { color: #fff; background: #b82535; border-color: #b82535; }
.rtr-ev .rtr-ev__empty { background: var(--rtr-surface); color: #d2d5dd; border-radius: 8px; margin: 0; padding: 26px; text-align: center; }
/* Container Queries reagieren auf die tatsächliche Breite eines Kadence-Blocks. */
@container rtr-event-list (max-width: 850px) {
  .rtr-ev__item { grid-template-columns: 132px minmax(0,1fr); padding: 20px; gap: 10px 18px; }
  .rtr-ev__date { grid-column: 1; grid-row: 1 / span 2; }
  .rtr-ev__body { grid-column: 2; grid-row: 1; }
  .rtr-ev__actions { grid-column: 2; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; margin-top: 4px; }
  .rtr-ev__image { max-height: 52px; width: 82px; }
  .rtr-ev .rtr-ev__title { font-size: 22px; }
  .rtr-ev .rtr-ev__day { font-size: 62px; }
}
@container rtr-event-list (max-width: 570px) {
  .rtr-ev__item { grid-template-columns: 103px minmax(0, 1fr); padding: 16px; gap: 10px 15px; }
  .rtr-ev__date { padding-right: 12px; }
  .rtr-ev__date-top { gap: 5px; }
  .rtr-ev .rtr-ev__day { font-size: 49px; }
  .rtr-ev__date-right b { font-size: 15px; }
  .rtr-ev__date-right { font-size: 11px; }
  .rtr-ev .rtr-ev__title { font-size: 20px; }
  .rtr-ev .rtr-ev__desc { font-size: 13px; }
  .rtr-ev .rtr-ev__details { font-size: 12px; padding: 10px 12px; }
  .rtr-ev__image { width: 70px; }
}
@container rtr-event-list (max-width: 360px) {
  .rtr-ev__item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rtr-ev__date { grid-column: 1; grid-row: 1; border-right: 0; border-bottom: 1px solid var(--rtr-border); padding: 0 0 12px; }
  .rtr-ev__body { grid-column: 1; grid-row: 2; }
  .rtr-ev__actions { grid-column: 1; grid-row: 3; }
  .rtr-ev__date-top { gap: 8px; }
  .rtr-ev__days { margin-top: 4px; }
}
/* Fallback für alte Browser ohne Container Queries (Fensterbreite). */
@supports not (container-type: inline-size) {
  @media (max-width: 850px) {
    .rtr-ev__item { display: block; padding: 18px; }
    .rtr-ev__date { border-right: 0; border-bottom: 1px solid var(--rtr-border); padding: 0 0 12px; margin-bottom: 14px; }
    .rtr-ev__actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 15px; }
  }
}
