/*
 * Cookie-Banner „CookieHint and Consent“ (reDim) im Look von GEMABA.
 *
 * Basis-Skin im Plugin: style-flatline.css · Layout: flyout-right · Position: modal
 * (Standard-Ansicht für Projektteam-Joomla-Seiten, wie swo.projektteam-ag.de).
 * Diese Datei liegt bewusst im Template (nicht im Plugin), damit Plugin-Updates sie nicht überschreiben.
 * Die Skin-Regeln arbeiten mit !important – daher hier höhere Spezifität (html body …) + !important.
 *
 * Farben (WCAG-geprüft, identisch mit Backend-Theme):
 *   #2f4e99 Buttons (weiße Schrift 7,9:1) · #395eb8 Markenblau (weiße Schrift 6,1:1, Links 6,1:1 auf Weiß)
 *   #4d678e Graublau Text (5,8:1 auf Weiß) · #d3e3ed Hellblau (Hover mit dunkler Schrift #1f2d4d, 10,4:1)
 */

html body #redim-cookiehint.redim-tpl {
	--redim-cc-skin-btn-bg: #2f4e99 !important;
	--redim-cc-skin-btn-fg: #ffffff !important;
	--redim-cc-skin-accent: #395eb8 !important;
	--redim-cc-skin-surface: #ffffff !important;
	--redim-cc-skin-divider: #d3e3ed !important;
	--redim-cc-skin-muted: #4d678e !important;
	font-family: "Lato", sans-serif !important;
	background: #ffffff !important;
	color: #1f2d4d !important;
	border: 0 !important;
	border-top: 6px solid #395eb8 !important;
	border-radius: 0 !important;
	box-shadow: 0 12px 40px rgba(31, 45, 77, .25) !important;
}

/* Abdunklung hinter dem Dialog in Markenton */
html body #redim-cookiehint-modal {
	background: rgba(31, 45, 77, .45) !important;
}

/* Kopf: Font-Awesome-Icon statt PNG, Überschrift in Markenblau */
html body #redim-cookiehint.redim-tpl .redim-cc-head img,
html body #redim-cookiehint.redim-tpl .redim-cc-head .redim-cc-icon { display: none !important; }
html body #redim-cookiehint.redim-tpl .redim-cc-head::before {
	content: "\f564"; /* fa-cookie-bite */
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
	font-size: 26px !important;
	line-height: 1 !important;
	color: #395eb8 !important;
}
html body #redim-cookiehint.redim-tpl .redim-cc-headline {
	font-family: "Lato", sans-serif !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #395eb8 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	border-bottom: 0 !important;
	padding-bottom: 8px !important;
	position: relative !important;
}
html body #redim-cookiehint.redim-tpl .redim-cc-headline::after {
	content: "" !important;
	position: absolute !important;
	left: 0 !important;
	bottom: 0 !important;
	width: 50px !important;
	height: 2px !important;
	background: #d3e3ed !important;
}

html body #redim-cookiehint.redim-tpl .redim-cc-content {
	font-size: 15px !important;
	line-height: 1.6 !important;
	color: #1f2d4d !important;
}
html body #redim-cookiehint.redim-tpl .redim-cc-content::first-letter {
	font-size: inherit !important;
	font-weight: inherit !important;
	padding: 0 !important;
}

