/**
 * DSGVO Cookie-Banner Styles für NexHub.dev
 */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--gold-primary);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

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

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

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-banner-text h3 i {
    font-size: 1.8rem;
}

.cookie-banner-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cookie-details {
    margin-top: 1rem;
}

.cookie-details details {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.cookie-details summary {
    color: var(--gold-primary);
    cursor: pointer;
    font-weight: 600;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-details summary::-webkit-details-marker {
    display: none;
}

.cookie-details summary::before {
    content: '▶';
    display: inline-block;
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.cookie-details details[open] summary::before {
    transform: rotate(90deg);
}

.cookie-categories {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.cookie-category {
    margin-bottom: 1rem;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

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

.cookie-category-header strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.cookie-required {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.cookie-category p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.cookie-category ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 0 0;
}

.cookie-category ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.cookie-category ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-weight: bold;
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 200px;
}

.btn-cookie {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, var(--gold-primary) 0%, #e6c200 100%);
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-cookie-necessary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cookie-necessary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-cookie-link {
    color: var(--gold-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-cookie-link:hover {
    color: #e6c200;
    text-decoration: underline;
}

/* Cookie Settings Button (für Footer) */
.cookie-settings-btn {
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-settings-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .cookie-banner-actions {
        width: 100%;
        min-width: auto;
    }
    
    .btn-cookie {
        width: 100%;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        max-height: 95vh;
    }
    
    .cookie-banner-content {
        padding: 1rem;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
}

.cookie-optional {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
