/**
 * Startseite – Hero: größere Headline, Einleitung, Buttons und Kundenlogos.
 * Bausteine (Einleitung, Buttons, Logos) gelten auf allen Breiten; Layout getrennt für Desktop (≥1281px)
 * und Mobil/Tablet (≤1280px – dort schaltet style.css den Hero in den Mobil-Modus mit Farbverlauf ohne Foto).
 */

/* ── Bausteine ── */
body.page-home .intro .tesis .block p.home-hero-lead {
	display: block;
	max-width: 540px;
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.08em;
	line-height: 1.6;
}

.home-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.home-hero-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 5px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-hero-btn svg {
	width: 17px;
	height: 17px;
	transition: transform 0.2s ease;
}

.home-hero-btn--primary {
	background: #ffffff;
	color: #0088a2;
	box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

.home-hero-btn--primary:hover {
	color: #006f85;
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(2, 6, 23, 0.24);
}

.home-hero-btn--primary:hover svg {
	transform: translateX(3px);
}

.home-hero-btn--ghost {
	border: 1px solid rgba(255, 255, 255, 0.6);
	color: #ffffff;
}

.home-hero-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #ffffff;
	color: #ffffff;
}

.home-hero-btn:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.home-hero-trust {
	display: block;
	margin-top: 30px;
}

