/****************************
*   M33 Pricing             *
****************************/

/* Der Entwurf gibt dem Block einen eigenen Hintergrund: eine Verlaufsflaeche
   1920x1299, die 479px ueber der Sektionsoberkante beginnt — sie leuchtet im
   Entwurf hinter den Stationskarten hoch —, darunter Weiss.
   `z-index: 0` macht die Sektion zum eigenen Stapelkontext: innen liegen
   Weiss (0), Verlauf (1) und Inhalt (2) uebereinander, nach aussen zaehlt
   nur die 0 — und m36 mit z-index 1 bleibt darueber. Ein negativer z-index
   funktioniert hier NICHT: body traegt selbst background-color #161616 und
   malt darueber. Die Sektion selbst darf keine background-color tragen. */
section.m33_pricing {
	position: relative;
	z-index: 0;
	padding-top: 134px;
	padding-bottom: 144px;
}

section.m33_pricing::after {
	content: '';
	position: absolute;
	inset: 0;
	background-color: var(--color_weiss);
	z-index: 0;
	pointer-events: none;
}

section.m33_pricing::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	/* Kastenhoehe UND Ueberhang an die Fensterbreite gekoppelt, gedeckelt auf
	   die Entwurfswerte. Der Verlaufsrand ist hier keine harte Kante, sondern
	   eine weiche Kuppe im Bild — sie laesst sich nicht als eigene Ebene
	   abtrennen wie beim CTA-Bogen. Auf `100% 100%` eines Kastens mit fester
	   Hoehe wurde sie mit schmalerem Fenster immer steiler (7 % der Breite bei
	   1920, 24 % bei 390). Waechst die Hoehe mit der Breite, bleibt das
	   Verhaeltnis erhalten.

	   Der Ueberhang muss im selben Takt mitlaufen (479 von 1299 = 36,9 %),
	   sonst wandert die Ueberschrift in den dunklen Teil des Verlaufs. */
	top: calc(-1 * min(479px, 25vw));
	height: min(1299px, 67.8vw);
	background-image: url('../../../img/m33_verlauf.svg');
	background-size: 100% 100%;
	background-repeat: no-repeat;
	z-index: 1;
	pointer-events: none;
}

section.m33_pricing .mM_container {
	position: relative;
	z-index: 2;
}

/* Weisser Grund: der globale --font_color ist Weiss, hier muss alles dunkel
   werden — inklusive des Topline-Strichs, der die Schriftfarbe erbt. */
section.m33_pricing,
section.m33_pricing * {
	color: var(--color_tiefschwarz);
}

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

section.m33_pricing .m33_intro .m33_untertitel {
	justify-content: center;
}

section.m33_pricing .m33_intro p[class$="_untertitel"]::before {
	background-color: var(--color_tiefschwarz);
}

section.m33_pricing .m33_intro .m33_titel {
	max-width: 434px;
	margin: 0 auto;
}

/* --- Kartenreihe --- */

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

section.m33_pricing .m33_karte {
	position: relative;
	flex: 1 1 0;
	/* min-width 0: Karte darf unter ihre min-content-Breite schrumpfen —
	   sonst macht das laengste nicht umbrechbare Wort die Karten ungleich */
	min-width: 0;
	/* 1 Kante + 66 + 25 Name + 13 + 50 Text + 58 + 70 Preis + 53 + 54 Knopf
	   + 66 + 1 Linie + 29 + 125 Liste + 48 + 1 Kante = 660px wie im Entwurf.
	   Karten mit nur vier Punkten fuellt die Mindesthoehe auf. */
	min-height: 660px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background-color: var(--color_weiss);
	border: 1px solid var(--color_tiefschwarz);
	border-radius: 25px;
	/* Figma misst 67px vom Rahmen aus — die 1px-Kante zaehlt mit */
	padding: 66px 66px 48px;
}

section.m33_pricing .m33_karte_hervorgehoben {
	background-color: var(--color_primary);
}

section.m33_pricing .m33_karte_hervorgehoben,
section.m33_pricing .m33_karte_hervorgehoben * {
	color: var(--color_weiss);
}

/* Lasche an der Oberkante, nur unten abgerundet */
section.m33_pricing .m33_karte_badge {
	position: absolute;
	top: 0;
	right: 67px;
	margin: 0;
	padding: 5px 15px 7px;
	border-radius: 0 0 10px 10px;
	background-color: var(--color_tiefschwarz);
	line-height: 25px;
	letter-spacing: 0.03em;
}

