/* Cookie-Banner Styles für BLV-HP */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 3px solid var(--primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    animation: slideUp 0.3s ease-out;
}

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

.cookie-banner-text h3 {
    color: var(--primary);
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-text h3 i {
    color: var(--secondary);
}

.cookie-banner-text p {
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.cookie-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.cookie-option:hover {
    background: var(--bg-secondary);
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

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

.cookie-option span {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.cookie-banner-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-link {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    text-decoration: underline;
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Cookie-Notice (für Benachrichtigungen) */
.cookie-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.cookie-notice-content {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cookie-notice-content i {
    color: var(--primary);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.cookie-notice-content span {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.4;
    flex: 1;
}

.cookie-notice-content button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cookie-notice-content button:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Cookie-Einstellungen Button im Footer */
.cookie-settings-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-decoration: underline;
}

.cookie-settings-btn:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

/* Animationen */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 1rem;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.2rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-options {
        gap: 0.5rem;
    }
    
    .cookie-option {
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 0.75rem;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .cookie-notice {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Dark Mode Anpassungen */
@media (prefers-color-scheme: dark) {
    .cookie-banner {
        background: var(--bg-primary);
        border-top-color: var(--primary);
    }
    
    .cookie-notice {
        background: var(--bg-primary);
        border-color: var(--border);
    }
}
