/* Advanced Cookie Consent Plugin Styles */

.cc_message h4 {
    color: #000;
}

.cc_hide {
    display: none !important;
}

.cc_btngroup.essentials .cc_btn {
    opacity: 0.6;
    pointer-events: none;
}

#sendcookie {
    background-color: #000000;
    width: 100%;
}

#sendcookie:hover {
    background-color: #979797;
}

.ds-link {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

.ds-link a {
    text-decoration: underline;
    color: inherit;
}

.closeOuter {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.close {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    padding: 5px;
    transition: color 0.2s, transform 0.2s;
    border: 1px solid #979797;
    border-radius: 50%;
}

.close:hover {
    color: #000;
    background-color: #979797;
    opacity: 0.5;
}

.cc_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    display: none;
}

.cc_container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f5f5f5;
    color: #000;
    z-index: 1000001;
    width: 700px;
    max-width: 100%;
    max-height: 95%;
    padding: 20px 30px;
    box-sizing: border-box;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    font-family: 'Open Sans', sans-serif;
}

.cc_container.cc_show {
    display: flex;
}

.infotext {
    padding: 20px 0px;
}

#cc_buttons {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 15px;
}

/* Fallback für Browser ohne gap-Support */
#cc_buttons > * {
    margin-bottom: 20px;
}

#cc_buttons > *:last-child {
    margin-bottom: 0;
}

/* Moderne Browser mit gap-Support */
@supports (gap: 20px) {
    #cc_buttons {
        row-gap: 20px;
    }
    
    #cc_buttons > * {
        margin-bottom: 0;
    }
}

.cc_btngroup {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Fallback für Browser ohne gap-Support */
.cc_btngroup > * {
    margin-right: 10px;
}

.cc_btngroup > *:last-child {
    margin-right: 0;
}

/* Moderne Browser mit gap-Support */
@supports (gap: 10px) {
    .cc_btngroup {
        gap: 10px;
    }
    
    .cc_btngroup > * {
        margin-right: 0;
    }
}

.cc_buttonstext {
    font-weight: bold;
}

.cc_btn {
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #000;
    text-align: center;
    transition: all 0.2s;
    user-select: none;
}

#essyes {
    background-color: #111;
    color: #fff;
    border-color: #111;
    pointer-events: none;
}

#essno {
    background-color: #555;
    color: #fff;
    border-color: #555;
    pointer-events: none;
}

.cc_btn.selected {
    background-color: #111;
    color: #fff;
    border-color: #111;
}

.cc_btn:not(.selected) {
    background-color: #979797;
    color: #fff;
    border-color: #979797;
}

.cc_btn:hover {
    filter: brightness(1.1);
}

.cc_button {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.cc_button .cc_btn {
    width: 250px;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .cc_container {
        width: 95%;
        height: auto;
        max-height: 90%;
        padding: 15px;
    }
    
    .cc_message h4 {
        font-size: 1.2em;
    }
    
    .cc_message {
        font-size: 0.9em;
    }
    
    #cc_buttons {
        grid-template-columns: 1fr;
    }
    
    .infotext {
        display: none;
    }
    
    /* Fallback für Browser ohne gap-Support bleibt bestehen */
    @supports (gap: 15px) {
        #cc_buttons {
            row-gap: 15px;
        }
    }
    
    .cc_button .cc_btn {
        width: 100%;
    }
    
    .closeOuter {
        margin-bottom: 10px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cc_container {
        border: 2px solid #000;
    }
    
    .cc_btn {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cc_btn,
    .close {
        transition: none;
    }
}

/* Print styles - hide the banner when printing */
@media print {
    .cc_overlay,
    .cc_container {
        display: none !important;
    }
}
