/*
 * Contact page only. Loaded for the page slug kontakt.
 * Namespace: .sdp-contact
 */

.sdp-contact-page .site-content {
	background: #f4f6f8;
}

.sdp-contact {
	--sdp-accent: #e5322c;
	--sdp-accent-dark: #c42822;
	--sdp-navy: #16325c;
	--sdp-ink: #1c2430;
	--sdp-muted: #5c6370;
	--sdp-line: #e4e8ee;
	--sdp-empty: #e7ebef;
	color: var(--sdp-ink);
	padding: 8px 0 64px;
}

.sdp-contact * {
	box-sizing: border-box;
}

.sdp-contact img {
	display: block;
	max-width: 100%;
}

.sdp-contact-icon {
	display: block;
	height: 22px;
	width: 22px;
}

.sdp-contact-hero {
	background: #ffffff;
	border-radius: 16px;
	display: grid;
	grid-template-columns: minmax(200px, 36%) minmax(0, 1fr);
	min-height: 360px;
	overflow: hidden;
	position: relative;
}

.sdp-contact-hero__photo {
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
	width: 100%;
}

.sdp-contact-hero__photo--empty {
	background: var(--sdp-empty);
	grid-column: 2;
	min-height: 320px;
}

.sdp-contact-hero--has-photo .sdp-contact-hero__photo {
	inset: 0;
	position: absolute;
}

.sdp-contact-hero__shade {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 34%, rgba(255, 255, 255, 0) 62%);
	inset: 0;
	position: absolute;
}

.sdp-contact-hero__copy {
	display: flex;
	flex-direction: column;
	grid-column: 1;
	justify-content: center;
	padding: 40px 24px 40px 40px;
	position: relative;
	z-index: 1;
}

.sdp-contact-hero__title,
.sdp-contact-title {
	color: var(--sdp-navy);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin: 0 0 14px;
}

.sdp-contact-hero__title {
	font-size: 2.5rem;
	max-width: 10em;
}

.sdp-contact-title {
	font-size: 1.7rem;
}

.sdp-contact-title::after {
	background: var(--sdp-accent);
	border-radius: 2px;
	content: "";
	display: block;
	height: 3px;
	margin-top: 12px;
	width: 48px;
}

.sdp-contact-hero__copy p,
.sdp-contact-lead {
	color: #3a4048;
	font-size: 1.05rem;
	line-height: 1.55;
	margin: 0 0 18px;
	max-width: 22rem;
}

.sdp-contact-facts {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 28px;
}

.sdp-contact-card {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(20, 24, 32, 0.06);
	min-width: 0;
	padding: 22px 18px 20px;
}

.sdp-contact-card__icon {
	align-items: center;
	background: var(--sdp-accent);
	border-radius: 50%;
	color: #ffffff;
	display: inline-flex;
	height: 48px;
	justify-content: center;
	margin-bottom: 14px;
	width: 48px;
}

.sdp-contact-card h2 {
	color: var(--sdp-navy);
	font-size: 1.05rem;
	margin: 0 0 8px;
}

.sdp-contact-card p,
.sdp-contact-card address {
	color: #3a4048;
	font-size: 15px;
	font-style: normal;
	line-height: 1.5;
	margin: 0;
}

.sdp-contact-card a {
	color: var(--sdp-navy);
	font-weight: 700;
	text-decoration: none;
}

.sdp-contact-card a:hover,
.sdp-contact-card a:focus-visible {
	color: var(--sdp-accent);
}

.sdp-contact-split {
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin-top: 36px;
}

.sdp-contact-panel {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(20, 24, 32, 0.06);
	min-width: 0;
	padding: 32px 28px;
}

.sdp-contact-note {
	border-radius: 10px;
	font-size: 15px;
	line-height: 1.45;
	margin: 0 0 16px;
	padding: 12px 14px;
}

.sdp-contact-note--ok {
	background: #eef8f0;
	color: #176334;
}

.sdp-contact-note--bad {
	background: #fdecec;
	color: #9d1c1c;
}

.sdp-contact-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: relative;
}

