#overlay-cc .btn {
    color: white;
    padding: 8px 10px;
    border: 1px solid white;
    border-radius: 10px;
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
}

#overlay-cc {
    position: fixed;
    width: 33.333vw;
    height: auto;
    max-width: 560px;
    max-height: 66.666vh;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99999 !important;
    cursor: pointer;
    text-align: left;
    font-family: 'Lato', sans-serif !important;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    padding: 22px;
    border-radius: 16px;
    box-sizing: border-box;
}

#overtext-cc {
    position: static;
    top: auto;
    left: auto;
    font-size: 13px;
    color: white;
    min-width: 0;
    max-width: none;
    max-height: none;
    transform: none;
    -ms-transform: none;
}

.text-center {
    text-align: center;
}

/* Title styling */
.cookie-title {
    font-size: 17px;
    margin-bottom: 12px;
    color: #fff;
    text-align: center;
}

/* Description styling */
.cookie-description {
    margin-bottom: 14px;
    color: #fff;
    text-align: left;
    line-height: 1.35;
}

/* Checkbox container */
.cookie-options {
    text-align: left;
    margin-bottom: 14px;
}

.checkbox-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding: 7px;
    border: 1px solid #fff;
    border-radius: 5px;
    gap: 10px;
    text-align: left;
}

.checkbox-row > div {
    flex: 1;
    text-align: left;
}

.checkbox-label {
    display: block;
    font-weight: bold;
    color: #fff;
    font-size: 13px;
    text-align: left;
}

.checkbox-description {
    font-size: 11px;
    color: #fff;
    margin-top: 3px;
    margin-bottom: 0;
    text-align: left;
    line-height: 1.25;
}

/* Button styling */
.button-group {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
    margin-top: 12px;
    flex-direction: row;
    flex-wrap: nowrap;
}

.btn {
    padding: 8px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif !important;
    line-height: 1.2;
    flex: 1 1 0;
    min-width: 0;
}

.btn:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}


input[type="checkbox"] {
    transform: scale(2);
    margin-left: 14px;
    accent-color: #28a745;
}

/* Disabled checkbox styling */
.disabled-checkbox {
    opacity: 0.9;
    cursor: not-allowed;
}

/* Container für die aktuelle Seite */
.page-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cookie-Präferenzen-Management */
.cookie-preferences-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 99998 !important;
    font-family: 'Lato', sans-serif !important;
}

@media (max-width: 1024px) {
    #overlay-cc {
        width: 66.666vw;
        max-width: 66.666vw;
        max-height: 66.666vh;
        padding: 20px;
    }

    #overtext-cc {
        font-size: 13px;
    }

    #overlay-cc .btn {
        padding: 8px 8px;
        font-size: 11px;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .button-group {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .cookie-title {
        font-size: 16px;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .checkbox-description {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    #overlay-cc {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        padding: 16px;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #overtext-cc {
        width: 100%;
        max-height: 100%;
        overflow-y: auto;
        font-size: 12px;
    }

    .button-group {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .cookie-description {
        display: none;
    }

    #overlay-cc .btn {
        padding: 8px 10px;
        font-size: 12px;
        width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .checkbox-row {
        padding: 6px;
    }

    .checkbox-label {
        font-size: 12px;
    }

    .checkbox-description {
        font-size: 10px;
    }

    input[type="checkbox"] {
        transform: scale(2);
        margin-left: 14px;
        accent-color: #28a745;
}
}