/* Preise-Seite – Next-Level-Darstellung (subscription-pro.js). Lädt nach subscription-landing.css. */

/* ---------- Seite: volle Breite ohne feste Warenkorb-Spalte ---------- */
html body.sxp .sub-page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding-right: 1.25rem !important;
}

/* Warenkorb auf allen Größen als ausklappbare Leiste (Inline-CSS fixiert sie sonst ab 961px) */
html body.sxp .sub-cart-sidebar {
    top: 0 !important;
    width: min(420px, 100%) !important;
    transform: translate3d(100%, 0, 0) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.34s !important;
    z-index: 100040 !important;
}
html body.sxp .sub-cart-sidebar.sub-cart-sidebar--open {
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
html body.sxp .sub-cart-sidebar__panel {
    background: rgba(12, 13, 22, 0.97) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
html body.sxp .sub-cart-sidebar__close { display: inline-flex !important; }
html body.sxp .sub-cart-backdrop { display: block !important; z-index: 100035; }
html body.sxp .sub-cart-backdrop[hidden]:not(.sub-cart-backdrop--visible) { display: none !important; }
html body.sxp .sub-cart-fab { display: inline-flex !important; }
html body.sxp.sxp-cart-active .sub-cart-fab { display: none !important; }

/* ---------- Kopf ---------- */
html body.sxp .sub-hero { text-align: center; margin: 0.6rem auto 1.4rem; max-width: 760px; }
html body.sxp .sub-hero__title {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem) !important;
    line-height: 1.08;
    letter-spacing: -0.035em;
}
html body.sxp .sub-hero__lead { font-size: clamp(1rem, 1.4vw, 1.12rem) !important; color: rgba(235, 237, 245, 0.68); }
html body.sxp .sub-hero__trust { justify-content: center; }

/* Hinweis „Buchung pausiert“: dezent statt Warnkasten */
html body.sxp .sub-checkout-notice {
    max-width: 760px;
    margin: 0 auto 1rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    border-color: rgba(250, 166, 26, 0.28);
    background: rgba(250, 166, 26, 0.07);
    align-items: center;
    font-size: 0.82rem;
}
html body.sxp .sub-checkout-notice__title { display: inline; margin: 0 0.35rem 0 0; font-size: 0.84rem; }
html body.sxp .sub-checkout-notice__lead { display: inline; color: rgba(245, 217, 168, 0.75); }
html body.sxp .sub-checkout-notice > div { line-height: 1.45; }
html body.sxp .sub-sync-line { text-align: center; justify-content: center; }

/* ---------- So funktioniert's ---------- */
.sxp-steps { margin: 0 auto 2rem; }
.sxp-steps__title {
    margin: 0 0 0.9rem;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a5acff;
}
.sxp-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    counter-reset: none;
}
.sxp-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(120% 100% at 0% 0%, rgba(88, 101, 242, 0.14), transparent 60%), rgba(16, 18, 30, 0.6);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.sxp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -0.62rem;
    width: 0.4rem;
    height: 0.4rem;
    border-top: 2px solid rgba(139, 147, 255, 0.55);
    border-right: 2px solid rgba(139, 147, 255, 0.55);
    transform: translateY(-50%) rotate(45deg);
}
.sxp-step__num {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.06);
}
.sxp-step__ico {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 0.25rem;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #5865f2, #8b5cf6);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.35);
}
.sxp-step b { color: #fff; font-size: 0.98rem; }
.sxp-step > span:last-child { color: rgba(235, 237, 245, 0.62); font-size: 0.86rem; line-height: 1.5; }

/* ---------- Plan-Karten ---------- */
html body.sxp .sub-tier-cards { gap: 1rem !important; }
html body.sxp .sub-tier-card-wrap { position: relative; }
html body.sxp .sub-tier-card {
    gap: 0.45rem;
    flex: 1 1 auto;
    padding: 1.3rem 1.25rem 1.2rem !important;
    border-radius: 20px !important;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(10, 11, 20, 0.35)) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}
