/* ---------- Fonts (selbst gehostet, keine externen Anfragen) ---------- */
@font-face { font-family: "Didot"; src: url("../fonts/gfs-didot-latin-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2013-201E, U+2026; }
@font-face { font-family: "Didot"; src: url("../fonts/gfs-didot-greek-400-normal.woff2") format("woff2"); font-display: swap; unicode-range: U+0370-03FF; }
@font-face { font-family: "Hanken"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("../fonts/hanken-grotesk-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-024F, U+2020-20CF; }
@font-face { font-family: "Hanken"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --black: #000;
  --ink: #ECE9E4;
  --dim: #8E8B86;
  --line: rgba(236, 233, 228, .16);
  --accent: #ECE9E4;
  --serif: "Didot", "Didot LT", "Bodoni 72", Georgia, serif;
  --sans: "Hanken", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 2.6vw, 2.25rem);
  --step-3: clamp(2.4rem, 5.2vw, 4.5rem);
  --step-4: clamp(4rem, 13vw, 11rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.page--home :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--pad); top: 1rem; background: var(--ink); color: #000; padding: .5rem 1rem; z-index: 10; }

/* ---------- Kopfzeile ---------- */
.bar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.5rem var(--pad);
  font-size: var(--step--1); letter-spacing: .02em;
}
.bar a { text-decoration: none; }
.bar a:hover { text-decoration: underline; text-underline-offset: .25em; }
.bar__name { font-weight: 500; }
.bar nav { display: flex; gap: 1.75rem; }

/* ---------- Startseite ---------- */
.intro { padding: clamp(3rem, 9vw, 8rem) var(--pad) clamp(2.5rem, 6vw, 5rem); max-width: 80rem; }
.intro h1 {
  font: 400 var(--step-3)/1.04 var(--serif);
  letter-spacing: -.01em;
  margin: 0; max-width: 17ch;
}
.intro p { color: var(--dim); max-width: 46ch; margin: 1.75rem 0 0; font-size: var(--step-1); line-height: 1.5; }

/* Das Triptychon: drei Kampagnen als drei stehende Filme */
.triptych {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(.75rem, 1.6vw, 1.5rem);
  padding: 0 var(--pad);
  list-style: none; margin: 0;
}
.film { position: relative; }
.film a { text-decoration: none; display: block; }
.film__frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #050505; }
.film__frame video, .film__frame img { width: 100%; height: 100%; object-fit: cover; }
.film__frame img { position: absolute; inset: 0; transition: opacity .6s; }
.film.is-playing .film__frame img { opacity: 0; }
.film__title { font: 400 var(--step-2)/1.1 var(--serif); margin: 1.1rem 0 .3rem; }
.film__meta { color: var(--dim); font-size: var(--step--1); margin: 0; }
.film__frame::after {
  content: ""; position: absolute; inset: 0; background: #000;
  opacity: 0; transition: opacity .5s ease;
}
@media (hover: hover) {
  .triptych:has(.film:hover) .film:not(:hover) .film__frame::after { opacity: .62; }
  .triptych:has(.film:hover) .film:not(:hover) .film__title,
  .triptych:has(.film:hover) .film:not(:hover) .film__meta { opacity: .45; }
}
.triptych:has(.film a:focus-visible) .film:not(:focus-within) .film__frame::after { opacity: .62; }
.film__title, .film__meta { transition: opacity .5s ease; }

@media (max-width: 760px) {
  .triptych {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78vw;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
    scrollbar-width: none;
  }
  .triptych::-webkit-scrollbar { display: none; }
  .film { scroll-snap-align: center; }
}

.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem var(--pad);
  padding: clamp(5rem, 12vw, 10rem) var(--pad) clamp(3rem, 8vw, 6rem);
}
.about h2, .section h2 { font: 400 var(--step-2)/1.15 var(--serif); margin: 0; }
.about__text p { margin: 0 0 1.1rem; max-width: 60ch; }
.contact { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.contact a { font: 400 var(--step-1)/1.3 var(--serif); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
.contact a:hover { text-decoration-color: transparent; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

.foot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 2rem var(--pad) 2.5rem; color: var(--dim); font-size: var(--step--1);
  border-top: 1px solid var(--line); margin-top: 3rem;
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- Projektseite ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem var(--pad); align-items: end;
  padding: clamp(.5rem, 2vw, 1.5rem) var(--pad) clamp(3rem, 8vw, 7rem);
}
.hero__title {
  font: 400 var(--step-4)/.86 var(--serif); letter-spacing: -.02em;
  margin: 0 0 2rem;
}
.hero__logline { font: 400 var(--step-2)/1.2 var(--serif); margin: 0 0 2.5rem; max-width: 22ch; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.75rem; margin: 0; font-size: var(--step--1); }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; }

.player { position: relative; width: min(30rem, 100%); }
.player--hero { width: min(clamp(16rem, 32vw, 27rem), calc((100svh - 10rem) * 9 / 16)); }
.player__media { position: relative; aspect-ratio: 9 / 16; background: #050505; z-index: 1; }
.player__media video, .player__media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.player figcaption { font-size: var(--step--1); color: var(--dim); margin-top: .75rem; position: relative; z-index: 1; }

/* Das Licht der Kampagne hinter dem Trailer */
.glow { position: absolute; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .7; }
.glow--circle { inset: 12% -18%; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 68%); }
.glow--edge { top: 8%; bottom: 8%; right: -26%; width: 55%; background: radial-gradient(ellipse at left, var(--accent) 0%, transparent 70%); opacity: .5; }
.glow--sun { width: 120%; aspect-ratio: 1; left: -10%; top: 18%; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, rgba(232,144,47,.35) 35%, transparent 70%); opacity: .6; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .player--hero { width: 100%; max-width: 26rem; }
}

.section { padding: clamp(3rem, 8vw, 7rem) var(--pad); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem var(--pad); }
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }
.prose p { margin: 0 0 1.1rem; max-width: 62ch; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.work { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem var(--pad); align-items: start; }
.work .player { width: clamp(14rem, 26vw, 22rem); }
.work .work__h { margin: 0 0 2rem; }
.work h3 { font: 400 var(--step-1)/1.3 var(--serif); margin: 0 0 .75rem; }
.work ul { list-style: none; padding: 0; margin: 0 0 2.25rem; }
.work li { padding: .55rem 0; border-top: 1px solid var(--line); }
.work li:last-child { border-bottom: 1px solid var(--line); }
.work p { margin: 0 0 2.25rem; max-width: 50ch; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } .work .player { width: 100%; max-width: 22rem; } }

/* Bilder */
.gallery { columns: 3; column-gap: clamp(.6rem, 1.4vw, 1.25rem); margin-top: 2.5rem; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  margin: 0 0 clamp(.6rem, 1.4vw, 1.25rem); break-inside: avoid;
}
.gallery img { width: 100%; height: auto; }
@media (max-width: 760px) { .gallery { columns: 2; } }

.notes { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.4rem, 1vw, 1rem); margin-top: 2.5rem; }
.notes figure { margin: 0; }
.notes button { padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.notes img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.notes figcaption { font-size: var(--step--1); margin-top: .6rem; }
.lead { color: var(--dim); max-width: 52ch; margin: .75rem 0 0; }
@media (max-width: 760px) { .notes { grid-template-columns: repeat(5, 42vw); overflow-x: auto; scroll-snap-type: x mandatory; } .notes figure { scroll-snap-align: start; } }

/* Nächstes Projekt */
.next { display: block; text-decoration: none; padding: clamp(4rem, 10vw, 8rem) var(--pad); border-top: 1px solid var(--line); }
.next span { display: block; color: var(--dim); font-size: var(--step--1); margin-bottom: 1rem; }
.next strong { font: 400 var(--step-4)/.9 var(--serif); letter-spacing: -.02em; transition: color .4s; }
.next:hover strong, .next:focus-visible strong { color: var(--next-accent, var(--ink)); }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(0,0,0,.96); color: var(--ink); }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding: 4rem 4.5rem 1rem; }
.lightbox__stage img { max-height: calc(100svh - 8rem); max-width: calc(100vw - 9rem); width: auto; height: auto; object-fit: contain; }
@media (max-width: 760px) { .lightbox__stage img { max-width: 100%; max-height: calc(100svh - 10rem); } }
.lightbox__cap { text-align: center; font-size: var(--step--1); color: var(--dim); padding: 0 1rem 1.5rem; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--ink); font: 400 1rem/1 var(--sans); padding: 1rem; cursor: pointer; }
.lightbox__close { top: .75rem; right: .75rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); font-size: 1.75rem !important; }
.lightbox__prev { left: .5rem; }
.lightbox__next { right: .5rem; }
@media (max-width: 760px) { .lightbox__stage { padding: 3.5rem .75rem 1rem; } .lightbox__prev, .lightbox__next { top: auto; bottom: .5rem; transform: none; } }

/* Einmaliger Auftritt beim Laden der Startseite */
@media (prefers-reduced-motion: no-preference) {
  .page--home .film { animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
  .page--home .film:nth-child(2) { animation-delay: .12s; }
  .page--home .film:nth-child(3) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(2.5rem); } }
}
