/**
 * Über uns – Gärtnerei Klute
 *
 * Nach Figma "2610 Klute Websiteanpassungen", Frame "Über uns" (Desktop 1920px).
 * Titelbild: projekte.css (.page-hero), Text + Bild: startseite.css
 * (.row-ueber-uns-content), Raster: layout.css.
 * Bausteine hier: [klute_vorteil] und [klute_historie].
 */

/* ------------------------------------------------------------------ */
/* Einleitung                                                          */
/* ------------------------------------------------------------------ */

.klute-design .row-seite-intro {
	margin-top: var(--klute-section-space) !important;
}

.klute-design .row-ueber-uns-seite .klute-button-row {
	margin-top: 60px;
}

/* ------------------------------------------------------------------ */
/* Vorteile: drei Spalten über die volle Inhaltsbreite                 */
/* ------------------------------------------------------------------ */

.vc_row.row-vorteile {
	--klute-row-content: var(--klute-content);
	margin-top: var(--klute-section-space);
	margin-bottom: var(--klute-section-space);
}

.klute-vorteil {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 460px;
	margin: 0 auto;
	text-align: center;
}

.klute-vorteil__icon {
	flex: 0 0 auto;
	margin-bottom: 10px;
}

.entry-content .klute-vorteil__title {
	margin: 0 0 27px;
	padding: 0;
	color: var(--klute-green);
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.2;
	hyphens: manual;
}

.klute-vorteil__text p {
	margin: 0;
	color: var(--klute-green);
	font-weight: 500;
	font-size: 18px;
	line-height: 1.8;
}

/* ------------------------------------------------------------------ */
/* Zeitleiste                                                          */
/* ------------------------------------------------------------------ */

.vc_row.row-historie {
	margin-top: var(--klute-section-space);
	margin-bottom: var(--klute-section-space);
}

/*
 * Figma (1920px): Linie 7px in der Mitte, Kreise 38px, Textspalten 523px
 * jeweils 63px neben der Mitte. Jahr und Kreis beginnen auf gleicher Höhe.
 */
.klute-historie {
	--klute-historie-line: 7px;
	--klute-historie-dot: 38px;
	--klute-historie-gap: 63px;
	position: relative;
	max-width: calc(2 * (523px + var(--klute-historie-gap)));
	margin: 56px auto 0;
	padding: 44px 0 36px;
	list-style: none;
}

/* Linie */
.klute-historie::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: var(--klute-historie-line);
	background-color: var(--klute-green);
	transform: translateX(-50%);
}

.klute-historie__item {
	position: relative;
	box-sizing: border-box;
	width: 50%;
	margin: 0;
	padding: 0 var(--klute-historie-gap) 80px 0;
	list-style: none;
}

.klute-historie__item:nth-child(even) {
	margin-left: 50%;
	padding-right: 0;
	padding-left: var(--klute-historie-gap);
}

.klute-historie__item:last-child {
	padding-bottom: 80px;
}

/* Kreis */
.klute-historie__item::before {
	content: "";
	position: absolute;
	top: 0;
	right: calc(var(--klute-historie-dot) / -2);
	width: var(--klute-historie-dot);
	height: var(--klute-historie-dot);
	border-radius: 50%;
	background-color: var(--klute-green);
}

.klute-historie__item:nth-child(even)::before {
	right: auto;
	left: calc(var(--klute-historie-dot) / -2);
}

.klute-historie__year {
	color: var(--klute-rose);
	font-family: Montserrat, sans-serif;
	font-weight: 700; /* Figma: ExtraBold, nicht als Webfont vorhanden */
	font-size: 28px;
	line-height: 1.8;
}

.klute-historie__text {
	margin-top: 16px;
	color: var(--klute-green);
	font-family: Montserrat, sans-serif;
	font-weight: 500; /* Figma: SemiBold, nicht als Webfont vorhanden */
	font-size: 24px;
	line-height: 1.8;
	overflow-wrap: break-word;
}

/* Einblenden beim Scrollen (js/animations.js setzt .is-animated) */
.klute-historie.is-animated .klute-historie__item {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.klute-historie.is-animated .klute-historie__item.is-visible {
	opacity: 1;
	transform: none;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media screen and (max-width: 1400px) {
	.entry-content .klute-vorteil__title {
		font-size: 28px;
	}
	.klute-historie__year {
		font-size: 26px;
	}
	.klute-historie__text {
		margin-top: 12px;
		font-size: 22px;
	}
}

@media screen and (max-width: 1023px) {
	/* Vorteile untereinander */
	.vc_row.row-vorteile > .wpb_column {
		float: none;
		width: 100%;
	}
	.vc_row.row-vorteile > .wpb_column + .wpb_column {
		margin-top: 60px;
	}

	/* Zeitleiste: Linie links, alle Einträge rechts daneben */
	.klute-historie {
		--klute-historie-line: 5px;
		--klute-historie-dot: 30px;
		--klute-historie-gap: 25px;
		max-width: none;
		margin-top: 40px;
		padding: 30px 0 10px;
	}
	.klute-historie::before {
		left: calc(var(--klute-historie-dot) / 2);
	}
	.klute-historie__item,
	.klute-historie__item:nth-child(even) {
		width: auto;
		margin-left: 0;
		padding: 0 0 50px calc(var(--klute-historie-dot) + var(--klute-historie-gap));
	}
	.klute-historie__item::before,
	.klute-historie__item:nth-child(even)::before {
		top: 6px;
		right: auto;
		left: 0;
	}
	.klute-historie__item:last-child {
		padding-bottom: 50px;
	}
	.klute-historie__year {
		font-size: 24px;
	}
	.klute-historie__text {
		margin-top: 8px;
		font-size: 20px;
	}
}

@media screen and (max-width: 767px) {
	.klute-design .row-ueber-uns-seite .klute-button-row {
		margin-top: 30px;
	}
	.entry-content .klute-vorteil__title {
		margin-bottom: 16px;
		font-size: 24px;
	}
	.klute-vorteil__text p {
		font-size: 16px;
	}
	.klute-historie__item,
	.klute-historie__item:nth-child(even) {
		padding-bottom: 40px;
	}
	.klute-historie__item::before,
	.klute-historie__item:nth-child(even)::before {
		top: 4px;
	}
	.klute-historie__year {
		font-size: 22px;
	}
	.klute-historie__text {
		font-size: 18px;
		line-height: 1.7;
	}
}

@media (prefers-reduced-motion: reduce) {
	.klute-historie.is-animated .klute-historie__item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
