/*
 * religio:connect – Complianz-Einwilligungsbanner im Stil der Seite
 * (Farben, Verlauf und Rundungen wie im Impressum-/Datenschutz-Fenster).
 */

html body .cmplz-cookiebanner {
	--cmplz_banner_background_color: #ffffff;
	--cmplz_banner_border_color: transparent;
	--cmplz_banner_border_width: 0;
	--cmplz_banner_border_radius: 20px;
	--cmplz_banner_width: 500px;
	--cmplz_banner_margin: 10px;
	--cmplz_text_color: #4A5560;
	--cmplz_text_font_size: 14px;
	--cmplz_text_line_height: 1.6;
	--cmplz_title_font_size: 20px;
	--cmplz_hyperlink_color: #0E4C72;
	--cmplz_link_font_size: 13px;
	--cmplz_category_header_title_font_size: 14px;
	--cmplz_category_header_active_font_size: 12px;
	--cmplz_category_header_always_active_color: #12718F;
	--cmplz_category_body_font_size: 13px;
	--cmplz_button_border_radius: 999px;
	--cmplz_button_font_size: 14px;
	--cmplz_button_accept_background_color: #0E4C72;
	--cmplz_button_accept_border_color: #0E4C72;
	--cmplz_button_accept_text_color: #ffffff;
	--cmplz_button_deny_background_color: #ffffff;
	--cmplz_button_deny_border_color: #0E4C72;
	--cmplz_button_deny_text_color: #0E4C72;
	--cmplz_button_settings_background_color: #F5F5F7;
	--cmplz_button_settings_border_color: #F5F5F7;
	--cmplz_button_settings_text_color: #26314E;
	--cmplz_slider_active_color: #12718F;
	--cmplz_slider_inactive_color: #C5CDD4;
	--cmplz_slider_bullet_color: #ffffff;

	font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	padding: 0 22px 18px;
	box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6), 0 12px 30px -12px rgba(2, 8, 18, .35);
	overflow-x: hidden;
}

/* Kopfzeile mit dem blauen Verlauf der Seite */
html body .cmplz-cookiebanner .cmplz-header {
	margin: 0 -22px;
	padding: 18px 22px;
	background: linear-gradient(150deg, #136987 0%, #0E4C72 52%, #0A2438 100%);
	grid-template-columns: 1fr auto;
	gap: 16px;
}
html body .cmplz-cookiebanner .cmplz-logo { display: none; }
html body .cmplz-cookiebanner .cmplz-header .cmplz-title {
	display: block;
	grid-column-start: 1;
	justify-self: start;
	margin: 0;
	color: #ffffff;
	font-size: var(--cmplz_title_font_size);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.02em;
}
html body .cmplz-cookiebanner .cmplz-close {
	grid-column-start: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .3);
	color: #ffffff;
	transition: background 200ms ease;
}
html body .cmplz-cookiebanner .cmplz-close:hover { background: rgba(255, 255, 255, .24); }
html body .cmplz-cookiebanner .cmplz-close svg { width: 14px; height: 14px; }
html body .cmplz-cookiebanner .cmplz-divider-header { display: none; }

/* Text */
html body .cmplz-cookiebanner .cmplz-body { margin-top: 6px; }
html body .cmplz-cookiebanner .cmplz-message,
html body .cmplz-cookiebanner .cmplz-message p {
	margin: 0;
	color: var(--cmplz_text_color);
	font-size: var(--cmplz_text_font_size);
	line-height: var(--cmplz_text_line_height);
	text-wrap: pretty;
}

/* Kategorien (Einstellungen) */
html body .cmplz-cookiebanner .cmplz-categories .cmplz-category {
	background: #F5F5F7;
	border-radius: 14px;
}
html body .cmplz-cookiebanner .cmplz-category .cmplz-category-title {
	color: #26314E;
	font-weight: 600;
}

/* Buttons als Pillen wie auf der Seite */
html body .cmplz-cookiebanner .cmplz-buttons { gap: 10px; }
html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	min-height: 44px;
	padding: 10px 16px;
	border: 1px solid;
	font-family: inherit;
	font-weight: 600;
	letter-spacing: .01em;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
html body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:hover { transform: translateY(-1px); }
html body .cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover { background-color: #0A2438; border-color: #0A2438; }
html body .cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover { background-color: #EEF3F7; }
html body .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences:hover,
html body .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences:hover { background-color: #E8EBEF; border-color: #E8EBEF; }

/* Links: „Cookie-Richtlinie“ und „Datenschutzerklärung“ zeigen auf dieselbe Seite – nur einmal anzeigen. */
html body .cmplz-cookiebanner .cmplz-documents .cmplz-link.cookie-statement { display: none; }
html body .cmplz-cookiebanner .cmplz-documents ul { gap: 18px; }
html body .cmplz-cookiebanner .cmplz-links .cmplz-link {
	color: var(--cmplz_hyperlink_color);
	font-weight: 600;
	text-underline-offset: 2px;
}

/* Desktop: links unten, damit der Instagram-Button rechts frei bleibt */
@media (min-width: 768px) {
	html body .cmplz-cookiebanner.cmplz-bottom-right,
	html body .cmplz-cookiebanner.cmplz-bottom-left {
		left: 24px;
		right: auto;
		bottom: 24px;
		width: var(--cmplz_banner_width);
		min-width: 0;
		max-width: calc(100vw - 48px);
	}
}

/* Mobil: Karte mit Abstand zum Rand */
@media (max-width: 767px) {
	html body .cmplz-cookiebanner {
		left: 10px;
		right: 10px;
		bottom: 10px;
		width: auto;
		max-height: calc(100vh - 20px);
	}
	html body .cmplz-cookiebanner .cmplz-buttons { gap: 8px; }
}

/* Während Impressum/Datenschutz geöffnet sind, liegt der Banner unter dem Fenster. */
html.rc-legal-open body .cmplz-cookiebanner { z-index: 100; }

/* Reiter „Datenschutz-Einstellungen“ zum erneuten Öffnen (Desktop) */
html body #cmplz-manage-consent .cmplz-manage-consent {
	left: 24px;
	right: auto;
	min-width: 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 14px 14px 0 0;
	background: linear-gradient(150deg, #136987 0%, #0E4C72 52%, #0A2438 100%);
	color: #ffffff;
	font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	box-shadow: 0 -8px 24px -12px rgba(2, 8, 18, .5);
}
