/**
 * Startseite und Bausteine – Gärtnerei Klute
 *
 * Nach Figma "2610 Klute Websiteanpassungen", Frame Startseite (Desktop 1920px).
 * Bausteine (.klute-button, .klute-card, .klute-projects) sind seitenunabhängig,
 * typografische Abweichungen vom alten Stil gelten vorerst nur für .home,
 * bis die Unterseiten nach dem neuen Design umgebaut werden.
 * Variablen (--klute-*) stehen in site-header.css.
 */

:root {
	--klute-dark: #214045;
	--klute-section-space: 150px;
	--klute-content: 1740px;
}

@media screen and (max-width: 1400px) {
	:root {
		--klute-section-space: 100px;
	}
}

@media screen and (max-width: 767px) {
	:root {
		--klute-section-space: 60px;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Button                                                              */
/* ------------------------------------------------------------------ */

.klute-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 30px;
	border: 2px solid var(--klute-green);
	border-radius: 30px;
	background-color: #fff;
	box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
	color: var(--klute-green);
	font-family: Montserrat, sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.25;
	letter-spacing: 1px;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.klute-button:hover,
.klute-button:focus-visible {
	background-color: var(--klute-green);
	color: #fff;
	box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

.klute-button:focus-visible {
	outline: 2px solid var(--klute-green);
	outline-offset: 3px;
}

.klute-button-row > .wpb_wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

/* WordPress setzt nur um mehrere Shortcodes ein <p>, um einen einzelnen nicht */
.klute-button-row > .wpb_wrapper > p {
	display: contents;
}

.klute-button-row.is-centered > .wpb_wrapper {
	justify-content: center;
}

/* ------------------------------------------------------------------ */
/* Typografie Startseite                                               */
/* ------------------------------------------------------------------ */

.klute-design .wpb_text_column p {
	margin: 0;
	font-weight: 500;
}

.klute-design .subline {
	margin-bottom: 15px;
	font-size: 24px;
	line-height: 42px;
}

.klute-design .section-head {
	text-align: center;
}

.klute-design .section-head h2 {
	padding-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* 1. Hero                                                             */
/* ------------------------------------------------------------------ */

/*
 * Gleiche Seitenränder wie Header, Projekte und Footer (--klute-gutter),
 * innerhalb davon höchstens 1594px breit und zentriert. Bei 1920px liegt der
 * Text damit wie in Figma bei x 163 / 1119, darunter fluchtet er mit dem Logo.
 */
.klute-design .row-intro {
	--klute-hero-content: 1594px;
	box-sizing: border-box;
	max-width: calc(var(--klute-hero-content) + 2 * var(--klute-gutter));
	padding: 248px var(--klute-gutter) 100px;
}

.klute-design .row-intro > .wpb_column > .vc_column-inner {
	padding-right: 0;
	padding-left: 0;
}

/* Abstand zwischen den Spalten (linke Spalte 3/5, rechte 2/5) */
.klute-design .row-intro > .wpb_column:first-child > .vc_column-inner {
	padding-right: 40px;
}

.klute-design .row-intro h1 {
	font-size: 64px;
	line-height: 73px;
	text-transform: none;
}

.klute-design .row-intro .intro-claim {
	margin-top: 48px;
	font-weight: 700;
	font-size: 22px;
	line-height: 42px;
}

.klute-design .intro-text-right {
	margin-top: 24px;
	padding-left: 0;
}

.klute-design .intro-text-right p {
	letter-spacing: 1px;
}

.klute-design .row-intro .intro-contact {
	margin-top: 39px;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0;
}

.klute-design .intro-contact a {
	color: inherit;
	font: inherit;
	white-space: nowrap; /* Telefon/E-Mail nicht mitten im Wort umbrechen */
}

.klute-design .intro-contact a:hover {
	text-decoration: underline;
}

.klute-design .row-intro .klute-button-row {
	margin-top: 62px;
}

/* ------------------------------------------------------------------ */
/* 2. Titelbild                                                        */
/* ------------------------------------------------------------------ */

.klute-design .intro-image-trenner {
	margin-bottom: var(--klute-section-space);
}

.klute-design .intro-image .vc_figure,
.klute-design .intro-image .vc_single_image-wrapper {
	display: block;
	width: 100%;
}

.klute-design .intro-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1920 / 1086;
	object-fit: cover;
}

/* ------------------------------------------------------------------ */
/* 3. Über uns                                                         */
/* ------------------------------------------------------------------ */

.klute-design .row-ueber-uns-content {
	/* Breite und Seitenränder: css/layout.css (.row-content-text-image, Text bei x 310 bis 1610) */
	margin: 40px auto var(--klute-section-space) !important;
}

.klute-design .row-ueber-uns-content .lead {
	margin-bottom: 42px;
	font-weight: 700;
	font-size: 22px;
	line-height: 42px;
}

.klute-design .row-ueber-uns-content p {
	letter-spacing: 1px;
}

.klute-design .row-ueber-uns-content .lead {
	letter-spacing: 0;
}

.klute-design .row-ueber-uns-content .klute-button-row {
	margin-top: 50px;
}

.klute-design .row-ueber-uns-content .wpb_single_image img {
	width: 640px;
	max-width: 100%;
	height: auto;
	border-radius: 30px;
}

/* Figma (Startseite und Über uns): Text 567px breit ab x 310, Bild 640px ab x 970 */
@media screen and (min-width: 768px) {
	.klute-design .row-ueber-uns-content > .wpb_column:first-child {
		flex: 1 1 0;
		width: auto;
	}
	.klute-design .row-ueber-uns-content > .wpb_column:last-child {
		flex: 0 0 auto;
		width: min(calc(640px + 2 * var(--klute-row-inset)), 52%);
	}
	.klute-design .row-ueber-uns-content .wpb_text_column {
		max-width: 567px;
	}
}

/* ------------------------------------------------------------------ */
/* 4. Leistungen (dunkel, Karten)                                      */
/* ------------------------------------------------------------------ */

.klute-design .section-dark {
	background-color: var(--klute-dark);
}

.klute-design .row-leistungen-karten > .wpb_column > .vc_column-inner {
	padding: 134px var(--klute-gutter) 128px;
}

.klute-design .row-leistungen-karten > .wpb_column > .vc_column-inner > .wpb_wrapper {
	max-width: var(--klute-content);
	margin: 0 auto;
}

.klute-design .row-leistungen-karten h2 {
	margin-bottom: 40px;
	color: #fff;
}

.klute-design .row-leistungen-karten .section-head p {
	max-width: 1154px;
	margin: 0 auto;
	color: #fff;
}

/* Kartenreihe der Leistungs-Section ([klute_leistungen]) */

.klute-leistungen__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 102px;
}

.klute-leistungen__cta {
	display: flex;
	justify-content: center;
	margin: 87px 0 0;
}

/* Karte */

.klute-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 820px;
	border-radius: 40px;
	background-color: #fff;
	overflow: hidden;
}

.klute-card__media {
	flex: 0 0 auto;
	line-height: 0;
}

.klute-card__image {
	display: block;
	width: 100%;
	height: 380px;
	border-radius: 40px;
	object-fit: cover;
}

.klute-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	padding: 46px 53px 63px;
	text-align: center;
}

