/* Scaliento Consent: Dialog, Einstellungen, Inhaltsblocker, Widget.
   Brand fonts are named, never loaded: loading web fonts here would itself be a third-party request, so the site's own copies are used and system fonts are the fallback. */

.scc-root,
.scc-blocker,
.scc-widget {
	--scc-navy: #272b5b;
	--scc-accent: #f39313;
	--scc-surface: #ffffff;
	--scc-tint: #eef0f3;
	--scc-soft: #f7f7fa;
	--scc-hover: #f4f4f7;
	--scc-ink: #000000;
	--scc-text: #333333;
	--scc-muted: #5c6079;
	--scc-line: rgba(39, 43, 91, 0.07);
	--scc-radius: 20px;
	--scc-inner-radius: 14px;
	--scc-btn-radius: 12px;
	--scc-btn-bg: var(--scc-navy);
	--scc-btn-bg-hover: #1c1f47;
	--scc-btn-fg: #ffffff;
	--scc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--scc-head-font: var(--scc-font);
	--scc-head-weight: 600;
	--scc-name-weight: 600;
	--scc-ease: cubic-bezier(0.22, 0.85, 0.28, 1);
	--scc-shadow: 0 2px 8px rgba(39, 43, 91, 0.05), 0 44px 88px -38px rgba(39, 43, 91, 0.42);
	font-family: var(--scc-font);
	color: var(--scc-text);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

[data-scc-brand="scaliento"] {
	--scc-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--scc-head-font: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

[data-scc-brand="schutzteam"] {
	--scc-font: "Nunito Sans", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--scc-navy: #131f64;
	--scc-btn-bg: #131f64;
	--scc-btn-bg-hover: #0c1548;
	--scc-ink: #131f64;
	--scc-text: #2b3150;
	--scc-tint: #eaeef1;
	--scc-soft: #f3f5f8;
	--scc-radius: 24px;
	--scc-inner-radius: 16px;
	--scc-btn-radius: 999px;
	--scc-head-weight: 800;
	--scc-name-weight: 700;
}

[data-scc-brand="lukmann"] {
	--scc-font: Arial, Helvetica, sans-serif;
	--scc-ink: #272b5b;
	--scc-radius: 16px;
	--scc-inner-radius: 10px;
	--scc-btn-radius: 8px;
	--scc-head-weight: 700;
	--scc-name-weight: 700;
}

:where(.scc-root, .scc-blocker) *,
:where(.scc-root, .scc-blocker) *::before,
:where(.scc-root, .scc-blocker) *::after {
	box-sizing: border-box;
}

:where(.scc-root, .scc-blocker) :where(h2, h3, p, ul, dl, dd, table) {
	margin: 0;
	padding: 0;
}

:where(.scc-root, .scc-blocker) a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(39, 43, 91, 0.35);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

:where(.scc-root, .scc-blocker) a:hover {
	text-decoration-color: currentColor;
}

/* Themes colour links with selectors stronger than :where(); the dialog keeps its own link colours. */
.scc-root .scc-legal a,
.scc-root .scc-legal a:visited {
	color: var(--scc-muted);
}

.scc-root .scc-facts a,
.scc-blocker .scc-blocker-alt a,
.scc-blocker .scc-blocker-alt a:visited {
	color: var(--scc-ink);
}

.scc-root .scc-legal a:hover,
.scc-root .scc-facts a:hover,
.scc-blocker .scc-blocker-alt a:hover {
	color: var(--scc-ink);
}

:where(.scc-root, .scc-blocker, .scc-widget) :focus-visible,
.scc-widget:focus-visible {
	outline: 2px solid var(--scc-accent);
	outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.scc-btn {
	appearance: none;
	border: 0;
	margin: 0;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: var(--scc-btn-radius);
	background: var(--scc-btn-bg);
	color: var(--scc-btn-fg);
	font-family: var(--scc-head-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.3s var(--scc-ease);
}

.scc-btn:hover {
	background: var(--scc-btn-bg-hover);
}

.scc-ghost {
	appearance: none;
	border: 0;
	margin: 0;
	min-height: 40px;
	padding: 8px 0;
	background: none;
	color: var(--scc-ink);
	font-family: var(--scc-head-font);
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: rgba(39, 43, 91, 0.35);
	cursor: pointer;
	transition: color 0.3s var(--scc-ease), text-decoration-color 0.3s var(--scc-ease);
}

.scc-ghost:hover {
	color: var(--scc-muted);
	text-decoration-color: currentColor;
}

/* ---------- Ebene 1 (modal: die Seite wartet auf eine Wahl, Ablehnen ist genauso nah wie Annehmen) ---------- */

.scc-layer1 {
	width: min(560px, 100%);
	max-height: min(90vh, 760px);
	overflow-y: auto;
	background: var(--scc-surface);
	border-radius: var(--scc-radius);
	box-shadow: var(--scc-shadow);
	padding: 28px 28px 18px;
	animation: scc-in 0.45s var(--scc-ease) both;
}

@keyframes scc-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.985);
	}
}

.scc-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.scc-logo {
	display: block;
	height: 30px;
	width: auto;
}

/* Lukmann's logo is a wordmark with small type; at 30px "Consulting" is barely legible. */
[data-scc-brand="lukmann"] .scc-logo {
	height: 42px;
}

.scc-cookie {
	width: 44px;
	height: 44px;
	flex: none;
	color: var(--scc-navy);
}

.scc-title {
	font-family: var(--scc-head-font);
	font-weight: var(--scc-head-weight);
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: -0.015em;
	color: var(--scc-ink);
	margin-bottom: 10px;
}

.scc-text {
	color: var(--scc-text);
	font-size: 16px;
	line-height: 1.6;
}

/* The dialog itself receives focus on open so screen readers start there; only controls show a ring. */
.scc-layer1:focus,
.scc-layer2:focus {
	outline: none;
}

.scc-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 24px;
}

