/* ==========================================================================
   Block: Kontakt & Anfrage (kolschen/contact) – Plugin „Kolschen Anfragen“
   ========================================================================== */

.kol-contact {
	--_dark: var(--kol-color-dunkelblau, #20305a);
	--_green: var(--kol-color-limette, #75a72c);
	--_green-dark: var(--kol-color-limette-dark, #648f25);
	--_mid: var(--kol-color-mittelblau, #254f9e);
	--_ice: var(--kol-color-eisblau, #6ea8db);
	--_text: var(--kol-color-text-muted, #4a5b85);
	--_line: #e4e8f0;
	--_input-line: #cfd6e3;
	--_input-bg: #f7f9fc;
	--_surface: var(--kol-color-surface, #f3f5f9);
	--_error: #b32d2e;
	--_font-display: var(--kol-font-display, "Jackson MN", "Archivo Black", Impact, sans-serif);
	--_font-body: var(--kol-font-body, "Titillium Web", system-ui, sans-serif);
	--_container: var(--kol-container-narrow, 992px);
	--_gutter: var(--kol-gutter, clamp(1.25rem, 4vw, 2rem));
	--_ease: cubic-bezier(0.2, 0.7, 0.2, 1);

	padding-block: clamp(1.25rem, 3vw, 2rem) clamp(3.5rem, 7vw, 5rem);
	background-color: var(--_surface);
	color: var(--_dark);
	font-family: var(--_font-body);
}

.kol-contact.alignfull {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.kol-contact *,
.kol-contact *::before,
.kol-contact *::after {
	box-sizing: border-box;
}

.kol-contact--shortcode {
	padding: 0;
	background: none;
}

/* Layout ----------------------------------------------------------------- */

.kol-contact__inner {
	display: grid;
	gap: clamp(2rem, 4vw, 2.5rem);
	align-items: start;
	width: min(100% - 2 * var(--_gutter), var(--_container));
	margin-inline: auto;
}

@media (min-width: 900px) {
	.kol-contact__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.kol-contact__intro {
		padding-top: clamp(0.5rem, 1vw, 0.75rem);
	}
}

.kol-contact__card {
	border: 1px solid var(--_line);
	background-color: #fff;
}

/* Linke Spalte ----------------------------------------------------------- */

.kol-contact__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
	color: var(--_mid);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.kol-contact__eyebrow::before {
	content: "";
	width: 1.75rem;
	height: 2px;
	background-color: var(--_green);
}

.kol-contact .kol-contact__headline {
	margin: 0 0 1.5rem;
	color: var(--_dark);
	font-family: var(--_font-display);
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.kol-contact__text {
	max-width: 23.5rem;
	margin: 0 0 2rem;
	color: var(--_text);
	font-size: 0.9375rem;
	line-height: 1.7;
}

/* Ansprechpartner -------------------------------------------------------- */

.kol-contact__person {
	display: flex;
	gap: 1.25rem;
	padding: 1.25rem;
}

.kol-contact__person-photo {
	flex: 0 0 auto;
	align-self: flex-start;
	width: clamp(6.5rem, 14vw, 8rem);
	aspect-ratio: 5 / 6;
	overflow: hidden;
	background-color: var(--_surface);
}

.kol-contact__person-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kol-contact__person-body {
	min-width: 0;
	font-size: 0.8125rem;
	line-height: 1.55;
}

.kol-contact__person-body p {
	margin: 0;
}

.kol-contact__person-eyebrow {
	color: var(--_mid);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.kol-contact .kol-contact__person-name {
	margin: 0.125rem 0 0.25rem;
	color: var(--_dark);
	font-family: var(--_font-display);
	font-size: 1.25rem;
	line-height: 1.2;
}

.kol-contact__person-role {
	margin-bottom: 1rem;
	color: var(--_text);
}

.kol-contact__person-list {
	display: grid;
	gap: 0.3rem;
	margin: 1rem 0;
	padding: 0;
	color: var(--_text);
	list-style: none;
}

.kol-contact__person-list li {
	margin: 0;
}

.kol-contact__person-list .is-strong {
	font-weight: 700;
}

.kol-contact .kol-contact__person-list a {
	color: var(--_dark);
	text-decoration: none;
	transition: color 0.2s ease;
}

.kol-contact .kol-contact__person-list a:hover,
.kol-contact .kol-contact__person-list a:focus-visible {
	color: var(--_mid);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.kol-contact__person-address {
	color: var(--_text);
}

/* Formular --------------------------------------------------------------- */

.kol-contact__card--form {
	padding: clamp(1.25rem, 3vw, 1.5rem) clamp(1.25rem, 3vw, 1.5rem) 1.75rem;
}

.kol-contact__form {
	margin: 0;
}

.kol-contact__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.4rem 1rem;
}

.kol-contact__field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.kol-contact__field--full {
	grid-column: 1 / -1;
}

@media (max-width: 559px) {
	.kol-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.kol-contact__field > label {
	margin-bottom: 0.5rem;
	color: var(--_dark);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
}

.kol-contact__req {
	color: var(--_mid);
}

.kol-contact .kol-contact__field input[type="text"],
.kol-contact .kol-contact__field input[type="email"],
.kol-contact .kol-contact__field input[type="tel"],
.kol-contact .kol-contact__field select,
.kol-contact .kol-contact__field textarea {
	width: 100%;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--_input-line);
	border-radius: 0;
	background-color: var(--_input-bg);
	color: var(--_dark);
	font-family: var(--_font-body);
	font-size: 0.9375rem;
	line-height: 1.4;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.kol-contact .kol-contact__field textarea {
	min-height: 9rem;
	resize: vertical;
}

.kol-contact .kol-contact__field select {
	padding-right: 2.5rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2320305a' d='M7.4 8.6 12 13.2l4.6-4.6L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
	background-position: right 0.75rem center;
	background-repeat: no-repeat;
	background-size: 1.25rem;
	cursor: pointer;
}

.kol-contact .kol-contact__field input:hover,
.kol-contact .kol-contact__field select:hover,
.kol-contact .kol-contact__field textarea:hover {
	border-color: var(--_ice);
}

.kol-contact .kol-contact__field input:focus,
.kol-contact .kol-contact__field select:focus,
.kol-contact .kol-contact__field textarea:focus {
	border-color: var(--_mid);
	background-color: #fff;
	box-shadow: 0 0 0 3px rgb(110 168 219 / 0.35);
	outline: none;
}

.kol-contact .kol-contact__field.has-error input,
.kol-contact .kol-contact__field.has-error select,
.kol-contact .kol-contact__field.has-error textarea,
.kol-contact .kol-contact__field.has-error .kol-contact__file {
	border-color: var(--_error);
}

.kol-contact__error {
	margin: 0.375rem 0 0;
	color: var(--_error);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
}

.kol-contact__hint {
	margin: 0.5rem 0 0;
	color: var(--_text);
	font-size: 0.75rem;
	line-height: 1.4;
	opacity: 0.85;
}

/* Datei-Upload: natives Input liegt unsichtbar über der ganzen Fläche */
.kol-contact__file {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.875rem;
	min-height: 3.375rem;
	padding: 0.5rem;
	border: 1px solid var(--_input-line);
	background-color: var(--_input-bg);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kol-contact .kol-contact__file-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.kol-contact__file-button {
	flex: 0 0 auto;
	padding: 0.6rem 0.875rem;
	background-color: var(--_dark);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color 0.2s ease;
}

.kol-contact__file-name {
	overflow: hidden;
	color: var(--_text);
	font-size: 0.875rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kol-contact__file:hover {
	border-color: var(--_ice);
}

.kol-contact__file:hover .kol-contact__file-button {
	background-color: var(--_mid);
}

.kol-contact__file:focus-within {
	border-color: var(--_mid);
	box-shadow: 0 0 0 3px rgb(110 168 219 / 0.35);
}

/* Honeypot */
.kol-contact__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Datenschutz + Absenden ------------------------------------------------- */

.kol-contact__privacy {
	margin: 1.5rem 0 0;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--_line);
	color: var(--_text);
	font-size: 0.8125rem;
	line-height: 1.6;
}

.kol-contact .kol-contact__privacy a {
	color: var(--_mid);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.kol-contact .kol-contact__privacy a:hover {
	color: var(--_dark);
}

.kol-contact__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
}

.kol-contact__response {
	max-width: 11rem;
	margin: 0;
	color: var(--_text);
	font-size: 0.75rem;
	line-height: 1.5;
	opacity: 0.85;
}

.kol-contact .kol-contact__submit,
.kol-contact .kol-contact__submit:focus {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	min-height: 3rem;
	margin-left: auto;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 0;
	background-color: var(--_green);
	color: #fff;
	font-family: var(--_font-body);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.kol-contact .kol-contact__submit:hover {
	background-color: var(--_green-dark);
	color: #fff;
}

.kol-contact .kol-contact__submit:focus-visible {
	outline: 3px solid var(--_ice);
	outline-offset: 3px;
}

.kol-contact__submit-arrow {
	display: inline-block;
	font-size: 1.125rem;
	transition: transform 0.3s var(--_ease);
}

.kol-contact__submit:hover .kol-contact__submit-arrow {
	transform: translateX(4px);
}

/* Sendezustand */
.kol-contact__form.is-sending .kol-contact__submit {
	cursor: progress;
	opacity: 0.75;
}

.kol-contact__form.is-sending .kol-contact__submit-arrow {
	animation: kol-contact-pulse 0.9s ease-in-out infinite;
}

@keyframes kol-contact-pulse {
	50% { transform: translateX(6px); }
}

/* Statusmeldungen -------------------------------------------------------- */

.kol-contact__status {
	margin: 0 0 1.25rem;
	padding: 0.875rem 1rem;
	border-left: 4px solid var(--_green);
	background-color: #eef5e4;
	color: var(--_dark);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.5;
}

.kol-contact__status.is-error {
	border-left-color: var(--_error);
	background-color: #fbeaea;
}

.kol-contact__status:focus {
	outline: none;
}

.kol-contact__success {
	padding: 2rem 0.5rem;
	text-align: center;
}

.kol-contact__success-icon {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background-color: var(--_green);
}

.kol-contact__success-icon svg {
	width: 1.75rem;
	height: 1.75rem;
	fill: #fff;
}

.kol-contact__success p {
	max-width: 26rem;
	margin: 0 auto;
	color: var(--_dark);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.6;
}

.kol-contact__success:focus {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.kol-contact *,
	.kol-contact *::before,
	.kol-contact *::after {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}
}