.klute-card__title {
	margin: 0 0 26px;
	padding: 0;
	color: var(--klute-green);
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.3;
}

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

.klute-card__action {
	margin-top: auto;
	padding-top: 40px;
}

/* ------------------------------------------------------------------ */
/* 5. Projekte (weiß, Karten-Slider)                                   */
/* ------------------------------------------------------------------ */

.klute-design .row-projekte-karten {
	max-width: calc(var(--klute-content) + 2 * var(--klute-gutter));
	margin: var(--klute-section-space) auto !important;
	padding: 0 var(--klute-gutter);
}

.klute-design .row-projekte-karten > .wpb_column > .vc_column-inner {
	padding: 0;
}

.klute-design .row-projekte-karten h2 {
	margin-bottom: 35px;
}

.klute-design .row-projekte-karten .klute-projects {
	margin-top: 80px;
}

.klute-projects {
	position: relative; /* sonst ragen absolut positionierte Kinder (Screenreader-Texte) aus dem Slider und verbreitern die Seite */
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.klute-projects__track {
	display: grid;
	width: 100%;
	grid-auto-columns: calc((100% - 40px) / 3);
	grid-auto-flow: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.klute-projects__track::-webkit-scrollbar {
	display: none;
}

.klute-project {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0;
	list-style: none;
	scroll-snap-align: start;
}

.klute-project__media {
	display: block;
	width: 100%;
	line-height: 0;
}

.klute-project__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 567 / 380;
	border-radius: 40px;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

.klute-project__media:hover .klute-project__image {
	opacity: 0.9;
}

.klute-project__tag {
	display: inline-block;
	margin-top: 34px;
	padding: 8px 17px 7px 16px;
	border-radius: 15px;
	background-color: var(--klute-rose);
	color: #000;
	font-family: Montserrat, sans-serif;
	font-weight: 600;
	font-size: 12px;
	line-height: 1.2;
}

.klute-project__title {
	margin: 14px 0 40px;
	padding: 0;
	color: var(--klute-green);
	font-family: Montserrat, sans-serif;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.3;
	text-align: left;
}

.klute-project .klute-button {
	margin-top: auto;
}

.klute-projects__nav {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 78px;
}

.klute-projects__arrow {
	display: block;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--klute-green);
	line-height: 0;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.klute-projects__arrow:hover:not(:disabled) {
	color: var(--klute-rose);
}

.klute-projects__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.klute-projects__arrow:focus-visible {
	outline: 2px solid var(--klute-green);
	outline-offset: 3px;
}

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

@media screen and (max-width: 1400px) {
	.klute-design .row-intro {
		padding-top: 220px;
	}
	.klute-design .row-intro h1 {
		font-size: 50px;
		line-height: 60px;
	}
	.klute-card__body {
		padding: 40px 30px 50px;
	}
	.klute-card__title,
	.klute-project__title {
		font-size: 28px;
	}
}

@media screen and (max-width: 1240px) {
	.klute-design .row-intro h1 {
		font-size: 40px;
		line-height: 50px;
	}
	.klute-design .row-intro .intro-claim {
		font-size: 20px;
		line-height: 34px;
	}
	.klute-design .row-leistungen-karten > .wpb_column > .vc_column-inner {
		padding: 100px var(--klute-gutter);
	}
	.klute-card {
		min-height: 0;
	}
	.klute-card__image {
		height: auto;
		aspect-ratio: 567 / 380;
	}
	.klute-card__text p {
		font-size: 16px;
	}
}

@media screen and (max-width: 1023px) {
	/* Hero: Spalten untereinander, die rechte wäre sonst zu schmal */
	.klute-design .row-intro > .wpb_column {
		float: none;
		width: 100%;
	}
	.klute-design .row-intro > .wpb_column:first-child > .vc_column-inner {
		padding-right: 0;
	}
	.klute-design .intro-text-right {
		max-width: 640px;
		margin-top: 40px;
	}
	.klute-projects__track {
		grid-auto-columns: calc((100% - 20px) / 2);
	}
	.klute-design .row-ueber-uns-content .lead {
		font-size: 20px;
		line-height: 34px;
	}
}

@media screen and (max-width: 767px) {
	.klute-design .row-intro {
		padding-top: 150px;
		padding-bottom: 60px;
	}
	.klute-design .row-intro h1 {
		font-size: 30px;
		line-height: 38px;
	}
	.klute-design .row-intro .intro-claim {
		margin-top: 24px;
		font-size: 18px;
		line-height: 30px;
	}
	.klute-design .row-intro .intro-contact {
		margin-top: 24px;
	}
	.klute-design .row-intro .klute-button-row {
		margin-top: 32px;
	}
	.klute-design .intro-text-right {
		margin-top: 32px;
	}
	.klute-design .row-ueber-uns-content {
		margin-top: 30px !important;
	}
	.klute-design .row-ueber-uns-content .lead {
		margin-bottom: 20px;
		font-size: 18px;
		line-height: 30px;
	}
	.klute-design .row-ueber-uns-content .klute-button-row {
		margin-top: 30px;
	}
	.klute-design .row-leistungen-karten > .wpb_column > .vc_column-inner {
		padding: 60px var(--klute-gutter);
	}
	.klute-design .row-leistungen-karten h2 {
		margin-bottom: 20px;
	}
	.klute-design .row-projekte-karten h2 {
		margin-bottom: 20px;
	}
	.klute-design .row-projekte-karten .klute-projects {
		margin-top: 40px;
	}
	.klute-card__body {
		padding: 30px 25px 40px;
	}
	.klute-card__title,
	.klute-project__title {
		font-size: 24px;
	}
	.klute-card,
	.klute-card__image,
	.klute-project__image {
		border-radius: 30px;
	}
	.klute-projects__track {
		grid-auto-columns: 85%;
	}
	.klute-project__tag {
		margin-top: 24px;
	}
	.klute-project__title {
		margin-bottom: 24px;
	}
	.klute-projects__nav {
		margin-top: 40px;
	}
	.klute-button {
		padding: 14px 24px;
		font-size: 15px;
	}
}

@media screen and (max-width: 1023px) {
	.klute-leistungen__cards {
		grid-template-columns: minmax(0, 1fr);
		max-width: 620px;
		margin: 60px auto 0;
	}
	.klute-leistungen__cta {
		margin-top: 60px;
	}
}

@media screen and (max-width: 767px) {
	.klute-leistungen__cards {
		margin-top: 40px;
	}
	.klute-leistungen__cta {
		margin-top: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.klute-projects__track {
		scroll-behavior: auto;
	}
}
