/**
 * Academy Paywall – Zugang gesperrt / Conversion-Teaser.
 */

.ph-apw {
    --ph-apw-bg: #141418;
    --ph-apw-card: #1e1e24;
    --ph-apw-border: rgba(255, 255, 255, 0.08);
    --ph-apw-text: var(--ph-app-text, #f4f4f5);
    --ph-apw-muted: var(--ph-app-muted, #a1a1aa);
    --ph-apw-accent: var(--ph-app-red, #ef4444);
    --ph-apw-accent-deep: var(--ph-app-red-deep, #b91c1c);
    --ph-apw-radius: 14px;
    --ph-apw-gap: clamp(1rem, 2vw, 1.5rem);

    width: 100%;
    padding: clamp(1.1rem, 2.2vw, 1.65rem);
    color: var(--ph-apw-text);
    background: var(--ph-apw-bg);
    border: 1px solid var(--ph-apw-border);
    border-radius: var(--ph-app-radius, 18px);
    box-shadow: var(--ph-app-shadow, 0 18px 40px rgba(0, 0, 0, 0.42));
}

/* ── Header ── */

.ph-apw__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.65rem, 1.4vw, 1rem);
    margin-bottom: clamp(0.85rem, 1.6vw, 1.2rem);
    padding-bottom: clamp(0.7rem, 1.2vw, 0.95rem);
    border-bottom: 1px solid var(--ph-apw-border);
}

.ph-apw__identity {
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 1.6vw, 1.15rem);
    flex: 1 1 220px;
    min-width: 0;
}

.ph-apw__avatar {
    flex-shrink: 0;
    width: clamp(76px, 11vw, 104px);
    height: clamp(76px, 11vw, 104px);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.ph-apw__titles {
    min-width: 0;
}

.ph-apw__headline {
    margin: 0 0 0.2rem;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ph-apw__subheadline {
    margin: 0;
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    line-height: 1.35;
    color: var(--ph-apw-muted);
}

.ph-apw__cta-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
}

.ph-apw__cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.45rem, 0.9vw, 0.65rem);
}

.ph-apw__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(128px, 16vw, 168px);
    padding: 0.68rem 1.2rem;
    font-size: clamp(0.88rem, 1.05vw, 0.98rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(180deg, var(--ph-apw-accent) 0%, var(--ph-apw-accent-deep) 100%);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35);
    transition: transform 0.18s var(--ph-ease-out, ease-out), box-shadow 0.18s var(--ph-ease-out, ease-out);
}

.ph-apw__cta:hover,
.ph-apw__cta:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.45);
}

.ph-apw__social {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.25;
    color: var(--ph-apw-muted);
    text-align: right;
}

.ph-apw__google {
    margin: 0;
    flex-shrink: 0;
}

.ph-apw__google .ph-social-proof-outer {
    margin: 0;
}

.ph-apw__google .ph-social-proof {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ph-apw-border);
    border-radius: 999px;
    padding: 0.24rem 0.55rem;
}

/* ── Feature-Box (alle Promo-Features nacheinander) ── */

.ph-apw__features-box {
    margin-bottom: clamp(1rem, 2vw, 1.35rem);
    padding: clamp(1rem, 1.8vw, 1.35rem);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.22) 100%);
    border: 1px solid var(--ph-apw-border);
    border-radius: var(--ph-app-radius, 18px);
    box-shadow: var(--ph-app-shadow-inset, inset 0 1px 0 rgba(255, 255, 255, 0.07));
    position: relative;
    overflow: hidden;
    --ph-section-accent: #ef4444;
    --ph-section-glow: rgba(239, 68, 68, 0.35);
    --ph-apw-ambient-glow: rgba(239, 68, 68, 0.14);
}

