/**
 * Dark redesign for the established contact page.
 */

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

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

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

.hbpp-legacy-contact .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) 48%, rgba(0, 47, 37, 0.3) 80%),
		linear-gradient(0deg, rgba(0, 47, 37, 0.7), transparent 52%);
	content: "";
}

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

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

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

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

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

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

.hbpp-legacy-contact .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-contact-orange);
	box-sizing: border-box;
	color: var(--hbpp-contact-orange);
	font: 900 12px/1.2 Arial, Helvetica, sans-serif;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	content: "Wir sind für Sie da";
}

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

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

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

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

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

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

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

.hbpp-legacy-contact .kontakt-sf {
	background:
		radial-gradient(circle at 90% 10%, rgba(76, 153, 104, 0.17), transparent 30rem),
		linear-gradient(180deg, #003b2e, var(--hbpp-contact-dark));
}

.hbpp-legacy-contact .kontakt-sf .content-block {
	padding: clamp(64px, 8vw, 108px) 0;
}

.hbpp-legacy-contact .kontakt-sf .grid-container {
	width: min(100% - 48px, 1040px);
	max-width: none;
	margin: 0 auto;
	padding: clamp(26px, 4vw, 52px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 22px;
	background: var(--hbpp-contact-green);
	box-shadow: 0 24px 58px rgba(0, 18, 13, 0.32);
}

.hbpp-legacy-contact .wpcf7-form {
	color: var(--hbpp-contact-muted);
}

.hbpp-legacy-contact .wpcf7-form .grid-x {
	margin-inline: -8px;
}

.hbpp-legacy-contact .wpcf7-form .cell {
	padding-inline: 8px;
}

.hbpp-legacy-contact .wpcf7-form p {
	margin-bottom: 16px;
}

.hbpp-legacy-contact .wpcf7 input[type="text"],
.hbpp-legacy-contact .wpcf7 input[type="email"],
.hbpp-legacy-contact .wpcf7 input[type="tel"],
.hbpp-legacy-contact .wpcf7 textarea {
	width: 100%;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	background: rgba(0, 47, 37, 0.7);
	box-shadow: none;
	color: #ffffff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
}

.hbpp-legacy-contact .wpcf7 input[type="text"],
.hbpp-legacy-contact .wpcf7 input[type="email"],
.hbpp-legacy-contact .wpcf7 input[type="tel"] {
	height: 54px;
	padding: 0 17px;
}

.hbpp-legacy-contact .wpcf7 textarea {
	min-height: 210px;
	padding: 16px 17px;
	resize: vertical;
}

.hbpp-legacy-contact .wpcf7 input::placeholder,
.hbpp-legacy-contact .wpcf7 textarea::placeholder {
	color: rgba(255, 255, 255, 0.62);
}

.hbpp-legacy-contact .wpcf7 input:focus,
.hbpp-legacy-contact .wpcf7 textarea:focus {
	border-color: var(--hbpp-contact-orange);
	outline: 3px solid rgba(255, 107, 22, 0.2);
}

.hbpp-legacy-contact .wpcf7 .confirmation,
.hbpp-legacy-contact .wpcf7 .confirmation label,
.hbpp-legacy-contact .wpcf7 .confirmation .wpcf7-list-item-label {
	color: var(--hbpp-contact-muted) !important;
}

.hbpp-legacy-contact .wpcf7 .confirmation a {
	color: #ff9560 !important;
	text-decoration-color: rgba(255, 149, 96, 0.6);
	text-underline-offset: 3px;
}

.hbpp-legacy-contact .wpcf7 input[type="checkbox"] {
	accent-color: var(--hbpp-contact-orange);
}

.hbpp-legacy-contact .wpcf7 input[type="submit"] {
	min-width: 160px;
	min-height: 50px;
	border: 1px solid var(--hbpp-contact-orange);
	border-radius: 4px;
	background: var(--hbpp-contact-orange);
	color: #ffffff;
	font-weight: 850;
}

.hbpp-legacy-contact .wpcf7 .wpcf7-response-output {
	border-color: var(--hbpp-contact-orange);
	border-radius: 8px;
	color: #ffffff;
}

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

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

	.hbpp-legacy-contact .kontakt-sf .grid-container {
		padding: 20px 12px;
	}

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

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

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

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

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