/**
 * Cookie Consent Styling
 * Modernes Design passend zur Ganztagsplaner Website
 */

/* Cookie Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.cookie-consent-text p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-btn-settings {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.cookie-btn-settings:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.cookie-btn-reject {
    background: #e2e8f0;
    color: #2d3748;
}

.cookie-btn-reject:hover {
    background: #cbd5e0;
}

.cookie-btn-accept,
.cookie-btn-primary {
    background: #3b82f6;
    color: white;
}

.cookie-btn-accept:hover,
.cookie-btn-primary:hover {
    background: #2563eb;
}

.cookie-btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.cookie-btn-secondary:hover {
    background: #edf2f7;
}

/* Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.cookie-settings-modal.show {
    opacity: 1;
}

.cookie-settings-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cookie-settings-modal.show .cookie-settings-content {
    transform: scale(1);
}

.cookie-settings-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cookie-close-btn:hover {
    background: #f7fafc;
    color: #2d3748;
}

.cookie-settings-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-settings-intro {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-category {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.25rem 0;
}

.cookie-category-info p {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

.cookie-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.cookie-details p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 0.5rem 0;
}

.cookie-details ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.cookie-details li {
    font-size: 0.85rem;
    color: #718096;
    margin: 0.25rem 0;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #3b82f6;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-switch.disabled .cookie-slider {
    cursor: not-allowed;
}

.cookie-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.cookie-info p {
    font-size: 0.85rem;
    color: #1e40af;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.cookie-info i {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.cookie-settings-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Notification */
.cookie-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.cookie-notification.show {
    transform: translateX(0);
}

.cookie-notification i {
    font-size: 1.25rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
    
    .cookie-settings-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .cookie-settings-header {
        padding: 1.25rem;
    }
    
    .cookie-settings-header h2 {
        font-size: 1.25rem;
    }
    
    .cookie-settings-body {
        padding: 1.25rem;
    }
    
    .cookie-settings-footer {
        flex-direction: column-reverse;
        padding: 1.25rem;
    }
    
    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }
    
    .cookie-notification {
        right: 1rem;
        left: 1rem;
        top: auto;
        bottom: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: rgba(31, 41, 55, 0.98);
        color: #f9fafb;
    }
    
    .cookie-consent-text h3,
    .cookie-settings-header h2,
    .cookie-category-info h4 {
        color: #f9fafb;
    }
    
    .cookie-consent-text p,
    .cookie-settings-intro,
    .cookie-category-info p {
        color: #d1d5db;
    }
    
    .cookie-settings-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .cookie-settings-header,
    .cookie-settings-footer {
        border-color: #374151;
    }
    
    .cookie-category {
        background: #374151;
        border-color: #4b5563;
    }
    
    .cookie-btn-settings,
    .cookie-btn-secondary {
        background: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }
    
    .cookie-btn-settings:hover,
    .cookie-btn-secondary:hover {
        background: #4b5563;
    }
    
    .cookie-btn-reject {
        background: #4b5563;
        color: #f9fafb;
    }
    
    .cookie-btn-reject:hover {
        background: #6b7280;
    }
} 