/* Cookie Manager Styles - Dark Blue + Orange Design */

/* Cookie Banner */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border-top: 3px solid #f97316;
}

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

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-text h3 i {
    width: 24px;
    height: 24px;
    color: #f97316;
}

.cookie-banner-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
}

.cookie-banner-text a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.cookie-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.875rem 1.75rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-family: inherit;
    white-space: nowrap !important;
}

.cookie-btn i {
    width: 18px;
    height: 18px;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.cookie-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-text {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.875rem 1.75rem !important;
}

.cookie-btn-text:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Cookie Modal */
#cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#cookie-modal.show {
    opacity: 1;
    pointer-events: all;
}

.cookie-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 20px 20px 0 0;
    position: relative;
    flex-shrink: 0;
}

.cookie-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a202c;
    margin: 0 0 0.375rem 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.cookie-modal-header h2 i {
    width: 28px;
    height: 28px;
    color: #f97316;
}

.cookie-modal-header p {
    color: rgba(26, 32, 44, 0.85);
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.cookie-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.cookie-modal-close i {
    width: 20px;
    height: 20px;
    color: #1a202c;
}

.cookie-modal-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    color: #1a202c !important;
}

.cookie-modal-body * {
    color: #1a202c !important;
}

.cookie-category {
    background: rgba(249, 115, 22, 0.05);
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-category-title h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #1a365d;
    margin: 0;
}

.cookie-category-title i {
    width: 20px;
    height: 20px;
    color: #f97316;
}

.cookie-toggle {
    position: relative;
    width: 52px;
    height: 28px;
}

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

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-description {
    font-size: 0.8rem;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
}

.cookie-category.always-active {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.cookie-category.always-active .cookie-category-title i {
    color: #10b981;
}

.always-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #059669;
}

.always-active-badge i {
    width: 16px;
    height: 16px;
}

.cookie-modal-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 1.25rem 1.5rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .cookie-banner-text {
        min-width: auto;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    #cookie-modal {
        padding: 1rem;
    }

    .cookie-modal-content {
        max-height: 95vh;
    }

    .cookie-modal-header {
        padding: 1.5rem;
    }

    .cookie-modal-body {
        padding: 1.5rem;
    }

    .cookie-modal-footer {
        flex-direction: column;
        padding: 1.25rem 1.5rem;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Accessibility */
.cookie-btn:focus-visible,
.cookie-toggle input:focus-visible + .cookie-toggle-slider,
.cookie-modal-close:focus-visible {
    outline: 3px solid #f97316;
    outline-offset: 2px;
}

/* Smooth scrolling für Modal */
.cookie-modal-content {
    scroll-behavior: smooth;
}

.cookie-modal-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.cookie-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.cookie-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
