/****************************
*   M31 Leistungen          *
****************************/

/* Heller Abschnitt auf der schwarzen Seite. Das Parent-Theme setzt die
   Schriftfarbe per `* { color }` — Vererbung greift deshalb nicht, die
   Farbe muss gegen den Universalselektor gesetzt werden. */
section.m31_leistungen {
	position: relative;
	background-color: var(--color_weiss);
	/* Der Entwurf laesst das Weiss 159px unter dem Event-Kasten enden */
	padding-bottom: 159px;
}

section.m31_leistungen,
section.m31_leistungen * {
	color: var(--color_tiefschwarz);
}

/* Zentrierter Kopf (Topline + H2) */
section.m31_leistungen .m31_intro {
	text-align: center;
}

section.m31_leistungen .m31_intro p[class$="_untertitel"] {
	justify-content: center;
}

/* Der Strich folgt global der Schriftfarbe (weiss) — hier dunkel */
section.m31_leistungen .mM_title_container p[class$="_untertitel"]::before {
	background-color: var(--color_tiefschwarz);
}

section.m31_leistungen .m31_intro .m31_titel {
	max-width: 480px; /* erzwingt den Umbruch nach "boozit" */
	margin: 0 auto;
}

/* --- Karten --- */

section.m31_leistungen .m31_karten_row {
	display: flex;
	gap: 22px;
	align-items: stretch;
	margin-top: 61px;
}

section.m31_leistungen .m31_karte {
	flex: 1 1 0;
	/* min-width 0: Karte darf unter ihre min-content-Breite schrumpfen,
	   sonst ragt sie bei schmalen Fenstern aus dem Container */
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	border: 1px solid var(--color_tiefschwarz);
	border-radius: 25px;
	padding: 44px 44px;
}

/* Mittlere Karte gestaffelt: beginnt 37px tiefer und endet 62px tiefer,
   ist also 25px hoeher als die beiden aeusseren. */
section.m31_leistungen .m31_karte:nth-child(2) {
	margin-top: 37px;
	margin-bottom: -62px;
}

/* Die drei Bildmarken sind verschieden hoch — gemeinsame Zeilenhoehe und
   unten buendig, sonst wandern die Ueberschriften auseinander. */
section.m31_leistungen .m31_karte_icon {
	display: flex;
	align-items: flex-end;
	height: 104px;
	margin-bottom: 68px;
}

section.m31_leistungen .m31_karte_icon svg,
section.m31_leistungen .m31_karte_icon img {
	display: block;
	width: auto;
	height: auto;
	max-height: 104px;
}

section.m31_leistungen .m31_karte_titel {
	font-weight: 700;
	font-size: 1.471rem; /* 25px */
	line-height: 1;
	letter-spacing: 0.03em;
	margin-bottom: 13px;
}

section.m31_leistungen .m31_karte_text {
	line-height: 1.471; /* 25px */
	letter-spacing: 0.03em;
	margin-bottom: 25px;
}

/* --- Haekchenlisten --- */

section.m31_leistungen .m31_karte_listen {
	width: 100%;
	/* Der Entwurf laesst vor der Trennlinie mindestens 49px Luft — ueber
	   die hoechste Karte ergibt das die 943px Kartenhoehe. */
	margin-bottom: 49px;
}

section.m31_leistungen .m31_liste + .m31_liste {
	margin-top: 25px;
}

section.m31_leistungen .m31_liste_titel {
	font-weight: 700;
	line-height: 1.471; /* 25px */
	letter-spacing: 0.03em;
}

section.m31_leistungen .m31_liste_punkte {
	list-style: none;
	margin: 0;
	padding: 0;
}

section.m31_leistungen .m31_liste_punkte li {
	display: flex;
	align-items: flex-start;
	gap: 0 9px;
	line-height: 1.471; /* 25px */
	letter-spacing: 0.03em;
}

/* Haekchen an der ersten Zeile ausrichten. Der Entwurf setzt sie mit
   26,5px Abstand, der Text laeuft aber mit 25px — dort wandern sie mit
   jeder Zeile weiter nach unten. */
/* Die Abschnittsregel `section.m31_leistungen *` faerbt sonst auch das
   <svg> und seinen <path> — currentColor liefe dann auf Schwarz hinaus.
   Deshalb die Farbe hier ebenfalls gegen den Universalselektor setzen. */
section.m31_leistungen .m31_check,
section.m31_leistungen .m31_check * {
	color: var(--color_primary);
}

section.m31_leistungen .m31_check {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	width: 19px;
	height: 25px;
}

section.m31_leistungen .m31_check svg {
	display: block;
	width: 19px;
	height: auto;
}

/* --- Kartenfuss: Linie, Hinweis, Knopf --- */

/* Im Entwurf sitzt der Fuss in allen drei Karten 222px ueber der
   Unterkante — unabhaengig davon, wie lang die Listen darueber sind. */
section.m31_leistungen .m31_karte_fuss {
	width: 100%;
	margin-top: auto;
	padding-top: 26px;
	border-top: 1px solid rgba(22, 22, 22, .3);
}

section.m31_leistungen .m31_karte_dauer {
	font-weight: 700;
	line-height: 1.471; /* 25px */
	letter-spacing: 0.03em;
	margin-bottom: 55px;
}

section.m31_leistungen .m31_karte_button {
	width: 100%;
}

