/* =====================================================================
   Franki Studio – Projekt-Unterseiten (/airwaves/, /champion/ …)
   Gemeinsames Stylesheet; Seiten werden von tools/build_subpage.py erzeugt.

   Desktop (>= 900px): 1:1-Komposition des Canva-Designs (1366px Designbreite)
     --su = 1 Design-Pixel der Seite (max. 1600px Seitenbreite)
     .blk  = Gruppe von Elementen, eigener Container: --u = Blockbreite / --bw
   Mobil (< 900px): Blöcke untereinander; "scale" skaliert die Gruppe,
     "flow" lässt Texte normal fließen; reine Deko (.deco) ist ausgeblendet.
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { background: #000; color: #fff; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; font-family: "Raleway", Arial, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 2px solid #ff751f; outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 1000; background: #fff; color: #000; padding: .5rem 1rem; border-radius: 4px; }
.skip:focus { top: 1rem; }

.site { display: block; container-type: inline-size; width: 100%; overflow: hidden; }
.page {
  --su: calc(min(100cqw, 1600px) / 1366);
  --u: var(--su);
  position: relative; width: calc(1366 * var(--su)); height: calc(var(--sh) * var(--su));
  margin-inline: auto; overflow: clip; background: #000;
}

/* ---- Elemente (aus dem Konverter) ---- */
.e { position: absolute; margin: 0; }
.img, .shp { overflow: hidden; }
.m { position: absolute; display: block; max-width: none; }
video.m { object-fit: cover; }
.gi { position: relative; transform-origin: 0 0; }
.ti { transform-origin: 0 0; }
.t { margin: 0; font-weight: 400; font-size: inherit; }
.t .l { display: block; white-space: pre; }
.t .l.j { text-align-last: justify; }
.t a, .el-link { color: inherit; text-decoration: inherit; }
.t a:hover, .el-link:hover { opacity: .8; }
.el-link { position: absolute; inset: 0; display: block; }
.stk { position: absolute; inset: 0; pointer-events: none; }
.sprite { display: block; }
.spr { position: absolute; inset: 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; mask-mode: luminance; -webkit-mask-source-type: luminance; }

/* ---- Blöcke ---- */
.blk {
  position: absolute;
  top: calc(var(--bt) * var(--su)); left: calc(var(--bl) * var(--su));
  width: calc(var(--bw) * var(--su)); aspect-ratio: var(--bw) / var(--bh);
  container-type: inline-size;
  --u: calc(100cqw / var(--bw));
}
.carousel { display: contents; }
.m-only { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Bewegung reduzieren ---- */
@media (prefers-reduced-motion: reduce) {
  video[autoplay] { visibility: hidden; }
  .img:has(> video), .shp:has(video), .shp:has(> .el-link > video) { background: #222; }
}

/* ---- Footer ---- */
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding: 2rem 6vw 2.5rem; border-top: 1px solid rgba(255, 255, 255, .15);
  font: 400 14px/1.4 "Raleway", Arial, sans-serif; color: rgba(255, 255, 255, .7);
}
.footer p { margin: 0; }

/* =====================================================================
   MOBIL / TABLET
   ===================================================================== */
@media (max-width: 899px) {
  .page {
    width: 100%; height: auto; overflow: visible;
    display: flex; flex-direction: column; align-items: center; gap: 9vw;
    padding: 12vw 5vw;
  }
  .page > .deco { display: none; }

  .blk { position: relative; top: auto; left: auto; width: min(100%, calc(var(--bw) * 1.25px)); flex: none; }

  /* flow: Texte im normalen Fluss, lesbare Größen */
  .blk.flow { aspect-ratio: auto; container-type: normal; width: 100%; max-width: 34rem; --u: 1.15px; }
  .blk.flow > .e { position: relative; top: auto !important; left: auto !important; width: auto !important; height: auto !important; transform: none !important; }
  .blk.flow .ti { width: auto !important; transform: none !important; }
  .blk.flow .t .l { display: inline; white-space: normal; }
  .blk.flow .t .l.j { text-align-last: auto; }
  .blk.flow > .shp, .blk.flow > .ln { display: none; }

  .nav.flow { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; }
  .nav .t { text-align: center !important; }
  .intro .t { text-align: left !important; font-size: max(15px, calc(13 * var(--u))) !important; line-height: 1.5 !important; }
  .contact.flow > .txt { border-bottom: 1px solid #fff; padding: .9rem 0 .5rem; }
  .contact .t { font-size: max(17px, calc(20 * var(--u))) !important; }

  .m-only { display: block; }
  .m-hidden { display: none; }
  .blk { --minf: 10.5px; }
  .sec-h {
    margin: 0; font: 700 12vw/1.05 "TT Interphases", Arial, sans-serif; letter-spacing: .2em;
    color: #d9cfc0; text-transform: uppercase; text-align: center;
  }
  #shootings .sec-h { text-transform: none; }

  /* Social Media: wischbares Karussell */
  .carousel {
    display: flex; gap: 6vw; width: 100vw; margin-inline: -5vw; padding: 0 14vw 4vw;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.4) transparent;
  }
  .carousel > .blk { flex: 0 0 72vw; width: 72vw; scroll-snap-align: center; }


}

@media (max-width: 899px) {
  .blk.flow { max-width: 36rem; }
  .blk.flow .t { line-height: 1.5 !important; }
}
@media (max-width: 899px) {
  /* Texte fließen; Designgröße (--fs) begrenzt, damit Überschriften umbrechen statt überzulaufen */
  .blk.flow .t { font-size: clamp(14px, calc(var(--fs) * 1.05px), 11.5vw) !important; overflow-wrap: anywhere; }
  .blk.flow.big .t { line-height: 1.08 !important; }
  .blk.small { width: min(100%, calc(var(--bw) * .75px)); }
}
@media (max-width: 899px) {
  .blk.flow .t .l + .l::before { content: " "; }   /* Zeilen ohne Leerzeichen nicht zusammenkleben */
  .blk.boxed { background: var(--mbg); }
  .blk.flow.boxed { padding: 1.1rem 1.2rem; border-radius: 10px; }
  .blk.scale.boxed { outline: 1rem solid var(--mbg); }
}
