/* =============================================================
   M33 – Bild und Text  |  Einstieg2 Design
   ============================================================= */

section.m33_bild_und_text {
	overflow: hidden;
}

/* ---- Inner row (two columns) ---- */
.m33_inner {
	display: flex;
	width: 100%;
	min-height: 860px; /* Gesamthöhe: Bild (720px) + 70px oben + 70px unten */
}

/* Reversed layout: text left, image right */
.m33_inner.m33_reverse {
	flex-direction: row-reverse;
}

/* ---- Image column ---- */
.m33_bild_col {
	flex: 0 0 48%;
	position: relative;
	z-index: 1;         /* Bild liegt vor der Farbfläche */
	overflow: hidden;
	height: 724px;      /* Bildgröße – kleiner als die Farbfläche */
	align-self: center; /* vertikal zentriert in der höheren Box */
}

.m33_galerie_container,
.m33_galerie_item {
	height: 100%;
}

.m33_bild_col .m33_image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---- Text column ---- */
.m33_text_col {
	flex: 1;
	background-color: #ebebf5;  /* lavender – abgeleitet von Markenfarbe #40437d */
	position: relative;
	display: flex;
	align-items: center;
	align-self: stretch;  /* füllt volle Höhe der Box → höher als das Bild */
	margin-left: -220px;  /* Farbfläche startet hinter dem Bild */
}

/* Extend background to the right viewport edge */
.m33_inner:not(.m33_reverse) .m33_text_col::after {
	content: '';
	position: absolute;
	top: 0;
	left: 100%;
	width: 50vw;
	height: 100%;
	background-color: #ebebf5;
	pointer-events: none;
}

/* Extend background to the left viewport edge when reversed */
.m33_inner.m33_reverse .m33_text_col::after {
	content: '';
	position: absolute;
	top: 0;
	right: 100%;
	width: 50vw;
	height: 100%;
	background-color: #ebebf5;
	pointer-events: none;
}

.m33_text_content {
	/* 220px kompensiert den negativen margin-left, damit Text nicht hinter Bild liegt */
	padding: 70px 80px 70px calc(220px + 107px);
}

.m33_inner.m33_reverse .m33_text_col {
	margin-left: 0;
	margin-right: -220px;
}

.m33_inner.m33_reverse .m33_text_content {
	padding: 70px calc(220px + 120px) 70px 80px;
	margin-left: 0;
}

/* ---- Text styles ---- */

/* Headline (H2 via mM_title_container) */
section.m33_bild_und_text .m33_text_content h2,
section.m33_bild_und_text .mM_title {
	font-size: 45px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.05em;
	color: #4d4d4f;
	margin-bottom: 40px;
}

/* Body text */
.m33_text_container {
	margin-bottom: 40px;
}

.m33_text_inner p {
	font-size: 17px;
	line-height: 25px;
	letter-spacing: 0.05em;
	color: #4d4d4f;
	margin-bottom: 1em;
}

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

/* ---- Link / Button ---- */
.m33_link_container {
	margin-top: 108px;
}

.m33_link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #40437d;
	text-decoration: none;
	transition: gap 0.2s ease;
}

.m33_link:hover {
	gap: 18px;
}

.m33_link_arrow {
	display: inline-block;
	width: 21px;
	height: 7px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 7'%3E%3Cpath d='M0 3.5h18M15 0l6 3.5-6 3.5' stroke='%2340437d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
	flex-shrink: 0;
}

/** Hintergrund: Lavendel **/

section.m33_bild_und_text.lavendel .m33_text_col,
section.m33_bild_und_text.lavendel .m33_inner.m33_reverse .m33_text_col:after {
	background-color: #cbc9dc;
}

section.m33_bild_und_text.lavendel .m33_titel_container *,
section.m33_bild_und_text.lavendel .m33_text_container * {
	color: #fff;
}

section.m33_bild_und_text.lavendel .button:hover .mM_button_text {
	color: #4d4d4f;
}

section.m33_bild_und_text.lavendel .button:hover svg {
	fill: #4d4d4f;
}

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

@media screen and (max-width: 2199px) {
	.m33_inner {
		min-height: 744px;
	}

	.m33_bild_col {
		height: 608px;
	}
}

@media screen and (max-width: 1200px) {
	.m33_inner {
		min-height: 700px; /* Bild (560px) + 70px oben + 70px unten */
	}

	.m33_bild_col {
		height: 560px;
	}

	.m33_text_col {
		margin-left: -140px;
	}

	.m33_inner.m33_reverse .m33_text_col {
		margin-right: -140px;
	}

	.m33_text_content {
		padding: 60px 60px 60px calc(140px + 80px);
	}

	.m33_inner.m33_reverse .m33_text_content {
		padding: 60px calc(140px + 80px) 60px 60px;
	}

	section.m33_bild_und_text .m33_text_content h2,
	section.m33_bild_und_text .mM_title {
		font-size: 36px;
	}
}

@media screen and (max-width: 991px) {
	.m33_inner {
		flex-direction: column;
		min-height: unset;
	}

	.m33_inner.m33_reverse {
		flex-direction: column;
	}

	.m33_bild_col {
		flex: 0 0 auto;
		width: 100%;
		height: 340px;
		align-self: auto;
	}

	.m33_text_col,
	.m33_inner.m33_reverse .m33_text_col {
		align-self: auto;
		margin-left: 0;
		margin-right: 0;
	}

	.m33_text_col::after,
	.m33_inner.m33_reverse .m33_text_col::after {
		display: none;
	}

	.m33_text_content,
	.m33_inner.m33_reverse .m33_text_content {
		padding: 50px 30px;
	}

	.m33_link_container {
		margin-top: 50px;
	}

	section.m33_bild_und_text .m33_text_content h2,
	section.m33_bild_und_text .mM_title {
		font-size: 28px;
	}
}

@media screen and (max-width: 600px) {
	.m33_bild_col {
		height: 260px;
	}

	.m33_text_content,
	.m33_inner.m33_reverse .m33_text_content {
		padding: 40px 20px;
	}

	section.m33_bild_und_text .m33_text_content h2,
	section.m33_bild_und_text .mM_title {
		font-size: 24px;
	}
}
