/**
 * Startseiten-Hero: feste Höhe (kein 75vh/100vh), Logo + Titel wieder *im* Hero unten (Theme-Overlay).
 */
body.home.site-front-page.has-header-image {
	/* Etwas Luft für Logo + Titel + Untertitel; max. großzügiger auf breiten Screens */
	--home-hero-h: clamp(34rem, 78vmin, 50rem);
}

/* Tabellen-Layout: Bild absolut vollflächig, Branding als Zelle unten */
body.home.site-front-page.has-header-image .site-banner {
	display: table !important;
	table-layout: fixed !important;
	width: 100% !important;
	height: var(--home-hero-h) !important;
	min-height: var(--home-hero-h) !important;
	margin-bottom: 1rem;
}

body.home.site-front-page.has-header-image .site-banner__media {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	overflow: hidden;
}

body.home.site-front-page.has-header-image #site-hero {
	height: 100%;
	max-height: none;
	overflow: hidden;
}

@supports (object-fit: cover) {
	body.home.site-front-page.has-header-image .site-banner__media img {
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
		width: 100% !important;
		height: 100% !important;
		min-width: 0 !important;
		min-height: 0 !important;
		max-width: none !important;
		-o-object-fit: cover !important;
		object-fit: cover !important;
		object-position: center center !important;
		-webkit-transform: none !important;
		transform: none !important;
	}
}

body.home.site-front-page.has-header-image .site-branding {
	display: table-cell !important;
	vertical-align: bottom !important;
	width: 100% !important;
	height: 100% !important;
	position: relative !important;
	z-index: 4 !important;
	padding-top: 0 !important;
}

body.home.site-front-page.has-header-image .site-branding .wrap {
	padding-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
	max-width: min(44rem, 94vw);
	margin-left: auto;
	margin-right: auto;
}

/* Hero: Hauptüberschrift (H1), gut lesbar auf Fotohintergrund */
body.home.site-front-page.has-header-image .site-title {
	margin: 0.35rem 0 0;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
}

body.home.site-front-page.has-header-image .site-title a {
	color: #fff !important;
	font-weight: 600;
	font-size: clamp(1.2rem, 3.8vw, 1.75rem);
	line-height: 1.28;
	letter-spacing: 0.01em;
	max-width: 44rem;
	display: inline-block;
	text-decoration: none;
	text-shadow:
		0 0 18px rgba(0, 0, 0, 0.55),
		0 2px 10px rgba(0, 0, 0, 0.82),
		0 0 1px rgba(0, 0, 0, 0.95);
}

body.home.site-front-page.has-header-image .site-title a:hover,
body.home.site-front-page.has-header-image .site-title a:focus-visible {
	color: #fff !important;
	text-decoration: none;
	opacity: 0.95;
}

body.home.site-front-page.has-header-image .site-branding .site-logo-link {
	display: inline-block;
	margin-bottom: 0.15rem;
}

/* Untertitel: Tapografie + Schatten für helle Fotos */
body.home.site-front-page.has-header-image .site-description {
	display: block;
	margin-top: 0.4rem !important;
	margin-bottom: 0 !important;
	font-size: clamp(0.95rem, 2.85vw, 1.085rem);
	font-weight: 500;
	letter-spacing: 0.01em;
	text-shadow:
		0 0 16px rgba(0, 0, 0, 0.5),
		0 2px 5px rgba(0, 0, 0, 0.75),
		0 0 2px rgba(0, 0, 0, 0.9);
	line-height: 1.52;
	max-width: 40rem;
}

/* Im Hero: kompakteres Logo, Schatten für Lesbarkeit */
body.home.site-front-page.has-header-image .site-branding .site-logo-link img.site-logo {
	width: clamp(9.25rem, 17vw, 13rem) !important;
	max-width: min(88%, 13.75rem);
	height: auto !important;
	max-height: none !important;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

@media screen and (max-width: 47.99em) {
	body.home.site-front-page.has-header-image {
		--home-hero-h: clamp(15.5rem, 42svh, 20rem);
	}
}

@media screen and (min-width: 48em) {
	body.home.site-front-page.has-header-image .site-banner {
		margin-bottom: 1.35rem;
	}

	body.home.site-front-page.has-header-image .site-banner__media {
		height: 100% !important;
	}
}

.home .content-main .home-intro-figure {
	position: relative;
	margin: 0 0 1em;
	overflow: hidden;
	border-radius: 2px;
}

.home .home-intro-figure .content-block-image {
	margin: 0;
}

.home .home-intro-figure .content-block-image img {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: bottom;
}

.home .home-intro-figure__title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 1.85rem 1rem 0.95rem;
	background: linear-gradient(
		to top,
		rgba(15, 30, 50, 0.92) 0%,
		rgba(15, 30, 50, 0.55) 55%,
		transparent 100%
	);
	color: #fff;
	font-size: clamp(0.95rem, 2.5vw, 1.2rem);
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-shadow:
		0 0 12px rgba(0, 0, 0, 0.45),
		0 2px 6px rgba(0, 0, 0, 0.55);
}

@media screen and (max-width: 30em) {
	.home .home-intro-figure__title {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
		font-size: 0.92rem;
	}
}

/* Startseite: Textstruktur (Kontakt, CTA, Datenschutz-Hinweis) */
.home .content-main .home-contact-heading,
.home .content-main .home-content-heading {
	margin-top: 1.65em;
	margin-bottom: 0.35rem;
	font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
}

.home .content-main .home-contact-lead {
	margin-top: 0.35rem;
	margin-bottom: 0.5rem;
}

.home .content-main .home-contact-list {
	margin: 0 0 1.15em;
	padding-left: 1.2rem;
	list-style: disc;
}

.home .content-main .home-contact-list.home-contact-actions {
	list-style: none;
	padding-left: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
	position: relative;
	z-index: 2;
}

.home .content-main .home-contact-actions__item {
	margin: 0;
}

.home .content-main .home-contact-action {
	display: inline-flex !important;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	align-content: center;
	gap: 0.35em;
	width: 100%;
	max-width: min(26rem, 100%);
	margin-top: 0 !important;
	box-sizing: border-box;
	min-height: 3rem;
	position: relative;
	z-index: 2;
	overflow: visible;
	word-break: break-word;
	hyphens: none;
	-webkit-tap-highlight-color: transparent;
}

.home .content-main .home-contact-action .home-contact-action__label {
	display: contents;
}

.home .content-main a.home-contact-action,
.home .content-main .home-cta-wrap a.btn-site-primary {
	transition: background 0.2s ease;
}

.home .content-main a.home-contact-action:hover,
.home .content-main a.home-contact-action:active,
.home .content-main .home-cta-wrap a.btn-site-primary:hover,
.home .content-main .home-cta-wrap a.btn-site-primary:active {
	transform: none;
	box-shadow: var(--site-btn-inset), var(--site-btn-shadow) !important;
}

.home .content-main .home-cta-wrap {
	margin-top: 1.15rem;
	margin-bottom: 0;
}

.home .content-main .home-entry-note {
	font-size: 0.92em;
	line-height: 1.55;
	color: #4a4a4a;
	max-width: 42rem;
	margin-top: 1.35rem;
	margin-bottom: 0;
}
