/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white, #ffffff);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: clamp(1.5rem, 3vw, 2rem);
}

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

/* Verhindert Überlappung mit Content auf Mobile */
body.cookie-banner-visible {
    padding-bottom: 0;
}

@media (max-width: 768px) {
    body.cookie-banner-visible {
        padding-bottom: 380px;
    }
}

@media (max-width: 480px) {
    body.cookie-banner-visible {
        padding-bottom: 420px;
    }
}

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

.cookie-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-orange, #ff6b35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white, #ffffff);
}

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

.cookie-text h3 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark, #1a1a1a);
}

.cookie-text p {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: var(--text-body, #4a5568);
    margin: 0;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary-orange, #ff6b35);
    text-decoration: underline;
    transition: color 0.2s;
}

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

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--primary-orange, #ff6b35);
    color: var(--white, #ffffff);
}

.cookie-btn-accept:hover {
    background: #e55a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--text-dark, #1a1a1a);
    border: 2px solid var(--border-color, #e2e8f0);
}

.cookie-btn-settings:hover {
    background: var(--bg-light, #f8f9fa);
    border-color: var(--text-dark, #1a1a1a);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--text-body, #4a5568);
    border: 2px solid var(--border-color, #e2e8f0);
}

.cookie-btn-decline:hover {
    background: var(--bg-light, #f8f9fa);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: var(--white, #ffffff);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

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

.cookie-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark, #1a1a1a);
}

.cookie-close-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: var(--text-body, #4a5568);
}

.cookie-close-btn:hover {
    background: var(--bg-light, #f8f9fa);
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light, #f8f9fa);
    border-radius: 12px;
}

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

.cookie-category-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark, #1a1a1a);
}

.cookie-category p {
    font-size: 0.9375rem;
    color: var(--text-body, #4a5568);
    margin: 0.5rem 0 0;
    line-height: 1.6;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.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: var(--border-color, #e2e8f0);
    border-radius: 28px;
    transition: 0.3s;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--primary-orange, #ff6b35);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category-required {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-blue, #2c5aa0);
    color: var(--white, #ffffff);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1.5rem;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-icon {
        width: 40px;
        height: 40px;
    }
    
    .cookie-text h3 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.875rem;
    }
}
