/* ImmoTemplates: Leiste für externe Inhalte (seit 1.22.0).
 * Nimmt Firmenfarbe und Schrift des Designs, mit Rückfallwerten. */
.it-einw {
	--einw-akzent: var(--accent, #4b6355);
	--einw-tinte: var(--ink, #1f2420);
	--einw-linie: color-mix(in srgb, var(--einw-tinte) 12%, transparent);
	position: fixed;
	left: 50%;
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 99990;
	box-sizing: border-box;
	width: min(760px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 22px 24px 20px;
	background: #fff;
	color: var(--einw-tinte);
	font-family: var(--font-text, inherit);
	font-size: 15px;
	line-height: 1.55;
	border: 1px solid var(--einw-linie);
	border-radius: 22px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 50px -12px rgba(0, 0, 0, 0.28);
	transform: translate(-50%, 24px);
	opacity: 0;
	transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.26s ease;
}
.it-einw.ist-da {
	transform: translate(-50%, 0);
	opacity: 1;
}
.it-einw:focus { outline: none; }
.it-einw *,
.it-einw *::before,
.it-einw *::after { box-sizing: border-box; }

.it-einw-kopf {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}
.it-einw-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--einw-akzent) 12%, #fff);
	color: var(--einw-akzent);
}
.it-einw .it-einw-titel {
	margin: 0 0 4px;
	font-family: var(--font-head, inherit);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	color: inherit;
}
.it-einw .it-einw-text {
	margin: 0;
	max-width: none;
	font-size: 14.5px;
	color: color-mix(in srgb, var(--einw-tinte) 72%, transparent);
}

.it-einw-details {
	margin: 18px 0 0;
	border-top: 1px solid var(--einw-linie);
}
.it-einw-zeile {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 13px 0;
	border-bottom: 1px solid var(--einw-linie);
	cursor: pointer;
}
.it-einw-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.it-einw-info strong { font-weight: 600; font-size: 14.5px; }
.it-einw-info span { font-size: 13.5px; color: color-mix(in srgb, var(--einw-tinte) 66%, transparent); }

.it-einw-schalter {
	position: relative;
	flex: none;
	width: 46px;
	height: 28px;
}
.it-einw-schalter input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.it-einw-regler {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--einw-tinte) 22%, #fff);
	transition: background 0.2s ease;
	pointer-events: none;
}
.it-einw-regler::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}
.it-einw-schalter input:checked + .it-einw-regler { background: var(--einw-akzent); }
.it-einw-schalter input:checked + .it-einw-regler::after { transform: translateX(18px); }
.it-einw-schalter input:focus-visible + .it-einw-regler { outline: 2px solid var(--einw-akzent); outline-offset: 2px; }

.it-einw-fuss {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 20px;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
}
.it-einw-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
}
.it-einw .it-einw-link {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	color: color-mix(in srgb, var(--einw-tinte) 72%, transparent);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.it-einw .it-einw-link:hover { color: var(--einw-tinte); }
.it-einw-knoepfe {
	display: flex;
	gap: 10px;
	margin-left: auto;
}
/* Beide Knöpfe gleich groß und gleich deutlich: Ablehnen ist so leicht wie Zustimmen. */
.it-einw .it-einw-knopf {
	min-width: 168px;
	min-height: 46px;
	padding: 11px 22px;
	border: 1.5px solid var(--einw-tinte);
	border-radius: 999px;
	background: #fff;
	color: var(--einw-tinte);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.it-einw .it-einw-knopf:hover { background: var(--einw-tinte); color: #fff; }
.it-einw .it-einw-knopf--ja {
	border-color: var(--einw-akzent);
	background: var(--einw-akzent);
	color: #fff;
}
.it-einw .it-einw-knopf--ja:hover {
	border-color: color-mix(in srgb, var(--einw-akzent) 86%, #000);
	background: color-mix(in srgb, var(--einw-akzent) 86%, #000);
}
.it-einw .it-einw-knopf:active { transform: scale(0.98); }
.it-einw .it-einw-knopf:focus-visible,
.it-einw .it-einw-link:focus-visible { outline: 2px solid var(--einw-akzent); outline-offset: 3px; }

@media (max-width: 640px) {
	.it-einw {
		padding: 18px 18px 16px;
		border-radius: 18px;
	}
	.it-einw-icon { width: 38px; height: 38px; }
	.it-einw-fuss { flex-direction: column-reverse; align-items: stretch; }
	.it-einw-links { justify-content: center; }
	.it-einw-knoepfe { margin-left: 0; }
	.it-einw .it-einw-knopf { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.it-einw { transition: opacity 0.2s ease; transform: translate(-50%, 0); }
	.it-einw-regler, .it-einw-regler::after, .it-einw .it-einw-knopf { transition: none; }
}
@media print { .it-einw { display: none; } }
