/* =========================================================
   ToT Events - Core CSS (FINAL)
   ========================================================= */

/* =========================================================
   TEC CLEANUP
   ========================================================= */

.single-tribe_events .tribe-events.tribe-common,
.single-tribe_events .tribe-events-c-subscribe-dropdown__container {
  display: none !important;
}

.single-tribe_events .tribe-events-footer,
.single-tribe_events #tribe-events-footer {
  visibility: hidden;
  height: 0;
  padding-bottom: 40px;
}

.single-tribe_events .tribe-events-meta-group .tribe-venue-url,
.single-tribe_events .tribe-events-event-categories-label,
.single-tribe_events .tribe-events-event-categories,
.single-tribe_events .tribe-events-meta-item:has(.tribe-events-event-categories-label) {
  display: none !important;
}

/* =========================================================
   LIST WRAPPER
   ========================================================= */

.tot-events-list .section_wrapper {
  display: block;
}

.tot-events-list .mfn-queryloop-item-wrapper {
  display: block !important;
}

.tot-events-list .mfn-queryloop-item-wrapper .wrap {
  width: 100% !important;
}

/* =========================================================
   EVENT CARD
   ========================================================= */

.tot-event-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, .08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
  display: flex;
  align-items: flex-start !important;
  overflow: hidden;
  height: 100%;
}

/* =========================================================
   IMAGE
   ========================================================= */

.tot-event-media {
  position: relative;
  width: 34%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
}

.tot-event-media img,
.tot-event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =========================================================
   CONTENT - OBEN BÜNDIG ZUM BILD
   ========================================================= */

.tot-event-content {
  width: 66%;
  padding: 0 32px 0 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: flex-start;
  align-self: flex-start;
  margin-top: 0 !important;
  min-height: 100%;
}

.tot-event-content .column,
.tot-event-content .mcb-column-inner,
.tot-event-content .column_attr {
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  align-self: flex-start !important;
}

.tot-event-content > *:first-child,
.tot-event-content .column:first-child,
.tot-event-content .column_attr > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================================================
   TEXT / TYPO
   ========================================================= */

.tot-event-meta {
  font-size: 15px;
  line-height: 1.5;
  color: #1f1f1f;
  margin: 0 0 12px 0 !important;
}

.tot-event-venue {
  font-size: 15px;
  line-height: 1.4;
  opacity: .78;
  margin: 0 0 6px 0 !important;
}

.tot-event-title,
.tot-event-content h5 {
  margin: 0 0 10px 0 !important;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #111111;
}

.tot-event-title a,
.tot-event-content h5 a {
  color: inherit;
  text-decoration: none;
}

.tot-event-title a:hover,
.tot-event-content h5 a:hover {
  text-decoration: underline;
}

/* Subtitle direkt unter Titel */
.tot-event-subtitle,
.tot-event-artist,
.tot-event-content .tot-subtitle,
.tot-event-content .tot-artist {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: #1f1f1f;
  margin: 0 0 14px 0 !important;
}

/* Falls Subtitle/Artist im ersten normalen Absatz steckt */
.tot-event-content p {
  margin-top: 0 !important;
}

.tot-event-content h5 + p {
  margin-top: 0 !important;
}

/* Textabstand nach Subtitle */
.tot-event-text {
  margin: 0 !important;
  font-size: 16px;
  line-height: 1.7;
  color: #202020;
}

.tot-event-subtitle + .tot-event-text,
.tot-event-artist + .tot-event-text,
.tot-event-content .tot-subtitle + .tot-event-text,
.tot-event-content .tot-artist + .tot-event-text {
  margin-top: 6px !important;
}

/* =========================================================
   BUTTONS WRAPPER
   ========================================================= */

.tot-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 0;
}

/* =========================================================
   BUTTON RESET
   ========================================================= */

.tot-event-btn,
.tot-ticket-button,
a.tot-event-btn,
a.tot-ticket-button,
.tot-event-actions a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1;
  text-decoration: none !important;
  border-radius: 5px !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
  cursor: pointer;
}


/* =========================================================
   ToT BUTTONS - CLEAN
   ========================================================= */

