/* Cookie Consent Banner Styles */
/* Use CSS variable for z-index to avoid UI conflicts */
.cookie-consent-container {
    position: fixed;
    bottom: 2.5em;
    right: 2.5em;
    z-index: var(--z-cookie, 1200);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    max-width: 520px;
    background-color: #e9e8e8;
    width: auto;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    border-radius: 1em;
   
    padding: 1.25em 1.5em;
    font-size: 1rem;
    color: var(--color-text, #333);
    gap: 1em;
}

#cookie-consent {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1em;
}

.cookie-consent-text {
    font-size: 1em;
    margin-bottom: 0;
    margin-right: 1em;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.5em;
    justify-content: flex-end;
}

/* Highlight Privacy Policy and Impressum links in cookie banner */
/* Darker grey for WCAG contrast compliance */
#cookie-consent a#privacy-link-cookie,
#cookie-consent a#impressum-link-cookie {
    text-decoration: underline;
    text-underline-offset: 0.18em;
    font-weight: 600;
    color: #4a4a4a;
    transition: color 0.2s;
}

#cookie-consent a#privacy-link-cookie:hover,
#cookie-consent a#impressum-link-cookie:hover {
    color: #757575;
}

/* Darker tone meets 4.5:1 contrast */
.cookie-consent-actions button {
    padding: 0.5em 1.2em;
    border-radius: 0.5em;
    border: none;
    background: var(--primary, #524F90);
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1em;
}

.cookie-consent-actions button.decline {
    background: #e0e0e0;
    color: #333;
}

.cookie-consent-actions button:focus {
    outline: 2px solid var(--primary, #9592A5);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .cookie-consent-container {
        right: 0.5em;
        left: 0.5em;
        bottom: 0.5em;
        max-width: 98vw;
        flex-direction: column;
        align-items: stretch;
        padding: 1em;
    }
    #cookie-consent {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75em;
    }
    .cookie-consent-text {
        margin-right: 0;
        margin-bottom: 0.5em;
    }
    .cookie-consent-actions {
        justify-content: flex-end;
    }
}
