.te-events {
  --te-bg: var(--base-3, #fff);
  --te-panel: #fff;
  --te-panel-2: var(--trinity-bg, #f6f7f9);
  --te-line: rgba(17, 17, 17, .14);
  --te-text: var(--contrast, #111);
  --te-muted: var(--trinity-muted, #5b6673);
  --te-accent: var(--accent, #cf0a2c);
  --te-radius: var(--trinity-radius, 12px);
  width: 100%;
  color: var(--te-text);
  background: var(--te-bg);
}

.te-events *, .te-events *::before, .te-events *::after { box-sizing: border-box; }
.te-events a { color: inherit; }
.te-events__header { margin-bottom: 28px; }
.te-events__heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.te-events__title { margin: 0; color: var(--te-text); font-family: "Signika", sans-serif; font-size: clamp(2.2rem, 6vw, 5rem); line-height: .92; letter-spacing: -.045em; text-transform: uppercase; }

.te-views { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--te-line); background: var(--te-panel-2); border-radius: 999px; }
.te-views__item { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px; border-radius: 999px; text-decoration: none; color: var(--te-muted); font-size: 14px; transition: background-color .2s ease, color .2s ease; }
.te-views__item:hover { color: var(--te-text); background: var(--te-panel); }
.te-views__item.is-active { color: var(--te-panel); background: var(--te-text); }
.te-views__icon { font-size: 15px; line-height: 1; }

.te-search { border: 1px solid var(--te-line); border-radius: var(--te-radius); background: var(--te-panel); overflow: hidden; }
.te-search__main { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 8px; padding: 10px; }
.te-search input, .te-search select, .te-search button { font: inherit; }
.te-search__term, .te-field input, .te-field select { width: 100%; min-height: 48px; border: 1px solid var(--te-line); border-radius: 8px; background: var(--te-bg); color: var(--te-text); outline: none; }
.te-search__term { padding: 0 16px; }
.te-search__term:focus, .te-field input:focus, .te-field select:focus, .te-search button:focus-visible, .te-views__item:focus-visible { border-color: var(--te-accent); outline: 2px solid var(--te-accent); outline-offset: 1px; }
.te-search__submit, .te-search__apply { min-height: 48px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--te-text); color: var(--te-panel); font-weight: 700; cursor: pointer; }
.te-search__advanced-toggle { min-height: 48px; padding: 0 16px; border: 1px solid var(--te-line); border-radius: 8px; background: transparent; color: var(--te-text); cursor: pointer; }
.te-search__advanced-toggle span { display: inline-block; margin-left: 8px; transition: transform .2s ease; }
.te-search__advanced-toggle.is-open span { transform: rotate(180deg); }
.te-search__advanced { padding: 18px; border-top: 1px solid var(--te-line); }
.te-search__advanced[hidden] { display: none; }
.te-search__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.te-field { display: block; }
.te-field > span { display: block; margin-bottom: 7px; color: var(--te-muted); font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.te-field input, .te-field select { padding: 0 12px; }
.te-search__actions { display: flex; align-items: center; gap: 15px; margin-top: 16px; }
.te-search__reset { color: var(--te-muted) !important; font-size: 14px; text-decoration: none; }
.te-search__reset:hover { color: var(--te-text) !important; }

.te-events .te-grid.em-events-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.te-events .trinity-event { min-width: 0; }
.te-events .trinity-event__media.no-image img { filter: grayscale(.2); }
.te-events .status { position: relative; z-index: 1; }
.te-events .te-list { margin: 0; padding: 0; list-style: none; }
.te-events .te-list .event { position: relative; }
.te-events .te-list .event > a:first-child { min-height: 104px; }
.te-events .te-list .edit-event { z-index: 2; }
.te-list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: start; gap: 20px; }
.te-list-months { min-width: 0; }
.te-month-section { scroll-margin-top: 30px; }
.te-month-section + .te-month-section { margin-top: 36px; }
.te-month-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--te-text); font-family: "Signika", sans-serif; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1; text-transform: uppercase; }
.te-month-heading::after { content: ""; flex: 1; height: 2px; background: var(--te-accent); opacity: .65; }
.te-month-nav { position: sticky; top: 24px; display: grid; gap: 18px; }
.te-month-nav__year { padding: 18px; background: var(--te-panel-2); }
.te-month-nav__year-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; }
.te-month-nav__year-label::after { content: ""; flex: 1; height: 1px; background: var(--te-muted); opacity: .7; }
.te-month-nav__links { display: grid; gap: 3px; }
.te-month-nav__link { display: block; padding: 7px 9px; border-left: 3px solid transparent; color: var(--te-muted) !important; text-align: right; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.te-month-nav__link:hover { color: var(--te-text) !important; background: var(--te-panel); }
.te-month-nav__link.is-active { border-left-color: var(--te-accent); background: var(--te-panel); color: var(--te-text) !important; font-weight: 700; }

.te-calendar { padding: 12px; border: 1px solid var(--te-line); border-radius: var(--te-radius); background: var(--te-panel); color: var(--te-text); overflow-x: auto; }
.te-calendar .em-calendar { min-width: 720px; }
.te-events__results--calendar { position: relative; left: 50%; width: 100vw; width: 100dvw; transform: translateX(-50%); }
.te-events__results--calendar .te-calendar { padding-inline: clamp(12px, 2vw, 36px); border-right: 0; border-left: 0; border-radius: 0; }
.te-events__results--calendar .em-calendar { width: 100%; }
.te-empty, .te-notice { padding: 28px; border: 1px solid var(--te-line); border-radius: var(--te-radius); background: var(--te-panel); color: var(--te-muted); text-align: center; }
.te-events .em-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; filter: none; }
.te-events .em-pagination a, .te-events .em-pagination span, .te-events .em-pagination strong { display: grid; place-items: center; min-width: 38px; min-height: 38px; padding: 0 10px; border: 1px solid var(--te-line); border-radius: 999px; color: var(--te-text); text-decoration: none; }
.te-events .em-pagination .current, .te-events .em-pagination strong { background: var(--te-text); color: var(--te-panel); }

