/**
 * Dark redesign for the established imprint and privacy pages.
 */

.hbpp-legacy-legal {
	--hbpp-legal-dark: #002f25;
	--hbpp-legal-green: #164f3e;
	--hbpp-legal-orange: #ff6b16;
	--hbpp-legal-muted: rgba(255, 255, 255, 0.78);
}

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

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

.hbpp-legacy-legal .sub-hero::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(0, 47, 37, 0.97), rgba(0, 47, 37, 0.8) 52%, rgba(0, 47, 37, 0.3) 82%),
		linear-gradient(0deg, rgba(0, 47, 37, 0.72), transparent 55%);
	content: "";
}

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

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

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

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

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

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

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

.hbpp-legacy-legal .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-transform: none;
	white-space: normal;
	word-break: normal;
	-webkit-hyphens: none;
	hyphens: none;
}

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

.hbpp-legacy-legal .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-legal .sub-hero h1 .hl_pt2:empty {
	display: none;
}

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

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

.hbpp-legacy-legal .sub-hero .form-badges li {
	margin: 0;
	padding: 0;
}

.hbpp-legacy-legal .sub-hero .form-badges a {
	display: grid;
	width: 54px;
	height: 54px;
	padding: 0;
	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-legal .sub-hero .form-badges a:hover,
.hbpp-legacy-legal .sub-hero .form-badges a:focus-visible {
	border-color: var(--hbpp-legal-orange);
	background: var(--hbpp-legal-orange);
	outline: none;
	transform: translateY(-3px);
}

.hbpp-legacy-legal .sub-hero .form-badges i {
	display: block;
	width: 42px !important;
	height: 42px !important;
	margin: 0 !important;
}

.hbpp-legacy-legal .impressum-sf,
.hbpp-legacy-legal .datenschutz-sf {
	background:
		radial-gradient(circle at 90% 7%, rgba(76, 153, 104, 0.16), transparent 34rem),
		linear-gradient(180deg, #003b2e, var(--hbpp-legal-dark));
}

.hbpp-legacy-legal .impressum-sf .content-block,
.hbpp-legacy-legal .datenschutz-sf .content-block {
	padding: clamp(62px, 8vw, 108px) 0;
}

.hbpp-legacy-legal .impressum-sf .grid-container,
.hbpp-legacy-legal .datenschutz-sf .grid-container {
	width: min(100% - 48px, 1040px);
	max-width: none;
	margin: 0 auto;
	padding: clamp(30px, 5vw, 64px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 22px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 42%),
		var(--hbpp-legal-green);
	box-shadow: 0 24px 58px rgba(0, 18, 13, 0.32);
}

.hbpp-legacy-legal .impressum-sf .grid-container .grid-x,
.hbpp-legacy-legal .datenschutz-sf .grid-container .grid-x {
	margin-inline: 0;
}

.hbpp-legacy-legal .impressum-sf .cell,
.hbpp-legacy-legal .datenschutz-sf .cell {
	padding-inline: 0;
}

.hbpp-legacy-legal .impressum-sf h1,
.hbpp-legacy-legal .datenschutz-sf h1 {
	position: relative;
	margin: 0 0 38px;
	padding-bottom: 20px;
	color: #ffffff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 4vw, 50px);
	font-weight: 800;
	line-height: 1.05;
	text-transform: none;
}

.hbpp-legacy-legal .impressum-sf h1::after,
.hbpp-legacy-legal .datenschutz-sf h1::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 46px;
	height: 3px;
	background: var(--hbpp-legal-orange);
	content: "";
}

.hbpp-legacy-legal .impressum-sf h4,
.hbpp-legacy-legal .datenschutz-sf h4 {
	margin: 42px 0 15px;
	color: #ffffff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(23px, 2.4vw, 31px);
	font-weight: 800;
	line-height: 1.2;
	text-transform: none;
}

.hbpp-legacy-legal .impressum-sf p,
.hbpp-legacy-legal .datenschutz-sf p,
.hbpp-legacy-legal .datenschutz-sf li {
	color: var(--hbpp-legal-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.68;
}

.hbpp-legacy-legal .impressum-sf p,
.hbpp-legacy-legal .datenschutz-sf p {
	margin-bottom: 24px;
}

.hbpp-legacy-legal .impressum-sf strong,
.hbpp-legacy-legal .datenschutz-sf strong {
	color: #ffffff;
}

.hbpp-legacy-legal .impressum-sf a,
.hbpp-legacy-legal .datenschutz-sf a {
	color: #ff9560;
	text-decoration-color: rgba(255, 149, 96, 0.55);
	text-underline-offset: 3px;
}

.hbpp-legacy-legal .datenschutz-sf ul,
.hbpp-legacy-legal .datenschutz-sf ol {
	margin: -8px 0 28px 24px;
}

.hbpp-legacy-legal .datenschutz-sf li {
	margin-bottom: 9px;
}

@media (max-width: 760px) {
	.hbpp-legacy-legal .sub-hero {
		min-height: 470px;
	}

	.hbpp-legacy-legal .sub-hero > .grid-container,
	.hbpp-legacy-legal .impressum-sf .grid-container,
	.hbpp-legacy-legal .datenschutz-sf .grid-container {
		width: min(100% - 30px, 1040px);
	}

	.hbpp-legacy-legal .impressum-sf .grid-container,
	.hbpp-legacy-legal .datenschutz-sf .grid-container {
		padding: 28px 20px;
	}

	.hbpp-legacy-legal .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-legal .sub-hero .caption {
		padding: 28px 0;
	}

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

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

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

}

@media (prefers-reduced-motion: reduce) {
	.hbpp-legacy-legal .sub-hero .form-badges a {
		transition: none;
	}
}
