/**
 * Theme Part M89 - Projekte (Redesign 2026)
 *
 * @author MediaMEANS
**/

section.m89_projekte {
	position: relative;
}

/* === Abstand === */
section.m89_projekte[data-innerer-abstand="innerer_abstand_oben_und_unten"] {
	padding-top: 136px;
	padding-bottom: 136px;
}

section.m89_projekte[data-innerer-abstand="innerer_abstand_nur_oben"] {
	padding-top: 136px;
}

section.m89_projekte[data-innerer-abstand="innerer_abstand_nur_unten"] {
	padding-bottom: 136px;
}

/* === Kopf: Titel links, Button rechts unten === */
section.m89_projekte .m89_head_container {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 56px;
}

section.m89_projekte .m89_kicker {
	display: block;
	margin-bottom: 18px;
	color: #FE5B4A;
	font-family: Nexa-Heavy, sans-serif; /* 800 */
	font-weight: 400;
	font-size: .75rem;
	line-height: 1.3;
	letter-spacing: .105rem;
	text-transform: uppercase;
}

section.m89_projekte .m89_titel {
	max-width: 860px;
	margin: 0;
	color: #1919BD;
	font-family: Nexa-Heavy, sans-serif; /* 900 */
	font-weight: 400;
	font-size: 3.125rem;
	line-height: 1.06;
	letter-spacing: -.07rem;
}

/* Nexa sitzt hoch in der Zeile: oben mehr Padding als unten */
section.m89_projekte .m89_button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px 10px;
	border-radius: 999px;
	background: #FE5B4A;
	color: #fff;
	font-family: Nexa-Heavy, sans-serif; /* 800 */
	font-weight: 400;
	font-size: .875rem;
	line-height: 1.3;
	text-decoration: none;
	-webkit-transition: background .25s, -webkit-transform .25s;
	transition: background .25s, transform .25s;
}

section.m89_projekte .m89_button:hover {
	background: #FF735F;
	color: #fff;
}

section.m89_projekte .m89_button:active {
	-webkit-transform: scale(.98);
	transform: scale(.98);
}

section.m89_projekte .m89_pfeil {
	display: block;
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: -3px;
	-webkit-transition: -webkit-transform .3s cubic-bezier(.2, .7, .1, 1);
	transition: transform .3s cubic-bezier(.2, .7, .1, 1);
}

section.m89_projekte .m89_pfeil svg,
section.m89_projekte .m89_pfeil img {
	display: block;
	width: 100%;
	height: 100%;
}

section.m89_projekte .m89_button:hover .m89_pfeil,
section.m89_projekte .m89_karte:hover .m89_pfeil {
	-webkit-transform: translateX(4px);
	transform: translateX(4px);
}

/* === Karten === */
section.m89_projekte .m89_karten {
	display: flex;
	gap: 28px;
}

/* transform is set by the JS (parallax) */
section.m89_projekte .m89_karte {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-width: 0;
	padding: 14px 14px 22px;
	border: 1.5px solid #E8E6FB;
	border-radius: 26px;
	background: linear-gradient(180deg, #F2F1FE 0%, #FAFAFF 38%, #FFFFFF 70%);
	box-shadow: 0 34px 70px -40px rgba(48, 40, 170, .38), 0 2px 0 rgba(255, 255, 255, .9) inset;
	color: #1A1A73;
	text-decoration: none;
	will-change: transform;
}

section.m89_projekte .m89_bild {
	position: relative;
	height: 215px;
	border-radius: 18px;
	background: #E3E3F2;
	overflow: hidden;
}

/* no image: light shimmer like the prototype placeholder */
section.m89_projekte .m89_bild_leer::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
	background-size: 220% 100%;
	-webkit-animation: m89_shimmer 2.6s linear infinite;
	animation: m89_shimmer 2.6s linear infinite;
}

@-webkit-keyframes m89_shimmer {
	from { background-position: 120% 0; }
	to { background-position: -120% 0; }
}

@keyframes m89_shimmer {
	from { background-position: 120% 0; }
	to { background-position: -120% 0; }
}

section.m89_projekte .m89_body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 14px 0;
}

section.m89_projekte .m89_headline {
	margin: 0;
	color: #1919BD;
	font-family: Nexa-Heavy, sans-serif; /* 800 */
	font-weight: 400;
	font-size: 1.3125rem;
	line-height: 1.2;
	letter-spacing: -.026rem;
}

section.m89_projekte .m89_subline {
	margin: 10px 0 24px;
	color: #1A1A73;
	font-size: .90625rem;
	line-height: 1.55;
}

section.m89_projekte .m89_karte_button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: auto;
	padding: 19px 20px 15px;
	border-radius: 999px;
	background: #08083E;
	box-shadow: 0 18px 30px -16px rgba(8, 8, 62, .6);
	color: #fff;
	font-family: Nexa-Bold, sans-serif;
	font-weight: 400;
	font-size: .9375rem;
	line-height: 1.3;
	-webkit-transition: background .3s;
	transition: background .3s;
}