.scc-actions .scc-btn {
	min-height: 50px;
	font-size: 15.5px;
}

.scc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 12px;
	margin-top: 8px;
	font-size: 13px;
	color: var(--scc-muted);
}

.scc-legal {
	display: flex;
	gap: 14px;
}

/* ---------- Ebene 2 (modal) ---------- */

.scc-backdrop {
	position: fixed;
	z-index: 2147483001;
	inset: 0;
	background: rgba(10, 12, 32, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	display: grid;
	place-items: center;
	padding: 20px;
}

.scc-layer2 {
	width: min(680px, 100%);
	max-height: min(88vh, 820px);
	display: flex;
	flex-direction: column;
	background: var(--scc-surface);
	border-radius: var(--scc-radius);
	box-shadow: var(--scc-shadow);
	overflow: hidden;
	animation: scc-in 0.4s var(--scc-ease) both;
}

.scc-l2-head {
	padding: 24px 28px 0;
}

.scc-l2-head .scc-top {
	margin-bottom: 22px;
}

.scc-l2-head .scc-title {
	margin-bottom: 6px;
}

.scc-close {
	margin: -8px -10px -8px 0;
	appearance: none;
	border: 0;
	background: transparent;
	width: 40px;
	height: 40px;
	border-radius: var(--scc-btn-radius);
	color: var(--scc-ink);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background-color 0.3s var(--scc-ease);
}

.scc-close:hover {
	background: var(--scc-hover);
}

.scc-l2-body {
	overflow-y: auto;
	padding: 0 28px 16px;
	overscroll-behavior: contain;
}

.scc-groups {
	list-style: none;
	margin: 16px 0 0;
	display: grid;
	gap: 2px;
	border-radius: var(--scc-inner-radius);
	overflow: hidden;
}

.scc-group {
	background: var(--scc-soft);
	padding: 4px 16px;
}

.scc-group-row {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
}

.scc-group-toggle {
	flex: 1;
	min-width: 0;
	appearance: none;
	border: 0;
	background: none;
	padding: 10px 0;
	margin: 0;
	font: inherit;
	text-align: left;
	cursor: pointer;
	display: grid;
	gap: 2px;
}

.scc-group-name {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--scc-head-font);
	font-weight: var(--scc-name-weight);
	color: var(--scc-ink);
	font-size: 15.5px;
}

