/* =============================================
   Projektfilm vor Ort (projektfilm-vor-ort.html, Nov. 2026)
   Nur diese Seite: Titelgröße, Bühne mit fünf Kapiteln und der Betrachter
   „Ein Projekt. Zwei Perspektiven.“ (js/pf-demo.js).
   Bühne, Rahmen der Demo und Standbilder: css/as.css (gemeinsam für die Film-Seiten),
   alles Übrige aus css/service.css, css/pv-stage.css und css/closing.css.
============================================= */

.pfhero .phero__title {
  font-size: clamp(2.6rem, 12.4vw, 13.4rem);
}

@media (max-width: 760px) {
  .pfhero .phero__title {
    font-size: 15vw;
  }
}

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

/* ── Bühne: fünf Kapitel ── */
.pfstage .pvstage__rail {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* ── Betrachter ── */
.pfdemo__screen {
  background: #0a0a0b;
}

.pfdemo__scroll,
.pfdemo__film {
  position: absolute;
  inset: 0;
}

.pfdemo__scroll[hidden],
.pfdemo__film[hidden] {
  display: none;
}

/* Bildfolge: Vorschau, bis die 3D-Szene bereit ist, und Ersatz ohne WebGL 2 */
.pfdemo__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease);
}

.aslab__panel.is-ready .pfdemo__frame {
  opacity: 0;
}

/* Fortschritt im Bild */
.pfdemo__chip {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 11, 0.78);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

.pfdemo__chip output {
  min-width: 2.6em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--c-white);
}

.pfdemo__bar {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}

.pfdemo__bar span {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--c-white);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.pfdemo__bar i {
  position: absolute;
  top: -3px;
  width: 2px;
  height: 9px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--avio-green);
}

/* Hinweise am Motiv */
.pfdemo__hots {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.pfdemo__hot {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
}

.pfdemo__dot,
.pfdemo__link,
.pfdemo__card {
  position: absolute;
  top: 0;
  left: 0;
}

.pfdemo__dot {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid var(--c-white);
  border-radius: 50%;
  background: var(--avio-green);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.22);
}

.pfdemo__link {
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--c-white);
  transform-origin: 0 50%;
}

.pfdemo__card {
  display: grid;
  gap: 0.2rem;
  max-width: min(17rem, 60%);
  margin: 0;
  padding: 0.7rem 0.95rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-md);
  background: rgba(10, 10, 11, 0.86);
  color: var(--c-white);
}

.pfdemo__card b {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.pfdemo__card b span {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.pfdemo__card > span {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
}

/* schmale Flächen und Motive am Bildrand: Hinweis als Zeile am unteren Rand */
.pfdemo__hot.is-loose .pfdemo__card {
  top: auto;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 1.6rem;
  max-width: none;
}

/* Regler: „Zurück zum Anfang“ statt Abspieltaste */
.pfdemo__reset svg {
  margin-left: 0;
}

.pfdemo__slider[hidden],
.pfdemo__stations[hidden],
.pfdemo__filmnote[hidden] {
  display: none;
}

.pfdemo__stations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pfdemo__station {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  border: 1px solid var(--c-line-light);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-black);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.pfdemo__station b {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--c-off-white);
  font-size: 0.72rem;
  font-weight: 700;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.pfdemo__station[aria-current="true"] {
  border-color: var(--c-black);
  background: var(--c-black);
  color: var(--c-white);
}

.pfdemo__station[aria-current="true"] b {
  background: var(--avio-green);
  color: var(--c-white);
}

@media (hover: hover) and (pointer: fine) {
  .pfdemo__station:not([aria-current="true"]):hover {
    border-color: var(--c-black);
  }
}

.pfdemo__station:focus-visible,
.pfdemo__switch:focus-visible {
  outline: 2px solid var(--avio-green);
  outline-offset: 3px;
}

.pfdemo__filmnote {
  margin: clamp(0.9rem, 1.8vw, 1.25rem) 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--c-off-white);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--c-gray-600);
}

/* ── Website-Film: Platzhalter bis zum Dreh ── */
.pfdemo__film {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  color: var(--c-white);
}

.pfdemo__film-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) blur(14px);
  opacity: 0.22;
  transform: scale(1.08);
}

.pfdemo__film::before {
  content: "";
  position: absolute;
  inset: clamp(0.75rem, 2vw, 1.4rem);
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.pfdemo__film-card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-width: 34rem;
  text-align: center;
}

.pfdemo__film-card[hidden] {
  display: none;
}

.pfdemo__film-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.pfdemo__film-tag::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}

.pfdemo__film-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.pfdemo__film-text {
  margin: 0;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.pfdemo__film-plan {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: pfplan;
}

.pfdemo__film-plan li {
  counter-increment: pfplan;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.pfdemo__film-plan li::before {
  content: counter(pfplan);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

.pfdemo__switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 0.5rem;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--c-white);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-black);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .pfdemo__switch:hover {
    background: var(--avio-green);
    color: var(--c-white);
  }
}

/* echter Player (erst mit freigegebenem Material) */
.pfdemo__video {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: #000;
}

.pfdemo__video[hidden] {
  display: none;
}

.pfdemo__video video,
.pfdemo__video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pfdemo__video-error {
  position: relative;
  z-index: 1;
  max-width: 26rem;
  margin: 0;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(10, 10, 11, 0.86);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  color: var(--c-white);
}

@media (max-width: 640px) {
  .pfdemo__screen {
    aspect-ratio: 4 / 4.6;
  }
  .pfdemo__chip {
    top: 0.6rem;
    left: 0.6rem;
    font-size: 0.68rem;
  }
  .pfdemo__film-plan li {
    font-size: 0.72rem;
  }
  .pfdemo__stations {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .pfdemo__card {
    padding: 0.6rem 0.8rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pfdemo__frame,
  .pfdemo__station,
  .pfdemo__station b,
  .pfdemo__switch {
    transition: none;
  }
}
