/* ═══════════════════════════════════════════════════════════
   lisa-roman.com/videos: die zwei Filme des Videografen in Reitern (Startseite verlinkt hierher)
   Gleiche Welt wie die Startseite (home.css): Creme-Papier, Terrakotta, Caveat + Cormorant.
   Inhalt: 1 Basis · 2 Sprachen · 3 Deko · 4 Kopf · 5 Reiter · 6 Film · 7 Fuß · 8 Einstieg
   ═══════════════════════════════════════════════════════════ */

/* ── 1 · Basis ───────────────────────────────────────────── */
:root {
  --cream: #fbf3ec;
  --cream-deep: #f4e5d8;
  --paper: #fffaf5;
  --terracotta: #d1634b;
  --terracotta-deep: #b9503a;
  --terracotta-dark: #a8462f;
  --ink: #8f4432;
  --font-script: "Caveat", "Comic Sans MS", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --lift: 0 1px 2px rgba(143, 68, 50, .08), 0 22px 44px -26px rgba(143, 68, 50, .65);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  position: relative; margin: 0; min-height: 100svh;
  background-color: var(--cream); color: var(--ink);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(209, 99, 75, .03) 0 1.5px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(143, 68, 50, .025) 0 1px, transparent 1.5px);
  background-size: 240px 240px, 180px 180px;
  font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.5;
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
.script { font-family: var(--font-script); color: var(--terracotta); font-weight: 400; }
:focus-visible { outline: 2.5px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(209, 99, 75, .22); color: var(--ink); }
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(209, 99, 75, .55); }
a:hover { text-decoration-color: var(--terracotta); }