/* Umriss-Knopf ueber die volle Kartenbreite */
section.m31_leistungen .button.m31_umriss {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 54px;
	padding: 0 20px;
	border: 1px solid var(--color_tiefschwarz);
	border-radius: 15px;
	background-color: transparent;
	box-shadow: none;
}

section.m31_leistungen .button.m31_umriss:hover {
	background-color: rgba(22, 22, 22, .06);
}

/* --- Event-Kasten --- */

section.m31_leistungen .m31_event {
	display: flex;
	flex-wrap: wrap;
	margin-top: 100px;
	padding: 66px 66px 69px;
	border: 1px solid var(--color_tiefschwarz);
	border-radius: 25px;
	background-color: var(--color_primary);
}

section.m31_leistungen .m31_event,
section.m31_leistungen .m31_event * {
	color: var(--color_weiss);
}

section.m31_leistungen .m31_event .m31_check,
section.m31_leistungen .m31_event .m31_check * {
	color: var(--color_weiss);
}

/* Text und Liste je zur Haelfte nebeneinander, ohne festen Einzug.
   Untereinander ab 1199. */
section.m31_leistungen .m31_event {
	column-gap: 80px;
}

section.m31_leistungen .m31_event_links,
section.m31_leistungen .m31_event_rechts {
	flex: 1 1 0;
	min-width: 0;
}

/* "Was wir uebernehmen:" steht auf der ersten Textzeile links, nicht auf
   dem Titel darueber: um genau dessen Zeile (font-size x line-height 1)
   plus seinen Abstand nach unten. Beide Zeilen laufen mit 25px. */
section.m31_leistungen .m31_event_rechts {
	padding-top: calc(1.471rem + 13px);
}

section.m31_leistungen .m31_event_rechts .m31_liste_punkte {
	margin-top: 25px;
}

section.m31_leistungen .m31_event_titel {
	font-weight: 700;
	font-size: 1.471rem; /* 25px */
	line-height: 1;
	letter-spacing: 0.03em;
	margin-bottom: 13px;
}

section.m31_leistungen .m31_event_text {
	line-height: 1.471; /* 25px */
	letter-spacing: 0.03em;
}

section.m31_leistungen .m31_event_text + .m31_event_text {
	margin-top: 25px;
}

/* eigene Zeile unter den beiden Spalten */
section.m31_leistungen .m31_event_button {
	flex: 1 1 100%;
	margin-top: 55px;
}

section.m31_leistungen .button.m31_hell {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 358px;
	max-width: 100%;
	height: 54px;
	padding: 0 20px;
	border: 1px solid var(--color_weiss);
	border-radius: 15px;
	background-color: var(--color_weiss);
	box-shadow: none;
}

section.m31_leistungen .button.m31_hell,
section.m31_leistungen .button.m31_hell * {
	color: var(--color_tiefschwarz);
}

section.m31_leistungen .button.m31_hell:hover {
	background-color: #e6f4fa;
	border-color: #e6f4fa;
}

/* --- Responsive --- */

@media only screen and (max-width: 1500px) {
	section.m31_leistungen .m31_karte {
		padding: 36px 32px;
	}

	section.m31_leistungen .m31_event {
		padding: 50px;
	}
}

@media only screen and (max-width: 1199px) {
	/* Karten untereinander — gestaffelt ergibt hier keinen Sinn mehr */
	section.m31_leistungen .m31_karten_row {
		flex-wrap: wrap;
		gap: 30px;
		margin-top: 50px;
	}

	section.m31_leistungen .m31_karte {
		flex: 1 1 100%;
	}

	section.m31_leistungen .m31_karte:nth-child(2) {
		margin-top: 0;
		margin-bottom: 0;
	}

	section.m31_leistungen .m31_karte_icon {
		height: 84px;
		margin-bottom: 40px;
	}

	section.m31_leistungen .m31_karte_icon svg,
	section.m31_leistungen .m31_karte_icon img {
		max-height: 84px;
	}

	section.m31_leistungen .m31_karte_dauer {
		margin-bottom: 35px;
	}

	section.m31_leistungen .m31_event {
		margin-top: 70px;
	}

	section.m31_leistungen .m31_event_button {
		margin-top: 40px;
	}
}

/* Event-Kasten: Text und Liste untereinander */
@media only screen and (max-width: 1199px) {
	section.m31_leistungen .m31_event_links,
	section.m31_leistungen .m31_event_rechts {
		flex: 1 1 100%;
	}

	section.m31_leistungen .m31_event_rechts {
		padding-top: 0;
		margin-top: 40px;
	}
}

@media only screen and (max-width: 767px) {
	section.m31_leistungen .m31_karte {
		padding: 36px 28px;
	}

	section.m31_leistungen .m31_event {
		padding: 36px 28px;
	}

	section.m31_leistungen .button.m31_hell {
		width: 100%;
	}
}

/* --- Hover ------------------------------------------------ */

@media (hover: hover) and (pointer: fine) {
	/* Gleiche Knopfart wie m33_umriss (Umriss auf Weiss) — dort fuellt
	   sich der Knopf. Der 6-Prozent-Schleier hier war zu schwach. */
	section.m31_leistungen .button.m31_umriss:hover {
		background-color: var(--color_tiefschwarz);
		box-shadow: var(--bz_schatten_hell);
	}

	section.m31_leistungen .button.m31_umriss:hover,
	section.m31_leistungen .button.m31_umriss:hover * {
		color: var(--color_weiss);
	}

	section.m31_leistungen .button.m31_hell:hover {
		box-shadow: var(--bz_schatten_hell);
	}
}
