/****************************************************
 * COOKIE-BOX: POSITION ÄNDERN
 * --cookie-abstand-unten: größer = Box weiter nach oben.
 * Standard 60px. Auf kleinen Bildschirmen automatisch begrenzt,
 * damit auch die aufgeklappte Box vollständig bedienbar bleibt.
 ****************************************************/
#cookie-popup { --cookie-abstand-unten: 60px; position: fixed; bottom: min(var(--cookie-abstand-unten), 8dvh); left: 50%; transform: translateX(-50%); z-index: 1200; width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - min(var(--cookie-abstand-unten), 8dvh) - 16px); overflow: auto; background: #29292d; border: 1px solid #777; border-top: 3px solid var(--red); border-radius: 8px; box-shadow: 0 12px 45px #0009; color: #fff; }
#cookie-popup[hidden], #cookie-popup [hidden] { display: none !important; }
#cookie-popup-inner { padding: 24px; }
#cookie-popup h2 { color: #fff; font-size: 24px; margin: 0 0 12px; }
#cookie-popup p { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
#cookie-popup a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#cookie-popup button { min-height: 46px; padding: 10px 12px; font: inherit; font-size: 15px; border: 1px solid #aaa; border-radius: 4px; color: #fff; background: #444448; cursor: pointer; }
#cookie-popup button:hover { border-color: #fff; background: #57575b; }
#cookie-popup button:focus-visible, #cookie-popup input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
#cookie-popup .cookie-button-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#cookie-popup [data-consent-action="reject"], #cookie-popup [data-consent-action="accept"], #cookie-popup .cookie-save { background: var(--red); border-color: #ee8888; }
#cookie-popup #cookie-details-section { margin-top: 20px; }
#cookie-popup .cookie_toggle { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid #64646a; padding: 14px 0; }
#cookie-popup .cookie_toggle label { font-size: 16px; font-weight: bold; cursor: pointer; }
#cookie-popup .cookie_toggle p { font-size: 14px; margin: 5px 0 0; color: #ddd; }
#cookie-popup input[type="checkbox"] { appearance: none; width: 46px; height: 26px; flex: 0 0 46px; background: #777; border: 1px solid #ccc; border-radius: 16px; position: relative; cursor: pointer; }
#cookie-popup input[type="checkbox"]::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; }
#cookie-popup input[type="checkbox"]:checked { background: var(--red); }
#cookie-popup input[type="checkbox"]:checked::before { transform: translateX(20px); }
#cookie-popup .cookie-save { width: 100%; }
#cookie-status:empty { display: none; }
#cookie-status { margin-top: 12px !important; }
.footer-legal .open_cookie_link { padding: 3px 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; text-decoration: none; text-underline-offset: 4px; }
@media (max-width: 420px) {
    #cookie-popup-inner { padding: 18px; }
    #cookie-popup .cookie-button-row { grid-template-columns: 1fr; }
}

.footer-legal .open_cookie_link:hover, .footer-legal .open_cookie_link:focus-visible { color: white; text-decoration: underline; }
