/* ═══════════════════════════════════════════════════════════
   40-cookie-consent.css – DSGVO-konformer Cookie-Banner
   Ophyr Luxury Cookie Consent Manager
   Mobile-First, GPU-optimiert, Glassmorphism-Ästhetik
   ═══════════════════════════════════════════════════════════ */

/* ══════════ OVERLAY ══════════ */

.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.cookie-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ══════════ BANNER ══════════ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: rgba(13, 13, 13, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    backdrop-filter: blur(24px) saturate(1.2);
    border-top: 1px solid rgba(196, 161, 105, 0.2);
    padding: clamp(1.5rem, 4vw, 2.5rem) var(--container-padding, clamp(1.2rem, 5vw, 2.5rem));
    transform: translate3d(0, 100%, 0);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.cookie-banner.is-visible {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

.cookie-banner.is-hidden {
    transform: translate3d(0, 100%, 0);
    opacity: 0;
    pointer-events: none;
}

/* ══════════ INNER LAYOUT ══════════ */

.cookie-inner {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 3vw, 1.5rem);
}

/* ══════════ TEXT ══════════ */

.cookie-title {
    font-family: var(--font-accent, 'Montserrat', sans-serif);
    font-weight: 300;
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold, #c4a169);
    margin: 0 0 0.5rem;
}

.cookie-text {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-weight: 300;
    font-size: clamp(0.78rem, 1.8vw, 0.88rem);
    line-height: 1.7;
    color: rgba(253, 252, 248, 0.7);
    margin: 0;
}

.cookie-text a {
    color: var(--gold, #c4a169);
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 161, 105, 0.3);
    transition: border-color 0.3s ease;
}

.cookie-text a:hover {
    border-bottom-color: var(--gold, #c4a169);
}

/* ══════════ BUTTONS ══════════ */

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cookie-btn {
    font-family: var(--font-accent, 'Montserrat', sans-serif);
    font-weight: 400;
    font-size: clamp(0.65rem, 1.5vw, 0.75rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: clamp(0.85rem, 2.5vw, 1.1rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 62.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Primary: Gold-Füllung */
.cookie-btn--accept {
    background: linear-gradient(160deg, #d4b87a 0%, #c4a169 40%, #b8935a 100%);
    color: #1a1610;
    border-color: rgba(160, 130, 75, 0.35);
}

.cookie-btn--accept:hover {
    background: linear-gradient(160deg, #dfc68c 0%, #d0ad75 40%, #c4a169 100%);
    box-shadow: 0 0.25rem 1.5rem rgba(196, 161, 105, 0.25),
                0 0 3rem rgba(196, 161, 105, 0.1);
}

.cookie-btn--accept:active {
    transform: scale(0.97) translateZ(0);
}

/* Secondary: Ghost-Button */
.cookie-btn--essential {
    background: transparent;
    color: rgba(253, 252, 248, 0.65);
    border-color: rgba(253, 252, 248, 0.2);
}

.cookie-btn--essential:hover {
    color: rgba(253, 252, 248, 0.9);
    border-color: rgba(253, 252, 248, 0.4);
    background: rgba(253, 252, 248, 0.05);
}

.cookie-btn--essential:active {
    transform: scale(0.97) translateZ(0);
}

/* ══════════ TABLET+ ══════════ */

@media (min-width: 48rem) {
    .cookie-inner {
        flex-direction: row;
        align-items: center;
    }

    .cookie-content {
        flex: 1;
    }

    .cookie-actions {
        flex-direction: row;
        flex-shrink: 0;
    }
}

/* ══════════ REDUCED MOTION ══════════ */

@media (prefers-reduced-motion: reduce) {
    .cookie-banner,
    .cookie-overlay {
        transition: none;
    }

    .cookie-btn {
        transition: none;
    }
}
