/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 107, 53, 0.3);
    padding: 30px 40px;
    z-index: 10000;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.8);
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.cookie-icon {
    font-size: 48px;
    line-height: 1;
    animation: cookieRotate 3s ease-in-out infinite;
}

@keyframes cookieRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cookie-description {
    color: #a1a1a6;
    line-height: 1.6;
    font-size: 14px;
}

.cookie-actions {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
}

.cookie-btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f7;
}

.cookie-btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

.cookie-btn-text {
    background: transparent;
    color: #a1a1a6;
    padding: 14px 24px;
}

.cookie-btn-text:hover {
    color: #ff6b35;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(0, 0, 0, 0.98) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 24px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: #a1a1a6;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cookie-modal-close:hover {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 40px;
}

.cookie-modal-intro {
    color: #a1a1a6;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 15px;
}

.cookie-category {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: rgba(255, 107, 53, 0.3);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 107, 53, 0.02) 100%);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 8px;
}

.cookie-category-info p {
    color: #a1a1a6;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-toggle-switch.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 30px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, #666, #888);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.cookie-toggle-switch input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #28a745, #34d058);
    border-color: #28a745;
}

.cookie-toggle-switch input:checked + .cookie-toggle-slider:before {
    transform: translateX(30px);
    background: linear-gradient(135deg, #fff, #f0f0f0);
}

.cookie-toggle-switch input:disabled + .cookie-toggle-slider {
    background: linear-gradient(135deg, #28a745, #34d058);
    border-color: #28a745;
}

.cookie-toggle-switch input:disabled + .cookie-toggle-slider:before {
    transform: translateX(30px);
    background: linear-gradient(135deg, #fff, #f0f0f0);
}

.cookie-modal-footer {
    padding: 30px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Scrollbar Styling für Modal */
.cookie-modal-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.cookie-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border-radius: 10px;
}

.cookie-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-icon {
        font-size: 36px;
    }
    
    .cookie-title {
        font-size: 20px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-modal-header h2 {
        font-size: 22px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
}