/* =============================================================
   M31 – Leistungen  |  Karten-Slider  (CPT)
   ============================================================= */

section.m31_leistungen {
	overflow: hidden;
	background-color: #fff;
}

/* ---- Kopfzeile: Titel links / Intro-Text rechts ---- */
.m31_head_row {
	display: flex;
	align-items: flex-start;
	gap: 60px;
	padding: 0 0 89px;
}

.m31_head_left {
	flex: 0 0 50%;
}

.m31_head_right {
	flex: 1;
	padding-top: 6px;
}

.m31_intro_text p {
	font-family: 'Effra', sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 25px;
	letter-spacing: 0.85px;
	color: #4d4d4f;
	margin: 0 0 25px 0;
}

.m31_intro_text p:last-child {
	margin-bottom: 0;
}

/* ---- Titel ---- */
.m31_titel {
	font-family: 'Effra', sans-serif;
	font-size: 45px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.5px;
	color: #4d4d4f;
	margin: 0;
}

/* ---- Cards Wrapper ---- */
.m31_cards_wrapper {
	position: relative;
}

/* Slick übernimmt das Layout von .m31_cards */

.m31_cards .slick-list {
	width: calc(100% + 113px);
	margin-left: -56.5px;
}

/* ---- Einzelne Karte ---- */
.m31_card {
	display: flex !important;
	flex-direction: column;
	margin: 0 56.5px;
	opacity: 0.5;
	transition: all .4s;
}

.m31_card.slick-active {
	opacity: 1;
}

.m31_card:nth-child(3n+1) { padding-top: 0; }
.m31_card:nth-child(3n+2) { padding-top: 68px; }
.m31_card:nth-child(3n)   { padding-top: 34px; }

.m31_card_img {
	height: 493px;
	background-size: cover;
	background-position: center;
	background-color: #e2ddd5;
	position: relative;
	z-index: 0;
	overflow: hidden;
}

.m31_card_img::before {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: calc(100% - 39px);
	height: 56px;
	background-color: #fff;
	z-index: 2;
}

.m31_card_img--empty {
	background-color: #e2ddd5;
}

.m31_card_link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.m31_card_overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
	z-index: 1;
}

.m31_card_link:hover .m31_card_overlay {
	opacity: 1;
}

.m31_card_circle {
	width: 135px;
	height: 135px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(203, 201, 220, 0.55) 100%);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0.85);
	transition: transform .3s ease;
}

.m31_card_link:hover .m31_card_circle {
	transform: scale(1);
}

.m31_card_circle span {
	font-family: 'Effra', sans-serif;
	color: #fff;
	font-size: 1rem;
	font-weight: 400;
	text-transform: uppercase;
}

.m31_card_content {
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
	margin-top: -22px;
}

.m31_card_title {
	font-family: 'Effra', sans-serif;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1.25px;
	color: #4d4d4f;
	margin: 0 0 12px;
	width: calc(100% - 59px);
}

.m31_card_text {
	position: relative;
	padding-left: 34px;
}

.m31_card_text::before {
	content: '';
	width: 10px;
	height: calc(100% - 11px);
	background: #cbc9dc;
	position: absolute;
	top: 2px;
	left: 0;
}

.m31_card_text p {
	font-family: 'Effra', sans-serif;
	font-size: 17px;
	line-height: 25px;
	letter-spacing: 0.85px;
	color: #4d4d4f;
	margin-bottom: 0.75em;
}

.m31_card_text p:last-child {
	margin-bottom: 0;
}

/* ---- Slider-Navigation ---- */
.m31_slider_nav {
	display: flex;
	align-items: center;
	gap: 110px;
	margin-top: 86px;
}

.m31_progress {
	flex: 1;
	height: 10px;
	background-color: #f6f6f6;
	position: relative;
	overflow: hidden;
}

.m31_progress_bar {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	background-color: #40437d;
	width: 0%;
	transition: width 0.3s ease;
}

.m31_arrows {
	display: flex;
	flex-shrink: 0;
	gap: 8px;
}

.m31_prev,
.m31_next {
	width: 73px;
	height: 73px;
	background-color: #40437d;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 0.3s;
}

.m31_prev:not(.is-inactive):hover,
.m31_next:not(.is-inactive):hover {
	background-color: #cbc9dc;
}

.m31_prev.is-inactive,
.m31_next.is-inactive {
	background-color: #f6f6f6;
	cursor: default;
}

.m31_prev.is-inactive:hover,
.m31_next.is-inactive:hover {
	opacity: 1;
}

.m31_prev svg,
.m31_next svg {
	width: 19px;
	height: auto;
	fill: #fff;
}

.m31_prev.is-inactive svg,
.m31_next.is-inactive svg {
	fill: #40437d;
}

.m31_prev svg {
	transform: rotate(180deg);
}

/* ============================================================
   Responsive
   ============================================================ */

@media screen and (max-width: 1799px) {
	.m31_card {
		margin: 0 26.5px;
	}

	.m31_card_img {
		height: 393px;
	}
}

@media screen and (max-width: 1599px) {
	.m31_card {
		margin: 0 28px;
	}

	.m31_cards .slick-list {
		width: calc(100% + 56px);
		margin-left: -28px;
	}
}

@media screen and (max-width: 1399px) {
	.m31_head_row {
		gap: 40px;
	}
}

@media screen and (max-width: 1199px) {
	.m31_head_row {
		flex-direction: column;
		gap: 25px;
		padding-top: 60px;
		padding-bottom: 50px;
	}

	.m31_head_left,
	.m31_head_right {
		flex: none;
		width: 100%;
	}
}

@media screen and (max-width: 991px) {
	.m31_head_row {
		padding-top: 50px;
		padding-bottom: 40px;
		gap: 20px;
	}

	.m31_card_img {
		height: 280px;
	}
}

@media screen and (max-width: 767px) {
	.m31_head_row {
		padding: 40px 0 35px;
	}

	.m31_cards {
		width: 100% !important;
	}

	.m31_card {
		opacity: 0;
		padding-top: 0 !important;
	}

	.m31_card.slick-active {
		opacity: 1;
	}

	.m31_cards .slick-list {
		width: 100%;
		margin-left: 0;
	}

	.m31_card {
		margin: 0;
	}

	.m31_card_img {
		height: 360px;
	}

	.m31_card_title {
		font-size: 20px;
	}

	.m31_slider_nav {
		gap: 40px;
		margin-top: 46px;
	}

	.m31_prev,
	.m31_next {
		width: 56px;
		height: 56px;
	}

	.m31_prev svg,
	.m31_next svg {
		width: 15px;
	}
}

@media screen and (max-width: 400px) {
	.m31_slider_nav {
		flex-direction: column-reverse;
		align-items: flex-end;
	}

	.m31_progress {
		flex: none;
		width: 100%;
		height: 10px;
	}
}