.scc-group-name svg {
	color: var(--scc-muted);
	transition: transform 0.3s var(--scc-ease);
}

.scc-group-toggle[aria-expanded="true"] .scc-group-name svg {
	transform: rotate(180deg);
}

.scc-group-desc {
	color: var(--scc-muted);
	font-size: 14px;
}

.scc-always {
	flex: none;
	font-size: 13px;
	font-weight: 600;
	color: var(--scc-muted);
}

.scc-switch {
	flex: none;
	display: inline-flex;
	align-items: center;
	appearance: none;
	border: 0;
	background: none;
	padding: 4px;
	margin-right: -4px;
	cursor: pointer;
}

.scc-switch-track {
	position: relative;
	width: 40px;
	height: 24px;
	border-radius: 999px;
	background: #c8cbd8;
	transition: background-color 0.3s var(--scc-ease);
	flex: none;
}

.scc-switch-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s var(--scc-ease);
}

.scc-switch[aria-checked="true"] .scc-switch-track {
	background: var(--scc-navy);
}

.scc-switch[aria-checked="true"] .scc-switch-track::after {
	transform: translateX(16px);
}

.scc-services {
	list-style: none;
	margin: 0 0 12px;
	display: grid;
	gap: 6px;
}

.scc-services[hidden] {
	display: none;
}

.scc-service {
	background: var(--scc-surface);
	border-radius: calc(var(--scc-inner-radius) - 4px);
	padding: 12px 14px;
}

.scc-service .scc-group-row {
	min-height: 0;
	align-items: flex-start;
}

.scc-service-text {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 2px;
}

.scc-service-name {
	font-weight: 600;
	color: var(--scc-ink);
	font-size: 14.5px;
}

.scc-facts {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 3px 14px;
	margin-top: 10px;
	font-size: 13px;
}

.scc-facts dt {
	color: var(--scc-muted);
}

.scc-cookies {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 10px;
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
	background: var(--scc-soft);
	border-radius: 8px;
	overflow: hidden;
}

.scc-cookies th,
.scc-cookies td {
	text-align: left;
	padding: 6px 10px;
	vertical-align: top;
}

.scc-cookies th {
	color: var(--scc-muted);
	font-weight: 600;
}

.scc-l2-foot {
	padding: 14px 28px 16px;
	background: var(--scc-surface);
	box-shadow: 0 -10px 24px -18px rgba(39, 43, 91, 0.35);
}

.scc-l2-foot .scc-actions {
	grid-template-columns: repeat(3, 1fr);
	margin-top: 0;
}

.scc-l2-foot .scc-actions .scc-btn {
	min-height: 48px;
}

/* Nachweis-Zeile: die Wahl ist protokolliert, und das sieht man */
.scc-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	align-items: baseline;
	margin-top: 12px;
	font-size: 12.5px;
	color: var(--scc-muted);
}

.scc-proof-id {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	color: var(--scc-ink);
	font-weight: 600;
}

/* ---------- Inhaltsblocker ---------- */

.scc-blocker {
	position: relative;
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
	aspect-ratio: 16 / 9;
	display: grid;
	place-items: center;
	padding: 24px;
	background: var(--scc-tint);
	border-radius: var(--scc-radius);
	color: var(--scc-text);
}

.scc-blocker--form {
	aspect-ratio: auto;
	min-height: 320px;
}

.scc-blocker-inner {
	max-width: 420px;
	text-align: center;
}

.scc-blocker-title {
	font-family: var(--scc-head-font);
	font-weight: var(--scc-head-weight);
	font-size: 17px;
	color: var(--scc-ink);
	margin-bottom: 6px;
}

.scc-blocker .scc-text {
	font-size: 14px;
	color: var(--scc-muted);
}

.scc-blocker-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 18px;
	margin-top: 16px;
}

/* Own checkbox: themes (Crafto) give every checkbox margins and a fixed width, which pushes it off the text line. */
.scc-blocker .scc-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--scc-text);
	text-align: left;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.scc-blocker .scc-check input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	flex: none;
	display: grid;
	place-content: center;
	position: static;
	float: none;
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin: 0;
	padding: 0;
	border: 1.5px solid rgba(39, 43, 91, 0.32);
	border-radius: 5px;
	background: #fff;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.scc-blocker .scc-check input[type="checkbox"]::after {
	content: none;
}