.sdp-contact-hp {
	height: 0;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.sdp-contact-field label {
	color: var(--sdp-navy);
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 6px;
}

.sdp-contact-field label span {
	color: var(--sdp-muted);
	font-weight: 500;
}

.sdp-contact-field input,
.sdp-contact-field textarea {
	background: #ffffff;
	border: 1px solid var(--sdp-line);
	border-radius: 8px;
	color: var(--sdp-ink);
	font: inherit;
	padding: 12px 14px;
	width: 100%;
}

.sdp-contact-field textarea {
	min-height: 140px;
	resize: vertical;
}

.sdp-contact-field input:focus,
.sdp-contact-field textarea:focus {
	border-color: var(--sdp-accent);
	outline: 2px solid rgba(229, 50, 44, 0.25);
	outline-offset: 1px;
}

.sdp-contact-field input[aria-invalid="true"],
.sdp-contact-field textarea[aria-invalid="true"] {
	border-color: #b42318;
}

.sdp-contact-field__error {
	color: #9d1c1c;
	font-size: 13px;
	margin: 6px 0 0;
}

.sdp-contact-btn {
	align-self: flex-start;
	background: var(--sdp-accent);
	border: 0;
	border-radius: 8px;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	padding: 13px 20px;
}

.sdp-contact-btn:hover,
.sdp-contact-btn:focus-visible {
	background: var(--sdp-accent-dark);
}

.sdp-contact-map {
	border-radius: 14px;
	overflow: hidden;
	position: relative;
}

.sdp-contact-map iframe {
	border: 0;
	display: block;
	height: 360px;
	width: 100%;
}

.sdp-contact-map__note {
	color: var(--sdp-muted);
	font-size: 13.5px;
	line-height: 1.45;
	margin: 12px 0 8px;
}

.sdp-contact-map__open {
	color: var(--sdp-accent);
	font-weight: 700;
	text-decoration: none;
}

.sdp-contact-map__open:hover,
.sdp-contact-map__open:focus-visible {
	color: var(--sdp-accent-dark);
}

.sdp-contact-extra {
	margin-top: 36px;
}

.sdp-contact-extra__grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.sdp-contact-extra__grid li {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(20, 24, 32, 0.06);
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 22px 16px;
	text-align: center;
}

.sdp-contact-extra__icon {
	align-items: center;
	background: var(--sdp-accent);
	border-radius: 50%;
	color: #ffffff;
	display: inline-flex;
	height: 52px;
	justify-content: center;
	margin: 0 auto 4px;
	width: 52px;
}

.sdp-contact-extra__grid strong {
	color: var(--sdp-navy);
	line-height: 1.3;
}

.sdp-contact-extra__grid li span {
	color: var(--sdp-muted);
	font-size: 14px;
	line-height: 1.45;
}

@media (max-width: 1100px) {
	.sdp-contact-hero__title {
		font-size: 2.05rem;
	}
}

@media (max-width: 980px) {
	.sdp-contact-facts,
	.sdp-contact-extra__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 921px) {
	.sdp-contact-hero,
	.sdp-contact-split {
		grid-template-columns: 1fr;
	}

	.sdp-contact-hero {
		min-height: 0;
		padding: 28px 22px 0;
	}

	.sdp-contact-hero__copy {
		padding: 0 0 4px;
	}

	.sdp-contact-hero__shade {
		display: none;
	}

	.sdp-contact-hero--has-photo .sdp-contact-hero__photo {
		aspect-ratio: 16 / 9;
		grid-row: 2;
		height: auto;
		inset: auto;
		margin: 18px -22px 0;
		max-width: none;
		position: relative;
		width: calc(100% + 44px);
	}

	.sdp-contact-panel {
		padding: 26px 20px;
	}
}

@media (max-width: 560px) {
	.sdp-contact {
		padding-bottom: 40px;
	}

	.sdp-contact-hero__title {
		font-size: 1.7rem;
	}

	.sdp-contact-facts,
	.sdp-contact-extra__grid {
		grid-template-columns: 1fr;
	}

	.sdp-contact-map iframe {
		height: 260px;
	}

	.sdp-contact-btn {
		width: 100%;
	}
}
