/* Cookie Consent Banner Styles */
/* GDPR-compliant cookie consent system for BGV Bergisch Land */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    border-top: 3px solid #0056b3;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-consent-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.cookie-consent-text p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
}

.cookie-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.cookie-checkbox:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-checkbox input[type="checkbox"] {
    margin: 0;
    margin-top: 0.125rem;
    cursor: pointer;
}

.cookie-checkbox input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-checkbox strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.cookie-checkbox small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.3;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
}

.cookie-consent-buttons .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-buttons .btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.cookie-consent-buttons .btn-primary:hover {
    background-color: #003d7a;
    border-color: #003d7a;
    transform: translateY(-1px);
}

.cookie-consent-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cookie-consent-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.cookie-consent-buttons .btn-outline-secondary {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: transparent;
}

.cookie-consent-buttons .btn-outline-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        gap: 0.75rem;
    }
    
    .cookie-consent-text h4 {
        font-size: 1rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.85rem;
    }
    
    .cookie-options {
        gap: 0.5rem;
    }
    
    .cookie-checkbox {
        font-size: 0.8rem;
        padding: 0.375rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 0.75rem;
    }
    
    .cookie-consent-text h4 {
        font-size: 0.95rem;
    }
    
    .cookie-consent-text p {
        font-size: 0.8rem;
    }
    
    .cookie-checkbox {
        font-size: 0.75rem;
    }
    
    .cookie-checkbox small {
        font-size: 0.7rem;
    }
}

/* Accessibility improvements */
.cookie-consent-banner:focus-within {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.cookie-checkbox:focus-within {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
    border-radius: 0.375rem;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        background: #000;
        border-top-color: #fff;
    }
    
    .cookie-checkbox {
        background: #333;
        border: 1px solid #fff;
    }
    
    .cookie-checkbox:hover {
        background: #555;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-checkbox,
    .cookie-consent-buttons .btn {
        transition: none;
    }
    
    .cookie-consent-buttons .btn:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .cookie-consent-banner {
        display: none !important;
    }
}
