/* --- CSS: Simple Consent V17 --- */

#scc-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 999998;
    display: none; backdrop-filter: blur(3px);
}

#scc-banner {
    position: fixed; bottom: 0; left: 0; 
    width: 100%; 
    max-width: none;
    transform: none;
    background: rgb(234, 247, 247);
    padding: 0; border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
    z-index: 999999; 
    font-family: Helvetica, Calibri, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5em;
    display: none; 
    color: rgb(92, 114, 145); 
    overflow: hidden;
    flex-direction: column;
}

#scc-bar-content {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 15px 30px;
    gap: 20px;
}

#scc-trigger {
    position: fixed; bottom: 20px; left: 20px; 
    width: 30px; height: 30px;
    background: rgb(124, 241, 255);
    color: rgb(92, 114, 145); 
    border-radius: 50%;
    border: none; cursor: pointer; z-index: 999990;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); 
    font-size: 16px;
    display: flex; justify-content: center; align-items: center;
    font-weight: bold;
}

/* Typografie & Text */
#scc-intro p { 
    margin: 0; 
    font-size: 14px; 
    line-height: 1.5em; 
    color: rgb(92, 114, 145); 
}
#scc-intro strong { 
    font-size: 16px; 
    color: rgb(72, 94, 125); 
}

/* Settings Area */
#scc-settings-area { 
    display: none; 
    padding: 0 30px 20px 30px;
    border-top: 1px solid rgba(92, 114, 145, 0.2); 
}

/* Checkbox Details */
#scc-settings-area h3 { 
    font-size: 16px; 
    margin-bottom: 10px; 
    margin-top: 20px; 
    color: rgb(72, 94, 125); 
}
.scc-row { 
    margin-bottom: 15px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid rgba(92, 114, 145, 0.15); 
}
.scc-row:last-child { border-bottom: none; }

.scc-row-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 5px; 
    min-height: 24px;
}

.scc-row-title { 
    font-weight: bold; 
    font-size: 14px; 
    color: rgb(72, 94, 125); 
    line-height: 1.2;
}
.scc-row-desc { font-size: 12px; color: rgb(92, 114, 145); margin: 0; }

/* ===== Checkboxen: Custom Styling ===== */
#scc-banner input[type="checkbox"],
#scc-settings-area input[type="checkbox"],
.scc-row input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    border: 2px solid rgb(50, 70, 100) !important;
    border-radius: 4px !important;
    background: rgb(255, 255, 255) !important;
    cursor: pointer;
    position: static !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#scc-banner input[type="checkbox"]:checked,
#scc-settings-area input[type="checkbox"]:checked,
.scc-row input[type="checkbox"]:checked {
    background: rgb(50, 70, 100) !important;
    border-color: rgb(50, 70, 100) !important;
}

#scc-banner input[type="checkbox"]:checked::after,
#scc-settings-area input[type="checkbox"]:checked::after,
.scc-row input[type="checkbox"]:checked::after {
    content: "✓" !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

/* Disabled Checkbox (für "Technisch notwendig") */
#scc-banner input[type="checkbox"]:disabled,
#scc-settings-area input[type="checkbox"]:disabled,
.scc-row input[type="checkbox"]:disabled {
    background: rgb(50, 70, 100) !important;
    border-color: rgb(50, 70, 100) !important;
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}

/* Footer Domains */
#scc-domains { 
    font-size: 11px; 
    color: rgb(92, 114, 145); 
    padding: 10px 30px; 
    background: rgba(124, 241, 255, 0.15); 
    border-top: 1px solid rgba(92, 114, 145, 0.2); 
    display: none;
}

/* Buttons */
.scc-actions {
    display: flex; gap: 10px; flex-wrap: nowrap; 
}
.scc-btn {
    padding: 6px 12px; 
    border: none; border-radius: 4px; cursor: pointer;
    font-weight: bold; font-size: 13px;
    text-align: center;
    white-space: nowrap;
    font-family: Helvetica, Calibri, Arial, sans-serif;
}
.scc-btn-settings { 
    background: rgba(92, 114, 145, 0.15); 
    border: 1px solid rgba(92, 114, 145, 0.3); 
    color: rgb(72, 94, 125); 
    min-width: 100px;
}
.scc-btn-settings:hover {
    background: rgba(92, 114, 145, 0.25);
}

.scc-btn-accept { 
    background: rgb(124, 241, 255); 
    color: rgb(50, 70, 100);
}
.scc-btn-accept:hover {
    background: rgb(100, 220, 235);
}

/* ===== MOBILE: Kompaktes Layout ===== */
@media (max-width: 650px) {
    #scc-bar-content { 
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 10px 12px;
        gap: 8px;
    }
    
    #scc-intro {
        flex: 1 1 100%;
    }
    
    #scc-intro p { 
        font-size: 12px; 
        line-height: 1.4; 
    }
    #scc-intro strong { 
        font-size: 13px; 
    }
    
    .scc-actions { 
        flex: 1 1 100%;
        gap: 8px;
    }
    .scc-btn { 
        flex-grow: 1; 
        padding: 8px 10px;
        font-size: 12px;
        min-width: auto;
    }
    
    /* Settings-Bereich kompakter */
    #scc-settings-area {
        padding: 10px 12px 15px 12px;
    }
    #scc-settings-area h3 {
        font-size: 13px;
        margin: 10px 0 6px 0;
    }
    #scc-settings-area > p {
        font-size: 11px;
        margin: 0;
    }
    
    .scc-row {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    .scc-row-title {
        font-size: 12px;
    }
    .scc-row-desc {
        font-size: 11px;
        line-height: 1.3;
    }
    
    #scc-domains {
        padding: 8px 12px;
        font-size: 10px;
    }
    
    /* Checkboxen auf Mobile */
    #scc-banner input[type="checkbox"],
    #scc-settings-area input[type="checkbox"],
    .scc-row input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }
}