.home-hero-trust__label {
	display: block;
	color: rgba(255, 255, 255, 0.75);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.home-hero-trust__logos {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 22px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.home-hero-trust__logos li {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
}

.home-hero-trust__logos img {
	display: block;
	width: auto;
	height: 24px;
	max-width: min(96px, 100%);
	object-fit: contain;
	opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
	.home-hero-btn,
	.home-hero-btn svg {
		transition: none;
	}
}

/* ── Desktop-Layout ── */
@media (min-width: 1281px) {
	body.page-home .intro .tesis .row.clearfix {
		display: flex;
		align-items: center;
	}

	body.page-home .intro .tesis .row.clearfix::before,
	body.page-home .intro .tesis .row.clearfix::after {
		display: none;
	}

	body.page-home .intro .tesis .block {
		float: none;
		padding-top: 24px;
		padding-bottom: 24px;
	}

	body.page-home .intro .tesis .title {
		padding-right: 48px;
	}

	body.page-home .intro .tesis .title h2 {
		margin-bottom: 0;
		font-size: clamp(2.2em, 3.1vw, 3.1em);
		line-height: 1.14;
		letter-spacing: -0.01em;
	}
}

/* ── Mobil/Tablet: gleiche Bausteine wie Desktop, gestapelt; höchstens vier Logos ── */
@media (max-width: 1280px) {
	body.page-home .intro .tesis .title h2 {
		line-height: 1.18;
		letter-spacing: -0.01em;
	}

	body.page-home .intro .tesis .block p.home-hero-lead {
		max-width: 620px;
		margin-top: 16px;
		font-size: 1.05em;
	}

	.home-hero-actions {
		margin-top: 24px;
	}

	.home-hero-trust {
		margin-top: 28px;
	}

	.home-hero-trust__logos {
		flex-wrap: wrap;
		gap: 14px 22px;
	}

	.home-hero-trust__logos img {
		height: 22px;
	}

	.home-hero-trust__logos li:nth-child(n + 5) {
		display: none;
	}

	/* Kicker vertikal mittig in der „LEISTUNGEN“-Zeile, Überschrift darunter (Kicker-Zeile: 11px × 1.4) */
	body.page-home .intro .home-intro-head {
		--home-intro-ghost-size: clamp(64px, 17vw, 120px);
		--home-intro-kicker-offset: calc((var(--home-intro-ghost-size) - 15.4px) / 2);
		margin-top: 48px;
	}

	.home-intro-head__ghost {
		font-size: var(--home-intro-ghost-size);
	}

	.home-intro-head__inner {
		padding-top: 0;
	}

	body.page-home .intro .home-intro-head__kicker {
		margin: var(--home-intro-kicker-offset) 0 calc(var(--home-intro-kicker-offset) + 14px);
	}

	body.page-home .intro .home-intro-head__title {
		font-size: clamp(1.6em, 5.6vw, 2.4em);
		line-height: 1.12;
	}
}

/* Tablet: Inhalt im Fluss statt absolut auf 70 % (Smartphone regelt page-home-stripe-guides-mobile.css) */
@media (min-width: 993px) and (max-width: 1280px) {
	body.page-home .intro {
		height: auto;
		min-height: 0;
		max-height: none;
		padding-top: 160px;
		box-sizing: border-box;
	}

	body.page-home .intro .tesis {
		position: relative;
		top: auto;
		left: auto;
		transform: none;
		-webkit-transform: none;
	}

	body.page-home .intro .tesis .block {
		float: none;
		width: 100%;
		max-width: 720px;
	}
}

/* Smartphones: Buttons über volle Breite */
@media (max-width: 600px) {
	.home-hero-actions {
		flex-direction: column;
		gap: 10px;
	}

	.home-hero-btn {
		justify-content: center;
		width: 100%;
		box-sizing: border-box;
	}

	.home-hero-trust__logos {
		gap: 12px 18px;
	}

	.home-hero-trust__logos img {
		height: 20px;
		max-width: 84px;
	}
}

/*
 * Abschnittskopf „Alles aus einer Hand“ im Hero-Bild, im selben .container wie die Hero-Überschrift (linksbündig)
 * und immer am unteren Rand des Bildes: Der Hero ist ab 1281px mindestens 100vh hoch und wächst mit dem Inhalt,
 * .tesis füllt den Platz darüber und zentriert den Hero-Inhalt. Unter 1281px steht er im Fluss unter den Logos.
 */
body.page-home .intro .home-intro-head {
	position: relative;
	z-index: 2;
	overflow: hidden;
}

.home-intro-head__ghost {
	position: absolute;
	top: 0;
	left: -0.04em;
	z-index: 0;
	color: rgba(255, 255, 255, 0.07);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}

.home-intro-head__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
}

.intro .home-intro-head__kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.intro .home-intro-head__kicker::before {
	content: "";
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
}

.intro .home-intro-head__title {
	margin: 0;
	padding-bottom: 0.15em;
	color: #fff;
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.intro .home-intro-head__title em {
	color: #c9f3fb;
	font-style: italic;
}

@media (min-width: 1281px) {
	/* Blau-Überlagerung: links deckend hinter dem Text, nach rechts ausblendend, damit das Bild durchkommt */
	body.page-home .page-home-stripe-wrap > .intro {
		background-image:
			linear-gradient(90deg, #0094b0 0%, rgba(0, 148, 176, 0.94) 32%, rgba(0, 148, 176, 0.45) 52%, rgba(0, 148, 176, 0.1) 70%, rgba(0, 148, 176, 0) 85%),
			url("/img/mainheader1.webp");
		background-size: cover;
		background-position: center;
	}

	body.page-home .intro {
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: 100vh;
		max-height: none;
		margin-bottom: 120px;
		padding: 118px 0 12px;
		box-sizing: border-box;
	}

	body.page-home .intro > .container {
		display: flex;
		flex: 1 0 auto;
		flex-direction: column;
		height: auto;
	}

	body.page-home .intro .tesis {
		position: relative;
		top: auto;
		left: auto;
		display: flex;
		flex: 1 0 auto;
		flex-direction: column;
		justify-content: center;
		transform: none;
	}

	body.page-home .intro .tesis .block {
		padding-top: 0;
		padding-bottom: 0;
	}

	body.page-home .intro .home-intro-head {
		margin-top: 40px;
	}

	.home-intro-head__ghost {
		font-size: clamp(90px, 8.5vw, 170px);
	}

	.home-intro-head__inner {
		padding-top: clamp(40px, 3.6vw, 64px);
	}

	.intro .home-intro-head__title {
		font-size: clamp(2.1em, 2.9vw, 3.4em);
	}
}

/* Niedrigere Viewports (Laptops): kompakter, damit der Abschnittskopf ohne Scrollen sichtbar bleibt */
@media (min-width: 1281px) and (max-height: 820px) {
	body.page-home .intro {
		padding-top: 112px;
		padding-bottom: 12px;
	}

	body.page-home .intro .tesis .title h2 {
		font-size: clamp(2em, 2.6vw, 2.7em);
	}

	body.page-home .intro .tesis .block p.home-hero-lead {
		margin-top: 12px;
		font-size: 16px;
	}

	.home-hero-actions,
	.home-hero-trust {
		margin-top: 20px;
	}

	body.page-home .intro .home-intro-head {
		margin-top: 24px;
	}

	.home-intro-head__ghost {
		font-size: clamp(80px, 7vw, 130px);
	}

	.home-intro-head__inner {
		padding-top: 30px;
	}

	.intro .home-intro-head__kicker {
		margin-bottom: 10px;
	}

	.intro .home-intro-head__title {
		font-size: clamp(1.9em, 2.5vw, 2.8em);
	}
}

@media (min-width: 1281px) and (max-height: 680px) {
	body.page-home .intro {
		padding-top: 124px;
		padding-bottom: 12px;
	}

	body.page-home .intro .tesis .title h2 {
		font-size: clamp(1.8em, 2.3vw, 2.3em);
		line-height: 1.1;
	}

	body.page-home .intro .tesis .block p.home-hero-lead {
		font-size: 15px;
		line-height: 1.5;
	}

	.home-hero-actions,
	.home-hero-trust {
		margin-top: 14px;
	}

	.home-intro-head__inner {
		padding-top: 20px;
	}

	.intro .home-intro-head__title {
		font-size: clamp(1.7em, 2.2vw, 2.3em);
	}
}

