/**
 * Shared dark redesign for established Huntenburg theme pages.
 * All selectors are page-scoped so the active theme and other pages stay intact.
 */

.hbpp-legacy-dark-design {
	--hbpp-dark: #002f25;
	--hbpp-green: #064838;
	--hbpp-green-light: #17523f;
	--hbpp-orange: #ff6b16;
	--hbpp-cream: #f7f3e8;
	--hbpp-ink: #ffffff;
	--hbpp-muted: rgba(255, 255, 255, 0.76);
}

.hbpp-legacy-dark-design .site-content {
	background: var(--hbpp-dark);
}

.hbpp-legacy-dark-design .sub-hero {
	position: relative;
	display: grid;
	height: clamp(470px, 64vh, 650px) !important;
	min-height: 470px;
	align-items: center;
	background-position: center 55% !important;
	isolation: isolate;
}

.hbpp-legacy-dark-design .sub-hero::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(0, 47, 37, 0.97) 0%, rgba(0, 47, 37, 0.84) 43%, rgba(0, 47, 37, 0.36) 75%, rgba(0, 47, 37, 0.18) 100%),
		linear-gradient(0deg, rgba(0, 47, 37, 0.7), transparent 48%);
	content: "";
}

.hbpp-legacy-dark-design .sub-hero .overlay {
	display: none;
}

.hbpp-legacy-dark-design .sub-hero > .grid-container {
	width: min(100% - 48px, 1240px);
	max-width: none;
	margin-inline: auto;
}

.hbpp-legacy-dark-design .sub-hero .grid-x {
	height: auto !important;
	min-height: 0;
}

.hbpp-legacy-dark-design .sub-hero .cell {
	min-width: 0;
}

.hbpp-legacy-dark-design .sub-hero .grid-padding-x > .cell {
	padding: 0;
}

.hbpp-legacy-dark-design .sub-hero .caption {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 32px 0;
	text-align: left;
}

.hbpp-legacy-dark-design .sub-hero .caption::before {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	margin: 0 0 16px;
	box-sizing: border-box;
	color: var(--hbpp-orange);
	font: 900 12px/1.2 Arial, Helvetica, sans-serif;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	content: "Huntenburg Hygieneservice";
}

.hbpp-legacy-dark-design .sub-hero .caption::before {
	border-left: 34px solid var(--hbpp-orange);
	padding-left: 12px;
}

.hbpp-redesign-stallreinigung-desinfektion .sub-hero .caption::before {
	content: "Professionelle Stallhygiene";
}

.hbpp-redesign-schaedlingsbekaempfung .sub-hero .caption::before {
	content: "Sicher. Wirksam. Dokumentiert.";
}

.hbpp-redesign-ueber-uns .sub-hero .caption::before {
	content: "Persönlich. Regional. Direkt.";
}

.hbpp-legacy-dark-design .sub-hero h1 {
	width: 100%;
	max-width: 100%;
	margin: 0;
	color: #ffffff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(40px, 5vw, 70px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.025em;
	overflow-wrap: normal;
	text-align: left;
	text-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
	text-transform: none;
	white-space: normal;
	word-break: normal;
	-webkit-hyphens: none;
	hyphens: none;
}

.hbpp-legacy-dark-design .sub-hero h1 > br,
.hbpp-legacy-dark-design .sub-hero h1 .hl_pt2 br {
	display: none;
}

.hbpp-legacy-dark-design .sub-hero h1 .hl_pt2 {
	display: block;
	width: min(680px, 100%);
	max-width: 100%;
	margin-top: 18px;
	color: rgba(255, 255, 255, 0.84);
	font-family: Arial, Helvetica, sans-serif;
	font-size: clamp(17px, 1.7vw, 23px);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	overflow-wrap: normal;
	text-align: left;
	text-transform: none;
	word-break: normal;
}

.hbpp-legacy-dark-design .sub-hero h1 .hl_pt2:empty {
	display: none;
}

.hbpp-legacy-dark-design .sub-hero .form-badges {
	top: auto !important;
	right: clamp(18px, 4vw, 64px);
	bottom: 26px;
}

.hbpp-legacy-dark-design .sub-hero .form-badges ul {
	display: flex;
	gap: 10px;
	margin: 0;
	list-style: none;
}

