/* =======================
   Custom Cookie Banner
   ======================= */
#custom-cookie-banner {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    max-width: 28rem;
    padding: 1rem;
    background: #060;
    color: #fff;
    font-family: Quicksand, sans-serif;
    font-size: 1em;
    line-height: 1.5em;
    z-index: 9999;
    border-radius: 0.25rem;
    display: none;
}

#custom-cookie-banner h2 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

#custom-cookie-banner h3 {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: 400;
    font-size: 1.125em;
    margin-bottom: .4em;
    text-align: center;
}

#custom-cookie-banner a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    line-height: 1.2em;
}

.cookie-checkboxes label {
    width: calc(50% - 0.5rem);
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.95em;
    color: #fff;
}

.cookie-checkboxes input[type="checkbox"] {
    margin-right: 0.5rem;
}

.custom-cookie-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 0.5rem;
}

.custom-cookie-buttons button {
    color: #fff;
    font-family: inherit;
    font-size: 1em;
    cursor: pointer;
    padding: 0.5rem;
    border-width: 0.05rem;
    border-style: solid;
    border-color: currentcolor;
    border-radius: 0.15rem;
    margin: 0 0.7rem;
    background: transparent;
    display: inline-block;
    width: auto;
}

.custom-cookie-buttons button:hover {
    background: #080;
}

@media (max-width: 600px) {
    #custom-cookie-banner {
        left: 2rem;      /* etwas mehr Abstand links */
        right: 2rem;     /* etwas mehr Abstand rechts */
        bottom: 1rem;
        max-width: calc(100% - 4rem); /* passt sich an, bleibt mittig */
        padding: 0.75rem;
    }

    .custom-cookie-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .custom-cookie-buttons button {
        font-size: 0.9em;
        padding: 0.4rem 0.6rem;
        margin: 0;
    }

    .cookie-checkboxes label {
        width: 100%;
    }
}
