.flex-layout.hero_banner {
	overflow: hidden;
	margin-block: 0;
}

.flex-layout.hero_banner .pk-grid-container {
	/* Match the start of the home hero and keep it independent of viewport
	 * height. The image itself sets the remaining height by ratio. */
	padding-top: var(--pk-header-height);
}

.flex-layout.hero_banner .hero {
	position: relative;
}

.flex-layout.hero_banner .hero-bg {
	position: relative;
	width: calc(45.45% + 50vw + 2px);
	aspect-ratio: 1085 / 420;
	background: linear-gradient(90deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
	clip-path: polygon(12.17% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.flex-layout.hero_banner .hero-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.flex-layout.hero_banner .hero-content {
	position: absolute;
	top: auto;
	bottom: max(13rem, calc(18 * var(--su)));
	left: 0;
	width: 55%;
	color: var(--white);
}

.flex-layout.hero_banner .hero-content .pk-heading {
	margin: 0;
	color: var(--white);
}

.post-type-archive-dienst .flex-layout.hero_banner .hero-image {
	object-position: center 42%;
}

@media screen and (max-width: 991px) {
	.flex-layout.hero_banner .hero-bg {
		width: calc(50% + 50vw + 2px);
	}

	.flex-layout.hero_banner.has-image .hero-bg::after {
		content: "";
		position: absolute;
		z-index: 1;
		inset: 0;
		pointer-events: none;
		background: linear-gradient(180deg, rgb(0 0 0 / 0.38) 0%, rgb(0 0 0 / 0) 42%);
	}

	.flex-layout.hero_banner .hero-content {
		bottom: clamp(5rem, calc(12 * var(--su)), 7rem);
		width: 75%;
	}
}

@media screen and (max-width: 767px) {
	.flex-layout.hero_banner .pk-grid-container {
		padding-top: 0;
	}

	.flex-layout.hero_banner .hero-bg {
		aspect-ratio: auto;
		/* A full viewport banner leaves too much empty image on phones. */
		height: max(26rem, calc(35 * var(--su)));
		width: 100vw;
		margin-left: calc(50% - 50vw);
		clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
	}

	.flex-layout.hero_banner.has-image .hero-bg {
		clip-path: none;
	}

	.flex-layout.hero_banner .hero-content {
		z-index: 2;
		top: auto;
		bottom: 4.5rem;
		width: 90%;
	}
}
