/* Cookie-Banner Stile */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
    display: none;
}

#cookie-banner.active {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
    margin-right: 20px;
    color: #333;
    line-height: 1.5;
}

.cookie-text a {
    color: #3A3AC0;
    text-decoration: none;
}

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

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.cookie-btn-accept {
    background: #3A3AC0;
    color: white;
}

.cookie-btn-accept:hover {
    background: #3A3AC0;
}

.cookie-btn-settings {
    background: #f0f0f0;
    color: #333;
}

.cookie-btn-settings:hover {
    background: #e0e0e0;
}

.cookie-btn-reject {
    background: #f0f0f0;
    color: #333;
}

.cookie-btn-reject:hover {
    background: #e0e0e0;
}

/* Cookie-Einstellungen Popup */
#cookie-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    z-index: 10000;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
    border-radius: 8px;
}

#cookie-settings.active {
    display: block;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-settings-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cookie-settings-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-settings-group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-settings-group h3 {
    margin: 0;
    color: #333;
}

.cookie-settings-group-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

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

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

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

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

input:checked + .cookie-settings-slider {
    background-color: #3A3AC0;
}

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

.cookie-settings-required {
    color: #666;
    font-style: italic;
}

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

/* Cookie-Icon für erneute Einstellungen */
#cookie-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #0066cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: none;
}

#cookie-icon:hover {
    background: #3A3AC0;
}

/* Overlay */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.cookie-overlay.active {
    display: block;
}