section.m33_pricing .m33_karte_hervorgehoben .m33_karte_badge {
	color: var(--color_weiss);
}

/* --- Karteninhalt --- */

section.m33_pricing .m33_karte_name {
	font-size: 1.471rem; /* 25px */
	font-weight: 700;
	line-height: 25px;
	letter-spacing: 0.03em;
	margin: 0 0 13px;
}

section.m33_pricing .m33_karte_text {
	width: 100%;
	line-height: 25px;
	margin-bottom: 58px;
}

section.m33_pricing .m33_karte_preis {
	font-size: 2.647rem; /* 45px */
	line-height: 35px;
	margin: 0;
}

/* "ab 80€": das Wort davor steht im Entwurf kleiner als die Zahl.
   line-height 0 haelt die Zeilenbox bei den 35px des Entwurfs — mit
   geerbter Zeilenhoehe waechst sie durch die zweite Schriftgroesse
   auf 42px und schiebt alles darunter nach unten. */
section.m33_pricing .m33_karte_preis span {
	font-size: 1.471rem; /* 25px */
	line-height: 0;
}

section.m33_pricing .m33_karte_preis_zusatz {
	line-height: 35px;
	letter-spacing: 0.03em;
	margin: 0 0 53px;
}

section.m33_pricing .m33_karte_button {
	width: 100%;
	margin-bottom: 66px;
}

section.m33_pricing .m33_karte_button .button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 54px;
	padding: 0;
	border-radius: 15px;
	box-shadow: none;
}

section.m33_pricing .button.m33_umriss {
	background-color: var(--color_weiss);
	border: 1px solid var(--color_tiefschwarz);
}

section.m33_pricing .button.m33_hell {
	background-color: var(--color_weiss);
	border: 1px solid var(--color_weiss);
}

section.m33_pricing .button.m33_hell,
section.m33_pricing .button.m33_hell * {
	color: var(--color_tiefschwarz);
}

section.m33_pricing .button.m33_dunkel {
	background-color: var(--color_tiefschwarz);
	border: 1px solid var(--color_tiefschwarz);
}

section.m33_pricing .button.m33_dunkel,
section.m33_pricing .button.m33_dunkel * {
	color: var(--color_weiss);
}

/* Der helle Knopf auf der Beliebt-Kachel hat eine weisse Kante. Fuellt er
   sich beim Ueberfahren tiefschwarz, bliebe ein weisser Ring stehen —
   die Kante geht deshalb mit. */
section.m33_pricing .button.m33_umriss:hover,
section.m33_pricing .button.m33_hell:hover {
	background-color: var(--color_tiefschwarz);
	border-color: var(--color_tiefschwarz);
}

section.m33_pricing .button.m33_umriss:hover,
section.m33_pricing .button.m33_umriss:hover *,
section.m33_pricing .button.m33_hell:hover,
section.m33_pricing .button.m33_hell:hover * {
	color: var(--color_weiss);
}

section.m33_pricing .button.m33_dunkel:hover {
	background-color: var(--color_primary);
	border-color: var(--color_primary);
}

/* --- Trennlinie + Checkliste --- */

section.m33_pricing .m33_karte_leistungen {
	width: 100%;
	list-style: none;
	margin: 0;
	padding: 29px 0 0;
	border-top: 1px solid rgba(22, 22, 22, .3);
}

section.m33_pricing .m33_karte_hervorgehoben .m33_karte_leistungen {
	border-top-color: rgba(255, 255, 255, .3);
}

section.m33_pricing .m33_karte_leistungen li {
	position: relative;
	padding-left: 25px;
	line-height: 25px;
}

section.m33_pricing .m33_karte_leistungen li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	width: 18.73px;
	height: 16.5px;
	background-image: url('../../../img/check_boozit_blau.svg');
	background-repeat: no-repeat;
	background-size: contain;
}

section.m33_pricing .m33_karte_hervorgehoben .m33_karte_leistungen li::before {
	background-image: url('../../../img/check_boozit_weiss.svg');
}

/* --- Responsive --- */

