/* ============================================
   COOKIE CONSENT BANNER STYLES
   DSGVO-konform • Premium Design
   ============================================ */

/* --- Cookie Banner Container --- */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent.bottom {
    bottom: 0;
    border-top: 2px solid rgba(212, 130, 108, 0.2);
}

.cookie-consent.center {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    max-width: 600px;
    border-radius: 24px;
    border: 2px solid rgba(212, 130, 108, 0.2);
}

.cookie-consent.dark {
    background: rgba(30, 30, 30, 0.98);
    color: #ffffff;
}

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

.cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
    min-width: 300px;
}

.cookie-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #D4826C, #B86E5A);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cookie-text h3 {
    font-family: var(--font-heading, 'Playfair Display');
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--color-text, #2D2416);
}

.cookie-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    color: var(--color-text-light, #5C4A3A);
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.cookie-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body, 'Lato');
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #D4826C, #B86E5A);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 130, 108, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #B86E5A, #A65946);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 130, 108, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--color-text-light, #5C4A3A);
    border: 2px solid var(--color-border, #E8DED0);
}

.cookie-btn-decline:hover {
    background: var(--color-cream, #FFF8E8);
    border-color: var(--color-primary, #D4826C);
    color: var(--color-primary, #D4826C);
}

.cookie-btn-settings {
    background: var(--color-cream, #FFF8E8);
    color: var(--color-text, #2D2416);
    border: 2px solid var(--color-border, #E8DED0);
}

.cookie-btn-settings:hover {
    background: white;
    border-color: var(--color-primary, #D4826C);
    color: var(--color-primary, #D4826C);
}

/* --- Settings Modal --- */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.cookie-settings-content {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-settings-header h3 {
    font-family: var(--font-heading, 'Playfair Display');
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text, #2D2416);
}

.cookie-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text-muted, #8C7A6A);
    transition: all 0.2s ease;
    border-radius: 8px;
}

.cookie-close-btn:hover {
    background: var(--color-cream, #FFF8E8);
    color: var(--color-primary, #D4826C);
}

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

.cookie-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border-light, #F3EDE3);
}

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

.cookie-category-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cookie-category h4 {
    font-family: var(--font-body, 'Lato');
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--color-text, #2D2416);
}

.cookie-category p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    color: var(--color-text-light, #5C4A3A);
}

/* --- Toggle Switch --- */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    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: #ccc;
    transition: 0.3s;
    border-radius: 50px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    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: linear-gradient(135deg, #D4826C, #B86E5A);
}

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

.cookie-switch input:disabled + .cookie-slider {
    background: #8B9467;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--color-border-light, #F3EDE3);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* --- Animations --- */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-consent-fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-content {
        min-width: auto;
    }
    
    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-settings-content {
        border-radius: 16px;
        margin: 1rem;
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 1.25rem;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
}

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