/*=================================================================*/
/*                           RSEVENTS!PRO                          */
/*=================================================================*/

/*-----------------------*/
/* Modul Upcoming Events */
/*-----------------------*/

.home-events-section {
  margin-top: 0;
  padding: 24px 0 24px;
  background: #f5f5f5 !important;
}

/* Überschrift */
.home-events-section h2,
.home-events-section .module-title,
.home-events-section .moduletable > h3,
.home-events-section .rspbld-title h2,
.home-events-section .rspbld-title h3 {
  text-align: center;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #111111;
  margin: 0 0 42px;
}

/* Roter Strich unter Überschrift */
.home-events-section h2::after,
.home-events-section .module-title::after,
.home-events-section .moduletable > h3::after,
.home-events-section .rspbld-title h2::after,
.home-events-section .rspbld-title h3::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  background: #b60012;
  margin: 18px auto 0;
}

/* Alte RSEvents-Styles neutralisieren */
.home-events-module,
.home-events-module #rsepro-upcoming-module,
.home-events-module .rsepro_upcoming {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Desktop: drei Termine nebeneinander */
.home-events-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
}

/* Einzeltermin */
.home-event-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-areas:
    "date info"
    "image info";
  column-gap: 24px;
  row-gap: 14px;
  align-items: start;

  padding: 0 32px;
  background: transparent;
}

/* Trennlinie zwischen den Terminen */
.home-event-item + .home-event-item {
  border-left: 1px solid rgba(0, 0, 0, 0.13);
}

/* Datumskachel links oben */
.home-event-date {
  grid-area: date;

  width: 72px;
  height: 78px;
  background: var(--event-color, #b60012);
  color: #ffffff !important;
  text-decoration: none !important;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Tag */
.home-event-day {
  display: block;
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
}

/* Monat */
.home-event-month {
  display: block;
  margin-top: 7px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Bild unter der Datumskachel */
.home-event-image {
  grid-area: image;

  display: block;
  width: 92px;
  height: 72px;
  margin-top: 4px;
  background: #e9e9e9;
  overflow: hidden;
  text-decoration: none !important;
}

.home-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Textbereich rechts */
.home-event-info {
  grid-area: info;
  min-width: 0;
  padding-top: 0;
}

.home-event-info h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  color: #111111;
}

.home-event-info h3 a {
  color: #111111;
  text-decoration: none;
}

.home-event-info h3 a:hover {
  color: #b60012;
  text-decoration: none;
}

.home-event-location,
.home-event-date-line,
.home-event-time {
  font-size: 17px;
  line-height: 1.35;
  color: #111111;
}

.home-event-location {
  margin-bottom: 4px;
}

.home-event-date-line {
  margin-bottom: 4px;
}

.home-event-time {
  margin-bottom: 20px;
}

/* Mehr Infos */
.home-event-link {
  display: inline-block;
  color: #b60012;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.home-event-link::after {
  content: " →";
  margin-left: 6px;
}

.home-event-link:hover,
.home-event-link:focus {
  color: #8f000e;
  text-decoration: none !important;
}

/* Button: Alle Termine ansehen */
.home-events-all {
  text-align: center;
  margin-top: 42px;
  margin-bottom: 0;
}

.home-events-all a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 260px;
  min-height: 54px;
  padding: 0 34px;

  border: 1px solid #b60012;
  color: #b60012;
  background: transparent;

  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.home-events-all a:hover,
.home-events-all a:focus {
  background: #b60012;
  color: #ffffff;
  text-decoration: none !important;
}

/* Tablet: zwei Termine nebeneinander */
@media (max-width: 991px) {
  .home-events-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .home-event-item {
    padding: 0 28px;
  }

  .home-event-item:nth-child(2n + 1) {
    border-left: none;
  }

  .home-event-item:nth-child(n + 3) {
    margin-top: 36px;
  }
}

/* Mobil: untereinander */
@media (max-width: 767px) {
  .home-events-section {
    margin-top: 0;
    padding: 24px 0 24px;
  }

  .home-events-section h2,
  .home-events-section .module-title,
  .home-events-section .moduletable > h3,
  .home-events-section .rspbld-title h2,
  .home-events-section .rspbld-title h3 {
    font-size: 26px;
    margin-bottom: 34px;
  }

  .home-events-list {
    display: block;
    max-width: 420px;
    padding: 0 24px;
  }

  .home-event-item {
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 22px;
    padding: 0;
  }

  .home-event-item + .home-event-item {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.13);
    margin-top: 30px;
    padding-top: 30px;
  }

  .home-event-date {
    width: 70px;
    height: 76px;
  }

  .home-event-image {
    width: 82px;
    height: 66px;
  }

  .home-event-info h3 {
    font-size: 18px;
  }

  .home-event-location,
  .home-event-date-line,
  .home-event-time {
    font-size: 16px;
  }

  .home-events-all a {
    min-width: 0;
    width: 100%;
    max-width: 320px;
  }
}


/*=================================*/
/*         Terminübersicht         */
/*=================================*/
/* Terminübersicht: Datum | Icon | Inhalt */
/*----------------------------------------*/

#rs_events_container {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}

#rs_events_container > li.termine-overview-row {
  display: grid !important;
  grid-template-columns: 78px 118px minmax(0, 1fr);
  column-gap: 24px;
  align-items: center;

  padding: 16px 16px !important;
  margin: 0 !important;

  border-bottom: 1px solid rgba(0, 0, 0, 0.13);
  background: transparent !important;
  list-style: none !important;
}