html body.sxp .sub-tier-card:hover { transform: translateY(-4px) !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
html body.sxp .sub-tier-card__icon { width: 2.6rem; height: 2.6rem; border-radius: 13px; font-size: 1.1rem; }
html body.sxp .sub-tier-card__name { font-size: 1.3rem !important; letter-spacing: -0.02em; }
.sxp-tag { margin-top: -0.25rem; font-size: 0.8rem; color: rgba(235, 237, 245, 0.55); }
html body.sxp .sub-tier-card__price {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0.35rem 0 0.25rem;
    font-size: 2.1rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
html body.sxp .sub-tier-card--free .sub-tier-card__price { font-size: 1.6rem !important; color: #e2e5f5 !important; }
.sxp-per { font-size: 0.82rem; font-weight: 600; letter-spacing: 0; color: rgba(235, 237, 245, 0.5); }
html body.sxp .sub-tier-card__perks {
    gap: 0.45rem !important;
    margin-top: 0.4rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    width: 100%;
    font-size: 0.86rem !important;
    color: rgba(235, 237, 245, 0.78) !important;
}
html body.sxp .sub-tier-card__perks i {
    width: 1.35rem !important;
    height: 1.35rem;
    display: inline-grid !important;
    place-items: center;
    border-radius: 7px;
    font-size: 0.68rem !important;
    color: #a5acff !important;
    background: rgba(88, 101, 242, 0.14);
}
/* hervorgehobene Stufen: Verlaufsrahmen + Band */
html body.sxp .sub-tier-card.sxp-hl {
    border-color: transparent !important;
    background:
        linear-gradient(160deg, rgba(40, 34, 70, 0.96), rgba(14, 14, 26, 0.96)) padding-box,
        linear-gradient(135deg, #fde68a, #8b5cf6 55%, #5865f2) border-box !important;
    border: 1px solid transparent !important;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.25), 0 0 0 1px rgba(253, 230, 138, 0.08) inset;
}
.sxp-ribbon {
    position: absolute;
    top: -0.7rem;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #1a1400;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
}
html body.sxp .sxp-has-ribbon { margin-top: 0.7rem; }
html body.sxp .sub-pill-cart-btn--add {
    width: 100%;
    justify-content: center;
    min-height: 42px !important;
    border-radius: 12px !important;
    font-weight: 700;
}
html body.sxp .sxp-has-ribbon .sub-pill-cart-btn--add {
    border-color: transparent !important;
    background: linear-gradient(135deg, #5865f2, #8b5cf6) !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(88, 101, 242, 0.35);
}

/* ---------- Funktionsvergleich: zweispaltig statt endloser Liste ---------- */
@media (min-width: 1000px) {
    html body.sxp .sub-feat-matrix { display: block !important; column-count: 2; column-gap: 1rem; }
    html body.sxp .sub-feat-matrix__top { column-span: all; margin-bottom: 0.8rem; }
    html body.sxp .sub-feat-matrix__group {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        display: inline-block;
        width: 100%;
        margin: 0 0 1rem;
    }
}
html body.sxp .sub-feat-matrix__group {
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

/* ---------- Kassen-Leiste ---------- */
.sxp-cartbar {
    position: fixed;
    left: 50%;
    bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
    z-index: 100010;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: calc(100vw - 7rem);
    padding: 0.55rem 0.55rem 0.55rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 147, 255, 0.4);
    background: rgba(16, 18, 32, 0.94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(88, 101, 242, 0.15) inset;
    transform: translateX(-50%);
    animation: sxp-bar-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.sxp-cartbar[hidden] { display: none; }
@keyframes sxp-bar-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.sxp-cartbar__ico {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #5865f2, #8b5cf6);
}
.sxp-cartbar__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sxp-cartbar__count { color: #fff; font-size: 0.86rem; }
.sxp-cartbar__sum { color: rgba(235, 237, 245, 0.62); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxp-cartbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    height: 38px;
    padding: 0 1rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #12131c;
    font: 700 0.84rem Inter, system-ui, sans-serif;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.sxp-cartbar__btn:hover { transform: translateX(2px); }

@media (max-width: 760px) {
    .sxp-steps__list { grid-template-columns: 1fr; gap: 0.6rem; }
    .sxp-step { display: grid; grid-template-columns: 38px 1fr; column-gap: 0.8rem; row-gap: 0.15rem; padding: 0.85rem 0.95rem; }
    .sxp-step__ico { grid-row: 1 / span 2; margin: 0; }
    .sxp-step__num { display: none; }
    .sxp-step:not(:last-child)::after { top: auto; bottom: -0.62rem; right: 50%; transform: translateX(50%) rotate(135deg); }
    html body.sxp .sub-checkout-notice { border-radius: 14px; }
    .sxp-cartbar { left: 0.75rem; right: 4.5rem; max-width: none; transform: none; animation: none; }
    .sxp-cartbar__btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sxp-cartbar { animation: none; }
    html body.sxp .sub-tier-card { transition: none !important; }
}
