/* sehcomCNST – Banner, Dialog, Cookie-Button. Farben kommen als CSS-Variablen aus den Einstellungen. */

.sehcomcnst-root,
.sehcomcnst-root *,
.sehcomcnst-placeholder,
.sehcomcnst-placeholder * {
	box-sizing: border-box;
}

.sehcomcnst-root [hidden] {
	display: none !important;
}

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

.sehcomcnst-root .sehcomcnst-btn,
.sehcomcnst-placeholder .sehcomcnst-btn {
	display: inline-block;
	margin: 0;
	padding: 0.55em 1.1em;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	color: var(--sehcomcnst-btn-text, #fff);
	background: var(--sehcomcnst-btn-bg, #333);
	border: 1px solid var(--sehcomcnst-btn-border, #333);
	border-radius: var(--sehcomcnst-radius, 6px);
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s ease;
}

.sehcomcnst-root .sehcomcnst-btn:hover,
.sehcomcnst-placeholder .sehcomcnst-btn:hover {
	background: var(--sehcomcnst-btn-hover, #000);
	border-color: var(--sehcomcnst-btn-hover, #000);
}

.sehcomcnst-root .sehcomcnst-btn-link {
	color: var(--sehcomcnst-link, #333);
	background: transparent;
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sehcomcnst-root .sehcomcnst-btn-link:hover {
	background: transparent;
	border-color: transparent;
	text-decoration-thickness: 2px;
}

.sehcomcnst-root button:focus-visible,
.sehcomcnst-root a:focus-visible,
.sehcomcnst-root input:focus-visible {
	outline: 2px solid var(--sehcomcnst-link, #333);
	outline-offset: 2px;
}

/* ---------- Banner ---------- */

.sehcomcnst-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	font-family: var(--sehcomcnst-font, inherit);
	font-size: 14px;
	line-height: 1.5;
	color: var(--sehcomcnst-text, #333);
	background: var(--sehcomcnst-bg, #fff);
	border-top: 1px solid rgba(127, 127, 127, 0.25);
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.sehcomcnst-banner-inner {
	display: flex;
	align-items: center;
	gap: 16px 24px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 20px;
}

.sehcomcnst-layout-box .sehcomcnst-banner {
	left: 50%;
	right: auto;
	bottom: 16px;
	width: calc(100% - 32px);
	max-width: 760px;
	transform: translateX(-50%);
	border: 1px solid rgba(127, 127, 127, 0.25);
	border-radius: var(--sehcomcnst-radius, 6px);
}

.sehcomcnst-layout-box .sehcomcnst-banner-inner {
	flex-direction: column;
	align-items: flex-start;
}

.sehcomcnst-root .sehcomcnst-text {
	flex: 1 1 auto;
	margin: 0;
	color: inherit;
}

.sehcomcnst-root a {
	color: var(--sehcomcnst-link, #333);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sehcomcnst-links {
	white-space: nowrap;
}

.sehcomcnst-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 0 0 auto;
}

@media (max-width: 760px) {
	.sehcomcnst-banner-inner {
		flex-direction: column;
		align-items: stretch;
		padding: 12px 16px;
	}

	.sehcomcnst-banner .sehcomcnst-actions {
		flex-direction: column;
	}

	.sehcomcnst-banner .sehcomcnst-btn {
		width: 100%;
		text-align: center;
	}

	.sehcomcnst-banner {
		max-height: 45vh;
		overflow-y: auto;
	}
}

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

.sehcomcnst-dialog {
	width: calc(100% - 32px);
	max-width: 560px;
	max-height: calc(100vh - 48px);
	margin: auto;
	padding: 0;
	font-family: var(--sehcomcnst-font, inherit);
	font-size: 14px;
	line-height: 1.5;
	color: var(--sehcomcnst-text, #333);
	background: var(--sehcomcnst-bg-solid, #fff);
	border: 1px solid rgba(127, 127, 127, 0.25);
	border-radius: var(--sehcomcnst-radius, 6px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.sehcomcnst-dialog::backdrop {
	background: rgba(0, 0, 0, 0.25);
}

.sehcomcnst-dialog-inner {
	position: relative;
	margin: 0;
	padding: 24px;
}

.sehcomcnst-dialog h2 {
	margin: 0 32px 8px 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
}

.sehcomcnst-dialog .sehcomcnst-text {
	margin-bottom: 16px;
}

.sehcomcnst-root .sehcomcnst-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: inherit;
	background: transparent;
	border: 0;
	cursor: pointer;
	opacity: 0.6;
}

.sehcomcnst-root .sehcomcnst-close:hover {
	opacity: 1;
}

.sehcomcnst-cat {
	padding: 12px 0;
	border-top: 1px solid rgba(127, 127, 127, 0.2);
}

.sehcomcnst-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.sehcomcnst-cat-label {
	font-weight: 600;
	cursor: pointer;
}

.sehcomcnst-cat details summary {
	margin-top: 2px;
	font-size: 13px;
	cursor: pointer;
	opacity: 0.75;
}

.sehcomcnst-cat-body p {
	margin: 8px 0;
}

.sehcomcnst-service {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 8px 0;
	padding: 8px 10px;
	border-left: 2px solid rgba(127, 127, 127, 0.35);
}

.sehcomcnst-small {
	font-size: 12.5px;
	opacity: 0.85;
}

.sehcomcnst-meta {
	margin: 16px 0 0;
	font-size: 12.5px;
	opacity: 0.8;
}

.sehcomcnst-meta [data-sehcomcnst-meta] {
	display: block;
	margin-top: 4px;
	word-break: break-all;
}

.sehcomcnst-dialog .sehcomcnst-actions {
	margin-top: 16px;
}

/* Schalter */
.sehcomcnst-root input.sehcomcnst-switch {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: 0 0 auto;
	width: 40px;
	height: 22px;
	margin: 0;
	background: rgba(127, 127, 127, 0.45);
	border: 0;
	border-radius: 11px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.sehcomcnst-root input.sehcomcnst-switch::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.15s ease;
}

.sehcomcnst-root input.sehcomcnst-switch:checked {
	background: var(--sehcomcnst-btn-bg, #333);
}

.sehcomcnst-root input.sehcomcnst-switch:checked::before {
	transform: translateX(18px);
	background: var(--sehcomcnst-btn-text, #fff);
}

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

/* ---------- Cookie-Button ---------- */

.sehcomcnst-root .sehcomcnst-float {
	position: fixed;
	bottom: var(--sehcomcnst-offset, 16px);
	z-index: 2147482999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	color: var(--sehcomcnst-text, #333);
	background: var(--sehcomcnst-bg, #fff);
	border: 1px solid rgba(127, 127, 127, 0.3);
	border-radius: 50%;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.15s ease;
}

.sehcomcnst-root .sehcomcnst-float:hover,
.sehcomcnst-root .sehcomcnst-float:focus-visible {
	opacity: 1;
}

.sehcomcnst-side-right .sehcomcnst-float {
	right: var(--sehcomcnst-offset, 16px);
}

.sehcomcnst-side-left .sehcomcnst-float {
	left: var(--sehcomcnst-offset, 16px);
}

@media print {
	.sehcomcnst-root {
		display: none !important;
	}
}

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

.sehcomcnst-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 180px;
	margin: 0 0 1em;
	padding: 24px;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	background: rgba(127, 127, 127, 0.1);
	border: 1px solid rgba(127, 127, 127, 0.25);
	border-radius: 6px;
}

.sehcomcnst-placeholder p {
	max-width: 520px;
	margin: 0;
}

.sehcomcnst-placeholder-meta {
	font-size: 12.5px;
	opacity: 0.75;
}

.sehcomcnst-placeholder .sehcomcnst-btn {
	color: #fff;
	background: #333;
	border-color: #333;
}

@media (prefers-reduced-motion: reduce) {
	.sehcomcnst-root * {
		transition: none !important;
	}
}
