/* Tasklytic Kern: Einwilligungsbanner und Datenschutz-Einstellungen. Farben aus dem Theme, mit Ersatzwerten. */

.tl-einwilligung[hidden],
.tl-einwilligung [hidden] {
	display: none !important;
}

.tl-einwilligung__banner {
	position: fixed;
	left: max(20px, env(safe-area-inset-left, 0px));
	bottom: max(20px, env(safe-area-inset-bottom, 0px));
	z-index: 70;
	box-sizing: border-box;
	width: min(560px, calc(100vw - 40px));
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	padding: 22px 24px 20px;
	border: 1px solid rgba(60, 184, 255, 0.4);
	border-radius: 12px;
	background: var(--tl-nacht, #00070e);
	box-shadow: 0 30px 70px -24px rgba(0, 7, 14, 0.85);
	color: var(--tl-text-hell, #e7edf3);
	font-family: var(--tl-schrift, system-ui, sans-serif);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.tl-einwilligung__banner p,
.tl-einwilligung__banner ul {
	margin: 0 0 10px;
}

.tl-einwilligung__banner a {
	color: var(--tl-blau-hell, #3cb8ff);
}

.tl-einwilligung__banner :focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

.tl-einwilligung__titel {
	margin: 0 0 10px;
	font-family: var(--tl-schrift-titel, system-ui, sans-serif);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

.tl-einwilligung__banner .tl-einwilligung__titel {
	color: #ffffff;
}

.tl-einwilligung__liste {
	padding-left: 1.1em;
}

.tl-einwilligung__knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

/* Ablehnen und Zustimmen sind gleich gestaltet, keine Wahl wird hervorgehoben. */
.tl-einwilligung__knopf {
	flex: 1 1 140px;
	min-height: 44px;
	padding: 0 18px;
	border: 1.5px solid var(--tl-blau, #00a7fe);
	border-radius: var(--tl-radius, 6px);
	background: var(--tl-blau, #00a7fe);
	color: var(--tl-tinte, #08111b);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.tl-einwilligung__knopf:hover,
.tl-einwilligung__knopf:focus-visible {
	background: #35bbff;
}

.tl-einwilligung__knopf--leise {
	flex: 0 1 auto;
	background: transparent;
	color: inherit;
}

.tl-einwilligung__knopf--leise:hover,
.tl-einwilligung__knopf--leise:focus-visible {
	background: rgba(0, 167, 254, 0.14);
}

/* Einstellungen */
.tl-einwilligung__dialog {
	box-sizing: border-box;
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 1px solid #d5dee8;
	border-radius: 12px;
	background: #ffffff;
	color: var(--tl-tinte, #08111b);
	font-family: var(--tl-schrift, system-ui, sans-serif);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.tl-einwilligung__dialog::backdrop {
	background: rgba(0, 7, 14, 0.6);
}

.tl-einwilligung__form {
	padding: 22px 24px 20px;
}

.tl-einwilligung__form p {
	margin: 0 0 10px;
}

.tl-einwilligung__form a {
	color: var(--tl-blau-text, #0073c2);
}

.tl-einwilligung__gruppe {
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid #dfe6ee;
	border-radius: 8px;
	background: var(--tl-hell, #f4f7fa);
}

.tl-einwilligung__gruppe h3 {
	margin: 0 0 4px;
	font-size: 0.9375rem;
}

.tl-einwilligung__gruppe p:last-child {
	margin-bottom: 0;
}

.tl-einwilligung__schalter {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-weight: 600;
	cursor: pointer;
}

.tl-einwilligung__schalter input {
	width: 22px;
	height: 22px;
	accent-color: var(--tl-blau-text, #0073c2);
}

.tl-einwilligung__dialog .tl-einwilligung__knopf--leise {
	border-color: var(--tl-blau-text, #0073c2);
}

.tl-einwilligung__unsichtbar {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 640px) {
	.tl-einwilligung__banner {
		left: max(12px, env(safe-area-inset-left, 0px));
		right: max(12px, env(safe-area-inset-right, 0px));
		bottom: max(12px, env(safe-area-inset-bottom, 0px));
		width: auto;
		padding: 18px 18px 16px;
	}
}

@media print {
	.tl-einwilligung {
		display: none !important;
	}
}
