/* ═══════════════════════════════════════════
   CRO — Sticky CTA, Top Bar
   ═══════════════════════════════════════════ */

/* ── Sticky CTA ─────────────────────────── */

/* Sticky CTA erbt von .l7-btn.l7-btn--primary.l7-btn--pill — nur Position/Animation hier */
.l7-sticky-cta {
    position: fixed;
    z-index: 999;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transform: translateX(calc(100% + 3rem));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                right 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.l7-sticky-cta--bottom-right {
    bottom: 2rem;
    right: 2rem;
}

.l7-sticky-cta--bottom-center {
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 3rem));
}

.l7-sticky-cta.is-visible {
    transform: translateX(0);
}

.l7-sticky-cta--bottom-center.is-visible {
    transform: translateX(-50%) translateY(0);
}

.l7-sticky-cta.is-hidden {
    transform: translateX(calc(100% + 3rem));
}

.l7-sticky-cta--bottom-center.is-hidden {
    transform: translateX(-50%) translateY(calc(100% + 3rem));
}

.l7-sticky-cta:hover {
    opacity: 0.9;
}

/* Landing: wandert horizontal zur Mitte */
.l7-sticky-cta.is-landing {
    right: 50% !important;
    transform: translateX(50%) !important;
    animation: none !important;
}

/* Pulse Animation */
@keyframes l7-pulse {
    0% {
        outline: rgba(255, 255, 255, 0.4) solid 0;
    }
    100% {
        outline: rgba(255, 255, 255, 0) solid 0.75em;
    }
}

.l7-sticky-cta.is-visible {
    animation: l7-pulse 2.55s cubic-bezier(0.66, 0, 0, 1) infinite;
}

/* Pixel Arrow (global reusable) */
.l7-pixel-arrow {
    width: 18px;
    height: 12px;
}

/* ── Top Bar ────────────────────────────── */

.l7-topbar {
    position: fixed;
    top: var(--l7-section-px-top, 10px);
    left: var(--l7-section-px);
    right: var(--l7-section-px);
    background: var(--l7-topbar-bg, #1D1D1D);
    color: var(--l7-text-light);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    z-index: 1002;
    letter-spacing: 0.01em;
    border-radius: var(--l7-radius);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.l7-topbar--hidden {
    transform: translateY(calc(-100% - var(--l7-section-px-top, 10px)));
    opacity: 0;
    pointer-events: none;
}

.l7-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em var(--l7-container-px);
    min-height: var(--l7-topbar-h, 36px);
}

.l7-topbar__text {
    flex: 1;
}

.l7-topbar__text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.l7-topbar__close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0 0 1em;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.l7-topbar__close:hover {
    opacity: 1;
}

.l7-topbar.is-closed {
    display: none;
}

/* ── Marquee ────────────────────────────── */

.l7-topbar--marquee .l7-topbar__inner {
    overflow: hidden;
}

.l7-topbar__marquee {
    display: flex;
    white-space: nowrap;
    animation: l7-marquee 20s linear infinite;
}

.l7-topbar__marquee-text {
    flex-shrink: 0;
    padding-right: 4em;
}

@keyframes l7-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
