/* Blog Booster — Sticky Bar
 * Neutrale, dezente Floating-Leiste. Verwendet CSS-Vars die per <style>
 * im Renderer gesetzt werden (--bb-sb-bg, --bb-sb-color). */

.bb-sb {
    position: fixed;
    left: 0;
    right: 0;
    /* Sticky-Bar-Layer (1030) — non-blocking, darf neben Modals leben (sidecart hat 1075). */
    z-index: var(--z-sticky-bar, 1030);
    background: var(--bb-sb-bg, #1f2937);
    color: var(--bb-sb-color, #ffffff);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .15);
    transform: translateY(110%);
    transition: transform .35s ease;
    will-change: transform;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
}

.bb-sb--bottom {
    bottom: 0;
}

.bb-sb--top {
    top: 0;
    transform: translateY(-110%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.bb-sb.is-visible {
    transform: translateY(0);
}

.bb-sb__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 48px 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.bb-sb__text {
    margin: 0;
    flex: 1 1 auto;
    min-width: 200px;
    text-align: center;
}

.bb-sb__text strong,
.bb-sb__text b {
    font-weight: 700;
}

.bb-sb__cta {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bb-sb-color, #ffffff);
    color: var(--bb-sb-bg, #1f2937);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: opacity .15s ease, transform .15s ease;
    white-space: nowrap;
}

.bb-sb__cta:hover,
.bb-sb__cta:focus {
    opacity: .9;
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--bb-sb-bg, #1f2937);
}

.bb-sb__coupon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .14);
    border: 1px dashed rgba(255, 255, 255, .35);
    border-radius: 4px;
    padding: 2px 6px 2px 8px;
    margin: 0 2px;
    vertical-align: baseline;
}

.bb-sb__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: .95em;
    letter-spacing: .03em;
}

.bb-sb__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, .18);
    color: inherit;
    border-radius: 3px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    position: relative;
}

.bb-sb__copy:hover,
.bb-sb__copy:focus {
    background: rgba(255, 255, 255, .32);
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

.bb-sb__copy .bb-sb__check-icon { display: none; }
.bb-sb__copy.is-copied .bb-sb__copy-icon { display: none; }
.bb-sb__copy.is-copied .bb-sb__check-icon { display: inline-block; }
.bb-sb__copy.is-copied {
    background: rgba(34, 197, 94, .35);
}

.bb-sb__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    color: inherit;
    border: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
    transition: opacity .15s ease;
    border-radius: 4px;
}

.bb-sb__close:hover,
.bb-sb__close:focus {
    opacity: 1;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .bb-sb {
        font-size: 14px;
    }
    .bb-sb__inner {
        padding: 10px 44px 10px 14px;
        gap: 10px;
    }
    .bb-sb__cta {
        padding: 7px 16px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-sb {
        transition: none;
    }
}
