/* WWS Kontakte – Kacheln */

.wws-kontakte {
	--wws-blau: #38537f;
	--wws-kachel: #d9d9d9;
	--wws-text: #333;
	--wws-bildhoehe: 220px;
	--wws-schatten: 0 2px 8px rgba(0, 0, 0, 0.18);
	--wws-schatten-hover: 0 8px 20px rgba(0, 0, 0, 0.25);
	--wws-graustufen: 100%;
	--wws-graustufen-hover: 0%;
	--wws-tempo: 0.35s;
	--wws-hub: 0px;
}

.wws-kontakte-titel {
	margin: 40px 0 20px;
	font-size: 30px;
	line-height: 1.2;
	color: var(--wws-text);
}

.wws-kontakte-titel strong,
.wws-kontakte-titel b {
	color: var(--wws-blau);
}

.wws-kontakte-abteilung {
	margin: 30px 0 20px;
	font-size: 20px;
	font-weight: 400;
	color: var(--wws-text);
}

.wws-kontakte-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}

.wws-kontakte-cols-1 .wws-kontakte-grid {
	grid-template-columns: minmax(0, 1fr);
}

.wws-kontakte-cols-3 .wws-kontakte-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wws-kontakte .wws-kontakt-kachel {
	display: flex !important;
	flex-direction: row;
	align-items: stretch;
	background: var(--wws-kachel);
	height: var(--wws-bildhoehe) !important;
	min-height: var(--wws-bildhoehe);
	max-height: var(--wws-bildhoehe);
	overflow: hidden;
	box-shadow: var(--wws-schatten) !important;
	transition: box-shadow var(--wws-tempo) ease, transform var(--wws-tempo) ease;
}

.wws-kontakte .wws-kontakt-kachel:hover,
.wws-kontakte .wws-kontakt-kachel:focus-within {
	box-shadow: var(--wws-schatten-hover) !important;
	transform: translateY(calc(-1 * var(--wws-hub)));
}

.wws-kontakte .wws-kontakt-bild {
	flex: 0 0 42%;
	max-width: 42%;
	height: var(--wws-bildhoehe) !important;
	background: #cfcfcf;
	overflow: hidden;
}

.wws-kontakte .wws-kontakt-bild img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: top center;
	filter: grayscale(var(--wws-graustufen)) !important;
	transition: filter var(--wws-tempo) ease !important;
}

.wws-kontakte .wws-kontakt-kachel:hover .wws-kontakt-bild img,
.wws-kontakte .wws-kontakt-kachel:focus-within .wws-kontakt-bild img,
.wws-kontakte .wws-kontakt-bild:hover img {
	filter: grayscale(var(--wws-graustufen-hover)) !important;
}

.wws-kontakt-bild.is-platzhalter {
	background: var(--wws-kachel);
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.wws-kontakte .wws-kontakt-bild.is-platzhalter img {
	width: auto !important;
	max-width: 100% !important;
	height: 72% !important;
	margin: 0 auto;
	object-fit: contain;
	object-position: bottom center;
	filter: none !important;
	opacity: 1;
}

.wws-kontakt-info {
	flex: 1 1 auto;
	padding: 18px 20px;
	min-width: 0;
	overflow: hidden;
}

.wws-kontakt-name {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--wws-blau);
	text-transform: uppercase;
}

.wws-kontakt-position {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--wws-text);
}

.wws-kontakt-daten {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	color: var(--wws-text);
}

.wws-kontakt-daten span {
	display: flex;
	align-items: center;
	gap: 6px;
	word-break: break-word;
}

.wws-kontakt-daten svg {
	flex: 0 0 auto;
	color: var(--wws-blau);
}

.wws-kontakt-daten a {
	color: inherit;
	text-decoration: none;
}

.wws-kontakt-daten a:hover {
	color: var(--wws-blau);
}

@media only screen and (max-width: 900px) {
	.wws-kontakte-grid,
	.wws-kontakte-cols-3 .wws-kontakte-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media only screen and (max-width: 480px) {
	.wws-kontakte .wws-kontakt-kachel {
		flex-direction: column;
		height: auto !important;
		max-height: none;
	}

	.wws-kontakte .wws-kontakt-bild {
		height: var(--wws-bildhoehe) !important;
	}

	.wws-kontakte .wws-kontakt-bild {
		flex: 0 0 auto;
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wws-kontakt-kachel,
	.wws-kontakt-bild img {
		transition: none;
	}
}