.ph-apw__features-box::before {
    content: "";
    position: absolute;
    left: -8%;
    top: 18%;
    width: 58%;
    height: 62%;
    border-radius: 50%;
    background: radial-gradient(ellipse at 42% 48%, var(--ph-apw-ambient-glow) 0%, transparent 72%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.45s var(--ph-ease-out, ease-out);
}

.ph-apw__features-box > * {
    position: relative;
    z-index: 1;
}

.ph-apw__features-head {
    margin-bottom: clamp(0.75rem, 1.4vw, 1rem);
    text-align: center;
}

.ph-apw__features-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.ph-apw__features-lead {
    margin: 0;
    font-size: clamp(0.84rem, 0.95vw, 0.92rem);
    line-height: 1.4;
    color: var(--ph-apw-muted);
}

.ph-apw__features-carousel {
    width: 100%;
}

.ph-apw__features-carousel.ph-app__chapter--section-block {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Sektionsfarben wie Promo-Page (Rot / Gelb / Lila) */
.ph-apw__features-box[data-ph-section="champion-guides"],
.ph-apw__features-box .ph-app__feature-slide[data-ph-section="champion-guides"],
.ph-apw__features-carousel[data-ph-section="champion-guides"] {
    --ph-section-accent: #ef4444;
    --ph-section-glow: rgba(239, 68, 68, 0.35);
    --ph-apw-ambient-glow: rgba(239, 68, 68, 0.16);
    --ph-apw-shot-glow: rgba(239, 68, 68, 0.28);
}

.ph-apw__features-box[data-ph-section="kits-kurse"],
.ph-apw__features-box .ph-app__feature-slide[data-ph-section="kits-kurse"],
.ph-apw__features-carousel[data-ph-section="kits-kurse"] {
    --ph-section-accent: #fbbf24;
    --ph-section-glow: rgba(251, 191, 36, 0.32);
    --ph-apw-ambient-glow: rgba(251, 191, 36, 0.15);
    --ph-apw-shot-glow: rgba(251, 191, 36, 0.26);
}

.ph-apw__features-box[data-ph-section="extras"],
.ph-apw__features-box .ph-app__feature-slide[data-ph-section="extras"],
.ph-apw__features-carousel[data-ph-section="extras"] {
    --ph-section-accent: #a78bfa;
    --ph-section-glow: rgba(167, 139, 250, 0.32);
    --ph-apw-ambient-glow: rgba(167, 139, 250, 0.15);
    --ph-apw-shot-glow: rgba(167, 139, 250, 0.26);
}

/* Kicker – explizite Farben (unabhängig von .ph-app-Wrapper) */
.ph-apw__features-box .ph-app__section-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ph-apw__section-kicker--champion-guides {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.ph-apw__section-kicker--kits-kurse {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.32);
}

.ph-apw__section-kicker--extras {
    color: #a78bfa;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.32);
}

/* Carousel-Dots & Pfeile in Sektionsfarbe */
.ph-apw__features-carousel[data-ph-section="champion-guides"] .ph-app__feature-carousel-dot.is-active {
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.ph-apw__features-carousel[data-ph-section="kits-kurse"] .ph-app__feature-carousel-dot.is-active {
    background: #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.42);
}

.ph-apw__features-carousel[data-ph-section="extras"] .ph-app__feature-carousel-dot.is-active {
    background: #a78bfa;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.42);
}

.ph-apw__features-carousel[data-ph-section="champion-guides"] .ph-app__feature-carousel-btn:not(:disabled) {
    border-color: rgba(239, 68, 68, 0.38);
    color: #ef4444;
}

.ph-apw__features-carousel[data-ph-section="kits-kurse"] .ph-app__feature-carousel-btn:not(:disabled) {
    border-color: rgba(251, 191, 36, 0.38);
    color: #fbbf24;
}

.ph-apw__features-carousel[data-ph-section="extras"] .ph-app__feature-carousel-btn:not(:disabled) {
    border-color: rgba(167, 139, 250, 0.42);
    color: #a78bfa;
}

.ph-apw__features-carousel[data-ph-section="champion-guides"] .ph-app__feature-carousel-btn:not(:disabled):hover {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.1);
}

.ph-apw__features-carousel[data-ph-section="kits-kurse"] .ph-app__feature-carousel-btn:not(:disabled):hover {
    border-color: rgba(251, 191, 36, 0.55);
    background: rgba(251, 191, 36, 0.1);
}

.ph-apw__features-carousel[data-ph-section="extras"] .ph-app__feature-carousel-btn:not(:disabled):hover {
    border-color: rgba(167, 139, 250, 0.58);
    background: rgba(167, 139, 250, 0.1);
}

.ph-apw__features-box .ph-app__feature-carousel-viewport {
    position: relative;
    height: var(--ph-carousel-viewport-height, auto);
    min-height: var(--ph-carousel-viewport-height, 320px);
    max-height: none;
    overflow: hidden;
}

.ph-apw__features-box .ph-app__feature-slide-grid.ph-app__chapter-inner--split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(0.85rem, 1.6vw, 1.25rem);
    align-items: center;
}

.ph-apw__features-box .ph-app__feature-row-visual {
    min-height: clamp(180px, 24vw, 260px);
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="champion-guides"]:not(.ph-app__feature-slide--shot) .ph-app__feature-row-visual {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 36px rgba(0, 0, 0, 0.34),
        0 0 36px rgba(239, 68, 68, 0.14);
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="kits-kurse"]:not(.ph-app__feature-slide--shot) .ph-app__feature-row-visual {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 36px rgba(0, 0, 0, 0.34),
        0 0 36px rgba(251, 191, 36, 0.14);
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="extras"]:not(.ph-app__feature-slide--shot) .ph-app__feature-row-visual {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 36px rgba(0, 0, 0, 0.34),
        0 0 36px rgba(167, 139, 250, 0.14);
}

/* Screenshots: Glow & freier Hintergrund wie Promo-Page */
.ph-apw__features-box .ph-app__feature-slide--shot .ph-app__feature-row-visual {
    position: relative;
    min-height: auto;
    padding: clamp(0.35rem, 1vw, 0.65rem);
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
}

.ph-apw__features-box .ph-app__feature-slide--shot.is-active .ph-app__feature-row-visual::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 12%;
    bottom: 8%;
    border-radius: 18px;
    filter: blur(26px);
    opacity: 0.95;
    pointer-events: none;
    z-index: 0;
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="champion-guides"].is-active.ph-app__feature-slide--shot .ph-app__feature-row-visual::before {
    background: radial-gradient(ellipse at 50% 52%, rgba(239, 68, 68, 0.28) 0%, transparent 72%);
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="kits-kurse"].is-active.ph-app__feature-slide--shot .ph-app__feature-row-visual::before {
    background: radial-gradient(ellipse at 50% 52%, rgba(251, 191, 36, 0.26) 0%, transparent 72%);
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="extras"].is-active.ph-app__feature-slide--shot .ph-app__feature-row-visual::before {
    background: radial-gradient(ellipse at 50% 52%, rgba(167, 139, 250, 0.26) 0%, transparent 72%);
}