/* ── 2 · Sprachen ────────────────────────────────────────── */
.langs { position: absolute; top: max(.8rem, env(safe-area-inset-top)); right: max(.8rem, env(safe-area-inset-right)); display: flex; gap: .1rem; z-index: 5; }
.langs button { font: inherit; font-size: .95rem; min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--ink); opacity: .9; cursor: pointer; border-radius: 999px; }
.langs button:hover { opacity: 1; }
.langs button[aria-pressed="true"] { opacity: 1; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

/* ── 3 · Deko ────────────────────────────────────────────── */
/* Am Handy nur die Zitronen oben links; am Desktop schauen Zitronen und Ringe hinter dem Film hervor */
.decos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.deco { position: absolute; height: auto; display: none; }
.deco-lemons { display: block; width: 40vw; max-width: 240px; top: -4vw; left: -13vw; opacity: .85; transform: rotate(8deg); }
@media (min-width: 960px) {
  .deco { display: block; }
  .deco-lemons { width: 250px; top: 1.2rem; left: calc(50% - 640px); opacity: .9; }
  .deco-rings { width: 180px; top: 3.4rem; right: calc(50% - 600px); opacity: .9; transform: rotate(-6deg); }
}

/* ── 4 · Kopf ────────────────────────────────────────────── */
.page {
  position: relative; z-index: 1; max-width: 1080px; margin: 0 auto;
  padding: max(3.4rem, calc(env(safe-area-inset-top) + 2.6rem)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.title { font-size: clamp(3rem, 12vw, 4.6rem); line-height: 1; text-wrap: balance; letter-spacing: -.005em; }
.swash { width: min(56vw, 240px); height: auto; margin-top: .1rem; overflow: visible; }
.swash path { stroke: var(--terracotta); stroke-width: 2.4; stroke-linecap: round; }
.date { margin-top: .7rem; font-size: 1rem; font-weight: 600; letter-spacing: .24em; font-variant-numeric: lining-nums; }
.date .dot { color: var(--terracotta); letter-spacing: 0; margin: 0 .25em 0 .1em; }
.lead { margin-top: .5rem; font-size: 1.22rem; font-style: italic; line-height: 1.4; text-wrap: balance; max-width: 24em; }

/* ── 5 · Reiter ───────────────────────────────────────────── */
/* Zwei Reiter, einer zur Zeit: Highlights und Film (Trailer + ganzer Film). Die Terrakotta-Fläche gleitet unter den
   gewählten Reiter (film.js setzt Größe und Lage). Ohne Skript gibt es keine Reiter, alle Filme stehen untereinander. */
.picker {
  position: relative; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  width: 100%; max-width: 26rem; margin: 1.9rem auto 0; padding: 5px;
  border-radius: 22px; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(209, 99, 75, .4), 0 12px 24px -20px rgba(143, 68, 50, .9);
}
html[data-film] .picker { display: grid; }
.pick {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 58px; padding: .45rem .4rem; border: 0; border-radius: 17px; background: none; color: var(--ink);
  font: 600 1.1rem/1.12 var(--font-serif); text-align: center; text-wrap: balance; cursor: pointer;
  transition: color .3s ease, background-color .2s ease;
}
.pick-len { margin-top: .1rem; font-size: .92rem; font-style: italic; font-weight: 400; font-variant-numeric: lining-nums; }
.pick[aria-selected="true"] { color: #fff; cursor: default; }
.pick:not([aria-selected="true"]):hover { background: rgba(209, 99, 75, .09); }
.pick:active { transform: scale(.97); }
.pick:focus-visible { outline-offset: 2px; border-radius: 17px; }
.pick-ind {
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: 17px; background: var(--terracotta-deep);
  box-shadow: 0 2px 4px rgba(143, 68, 50, .18), 0 12px 22px -12px rgba(143, 68, 50, .7);
}
.picker.ready .pick-ind { transition: transform .55s var(--ease-out), width .55s var(--ease-out), height .55s var(--ease-out); }
@media (max-width: 539px) {
  .picker { margin-top: 1.6rem; gap: 2px; padding: 4px; border-radius: 20px; }
  .pick { min-height: 54px; padding: .4rem .15rem; font-size: 1rem; border-radius: 16px; }
  .pick-len { font-size: .86rem; }
  .pick-ind { border-radius: 16px; }
}

/* ── 6 · Film ────────────────────────────────────────────── */
/* Ein .panel je Reiter, darin die Filme (.film); im Reiter "Film" stehen Trailer und ganzer Film untereinander */
.panel { margin: 2rem auto 0; max-width: 1040px; }
.panel + .panel, .film + .film { margin-top: 4.2rem; }
@media (min-width: 720px) { .panel + .panel, .film + .film { margin-top: 6rem; } }
.film { container-type: inline-size; scroll-margin-top: 1.5rem; } /* Sprung per #ganzer-film */
/* Mit Reitern ist nur der gewählte Reiter da */
html[data-film] .panel { margin-top: 1.6rem; }
html[data-film]:not([data-film="highlights"]) .panel[data-film="highlights"],
html[data-film]:not([data-film="film"]) .panel[data-film="film"] { display: none; }
/* Papier-Passepartout wie ein Abzug; das Video selbst bleibt rechteckig */
.frame {
  position: relative; padding: 6px; background: #fff; border-radius: 4px; box-shadow: var(--lift);
  container-type: inline-size; /* Abspiel-Knopf richtet sich nach der Breite des Films, nicht des Fensters */
}
.frame video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--cream-deep);
  border-radius: 2px; object-fit: contain;
}
@media (min-width: 720px) {
  .frame { padding: 10px; border-radius: 6px; }
  /* Laptop: Film passt samt Reitern in den ersten Bildschirm */
  .panel { max-width: min(1040px, max(600px, calc((100svh - 470px) * 16 / 9))); }
}

/* Abspiel-Knopf als Pille unten links: das Paar in der Bildmitte bleibt frei. Ganzes Titelbild ist auch klickbar.
   Die Bedienleiste des Browsers kommt erst beim Abspielen. */
.play {
  position: absolute; left: clamp(14px, 3.2%, 34px); bottom: clamp(14px, 4.5%, 40px);
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .5rem 1.25rem .5rem .6rem;
  border: 0; border-radius: 999px; cursor: pointer;
  /* dunkleres Terrakotta: Weiß darauf 4,9:1 (auf --terracotta nur 3,75:1, zu wenig für die kleine Schrift am Handy) */
  background: var(--terracotta-deep); color: #fff;
  font: 600 1.12rem/1.2 var(--font-serif); font-variant-numeric: lining-nums;
  box-shadow: 0 2px 4px rgba(143, 68, 50, .2), 0 16px 30px -12px rgba(143, 68, 50, .75);
  transition: transform .35s var(--ease-out), background-color .25s ease;
}
.play-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 250, 245, .22); }
.play-ico svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.play-len { font-weight: 400; opacity: .95; font-size: .98rem; }
.play-len::before { content: ""; display: inline-block; width: 1px; height: .95em; margin: 0 .6rem -.1em 0; background: rgba(255, 255, 255, .5); }
.play:hover { transform: translateY(-2px); background: var(--terracotta-dark); }
.play:active { transform: scale(.97); }
.play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 999px; }
@container (min-width: 560px) {
  .play { min-height: 58px; padding: .6rem 1.6rem .6rem .7rem; font-size: 1.3rem; gap: .7rem; }
  .play-ico { width: 42px; height: 42px; }
  .play-ico svg { width: 24px; height: 24px; }
  .play-len { font-size: 1.1rem; }
}
/* "hidden" muss gegen display: inline-flex oben gewinnen */
.play[hidden] { display: none; }
/* Schmaler Film (Handy): kompakter, ohne Länge (steht im Reiter), damit das Paar frei bleibt */
@container (max-width: 520px) {
  .play { min-height: 44px; padding: .4rem 1rem .4rem .45rem; gap: .45rem; font-size: 1.02rem; left: 16px; bottom: 16px; }
  .play-ico { width: 30px; height: 30px; }
  .play-ico svg { width: 17px; height: 17px; }
  .play-len { display: none; }
}

