/**
 * „Let’s Build the Future Together“-Banner + drei Bildkacheln (Die Burg, Die IT-ler, Unsere Services).
 * 1:1 aus css/kontakt-hero.css übernommen; Markup in includes/kontakt-future-banner.php.
 */

.karriere-parallax-banner {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 340px;
	overflow: hidden;
	background-color: transparent;
	background-image: linear-gradient(90deg, rgba(110, 210, 236, 1), rgba(0, 136, 162, 1));
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: 0 0;
}

/* Fünf Linien im gleichen Band wie Hero/Kontaktinfo — alle Positionen sichtbar (kein „Loch“ bei 25 %) */
.karriere-parallax-banner::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: min(1600px, 81.25%);
	transform: translateX(-50%);
	pointer-events: none;
	z-index: 0;
	background-image:
		linear-gradient(to bottom, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.10)),
		linear-gradient(to bottom, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.10)),
		linear-gradient(to bottom, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.10)),
		linear-gradient(to bottom, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.10)),
		linear-gradient(to bottom, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.10));
	background-repeat: no-repeat;
	background-size: 1px 100%, 1px 100%, 1px 100%, 1px 100%, 1px 100%;
	background-position: 0 0, 25% 0, 50% 0, 75% 0, 100% 0;
	opacity: 0.25;
}

.karriere-parallax-banner__bg {
	display: none;
}

.karriere-parallax-banner__content {
	position: relative;
	z-index: 1;
	min-height: 340px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	text-align: center;
}

.karriere-parallax-banner__content h2 {
	margin: 0;
	color: #ffffff;
	font-size: clamp(2rem, 2.2vw + 1rem, 3.25rem);
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.02em;
}

@media screen and (max-width: 767px) {
	.karriere-parallax-banner,
	.karriere-parallax-banner__content {
		min-height: 240px;
	}
}

/* Drei gleich breite Spalten unter „Let’s Build the Future Together“ */
.kontakt-werk-triptych {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
}

.kontakt-werk-triptych__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}

.kontakt-werk-triptych__col {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	outline-offset: -4px;
}

.kontakt-werk-triptych__col:focus-visible {
	outline: 2px solid #ffffff;
	z-index: 2;
}

.kontakt-werk-triptych__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transform: scale(1.01);
}

.kontakt-werk-triptych__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	opacity: 1;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.kontakt-werk-triptych__col:hover .kontakt-werk-triptych__overlay,
.kontakt-werk-triptych__col:focus-within .kontakt-werk-triptych__overlay {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	.kontakt-werk-triptych__overlay {
		transition: none;
	}
}

.kontakt-werk-triptych__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 28px 20px;
	max-width: 28ch;
}

.kontakt-werk-triptych__title {
	margin: 0 0 10px;
	color: #ffffff;
	font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.kontakt-werk-triptych__subtitle {
	margin: 0 0 22px;
	color: #ffffff;
	font-size: clamp(0.95rem, 0.35vw + 0.85rem, 1.1rem);
	line-height: 1.45;
	font-weight: 400;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.kontakt-werk-triptych__btn {
	display: inline-block;
	padding: 12px 22px;
	border: 1px solid rgba(255, 255, 255, 0.95);
	border-radius: 4px;
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: transparent;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.kontakt-werk-triptych__col:hover .kontakt-werk-triptych__btn,
.kontakt-werk-triptych__col:focus-within .kontakt-werk-triptych__btn {
	background: rgba(255, 255, 255, 0.12);
}

@media screen and (max-width: 991px) {
	.kontakt-werk-triptych__grid {
		grid-template-columns: 1fr;
	}

	.kontakt-werk-triptych__col {
		min-height: 320px;
	}
}

@media (max-width: 992px) {
	.karriere-parallax-banner::after {
		left: var(--page-home-stripe-gutter, 16px);
		right: var(--page-home-stripe-gutter, 16px);
		width: auto;
		max-width: none;
		transform: none;
	}
}
