/**
 * Interprofessionell — homepage training tiles + dark feature bar
 * CType: pxteny_interprofessionell
 * Loaded via page.includeCSS.interprofessionell (setup.typoscript).
 */

.frame-type-pxteny_interprofessionell,
.frame-type-pxteny_interprofessionell > .inner {
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	background: transparent;
}

.interprofessionell {
	--ip-red: #cc0607;
	--ip-ink: #1a1a1a;
	--ip-muted: #6a6a6a;
	--ip-line: #ececec;
	--ip-card: #ffffff;
	--ip-bar: #1a2230;
	--ip-skillienz: #1F3A5F;
	--ip-shell: 1280px;
	position: relative;
	background: #fff;
	padding: 56px 0 48px;
	overflow: hidden;
	color: var(--ip-ink);
	font-family: Calibri, Carlito, "Segoe UI", sans-serif;
}

/* wave_bg.svg is a full-width grey band (#f5f5f5), same as .frame-greywave.
   Do not crop/flip it as corner ornaments — that paints grey blobs on white. */
.interprofessionell::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 420px;
	background: url("../Images/wave_bg.svg") no-repeat top center;
	background-size: 100% auto;
	z-index: 0;
	pointer-events: none;
}

.interprofessionell__shell {
	position: relative;
	z-index: 1;
	width: 92%;
	max-width: var(--ip-shell);
	margin: 0 auto;
}

.interprofessionell__main {
	display: flex;
	align-items: flex-start;
	gap: 48px;
}

.interprofessionell__intro {
	width: 32%;
	flex: 0 0 32%;
	padding-top: 28px;
	padding-bottom: 12px;
}

.interprofessionell__title {
	margin: 0;
	font-size: 42px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--ip-skillienz);
}

.interprofessionell__title .ten-gloss {
	color: inherit;
	border-bottom-color: rgba(31, 58, 95, 0.38);
}

.interprofessionell__title .ten-mark__tm {
	font-size: 0.3em;
	margin-left: 0.04em;
	opacity: 0.65;
	font-weight: 500;
}

.interprofessionell__title::after {
	content: "";
	display: block;
	width: 52px;
	height: 3px;
	margin-top: 12px;
	background: var(--ip-red);
}

.interprofessionell__headline {
	margin: 22px 0 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ip-ink);
}

.interprofessionell__lead {
	margin: 14px 0 0;
	max-width: 18em;
	font-size: 15px;
	line-height: 1.45;
	color: var(--ip-muted);
}

/* SKILLIENZ™ departure-board scan reveal (intro copy only) */
.interprofessionell__intro.ip-departure .ip-departure__stage {
	position: relative;
}

.interprofessionell__intro.ip-departure .ip-departure__scan {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	opacity: 0;
}

.interprofessionell__intro.ip-departure .ip-departure__stage--scanning .ip-departure__scan {
	opacity: 1;
}

.interprofessionell__intro.ip-departure .ip-departure__scan::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 1px;
	background: rgba(31, 58, 95, 0.42);
	box-shadow: 0 0 4px rgba(31, 58, 95, 0.2);
}

.interprofessionell__intro.ip-departure:not(.ip-departure--done) .ip-departure__char {
	opacity: 0.4;
	filter: blur(0.45px);
	transition: opacity 0.075s linear, filter 0.075s linear;
}

.interprofessionell__intro.ip-departure .ip-departure__char.is-lit {
	opacity: 1;
	filter: none;
}

.interprofessionell__intro.ip-departure:not(.ip-departure--done) .interprofessionell__title .ten-mark__tm {
	opacity: 1;
}

.interprofessionell__intro.ip-departure .interprofessionell__title .ten-mark__tm .ip-departure__char.is-lit {
	opacity: 0.65;
}

/* Runway lights — recurring subtle brighten wave (resting state between passes) */
.interprofessionell__intro.ip-departure--done .ip-departure__char {
	transition: filter 0.105s ease, opacity 0.105s ease;
}

.interprofessionell__intro.ip-departure--done .ip-departure__char.ip-runway__lit {
	filter: brightness(1.2);
}

.interprofessionell__intro.ip-departure--done .interprofessionell__title .ip-departure__char.ip-runway__lit {
	filter: brightness(1.15);
}

.interprofessionell__intro.ip-departure--done .interprofessionell__title .ten-mark__tm .ip-departure__char.ip-runway__lit {
	opacity: 0.74;
	filter: brightness(1.1);
}

.interprofessionell__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 28px;
	font-size: 15px;
	font-weight: 700;
	color: var(--ip-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

.interprofessionell__more:hover,
.interprofessionell__more:focus {
	color: var(--ip-red);
}

.interprofessionell__more--static {
	cursor: default;
}

.interprofessionell__more-arrow {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--ip-red);
	border-right: 2px solid var(--ip-red);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.interprofessionell__more:hover .interprofessionell__more-arrow,
.interprofessionell__more:focus .interprofessionell__more-arrow {
	transform: rotate(45deg) translate(2px, -2px);
}

.interprofessionell__grid {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.interprofessionell__tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 220px;
	padding: 28px 22px 36px;
	background: var(--ip-card);
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba(20, 24, 32, 0.08);
	text-align: center;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.interprofessionell__tile:hover,
.interprofessionell__tile:focus-within {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(20, 24, 32, 0.12);
}

.interprofessionell__tile-hit {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	border-radius: inherit;
}

.interprofessionell__tile-hit:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px #cc0607;
}

.interprofessionell__tile-hit:focus:not(:focus-visible) {
	box-shadow: none;
}

.interprofessionell__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	color: var(--ip-ink);
}