/* Unter jedem Film: links Titel und ein Satz, rechts Laden-Knopf mit der kleinen Fassung darunter */
.meta {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 1.1rem; padding: 0 .2rem;
}
.cap { flex: 1 1 18rem; min-width: 0; }
.cap-title { margin: 0; font-size: clamp(2.1rem, 6.4vw, 2.6rem); line-height: 1; letter-spacing: -.005em; text-wrap: balance; }
/* Schmaler Film (z. B. Laptop 1280x720): Titel bleibt neben dem Laden-Knopf einzeilig */
@container (max-width: 760px) { .cap-title { font-size: 2.15rem; } }
.cap-text { margin-top: .35rem; font-size: 1.08rem; font-style: italic; line-height: 1.4; text-wrap: pretty; max-width: 30em; }
.dls { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; padding-top: .2rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.dl {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .55rem 1.25rem .55rem 1.05rem;
  border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none;
  font-size: 1.12rem; font-weight: 600; line-height: 1.2; font-variant-numeric: lining-nums;
  box-shadow: inset 0 0 0 1.5px rgba(209, 99, 75, .8), 0 10px 20px -16px rgba(143, 68, 50, .8);
  transition: transform .3s var(--ease-out), box-shadow .2s ease, background-color .2s ease;
}
.dl .ico { color: var(--terracotta); }
.dl .size { font-weight: 400; opacity: .85; font-size: .98rem; }
.dl .size::before { content: ""; display: inline-block; width: 1px; height: .95em; margin: 0 .6rem -.1em 0; background: rgba(143, 68, 50, .35); }
.dl:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--terracotta), 0 12px 22px -16px rgba(143, 68, 50, .9); transform: translateY(-1px); }
.dl:active { transform: scale(.98); }
.dl:focus-visible { outline-offset: 4px; border-radius: 999px; }

/* Tippfläche mindestens 44 px hoch */
.small {
  display: flex; align-items: center; justify-content: flex-end; min-height: 44px; padding: .3rem .2rem;
  font-size: 1.02rem; font-style: italic; font-variant-numeric: lining-nums; line-height: 1.35; text-align: right;
}

