/****************************
*   M36 Stationen           *
****************************/

/* Der Entwurf setzt die Abstaende selbst: 159px unter der blauen
   Powerbank-Flaeche, 170px bis zur Topline des Preisblocks (dessen
   Modul nochmal 143px oben mitbringt — zusammen die 313px aus Figma). */
section.m36_stationen {
	padding-top: 159px;
	padding-bottom: 170px;
	/* Der Verlauf des Preisblocks reicht 479px bis hier herauf (so steht es
	   im Entwurf) — die Karten muessen darueber bleiben. */
	position: relative;
	z-index: 1;
}

/* --- Kopf --- */

section.m36_stationen .m36_kopf {
	text-align: center;
}

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

section.m36_stationen .m36_titel {
	max-width: 546px;
	margin: 0 auto 23px;
}

section.m36_stationen .m36_text_container {
	max-width: 439px;
	margin: 0 auto;
}

/* --- Kartenraster --- */

.m36_karten {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
	margin-top: 65px;
}

.m36_karte {
	/* min-width 0: Rasterspalten duerfen unter ihre min-content-Breite
	   schrumpfen, sonst sprengt ein langes Wort das Raster */
	min-width: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Bild und Textkasten sind im Entwurf zwei eigenstaendig gerundete
   Bloecke ohne Abstand — an der Fuge bleiben vier Kerben stehen. */
.m36_karte_bild {
	position: relative;
	aspect-ratio: 361 / 266;
	border-radius: 15px;
	overflow: hidden;
}

.m36_karte_bild img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.m36_karte_bild::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
}

.m36_plakette {
	position: absolute;
	top: 25px;
	left: 25px;
	z-index: 2;
	display: inline-block;
	/* Figma misst 33px hoch und 14px Texteinzug — inklusive der 1px-Kante,
	   also 3/13 Innenabstand */
	padding: 3px 13px;
	border: 1px solid rgba(247, 248, 250, .2);
	border-radius: 5px;
	background-color: rgba(247, 248, 250, .1);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	font-size: 0.824rem; /* 14px */
	line-height: 25px;
	letter-spacing: 0.03em;
	color: var(--color_weiss);
	white-space: nowrap;
}

.m36_karte_inhalt {
	flex: 1 1 auto;
	/* 33 + 25 Titel + 13 + 50 Text + 4 + 35 Details + 21 = 181px wie im Entwurf */
	padding: 33px 39px 21px;
	border-radius: 15px;
	background-color: rgba(247, 248, 250, .1);
}

.m36_karte_titel {
	font-size: 1.471rem; /* 25px */
	font-weight: 700;
	line-height: 25px;
	letter-spacing: 0.03em;
	color: var(--color_weiss);
}

.m36_karte_text {
	margin-top: 13px;
	line-height: 25px;
}

.m36_karte_details {
	margin-top: 4px;
	line-height: 35px;
	color: var(--color_primary);
}

/* Jede Angabe bleibt als Ganzes stehen. Passen nicht beide nebeneinander,
   stehen sie untereinander — und der Trennpunkt faellt weg, statt am
   Zeilenende haengenzubleiben.

   Die Farbe muss hier stehen, nicht nur am Absatz: das Elternthema faerbt
   mit `* { color }` und schlaegt damit die Vererbung. */
.m36_karte_details .m36_detail,
.m36_karte_details .m36_detail_trenner {
	color: var(--color_primary);
}

.m36_detail {
	white-space: nowrap;
}

@media only screen and (max-width: 1599px) and (min-width: 1400px) {
	.m36_detail {
		display: block;
	}

	.m36_detail_trenner {
		display: none;
	}
}

/* --- Responsive --- */

/* Zwei statt vier Spalten schon ab 1399: das Modul laeuft im breiten
   Container, und der steht zwischen 1200 und 1399 auf 1040px. Vier Karten
   waeren dort 245px breit — Titel wie "24-Slot Outdoor" brechen dann
   zweizeilig und die Datenzeile laesst ihren Trennpunkt am Zeilenende
   haengen. Zu zweit sind es 507px und alles steht einzeilig. */
@media only screen and (max-width: 1399px) {
	.m36_karten {
		grid-template-columns: repeat(2, 1fr);
		margin-top: 55px;
	}
}

@media only screen and (max-width: 767px) {
	.m36_karten {
		grid-template-columns: 1fr;
	}

	.m36_karte_inhalt {
		padding: 28px 28px 21px;
	}
}

@media only screen and (max-width: 575px) {
	section.m36_stationen {
		padding-top: 90px;
		padding-bottom: 90px;
	}
}

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

/* Die Karte ist nur die Klammer um zwei sichtbare Flaechen (Bild und
   Inhalt). Angehoben wird die Klammer, leuchten muessen beide Flaechen —
   sonst schwebt nur die halbe Karte. */
section.m36_stationen .m36_karte {
	-webkit-transition: transform .14s var(--bz_kurve);
	transition: transform .14s var(--bz_kurve);
}

section.m36_stationen .m36_karte_bild,
section.m36_stationen .m36_karte_inhalt {
	-webkit-transition: box-shadow var(--bz_dauer);
	transition: box-shadow var(--bz_dauer);
}

@media (hover: hover) and (pointer: fine) {
	section.m36_stationen .m36_karte:hover {
		-webkit-transform: translateY(var(--bz_hub_karte));
		transform: translateY(var(--bz_hub_karte));
	}

	section.m36_stationen .m36_karte:hover .m36_karte_bild,
	section.m36_stationen .m36_karte:hover .m36_karte_inhalt {
		box-shadow: var(--bz_schein_karte);
	}
}

@media (prefers-reduced-motion: reduce) {
	section.m36_stationen .m36_karte:hover { -webkit-transform: none; transform: none; }
}