a.tot-btn,
a.tot-btn.button,
a.tot-btn.button_size_2,
a.tot-btn.button_left,
a.tot-btn.button.button_size_2,
a.tot-btn.button.button_left,
a.tot-btn.button.button_left.button_size_2 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 15px 20px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border: 0 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}

/* Mehr erfahren */
a.tot-btn-more,
a.tot-btn-more.button,
a.tot-btn-more.button_size_2,
a.tot-btn-more.button:hover,
a.tot-btn-more.button_size_2:hover,
a.tot-btn-more:focus,
a.tot-btn-more:active {
  background: #ececec !important;
  color: #000000 !important;
  border-color: #ececec !important;
}

/* MEHR ERFAHREN – finaler Hover-Fix */
.mcb-item-cnyx5ig a.button.tot-btn-more,
.mcb-item-cnyx5ig a.button.tot-btn-more:visited {
  background: #ececec !important;
  background-color: #ececec !important;
  color: #000000 !important;
  border-color: #ececec !important;
}

.mcb-item-cnyx5ig a.button.tot-btn-more:hover,
.mcb-item-cnyx5ig a.button.tot-btn-more:focus,
.mcb-item-cnyx5ig a.button.tot-btn-more:active {
  background: #dcdcdc !important;
  background-color: #dcdcdc !important;
  color: #000000 !important;
  border-color: #dcdcdc !important;
  box-shadow: none !important;
  transform: none !important;
}

.mcb-item-cnyx5ig a.button.tot-btn-more span,
.mcb-item-cnyx5ig a.button.tot-btn-more:hover span,
.mcb-item-cnyx5ig a.button.tot-btn-more:focus span,
.mcb-item-cnyx5ig a.button.tot-btn-more:active span {
  color: #000000 !important;
}

