/* ============================================================
   css/product_process_stage.css · "Lass uns malen." (content_inc/section/product_process_stage.php)
   Das Video läuft auf der Video-Bühne (css/product_video_stage.css, gedreht). Hier: die
   Überschrift darüber (.pps--head). Übrige Regeln bleiben für andere Varianten.
   Jeder Teil springt beim Reinscrollen einzeln rein (.is-in setzt js/product_process_stage.js).
   Bewegt wird nur transform/opacity. Runde Ecken direkt am <video> (kein Zuschnitt
   der Karte → kein Neuzeichnen pro Videobild, wie bei der Detail-Video-Bühne gemessen).
   ============================================================ */

.pps {
    position: relative;
    overflow: hidden;
    background: #0c0d0e;
    color: #f2f2ef;
    padding: clamp(72px, 12vh, 140px) 0;
}

/* Standbild groß und unscharf: einmal gezeichnet, bewegt sich nicht */
.pps-backdrop {
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background-position: center;
    background-size: cover;
    -webkit-filter: blur(60px) saturate(1.2);
    filter: blur(60px) saturate(1.2);
    opacity: .35;
    pointer-events: none;
}
.pps::after {                         /* Abdunklung, damit Schrift lesbar bleibt */
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(ellipse at center, rgba(12, 13, 14, .2) 0%, rgba(12, 13, 14, .8) 75%);
    pointer-events: none;
}

.pps-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(40px, 7vh, 88px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 64px);
    text-align: center;
}

/* ── Titel: groß, laut ── */
.pps .pps-title {
    margin: 0;
    padding: 0;
    font-family: var(--font-display, inherit);
    font-size: clamp(48px, 9vw, 140px);
    font-weight: 700;
    line-height: .95;
    text-transform: uppercase;
    text-align: center;
    color: #f2f2ef;
    text-shadow: 0 2px 7px rgba(0, 0, 0, .3);
}
.pps .pps-title em {
    font-style: normal;
    color: var(--gold, #c9a45c);
}

/* ── Video-Karte (Hochformat). Breite aus Höhe × Format, calc statt aspect-ratio ── */
.pps-video {
    display: block;
    height: 82vh;
    width: 46.125vh;                                  /* 82vh × 9/16, falls var() fehlt */
    width: calc(82vh * var(--pps-ratio, .5625));
    object-fit: cover;
    border-radius: 24px;                              /* direkt am Video: günstig */
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}

/* ── Fertiges Werk: groß ── */
.pps-artwork {
    margin: 0;
    max-width: 900px;
    width: 100%;
}
.pps-artwork img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.pps-artwork figcaption {
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold, #c9a45c);
}

/* Überschrift über der Video-Bühne: Luft oben, unten direkt ans Video */
.pps.pps--head { padding-bottom: clamp(32px, 5vh, 56px); }

/* Nur das fertige Bild unter der Video-Bühne (nicht mehr benutzt): weniger Luft oben, schließt direkt an */
.pps.pps--result { padding-top: clamp(48px, 8vh, 96px); }

/* ── Reinspringen: jeder Teil einzeln, wenn er ins Bild kommt ── */
.pps.pps--anim [data-pps-reveal] {
    opacity: 0;
    -webkit-transform: translate3d(0, 60px, 0) scale(.92);
    transform: translate3d(0, 60px, 0) scale(.92);
    transition: opacity .7s ease, transform .9s cubic-bezier(.16, 1, .3, 1);
}
.pps.pps--anim [data-pps-reveal].is-in {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
}
/* Das fertige Bild: BAM, etwas kräftiger */
.pps.pps--anim .pps-artwork[data-pps-reveal] {
    -webkit-transform: translate3d(0, 40px, 0) scale(.8);
    transform: translate3d(0, 40px, 0) scale(.8);
    transition: opacity .5s ease, transform .8s cubic-bezier(.34, 1.56, .64, 1);   /* leichtes Überschwingen */
}
.pps.pps--anim .pps-artwork[data-pps-reveal].is-in {
    -webkit-transform: none;
    transform: none;
}

/* ── Handy ── */
@media (max-width: 767px) {
    .pps { padding: 56px 0 64px; }
    .pps-inner { gap: 32px; }
    .pps-video {
        width: 100%;
        height: 82vh;                 /* fast bildschirmhoch */
        border-radius: 18px;
    }
    .pps-artwork img { max-height: none; width: 100%; }
}

/* ── Bewegung reduzieren: gleich da ── */
@media (prefers-reduced-motion: reduce) {
    .pps.pps--anim [data-pps-reveal] { opacity: 1; transform: none; transition: none; }
}
