.tl-termine{display:grid;grid-template-columns:1fr;gap:24px}
.tl-termin{position:relative;isolation:isolate;min-height:190px;display:flex;align-items:center;justify-content:center;text-align:center;padding:30px 22px;color:#fff;background-color:#110b0b;background-image:var(--tl-bg-image);background-size:contain;background-repeat:repeat;box-shadow:0 2px 18px rgba(0,0,0,.3);transition:transform .2s ease,box-shadow .2s ease}
.tl-termin:hover{transform:translateY(-2px);box-shadow:0 5px 20px rgba(0,0,0,.38)}
.tl-termin-content{position:relative;z-index:1;pointer-events:none}
.tl-termin h2{font-size:32px;line-height:1.4;font-weight:700;color:#fff;margin:0 0 12px}
.tl-termin p{font-size:16px;line-height:1.65;color:#fff;margin:0 0 10px;font-weight:600}
.tl-termin p:last-child{margin-bottom:0}
.tl-termin-link{position:absolute;inset:0;z-index:2}
.tl-termin-link:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:767px){.tl-termin{padding:24px 14px}.tl-termin h2{font-size:26px}}

.tl-termin-status{font-size:.65em;font-weight:600;white-space:nowrap;vertical-align:baseline}

.tl-city-filter{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 20px}
.tl-city-filter label{font-weight:600}
.tl-city-filter select{width:auto;min-width:220px;max-width:100%;padding:9px 12px;border:1px solid #bbb;border-radius:4px;background:#fff;color:#222}
.tl-termin[hidden]{display:none!important}

/* Startseiten-Shortcode: übernimmt Schrift und Farben des umgebenden Divi-Bereichs. */
.tl-next-event{text-align:center;color:inherit}
.tl-next-event .tl-next-label{font-size:28px;font-weight:700;line-height:1.35;margin:0 0 12px;color:inherit}
.tl-next-event .tl-next-date{font-size:40px;font-weight:700;line-height:1.2;margin:0;color:inherit}
.tl-next-event .tl-next-time{font-size:22px;font-weight:600;line-height:1.5;margin:5px 0 26px;color:inherit}
.tl-next-event .tl-next-place{font-size:38px;font-weight:700;line-height:1.3;margin:0 0 24px;color:inherit}
.tl-next-event .tl-next-button{display:inline-block;text-align:center}
@media(max-width:767px){.tl-next-event .tl-next-label{font-size:24px}.tl-next-event .tl-next-date{font-size:30px}.tl-next-event .tl-next-time{font-size:18px}.tl-next-event .tl-next-place{font-size:29px}}

/* Countdown unter dem Startseiten-Slider. */
.tl-countdown{text-align:center;color:inherit}
.tl-countdown-heading{color:inherit;font-size:20px;font-weight:700;margin:0 0 18px}
.tl-countdown-units{display:flex;justify-content:center;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.tl-countdown-unit{min-width:76px;display:flex;flex-direction:column;align-items:center;gap:4px}
.tl-countdown-number{font-size:44px;line-height:1.1;font-weight:700;font-variant-numeric:tabular-nums}
.tl-countdown-unit-label{font-size:13px;line-height:1.3}
.tl-countdown-button{display:inline-block}
@media(max-width:767px){.tl-countdown-units{gap:8px}.tl-countdown-unit{min-width:61px}.tl-countdown-number{font-size:32px}.tl-countdown-unit-label{font-size:11px}}

/* Zweispaltiger Startseiten-Countdown mit roter Informationsbox. */
.tl-countdown-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:32px;text-align:center;width:100%;max-width:1200px;margin:0 auto}
.tl-countdown-layout .tl-countdown-left{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:28px 10px}
.tl-countdown-layout .tl-countdown-heading{margin:0 0 26px;font-size:22px;line-height:1.4}
.tl-countdown-layout .tl-countdown-units{margin-bottom:0;gap:10px;flex-wrap:nowrap}
.tl-countdown-layout .tl-countdown-unit{min-width:0;flex:1}
.tl-countdown-layout .tl-countdown-number{font-size:clamp(27px,3vw,48px)}
.tl-countdown-layout .tl-countdown-right{background:#951b1e;color:#fff;padding:38px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}
.tl-countdown-layout .tl-countdown-program{color:#fff;font-size:clamp(25px,2.6vw,39px);font-weight:700;line-height:1.25;margin:0 0 16px}
.tl-countdown-layout .tl-countdown-description{color:#fff;font-size:20px;line-height:1.5;margin:0 0 22px}
.tl-countdown-layout .tl-countdown-button{color:#fff!important;border-color:#fff!important;font-size:16px!important;line-height:1.5!important;max-width:100%}
@media(max-width:767px){.tl-countdown-layout{grid-template-columns:1fr;gap:18px}.tl-countdown-layout .tl-countdown-left{padding:18px 4px}.tl-countdown-layout .tl-countdown-right{padding:28px 18px}.tl-countdown-layout .tl-countdown-heading{font-size:19px}.tl-countdown-layout .tl-countdown-units{gap:7px}.tl-countdown-layout .tl-countdown-number{font-size:32px}.tl-countdown-layout .tl-countdown-description{font-size:17px}}

/* 1.2.3: Countdown wie der bisherige schwarze Divi-Startseitenbereich.
   Nur der Countdown-Shortcode ist betroffen. */
.tl-countdown-shell{
  background:#000!important;
  color:#fff!important;
  box-sizing:border-box;
  width:100vw;
  max-width:none;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:78px 24px 80px;
}
.tl-countdown-shell .tl-countdown-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:48px;
  width:100%;
  max-width:1100px;
  margin:0 auto;
  align-items:stretch;
  color:#fff;
}
.tl-countdown-shell .tl-countdown-left{
  padding:16px 8px;
  color:#fff;
}
.tl-countdown-shell .tl-countdown-heading{
  color:#fff!important;
  font-size:27px;
  font-weight:400;
  line-height:1.05;
  max-width:390px;
  margin:0 auto 42px;
}
.tl-countdown-shell .tl-countdown-units{
  gap:5px;
  margin:0;
  justify-content:center;
}
.tl-countdown-shell .tl-countdown-unit{
  position:relative;
  flex:0 1 78px;
  gap:12px;
  color:#fff;
}
.tl-countdown-shell .tl-countdown-unit:not(:last-child)::after{
  content:":";
  position:absolute;
  top:1px;
  right:-6px;
  font-size:29px;
  line-height:1.2;
  color:#fff;
}
.tl-countdown-shell .tl-countdown-number{
  font-size:30px;
  font-weight:400;
  line-height:1.3;
  color:#fff;
}
.tl-countdown-shell .tl-countdown-unit-label{
  color:#fff;
  font-size:12px;
  line-height:1.3;
}
.tl-countdown-shell .tl-countdown-right{
  background:#ed241c!important;
  padding:38px 40px;
  min-height:242px;
  color:#fff;
}
.tl-countdown-shell .tl-countdown-program{
  color:#fff!important;
  font-size:27px;
  font-weight:400;
  line-height:1.3;
  margin:0 0 7px;
}
.tl-countdown-shell .tl-countdown-description{
  color:#fff!important;
  font-size:14px;
  line-height:1.4;
  margin:0 0 20px;
}
.tl-countdown-shell .tl-countdown-button.et_pb_button{
  display:block;
  width:100%;
  box-sizing:border-box;
  border:2px solid #ffde00!important;
  border-radius:0!important;
  background:transparent!important;
  color:#ffde00!important;
  padding:8px 16px!important;
  font-size:20px!important;
  font-weight:400!important;
  line-height:1.45!important;
  text-align:center;
  white-space:normal;
}
.tl-countdown-shell .tl-countdown-button.et_pb_button::after{display:none!important}
.tl-countdown-shell .tl-countdown-button.et_pb_button:hover{
  background:rgba(0,0,0,.12)!important;
  padding:8px 16px!important;
}
@media(max-width:767px){
  .tl-countdown-shell{padding:45px 18px}
  .tl-countdown-shell .tl-countdown-layout{grid-template-columns:1fr;gap:32px}
  .tl-countdown-shell .tl-countdown-left{padding:0 4px}
  .tl-countdown-shell .tl-countdown-heading{font-size:24px;margin-bottom:28px}
  .tl-countdown-shell .tl-countdown-right{padding:30px 22px;min-height:0}
  .tl-countdown-shell .tl-countdown-program{font-size:25px}
  .tl-countdown-shell .tl-countdown-button.et_pb_button{font-size:17px!important}
}

/* 1.2.4: Countdown-Typografie exakt an die bestehende Divi-Vorlage angenähert. */
.tl-countdown-shell .tl-countdown-heading{
  font-size:27px!important;
  font-weight:700!important;
  line-height:1.05!important;
  margin-bottom:42px!important;
}
.tl-countdown-shell .tl-countdown-units{
  display:flex!important;
  flex-wrap:nowrap!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:12px!important;
}
.tl-countdown-shell .tl-countdown-unit{
  flex:0 0 73px!important;
  min-width:0!important;
  gap:12px!important;
}
.tl-countdown-shell .tl-countdown-number{
  font-size:30px!important;
  font-weight:700!important;
  line-height:1.3!important;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.tl-countdown-shell .tl-countdown-unit:not(:last-child)::after{
  right:-10px!important;
  top:1px!important;
  font-size:29px!important;
  font-weight:400!important;
}
.tl-countdown-shell .tl-countdown-unit-label{
  font-size:12px!important;
  font-weight:400!important;
  white-space:nowrap;
}
@media(max-width:480px){
  .tl-countdown-shell .tl-countdown-heading{font-size:22px!important;margin-bottom:30px!important}
  .tl-countdown-shell .tl-countdown-units{gap:5px!important}
  .tl-countdown-shell .tl-countdown-unit{flex:0 1 65px!important}
  .tl-countdown-shell .tl-countdown-number{font-size:24px!important}
  .tl-countdown-shell .tl-countdown-unit:not(:last-child)::after{font-size:23px!important;right:-6px!important}
  .tl-countdown-shell .tl-countdown-unit-label{font-size:10px!important}
}

/* 1.2.6: Slider-CTA wie auf der bisherigen Startseite.
   Ausschließlich der Shortcode [naechster_termin], nicht der Countdown. */
.et_pb_slide .tl-next-event,
.et_pb_slides .tl-next-event {
  color:#fff;
  text-align:center;
  width:100%;
  max-width:1100px;
  margin:0 auto;
}
.et_pb_slide .tl-next-event .tl-next-label,
.et_pb_slides .tl-next-event .tl-next-label {
  font-size:clamp(34px,4.1vw,56px)!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-transform:uppercase;
  color:#fff!important;
  margin:0 0 26px!important;
  padding:0!important;
}
.et_pb_slide .tl-next-event .tl-next-date,
.et_pb_slides .tl-next-event .tl-next-date {
  font-size:30px!important;
  font-weight:700!important;
  line-height:1.2!important;
  color:#fff!important;
  margin:0!important;
  padding:0!important;
}
.et_pb_slide .tl-next-event .tl-next-time,
.et_pb_slides .tl-next-event .tl-next-time {
  font-size:30px!important;
  font-weight:400!important;
  line-height:1.2!important;
  color:#fff!important;
  margin:0 0 48px!important;
  padding:0!important;
}
.et_pb_slide .tl-next-event .tl-next-place,
.et_pb_slides .tl-next-event .tl-next-place {
  font-size:30px!important;
  font-weight:700!important;
  line-height:1.3!important;
  color:#fff!important;
  margin:0 0 48px!important;
  padding:0!important;
}
.et_pb_slide .tl-next-event a.tl-next-button.et_pb_button,
.et_pb_slides .tl-next-event a.tl-next-button.et_pb_button {
  display:inline-block!important;
  width:auto!important;
  max-width:100%;
  padding:10px 20px!important;
  border:2px solid #ffe600!important;
  border-radius:3px!important;
  background:#ed241c!important;
  color:#ffe600!important;
  font-size:18px!important;
  font-weight:700!important;
  line-height:1.4!important;
  text-align:center;
  text-decoration:none!important;
  box-shadow:none!important;
}
.et_pb_slide .tl-next-event a.tl-next-button.et_pb_button:hover,
.et_pb_slides .tl-next-event a.tl-next-button.et_pb_button:hover {
  background:#c81b16!important;
  color:#ffe600!important;
}
.et_pb_slide .tl-next-event a.tl-next-button.et_pb_button::after,
.et_pb_slides .tl-next-event a.tl-next-button.et_pb_button::after {
  display:none!important;
  content:none!important;
}
@media(max-width:767px){
  .et_pb_slide .tl-next-event .tl-next-label,.et_pb_slides .tl-next-event .tl-next-label{font-size:34px!important;margin-bottom:20px!important}
  .et_pb_slide .tl-next-event .tl-next-date,.et_pb_slides .tl-next-event .tl-next-date{font-size:23px!important}
  .et_pb_slide .tl-next-event .tl-next-time,.et_pb_slides .tl-next-event .tl-next-time{font-size:23px!important;margin-bottom:28px!important}
  .et_pb_slide .tl-next-event .tl-next-place,.et_pb_slides .tl-next-event .tl-next-place{font-size:23px!important;margin-bottom:30px!important}
  .et_pb_slide .tl-next-event a.tl-next-button.et_pb_button,.et_pb_slides .tl-next-event a.tl-next-button.et_pb_button{font-size:15px!important}
}

/* Optionaler Zusatztext direkt unter Programm / Beschreibung */
.tl-termin-zusatztext{margin:8px 0 0;white-space:normal;}
