/* Hintergrund für die gesamte Seite, wenn das Modal aktiv ist */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Leicht dunkler Hintergrund */
    z-index: 9998; /* Muss unter dem Modal, aber über anderen Elementen liegen */
    pointer-events: auto; /* Akzeptiert Klicks auf den Overlay */
}
#overlay:after {
    content: "Bitte beenden Sie die Cookie-Einstellungen!";
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    z-index: 9999; /* Über dem Overlay */
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}
/* Für mobile Bildschirme */
 @media (max-width: 768px) {
     #cookie-banner {
         padding: 10px;
         font-size: 14px;
     }
     #cookie-banner button {
         margin: 5px;
         padding: 10px 20px;
         font-size: 14px;
     }
 }
#cookie-banner button {
    background-color: #3b82f6; /* Blauton verwendet für Login */
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.2s;
}
#cookie-banner button:hover {
    background-color: #2563eb; /* Dunklerer Blauton für Hover-Zustand */
}

/* Cookie-Einstellungen Hintergrund */
#cookie-settings-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f3f4f6; /* Dezentes Grau */
    color: #1f2937; /* Dunkles Grau */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    width: 400px;
    max-width: 90%; /* Passt Modal an kleinere Geräte an */
    margin: 0 auto;
    overflow-y: auto; /* Ermöglicht Scrollen bei größerem Inhalt */
    max-height: 90vh; /* Nimmt nicht mehr als 90% der Bildschirmhöhe ein */
}
@media (max-width: 768px) {
   #cookie-settings-modal {
       font-size: 14px;
   }
}

/* Titel */
#cookie-settings-modal h3 {
    font-size: 18px;
    color: #1f2937; /* Dunkles Grau */
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

/* Beschreibungstext */
#cookie-settings-modal p {
    font-size: 14px;
    color: #374151; /* Grau für den Text */
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.6;
}

/* Label für Checkbox */
#cookie-settings-form label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #374151;
    margin-bottom: 15px;
    cursor: pointer;
    gap: 10px; /* Abstand zwischen Checkbox und Text */
}

/* Checkbox */
#cookie-settings-form input[type="checkbox"] {
    cursor: pointer;
    accent-color: #3b82f6; /* Blaue Checkbox passend zum Button */
}

/* Button-Container */
#cookie-settings-form .button-container {
    display: flex;
    justify-content: space-between; /* Buttons nebeneinander */
    margin-top: 20px; /* Abstand zur letzten Checkbox */
}

/* Buttons */
#cookie-settings-form button {
    background-color: #3b82f6; /* Blau passend zum Login */
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.2s;
    width: 48%; /* Gleiche Breite der Buttons */
    text-align: center;
}

#cookie-settings-form button:hover {
    background-color: #2563eb; /* Dunklerer Blauton */
}

/* Abbrechen-Button */
#cookie-settings-form button#cancel-settings {
    background-color: #e5e7eb; /* Hellgrau */
    color: #1f2937; /* Dunkles Grau */
}

#cookie-settings-form button#cancel-settings:hover {
    background-color: #d1d5db; /* Etwas dunkleres Hellgrau */
}
#cookie-settings-form input[type="checkbox"]:checked {
    accent-color: #3b82f6; /* Blau passend zur Website */
}