/* Handy: Titel mittig, Knopf über die volle Breite, kleine Fassung darunter */
@media (max-width: 539px) {
  .meta { flex-direction: column; align-items: stretch; gap: .9rem; }
  .cap { flex: none; text-align: center; }
  .cap-text { margin-inline: auto; text-wrap: balance; }
  .dls { align-items: stretch; gap: .2rem; padding-top: 0; }
  .dl { justify-content: center; }
  .small { justify-content: center; text-align: center; }
}
/* Handy: Größe in die zweite Zeile, sonst bricht "herunterladen" bzw. Russisch mitten im Knopf */
@media (max-width: 539px) {
  .dl { flex-wrap: wrap; row-gap: 0; padding-block: .5rem; }
  .dl > span { white-space: nowrap; }
  .dl .size { flex-basis: 100%; text-align: center; font-size: .92rem; }
  .dl .size::before { display: none; }
}

/* ── 7 · Fuß ─────────────────────────────────────────────── */
.foot { position: relative; z-index: 1; overflow: hidden; text-align: center; padding: 3.4rem 0 calc(2.4rem + env(safe-area-inset-bottom)); }
.skyline { position: relative; left: 50%; transform: translateX(-50%); display: block; width: min(150vw, 980px); max-width: none; height: auto; aspect-ratio: 2000 / 680; object-fit: cover; object-position: 50% 64%; opacity: .9; }
.sign { margin-top: 1.2rem; font-size: 1.6rem; }
.home { margin-top: .5rem; font-size: 1.02rem; }

/* ── 8 · Einstieg ────────────────────────────────────────── */
/* Ein Moment: der Titel schreibt sich von links nach rechts, der Schwung folgt, dann öffnet sich der Film
   wie ein Vorhang aus der Mitte (Anspielung auf die Tüllbahnen am Traubogen im Titelbild). Jeder Reiter-Wechsel
   öffnet den neuen Film mit demselben Vorhang, nur schneller.
   Läuft bewusst auch bei "Bewegung reduzieren" (wie auf den anderen Seiten der Hochzeit).
   fill-mode backwards: der Endzustand ist der normale Stil. */
.title {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 55%);
          mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 55%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-position: 0 0; mask-position: 0 0;
  animation: write-in 1.1s cubic-bezier(.45, .05, .35, 1) .15s backwards;
}
@keyframes write-in {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0 0;    mask-position: 0 0; }
}
.swash path { stroke-dasharray: 100; animation: draw .9s ease 1s backwards; }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* Lade-Choreografie nur für den Film, der beim Öffnen gewählt ist (film.js nimmt .intro nach 3 s bzw. beim
   ersten Reiter-Wechsel weg). Ohne Skript gibt es kein .intro: alles steht sofort da. */
.date, .lead, .picker, .intro .film .meta { animation: rise .9s var(--ease-out) backwards; }
.date { animation-delay: .9s; }
.lead { animation-delay: 1s; }
.picker { animation-delay: 1.08s; }
.intro .film .meta { animation-delay: 1.75s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.intro .film .frame { animation: curtain 1.3s var(--ease-out) 1.15s backwards; }
@keyframes curtain {
  from { clip-path: inset(0 50% 0 50% round 6px); filter: blur(6px); opacity: .4; }
  60%  { filter: blur(0); opacity: 1; }
  to   { clip-path: inset(0 0 0 0 round 6px); }
}
.intro .film .play:not([hidden]) { animation: pop .7s var(--ease-out) 2s backwards; }

/* Reiter-Wechsel: film.js setzt .enter auf den neuen Reiter */
.panel.enter .frame { animation: curtain .8s var(--ease-out) backwards; }
.panel.enter .meta { animation: rise .6s var(--ease-out) .18s backwards; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }

/* Film fehlt noch: film.js setzt .soon, blendet Abspiel- und Laden-Knopf aus und legt diese Plakette an */
.soon-badge {
  position: absolute; left: clamp(14px, 3.2%, 34px); bottom: clamp(14px, 4.5%, 40px);
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem 1.2rem;
  border-radius: 999px; background: rgba(255, 250, 245, .94); color: var(--ink);
  font: italic 600 1.08rem/1.2 var(--font-serif);
  box-shadow: 0 2px 4px rgba(143, 68, 50, .15), 0 14px 26px -14px rgba(143, 68, 50, .6);
}
@container (max-width: 520px) { .soon-badge { left: 16px; bottom: 16px; font-size: 1rem; } }
.soon .frame video { cursor: default; }
.dls[hidden] { display: none; }
