/* Cookie Banner Styles - DSGVO Konform */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border-top: 3px solid #1e40af;
    display: none;
}

.cookie-banner.visible {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.cookie-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
    max-width: 800px;
}

.cookie-text a {
    color: #1e40af;
    text-decoration: underline;
}

.cookie-text a:hover {
    color: #1e3a8a;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-primary {
    background: #1e40af;
    color: white;
}

.cookie-btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.cookie-btn-secondary:hover {
    background: #e2e8f0;
}

.cookie-btn-text {
    background: transparent;
    color: #64748b;
    padding: 12px 16px;
}

.cookie-btn-text:hover {
    color: #1e293b;
}

/* Settings Modal */
.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings.visible {
    display: flex;
}

.cookie-settings-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cookie-settings-header {
    padding: 24px 24px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-settings-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.cookie-settings-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.cookie-settings-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

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

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

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.cookie-category-required {
    font-size: 12px;
    color: #1e40af;
    background: #eff6ff;
    padding: 4px 8px;
    border-radius: 4px;
}

.cookie-category-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.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: .3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .cookie-toggle-slider {
    background-color: #1e40af;
}

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

input:disabled + .cookie-toggle-slider {
    background-color: #e2e8f0;
    cursor: not-allowed;
}

input:disabled + .cookie-toggle-slider:before {
    background-color: #cbd5e1;
}

.cookie-settings-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Mobile */
@media (max-width: 640px) {
    .cookie-container {
        padding: 16px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-settings-modal {
        max-height: 95vh;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner.visible {
        animation: none;
    }
    
    .cookie-btn, .cookie-toggle-slider {
        transition: none;
    }
}
