/* Cookie-Banner Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 2147483647; /* make sure it's above anything else */
    padding: calc(1.5rem + env(safe-area-inset-bottom, 0px)) 1.5rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid var(--primary-color);
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

.cookie-banner-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.cookie-banner-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.cookie-banner-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.3);
}

.cookie-banner-btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

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

.cookie-banner-btn-link {
    background: transparent;
    color: var(--primary-color);
    text-decoration: underline;
    padding: 0.75rem 0;
}

.cookie-banner-btn-link:hover {
    color: var(--primary-dark);
}

/* Cookie-Einstellungen Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.cookie-modal-header h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: var(--text-dark);
}

.cookie-modal-body {
    margin-bottom: 2rem;
}

.cookie-category {
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
}

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

.cookie-category-header h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-toggle.active {
    background: var(--primary-color);
}

.cookie-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle.active .cookie-toggle-slider {
    transform: translateX(24px);
}

.cookie-category-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-banner-btn {
        width: 100%;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column-reverse;
    }
    
    .cookie-modal-footer .cookie-banner-btn {
        width: 100%;
    }
}