html[data-theme="dark"] .te-events, body.is-dark .te-events, body.theme-dark .te-events, body.dark .te-events {
  --te-bg: #222;
  --te-panel: #171717;
  --te-panel-2: #292929;
  --te-line: rgba(255, 255, 255, .16);
  --te-text: #fff;
  --te-muted: #bbb;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .te-events {
    --te-bg: #222;
    --te-panel: #171717;
    --te-panel-2: #292929;
    --te-line: rgba(255, 255, 255, .16);
    --te-text: #fff;
    --te-muted: #bbb;
  }
}

html[data-theme="light"] .te-events, body.is-light .te-events, body.theme-light .te-events, body.light .te-events {
  --te-bg: var(--base-3, #fff);
  --te-panel: #fff;
  --te-panel-2: var(--trinity-bg, #f6f7f9);
  --te-line: rgba(17, 17, 17, .14);
  --te-text: var(--contrast, #111);
  --te-muted: var(--trinity-muted, #5b6673);
}

@media (max-width: 1100px) {
  .te-events .te-grid.em-events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .te-search__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .te-events__heading-row { align-items: flex-start; flex-direction: column; }
  .te-views { width: 100%; }
  .te-views__item { flex: 1; justify-content: center; padding: 0 10px; }
  .te-search__main { grid-template-columns: 1fr auto; }
  .te-search__advanced-toggle { grid-column: 1 / -1; }
  .te-events .te-grid.em-events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .te-list-layout { display: flex; flex-direction: column-reverse; gap: 18px; }
  .te-list-months { width: 100%; }
  .te-month-nav { position: sticky; top: 0; z-index: 5; display: flex; width: 100%; max-width: 100%; gap: 8px; padding: 8px; overflow-x: auto; background: var(--te-bg); box-shadow: 0 5px 14px rgba(0, 0, 0, .12); }
  .te-month-nav__year { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 6px; }
  .te-month-nav__year-label { margin: 0 4px 0 2px; }
  .te-month-nav__year-label::after { display: none; }
  .te-month-nav__links { display: flex; gap: 3px; }
  .te-month-nav__link { padding: 7px 10px; border: 0; border-radius: 999px; text-align: center; white-space: nowrap; }
  .te-month-nav__link.is-active { background: var(--te-text); color: var(--te-panel) !important; }
  .te-month-section { scroll-margin-top: 82px; }
}

@media (max-width: 520px) {
  .te-events__header { margin-bottom: 20px; }
  .te-events__title { font-size: 2.7rem; }
  .te-views__icon { display: none; }
  .te-search__main { grid-template-columns: 1fr; }
  .te-search__submit, .te-search__advanced-toggle { width: 100%; }
  .te-search__fields { grid-template-columns: 1fr; }
  .te-search__actions { align-items: stretch; flex-direction: column; }
  .te-search__apply { width: 100%; }
  .te-events .te-grid.em-events-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .te-events *, .te-events *::before, .te-events *::after { transition-duration: .01ms !important; }
}

/* Event single view (the theme supplies the hero above this section). */
.single-event .event-genres {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: transparent;
  font-size: 0;
}
.single-event .event-genres a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 5px 10px;
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: 5px;
  color: var(--contrast, #111) !important;
  background: rgba(17, 24, 28, .08) !important;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s, background-color .2s, border-color .2s;
}
.single-event .event-genres a:hover,
.single-event .event-genres a:focus-visible {
  border-color: #df002b;
  color: #fff !important;
  background: #df002b !important;
}

html[data-theme="dark"] .single-event .event-genres a,
body.is-dark.single-event .event-genres a,
body.theme-dark.single-event .event-genres a,
body.dark.single-event .event-genres a {
  border-color: rgba(255, 255, 255, .06);
  color: #f7f8f8 !important;
  background: #151e23 !important;
}

html[data-theme="light"] .single-event .event-genres a,
body.is-light.single-event .event-genres a,
body.theme-light.single-event .event-genres a,
body.light.single-event .event-genres a {
  border-color: rgba(17, 17, 17, .08);
  color: var(--contrast, #111) !important;
  background: rgba(17, 24, 28, .08) !important;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .single-event .event-genres a {
    border-color: rgba(255, 255, 255, .06);
    color: #f7f8f8 !important;
    background: #151e23 !important;
  }
}

html .single-event .event-genres a:hover,
html .single-event .event-genres a:focus-visible {
  border-color: #df002b;
  color: #fff !important;
  background: #df002b !important;
}

.te-single {
  --tes-panel: rgba(17, 24, 28, .055);
  --tes-panel-strong: #eef0f1;
  --tes-line: rgba(17, 17, 17, .18);
  --tes-text: var(--contrast, #111);
  --tes-muted: var(--trinity-muted, #5b6673);
  --tes-red: #df002b;
  --tes-blue: #0089ca;
  --tes-ticket-primary-bg: #111;
  --tes-ticket-primary-text: #fff;
  --tes-ticket-secondary-bg: transparent;
  --tes-ticket-secondary-text: var(--tes-text);
  --tes-ticket-hover-bg: var(--tes-red);
  --tes-ticket-hover-text: #fff;
  width: 100%;
  padding: 0 0 clamp(44px, 7vw, 90px);
  color: var(--tes-text);
  background: transparent;
  font-family: "Work Sans", sans-serif;
}
.te-single *, .te-single *::before, .te-single *::after { box-sizing: border-box; }
.te-single h2, .te-single p, .te-single figure { margin-top: 0; }
.te-single a { color: inherit; }
.te-single__status, .te-single__notice { display: flex; align-items: center; min-height: 58px; margin-bottom: 12px; border-radius: 7px; }
.te-single__status { gap: 17px; padding: 10px 20px; background: linear-gradient(100deg, #cc001f, #e0002c); }
.te-single__status--ausverkauft { color: #17130b; background: linear-gradient(100deg, #e59400, #ffb52d); }
.te-single__status--ausverkauft .te-single__status-copy { border-left-color: rgba(23, 19, 11, .45); }
.te-single__status--wenige-tickets { color: #fff; background: linear-gradient(100deg, #24292d, #3b4247); }
.te-single__status strong { flex: 0 0 43%; font-family: "Signika", sans-serif; font-size: clamp(1.2rem, 2.3vw, 1.6rem); text-transform: uppercase; }
.te-single__status-copy { flex: 1; padding: 3px 0 3px 20px; border-left: 1px solid rgba(255,255,255,.75); }
.te-single__status-copy > :last-child, .te-single__notice-copy > :last-child { margin-bottom: 0; }
.te-single__notice { gap: 16px; padding: 12px 20px; background: linear-gradient(100deg, #0875ac, #0097d5); }
.te-icon { position: relative; display: inline-grid; flex: 0 0 24px; place-items: center; width: 24px; height: 24px; font-style: normal; font-weight: 800; }
.te-icon svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.te-single__overview { display: grid; grid-template-columns: minmax(240px, 1.05fr) minmax(330px, .95fr) minmax(205px, .55fr); gap: clamp(24px, 3vw, 38px); padding: 16px 2px 32px; border-bottom: 1px solid var(--tes-line); }
.te-single__image { position: relative; overflow: hidden; border-radius: 5px; background: var(--tes-panel); }
.te-single__image-link { display: block; height: 100%; color: inherit; cursor: zoom-in; }
.te-single__image img { display: block; width: 100%; height: 100%; min-height: 290px; object-fit: cover; }
.te-single__image figcaption { position: absolute; right: 0; bottom: 0; padding: 5px 8px; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; }
.te-single__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 24px; }
.te-single__fact { min-width: 0; }
.te-single__fact-heading { display: flex; align-items: center; gap: 12px; min-height: 24px; margin-bottom: 14px; }
.te-single__fact-heading .te-icon { align-self: center; }
.te-single__fact h2 { margin: 0; line-height: 1.2; }
.te-single__fact-content { display: grid; gap: 8px; }
.te-single__fact h2, .te-single__tickets h2, .te-single__meta h2, .te-single__detail-note h2 { margin-bottom: 10px; color: var(--tes-text); font-family: "Signika", sans-serif; font-size: 1rem; font-weight: 700; }
.te-single__fact h2 { margin: 0; }
.te-single__fact strong { display: block; margin-bottom: 0; font-size: 1.05rem; }
.te-single__fact p { margin-bottom: 0; color: var(--tes-muted); line-height: 1.5; }
.te-single__tickets { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--tes-line); }
.te-single__tickets h2 { display: flex; align-items: center; gap: 14px; }
.te-single__tickets > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.te-single .te-single__tickets a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border: 1px solid #738087; border-radius: 6px; color: var(--tes-ticket-secondary-text) !important; background: var(--tes-ticket-secondary-bg) !important; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.te-single .te-single__tickets a:first-child { border-color: var(--tes-ticket-primary-bg); color: var(--tes-ticket-primary-text) !important; background: var(--tes-ticket-primary-bg) !important; }
.te-single .te-single__tickets a:hover, .te-single .te-single__tickets a:focus-visible { border-color: var(--tes-ticket-hover-bg); color: var(--tes-ticket-hover-text) !important; background: var(--tes-ticket-hover-bg) !important; }
.te-single .te-single__tickets a svg { fill: currentColor !important; }
.te-single__external { display: inline-flex; flex: 0 0 18px; align-items: center; justify-content: center; }
.te-single__external svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.te-single__social { align-self: start; border: 1px solid var(--tes-line); border-radius: 7px; overflow: hidden; }
.te-single__social a { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 10px; min-height: 61px; padding: 10px 14px; text-decoration: none; font-size: .75rem; }
.te-single__social a + a { border-top: 1px solid var(--tes-line); }
.te-single__social b { display: grid; place-items: center; width: 24px; height: 24px; }
.te-single__social b svg { display: block; width: 24px; height: 24px; fill: currentColor; }
.te-single__social .is-youtube { color: #ff0000; }
.te-single__social .is-spotify { color: #1ed760; }
.te-single__social .is-facebook { color: #1877f2; }
.te-single__description { padding: 25px 0 27px; border-bottom: 1px solid var(--tes-line); }
.te-single__description > h2 { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; color: var(--tes-text); font-family: "Signika", sans-serif; font-size: 1.25rem; font-weight: 400; }
.te-single__description > h2::before { width: 24px; height: 1px; background: var(--tes-line); content: ""; }
.te-single__description > h2::after { flex: 1; height: 1px; max-width: 340px; background: var(--tes-line); content: ""; }
.te-single__copy { max-width: 760px; color: var(--tes-muted); line-height: 1.55; }
.te-single__copy > :last-child { margin-bottom: 0; }
.te-single__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 26px 0; }
.te-single__meta > div { padding: 0 28px; }
.te-single__meta > div:first-child { padding-left: 0; }
.te-single__meta > div + div { border-left: 1px solid var(--tes-line); }
.te-single__meta h2 { display: flex; align-items: center; gap: 12px; }
.te-single__meta p { margin: 0; color: var(--tes-muted); }
.te-single__meta a { color: var(--tes-muted); text-underline-offset: 3px; }
.te-single__website-link { display: inline-flex; align-items: center; gap: 7px; }
.te-single__genres { display: flex; flex-wrap: wrap; gap: 9px; }
.te-single__genres span { padding: 6px 12px; border-radius: 5px; background: var(--tes-panel-strong); font-size: .72rem; text-transform: uppercase; }
.te-single__detail-note { display: grid; grid-template-columns: 56px 1fr; gap: 24px; margin-top: 14px; padding: 25px 35px; border-left: 4px solid; border-radius: 7px; background: var(--tes-panel); }
.te-single__detail-note > .te-icon { width: 32px; height: 32px; }
.te-single__detail-note > .te-icon svg { width: 32px; height: 32px; }
.te-single__change-note { border-left-color: var(--tes-blue); }
.te-single__change-note > .te-icon { color: var(--tes-blue); }
.te-single__cancel-note { border-left-color: var(--tes-red); }
.te-single__cancel-note > .te-icon { color: var(--tes-red); }
.te-single__detail-note-copy { color: var(--tes-muted); line-height: 1.5; }
.te-single__detail-note-copy > :last-child { margin-bottom: 0; }

html[data-theme="dark"] .te-single,
body.is-dark .te-single,
body.theme-dark .te-single,
body.dark .te-single {
  --tes-panel: rgba(255, 255, 255, .055);
  --tes-panel-strong: #151e23;
  --tes-line: rgba(255, 255, 255, .2);
  --tes-text: #f7f8f8;
  --tes-muted: #c5cbce;
  --tes-ticket-primary-bg: #fff;
  --tes-ticket-primary-text: #101416;
  --tes-ticket-secondary-bg: transparent;
  --tes-ticket-secondary-text: #f7f8f8;
}

html[data-theme="light"] .te-single,
body.is-light .te-single,
body.theme-light .te-single,
body.light .te-single {
  --tes-panel: rgba(17, 24, 28, .055);
  --tes-panel-strong: #eef0f1;
  --tes-line: rgba(17, 17, 17, .18);
  --tes-text: var(--contrast, #111);
  --tes-muted: var(--trinity-muted, #5b6673);
  --tes-ticket-primary-bg: #111;
  --tes-ticket-primary-text: #fff;
  --tes-ticket-secondary-bg: transparent;
  --tes-ticket-secondary-text: var(--tes-text);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .te-single {
    --tes-panel: rgba(255, 255, 255, .055);
    --tes-panel-strong: #151e23;
    --tes-line: rgba(255, 255, 255, .2);
    --tes-text: #f7f8f8;
    --tes-muted: #c5cbce;
    --tes-ticket-primary-bg: #fff;
    --tes-ticket-primary-text: #101416;
    --tes-ticket-secondary-bg: transparent;
    --tes-ticket-secondary-text: #f7f8f8;
  }
}

@media (max-width: 980px) {
  .te-single__overview { grid-template-columns: minmax(250px, .9fr) minmax(320px, 1.1fr); }
  .te-single__social { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .te-single__social a + a { border-top: 0; border-left: 1px solid var(--tes-line); }
}

@media (max-width: 700px) {
  .single-event .event-genres { justify-content: flex-start; }
  .te-single__status { align-items: flex-start; flex-wrap: wrap; }
  .te-single__status strong { flex: 1; }
  .te-single__status-copy { flex-basis: 100%; padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,.5); border-left: 0; }
  .te-single__overview { grid-template-columns: 1fr; padding-top: 8px; }
  .te-single__image img { min-height: 0; aspect-ratio: 4 / 3; }
  .te-single__social { grid-column: auto; grid-template-columns: 1fr; }
  .te-single__social a + a { border-top: 1px solid var(--tes-line); border-left: 0; }
  .te-single__meta { grid-template-columns: 1fr; gap: 0; }
  .te-single__meta > div, .te-single__meta > div:first-child { padding: 18px 0; }
  .te-single__meta > div + div { border-top: 1px solid var(--tes-line); border-left: 0; }
}

@media (max-width: 440px) {
  .te-single__facts { grid-template-columns: 1fr; }
  .te-single__tickets { grid-column: auto; }
  .te-single__tickets > div { grid-template-columns: 1fr; }
  .te-single__detail-note { grid-template-columns: 38px 1fr; gap: 12px; padding: 20px 18px; }
}