.scc-blocker .scc-check input[type="checkbox"]::before {
	content: "";
	width: 10px;
	height: 8px;
	background: #fff;
	clip-path: polygon(0 52%, 14% 38%, 38% 62%, 86% 0, 100% 15%, 38% 92%);
	transform: scale(0);
	transition: transform 0.12s ease;
}

.scc-blocker .scc-check:hover input[type="checkbox"] {
	border-color: var(--scc-navy);
}

.scc-blocker .scc-check input[type="checkbox"]:checked {
	background: var(--scc-navy);
	border-color: var(--scc-navy);
}

.scc-blocker .scc-check input[type="checkbox"]:checked::before {
	transform: scale(1);
}

.scc-blocker .scc-check input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--scc-navy);
	outline-offset: 2px;
}

.scc-blocker-alt {
	margin-top: 12px;
	font-size: 13.5px;
	color: var(--scc-muted);
}

/* ---------- Widget ---------- */

.scc-widget {
	position: fixed;
	z-index: 2147482999;
	left: 16px;
	bottom: 16px;
	width: 44px;
	height: 44px;
	border-radius: var(--scc-btn-radius);
	border: 1px solid var(--scc-line);
	background: var(--scc-surface);
	color: var(--scc-navy);
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: var(--scc-shadow);
}

/* ---------- Handy ---------- */

@media (max-width: 600px) {
	.scc-backdrop {
		padding: 0;
		align-items: end;
	}

	.scc-layer1,
	.scc-layer2 {
		width: 100%;
		border-radius: var(--scc-radius) var(--scc-radius) 0 0;
		animation-name: scc-sheet;
	}

	.scc-layer1 {
		max-height: 88vh;
		padding: 20px 18px calc(10px + env(safe-area-inset-bottom));
	}

	.scc-layer2 {
		max-height: 94vh;
	}

	.scc-top,
	.scc-l2-head .scc-top {
		margin-bottom: 16px;
	}

	.scc-logo {
		height: 24px;
	}

	[data-scc-brand="lukmann"] .scc-logo {
		height: 34px;
	}

	.scc-cookie {
		width: 34px;
		height: 34px;
	}

	.scc-title,
	.scc-l2-head .scc-title {
		font-size: 20px;
	}

	.scc-text {
		font-size: 15px;
		line-height: 1.55;
	}

	.scc-actions {
		gap: 8px;
		margin-top: 18px;
	}

	.scc-actions .scc-btn {
		min-height: 48px;
		padding: 10px 8px;
		font-size: 15px;
	}

	.scc-meta {
		margin-top: 6px;
	}

	.scc-l2-head {
		padding: 18px 18px 0;
	}

	.scc-l2-body {
		padding: 0 18px 14px;
	}

	.scc-l2-foot {
		padding: 12px 18px calc(10px + env(safe-area-inset-bottom));
	}

	.scc-l2-foot .scc-actions {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.scc-l2-foot .scc-btn--save {
		grid-column: 1 / -1;
	}

	.scc-l2-foot .scc-actions .scc-btn {
		min-height: 46px;
	}

	.scc-proof {
		margin-top: 10px;
		font-size: 12px;
	}

	.scc-group {
		padding: 2px 14px;
	}

	.scc-group-row {
		min-height: 60px;
	}

	.scc-facts {
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 3px 10px;
		font-size: 12.5px;
	}

	.scc-cookies th,
	.scc-cookies td {
		padding: 5px 8px;
	}

	.scc-blocker {
		aspect-ratio: auto;
		min-height: 240px;
		padding: 20px 16px;
	}
}

@media (max-width: 359px) {
	.scc-actions {
		grid-template-columns: 1fr;
	}
}

@keyframes scc-sheet {
	from {
		transform: translateY(40px);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scc-root *,
	.scc-root *::after,
	.scc-blocker .scc-check input[type="checkbox"],
	.scc-blocker .scc-check input[type="checkbox"]::before {
		animation: none !important;
		transition: none !important;
	}
}
