/* Red's Consent – Banner. Farben/Schrift kommen aus den Elementor-Globals,
   außer sie sind in den Plugin-Einstellungen gesetzt (--reds-consent-*). */

.rcb-scope {
	--rcb-primary: var(--reds-consent-primary, var(--e-global-color-primary, #1f5f8b));
	--rcb-text: var(--reds-consent-text, var(--e-global-color-text, #1d2327));
	--rcb-bg: var(--reds-consent-bg, #ffffff);
	--rcb-btn-text: var(--reds-consent-btn-text, #ffffff);
	--rcb-radius: var(--reds-consent-radius, 10px);
	--rcb-muted: color-mix(in srgb, var(--rcb-text) 70%, var(--rcb-bg));
	--rcb-line: color-mix(in srgb, var(--rcb-text) 15%, var(--rcb-bg));
	--rcb-soft: color-mix(in srgb, var(--rcb-primary) 7%, var(--rcb-bg));
	font-family: var(--reds-consent-font, var(--e-global-typography-text-font-family));
	color: var(--rcb-text);
	font-size: 15px;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
}

.rcb-scope,
.rcb-scope *,
.rcb-scope *::before,
.rcb-scope *::after { box-sizing: border-box; }

.rcb-root [hidden],
.rcb-placeholder [hidden] { display: none !important; }

.rcb-probe { color: var(--rcb-primary); position: absolute; }

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

.rcb-banner {
	position: fixed;
	z-index: 2147483000;
	background: var(--rcb-bg);
	color: var(--rcb-text);
	border: 1px solid var(--rcb-line);
	border-radius: var(--rcb-radius);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
	padding: 22px 24px 18px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	animation: rcb-in .25s ease-out;
}

.rcb-pos-bottom { left: 50%; bottom: 16px; transform: translateX(-50%); width: min(980px, calc(100% - 32px)); }
.rcb-pos-bottom-left { left: 16px; bottom: 16px; width: min(440px, calc(100% - 32px)); }
.rcb-pos-center { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35), 0 12px 40px rgba(0, 0, 0, .25); }

@keyframes rcb-in { from { opacity: 0; } to { opacity: 1; } }

.rcb-scope .rcb-title {
	font-family: var(--reds-consent-font, var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family)));
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
	color: var(--rcb-text);
	letter-spacing: normal;
	text-transform: none;
}

.rcb-scope p { margin: 0 0 10px; font-size: inherit; color: inherit; }
.rcb-scope .rcb-small { font-size: 13px; color: var(--rcb-muted); }
.rcb-services { font-size: 14px; }

.rcb-setup {
	display: inline-block;
	font-size: 12px !important;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fff3cd;
	color: #664d03 !important;
}

.rcb-scope a { color: var(--rcb-primary); text-decoration: underline; text-underline-offset: 2px; }
.rcb-scope a:hover { text-decoration-thickness: 2px; }

.rcb-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; margin: 12px 0 0 !important; }

/* ---------- Buttons (Akzeptieren und Ablehnen bewusst gleichwertig) ---------- */

.rcb-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.rcb-scope .rcb-btn {
	flex: 1 1 160px;
	appearance: none;
	margin: 0;
	min-height: 44px;
	padding: 10px 18px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	border-radius: calc(var(--rcb-radius) * .7);
	border: 2px solid var(--rcb-primary);
	background: var(--rcb-primary);
	color: var(--rcb-btn-text);
	box-shadow: none;
	transition: filter .15s, background-color .15s;
}

.rcb-scope .rcb-btn:hover { filter: brightness(.92); background: var(--rcb-primary); color: var(--rcb-btn-text); }

.rcb-scope .rcb-btn-ghost,
.rcb-scope .rcb-btn-ghost:hover { background: transparent; color: var(--rcb-text); border-color: var(--rcb-line); }
.rcb-scope .rcb-btn-ghost:hover { border-color: var(--rcb-text); filter: none; }

.rcb-scope button:focus-visible,
.rcb-scope a:focus-visible,
.rcb-switch-input:focus-visible + .rcb-switch-track {
	outline: 3px solid var(--rcb-primary);
	outline-offset: 2px;
}

.rcb-pos-bottom-left .rcb-btn,
.rcb-pos-center .rcb-btn { flex-basis: 100%; }

/* ---------- Einstellungen ---------- */

.rcb-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	background: rgba(0, 0, 0, .45);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

html.rcb-modal-open { overflow: hidden; }

.rcb-modal-box {
	background: var(--rcb-bg);
	color: var(--rcb-text);
	border-radius: var(--rcb-radius);
	width: min(680px, 100%);
	max-height: calc(100vh - 32px);
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	animation: rcb-in .2s ease-out;
}

.rcb-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 10px; border-bottom: 1px solid var(--rcb-line); }
.rcb-modal-head .rcb-title { margin: 0; }
.rcb-modal-body { padding: 14px 22px; overflow-y: auto; }
.rcb-modal-foot { padding: 4px 22px 16px; border-top: 1px solid var(--rcb-line); }

.rcb-scope .rcb-close {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--rcb-text);
	font-size: 28px;
	line-height: 1;
	width: 44px;
	height: 44px;
	padding: 0;
	cursor: pointer;
	border-radius: 50%;
}
.rcb-scope .rcb-close:hover { background: var(--rcb-soft); color: var(--rcb-text); }

