/**
 * Dark product-card redesign for the established product overview.
 */

.hbpp-legacy-product-overview {
	--hbpp-product-dark: #002f25;
	--hbpp-product-green: #064838;
	--hbpp-product-card: #164f3e;
	--hbpp-product-orange: #ff6b16;
	--hbpp-product-muted: rgba(255, 255, 255, 0.74);
}

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

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

.hbpp-legacy-product-overview .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.83) 45%, rgba(0, 47, 37, 0.32) 78%),
		linear-gradient(0deg, rgba(0, 47, 37, 0.74), transparent 50%);
	content: "";
}

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

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

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

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

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

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

.hbpp-legacy-product-overview .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-product-orange);
	box-sizing: border-box;
	color: var(--hbpp-product-orange);
	font: 900 12px/1.2 Arial, Helvetica, sans-serif;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	content: "Professionelle Betriebshygiene";
}

.hbpp-legacy-product-overview .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.22);
	text-transform: none;
	white-space: normal;
	word-break: normal;
	-webkit-hyphens: none;
	hyphens: none;
}

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

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

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

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

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

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

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

.page-reinigungs-desinfektionsmittel.hbpp-legacy-product-overview .hbpp-overview-entry {
	padding: clamp(54px, 7vw, 88px) 24px 34px;
	background:
		radial-gradient(circle at 92% 10%, rgba(68, 145, 95, 0.16), transparent 28rem),
		linear-gradient(180deg, #003b2e, var(--hbpp-product-dark));
}

.page-reinigungs-desinfektionsmittel.hbpp-legacy-product-overview .hbpp-overview-entry-inner {
	width: min(1240px, 100%);
}

.page-reinigungs-desinfektionsmittel.hbpp-legacy-product-overview .hbpp-overview-entry-title {
	color: #ffffff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 3.5vw, 46px);
}

.page-reinigungs-desinfektionsmittel.hbpp-legacy-product-overview a.hbpp-overview-entry-card {
	border-radius: 16px;
	background:
		radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--hbpp-entry-accent) 22%, transparent), transparent 14rem),
		linear-gradient(145deg, #15513f, #063b2f 74%);
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs {
	background:
		radial-gradient(circle at 8% 20%, rgba(122, 166, 75, 0.1), transparent 30rem),
		var(--hbpp-product-dark);
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs > .content-block {
	padding: 22px 0 clamp(72px, 8vw, 112px);
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs .grid-container {
	width: min(100% - 48px, 1240px);
	max-width: none;
	margin: 0 auto;
	padding: clamp(32px, 4vw, 50px) 0 0;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs .grid-container.last {
	padding-top: clamp(62px, 7vw, 92px);
	padding-right: 0 !important;
	padding-left: 0 !important;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs .grid-container > .grid-x {
	margin: 0;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs h2 {
	position: relative;
	margin: 0 0 28px;
	padding-bottom: 18px;
	color: #ffffff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.05;
	text-transform: none;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs h2::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 46px;
	height: 3px;
	background: var(--hbpp-product-orange);
	content: "";
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs ul.grid-x {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs li.cell {
	position: relative;
	display: flex;
	overflow: hidden;
	width: auto !important;
	min-width: 0;
	min-height: 500px;
	flex-direction: column;
	margin: 0;
	padding: 0 22px 24px !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 55%),
		var(--hbpp-product-card);
	box-shadow: 0 20px 46px rgba(0, 18, 13, 0.26);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs li.cell.hbpp-linked-product {
	cursor: pointer;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs li.cell:hover,
.hbpp-legacy-product-overview .sub-feature.sfs.rs li.cell:focus-within {
	border-color: rgba(255, 107, 22, 0.72);
	box-shadow: 0 28px 58px rgba(0, 18, 13, 0.4);
	outline: none;
	transform: translateY(-6px);
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs .img_box {
	display: grid;
	box-sizing: border-box;
	height: 245px;
	order: -1;
	margin: 0 -22px 23px;
	padding: 22px 30px 18px;
	place-items: center;
	background:
		radial-gradient(circle at 50% 40%, rgba(65, 145, 103, 0.25), transparent 62%),
		#07503d;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs .img_box picture {
	display: contents;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs .img_box img,
.hbpp-legacy-product-overview .sub-feature.sfs.rs .img_box .hbpp-product-card-image {
	display: block;
	width: auto !important;
	max-width: 210px !important;
	height: auto !important;
	max-height: 200px !important;
	margin: 0;
	filter: drop-shadow(0 16px 16px rgba(0, 18, 13, 0.28));
	object-fit: contain;
	object-position: center;
	transition: transform 240ms ease;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs li.cell:hover .img_box img {
	transform: translateY(-5px) scale(1.025);
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs h3 {
	min-height: 52px;
	margin: 0 0 12px;
	color: #ffffff !important;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 21px;
	font-weight: 850;
	line-height: 1.2;
	overflow: visible;
	overflow-wrap: normal;
	white-space: normal !important;
	text-transform: none;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs .txt_box {
	flex: 1 1 auto;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs .txt_box p {
	margin: 0;
	color: var(--hbpp-product-muted);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.hbpp-legacy-product-overview .sub-feature.sfs.rs li.cell.hbpp-linked-product::after {
	margin-top: 20px;
	color: var(--hbpp-product-orange);
	font: 850 14px/1.2 Arial, Helvetica, sans-serif;
	content: "Produkt ansehen  →";
}

.page-reinigungs-desinfektionsmittel.hbpp-legacy-product-overview .sfs.rs li.hbpp-linked-product > a.hbpp-card-link {
	border-radius: 18px !important;
}

@media (max-width: 1020px) {
	.hbpp-legacy-product-overview .sub-feature.sfs.rs ul.grid-x {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hbpp-legacy-product-overview .sub-feature.sfs.rs li.cell {
		min-height: 480px;
	}
}

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

	.hbpp-legacy-product-overview .sub-hero > .grid-container {
		width: min(100% - 30px, 1240px);
	}

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

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

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

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

@media (max-width: 620px) {
	.hbpp-legacy-product-overview .sub-feature.sfs.rs .grid-container {
		width: min(100% - 30px, 1240px);
	}

	.page-reinigungs-desinfektionsmittel.hbpp-legacy-product-overview .hbpp-overview-entry {
		padding-inline: 15px;
	}

	.hbpp-legacy-product-overview .sub-feature.sfs.rs ul.grid-x {
		grid-template-columns: 1fr;
	}

	.hbpp-legacy-product-overview .sub-feature.sfs.rs li.cell {
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbpp-legacy-product-overview .sub-feature.sfs.rs li.cell,
	.hbpp-legacy-product-overview .sub-feature.sfs.rs .img_box img,
	.hbpp-legacy-product-overview .sub-hero .form-badges a {
		transition: none;
	}
}