.hbpp-legacy-dark-design .sub-hero .form-badges li {
	margin: 0;
}

.hbpp-legacy-dark-design .sub-hero .form-badges a {
	display: grid;
	width: 54px;
	height: 54px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 50%;
	background: rgba(0, 47, 37, 0.82);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
	transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hbpp-legacy-dark-design .sub-hero .form-badges a:hover,
.hbpp-legacy-dark-design .sub-hero .form-badges a:focus-visible {
	border-color: var(--hbpp-orange);
	background: var(--hbpp-orange);
	outline: none;
	transform: translateY(-3px);
}

.hbpp-legacy-dark-design .sub-hero .form-badges i {
	width: 42px !important;
	height: 42px !important;
}

.hbpp-legacy-dark-design .sub-feature.sfs {
	position: relative;
	background:
		radial-gradient(circle at 94% 7%, rgba(76, 153, 104, 0.18), transparent 30rem),
		linear-gradient(180deg, #003b2e 0%, var(--hbpp-dark) 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hbpp-legacy-dark-design .sub-feature.sfs .content-block {
	padding: clamp(58px, 7vw, 96px) 0 clamp(68px, 8vw, 110px);
}

.hbpp-legacy-dark-design .sub-feature.sfs .grid-container {
	width: min(100% - 48px, 1240px);
	max-width: none;
	margin-inline: auto;
	padding: 0;
}

.hbpp-legacy-dark-design .sub-feature.sfs > .content-block > .grid-container > ul {
	display: block;
	margin: 0;
	list-style: none;
}

.hbpp-legacy-dark-design .sub-feature.sfs li.cell {
	position: relative;
	overflow: hidden;
	margin: 0 0 28px;
	padding: clamp(16px, 2vw, 24px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 55%),
		var(--hbpp-green-light);
	box-shadow: 0 20px 50px rgba(0, 20, 15, 0.24);
	list-style: none;
}

.hbpp-legacy-dark-design .sub-feature.sfs li.cell:nth-child(even) {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 55%),
		#104a3a;
}

.hbpp-legacy-dark-design .sub-feature.sfs li.cell:last-child {
	margin-bottom: 0;
}

.hbpp-legacy-dark-design .sub-feature.sfs li.cell > .grid-x {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 58px);
	align-items: center;
	margin: 0;
}

.hbpp-legacy-dark-design .sub-feature.sfs li.cell > .grid-x > .cell {
	width: 100% !important;
	max-width: none;
	padding: 0 !important;
}

.hbpp-legacy-dark-design .sub-feature.sfs li.cell > .grid-x > .cell.last {
	padding: clamp(18px, 3.2vw, 46px) !important;
}

.hbpp-legacy-dark-design .sub-feature.sfs picture {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow:
		0 22px 46px rgba(0, 18, 13, 0.38),
		0 0 0 1px rgba(255, 255, 255, 0.16);
	isolation: isolate;
}

.hbpp-legacy-dark-design .sub-feature.sfs picture::after {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: inherit;
	box-shadow: inset 0 -70px 90px rgba(0, 47, 37, 0.1);
	content: "";
	pointer-events: none;
}

.hbpp-legacy-dark-design .sub-feature.sfs picture img,
.hbpp-legacy-dark-design .sub-feature.sfs .cell.first img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0;
	border-radius: 22px !important;
	box-shadow: 0 22px 46px rgba(0, 18, 13, 0.38);
	clip-path: inset(0 round 22px);
	object-fit: cover;
	object-position: center;
	transition: transform 500ms ease;
}

.hbpp-legacy-dark-design .sub-feature.sfs li.cell:hover picture img,
.hbpp-legacy-dark-design .sub-feature.sfs li.cell:hover .cell.first img {
	transform: scale(1.035);
}

.hbpp-legacy-dark-design .sub-feature.sfs h2 {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	color: #ffffff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 3.2vw, 45px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.015em;
	text-transform: none;
	white-space: normal !important;
	overflow-wrap: normal;
	word-break: normal;
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-character: "-";
	hyphenate-limit-chars: 6 3 3;
}

.hbpp-legacy-dark-design .sub-feature.sfs hr {
	width: 44px;
	height: 3px;
	margin: 19px 0 24px;
	border: 0;
	background: var(--hbpp-orange);
}

