/*
 * Einwilligungs-Banner – Aussehen wie auf www.richtig-helfen.com (Theme „richtig-helfen“ 0.28.0).
 * Farben und Formen auf das Banner begrenzt, damit Elementor/FunnelKit-Seiten unberührt bleiben.
 */
.rh-consent,
.rh-footer__consent {
	--rh-ground: #FFF8F5;
	--rh-blush: #FBE6EC;
	--rh-white: #FFFFFF;
	--rh-plum: #3B2434;
	--rh-muted: #5E4656;
	--rh-soft: #6B5563;
	--rh-accent: #B0136F;
	--rh-accent-dark: #8A0E57;
	--rh-line: #EAD3DF;
	--rh-font: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
	--rh-radius-l: 32px;
}

.rh-consent {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 100000;
	box-sizing: border-box;
	width: min(520px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px;
	background: var(--rh-white);
	border: 1px solid var(--rh-line);
	border-radius: var(--rh-radius-l);
	box-shadow: 0 12px 40px rgba(59, 36, 52, 0.18);
	color: var(--rh-plum);
	font-family: var(--rh-font);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.rh-consent *,
.rh-consent *::before,
.rh-consent *::after {
	box-sizing: border-box;
}

.rh-consent[hidden] {
	display: none;
}

.rh-consent :focus-visible,
.rh-footer__consent :focus-visible {
	outline: 3px solid var(--rh-plum);
	outline-offset: 3px;
}

.rh-consent .rh-consent__title {
	margin: 0 0 8px;
	padding: 0;
	font-family: var(--rh-font);
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--rh-plum);
	text-transform: none;
	letter-spacing: normal;
}

.rh-consent .rh-consent__text {
	margin: 0 0 16px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--rh-muted);
}

.rh-consent .rh-consent__details {
	display: grid;
	gap: 12px;
	margin: 0 0 16px;
}

.rh-consent .rh-consent__details[hidden] {
	display: none;
}

.rh-consent .rh-consent__cat {
	padding: 12px 14px;
	border-radius: 16px;
	background: var(--rh-ground);
}

.rh-consent .rh-consent__switch {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	font-weight: 800;
	cursor: pointer;
}

.rh-consent .rh-consent__switch input {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--rh-accent);
}

.rh-consent .rh-consent__cat-text {
	margin: 0;
	padding-left: 32px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--rh-muted);
}

.rh-consent .rh-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	align-items: center;
}

.rh-consent .rh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px;
	border: 2px solid var(--rh-accent);
	border-radius: 999px;
	background: var(--rh-accent);
	color: var(--rh-white);
	font-family: var(--rh-font);
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
}

.rh-consent .rh-btn:hover {
	background: var(--rh-accent-dark);
	border-color: var(--rh-accent-dark);
	color: var(--rh-white);
}

.rh-consent .rh-btn--outline {
	background: var(--rh-white);
	color: var(--rh-accent);
}

.rh-consent .rh-btn--outline:hover {
	background: var(--rh-blush);
	color: var(--rh-accent-dark);
}

.rh-consent .rh-consent__btn[hidden],
.rh-consent .rh-consent__more[hidden] {
	display: none;
}

.rh-consent .rh-consent__more,
.rh-consent .rh-consent__btn[data-rh-consent="save"] {
	grid-column: 1 / -1;
}

.rh-consent .rh-consent__more {
	min-height: 44px;
	margin: 0;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--rh-accent);
	font-family: var(--rh-font);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}

.rh-consent .rh-consent__more:hover {
	background: none;
	color: var(--rh-accent-dark);
}

.rh-consent .rh-consent__links {
	display: flex;
	gap: 16px;
	margin: 8px 0 0;
	font-size: 0.8125rem;
}

.rh-consent .rh-consent__links a {
	color: var(--rh-soft);
	text-decoration: underline;
}

@media (max-width: 640px) {
	.rh-consent {
		left: 0;
		bottom: 0;
		width: 100%;
		max-height: 85vh;
		padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
		border-radius: var(--rh-radius-l) var(--rh-radius-l) 0 0;
	}
}

/* Link „Cookie-Einstellungen“ (Shortcode [rh_cookie_einstellungen] oder automatisch am Seitenende). */
.rh-footer__consent {
	margin: 0;
	font-family: inherit;
}

.rh-footer__consent--auto {
	padding: 12px 16px 20px;
	text-align: center;
	font-size: 0.8125rem;
}

.rh-footer__consent-btn {
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}

.rh-footer__consent-btn:hover {
	background: none;
	color: inherit;
}
