/* =========================================================
   M41 - Geschichte / Timeline (hone)
   Tokens: Flaeche #fff | gold #a5936f | Text #1f1f1f | Linie #d9d9d9
   Font: cresta | Font-Sizes in rem (Basis 20px), Spacing in px.
   Figma: 31:184 — Slide 445px (Inhalt 357), Linie mit 25px-Punkten,
   Jahr 65px gold, Slider laeuft rechts aus dem Container (Fade).
   ========================================================= */

section.m41_geschichte {
	background-color: #fff;
	/* Vertikal-Abstand kommt aus dem Abstand-Klonfeld (data-innerer-abstand) */
}

/* Headroom: das m5-Gruppenbild darunter ragt 110px in die weisse Flaeche */
section.m41_geschichte .m41_slider_wrap {
	margin-bottom: 110px;
}

section.m41_geschichte .m41_header {
	margin-bottom: 29px;
}

section.m41_geschichte .m41_titel {
	margin: 0;
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0.875px;
	text-transform: uppercase;
	color: #1f1f1f;
}

section.m41_geschichte .m41_titel span {
	color: #a5936f;
	display: block;   /* goldene Phrase auf eigener Zeile (ersetzt frueheres <br>) */
}

/* ---------- Slider-Bereich: laeuft rechts bis an den Viewport-Rand ---------- */
section.m41_geschichte .m41_slider_wrap {
	position: relative;
	margin-right: calc(50% - 50vw);
}

/* Durchgehende Linie auf Punkt-Hoehe */
section.m41_geschichte .m41_slider_wrap::before {
	content: '';
	position: absolute;
	left: 17px;                /* ab Mitte des ersten Punkts */
	right: 0;
	top: 12px;                 /* Punkt 25px -> Mitte */
	height: 2px;
	background-color: #d9d9d9;
}

section.m41_geschichte .m41_slider {
	position: relative;
}

section.m41_geschichte .m41_slide {
	width: 445px;              /* variableWidth: Inhalt 357 + 88 Abstand */
	box-sizing: border-box;
	padding-right: 88px;
}

section.m41_geschichte .m41_dot {
	display: block;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background-color: #a5936f;
	position: relative;
	z-index: 1;
}

section.m41_geschichte .m41_jahr {
	margin: 83px 0 0 0;
	font-size: 3.25rem;        /* 65px (Basis 20px) */
	line-height: 1;
	font-weight: 500;
	letter-spacing: 0.875px;
	text-transform: uppercase;
	color: #a5936f;
}

section.m41_geschichte .m41_untertitel {
	margin: 32px 0 0 0;
	font-size: 1.1rem;         /* 22px (Basis 20px) */
	line-height: 1.4545;       /* 32px */
	font-weight: 500;
	letter-spacing: 0.875px;
	text-transform: uppercase;
	color: #a5936f;
	min-height: 64px;          /* 2 Zeilen -> Texte aller Slides auf einer Linie */
}

section.m41_geschichte .m41_text {
	margin: 12px 0 0 0;
	font-size: 0.9rem;         /* 18px (Basis 20px) */
	line-height: 1.4444;       /* 26px */
	letter-spacing: 0.45px;
	font-weight: 300;
	color: #1f1f1f;
}

/* Fade am rechten Rand: blendet den angeschnittenen Eintrag kraeftig aus
   (Figma: 4. Eintrag ist grossflaechig Richtung weiss ueberblendet) */
section.m41_geschichte .m41_fade {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 360px;
	background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.75) 55%, #fff 95%);
	pointer-events: none;
	z-index: 2;
}

/* ---------- Pfeile (gold, 41px, CSS-Dreieck weiss) ---------- */
section.m41_geschichte .m41_arrow {
	position: absolute;
	top: 253px;                /* Figma: Button y1491, wrap-Top (Punkt-Oberkante) y1238 */
	right: 80px;
	z-index: 3;
	width: 41px;
	height: 41px;
	border: 0;
	background-color: #1f1f1f;   /* Figma: dunkler Button, nicht gold */
	cursor: pointer;
	transition: background-color .3s;
}

section.m41_geschichte .m41_arrow:hover {
	background-color: #a5936f;
}

section.m41_geschichte .m41_arrow::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 7px solid #fff;
}

section.m41_geschichte .m41_arrow_prev {
	right: 133px;              /* links neben dem Next-Pfeil */
}

section.m41_geschichte .m41_arrow_prev::after {
	border-left: 0;
	border-right: 7px solid #fff;
}

section.m41_geschichte .m41_arrow.slick-disabled {
	opacity: 0;
	pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	section.m41_geschichte .m41_slider_wrap {
		margin-bottom: 60px;   /* Gruppenbild-Ueberlapp ist hier -60px */
	}
}

@media (max-width: 767px) {
	/* Full-Width-Slider: nur das aktuelle Element, kein Anschnitt der naechsten
	   Slide (Breite = volle Wrap-Breite per JS), kein rechter Padding-Abstand. */
	section.m41_geschichte .m41_slide {
		width: 100%;
		padding-right: 0;
	}

	/* Kein Bleed mehr bis zum Viewport-Rand -> Wrap = Container-Breite, damit
	   genau ein Slide voll passt. Zusaetzlich genug Abstand zum Gruppenbild darunter. */
	section.m41_geschichte .m41_slider_wrap {
		margin-right: 0;
		margin-bottom: 104px;
	}

	section.m41_geschichte .m41_jahr {
		margin-top: 50px;
		font-size: 2.4rem;     /* 48px */
	}

	section.m41_geschichte .m41_untertitel {
		min-height: 0;
	}

	/* Kein Farbverlauf/Anschnitt mobil */
	section.m41_geschichte .m41_fade {
		display: none;
	}

	section.m41_geschichte .m41_arrow {
		top: auto;
		bottom: -60px;
		right: 40px;
	}

	section.m41_geschichte .m41_arrow_prev {
		right: 93px;
	}

}

@media (max-width: 575px) {
	section.m41_geschichte .m41_titel {
		line-height: 1.15;
	}
}