.hbpp-legacy-dark-design .sub-feature.sfs p {
	margin: 0 0 15px;
	color: var(--hbpp-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

.hbpp-legacy-dark-design .sub-feature.sfs p:last-of-type {
	margin-bottom: 0;
}

.hbpp-legacy-dark-design .sub-feature.sfs .cell.last > ul {
	margin: 0;
	padding-left: 20px;
	color: var(--hbpp-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

.hbpp-legacy-dark-design .sub-feature.sfs .cell.last > ul li {
	margin-bottom: 9px;
}

.hbpp-legacy-dark-design .sub-feature.sfs .cell.last > ul li::marker {
	color: var(--hbpp-orange);
}

.hbpp-legacy-dark-design .sub-feature.sfs strong {
	color: #ffffff;
	font-weight: 800;
}

.hbpp-legacy-dark-design .sub-feature.sfs a.button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	margin-top: 25px;
	padding: 13px 22px;
	border: 1px solid var(--hbpp-orange);
	border-radius: 3px;
	background: var(--hbpp-orange);
	box-shadow: 0 12px 24px rgba(0, 20, 15, 0.22);
	color: #ffffff;
	font: 800 14px/1.2 Arial, Helvetica, sans-serif;
	text-decoration: none;
	text-transform: none;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.hbpp-legacy-dark-design .sub-feature.sfs a.button:hover,
.hbpp-legacy-dark-design .sub-feature.sfs a.button:focus-visible {
	background: transparent;
	color: #ffffff;
	outline: none;
	transform: translateY(-2px);
}

@media (max-width: 1023px) {
	.hbpp-legacy-dark-design .sub-hero {
		background-position: 60% center !important;
	}

	.hbpp-legacy-dark-design .sub-feature.sfs li.cell > .grid-x {
		gap: 34px;
	}
}

@media (max-width: 760px) {
	.hbpp-legacy-dark-design .sub-hero {
		min-height: 470px;
		background-position: 66% center !important;
	}

	.hbpp-legacy-dark-design .sub-hero::after {
		background: linear-gradient(90deg, rgba(3, 38, 29, 0.93), rgba(3, 38, 29, 0.54));
	}

	.hbpp-legacy-dark-design .sub-hero > .grid-container,
	.hbpp-legacy-dark-design .sub-feature.sfs .grid-container {
		width: min(100% - 30px, 1240px);
	}

	.hbpp-legacy-dark-design .sub-hero .caption {
		padding: 28px 0;
	}

	.hbpp-legacy-dark-design .sub-hero .caption::before {
		margin-bottom: 14px;
		padding-left: 10px;
		border-left-width: 28px;
		font-size: 11px;
		letter-spacing: 0.11em;
	}

	.hbpp-legacy-dark-design .sub-hero h1 {
		font-size: clamp(34px, 10.5vw, 48px);
		line-height: 1.02;
		overflow-wrap: break-word;
		-webkit-hyphens: auto;
		hyphens: auto;
	}

	.hbpp-legacy-dark-design .sub-hero h1 .hl_pt2 {
		font-size: 16px;
		line-height: 1.45;
		margin-top: 16px;
	}

	.hbpp-legacy-dark-design .sub-hero .form-badges {
		right: 15px;
		bottom: 16px;
	}

	.hbpp-legacy-dark-design .sub-feature.sfs .content-block {
		padding-top: 52px;
	}

	.hbpp-legacy-dark-design .sub-feature.sfs li.cell {
		margin-bottom: 18px;
		padding: 14px;
	}

	.hbpp-legacy-dark-design .sub-feature.sfs li.cell > .grid-x {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.hbpp-legacy-dark-design .sub-feature.sfs li.cell > .grid-x > .cell.last {
		padding: 14px 8px 20px !important;
	}

	.hbpp-legacy-dark-design .sub-feature.sfs picture {
		aspect-ratio: 16 / 11;
	}

	.hbpp-legacy-dark-design .sub-feature.sfs h2 {
		font-size: clamp(29px, 9vw, 38px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbpp-legacy-dark-design .sub-feature.sfs picture img,
	.hbpp-legacy-dark-design .sub-feature.sfs .cell.first img,
	.hbpp-legacy-dark-design .sub-feature.sfs a.button,
	.hbpp-legacy-dark-design .sub-hero .form-badges a {
		transition: none;
	}
}
