/**
 * Theme Part M90 - Garantie (Redesign 2026)
 *
 * @author MediaMEANS
**/

section.m90_garantie {
	position: relative;
}

/* === Abstand: oben kleiner, die Box schließt meist an ein Modul an (z. B. m89) === */
section.m90_garantie[data-innerer-abstand="innerer_abstand_oben_und_unten"] {
	padding-top: 88px;
	padding-bottom: 136px;
}

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

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

/* === Box: Badge | Text | Button === */
section.m90_garantie .m90_box {
	display: flex;
	align-items: center;
	gap: 48px;
	padding: 44px;
	border-radius: 24px;
	background: #08083E;
	color: rgba(255, 255, 255, .72);
	overflow: hidden;
}

section.m90_garantie .m90_text_container {
	flex: 1 1 auto;
	min-width: 0;
}

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

section.m90_garantie .m90_titel {
	margin: 0 0 10px;
	color: #fff;
	font-family: Nexa-Heavy, sans-serif; /* 900 */
	font-weight: 400;
	font-size: 1.75rem;
	line-height: 1.2;
	letter-spacing: -.0175rem;
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}

section.m90_garantie .m90_text,
section.m90_garantie .m90_text p {
	max-width: 560px;
	margin: 0;
	color: rgba(255, 255, 255, .72);
	font-size: .9375rem;
	line-height: 1.6;
}

section.m90_garantie .m90_text p + p {
	margin-top: 10px;
}

section.m90_garantie .m90_text a {
	color: #fff;
}

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

section.m90_garantie .m90_button:hover {
	background: #FF735F;
	color: #fff;
}

section.m90_garantie .m90_button:active {
	-webkit-transform: scale(.98);
	transform: scale(.98);
}

section.m90_garantie .m90_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.m90_garantie .m90_pfeil svg,
section.m90_garantie .m90_pfeil img {
	display: block;
	width: 100%;
	height: 100%;
}

section.m90_garantie .m90_button:hover .m90_pfeil {
	-webkit-transform: translateX(4px);
	transform: translateX(4px);
}

/* === Badge === */
section.m90_garantie .m90_badge {
	flex: none;
	width: 168px;
	height: 168px;
}

section.m90_garantie .m90_badge svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

section.m90_garantie .m90_ticks {
	stroke: rgba(255, 255, 255, .22);
	stroke-width: 1.4;
	-webkit-transform-origin: 84px 84px;
	transform-origin: 84px 84px;
	-webkit-animation: m90_spin 40s linear infinite;
	animation: m90_spin 40s linear infinite;
}

@-webkit-keyframes m90_spin {
	to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes m90_spin {
	to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

section.m90_garantie .m90_track {
	fill: none;
	stroke: rgba(255, 255, 255, .08);
	stroke-width: 7;
}

/* three segments of 98° each; without JS they are simply visible */
section.m90_garantie .m90_seg {
	fill: none;
	stroke: #FE5B4A;
	stroke-width: 7;
	stroke-linecap: round;
	stroke-dasharray: 98 360;
}

section.m90_garantie.m90_js .m90_seg {
	stroke-dasharray: 0 360;
	-webkit-transition: stroke-dasharray 1s cubic-bezier(.2, .7, .1, 1);
	transition: stroke-dasharray 1s cubic-bezier(.2, .7, .1, 1);
}

section.m90_garantie.m90_js .m90_box.is-in .m90_seg {
	stroke-dasharray: 98 360;
}

section.m90_garantie.m90_js .m90_box.is-in .m90_seg_2 {
	-webkit-transition-delay: .35s;
	transition-delay: .35s;
}

section.m90_garantie.m90_js .m90_box.is-in .m90_seg_3 {
	-webkit-transition-delay: .7s;
	transition-delay: .7s;
}

section.m90_garantie .m90_core {
	fill: #1E1E7A;
}

section.m90_garantie .m90_zahl {
	fill: #fff;
	font-family: Nexa-Heavy, sans-serif; /* 900 */
	font-weight: 400;
	font-size: 3.125rem;
	letter-spacing: -.125rem;
}

section.m90_garantie .m90_zeile {
	fill: rgba(255, 255, 255, .7);
	font-family: Nexa-Heavy, sans-serif; /* 800 */
	font-weight: 400;
	font-size: .625rem;
	letter-spacing: .15rem;
}

section.m90_garantie .m90_chip rect {
	fill: #FE5B4A;
}

section.m90_garantie .m90_chip path {
	fill: none;
	stroke: #08083E;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

section.m90_garantie .m90_chip text {
	fill: #08083E;
	font-family: Nexa-Heavy, sans-serif; /* 900 */
	font-weight: 400;
	font-size: .625rem;
	letter-spacing: .075rem;
}

@media (prefers-reduced-motion: reduce) {
	section.m90_garantie .m90_ticks {
		-webkit-animation: none;
		animation: none;
	}

	section.m90_garantie.m90_js .m90_seg {
		-webkit-transition: none;
		transition: none;
	}
}

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

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

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

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

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

	section.m90_garantie .m90_box {
		gap: 40px;
		padding: 40px;
	}

	section.m90_garantie .m90_titel {
		font-size: 1.625rem;
	}
}

/* tablet: everything below each other, left aligned */
@media screen and (max-width: 991px) {
	section.m90_garantie[data-innerer-abstand="innerer_abstand_oben_und_unten"] {
		padding-top: 69px;
		padding-bottom: 96px;
	}

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

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

	section.m90_garantie .m90_box {
		flex-direction: column;
		align-items: flex-start;
		gap: 36px;
		padding: 36px;
	}

	section.m90_garantie .m90_text_container {
		flex: none;
		align-self: stretch;
	}

	section.m90_garantie .m90_badge {
		width: 140px;
		height: 140px;
	}

	section.m90_garantie .m90_titel {
		font-size: 1.5rem;
	}
}

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

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

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

	section.m90_garantie .m90_box {
		gap: 28px;
		padding: 30px;
	}

	section.m90_garantie .m90_titel {
		font-size: 1.375rem;
	}
}

@media screen and (max-width: 575px) {
	section.m90_garantie .m90_box {
		gap: 24px;
		padding: 28px;
	}
}

@media screen and (max-width: 375px) {
	section.m90_garantie .m90_box {
		padding: 24px 20px;
		border-radius: 20px;
	}

	section.m90_garantie .m90_titel {
		font-size: 1.25rem;
	}

	section.m90_garantie .m90_button {
		padding: 16px 20px 12px;
	}
}
