/* 2S-Cookiebanner */

#ecb-root {
	--ecb-line: rgba(128, 128, 128, 0.32);
	--ecb-radius: 12px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ecb-text, #1a1a1a);
	text-align: left;
}

#ecb-root *,
#ecb-root *::before,
#ecb-root *::after {
	box-sizing: border-box;
}

#ecb-root [hidden] {
	display: none !important;
}

/* ---------- Dialog ---------- */

#ecb-root .ecb-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(0, 0, 0, 0.55);
}

#ecb-root .ecb-dialog {
	position: fixed;
	z-index: 999999;
	margin: 0;
	padding: 0;
	max-height: calc(100vh - 16px);
	max-height: calc(100dvh - 16px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--ecb-bg, #fff);
	color: var(--ecb-text, #1a1a1a);
	border: 1px solid var(--ecb-line);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
	outline: 0;
}

#ecb-root .ecb-inner {
	position: relative;
	margin: 0 auto;
	padding: 20px 22px 16px;
}

#ecb-root.ecb--bottom .ecb-dialog {
	left: 0;
	right: 0;
	bottom: 0;
	border-width: 1px 0 0;
}

#ecb-root.ecb--bottom .ecb-inner {
	max-width: 980px;
}

#ecb-root.ecb--corner .ecb-dialog {
	left: 16px;
	bottom: 16px;
	width: 440px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	border-radius: var(--ecb-radius);
}

#ecb-root.ecb--center .ecb-dialog {
	top: 50%;
	left: 50%;
	width: 600px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	transform: translate(-50%, -50%);
	border-radius: var(--ecb-radius);
}

/* ---------- Inhalt ---------- */

#ecb-root .ecb-title {
	margin: 0 32px 6px 0;
	padding: 0;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
}

#ecb-root .ecb-text p {
	margin: 0 0 8px;
	padding: 0;
	font-size: 1em;
	color: inherit;
}

#ecb-root a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#ecb-root .ecb-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

/* ---------- Kategorien ---------- */

#ecb-root .ecb-details {
	margin: 12px 0 4px;
	border-top: 1px solid var(--ecb-line);
}

#ecb-root .ecb-cat {
	padding: 12px 0;
	border-bottom: 1px solid var(--ecb-line);
}

#ecb-root .ecb-switch {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 600;
	cursor: pointer;
}

#ecb-root .ecb-switch input {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: 0 0 auto;
	width: 42px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(128, 128, 128, 0.55);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

#ecb-root .ecb-switch input::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	transition: transform 0.15s ease;
}

#ecb-root .ecb-switch input::after {
	content: none;
}

#ecb-root .ecb-switch input:checked {
	background: var(--ecb-primary, #1f3a5f);
}

#ecb-root .ecb-switch input:checked::before {
	transform: translateX(18px);
}

#ecb-root .ecb-switch input:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

#ecb-root .ecb-cat__desc {
	margin: 6px 0 0;
	padding: 0;
	font-size: 0.93em;
	opacity: 0.85;
	color: inherit;
}

#ecb-root .ecb-services {
	margin: 6px 0 0;
	font-size: 0.9em;
}

#ecb-root .ecb-services summary {
	display: inline-block;
	padding: 2px 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	list-style: none;
}

#ecb-root .ecb-services summary::-webkit-details-marker {
	display: none;
}

#ecb-root .ecb-services ul {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

#ecb-root .ecb-services li {
	margin: 0 0 8px;
	padding: 8px 10px;
	border: 1px solid var(--ecb-line);
	border-radius: 8px;
	list-style: none;
}

#ecb-root .ecb-services li::before {
	content: none;
}

#ecb-root .ecb-services li strong,
#ecb-root .ecb-services li span {
	display: block;
}

/* ---------- Schaltflächen ---------- */

#ecb-root .ecb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0;
}

