/* Cookie-Einwilligung */
html.cookie-consent-open,
html.cookie-consent-open body {
    overflow: hidden;
}

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1.5em;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.cookie-consent-overlay.cookie-consent-visible {
    opacity: 1;
}

.cookie-consent-overlay.cookie-consent-hidden {
    opacity: 0;
}

.cookie-consent-box {
    width: min(90vw, 680px);
    box-sizing: border-box;
    padding: 2em;
    color: #ffffff;
    background-color: rgb(30 85 30);
    border-radius: 1em;
    box-shadow: 0 0 25px 8px rgba(0, 0, 0, 0.18);
    text-align: left;
}

.cookie-consent-box h2 {
    margin: 0 0 0.7em;
    color: #ffffff;
    font-size: 1.6em;
    line-height: 1.2em;
}

.cookie-consent-box p {
    margin: 0 0 1em;
}

.cookie-consent-details {
    font-size: 0.85em;
    line-height: 1.5em;
}

.cookie-consent-box a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75em;
    margin-top: 1.5em;
}

.cookie-consent-button {
    min-height: 48px;
    padding: 0.7em 1.2em;
    border: 2px solid #ffffff;
    border-radius: 0.5em;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.25s ease-in-out,
        color 0.25s ease-in-out,
        border-color 0.25s ease-in-out;
}
.cookie-consent-button-primary {
    background: #fff;
    color: rgb(30 85 30);
    border: 2px solid #fff;
}

.cookie-consent-button-primary:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.cookie-consent-button-secondary {
    background: transparent;
    color: rgba(255,255,255,.85);
    border: 2px solid rgba(255,255,255,.35);
}

.cookie-consent-button-secondary:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.6);
    color: #fff;
}
 

.cookie-consent-button:focus {
    outline: none;
}

.cookie-consent-button:focus-visible {
    outline: 2px solid rgba(255,255,255,.5);
    outline-offset: 2px;
}

.cookie-settings-button {
    padding: 0;
    border: 0;
    color: #000000;
    background: none;
    font: inherit;
 
    cursor: pointer;
}

@media (max-width: 600px) {
    .cookie-consent-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .cookie-consent-box {
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 1.4em;
        border-radius: 1em 1em 0 0;
    }

    .cookie-consent-box h2 {
        font-size: 1.35em;
    }

    .cookie-consent-buttons {
        flex-direction: column-reverse;
    }

    .cookie-consent-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent-overlay,
    .cookie-consent-button {
        transition: none;
    }
}