.ph-apw__features-box .ph-app__feature-slide--shot .ph-app__feature-shot {
    position: relative;
    z-index: 1;
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="champion-guides"].is-active .ph-app__feature-shot-img {
    box-shadow:
        0 26px 64px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 64px rgba(239, 68, 68, 0.22);
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="kits-kurse"].is-active .ph-app__feature-shot-img {
    box-shadow:
        0 26px 64px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 64px rgba(251, 191, 36, 0.2);
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="extras"].is-active .ph-app__feature-shot-img {
    box-shadow:
        0 26px 64px rgba(0, 0, 0, 0.52),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 64px rgba(167, 139, 250, 0.2);
}

.ph-apw__features-box .ph-app__feature-slide.is-active .ph-app__feature-row-copy::before {
    opacity: 1;
    transform: scaleY(1);
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="champion-guides"].is-active .ph-app__feature-row-copy::before {
    background: linear-gradient(180deg, #ef4444, transparent);
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="kits-kurse"].is-active .ph-app__feature-row-copy::before {
    background: linear-gradient(180deg, #fbbf24, transparent);
}

.ph-apw__features-box .ph-app__feature-slide[data-ph-section="extras"].is-active .ph-app__feature-row-copy::before {
    background: linear-gradient(180deg, #a78bfa, transparent);
}

.ph-apw__features-box .ph-app__feature-row-copy {
    position: relative;
    padding-left: clamp(0rem, 1.5vw, 1.25rem);
}

.ph-apw__features-box .ph-app__feature-row-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.ph-apw__features-box .ph-app__feature-carousel-controls {
    margin-top: clamp(0.75rem, 1.4vw, 1rem);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    column-gap: clamp(0.45rem, 1vw, 0.65rem);
    row-gap: 0.35rem;
    flex-wrap: nowrap;
}

.ph-apw__features-box .ph-app__feature-carousel-btn--prev {
    grid-column: 1;
    grid-row: 1;
    flex-shrink: 0;
}

.ph-apw__features-box .ph-app__feature-carousel-btn--next {
    grid-column: 3;
    grid-row: 1;
    flex-shrink: 0;
}

.ph-apw__features-box .ph-app__feature-carousel-dots {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0.1rem 0;
}

.ph-apw__features-box .ph-app__feature-carousel-dot {
    flex-shrink: 0;
}

.ph-apw__features-box .ph-app__feature-carousel-dot.is-dot-hidden {
    display: none;
}

.ph-apw__features-box .ph-app__feature-carousel-counter {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    text-align: center;
}

@media (max-width: 860px) {
    .ph-apw__features-box .ph-app__feature-carousel-btn {
        width: 2.55rem;
        height: 2.55rem;
        font-size: 1.35rem;
    }

    .ph-apw__features-box .ph-app__feature-carousel-counter {
        font-size: 0.68rem;
        line-height: 1.35;
    }

    .ph-apw__features-box .ph-app__feature-carousel-counter::after {
        content: " · Wischen zum Wechseln";
        display: block;
        margin-top: 0.12rem;
        font-size: 0.62rem;
        font-weight: 500;
        letter-spacing: 0.01em;
        text-transform: none;
        color: rgba(255, 255, 255, 0.42);
    }

    .ph-apw__features-box .ph-app__feature-carousel-counter--single::after {
        display: none;
    }
}

.ph-apw__feature-cta {
    text-decoration: none;
}

/* ── Packages (Conversion) ── */

.ph-apw__packages {
    margin-top: clamp(1.25rem, 2.2vw, 1.75rem);
    padding-top: clamp(1rem, 1.8vw, 1.35rem);
    border-top: 1px solid var(--ph-apw-border);
    scroll-margin-top: 1.5rem;
}

.ph-apw__packages-head {
    margin-bottom: clamp(0.75rem, 1.4vw, 1rem);
    text-align: center;
}

.ph-apw__packages-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.ph-apw__packages-lead {
    margin: 0;
    font-size: clamp(0.84rem, 0.95vw, 0.92rem);
    line-height: 1.4;
    color: var(--ph-apw-muted);
}

.ph-apw__packages-grid .ph-app__pricing-packages {
    margin: 0;
}

.ph-apw__packages-grid .ph-app__pricing-grid--quad {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

.ph-apw__packages-grid .ph-app__pricing-legal {
    margin-top: 0.75rem;
    text-align: center;
}

/* ── Responsive ── */

@media (max-width: 860px) {
    .ph-apw__features-box .ph-app__feature-slide-grid.ph-app__chapter-inner--split {
        grid-template-columns: 1fr;
    }

    .ph-apw__packages-grid .ph-app__pricing-grid--quad {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ph-apw {
        padding: 0.85rem 0.95rem;
    }

    .ph-apw__header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        margin-bottom: 0.7rem;
        padding-bottom: 0.6rem;
    }

    .ph-apw__identity {
        flex: none;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.65rem;
    }

    .ph-apw__avatar {
        width: clamp(64px, 18vw, 76px);
        height: clamp(64px, 18vw, 76px);
    }

    .ph-apw__headline {
        font-size: clamp(0.98rem, 4.2vw, 1.12rem);
        margin-bottom: 0.12rem;
    }

    .ph-apw__subheadline {
        font-size: clamp(0.76rem, 3.2vw, 0.86rem);
        line-height: 1.3;
    }

    .ph-apw__cta-col {
        width: 100%;
        align-items: stretch;
        gap: 0.22rem;
    }

    .ph-apw__cta-row {
        justify-content: center;
        gap: 0.4rem;
    }

    .ph-apw__cta {
        width: auto;
        min-width: 0;
        flex: 0 1 auto;
        padding: 0.55rem 0.95rem;
        font-size: 0.84rem;
    }

    .ph-apw__google .ph-social-proof {
        padding: 0.2rem 0.45rem;
    }

    .ph-apw__social {
        font-size: 0.68rem;
        text-align: center;
    }

    .ph-apw__packages-grid .ph-app__pricing-grid--quad {
        grid-template-columns: 1fr;
    }
}
