/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text a {
    color: #3498db;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #2980b9;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #27ae60;
    color: white;
}

.cookie-btn-accept:hover {
    background: #219a52;
}

.cookie-btn-decline {
    background: #34495e;
    color: white;
}

.cookie-btn-decline:hover {
    background: #2c3e50;
}

.cookie-btn-settings {
    background: #95a5a6;
    color: white;
}

.cookie-btn-settings:hover {
    background: #7f8c8d;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.cookie-settings-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-settings-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 40px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.1);
    animation: slideInUp 0.4s ease-out;
}

.cookie-settings-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f2f6;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-settings-close:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.cookie-settings h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.cookie-settings h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cookie-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.cookie-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.cookie-category h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-category.disabled h4::before {
    content: '🔒';
    margin-right: 8px;
}

.cookie-category:not(.disabled) h4::before {
    content: '🍪';
    margin-right: 8px;
}

.cookie-category p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    z-index: -1;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 28px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1);
}

input:checked + .cookie-slider {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 2px rgba(52, 152, 219, 0.2);
}

input:checked + .cookie-slider:before {
    transform: translateX(28px);
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.3), 0 1px 3px rgba(0,0,0,0.1);
}

.cookie-toggle.disabled .cookie-slider {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    cursor: not-allowed;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 0 0 2px rgba(39, 174, 96, 0.2);
}

.cookie-toggle.disabled .cookie-slider:before {
    transform: translateX(28px);
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.3), 0 1px 3px rgba(0,0,0,0.1);
}

.cookie-toggle.disabled input {
    cursor: not-allowed;
}

/* Sicherstellen, dass normale Toggle-Switches klickbar sind */
.cookie-toggle:not(.disabled) .cookie-slider {
    cursor: pointer;
}

.cookie-toggle:not(.disabled) input {
    cursor: pointer;
}

.cookie-toggle:not(.disabled) .cookie-slider:hover {
    transform: scale(1.02);
}

.cookie-toggle:not(.disabled) .cookie-slider:active {
    transform: scale(0.98);
}

.cookie-settings-actions {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    padding-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-settings-actions .cookie-btn {
    min-width: 140px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.cookie-settings-actions .cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        min-width: 100px;
    }
    
    .cookie-settings-content {
        margin: 10px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 0;
        padding: 8px 12px;
        font-size: 12px;
    }
}