/* Projektseiten (Porträts, Hochzeiten, Business …) – gemeinsames Layout */
.vl-project {
  --gap: clamp(8px, 1vw, 16px);
  --side: clamp(16px, 4vw, 56px);
  font-family: Anuphan, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: #000;
}

/* Kopf */
.vl-project__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px;
  padding: clamp(32px, 5vw, 72px) var(--side) clamp(24px, 3vw, 40px);
}
.vl-project__back {
  display: inline-block; margin-bottom: clamp(14px, 2vw, 22px);
  font-size: 14px; font-weight: 500; color: #6b6b6b; text-decoration: none;
}
.vl-project__back:hover { color: #000; }
.vl-project__title {
  margin: 0; font-size: clamp(1.9rem, 3.6vw, 3.2rem); font-weight: 400;
  line-height: 1.08; letter-spacing: -.02em; text-wrap: balance;
}
.vl-project__facts { display: flex; gap: clamp(24px, 3vw, 48px); margin: 0; }
.vl-project__facts div { border-top: 1px solid #e5e5e5; padding-top: 10px; min-width: 110px; }
.vl-project__facts dt { font-size: 13px; color: #6b6b6b; }
.vl-project__facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 500; }

/* Bilder */
.vl-project__media { padding: 0 var(--side) clamp(64px, 9vw, 120px); display: grid; gap: var(--gap); }
.vl-shot {
  position: relative; display: block; margin: 0; padding: 0; border: 0; width: 100%;
  overflow: hidden; background: #f1f1f1; cursor: zoom-in;
}
.vl-shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.vl-shot:hover img { transform: scale(1.02); }
.vl-shot:focus-visible { outline: 2px solid #ff001a; outline-offset: 3px; }
.vl-shot--wide { aspect-ratio: 3 / 2; }
.vl-shot--cinema { aspect-ratio: 21 / 10; }

/* Hochformat links, zwei Querformate rechts – gleiche Gesamthöhe */
.vl-project__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.125fr); gap: var(--gap); }
.vl-project__split > .vl-shot { aspect-ratio: 2 / 3; }
.vl-project__stack { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); }
.vl-project__stack { min-height: 0; }
/* Rechte Spalte richtet sich nach dem Hochformat links: Bilder füllen ihre Zelle, ohne die Höhe mitzubestimmen */
.vl-project__stack .vl-shot { height: 100%; min-height: 0; }
.vl-project__stack .vl-shot img { position: absolute; inset: 0; }