.interprofessionell__icon svg {
	width: 48px;
	height: 48px;
	display: block;
}

.interprofessionell__icon-img {
	max-width: 48px;
	max-height: 48px;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

.interprofessionell__icon--erstehilfe { color: #cc0607; }
.interprofessionell__icon--notfall { color: #2b8ce6; }
.interprofessionell__icon--rettung { color: #7b5ea7; }
.interprofessionell__icon--pflege { color: #3d9b6e; }
.interprofessionell__icon--feuerwehr,
.interprofessionell__icon--flamme { color: #e07a2f; }
.interprofessionell__icon--special { color: #1e3a6e; }
.interprofessionell__icon--ziel,
.interprofessionell__icon--siegel,
.interprofessionell__icon--grow { color: #cc0607; }

.interprofessionell__tile-title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ip-ink);
}

.interprofessionell__tile-text {
	margin: 0;
	max-width: 16em;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ip-muted);
}

.interprofessionell__tile-arrow {
	position: absolute;
	right: 16px;
	bottom: 16px;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--ip-ink);
	border-right: 2px solid var(--ip-ink);
	transform: rotate(45deg);
	z-index: 1;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.interprofessionell__tile:hover .interprofessionell__tile-arrow,
.interprofessionell__tile:focus-within .interprofessionell__tile-arrow {
	border-color: var(--ip-red);
	transform: rotate(45deg) translate(1px, -1px);
}

.interprofessionell__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin-top: 28px;
	padding: 26px 36px;
	background: var(--ip-bar);
	border-radius: 12px;
	color: #fff;
}

.interprofessionell__feat {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1 1 auto;
	min-width: 0;
}

.interprofessionell__bar .interprofessionell__icon {
	width: 40px;
	height: 40px;
	margin: 0;
	flex: 0 0 40px;
	color: var(--ip-red);
}

.interprofessionell__bar .interprofessionell__icon svg {
	width: 36px;
	height: 36px;
}

.interprofessionell__bar .interprofessionell__icon-img {
	max-width: 36px;
	max-height: 36px;
}

.interprofessionell__feat-copy {
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
}

.interprofessionell__feat-title {
	display: inline;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

a.interprofessionell__feat-title:hover,
a.interprofessionell__feat-title:focus {
	color: #ffd4d4;
}

.interprofessionell__feat-text {
	display: inline;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.78);
}

.interprofessionell__feat-text::before {
	content: " / ";
	color: rgba(255, 255, 255, 0.45);
}

@media screen and (max-width: 1160px) {
	.interprofessionell {
		padding: 40px 0 36px;
	}
	.interprofessionell__title {
		font-size: 34px;
	}
	.interprofessionell__headline {
		font-size: 19px;
	}
	.interprofessionell__main {
		gap: 28px;
	}
	.interprofessionell__intro {
		width: 30%;
		flex-basis: 30%;
		padding-top: 12px;
	}
	.interprofessionell__tile {
		min-height: 190px;
		padding: 22px 16px 32px;
	}
	.interprofessionell__bar {
		padding: 22px 24px;
		gap: 18px;
	}
}

@media screen and (max-width: 900px) {
	.interprofessionell__main {
		flex-direction: column;
		gap: 28px;
	}
	.interprofessionell__intro {
		width: 100%;
		flex-basis: auto;
		padding: 0;
	}
	.interprofessionell__lead {
		max-width: 32em;
	}
	.interprofessionell__bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		padding: 22px 22px;
	}
	.interprofessionell__feat {
		flex: 1 1 auto;
		width: 100%;
	}
}

@media screen and (max-width: 560px) {
	.interprofessionell {
		padding: 32px 0 28px;
	}
	.interprofessionell__title {
		font-size: 28px;
	}
	.interprofessionell__headline {
		font-size: 18px;
	}
	.interprofessionell__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.interprofessionell__tile {
		min-height: 0;
		padding: 22px 18px 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.interprofessionell__tile,
	.interprofessionell__more-arrow,
	.interprofessionell__tile-arrow {
		transition: none;
	}
	.interprofessionell__tile:hover,
	.interprofessionell__tile:focus-within {
		transform: none;
	}
	.interprofessionell__intro.ip-departure .ip-departure__char {
		opacity: 1;
		filter: none;
		transition: none;
	}
	.interprofessionell__intro.ip-departure .ip-departure__scan {
		display: none;
	}
	.interprofessionell__intro.ip-departure--done .ip-departure__char {
		transition: none;
	}
}
