/* =============================================
   Leistungsseite 3D-Animationsfilme (3d-animationsfilme.html)
   Ergänzt css/service.css und css/pv-stage.css. Nur, was es hier gibt:
   - Hero-Titel (langes Wort, kontrollierter Umbruch)
   - Bühne: Filmframes, Timeline, Playhead (Positionen setzt js/af-scene.js)
   - Projektfilm-Bereich (Platzhalter, vorbereitet für das spätere Video)
============================================= */

.page-af .svc-hero .phero__title {
  font-size: clamp(2.2rem, 10.6vw, 13.6rem);
}

.page-af .svc-statement__line {
  display: block;
}

/* ── Bühne ── */
.afstage {
  --pv-len: 7.4;
}

.afstage .pvstage__poster {
  object-position: 50% 50%;
}

.afcut {
  position: absolute;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.afstage.is-static .afcut {
  display: none;
}

.afcut__clip,
.afcut__live {
  position: absolute;
  margin: 0;
  border-radius: 14px;
  opacity: 0;
  will-change: transform, opacity;
}

.afcut__clip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}

/* Rahmen und Beschriftung über der Live-Ansicht, sobald sie ein Filmframe ist */
.afcut__live {
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.afcut__live.is-picked {
  border-color: var(--c-white);
  box-shadow: 0 0 0 1px var(--c-white);
}

.afcut__clip figcaption,
.afcut__cap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.7rem);
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.62);
}

.afcut__clip figcaption b,
.afcut__cap b {
  color: var(--c-white);
}

.afcut__clip figcaption span,
.afcut__cap span {
  margin-left: auto;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.4);
}

/* Zeitleiste: feine Linie mit Zeitmarken */
.afcut__track {
  position: absolute;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
}

.afcut__track {
  display: flex;
  justify-content: space-between;
}

.afcut__tick {
  position: relative;
  padding-top: 0.75rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
}

.afcut__tick:first-child { transform: none; }
.afcut__tick:last-child { transform: translateX(-100%); }

.afcut__tick::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 1px;
  height: 9px;
  background: rgba(255, 255, 255, 0.35);
}

.afcut__tick:first-child::before { left: 0; }
.afcut__tick:last-child::before { left: auto; right: 0; }

/* Playhead */
.afcut__head {
  position: absolute;
  width: 2px;
  margin-left: -1px;
  background: var(--c-white);
  opacity: 0;
}

.afcut__head::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--c-white);
  transform: translateX(-50%) rotate(45deg);
}

@media (max-aspect-ratio: 21/20) {
  .afcut__clip figcaption,
  .afcut__cap {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    gap: 0.3rem;
  }
  .afcut__clip figcaption span,
  .afcut__cap span {
    display: none;
  }
  .afcut__clip,
  .afcut__clip img,
  .afcut__live {
    border-radius: 8px;
  }
  .afcut__tick {
    font-size: 0.58rem;
  }
}

/* ---------------------------------------------
   Projektfilm
--------------------------------------------- */
.afvid {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
}

.afvid__frame {
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
}

.afvid__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-black);
  box-shadow: 0 30px 60px -40px rgba(10, 10, 11, 0.45);
}

.afvid__poster,
.afvid__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Abdunklung nur für die Lesbarkeit des Hinweises */
.afvid__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 11, 0.82) 0%, rgba(10, 10, 11, 0.35) 45%, rgba(10, 10, 11, 0.15) 100%);
  pointer-events: none;
}

.afvid__overlay {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3.5rem);
  right: clamp(1.25rem, 4vw, 3.5rem);
  bottom: clamp(3.4rem, 7vw, 5.5rem);
  z-index: 1;
  color: var(--c-white);
}

.afvid__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 11, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.afvid__badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-white);
  opacity: 0.85;
}

.afvid__title {
  margin: clamp(0.9rem, 1.6vw, 1.3rem) 0 0;
  font-size: clamp(1.7rem, 4.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.afvid__text {
  max-width: 34em;
  margin: 0.8rem 0 0;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

/* Zurückhaltende Filmleiste (reine Gestaltung, keine Bedienung) */
.afvid__bar {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3.5rem);
  right: clamp(1.25rem, 4vw, 3.5rem);
  bottom: clamp(1.1rem, 2.4vw, 1.9rem);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.55);
}

.afvid__bar i {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.afvid__caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--c-gray-600);
}

@media (max-width: 560px) {
  .afvid__media {
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }
  .afvid__poster {
    object-position: 50% 50%;
  }
  .afvid__bar span:last-child {
    display: none;
  }
}