/* Buttons: abgerundet wie „absenden“ auf der Website; Akzeptieren und Ablehnen gleichwertig */
html body #redim-cookiehint.redim-tpl .redim-cc-btn {
	font-family: "Lato", sans-serif !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: .02em !important;
	text-transform: none !important;
	border-radius: 999px !important;
	transition: background-color .2s ease-in-out, color .2s ease-in-out !important;
}
/* Buttons nie unterstreichen (falls ein Layout sie als <a> rendert) */
html body #redim-cookiehint.redim-tpl a.redim-cc-btn,
html body #redim-cookiehint.redim-tpl a#cookiehintsubmit,
html body #redim-cookiehint.redim-tpl a#cookiehintsubmitno { text-decoration: none !important; }
html body #redim-cookiehint.redim-tpl .redim-cc-accept-all,
html body #redim-cookiehint.redim-tpl .redim-cc-reject,
html body #redim-cookiehint.redim-tpl #cookiehintsubmit,
html body #redim-cookiehint.redim-tpl #cookiehintsubmitno {
	background: #2f4e99 !important;
	color: #ffffff !important;
	border: 1px solid #2f4e99 !important;
}
html body #redim-cookiehint.redim-tpl .redim-cc-accept-all:hover,
html body #redim-cookiehint.redim-tpl .redim-cc-reject:hover,
html body #redim-cookiehint.redim-tpl #cookiehintsubmit:hover,
html body #redim-cookiehint.redim-tpl #cookiehintsubmitno:hover,
html body #redim-cookiehint.redim-tpl .redim-cc-save:hover,
html body #redim-cookiehint.redim-tpl .redim-cc-toggle-details:hover {
	background: #d3e3ed !important;
	border-color: #d3e3ed !important;
	color: #1f2d4d !important;
	box-shadow: none !important;
}
html body #redim-cookiehint.redim-tpl .redim-cc-toggle-details,
html body #redim-cookiehint.redim-tpl .redim-cc-save {
	background: #ffffff !important;
	color: #2f4e99 !important;
	border: 1px solid #395eb8 !important;
}

/* Links (Datenschutz / Impressum) */
html body #redim-cookiehint.redim-tpl #cookiehintinfo { font-style: normal !important; font-size: 13px !important; }
html body #redim-cookiehint.redim-tpl #cookiehintinfo a,
html body #redim-cookiehint.redim-tpl a {
	color: #395eb8 !important;
	text-decoration: underline !important;
	text-underline-offset: 3px !important;
}
html body #redim-cookiehint.redim-tpl #cookiehintinfo a:hover,
html body #redim-cookiehint.redim-tpl a:hover { color: #1f2d4d !important; }

/* Kategorien und Schalter */
html body #redim-cookiehint.redim-tpl .redim-cc-cat-label {
	font-variant: normal !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	color: #1f2d4d !important;
}
html body #redim-cookiehint.redim-tpl .redim-cc-cat-desc { font-style: normal !important; color: #4d678e !important; }
html body #redim-cookiehint.redim-tpl .redim-cc-slider { border-radius: 12px !important; background-color: #909caa !important; }
html body #redim-cookiehint.redim-tpl .redim-cc-slider::before { border-radius: 50% !important; }
html body #redim-cookiehint.redim-tpl input:checked + .redim-cc-slider { background-color: #395eb8 !important; }

/* Fokus gut sichtbar (Tastaturbedienung) */
html body #redim-cookiehint.redim-tpl a:focus-visible,
html body #redim-cookiehint.redim-tpl button:focus-visible,
html body #redim-cookiehint.redim-tpl input:focus-visible + .redim-cc-slider {
	outline: 3px solid #395eb8 !important;
	outline-offset: 2px !important;
}

/* Schwebender „Cookie-Einstellungen“-Button: rund wie die Kontakt-Icons der Website (Blau, weißer Ring) */
html body .redim-cc-reopen {
	width: 50px !important;
	height: 50px !important;
	border-radius: 50% !important;
	border: 0 !important;
	background: #395eb8 !important;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #395eb8, 0 2px 10px rgba(31, 45, 77, .25) !important;
	transition: background-color .2s ease-in-out !important;
}
html body .redim-cc-reopen img { display: none !important; }
html body .redim-cc-reopen::before {
	content: "\f564"; /* fa-cookie-bite */
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
	font-size: 22px !important;
	line-height: 1 !important;
	color: #ffffff !important;
}
html body .redim-cc-reopen:hover { background: #2f4e99 !important; }
html body .redim-cc-reopen:focus-visible { outline: 3px solid #395eb8 !important; outline-offset: 4px !important; }

/* Zwei-Klick-Platzhalter für blockierte Videos/Karten */
html body .redim-cc-iframe-overlay {
	font-family: "Lato", sans-serif !important;
	background: #eee !important;
	color: #1f2d4d !important;
}
html body .redim-cc-iframe-overlay button {
	background: #2f4e99 !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: inherit !important;
	font-weight: 700 !important;
}
html body .redim-cc-iframe-overlay button:hover { background: #d3e3ed !important; color: #1f2d4d !important; }
html body .redim-cc-iframe-overlay a { color: #395eb8 !important; }
