/* Cookie-Popup Styles - site-weit auf jeder Seite eingebunden (DSGVO/ePrivacy:
   Einwilligung muss eingeholt werden, egal auf welcher Seite ein Besucher
   zuerst landet, nicht nur auf der Startseite). */
.cookie-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.cookie-popup {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    padding: 25px;
    text-align: center;
}

.cookie-popup h2 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.5rem;
}

.cookie-popup p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.cookie-accept {
    background-color: #70A837;
    color: white;
}

.cookie-accept:hover {
    background-color: #558B2F;
}

.cookie-settings {
    background-color: #C2A165;
    color: white;
}

.cookie-settings:hover {
    background-color: #A88A50;
}

.cookie-decline {
    background-color: #e74c3c;
    color: white;
}

.cookie-decline:hover {
    background-color: #c0392b;
}

.cookie-link {
    color: #70A837;
    text-decoration: none;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Cookie-Einstellungen Popup */
.cookie-settings-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.cookie-settings-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    padding: 25px;
}

.cookie-setting {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.cookie-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-setting-title {
    font-weight: bold;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #70A837;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.cookie-setting-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.settings-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Responsive Anpassungen */
@media (max-width: 600px) {
    .cookie-popup {
        padding: 20px 15px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-button {
        width: 100%;
    }

    .settings-buttons {
        flex-direction: column;
    }
}
