/* Styling für das Cookie-Banner */
#neo-cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #444;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    line-height: 1.5;
}

/* Container für den Inhalt */
.neo-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Styling für Buttons im Banner */
#neo-cookie-banner button {
    background-color: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 10px 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Primär-Button (Alle akzeptieren) */
.neo-btn-primary {
    font-weight: bold;
}

/* Sekundär-Button (Einstellungen) */
.neo-btn-secondary {
    background-color: transparent !important;
    border: 1px solid #fff !important;
}

.neo-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    filter: brightness(120%);
}

/* Button-Container */
.neo-cookie-buttons {
    margin: 15px 0;
}

/* Detailansicht */
#neo-cookie-details {
    text-align: left;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

/* Cookie-Kategorien */
.neo-cookie-categories {
    margin-bottom: 20px;
}

.neo-cookie-category {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.neo-cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.neo-cookie-category label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.neo-cookie-category input[type="checkbox"] {
    margin-right: 10px;
}

.neo-cookie-description {
    margin: 5px 0 0 25px;
    font-size: 14px;
    opacity: 0.8;
}

/* Actions-Container */
.neo-cookie-actions {
    text-align: right;
    margin-top: 15px;
}

/* Aktive Checkboxen im Detail-Bereich */
#neo-cookie-details input[type="checkbox"]:checked + strong {
    color: inherit;
    font-weight: 700;
    position: relative;
}

#neo-cookie-details input[type="checkbox"]:checked + strong:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Responsives Design für kleinere Bildschirme */
@media (max-width: 768px) {
    #neo-cookie-banner {
        font-size: 14px;
        padding: 15px;
    }

    #neo-cookie-banner button {
        padding: 8px 15px;
        font-size: 14px;
        margin: 5px 3px;
    }
    
    .neo-cookie-category label {
        align-items: flex-start;
    }
    
    .neo-cookie-category input[type="checkbox"] {
        margin-top: 3px;
    }
    
    .neo-cookie-description {
        margin-left: 0;
        margin-top: 10px;
    }
    
    /* Hover-Effekte für Touch-Geräte anpassen */
    #neo-cookie-banner button:hover {
        transform: none; /* Keine Verschiebung auf mobilen Geräten */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduzierter Schatten */
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .neo-cookie-buttons button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .neo-cookie-actions {
        text-align: center;
    }
}

/* Datenschutz-Link im Cookie-Banner */
.neo-cookie-privacy-link {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

.neo-cookie-privacy-link a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.neo-cookie-privacy-link a:hover {
    opacity: 1;
}

/* Bei kleinen Bildschirmen die Schriftgröße verringern */
@media (max-width: 768px) {
    .neo-cookie-privacy-link {
        font-size: 13px;
    }
}

/* Stelle sicher, dass der Hover-Effekt für alle Buttons funktioniert */
#neo-cookie-banner button:hover {
    background-color: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    filter: brightness(110%) !important;
    transition: all 0.3s ease !important;
}

/* Spezifischer Style für den Sekundären Button (Einstellungen und Schliessen) */
#neo-cookie-banner .neo-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    filter: brightness(120%) !important;
}

/* Stelle sicher, dass alle Buttons eine Transition haben */
#neo-cookie-banner button {
    transition: all 0.3s ease !important;
}

/* Erhöhe die Spezifität für den Hover-Effekt, damit er garantiert funktioniert */
#neo-cookie-banner #neo-cookie-settings:hover,
#neo-cookie-banner #neo-cookie-save-settings:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Stelle sicher, dass der Button im Modal-Fenster den richtigen Hover-Effekt hat */
#neo-cookie-details .neo-cookie-actions button:hover {
    background-color: #0056b3 !important;
    color: #ffffff !important;
}