/* Datumskachel ganz links */
.termine-overview-date-tile {
  grid-column: 1;
  grid-row: 1;

  width: 72px;
  height: 78px;

  background: var(--event-color, #b60012);
  color: #ffffff !important;
  text-decoration: none !important;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  align-self: center;
}

.termine-overview-date-tile:hover,
.termine-overview-date-tile:focus {
  background: var(--event-color, #b60012);
  color: #ffffff !important;
  text-decoration: none !important;
}

.termine-overview-day {
  display: block;
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
}

.termine-overview-month {
  display: block;
  margin-top: 7px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

/* Veranstaltungsicon in der Mitte */
.termine-overview-icon {
  grid-column: 2;
  grid-row: 1;

  width: 118px;
  height: 88px;

  align-self: center;
  overflow: hidden;
  background: #eeeeee;
}

.termine-overview-icon a,
.termine-overview-icon .thumbnail {
  display: block !important;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.termine-overview-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Inhalt rechts: Titel, Daten, Kurzbeschreibung untereinander */
.termine-overview-content {
  grid-column: 3;
  grid-row: 1;

  min-width: 0;
  align-self: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.termine-overview-content [class*="event-title"] {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

.termine-overview-content [class*="event-title"] a {
  color: #111111;
  text-decoration: none;
}

.termine-overview-content [class*="event-title"] a:hover {
  color: #b60012;
  text-decoration: none;
}

.termine-overview-meta {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
  color: #111111;
}

.termine-overview-meta span {
  display: block;
}

.termine-overview-content [class*="event-description"] {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.55;
  color: #333333;
}

.termine-overview-more {
  display: inline-block;
  align-self: flex-start;

  color: #b60012;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
}

.termine-overview-more::after {
  content: " →";
  margin-left: 6px;
}

.termine-overview-more:hover,
.termine-overview-more:focus {
  color: #8f000e;
  text-decoration: none !important;
}

/* Bearbeiten/Löschen-Icons nicht ins Layout drücken */
.termine-overview-row .rsepro-event-options {
  grid-column: 3;
}

/* Event-Liste: Datum/Uhrzeit und Meta-Symbole */

.termine-overview-date-line strong {
	font-weight: 800;
}

.termine-overview-taxonomy {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	align-items: center;
}

.termine-overview-taxonomy-item {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	line-height: 1.4;
}

.termine-overview-taxonomy-item i {
	color: #C20404;
	font-size: 14px;
	line-height: 1;
}

.termine-overview-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Mobil */
@media (max-width: 767px) {
  #rs_events_container > li.termine-overview-row {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "date content"
      "icon content";
    column-gap: 18px;
    row-gap: 12px;
    align-items: center;
    padding: 24px 0 !important;
  }

  .termine-overview-date-tile {
    grid-area: date;
    width: 68px;
    height: 74px;
  }

  .termine-overview-icon {
    grid-area: icon;
    width: 68px;
    height: 54px;
  }

  .termine-overview-content {
    grid-area: content;
  }

  .termine-overview-content [class*="event-title"] {
    font-size: 19px;
  }

  .termine-overview-meta {
    font-size: 16px;
  }

  .termine-overview-content [class*="event-description"] {
    font-size: 15px;
  }
}



/*==================================*/
/*      RSEvents!Pro Detailseite    */
/*==================================*/

.manes-rsevent-detail {
	display: grid;
	grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
	gap: 34px;
	align-items: start;
	margin-top: 24px;
	margin-bottom: 32px;
}

.manes-rsevent-media {
	width: 100%;
}

.manes-rsevent-image-wrap,
.manes-rsevent-image-wrap a {
	display: block;
	width: 100%;
}

.manes-rsevent-image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 320px;
}

/* Buchungsbutton nach der Eventbeschreibung.
   Optisch angelehnt an den Startseitenbutton "Alle Termine ansehen". */
.manes-rsevent-booking {
	margin-top: 28px;
}

.manes-rsevent-booking a,
a.manes-event-booking {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 360px;
	min-height: 54px;
	padding: 0 34px;
	border: 1px solid #b60012;
	color: #b60012 !important;
	background: transparent;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none !important;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: none;
	border-radius: 0;
}

.manes-rsevent-booking a:hover,
a.manes-event-booking:hover,
.manes-rsevent-booking a:focus,
a.manes-event-booking:focus {
	border-color: #b60012;
	color: #ffffff !important;
	background: #b60012;
	text-decoration: none !important;
	box-shadow: none;
}

/* Auf sehr schmalen Displays darf der Button umbrechen und die verfügbare Breite nutzen. */
@media (max-width: 480px) {
	.manes-rsevent-booking a,
	a.manes-event-booking {
		width: 100%;
		min-width: 0;
		padding: 0 20px;
		white-space: normal;
	}
}

.manes-rsevent-main {
	min-width: 0;
}

/* Faktenblock rechts: Icon | Label | Inhalt */
.manes-rsevent-facts {
	margin-bottom: 24px;
}

.manes-rsevent-fact {
	display: grid;
	grid-template-columns: 24px 62px minmax(0, 1fr);
	gap: 8px;
	align-items: baseline;
	line-height: 1.5;
	margin-bottom: 7px;
}

.manes-rsevent-fact i {
	color: #9d1b1e;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.manes-rsevent-fact strong {
	font-weight: 700;
}

.manes-rsevent-fact span {
	min-width: 0;
}

.manes-rsevent-description {
	margin-top: 22px;
}

.manes-rsevent-description p:first-child {
	margin-top: 0;
}

@media (max-width: 767px) {
	.manes-rsevent-detail {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.manes-rsevent-image,
	.manes-rsevent-booking a,
	a.manes-event-booking {
		max-width: 100%;
	}
}