/**
 * Filteroberfläche von Web24-Compare.
 */

.w24cmp-filter {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-bottom: 24px;
}

.w24cmp-filter-titel {
	margin: 0;
	font-size: 1.15rem;
}

.w24cmp-filter-block {
	margin: 0;
	padding: 0;
	border: 0;
}

.w24cmp-filter-legende {
	padding: 0;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 0.95rem;
}

.w24cmp-filter-werte {
	display: flex;
	flex-direction: column;
	gap: 3px;
	max-height: 220px;
	overflow-y: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

.w24cmp-filter-werte li {
	margin: 0;
}

.w24cmp-filter-werte label {
	display: flex;
	align-items: baseline;
	gap: 7px;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.4;
}

.w24cmp-filter-zahl {
	margin-left: auto;
	font-size: 0.8rem;
	font-variant-numeric: tabular-nums;
	opacity: 0.65;
}

.w24cmp-filter select {
	width: 100%;
	max-width: 100%;
}

.w24cmp-filter-spanne {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.w24cmp-filter-spanne input {
	width: 100%;
	min-width: 0;
	font-variant-numeric: tabular-nums;
}

.w24cmp-filter-aktionen {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.w24cmp-filter-knopf {
	min-height: 44px;
	padding: 10px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--w24cmp-akzent, #333333);
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.w24cmp-filter-knopf:hover {
	filter: brightness(0.92);
}

.w24cmp-filter-knopf:focus-visible {
	outline: 3px solid var(--w24cmp-akzent, #333333);
	outline-offset: 2px;
}

/* Auf schmalen Schirmen ist der Knopf das Ziel des Daumens — volle Breite. */

@media screen and (max-width: 600px) {
	.w24cmp-filter-aktionen {
		flex-wrap: wrap;
	}

	.w24cmp-filter-knopf {
		flex: 1 1 100%;
	}
}

.w24cmp-filter-laeuft {
	opacity: 0.55;
	pointer-events: none;
}

/* Kompakte Fassung für die Seitenleiste */

.w24cmp-filter-kompakt {
	gap: 12px;
	font-size: 0.9rem;
}

.w24cmp-filter-kompakt .w24cmp-filter-werte {
	max-height: 160px;
}

@media (prefers-reduced-motion: reduce) {
	.w24cmp-filter,
	.w24cmp-filter * {
		transition: none !important;
	}
}

/* Doppelregler
 * Themes (Divi) setzen Eingabefeldern Breite, Höhe, Rahmen und Position;
 * die Regler müssen sich davon lösen, deshalb mit Vorrang. */

.w24cmp-regler-anzeige {
	display: flex;
	gap: 8px;
	margin: 0 0 8px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.w24cmp-regler-spur {
	position: relative;
	height: 28px;
	margin: 0 6px;
}

.w24cmp-regler-spur::before {
	content: "";
	position: absolute;
	top: 12px;
	right: 0;
	left: 0;
	height: 4px;
	border-radius: 2px;
	background: rgba(127, 127, 127, 0.3);
}

.w24cmp-regler-fuellung {
	position: absolute;
	top: 12px;
	height: 4px;
	border-radius: 2px;
	background: #2ea3f2;
}

.w24cmp-filter .w24cmp-regler-spur input[type="range"] {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 28px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	pointer-events: none;
	-webkit-appearance: none !important;
	appearance: none !important;
	outline: none;
}

.w24cmp-filter .w24cmp-regler-spur input[type="range"]::-webkit-slider-runnable-track {
	height: 28px;
	background: transparent;
	border: 0;
}

.w24cmp-filter .w24cmp-regler-spur input[type="range"]::-moz-range-track {
	height: 28px;
	background: transparent;
	border: 0;
}

.w24cmp-filter .w24cmp-regler-spur input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	margin-top: 4px;
	border: 2px solid #2ea3f2;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.w24cmp-filter .w24cmp-regler-spur input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border: 2px solid #2ea3f2;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	pointer-events: auto;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.w24cmp-filter .w24cmp-regler-spur input[type="range"]:focus-visible::-webkit-slider-thumb {
	outline: 3px solid rgba(46, 163, 242, 0.45);
	outline-offset: 2px;
}

/* Mehrfachauswahl: genug Höhe, damit man nicht scrollen muss */

.w24cmp-filter select[multiple] {
	height: auto !important;
	min-height: 180px !important;
	padding: 4px !important;
	font-size: 0.9rem;
	line-height: 1.5;
}

.w24cmp-filter select[multiple] option {
	padding: 2px 4px;
}

.w24cmp-filter-kompakt select[multiple] {
	min-height: 220px !important;
}

/* Schlagwörter: Freitext mit Vorschlägen und Marken */

.w24cmp-schlagwort-eingabe {
	position: relative;
}

.w24cmp-filter .w24cmp-schlagwort-feld {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid rgba(127, 127, 127, 0.4);
	border-radius: 4px;
	font: inherit;
	font-size: 0.9rem;
}

.w24cmp-schlagwort-vorschlaege {
	position: absolute;
	z-index: 20;
	top: 100%;
	right: 0;
	left: 0;
	max-height: 240px;
	overflow-y: auto;
	margin: 2px 0 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(127, 127, 127, 0.4);
	border-radius: 4px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.w24cmp-schlagwort-vorschlaege[hidden] {
	display: none;
}

.w24cmp-schlagwort-vorschlaege li {
	margin: 0;
	padding: 6px 10px;
	font-size: 0.9rem;
	cursor: pointer;
}

.w24cmp-schlagwort-vorschlaege li:hover {
	background: rgba(46, 163, 242, 0.12);
}

.w24cmp-schlagwort-marken {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.w24cmp-schlagwort-marken li {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 3px 6px 3px 10px;
	border-radius: 999px;
	background: rgba(46, 163, 242, 0.14);
	font-size: 0.85rem;
}

.w24cmp-schlagwort-entfernen {
	padding: 0 4px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
}

/* 0.11.0: Schalter „Nur Budgettarife“ und Versicherer als Kacheln */

.w24cmp-filter-hinweis {
	margin: 6px 0 0;
	font-size: 0.8rem;
	line-height: 1.4;
	opacity: 0.75;
}

.w24cmp-filter-marken .w24cmp-filter-hinweis {
	margin: 0 0 8px;
}

.w24cmp-umschalter {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 32px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.95rem;
}

.w24cmp-filter .w24cmp-umschalter-feld {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	opacity: 0;
}

.w24cmp-umschalter-bahn {
	position: relative;
	flex: none;
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: rgba(127, 127, 127, 0.35);
	transition: background 0.2s;
}

.w24cmp-umschalter-bahn::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s;
}

.w24cmp-umschalter-feld:checked + .w24cmp-umschalter-bahn {
	background: #2ea3f2;
}

.w24cmp-umschalter-feld:checked + .w24cmp-umschalter-bahn::after {
	transform: translateX(20px);
}

.w24cmp-umschalter-feld:focus-visible + .w24cmp-umschalter-bahn {
	outline: 3px solid rgba(46, 163, 242, 0.45);
	outline-offset: 2px;
}

.w24cmp-filter .w24cmp-marken {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.w24cmp-filter .w24cmp-marken li {
	margin: 0;
	padding: 0;
}

.w24cmp-marke {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 1px;
	min-height: 38px;
	padding: 5px 7px;
	border: 1px solid rgba(127, 127, 127, 0.35);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 0.8rem;
	line-height: 1.2;
	transition: border-color 0.15s, background 0.15s;
}

.w24cmp-marke:hover {
	border-color: #2ea3f2;
}

.w24cmp-filter .w24cmp-marke input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	opacity: 0;
}

.w24cmp-marke-name {
	flex: none;
	max-width: 100%;
	min-width: 0;
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}

.w24cmp-marke-zahl {
	flex: none;
	font-size: 0.7rem;
	font-variant-numeric: tabular-nums;
	opacity: 0.6;
}

.w24cmp-marke.is-aktiv,
.w24cmp-marke:has(input:checked) {
	border-color: #2ea3f2;
	background: rgba(46, 163, 242, 0.14);
	font-weight: 700;
}

.w24cmp-marke:has(input:focus-visible) {
	outline: 3px solid rgba(46, 163, 242, 0.45);
	outline-offset: 1px;
}

.w24cmp-marken-alle {
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: #2ea3f2;
	font: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

.w24cmp-marken-alle[hidden] {
	display: none !important;
}

/* 0.11.1: Anzahl am Schalter und Pop-up für die Freischaltung */

.w24cmp-umschalter-zahl {
	display: inline-block;
	margin-left: 4px;
	padding: 0 7px;
	border-radius: 999px;
	background: rgba(46, 163, 242, 0.15);
	font-size: 0.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.6;
}

.w24cmp-modal {
	width: min(760px, calc(100vw - 24px));
	max-width: none;
	max-height: calc(100vh - 40px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: inherit;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.w24cmp-modal::backdrop {
	background: rgba(20, 30, 40, 0.55);
}

.w24cmp-modal-innen {
	position: relative;
	max-height: calc(100vh - 40px);
	padding: 30px 28px 24px;
	overflow-y: auto;
	box-sizing: border-box;
}

.w24cmp-modal-schliessen {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.w24cmp-modal-schliessen:focus-visible {
	outline: 3px solid rgba(46, 163, 242, 0.45);
	border-radius: 6px;
}

.w24cmp-modal .w24cmp-kombi-sperre {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.w24cmp-modal .w24cmp-sperre-titel {
	padding-right: 36px;
}

@media screen and (max-width: 600px) {
	.w24cmp-modal-innen {
		padding: 26px 16px 18px;
	}
}

/* 0.11.2: Eingabefelder im Pop-up (Divi setzt sie weiß auf weiß) */

.w24cmp-modal input[type="text"],
.w24cmp-modal input[type="email"] {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid rgba(127, 127, 127, 0.5) !important;
	border-radius: 6px;
	background: #fff !important;
	color: #333 !important;
	font: inherit;
}

.w24cmp-modal input[type="text"]:focus,
.w24cmp-modal input[type="email"]:focus {
	border-color: #2ea3f2 !important;
	outline: 2px solid rgba(46, 163, 242, 0.3);
}

.w24cmp-modal .w24cmp-sperre-text p {
	margin-bottom: 14px;
}

/* 0.12.1: Beratungsangebot zu den Kombinationen – farbiger Kopf, Zahl, Schritte, Knopf */

.w24cmp-modal.w24cmp-modal--angebot {
	width: min(620px, calc(100vw - 24px));
	overflow: hidden;
}

.w24cmp-modal--angebot .w24cmp-modal-innen {
	padding: 0;
}

.w24cmp-modal--angebot .w24cmp-modal-schliessen {
	z-index: 2;
	color: #fff;
}

.w24cmp-angebot-kopf {
	padding: 26px 60px 22px 28px;
	background: linear-gradient(135deg, #0c9bd3 0%, #0877a8 100%);
	color: #fff;
}

.w24cmp-angebot-marke {
	display: inline-block;
	margin: 0 0 10px;
	padding: 3px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.w24cmp-angebot .w24cmp-angebot-titel {
	margin: 0 0 6px;
	padding: 0;
	color: #fff;
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.25;
}

.w24cmp-angebot .w24cmp-angebot-unter {
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.98rem;
	line-height: 1.45;
}

.w24cmp-angebot-inhalt {
	padding: 22px 28px 26px;
	color: #3b4651;
}

.w24cmp-angebot .w24cmp-angebot-zahl {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px;
	padding: 12px 16px;
	border-left: 4px solid #0c9bd3;
	border-radius: 10px;
	background: #e8f6fc;
}

.w24cmp-angebot-zahl strong {
	flex: none;
	color: #0877a8;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.w24cmp-angebot-zahl span {
	font-size: 0.92rem;
	line-height: 1.4;
}

.w24cmp-angebot .w24cmp-angebot-text {
	margin: 0 0 16px;
	padding: 0;
	line-height: 1.55;
}

.w24cmp-angebot .w24cmp-angebot-schritte {
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.w24cmp-angebot .w24cmp-angebot-schritte li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 10px;
	padding: 0;
	line-height: 1.4;
}

.w24cmp-angebot-nr {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #0c9bd3;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
}

.w24cmp-angebot .w24cmp-angebot-aktion {
	margin: 0;
	padding: 0;
}

.w24cmp-modal .w24cmp-angebot-knopf {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border-radius: 999px;
	background: #0877a8;
	color: #fff !important;
	font-size: 1.02rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(8, 119, 168, 0.35);
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.w24cmp-modal .w24cmp-angebot-knopf:hover {
	background: #06628b;
	box-shadow: 0 8px 20px rgba(8, 119, 168, 0.45);
	transform: translateY(-1px);
}

.w24cmp-modal .w24cmp-angebot-knopf:focus-visible {
	outline: 3px solid rgba(12, 155, 211, 0.5);
	outline-offset: 3px;
}

@media screen and (max-width: 600px) {
	.w24cmp-angebot-kopf {
		padding: 22px 54px 18px 18px;
	}

	.w24cmp-angebot .w24cmp-angebot-titel {
		font-size: 1.25rem;
	}

	.w24cmp-angebot-inhalt {
		padding: 18px 18px 22px;
	}

	.w24cmp-modal .w24cmp-angebot-knopf {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.w24cmp-modal .w24cmp-angebot-knopf {
		transition: none;
	}
}