.mcb-item-cnyx5ig a.button.tot-btn-more::before,
.mcb-item-cnyx5ig a.button.tot-btn-more::after,
.mcb-item-cnyx5ig a.button.tot-btn-more:hover::before,
.mcb-item-cnyx5ig a.button.tot-btn-more:hover::after {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Tickets */
a.tot-btn-ticket,
a.tot-btn-ticket.button,
a.tot-btn-ticket.button_left,
a.tot-btn-ticket.button_size_2,
a.tot-btn-ticket.button:hover,
a.tot-btn-ticket.button_size_2:hover,
a.tot-btn-ticket:focus,
a.tot-btn-ticket:active {
  background: #006e69 !important;
  color: #ffffff !important;
  border-color: #006e69 !important;
}

a.tot-btn-ticket:hover,
a.tot-btn-ticket.button:hover,
a.tot-btn-ticket.button_size_2:hover,
a.tot-btn-ticket:focus,
a.tot-btn-ticket:active {
  background: #00605c !important;
  color: #ffffff !important;
  border-color: #00605c !important;
  transform: none !important;
}
/* Mehr laden */
a.tot-btn-loadmore,
a.tot-btn-loadmore.button,
a.tot-btn-loadmore:hover,
a.tot-btn-loadmore:focus {
margin-top: 20px;
  background: #ececec !important;
  color: #000000 !important;
}

a.tot-btn-loadmore:hover,
a.tot-btn-loadmore:focus {
  background: #dcdcdc !important;
  color: #000000 !important;
}

/* =========================================================
   LOAD MORE
   ========================================================= */

.mfn-query-pagination,
.mfn-query-pagination ul,
.mfn-query-pagination .page-numbers {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mfn-query-pagination ul.page-numbers {
  display: inline-block !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mfn-query-pagination li {
  display: inline-block !important;
  margin: 0;
  padding: 0;
}

.mfn-query-pagination.mfn-query-pagination-loadmore {
  margin-top: 30px;
  text-align: center;
}

a.tot-load-more-btn,
.mfn-query-pagination.mfn-query-pagination-loadmore a.tot-load-more-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px 15px 20px !important; 
  font-size: 15px !important;
  font-weight: 500 !important;

  border-radius: 5px !important;

  background: #ececec !important;
  color: #000000 !important;

  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  visibility: visible !important;
  opacity: 1 !important;
}

a.tot-load-more-btn:hover,
.mfn-query-pagination.mfn-query-pagination-loadmore a.tot-load-more-btn:hover {
  background: #dcdcdc !important;
  color: #000000 !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 959px) {
  .tot-event-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tot-event-title,
  .tot-event-content h5 {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .tot-event-card {
    flex-direction: column;
  }

  .tot-event-media,
  .tot-event-content {
    width: 100%;
  }

  .tot-event-media {
    aspect-ratio: 1 / 1;
  }

  .tot-event-content {
    padding: 18px 18px 0 18px;
  }

  .tot-event-title,
  .tot-event-content h5 {
    font-size: 18px;
  }

  .tot-event-text,
  .tot-event-meta,
  .tot-event-venue,
  .tot-event-subtitle,
  .tot-event-artist {
    font-size: 15px;
    line-height: 1.6;
  }

  .tot-event-actions {
    gap: 10px;
    width: 100%;
  }

  .tot-event-btn,
  .tot-ticket-button,
  .tot-event-actions a {
    width: 100%;
  }

  a.tot-load-more-btn {
    width: auto;
    max-width: 100%;
  }
}

.mfn-queryloop-item-wrapper + .mfn-queryloop-item-wrapper {
  margin-top: 50px !important;
}
/* Subtitle sauber unter Title */
.tot-event-content h5 + p {
  margin-top: 4px !important;   /* näher an Titel */
}

/* Abstand vom Subtitle zum Text erhöhen */
.tot-event-content h5 + p br {
  display: block;
  content: "";
  margin-bottom: 10px; /* Abstand zum eigentlichen Text */
}
.tot-video-embed {
	position: relative;
	width: 100%;
	margin: 24px 0;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.tot-video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
/* =========================================================
   PROGRAMM-FILTER / SUCHE
   Aktiv nur bei [tot_events_list ... filters="1"]
   ========================================================= */

.tot-events-filters {
  margin: 0 0 36px;
}

.tot-events-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.8fr) minmax(160px, 1fr) minmax(170px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
}

.tot-events-filter-field {
  min-width: 0;
  margin: 0;
}

.tot-events-filter-field input[type="search"],
.tot-events-filter-field select {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: none;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.tot-events-filter-field input[type="search"]::placeholder {
  color: #777777;
  opacity: 1;
}

.tot-events-filter-field input[type="search"]:focus,
.tot-events-filter-field select:focus {
  outline: none;
  border-color: #006e69;
  box-shadow: 0 0 0 1px #006e69;
}

.tot-events-filter-actions {
  display: flex;
  align-items: center;
  margin: 0;
}

.tot-events-shortcode button.tot-events-filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  border-radius: 5px !important;
  background: #006e69 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}

.tot-events-shortcode button.tot-events-filter-submit:hover,
.tot-events-shortcode button.tot-events-filter-submit:focus {
  background: #00605c !important;
  color: #ffffff !important;
}

.tot-events-shortcode button.tot-events-filter-submit:disabled {
  opacity: .65;
  cursor: wait;
}

/* Bleibt leer und unsichtbar; wird nur bei einem AJAX-Fehler eingeblendet. */
.tot-events-filter-status {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #666666;
}

.tot-events-filter-status:empty {
  display: none;
}

.tot-events-empty {
  width: 100%;
  padding: 24px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #444444;
}

.tot-events-shortcode .mfn-query-pagination.tot-pagination-hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .tot-events-filters {
    margin-bottom: 26px;
  }

  .tot-events-filter-form {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .tot-events-filter-search,
  .tot-events-filter-actions {
    grid-column: 1 / -1;
  }

  .tot-events-filter-field input[type="search"],
  .tot-events-filter-field select,
  .tot-events-shortcode button.tot-events-filter-submit {
    height: 44px;
    min-height: 44px;
    font-size: 14px;
  }

  .tot-events-shortcode button.tot-events-filter-submit {
    width: 100%;
  }
}
/* Filterbereich optisch von der Eventliste trennen */
.tot-events-filters {
    margin: 0 0 44px;
    padding-bottom: 24px;
    border-bottom: 1px solid #006e69;
}

/* Mobile kompakter */
@media (max-width: 767px) {
    .tot-events-filters {
        margin-bottom: 30px;
        padding-bottom: 18px;
    }
}
