/**
 * H&C Anfragen – Frontend
 */

.hc-anf,
.hc-anf-contact,
.hc-anf-module {
	--hc-anf-accent: #e9e93c;
	--hc-anf-accent-hover: #f4f45c;
	--hc-anf-petrol: #2f7c80;
	--hc-anf-ink: #12232a;
	--hc-anf-label: #6b7a7d;
	--hc-anf-field-bg: #f2f6f6;
	--hc-anf-border: #e3ebea;
	--hc-anf-card-bg: #eef4f3;
	--hc-anf-radius: 16px;
	--hc-anf-field-radius: 10px;
}

.hc-anf *,
.hc-anf-contact *,
.hc-anf-module * {
	box-sizing: border-box;
}

/* -------------------------------------------------
   Zweispaltiges Modul
   ------------------------------------------------- */

.hc-anf-module {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
}

.hc-anf-module--left .hc-anf-module__form {
	order: 2;
}

.hc-anf-module--left .hc-anf-module__aside {
	order: 1;
}

.hc-anf-module__form,
.hc-anf-module__aside {
	min-width: 0;
}

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

.hc-anf__form {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	border: 1px solid var(--hc-anf-border);
	border-radius: var(--hc-anf-radius);
	background-color: #fff;
}

.hc-anf__row {
	margin-block-end: clamp(1rem, 2vw, 1.25rem);
}

.hc-anf__row--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.hc-anf__field {
	margin: 0;
	min-width: 0;
}

.hc-anf__label {
	display: block;
	margin-block-end: 0.4rem;
	color: var(--hc-anf-label);
	font-size: 0.9375rem;
	line-height: 1.3;
}