/* Weiter */
.vl-project__next {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px;
  margin-top: clamp(56px, 8vw, 120px); padding: clamp(32px, 5vw, 64px) var(--side);
  border-top: 1px solid #e5e5e5;
}
.vl-project__next-label { display: block; font-size: 14px; color: #6b6b6b; margin-bottom: 8px; }
.vl-project__next-link {
  font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05;
  color: #000; text-decoration: none; transition: color .2s;
}
.vl-project__next-link:hover { color: #ff001a; }
.vl-project__all {
  font-size: 15px; font-weight: 500; color: #000; text-decoration: none;
  border: 1.5px solid #000; border-radius: 999px; padding: 12px 22px; transition: background .2s, color .2s;
}
.vl-project__all:hover { background: #000; color: #fff; }

/* Vollbild-Ansicht */
.vl-lightbox {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 64px 120px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.vl-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.vl-lightbox img { width: 100%; height: 100%; object-fit: contain; }
.vl-lightbox button {
  position: absolute; font: 500 15px/1 Anuphan, system-ui, sans-serif; color: #000; cursor: pointer;
  background: #fff; border: 1.5px solid #000; border-radius: 999px; padding: 10px 18px;
}
.vl-lightbox button:hover { background: #000; color: #fff; }
.vl-lightbox__close { top: 16px; right: 16px; }
.vl-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.vl-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.vl-lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 14px; color: #6b6b6b; }
body:has(.vl-lightbox.is-open) { overflow: hidden; }

@media screen and (max-width: 767px) {
  .vl-project__head { grid-template-columns: 1fr; }
  .vl-project__split { grid-template-columns: 1fr; }
  .vl-project__stack { grid-template-rows: none; }
  .vl-project__stack .vl-shot { aspect-ratio: 3 / 2; height: auto; }
  .vl-shot--cinema { aspect-ratio: 3 / 2; }
  .vl-lightbox { padding: 64px 12px; }
  .vl-lightbox__prev, .vl-lightbox__next { top: auto; bottom: 12px; transform: none; }
  .vl-lightbox__count { bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .vl-shot img, .vl-lightbox { transition: none; }
}

/* ---------- Video ohne YouTube-Oberfläche ---------- */
.vl-film {
  position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
}
.vl-film__poster {
  all: unset; position: absolute; inset: 0; z-index: 3; cursor: pointer; display: block;
}
.vl-film__poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.vl-film__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 50%); }
.vl-film__play {
  position: absolute; z-index: 1; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px);
  display: flex; align-items: center; gap: 16px; color: #fff;
  font-family: Anuphan, system-ui, sans-serif;
}
.vl-film__icon {
  width: clamp(60px, 7vw, 92px); height: clamp(60px, 7vw, 92px); border-radius: 50%;
  background: #ff001a; display: grid; place-items: center; transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.vl-film__icon svg { width: 34%; height: 34%; margin-left: 8%; fill: #fff; }
.vl-film__label { font-size: clamp(1rem, 1.4vw, 1.25rem); font-weight: 600; line-height: 1.2; }
.vl-film__label span { display: block; font-weight: 400; opacity: .85; font-size: .85em; margin-top: 2px; }
.vl-film__poster:hover img { transform: scale(1.02); }
.vl-film__poster:hover .vl-film__icon { transform: scale(1.08); }
.vl-film__poster:focus-visible { outline: 3px solid #ff001a; outline-offset: -3px; }
.vl-film.is-hidden-poster .vl-film__poster { display: none; }

/* Player: YouTube-Rahmen etwas größer und beschnitten, damit Titelzeile und Logo außerhalb liegen */
.vl-film__player { position: absolute; inset: -60px 0; }
.vl-film__player > div, .vl-film__player iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }

/* Eigene Bedienung */
.vl-film__layer { all: unset; position: absolute; inset: 0; z-index: 2; cursor: pointer; display: none; }
.vl-film.is-playing .vl-film__layer, .vl-film.is-paused .vl-film__layer { display: block; }
.vl-film__bar {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: none; align-items: center; gap: 10px;
  padding: 14px clamp(12px, 2vw, 24px); background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  opacity: 0; transition: opacity .3s;
}
.vl-film.is-playing .vl-film__bar, .vl-film.is-paused .vl-film__bar { display: flex; }
.vl-film:hover .vl-film__bar, .vl-film.is-paused .vl-film__bar, .vl-film:focus-within .vl-film__bar { opacity: 1; }
.vl-film__btn {
  font: 500 14px/1 Anuphan, system-ui, sans-serif; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 999px; padding: 9px 16px;
}
.vl-film__btn:hover { background: #fff; color: #000; }
.vl-film__btn:focus-visible { outline: 2px solid #ff001a; outline-offset: 2px; }
.vl-film__spacer { flex: 1; }
.vl-film__note { margin: 10px 0 0; font-size: 13px; color: #6b6b6b; }
.vl-film:fullscreen { aspect-ratio: auto; }
.vl-film:fullscreen .vl-film__player { inset: -60px 0; }
@media (hover: none) { .vl-film__bar { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vl-film__poster img, .vl-film__icon, .vl-film__bar { transition: none; } }

/* Notfall: Autoplay blockiert – YouTube-Bedienung direkt nutzbar machen */
.vl-film.is-fallback .vl-film__player { inset: 0; }
.vl-film.is-fallback .vl-film__player iframe { pointer-events: auto; }
.vl-film.is-fallback .vl-film__layer, .vl-film.is-fallback .vl-film__bar { display: none; }

/* Stumm gestartet: Ton-Knopf hervorheben */
.vl-film.is-muted .vl-film__bar { opacity: 1; }
.vl-film.is-muted [data-action="sound"] { background: #ff001a; border-color: #ff001a; color: #fff; }

/* Vollbild-Ersatz (iPhone kann einzelne Seitenbereiche nicht in echtes Vollbild schalten) */
.vl-film.is-pseudo-fs {
  position: fixed; inset: 0; z-index: 2000; aspect-ratio: auto; width: 100vw; height: 100vh; height: 100dvh;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.vl-film.is-pseudo-fs .vl-film__player { top: 50%; bottom: auto; left: 0; right: 0; height: calc(100vw * 9 / 16 + 120px); transform: translateY(-50%); }
@media (orientation: landscape) {
  .vl-film.is-pseudo-fs .vl-film__player { top: -60px; bottom: -60px; height: auto; transform: none; }
}
body:has(.vl-film.is-pseudo-fs) { overflow: hidden; }

/* ---------- Bildreihen: gleiche Höhe je Reihe, Breite nach Seitenverhältnis, kein Beschnitt ---------- */
.vl-row { display: flex; gap: var(--gap); }
.vl-row > .vl-shot { flex: var(--ar) 1 0%; aspect-ratio: var(--ar); min-width: 0; }
.vl-shot--natural { aspect-ratio: var(--ar); }
@media screen and (max-width: 600px) {
  .vl-row:not(.vl-row--keep) { flex-direction: column; }
  .vl-row:not(.vl-row--keep) > .vl-shot { flex: none; }
}
