/* ==========================================================================
   AI_GAMEZ: CookieYes-Banner im Glass-/16-Bit-Look
   Überschreibt die Inline-Farben des Plugins (daher !important).
   Getestet mit CookieYes 3.3.x, Vorlage 6.2.0 (Box/Banner).
   ========================================================================== */

.cky-consent-container, .cky-modal, .cky-btn-revisit-wrapper {
	--ck-glass: rgba(var(--deep-rgb),  .86);
	--ck-line: rgba(var(--mist-rgb),  .35);
	--ck-px: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
	--ck-px3: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
	font-family: var(--f-body, Inter, system-ui, sans-serif);
}

/* ---- Hinweis-Box ---------------------------------------------------------- */
.cky-consent-container { border-radius: 0 !important; }
.cky-consent-container.cky-box-bottom-left { left: 24px; bottom: 24px; }
.cky-consent-container.cky-box-bottom-right { right: 64px; bottom: 24px; }
.cky-consent-container .cky-consent-bar {
	position: relative;
	color: var(--foam, #e8ecff) !important;
	border: 0 !important;
	border-top: 3px solid var(--sun, #fbd63d) !important;
	border-radius: var(--r-m, 14px) !important;
	background: repeating-linear-gradient(180deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), var(--ck-glass) !important;
	-webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
	box-shadow: 0 0 0 1px var(--ck-line), 0 22px 50px -18px rgba(0, 0, 0, .8) !important;
	padding: 20px 22px !important;
}
.cky-consent-container .cky-title {
	font-family: var(--f-head, "Chakra Petch", sans-serif) !important; font-weight: 700 !important; font-size: 20px !important; line-height: 1.15 !important;
	text-transform: uppercase; letter-spacing: .01em; color: #fff !important; margin: 0 0 10px !important;
}
.cky-consent-container .cky-title::before {
	content: var(--ck-kicker, "COOKIES"); display: block; margin-bottom: 6px;
	font-family: var(--f-pixel, "Silkscreen", monospace); font-weight: 400; font-size: 10px; letter-spacing: .08em; color: var(--sun, #fbd63d);
}
.cky-consent-container .cky-notice-des, .cky-consent-container .cky-notice-des * { color: #d7ddff !important; font-size: 14px !important; line-height: 1.55 !important; }
.cky-consent-container .cky-notice-des a, .cky-modal .cky-preference-content-wrapper a, .cky-modal .cky-show-desc-btn { color: var(--cyan, #3ec8e6) !important; text-decoration: underline; text-underline-offset: 2px; }
.cky-consent-container .cky-notice-btn-wrapper { gap: 8px; margin-top: 14px !important; flex-wrap: wrap; }
.cky-consent-container .cky-banner-btn-close img, .cky-modal .cky-btn-close img { filter: invert(1) brightness(1.6); }

/* ---- Buttons (Box und Einstellungsfenster) -------------------------------- */
.cky-consent-container .cky-btn, .cky-modal .cky-btn {
	font-family: var(--f-head, "Chakra Petch", sans-serif) !important; font-weight: 700 !important; font-size: 14px !important; letter-spacing: .02em; text-transform: uppercase;
	border-radius: 999px !important; border: 1px solid var(--ck-line) !important;
	color: var(--foam, #e8ecff) !important; background: rgba(var(--abyss-rgb),  .55) !important;
	padding: 9px 14px !important; margin: 0 !important; flex: 1 1 auto;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.cky-consent-container .cky-btn:hover, .cky-modal .cky-btn:hover { border-color: var(--sun, #fbd63d) !important; transform: translateY(-1px); opacity: 1 !important; }
.cky-consent-container .cky-btn-accept, .cky-modal .cky-btn-accept {
	background: var(--sun, #fbd63d) !important; border-color: var(--sun, #fbd63d) !important; color: var(--abyss, #030834) !important;
}
.cky-consent-container .cky-btn-accept:hover, .cky-modal .cky-btn-accept:hover { background: #ffe57a !important; }
.cky-consent-container .cky-btn:focus-visible, .cky-modal .cky-btn:focus-visible, .cky-modal button:focus-visible, .cky-consent-container button:focus-visible { outline: 3px solid var(--cyan, #3ec8e6) !important; outline-offset: 2px; }

/* ---- Bild / Maskottchen (optional, über Customizer) ----------------------- */
/* Das Bild sitzt in der oberen rechten Ecke und schaut nur etwa zur Hälfte heraus. */
.aigz-ck-figure {
	position: absolute; right: 16px; top: 0; z-index: 2; pointer-events: none;
	width: var(--ck-img-w, 72px); height: auto; max-height: calc(var(--ck-img-w, 72px) * 1.5); object-fit: contain; object-position: bottom;
	transform: translateY(-55%); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}
.cky-consent-container.aigz-has-img .cky-title { padding-right: calc(var(--ck-img-w, 72px) - 4px); }
/* Box oben am Bildschirm: Bild schaut unten heraus */
.cky-consent-container.cky-box-top-left .aigz-ck-figure, .cky-consent-container.cky-box-top-right .aigz-ck-figure { top: auto; bottom: 0; transform: translateY(55%); object-position: top; }
.cky-consent-container.aigz-has-img.cky-box-top-left .cky-title, .cky-consent-container.aigz-has-img.cky-box-top-right .cky-title { padding-right: 0; }
.cky-consent-container.aigz-has-img.cky-box-top-left .cky-notice-btn-wrapper, .cky-consent-container.aigz-has-img.cky-box-top-right .cky-notice-btn-wrapper { padding-right: calc(var(--ck-img-w, 72px) - 4px); }
.aigz-ck-figure.is-pixel { image-rendering: pixelated; }

/* ---- Einstellungsfenster ------------------------------------------------- */
.cky-overlay { background: #01031f !important; opacity: .65 !important; }
.cky-modal { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
.cky-modal .cky-preference-center {
	color: var(--foam, #e8ecff) !important;
	border: 0 !important; border-top: 3px solid var(--sun, #fbd63d) !important; border-radius: var(--r-m, 14px) !important;
	background: repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px), rgba(var(--deep-rgb),  .94) !important;
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	box-shadow: 0 0 0 1px var(--ck-line), 0 32px 70px -20px rgba(0, 0, 0, .85) !important;
}
.cky-modal .cky-preference-header { border-bottom: 1px solid rgba(var(--mist-rgb),  .18) !important; }
.cky-modal .cky-preference-title { font-family: var(--f-head, "Chakra Petch", sans-serif) !important; font-weight: 700 !important; font-size: 22px !important; text-transform: uppercase; color: #fff !important; }
.cky-modal .cky-preference-content-wrapper, .cky-modal .cky-preference-content-wrapper *,
.cky-modal .cky-accordion-header-des, .cky-modal .cky-accordion-header-des * { color: #cdd4ff !important; }
.cky-modal .cky-accordion { border-bottom: 1px solid rgba(var(--mist-rgb),  .16) !important; }
.cky-modal .cky-accordion-btn { font-family: var(--f-head, "Chakra Petch", sans-serif) !important; font-weight: 700 !important; font-size: 16px !important; text-transform: uppercase; color: #fff !important; }
.cky-modal .cky-accordion-chevron { color: var(--sun, #fbd63d) !important; }
.cky-modal .cky-accordion-chevron i::before { border-color: var(--sun, #fbd63d) !important; }
.cky-modal .cky-always-active { font-family: var(--f-pixel, "Silkscreen", monospace) !important; font-size: 10px !important; letter-spacing: .06em; text-transform: uppercase; color: #6be59a !important; }
.cky-modal .cky-audit-table { background: rgba(var(--abyss-rgb),  .6) !important; border-color: rgba(var(--mist-rgb),  .2) !important; color: #cdd4ff !important; border-radius: 8px !important; }
.cky-modal .cky-audit-table * { color: inherit !important; border-color: rgba(var(--mist-rgb),  .15) !important; }
.cky-modal .cky-footer-wrapper { border-top: 1px solid rgba(var(--mist-rgb),  .18) !important; background: transparent !important; }
.cky-modal .cky-footer-shadow { background: linear-gradient(180deg, rgba(var(--deep-rgb),  0), rgba(var(--deep-rgb),  .95)) !important; }
.cky-modal .cky-prefrence-btn-wrapper { gap: 8px; }
.cky-modal .cky-preference-body-wrapper::-webkit-scrollbar-thumb { background: rgba(var(--mist-rgb),  .35); }
/* Schalter */
.cky-switch input[type="checkbox"] { background: rgba(var(--mist-rgb),  .3) !important; box-shadow: inset 0 0 0 1px rgba(var(--mist-rgb),  .4); }
.cky-switch input[type="checkbox"]:checked { background: var(--sun, #fbd63d) !important; }
.cky-switch input[type="checkbox"]::before { background: #fff !important; }
.cky-switch input[type="checkbox"]:checked::before { background: var(--abyss, #030834) !important; }
/* „Powered by“-Zeile, falls vorhanden */
.cky-modal .cky-footer-wrapper [data-cky-tag="detail-powered-by"] { background: transparent !important; color: rgba(var(--mist-rgb),  .7) !important; }

/* ---- Einstellungen-Knopf (nach der Wahl, unten links) --------------------- */
.cky-btn-revisit-wrapper {
	background: var(--sun, #fbd63d) !important; width: 40px !important; height: 40px !important; border-radius: 50% !important;
	left: 14px !important; bottom: 14px !important; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7);
}
.cky-btn-revisit-wrapper .cky-btn-revisit img { filter: brightness(0) saturate(100%) invert(6%) sepia(60%) saturate(4000%) hue-rotate(230deg); width: 22px; height: 22px; }
.cky-btn-revisit-wrapper::before { background: var(--abyss, #030834) !important; color: var(--foam, #e8ecff) !important; font-family: var(--f-body, Inter, sans-serif); }

/* ---- 16-Bit-Modus: Pixel-Ecken ------------------------------------------- */
body.scene-pixel .cky-consent-container .cky-consent-bar,
body.scene-pixel .cky-modal .cky-preference-center { border-radius: 0 !important; clip-path: var(--ck-px); }
body.scene-pixel .cky-consent-container .cky-btn,
body.scene-pixel .cky-modal .cky-btn { border-radius: 0 !important; clip-path: var(--ck-px3); }
body.scene-pixel .cky-btn-revisit-wrapper { border-radius: 0 !important; clip-path: var(--ck-px3); }
body.scene-pixel .cky-modal .cky-audit-table { border-radius: 0 !important; }
body.scene-pixel .cky-switch input[type="checkbox"], body.scene-pixel .cky-switch input[type="checkbox"]::before { border-radius: 0 !important; }

/* ---- Handy ---------------------------------------------------------------- */
@media (max-width: 576px) {
	.cky-consent-container.cky-box-bottom-left, .cky-consent-container.cky-box-bottom-right { left: 8px !important; right: 8px !important; bottom: 8px !important; width: auto !important; }
	.cky-consent-container .cky-consent-bar { padding: 16px !important; }
	.cky-consent-container .cky-title { font-size: 18px !important; }
	.cky-consent-container .cky-notice-btn-wrapper { flex-direction: row !important; }
	.cky-consent-container .cky-notice-btn-wrapper .cky-btn { flex: 1 1 calc(50% - 8px); width: auto !important; }
	.cky-consent-container .cky-notice-btn-wrapper .cky-btn-accept, .cky-consent-container .cky-notice-btn-wrapper .cky-btn-reject { order: -1; }
	.cky-consent-container .cky-notice-btn-wrapper .cky-btn-customize { flex-basis: 100%; }
	.aigz-ck-figure { right: 14px; }
	.cky-modal .cky-preference-center { border-radius: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { .cky-consent-container .cky-btn, .cky-modal .cky-btn { transition: none; } }

/* ---- Footer-Link „Cookie-Einstellungen“ ----------------------------------- */
.footer-cookie-link { padding: 0; border: 0; background: none; font: inherit; color: var(--mist, #a9b2e8); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(var(--mist-rgb),  .4); }
.footer-cookie-link:hover { color: var(--sun, #fbd63d); }
.footer-cookie-link:focus-visible { outline: 2px solid var(--cyan, #3ec8e6); outline-offset: 3px; }
@media (min-width: 700px) { .footer-bottom .wrap { padding-right: 64px; } }

/* ---- Datenschutz / Impressum im Banner ----------------------------------- */
.aigz-ck-legal { margin: 12px 0 0 !important; font-size: 12px !important; color: rgba(var(--mist-rgb),  .8) !important; }
.aigz-ck-legal a { color: var(--cyan, #3ec8e6) !important; text-decoration: underline; text-underline-offset: 2px; }
.aigz-ck-legal a:hover { color: var(--sun, #fbd63d) !important; }
