/* Cookie Banner Styles mit Barrierefreiheits-Features */

.cookie-banner-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1f36;
    color: white;
    z-index: 9999;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-banner-content {
    flex: 1;
    padding: 2rem 5%;
    overflow-y: auto;
    max-height: calc(85vh - 140px);
    display: flex;
    flex-direction: column;
}

.cookie-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #3a4063;
    padding-bottom: 1rem;
}

.cookie-banner-header h3 {
    color: #f9fafb;
    font-size: 1.5rem;
    margin: 0;
    /* ✅ WCAG AA Kontrast: 4.5:1 */
}

.cookie-banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* ✅ Große Touch-Ziele (min. 44x44px) */
    min-height: 44px;
    min-width: 44px;
    padding: 0.75rem 1.5rem;
}

.cookie-banner-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* ✅ Fokus-Indikator für Screenreader-Nutzer */
.cookie-banner button:focus,
.cookie-banner [href]:focus,
.cookie-banner input:focus,
.cookie-banner .cookie-toggle label:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.cookie-banner-intro {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cookie-banner-intro p {
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.cookie-banner-intro a {
    color: #7dd3fc !important;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-intro a:hover {
    color: #bae6fd !important;
}

.cookie-options {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cookie-option {
    background: #2a304d;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.cookie-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

.cookie-option-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.cookie-option-description {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

/* ✅ Große Touch-Ziele für Labels */
.cookie-toggle label {
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    min-height: 44px; /* ✅ WCAG 2.5.5 */
    min-width: 44px;
    padding: 0.75rem 1.5rem;
}

.cookie-details {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #3a4063;
    order: -1;
}

.btn-accept-all,
.btn-reject-all {
    /* ✅ Große Touch-Ziele (min. 44x44px) */
    min-height: 44px;
    min-width: 44px;
    padding: 0.875rem 2rem;
}

.btn-accept-all {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept-all:hover {
    background: #1e4a80;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,58,95,0.3);
}

.btn-reject-all {
    background: transparent;
    color: #e5e7eb;
    border: 2px solid #64748b;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reject-all:hover {
    border-color: #93c5fd;
    color: white;
}

#cookie-learn-more {
    color: #7dd3fc;
    text-decoration: underline;
    font-weight: 600;
}

#cookie-learn-more:hover {
    color: #bae6fd;
}

/* ✅ Verstecke visuell, aber nicht für Screenreader */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (max-width: 768px) {
    .cookie-banner-container {
        max-height: 90vh;
    }
    
    .cookie-banner-content {
        padding: 1.5rem;
    }
    
    .cookie-banner-header h3 {
        font-size: 1.25rem;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
    
    .btn-accept-all,
    .btn-reject-all {
        width: 100%;
    }
}