/**
 * Anfrageformular: Knopfreihe „Worum geht es?“, Service-Hinweis, Meldungen,
 * Broschürenblock, Vorwahlliste und Widget-Panel.
 */

#eazyclean-seo-contact-form {
	scroll-margin-top: 96px;
}

/* ── Knopfreihe ─────────────────────────────────────────────── */

.ec-anfrage-wahl {
	border: 0;
	margin: 0 0 16px;
	padding: 0;
	min-width: 0;
	text-align: start;
}

.ec-anfrage-wahl__frage {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0 0 10px;
	font-family: var(--ec-font-heading, 'Outfit', sans-serif);
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

.ec-anfrage-wahl__pflicht {
	color: #00d3f2;
}

.ec-anfrage-wahl__knoepfe {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ec-anfrage-knopf {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.ec-anfrage-knopf__eingabe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.ec-anfrage-knopf__flaeche {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	height: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--ec-font-body, 'Inter', sans-serif);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-align: start;
	hyphens: manual;
	overflow-wrap: break-word;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ec-anfrage-knopf__symbol {
	flex-shrink: 0;
	color: #00d3f2;
	transition: color 0.2s ease;
}

.ec-anfrage-knopf:hover .ec-anfrage-knopf__flaeche {
	border-color: rgba(0, 211, 242, 0.45);
	background: rgba(0, 211, 242, 0.06);
}

.ec-anfrage-knopf__eingabe:checked + .ec-anfrage-knopf__flaeche {
	border-color: #00d3f2;
	background: rgba(0, 211, 242, 0.14);
	color: #fff;
	box-shadow: inset 0 0 0 1px #00d3f2, 0 0 18px rgba(0, 211, 242, 0.15);
}

.ec-anfrage-knopf__eingabe:checked + .ec-anfrage-knopf__flaeche .ec-anfrage-knopf__symbol {
	color: #fff;
}

.ec-anfrage-knopf__eingabe:focus-visible + .ec-anfrage-knopf__flaeche {
	outline: 2px solid #00d3f2;
	outline-offset: 2px;
}

/* Kompakt im Widget */
.ec-anfrage-wahl--kompakt {
	margin-bottom: 12px;
}

.ec-anfrage-wahl--kompakt .ec-anfrage-wahl__frage {
	font-size: 13px;
	margin-bottom: 8px;
}

.ec-anfrage-wahl--kompakt .ec-anfrage-wahl__knoepfe {
	gap: 6px;
}

.ec-anfrage-wahl--kompakt .ec-anfrage-knopf__flaeche {
	min-height: 44px;
	padding: 7px 10px;
	gap: 8px;
	border-radius: 10px;
	font-size: 12.5px;
}

.ec-anfrage-wahl--kompakt .ec-anfrage-knopf__symbol {
	width: 16px;
	height: 16px;
}

/* ── Service-Hinweis ────────────────────────────────────────── */

.ec-anfrage-service__inhalt:not([hidden]) {
	display: block;
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid rgba(0, 211, 242, 0.3);
	border-radius: 12px;
	background: rgba(0, 211, 242, 0.07);
	text-align: start;
	animation: ecAnfrageEin 0.25s ease;
}

.ec-anfrage .ec-anfrage-service .ec-anfrage-service__inhalt p,
.ec-anfrage .ec-anfrage-service .ec-anfrage-service__links {
	text-align: start;
}

.ec-anfrage-service__titel {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.ec-anfrage-service__text {
	margin: 0 0 10px;
	font-size: 13.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}

.ec-anfrage-service__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.ec-anfrage-service a.ec-anfrage-service__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0 14px;
	border: 1px solid rgba(0, 211, 242, 0.45);
	border-radius: 9999px;
	color: #00d3f2;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ec-anfrage-service a.ec-anfrage-service__link:hover,
.ec-anfrage-service a.ec-anfrage-service__link:focus-visible {
	background: rgba(0, 211, 242, 0.15);
	color: #fff;
	text-decoration: none;
}

.ec-anfrage-service__hotline {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}

.ec-anfrage-service__nummer {
	white-space: nowrap;
	color: #fff;
}

.ec-anfrage-service__weiter {
	margin: 0;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.6);
}

.ec-anfrage-wahl--kompakt + .ec-anfrage-service .ec-anfrage-service__inhalt:not([hidden]) {
	margin-bottom: 12px;
	padding: 12px;
}

.ec-anfrage-wahl--kompakt + .ec-anfrage-service .ec-anfrage-service__text {
	font-size: 12.5px;
	margin-bottom: 8px;
}

.ec-anfrage-wahl--kompakt + .ec-anfrage-service a.ec-anfrage-service__link {
	padding: 0 12px;
	font-size: 12.5px;
}

/* ── Meldungen ──────────────────────────────────────────────── */

.eazyclean-seo-form-error .ec-formular-meldung {
	margin: 0 0 6px;
}

.ec-formular-ausweg {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
}

.ec-formular-ausweg + .ec-formular-ausweg {
	margin-top: 6px;
}

.ec-formular-ausweg a,
.ec-broschuere-link-klein {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.eazyclean-seo-form-error.is-hinweis {
	color: #a5eef9;
	background: rgba(0, 211, 242, 0.08);
	border-color: rgba(0, 211, 242, 0.3);
}

/* ── Broschüre ──────────────────────────────────────────────── */

.ec-broschuere-groesse {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
}

.ec-broschuere-hinweis {
	margin-bottom: 1rem;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.65);
}

.ec-broschuere-pruefung {
	display: flex;
	justify-content: center;
	margin-bottom: 0.75rem;
}

.ec-broschuere .eazyclean-seo-form-success p {
	margin: 0 0 12px;
}

.ec-broschuere-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	text-decoration: none;
}

/* ── Vorwahlliste: Tastaturfokus ────────────────────────────── */

.eazyclean-seo-phone-code-item:focus {
	outline: none;
	background: rgba(0, 211, 242, 0.18);
	color: #fff;
}

.eazyclean-seo-phone-code-item:focus-visible {
	outline: 2px solid #00d3f2;
	outline-offset: -2px;
}

.eazyclean-seo-phone-code-toggle:focus-visible {
	outline: 2px solid #00d3f2;
	outline-offset: 2px;
}

/* ── Vorwahl in RTL: Ecken und Liste spiegeln ───────────────── */

[dir="rtl"] .eazyclean-seo-phone-code-toggle {
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	border-left: none;
	border-radius: 0 var(--ec-radius, 10px) var(--ec-radius, 10px) 0;
}

[dir="rtl"] .eazyclean-seo-brochure-phone-row .eazyclean-seo-form-input {
	border-radius: var(--ec-radius, 10px) 0 0 var(--ec-radius, 10px);
}

[dir="rtl"] .eazyclean-seo-mini-form .eazyclean-seo-phone-code-toggle {
	border-right: 1px solid rgba(255, 255, 255, 0.12);
	border-left: none;
	border-radius: 0 8px 8px 0;
}

[dir="rtl"] .eazyclean-seo-mini-form .eazyclean-seo-brochure-phone-row .eazyclean-seo-form-input {
	border-radius: 8px 0 0 8px;
}

[dir="rtl"] .eazyclean-seo-phone-code-list {
	left: auto;
	right: 0;
}

/* ── Widget: Tippflächen und Höhe ───────────────────────────── */

.eazyclean-seo-mini-form .eazyclean-seo-form-input,
.eazyclean-seo-mini-form .eazyclean-seo-phone-code-toggle {
	min-height: 44px;
}

.eazyclean-seo-sticky-widget .eazyclean-seo-sticky-panel {
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

@supports (height: 100dvh) {
	.eazyclean-seo-sticky-widget .eazyclean-seo-sticky-panel {
		max-height: calc(100dvh - 120px);
	}
}

/* Über dem Einwilligungsbanner: Panelhöhe um den Abstand verringern */
.eazyclean-seo-sticky-widget.ist-ueber-einwilligung .eazyclean-seo-sticky-panel {
	max-height: calc(100vh - 120px - var(--ec-einwilligung-abstand, 0px));
}

@supports (height: 100dvh) {
	.eazyclean-seo-sticky-widget.ist-ueber-einwilligung .eazyclean-seo-sticky-panel {
		max-height: calc(100dvh - 120px - var(--ec-einwilligung-abstand, 0px));
	}
}

@keyframes ecAnfrageEin {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
	.ec-anfrage-wahl__knoepfe {
		gap: 8px;
	}

	.ec-anfrage-knopf__flaeche {
		padding: 9px 10px;
		gap: 8px;
		font-size: 13.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ec-anfrage-service__inhalt:not([hidden]) {
		animation: none;
	}

	.ec-anfrage-knopf__flaeche,
	.ec-anfrage-service__link {
		transition: none;
	}
}