.rcb-cat { border: 1px solid var(--rcb-line); border-radius: calc(var(--rcb-radius) * .8); padding: 12px 14px; margin: 0 0 10px; }
.rcb-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rcb-scope .rcb-cat h3 { font-size: 16px; font-weight: 700; margin: 0; color: var(--rcb-text); font-family: inherit; text-transform: none; letter-spacing: normal; }
.rcb-cat > .rcb-small { margin: 6px 0 4px; }

.rcb-scope .rcb-link-btn {
	appearance: none;
	background: none;
	border: 0;
	padding: 4px 0;
	margin: 0;
	font: inherit;
	font-size: 14px;
	color: var(--rcb-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.rcb-scope .rcb-link-btn:hover { background: none; color: var(--rcb-primary); }

.rcb-cat-details { margin-top: 8px; }
.rcb-svc { background: var(--rcb-soft); border-radius: calc(var(--rcb-radius) * .6); padding: 10px 12px; margin-top: 8px; font-size: 14px; }
.rcb-svc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rcb-svc-meta { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 8px 0 0; font-size: 13px; }
.rcb-svc-meta dt { font-weight: 600; margin: 0; }
.rcb-svc-meta dd { margin: 0; overflow-wrap: anywhere; }

.rcb-table-wrap { overflow-x: auto; margin-top: 8px; }
.rcb-cookies { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 0; }
.rcb-cookies th, .rcb-cookies td { text-align: left; padding: 4px 6px; border: 0; border-bottom: 1px solid var(--rcb-line); vertical-align: top; background: transparent; color: inherit; }
.rcb-cookies th { font-weight: 600; }

/* Schalter */
.rcb-switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.rcb-switch-input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rcb-switch-track { width: 44px; height: 26px; border-radius: 999px; background: color-mix(in srgb, var(--rcb-text) 30%, var(--rcb-bg)); position: relative; transition: background .15s; }
.rcb-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.rcb-switch-input:checked + .rcb-switch-track { background: var(--rcb-primary); }
.rcb-switch-input:checked + .rcb-switch-track::after { transform: translateX(18px); }
.rcb-switch-input:indeterminate + .rcb-switch-track { background: color-mix(in srgb, var(--rcb-primary) 55%, var(--rcb-bg)); }
.rcb-switch-input:indeterminate + .rcb-switch-track::after { transform: translateX(9px); }
.rcb-switch-input:disabled + .rcb-switch-track { opacity: .55; cursor: not-allowed; }
.rcb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Schwebender Button zum Ändern/Widerrufen ---------- */

.rcb-scope .rcb-float {
	position: fixed;
	z-index: 2147482999;
	left: 16px;
	bottom: 16px;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: var(--rcb-primary);
	color: var(--rcb-btn-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	cursor: pointer;
}
.rcb-scope .rcb-float:hover { filter: brightness(.92); background: var(--rcb-primary); }

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

.rcb-placeholder {
	width: 100%;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: var(--rcb-soft);
	border: 1px solid var(--rcb-line);
	border-radius: var(--rcb-radius);
	padding: 20px;
	margin: 0 0 1em;
}
.rcb-ph-inner { max-width: 520px; font-size: 14px; }
.rcb-scope .rcb-ph-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.rcb-placeholder .rcb-btns { justify-content: center; }
.rcb-placeholder .rcb-btn { flex: 0 1 auto; }
.rcb-admin-hint { color: #8a4b00 !important; }

/* ---------- Mobil ---------- */

@media (max-width: 600px) {
	.rcb-banner { padding: 18px 16px 14px; }
	.rcb-pos-bottom, .rcb-pos-bottom-left { left: 8px; right: 8px; bottom: 8px; width: auto; transform: none; }
	.rcb-btn { flex-basis: 100%; }
	.rcb-modal { padding: 0; align-items: flex-end; }
	.rcb-modal-box { border-radius: var(--rcb-radius) var(--rcb-radius) 0 0; max-height: 92vh; }
}

@media (prefers-reduced-motion: reduce) {
	.rcb-banner, .rcb-modal-box { animation: none; }
	.rcb-switch-track, .rcb-switch-track::after, .rcb-btn { transition: none; }
}

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