section.m89_projekte .m89_karte_button .m89_pfeil {
	width: 15px;
	height: 15px;
}

section.m89_projekte .m89_karte:hover .m89_karte_button {
	background: #1E1E7A;
}

@media (prefers-reduced-motion: reduce) {
	section.m89_projekte .m89_bild_leer::before {
		-webkit-animation: none;
		animation: none;
	}
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 1399px) {
	section.m89_projekte[data-innerer-abstand="innerer_abstand_oben_und_unten"] {
		padding-top: 130px;
		padding-bottom: 130px;
	}

	section.m89_projekte[data-innerer-abstand="innerer_abstand_nur_oben"] {
		padding-top: 130px;
	}

	section.m89_projekte[data-innerer-abstand="innerer_abstand_nur_unten"] {
		padding-bottom: 130px;
	}

	section.m89_projekte .m89_titel {
		font-size: 3rem;
		letter-spacing: -.066rem;
	}

	section.m89_projekte .m89_karten {
		gap: 26px;
	}

	section.m89_projekte .m89_bild {
		height: 174px;
	}
}

@media screen and (max-width: 1199px) {
	section.m89_projekte[data-innerer-abstand="innerer_abstand_oben_und_unten"] {
		padding-top: 110px;
		padding-bottom: 110px;
	}

	section.m89_projekte[data-innerer-abstand="innerer_abstand_nur_oben"] {
		padding-top: 110px;
	}

	section.m89_projekte[data-innerer-abstand="innerer_abstand_nur_unten"] {
		padding-bottom: 110px;
	}

	section.m89_projekte .m89_titel {
		font-size: 2.75rem;
		letter-spacing: -.06rem;
	}

	section.m89_projekte .m89_karten {
		gap: 22px;
	}

	section.m89_projekte .m89_headline {
		font-size: 1.1875rem;
	}

	section.m89_projekte .m89_bild {
		height: 167px;
	}
}

/* tablet: two columns, no parallax (JS) */
@media screen and (max-width: 991px) {
	section.m89_projekte[data-innerer-abstand="innerer_abstand_oben_und_unten"] {
		padding-top: 96px;
		padding-bottom: 96px;
	}

	section.m89_projekte[data-innerer-abstand="innerer_abstand_nur_oben"] {
		padding-top: 96px;
	}

	section.m89_projekte[data-innerer-abstand="innerer_abstand_nur_unten"] {
		padding-bottom: 96px;
	}

	section.m89_projekte .m89_head_container {
		margin-bottom: 44px;
	}

	section.m89_projekte .m89_titel {
		font-size: 2.375rem;
		letter-spacing: -.052rem;
	}

	section.m89_projekte .m89_karten {
		flex-wrap: wrap;
		gap: 20px;
	}

	section.m89_projekte .m89_karte {
		flex: 0 1 calc(50% - 10px);
	}

	section.m89_projekte .m89_bild {
		height: 193px;
	}
}

@media screen and (max-width: 767px) {
	section.m89_projekte[data-innerer-abstand="innerer_abstand_oben_und_unten"] {
		padding-top: 80px;
		padding-bottom: 80px;
	}

	section.m89_projekte[data-innerer-abstand="innerer_abstand_nur_oben"] {
		padding-top: 80px;
	}

	section.m89_projekte[data-innerer-abstand="innerer_abstand_nur_unten"] {
		padding-bottom: 80px;
	}

	section.m89_projekte .m89_head_container {
		gap: 24px;
		margin-bottom: 36px;
	}

	section.m89_projekte .m89_titel {
		font-size: 2rem;
		letter-spacing: -.044rem;
	}

	section.m89_projekte .m89_karten {
		flex-direction: column;
		gap: 40px;
	}

	section.m89_projekte .m89_karte {
		flex: none;
	}

	section.m89_projekte .m89_bild {
		height: 304px;
	}
}

@media screen and (max-width: 575px) {
	section.m89_projekte .m89_bild {
		height: 280px;
	}
}

@media screen and (max-width: 475px) {
	section.m89_projekte .m89_bild {
		height: 220px;
	}
}

@media screen and (max-width: 375px) {
	section.m89_projekte .m89_titel {
		font-size: 1.75rem;
		letter-spacing: -.038rem;
	}

	section.m89_projekte .m89_karte {
		padding: 12px 12px 18px;
		border-radius: 22px;
	}

	section.m89_projekte .m89_body {
		padding: 20px 8px 0;
	}

	section.m89_projekte .m89_karte_button {
		padding: 17px 16px 13px;
	}

	section.m89_projekte .m89_bild {
		height: 180px;
	}
}

@media screen and (max-width: 335px) {
	section.m89_projekte .m89_bild {
		height: 150px;
	}
}
