/* cookiebanner.css */
.cookie-cta {
    font-size: 20px;
    line-height: 26px;
    display: inline-block;
    background-color: #C30F17;
    border-radius: 10px;
    border: 1px solid #efb2b2;
    opacity: 1;
    text-align: center;
    color: white;
    text-decoration: none;
    padding: 10px 24px;
}

/* Styling für modales Cookie-Banner */
#cookie-banner,
#cookie-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
    max-height: 90vh;
}

#cookie-banner p,
#cookie-details p {
    margin: 0 0 10px;
}

.cookie-buttons {
    text-align: right;
    margin-top: 20px;
}

#cookie-banner button,
#cookie-details button {
    margin-left: 10px;
}

#cookie-banner {
    display: none;
    /* Wird per JavaScript angezeigt */
}

#cookie-details {
    display: none;
    /* Bleibt standardmäßig ausgeblendet */
}

#cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
    /* Overlay für Hintergrund */
}

#show-details {
    background: none;
    color: #333;
    padding: 10px 20px;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

body.cookie-consent-open {
    overflow: hidden;
    /* Verhindert Scrollen im Hintergrund */
}

@media (max-width: 450px) {

    .cookie-buttons {
        display: flex;
        flex-direction: column;
        /* Buttons vertikal anordnen */
        align-items: center;
        /* Buttons zentrieren */
        text-align: center;
    }

    #accept-all {
        order: 1;
        /* Erste Position */
    }

    /* "Details anzeigen" Button */
    #show-details {
        order: 2;
        margin-top: 5px;
        font-size: 14px;
        color: grey;
    }

}