/* Bei geöffneten Details bleiben die Schaltflächen beim Scrollen sichtbar. */
@media (min-width: 601px) {
	#ecb-root .ecb-details:not([hidden]) ~ .ecb-actions {
		position: sticky;
		bottom: 0;
		margin-top: 0;
		padding: 12px 0;
		background: var(--ecb-bg, #fff);
	}
}

#ecb-root .ecb-btn {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 170px;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	border: 2px solid var(--ecb-primary, #1f3a5f);
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
}

/* Akzeptieren und Ablehnen teilen sich bewusst genau diese eine Regel. */
#ecb-root .ecb-btn--main {
	background: var(--ecb-primary, #1f3a5f);
	color: var(--ecb-on-primary, #fff);
}

#ecb-root .ecb-btn--plain {
	background: transparent;
	color: inherit;
	border-color: var(--ecb-line);
}

#ecb-root .ecb-btn:hover {
	filter: brightness(1.12);
}

#ecb-root .ecb-btn--plain:hover {
	filter: none;
	border-color: currentColor;
}

#ecb-root button:focus-visible,
#ecb-root a:focus-visible,
#ecb-root input:focus-visible,
#ecb-root summary:focus-visible,
.ecb-ph button:focus-visible {
	outline: 3px solid var(--ecb-primary, #1f3a5f);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--ecb-bg, #fff);
}

/* ---------- Fuß ---------- */

#ecb-root .ecb-foot {
	margin: 12px 0 0;
	font-size: 0.87em;
}

#ecb-root .ecb-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
}

#ecb-root .ecb-meta {
	margin: 10px 0 0;
	padding: 0;
	opacity: 0.8;
	color: inherit;
	word-break: break-word;
}

#ecb-root .ecb-meta code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: 0.95em;
}

/* ---------- Schaltfläche zum Wiederöffnen ---------- */

#ecb-root .ecb-fab {
	position: fixed;
	left: 14px;
	bottom: 14px;
	z-index: 999990;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--ecb-line);
	border-radius: 50%;
	background: var(--ecb-bg, #fff);
	color: var(--ecb-text, #1a1a1a);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	cursor: pointer;
}

/* ---------- Platzhalter für blockierte iframes ---------- */

.ecb-ph {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 220px;
	padding: 20px;
	border-radius: 8px;
	background: #1e2227;
	color: #fff;
	font-size: 15px;
	line-height: 1.45;
	text-align: center;
}

.ecb-ph--fill {
	position: absolute;
	inset: 0;
	min-height: 0;
	overflow: auto;
}

.ecb-ph .ecb-ph__title,
.ecb-ph .ecb-ph__text {
	max-width: 46ch;
	margin: 0;
	padding: 0;
	color: inherit;
}

/* Vertikal zentrieren über automatische Ränder: Läuft der Inhalt über, bleibt der Anfang erreichbar. */
.ecb-ph > .ecb-ph__title {
	margin-top: auto;
}

.ecb-ph__title {
	font-weight: 700;
}

.ecb-ph__text {
	font-size: 0.92em;
	opacity: 0.9;
}

.ecb-ph a {
	color: inherit;
	text-decoration: underline;
}

.ecb-ph > .ecb-ph__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 6px 0 auto;
}

.ecb-ph__btn {
	-webkit-appearance: none;
	appearance: none;
	min-height: 44px;
	margin: 0;
	padding: 9px 16px;
	border: 2px solid #fff;
	border-radius: 8px;
	background: #fff;
	color: #1e2227;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.ecb-ph__btn--plain {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.55);
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 600px) {
	#ecb-root.ecb--corner .ecb-dialog,
	#ecb-root.ecb--center .ecb-dialog {
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-width: none;
		max-height: calc(100vh - 16px);
		max-height: calc(100dvh - 16px);
		transform: none;
		border-width: 1px 0 0;
		border-radius: var(--ecb-radius) var(--ecb-radius) 0 0;
	}

	#ecb-root .ecb-inner {
		padding: 16px 16px 14px;
	}

	#ecb-root .ecb-btn {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	#ecb-root .ecb-switch input,
	#ecb-root .ecb-switch input::before {
		transition: none;
	}
}