.hc-anf__input,
.hc-anf__textarea,
.hc-anf__select {
	display: block;
	width: 100%;
	padding: 0.85em 1em;
	border: 1px solid transparent;
	border-radius: var(--hc-anf-field-radius);
	background-color: var(--hc-anf-field-bg);
	color: var(--hc-anf-ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color 160ms ease, background-color 160ms ease;
}

.hc-anf__textarea {
	min-height: 11rem;
	resize: vertical;
}

.hc-anf__select {
	appearance: none;
	padding-inline-end: 2.5em;

	/* Pfeil als Hintergrundgrafik, damit kein Extra-Markup nötig ist. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%2312232a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1em center;
	cursor: pointer;
}

.hc-anf__input:focus,
.hc-anf__textarea:focus,
.hc-anf__select:focus {
	border-color: var(--hc-anf-petrol);
	background-color: #fff;
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.hc-anf__input:focus-visible,
.hc-anf__textarea:focus-visible,
.hc-anf__select:focus-visible {
	outline-color: var(--hc-anf-petrol);
}

/* -------------------------------------------------
   Datei
   ------------------------------------------------- */

.hc-anf__file {
	display: block;
	width: 100%;
	padding: 0.7em 1em;
	border: 1px dashed var(--hc-anf-border);
	border-radius: var(--hc-anf-field-radius);
	background-color: var(--hc-anf-field-bg);
	font: inherit;
	font-size: 0.9375rem;
	cursor: pointer;
}

.hc-anf__file::file-selector-button {
	margin-inline-end: 0.75rem;
	padding: 0.5em 1em;
	border: 0;
	border-radius: 999px;
	background-color: var(--hc-anf-ink);
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.hc-anf__hint {
	display: block;
	margin-block-start: 0.4rem;
	color: var(--hc-anf-label);
	font-size: 0.8125rem;
	line-height: 1.4;
}

/* -------------------------------------------------
   Zustimmung
   ------------------------------------------------- */

.hc-anf__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	color: var(--hc-anf-label);
	font-size: 0.9375rem;
	line-height: 1.5;
	cursor: pointer;
}

.hc-anf__consent input {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin-block-start: 0.1rem;
	accent-color: var(--hc-anf-petrol);
}

.hc-anf__consent a {
	color: var(--hc-anf-petrol);
	text-underline-offset: 3px;
}

/* Honeypot: aus dem Blickfeld, aber nicht display:none –
   sonst füllen manche Bots es gezielt nicht aus. */
.hc-anf__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* -------------------------------------------------
   Absenden
   ------------------------------------------------- */

.hc-anf__actions {
	margin-block-start: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Hinweissatz statt Checkbox – steht direkt über dem Button. */
.hc-anf__privacy {
	max-width: 34rem;
	margin: 0 0 1rem;
	color: var(--hc-anf-label);
	font-size: 0.875rem;
	line-height: 1.6;
}

.hc-anf__privacy a {
	color: var(--hc-anf-petrol);
	text-underline-offset: 3px;
}

.hc-anf__submit {
	display: inline-flex;
	align-items: center;
	padding: 0.95em 1.8em;
	border: 0;
	border-radius: 999px;
	background-color: var(--hc-anf-accent);
	color: var(--hc-anf-ink);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 200ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.hc-anf__submit:hover,
.hc-anf__submit:focus-visible {
	background-color: var(--hc-anf-accent-hover);
	box-shadow: 0 10px 24px rgb(18 35 42 / 18%);
	transform: translateY(-2px);
}

.hc-anf__submit:disabled {
	opacity: 0.6;
	cursor: progress;
	transform: none;
	box-shadow: none;
}

.hc-anf__submit:focus-visible {
	outline: 2px solid var(--hc-anf-ink);
	outline-offset: 3px;
}

/* -------------------------------------------------
   Meldungen
   ------------------------------------------------- */

.hc-anf__notice {
	margin-block-end: 1.25rem;
	padding: 1rem 1.25rem;
	border-radius: var(--hc-anf-field-radius);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.hc-anf__notice p {
	margin: 0 0 0.35rem;
}

.hc-anf__notice ul {
	margin: 0;
	padding-inline-start: 1.25rem;
}

.hc-anf__notice--success {
	background-color: #e6f4ea;
	color: #14532d;
}

.hc-anf__notice--error {
	background-color: #fdecec;
	color: #7f1d1d;
}

/* -------------------------------------------------
   Kontaktkarte
   ------------------------------------------------- */

.hc-anf-contact {
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 2vw, 1.5rem);
}

.hc-anf-contact__card {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--hc-anf-radius);
	background-color: var(--hc-anf-card-bg);
	color: var(--hc-anf-ink);
}

.hc-anf-contact__name {
	margin: 0 0 1rem;
	font-size: clamp(1.125rem, 1.6vw, 1.375rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.hc-anf-contact__address {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	font-style: normal;
	line-height: 1.7;
}

.hc-anf-contact__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hc-anf-contact__list li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-block-end: 0.65rem;
}

.hc-anf-contact__list li:last-child {
	margin-bottom: 0;
}

.hc-anf-contact__list svg {
	flex: 0 0 auto;
	color: var(--hc-anf-petrol);
}

.hc-anf-contact__list a {
	color: var(--hc-anf-ink);
	text-decoration: none;
}

.hc-anf-contact__list a:hover,
.hc-anf-contact__list a:focus-visible {
	color: var(--hc-anf-petrol);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hc-anf-contact__hours {
	margin-block-start: 1.5rem;
	padding-block-start: 1.25rem;
	border-block-start: 1px solid rgb(18 35 42 / 12%);
}

.hc-anf-contact__hours-label {
	margin: 0 0 0.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.hc-anf-contact__hours-text {
	margin: 0;
	color: #5d6b70;
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* -------------------------------------------------
   Karte
   ------------------------------------------------- */

.hc-anf-map {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--hc-anf-radius);
	background-color: #e7eeee;
}

.hc-anf-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.hc-anf-map__placeholder {
	display: flex;
	height: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	text-align: center;
}

.hc-anf-map__text {
	max-width: 26rem;
	margin: 0;
	color: #5d6b70;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.hc-anf-map__btn {
	padding: 0.75em 1.5em;
	border: 0;
	border-radius: 999px;
	background-color: var(--hc-anf-ink);
	color: #fff;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 180ms ease;
}

.hc-anf-map__btn:hover,
.hc-anf-map__btn:focus-visible {
	background-color: var(--hc-anf-petrol);
}

.hc-anf-map__link {
	color: #5d6b70;
	font-size: 0.875rem;
	text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

	.hc-anf__submit,
	.hc-anf-map__btn {
		transition: none;
	}

	.hc-anf__submit:hover,
	.hc-anf__submit:focus-visible {
		transform: none;
	}
}

/* -------------------------------------------------
   Schmale Viewports
   ------------------------------------------------- */

@media (max-width: 900px) {

	.hc-anf-module,
	.hc-anf-module--left {
		grid-template-columns: 1fr;
	}

	.hc-anf-module__form,
	.hc-anf-module--left .hc-anf-module__form {
		order: 1;
	}

	.hc-anf-module__aside,
	.hc-anf-module--left .hc-anf-module__aside {
		order: 2;
	}
}

@media (max-width: 600px) {

	.hc-anf__row--two {
		grid-template-columns: 1fr;
	}

	.hc-anf__submit {
		width: 100%;
		justify-content: center;
	}
}
