/* Wohntraum Steiger – Cookie Consent (Theme-Farben) */
:root {
	--wtscc-primary: #9B1B30;
	--wtscc-primary-dark: #6B1228;
	--wtscc-text: #1A1A1A;
	--wtscc-muted: #4A4A4A;
	--wtscc-border: #E8E8E8;
	--wtscc-bg: #FFFFFF;
	--wtscc-overlay: rgba(26, 26, 26, 0.55);
}

/* Nur Schriften ersetzen – Layout/Farben bleiben über main.css erhalten */
body.wtscc-no-external-fonts {
	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-serif: Georgia, "Times New Roman", Times, serif;
}

.wtscc-root[hidden],
.wtscc-banner[hidden],
.wtscc-modal[hidden] {
	display: none !important;
}

.wtscc-root:not([hidden]) .wtscc-banner:not([hidden]) {
	display: block;
}

/* Banner */
.wtscc-banner {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 99999;
	padding: 1rem;
	pointer-events: none;
}

.wtscc-banner__inner {
	max-width: 920px;
	margin: 0 auto;
	padding: 1.5rem 1.75rem;
	background: var(--wtscc-bg);
	border: 1px solid var(--wtscc-border);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
	pointer-events: auto;
}

.wtscc-banner__title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	color: var(--wtscc-text);
	line-height: 1.3;
}

.wtscc-banner__text {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--wtscc-muted);
}

.wtscc-banner__legal {
	margin: 0 0 1rem;
	font-size: 0.875rem;
}

.wtscc-banner__legal a {
	color: var(--wtscc-primary);
	text-decoration: underline;
}

.wtscc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.wtscc-banner__settings {
	display: inline-block;
	padding: 0;
	border: none;
	background: none;
	color: var(--wtscc-primary);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.wtscc-banner__settings:hover {
	color: var(--wtscc-primary-dark);
}

/* Gleichwertige Buttons (Prüfbericht: gleiche Größe, Form, keine Nudging-Farben) */
.wtscc-btn {
	flex: 1 1 140px;
	min-height: 44px;
	padding: 0.65rem 1.25rem;
	border: 2px solid var(--wtscc-primary);
	border-radius: 8px;
	background: var(--wtscc-bg);
	color: var(--wtscc-primary);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.wtscc-btn:hover,
.wtscc-btn:focus {
	background: var(--wtscc-primary);
	color: #fff;
	outline: none;
}

.wtscc-btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(155, 27, 48, 0.35);
}

/* Modal */
.wtscc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.wtscc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: var(--wtscc-overlay);
}

.wtscc-modal__panel {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: min(90vh, 720px);
	overflow-y: auto;
	padding: 1.5rem 1.75rem;
	background: var(--wtscc-bg);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.wtscc-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.wtscc-modal__title {
	margin: 0;
	font-size: 1.35rem;
	color: var(--wtscc-text);
}

.wtscc-modal__close {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 8px;
	background: #F5F5F5;
	color: var(--wtscc-text);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.wtscc-modal__intro {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--wtscc-muted);
}

.wtscc-category {
	margin-bottom: 1rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--wtscc-border);
	border-radius: 12px;
	background: #FAFAFA;
}

.wtscc-category__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.wtscc-category__title {
	margin: 0;
	font-size: 1rem;
	color: var(--wtscc-text);
}

.wtscc-category__badge {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wtscc-primary);
}

.wtscc-category__desc {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--wtscc-muted);
}

.wtscc-category__list {
	margin: 0;
	padding-left: 1.2rem;
	font-size: 0.85rem;
	color: var(--wtscc-muted);
}

.wtscc-category__list li {
	margin-bottom: 0.25rem;
}

.wtscc-toggle {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
	flex-shrink: 0;
}

.wtscc-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.wtscc-toggle__slider {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #ccc;
	cursor: pointer;
	transition: background 0.2s ease;
}

.wtscc-toggle__slider::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s ease;
}

.wtscc-toggle input:checked + .wtscc-toggle__slider {
	background: var(--wtscc-primary);
}

.wtscc-toggle input:checked + .wtscc-toggle__slider::before {
	transform: translateX(22px);
}

.wtscc-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.wtscc-modal__legal {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	text-align: center;
}

.wtscc-modal__legal a {
	color: var(--wtscc-primary);
}

/* Schwebendes Cookie-Icon – immer sichtbar */
.wtscc-fab {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99998;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0;
	border: 2px solid #B87333;
	border-radius: 999px;
	background: linear-gradient(145deg, #F8DC9A 0%, #EEB862 48%, #D9953F 100%);
	color: #5C3D2E;
	box-shadow: 0 8px 22px rgba(92, 61, 46, 0.22);
	cursor: pointer;
	overflow: hidden;
	transition: width 0.25s ease, padding 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	width: 52px;
	height: 52px;
	justify-content: center;
}

.wtscc-fab:hover,
.wtscc-fab:focus {
	width: auto;
	padding: 0 1rem 0 0.55rem;
	background: linear-gradient(145deg, var(--wtscc-primary) 0%, var(--wtscc-primary-dark) 100%);
	border-color: var(--wtscc-primary-dark);
	color: #fff;
	outline: none;
	box-shadow: 0 10px 28px rgba(155, 27, 48, 0.35);
}

.wtscc-fab:focus-visible {
	box-shadow: 0 0 0 3px rgba(155, 27, 48, 0.35), 0 10px 28px rgba(155, 27, 48, 0.35);
}

.wtscc-fab__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.28);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.wtscc-fab__icon {
	display: block;
	flex-shrink: 0;
	filter: drop-shadow(0 1px 1px rgba(92, 61, 46, 0.2));
}

.wtscc-fab:hover .wtscc-cookie__body,
.wtscc-fab:focus .wtscc-cookie__body {
	fill: #fff8ef;
	stroke: rgba(255, 255, 255, 0.95);
}

.wtscc-fab:hover .wtscc-cookie__bite,
.wtscc-fab:focus .wtscc-cookie__bite {
	fill: var(--wtscc-primary-dark);
}

.wtscc-fab:hover .wtscc-cookie__chip,
.wtscc-fab:focus .wtscc-cookie__chip {
	fill: rgba(255, 255, 255, 0.92);
}

.wtscc-fab:hover .wtscc-fab__icon-wrap,
.wtscc-fab:focus .wtscc-fab__icon-wrap {
	background: rgba(255, 255, 255, 0.16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.wtscc-fab__label {
	max-width: 0;
	opacity: 0;
	overflow: hidden;
	white-space: nowrap;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: max-width 0.25s ease, opacity 0.2s ease;
}

.wtscc-fab:hover .wtscc-fab__label,
.wtscc-fab:focus .wtscc-fab__label {
	max-width: 180px;
	opacity: 1;
}

@media (max-width: 600px) {
	.wtscc-banner__inner,
	.wtscc-modal__panel {
		padding: 1.25rem;
	}

	.wtscc-banner__actions,
	.wtscc-modal__actions {
		flex-direction: column;
	}

	.wtscc-btn {
		flex: 1 1 auto;
		width: 100%;
	}

	.wtscc-fab {
		left: 12px;
		bottom: 12px;
	}
}
