.cev-container {
  --cev-accent: var(--ticket-color, #e30613);
  --cev-accent-hover: var(--ticket-color-hover, #ff2b34);
  --cev-card-bg: var(--dark-card-backgroundcolor, #121212);
  --cev-panel-bg: var(--background-color, #0a0a0a);
  --cev-border: var(--border-tab-color, rgba(255, 255, 255, 0.1));
  --cev-text: var(--text-color, #d8d8d8);
  --cev-muted: var(--text-color-hover, #9a9a9a);

  margin: 0 auto;
  padding: 20px;
  font-family: var(--roboto-regular), Arial, sans-serif;
  color: var(--cev-text);
}

/* ---------------------------------------------------------------- Hero */
.cev-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}

.cev-hero__eyebrow {
  display: block;
  color: var(--cev-accent);
  font-family: var(--roboto-bold), Arial, sans-serif;
  font-size: var(--text-xs, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.45rem;
  margin-bottom: 10px;
}

.cev-hero__title {
  margin: 0 0 15px 0;
  color: var(--white-color, #fff);
  font-family: var(--roboto-black), Arial, sans-serif;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.cev-hero__title-accent {
  color: var(--cev-accent);
}

.cev-hero__subtitle {
  margin: 0;
  max-width: 640px;
  font-size: var(--text-md-sm, 1.1rem);
  line-height: 1.45;
  color: var(--cev-text);
}

.cev-hero__script {
  flex: 0 0 auto;
  max-width: 260px;
  text-align: right;
  color: var(--cev-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1.2;
  opacity: 0.85;
}

/* -------------------------------------------------------------- Filter */
.cev-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.cev-filter__btn {
  background: transparent;
  border: 1px solid var(--cev-border);
  border-radius: 4px;
  color: var(--cev-text);
  padding: 12px 24px;
  font-family: var(--roboto-bold), Arial, sans-serif;
  font-size: var(--text-xs, 0.8125rem);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cev-filter__btn:hover {
  border-color: var(--cev-accent);
  color: var(--white-color, #fff);
}

.cev-filter__btn.is-active {
  background: var(--cev-accent);
  border-color: var(--cev-accent);
  color: var(--white-color, #fff);
}

/* ---------------------------------------------------------------- List */
.cev-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cev-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--cev-muted);
  font-size: var(--text-md-sm, 1rem);
}

/* ---------------------------------------------------------------- Card */
/*
 * The image column keeps a portrait format everywhere. The media stretches over
 * the full card height, so the card min-height is kept at roughly 4/3 of the
 * image column width and the description is capped - that way the image can
 * never end up landscape (short card) or extremely narrow (very tall card).
 */
.cev-card {
  display: grid;
  grid-template-columns: 175px 120px minmax(0, 1fr) 300px;
  background: var(--cev-card-bg);
  /*border: 1px solid var(--cev-border);*/
  overflow: hidden;
  min-height: 234px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cev-card--nodate {
  grid-template-columns: 175px minmax(0, 1fr) 300px;
}

.cev-card--noaside {
  grid-template-columns: 175px 120px minmax(0, 1fr);
}

.cev-card--nodate.cev-card--noaside {
  grid-template-columns: 175px minmax(0, 1fr);
}

/* Needed because "display: grid" would otherwise win over the [hidden] default */
.cev-card[hidden],
.cev-empty[hidden] {
  display: none;
}

/* Image */
.cev-card__media {
  position: relative;
  overflow: hidden;
  background: var(--darker-gray-color, #1c1c1c);
}

.cev-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.cev-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cev-card__media-link:hover .cev-card__image {
  transform: scale(1.04);
}

.cev-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  background: var(--darker-gray-color, #1c1c1c);
  color: var(--disabled-color, #6c6c6c);
  font-family: var(--roboto-black), Arial, sans-serif;
  font-size: var(--text-md-sm, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  overflow: hidden;
}

/* Date column */
.cev-card__date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 12px;
  border-right: 1px solid var(--cev-border);
  text-align: left;
  line-height: 1;
}

.cev-card__weekday {
  color: var(--cev-muted);
  font-family: var(--roboto-bold), Arial, sans-serif;
  font-size: var(--text-xs, 0.8125rem);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  margin-bottom: 10px;
}

/* Free text instead of a concrete date ("Jeden 1. Montag") */
.cev-card__datetext {
  color: var(--white-color, #fff);
  font-family: var(--roboto-black), Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.cev-card__day {
  color: var(--white-color, #fff);
  font-family: var(--roboto-black), Arial, sans-serif;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

/* Date ranges ("12.–13.") need to stay on one line */
.cev-card__day--range {
  font-size: 1.45rem;
}

.cev-card__month {
  color: var(--white-color, #fff);
  font-family: var(--roboto-black), Arial, sans-serif;
  font-size: 2.1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.cev-card__year {
  color: var(--cev-muted);
  font-family: var(--roboto-medium), Arial, sans-serif;
  font-size: var(--text-md-sm, 1.05rem);
}

.cev-card__time {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--cev-accent);
  color: var(--white-color, #fff);
  font-family: var(--roboto-bold), Arial, sans-serif;
  font-size: var(--text-xs, 0.875rem);
  letter-spacing: 0.05rem;
  white-space: nowrap;
}

/* Content column */
.cev-card__body {
  padding: 16px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.cev-card__category {
  color: var(--cev-accent);
  font-family: var(--roboto-bold), Arial, sans-serif;
  font-size: var(--text-3xs, 0.6875rem);
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  margin-bottom: 8px;
}

.cev-card__title {
  margin: 0 0 6px 0;
  color: var(--white-color, #fff);
  font-family: var(--roboto-black), Arial, sans-serif;
  font-size: 1.9rem;
  line-height: 1.05;
  text-transform: uppercase;
}

/*
 * The theme styles headings with !important and replaces their font-family.
 * That is why the h3 loses the black font while the spans in the date column
 * keep it, even though both use var(--roboto-black). font-weight alone cannot
 * fix that - the forced family has no bold cut - so the family is set here as
 * well, with a higher specificity than a single class.
 * Only family and weight belong here; the sizes stay in the rules above and in
 * the media queries, otherwise they would lose against this block.
 */
.cev-container .cev-card .cev-card__title {
  font-family: var(--roboto-black, "Arial Black"), "Arial Black", Arial, sans-serif !important;
  font-weight: 800 !important;
}

.cev-card__subtitle {
  margin: 0 0 12px 0;
  color: var(--white-color, #fff);
  font-family: var(--roboto-medium), Arial, sans-serif;
  font-size: var(--text-md-sm, 1.1rem);
  line-height: 1.2;
}

.cev-card__description {
  font-size: var(--text-xs, 0.875rem);
  line-height: 1.5;
  color: var(--cev-text);
  /* 1.5 line-height x 4 lines - keeps the card (and with it the image) in shape */
  max-height: 6em;
  overflow: hidden;
}

.cev-card__description p {
  margin: 0 0 8px 0;
}

.cev-card__description p:last-child {
  margin-bottom: 0;
}

/* Facts & CTA column */
.cev-card__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 18px 24px;
  background: var(--cev-panel-bg);
  border-left: 1px solid var(--cev-border);
}

.cev-card__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cev-card__fact {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cev-text);
  font-size: 1rem;
  line-height: 1.25;
}

.cev-card__fact i {
  flex: 0 0 24px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--white-color, #fff);
  opacity: 0.85;
}

.cev-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border: 1px solid var(--cev-accent);
  border-radius: 4px;
  background: transparent;
  color: var(--cev-accent);
  font-family: var(--roboto-bold), Arial, sans-serif;
  font-size: 0.76rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cev-card__cta i {
  flex: 0 0 auto;
}

.cev-card__cta:hover {
  background: var(--cev-accent);
  color: var(--white-color, #fff);
}

.cev-card__cta--static {
  opacity: 0.75;
  cursor: default;
}

.cev-card__cta--static:hover {
  background: transparent;
  color: var(--cev-accent);
}

/* ---------------------------------------------------------- Responsive */
/*
 * Compact layout for tablets and phones: image | date | content, with the
 * facts and the call to action moving underneath the content column.
 */
@media (max-width: 1100px) {
  .cev-card,
  .cev-card--noaside {
    grid-template-columns: 170px 100px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas:
      "media date body"
      "media date aside";
    min-height: 228px;
  }

  .cev-card--nodate,
  .cev-card--nodate.cev-card--noaside {
    grid-template-columns: 170px minmax(0, 1fr);
    grid-template-areas:
      "media body"
      "media aside";
  }

  .cev-card__media {
    grid-area: media;
  }

  .cev-card__date {
    grid-area: date;
    padding: 18px 10px;
  }

  .cev-card__body {
    grid-area: body;
    padding: 18px 18px 10px 18px;
  }

  .cev-card__aside {
    grid-area: aside;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 18px 18px 18px;
    background: transparent;
    border-left: none;
  }

  /* Facts turn into a single row with thin dividers, like in the design */
  .cev-card__facts {
    flex-direction: row;
    gap: 0;
  }

  .cev-card__fact {
    flex: 1 1 0;
    min-width: 0;
    gap: 8px;
    padding-left: 10px;
    border-left: 1px solid var(--cev-border);
    font-size: var(--text-3xs, 0.6875rem);
    line-height: 1.2;
  }

  .cev-card__fact:first-child {
    padding-left: 0;
    border-left: none;
  }

  .cev-card__fact i {
    flex: 0 0 16px;
    font-size: 0.9rem;
  }

  .cev-card__cta {
    justify-content: center;
    gap: 10px;
    padding: 11px 14px;
  }

  .cev-card__day {
    font-size: 2rem;
  }

  .cev-card__datetext {
    font-size: 0.9rem;
  }

  .cev-card__day--range {
    font-size: 1.25rem;
  }

  .cev-card__month {
    font-size: 1.75rem;
  }

  .cev-card__title {
    font-size: 1.5rem;
  }

  .cev-card__description {
    /* three lines */
    max-height: 4.5em;
  }
}

@media (max-width: 768px) {
  .cev-container {
    padding: 15px;
  }

  .cev-hero {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
  }

  .cev-hero__script {
    text-align: left;
    max-width: none;
    font-size: 1.35rem;
  }

  .cev-hero__eyebrow {
    letter-spacing: 0.3rem;
  }

  .cev-hero__subtitle {
    font-size: var(--text-xs, 0.95rem);
  }

  /* Filter turns into a horizontally scrollable row */
  .cev-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 18px;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--cev-border) transparent;
  }

  .cev-filter__btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: var(--text-3xs, 0.6875rem);
  }

  .cev-list {
    gap: 10px;
  }

  /*
   * The poster keeps spanning text, facts and button just like on a card
   * without a date - the date moves out of the narrow middle column and
   * becomes a full width row at the bottom of the card.
   */
  .cev-card,
  .cev-card--noaside {
    grid-template-columns: 122px minmax(0, 1fr);
    grid-template-areas:
      "media body"
      "media aside"
      "date  date";
    min-height: 163px;
  }

  .cev-card--nodate,
  .cev-card--nodate.cev-card--noaside {
    grid-template-columns: 122px minmax(0, 1fr);
    grid-template-areas:
      "media body"
      "media aside";
  }

  .cev-card__date {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-right: none;
    border-top: 1px solid var(--cev-border);
  }

  .cev-card__weekday,
  .cev-card__day,
  .cev-card__month,
  .cev-card__year {
    margin-bottom: 0;
  }

  .cev-card__weekday {
    font-size: 0.7rem;
    letter-spacing: 0.08rem;
  }

  .cev-card__day,
  .cev-card__day--range {
    font-size: 1.25rem;
  }

  .cev-card__month {
    font-size: 1.15rem;
  }

  .cev-card__datetext {
    font-size: 0.85rem;
  }

  .cev-card__year {
    font-size: 0.8rem;
  }

  /* In a row the accent line sits in front of the time, not above it */
  .cev-card__time {
    margin-top: 0;
    padding-top: 0;
    padding-left: 10px;
    border-top: none;
    border-left: 2px solid var(--cev-accent);
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  .cev-card__body {
    padding: 12px 12px 8px 12px;
  }

  .cev-card__category {
    font-size: 0.6rem;
    letter-spacing: 0.15rem;
    margin-bottom: 4px;
  }

  .cev-card__title {
    font-size: 1.2rem;
    margin-bottom: 3px;
  }

  .cev-card__placeholder {
    padding: 8px;
    font-size: var(--text-3xs, 0.6875rem);
    letter-spacing: 0.05rem;
  }

  .cev-card__subtitle {
    font-size: var(--text-xxs, 0.8125rem);
    margin-bottom: 7px;
  }

  .cev-card__description {
    font-size: var(--text-3xs, 0.6875rem);
    /* two lines */
    max-height: 3em;
  }

  .cev-card__aside {
    gap: 9px;
    padding: 0 12px 12px 12px;
  }

  .cev-card__fact {
    gap: 6px;
    padding-left: 7px;
    font-size: 0.6rem;
  }

  .cev-card__fact i {
    flex: 0 0 13px;
    font-size: 0.78rem;
  }

  .cev-card__cta {
    gap: 6px;
    padding: 9px 8px;
    font-size: 0.58rem;
    letter-spacing: 0.02rem;
  }
}

@media (max-width: 480px) {
  .cev-card,
  .cev-card--noaside,
  .cev-card--nodate,
  .cev-card--nodate.cev-card--noaside {
    grid-template-columns: 115px minmax(0, 1fr);
    min-height: 153px;
  }

  .cev-card__date {
    gap: 7px;
    padding: 9px 10px;
  }

  .cev-card__weekday {
    font-size: 0.62rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .cev-card__day,
  .cev-card__day--range {
    font-size: 1.1rem;
  }

  .cev-card__month {
    font-size: 1rem;
  }

  .cev-card__datetext {
    font-size: 0.76rem;
  }

  .cev-card__year {
    font-size: 0.7rem;
  }

  .cev-card__time {
    padding-left: 8px;
    font-size: 0.64rem;
  }

  .cev-card__title {
    font-size: 1.05rem;
  }

  .cev-card__fact {
    gap: 5px;
    padding-left: 6px;
    font-size: 0.55rem;
  }

  .cev-card__fact i {
    flex: 0 0 11px;
    font-size: 0.7rem;
  }

  .cev-card__cta {
    padding: 8px 6px;
    font-size: 0.54rem;
  }
}

/* Tightest phones: a third fact would stretch the card - and with it the
   image - out of portrait proportions, so only two are shown. */
@media (max-width: 400px) {
  .cev-card__description {
    /* one line */
    max-height: 1.5em;
  }

  .cev-card__fact:nth-child(n + 3) {
    display: none;
  }
}