@media only screen and (max-width: 1400px) {
	section.m33_pricing .m33_karte {
		padding: 45px 45px 40px;
	}

	section.m33_pricing .m33_karte_badge {
		right: 45px;
	}

	/* Schmaler bricht der Zusatz um — mit den 35px des Entwurfs klafft die
	   zweite Zeile dann weit auseinander */
	section.m33_pricing .m33_karte_preis_zusatz {
		line-height: 25px;
		/* holt die 5px zurueck, die die kleinere Zeilenhoehe dem Abstand
		   zur Unterlaenge des Preises nimmt ("einmalig") */
		margin-top: 5px;
		margin-bottom: 45px;
	}

	section.m33_pricing .m33_karte_text {
		margin-bottom: 45px;
	}

	section.m33_pricing .m33_karte_button {
		margin-bottom: 50px;
	}
}

@media only screen and (max-width: 1199px) {
	/* Der Ueberstand nach oben haengt an der Hoehe des Stationsrasters —
	   gestapelt stimmt er nicht mehr, der Verlauf beginnt an der Oberkante */
	section.m33_pricing {
		padding-top: 110px;
		padding-bottom: 110px;
	}

	section.m33_pricing .m33_karten_row {
		flex-wrap: wrap;
		justify-content: center;
	}

	/* flex-grow 0: die umgebrochene dritte Karte bleibt gleich breit
	   wie die anderen und wird zentriert, statt sich zu strecken */
	section.m33_pricing .m33_karte {
		flex: 0 1 calc(50% - 11px);
		width: calc(50% - 11px);
		min-width: 0;
		min-height: 0;
	}
}

@media only screen and (max-width: 767px) {
	section.m33_pricing .m33_karte {
		flex: 1 1 100%;
		width: 100%;
		padding: 40px 30px 30px;
	}

	section.m33_pricing .m33_karte_badge {
		right: 30px;
	}

	/* Karten mit Lasche: die ragt sonst in den geschrumpften Innenabstand */
	section.m33_pricing .m33_karte:has(.m33_karte_badge) {
		padding-top: 65px;
	}

	section.m33_pricing .m33_karte_text {
		margin-bottom: 36px;
	}

	section.m33_pricing .m33_karte_preis_zusatz {
		margin-bottom: 32px;
	}

	section.m33_pricing .m33_karte_button {
		margin-bottom: 36px;
	}
}

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

@media (hover: hover) and (pointer: fine) {
	section.m33_pricing .button.m33_umriss:hover,
	section.m33_pricing .button.m33_hell:hover,
	section.m33_pricing .button.m33_dunkel:hover {
		box-shadow: var(--bz_schatten_hell);
	}
}

/* --- Optionaler Lead und Fussnote (beide Felder leer = kein Markup) --- */

section.m33_pricing .m33_intro_text {
	max-width: 700px;
	margin: 16px auto 0;
}

section.m33_pricing .m33_intro_text,
section.m33_pricing .m33_intro_text * {
	color: #444444;
}

section.m33_pricing .m33_hinweis {
	max-width: 900px;
	margin: 50px auto 0;
	text-align: center;
	font-size: 0.941rem; /* 16px */
	line-height: 1.6;
}

section.m33_pricing .m33_hinweis,
section.m33_pricing .m33_hinweis * {
	color: #666666;
}

@media only screen and (max-width: 991px) {
	section.m33_pricing .m33_hinweis {
		margin-top: 36px;
	}
}

/* ===============================================
	Variante "Kompakt" (Wrapper-Klasse m33_kompakt)

	Karten ohne Leistungsliste und ohne Knopf. Die
	660px Mindesthoehe der Startseite ist aus deren
	Kartenaufbau gerechnet (Knopf + fuenf Punkte) —
	hier bliebe darunter ein leeres Drittel stehen.
=============================================== */

section.m33_pricing.m33_kompakt .m33_karte {
	min-height: 0;
	padding: 48px 48px 48px;
}

@media only screen and (max-width: 1400px) {
	section.m33_pricing.m33_kompakt .m33_karte {
		padding: 40px 40px 40px;
	}
}

@media only screen and (max-width: 767px) {
	section.m33_pricing.m33_kompakt .m33_karte {
		padding: 32px 30px;
	}
}

/* Without button and list (tutorial page) the addition closes the card —
   its margin would only stack on top of the card padding */
section.m33_pricing .m33_karte_preis_zusatz:last-child {
	margin-bottom: 0;
}
