/* ——————————————————————————————————————————————————————————————
   FilmApp Landing Page
   Layout-Skelett aus dem Portfolio, Typografie und Kartenmotiv aus der
   FilmApp-Hilfe. Bricolage Grotesque ist dieselbe Familie wie dort.

   REGEL: keine Hex-Werte. Der Light Mode ist eine exakte Inversion der
   Tokens — jeder feste Farbwert würde ihn zerstören. Einzige Ausnahme sind
   Texte über Bild/Video (--fa-on-media), die in beiden Themes hell bleiben
   müssen, weil das Medium darunter immer dunkel ist.
   —————————————————————————————————————————————————————————————— */

.fa {
  font-family: var(--font-display);
  --fa-on-media: #e8e6e1;
  --fa-section-y: clamp(72px, 9vw, 128px);
}

/* ——— Container ——— */
.fa-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.fa-section {
  padding-bottom: var(--fa-section-y);
}

/* Haarlinie als Abschnittsanfang. Ersetzt das dreiteilige Divider-Motiv:
   achtmal wiederholt wäre es Dekoration statt Rhythmus. */
.fa-rule {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 0 0 clamp(28px, 3.5vw, 48px);
}

/* ——— Redaktionsraster ———
   Überschrift links, Inhalt rechts. Löst das Problem, dass Textblöcke am
   linken Rand kleben und die rechte Seite leer bleibt. */
.fa-cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

/* Bei langen Inhaltsspalten läuft die Überschrift mit — dasselbe Verhalten
   wie das klebende Projektbild auf den Projektseiten. */
.fa-cols-aside {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}

/* ——— Typografie ——— */
.fa-h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--color-text);
  text-wrap: balance;
}

/* Überschriften ohne Nebenspalte dürfen breiter und größer laufen */
.fa-h2--wide {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}

.fa-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--color-text);
  max-width: 58ch;
}

.fa-lead--centered {
  margin: 0 auto;
  text-align: center;
}

.fa-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-dim);
  max-width: 56ch;
}

/* Hervorgehobener Kernsatz — Betonung über Größe, nicht über Farbe */
.fa-pull {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: clamp(28px, 3.5vw, 44px) 0;
  padding-left: 20px;
  border-left: 2px solid var(--color-text);
  max-width: 24ch;
}

.fa-note {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-dim);
  max-width: 52ch;
  margin-top: clamp(24px, 3vw, 36px);
  padding-left: 16px;
  border-left: 1px solid var(--color-border);
}

/* ——— ① Hero ———
   Kinoformat 2.39:1. Die Schrift ist bewusst plakativ: Sie ist das erste
   und für viele einzige Argument. */
.fa-hero {
  max-width: 1920px;
  margin: 0 auto;
  padding: 48px 48px clamp(64px, 7vw, 104px);
}

.fa-hero-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 2.39 / 1;
  /* Sicherung: Braucht die Schrift mehr Höhe als das Format hergibt — etwa
     bei sehr langen Übersetzungen oder großer Systemschriftgröße —, wächst
     der Rahmen, statt den Text abzuschneiden. */
  min-height: min-content;
  display: flex;
  align-items: center;
  background: rgba(var(--color-text-rgb), 0.06);
}

.fa-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

/* Zwei Verläufe: einer trägt die Schrift unten links, einer nimmt dem
   gesamten Rahmen etwas Helligkeit, damit die Kante zum Seitenhintergrund
   nicht hart wird. */
.fa-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top right, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 38%, rgba(0, 0, 0, 0) 72%),
    linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 48%);
}

.fa-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 3.4vw, 60px);
  /* Kein `ch` hier: Die Einheit rechnet gegen die Schriftgröße dieses
     Wrappers (14px), nicht gegen die der Headline — die Spalte fiele
     dadurch viel zu schmal aus. Fester Deckel plus Prozentanteil, damit
     das Verhältnis zum Rahmen über alle Breiten stimmt. */
  max-width: min(640px, 52%);
}

.fa-hero-headline {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--fa-on-media);
  margin-bottom: clamp(16px, 1.8vw, 26px);
  text-wrap: balance;
}

/* Zweiter Satz auf eigener Zeile und zurückgenommen — die Spannung liegt
   im Wechsel, nicht in einer zweiten Farbe. */
.fa-hero-headline-dim {
  display: block;
  margin-top: 0.14em;
  opacity: 0.58;
}

.fa-hero-subline {
  font-size: clamp(0.95rem, 1.15vw, 1.15rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--fa-on-media);
  opacity: 0.82;
  max-width: 52ch;
}

/* ——— ② Nutzen: drei Karten ——— */
.fa-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.fa-benefit {
  padding-top: clamp(4px, 0.6vw, 8px);
}

.fa-benefit-title {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 12px;
}

.fa-benefit-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-dim);
}

/* ——— Aufzählung mit Strich ———
   Der Strich sitzt als Flex-Element auf der Grundlinie und wird um eine
   halbe x-Höhe angehoben. Dadurch liegt er auf Mitte der ersten Zeile —
   auch wenn der Eintrag umbricht oder die Schriftgröße sich ändert. */
.fa-list {
  border-top: 1px solid var(--color-border);
}

.fa-list-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.6;
  color: var(--color-text);
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.fa-list-item::before {
  content: '';
  flex: 0 0 18px;
  height: 1px;
  background: var(--color-text);
  opacity: 0.45;
  transform: translateY(-0.32em);
}

/* ——— ④ Schritte ——— */
.fa-steps {
  display: grid;
  gap: clamp(26px, 3vw, 40px);
}

.fa-step {
  display: flex;
  gap: clamp(16px, 1.8vw, 24px);
  align-items: flex-start;
}

.fa-step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1px;
}

.fa-step-title {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 8px;
}

.fa-step-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-dim);
  max-width: 54ch;
}

/* ——— ⑥ Aussage-Abschnitt ——— */
.fa-section--statement {
  padding-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--fa-section-y);
}

.fa-statement {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-align: center;
  max-width: 18ch;
  margin: 0 auto clamp(24px, 3vw, 36px);
}

/* ——— ⑦ Szenentypen ——— */
.fa-scenes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  border-top: 1px solid var(--color-border);
}

.fa-scene {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

/* ——— Diagramm Fernsteuerung ———
   Ein Steuergerät links, drei laufende Geräte rechts. Drei Ebenen mit
   abgestufter Deckkraft: Gerätekonturen tragen, Verbindungen führen,
   Bildschirminhalte deuten nur an. */
.fa-diagram {
  margin-top: clamp(44px, 5.5vw, 80px);
}

/* Nur Kontur, keine Fläche — der Rahmen fasst die Zeichnung ein, ohne sie
   auf eine eigene Ebene zu heben. */
.fa-diagram-frame {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: clamp(24px, 3.5vw, 52px);
}

/* Unter der Mindestbreite wird geschoben statt geschrumpft — darunter
   zerfallen die angedeuteten Oberflächen zu Strichen. Das Padding sitzt
   bewusst außen am Rahmen, sonst verschwände der rechte Innenabstand,
   sobald jemand scrollt. */
.fa-diagram-canvas {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.fa-diagram svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
  color: var(--color-text);
}

/* Alle Konturen 1px. `non-scaling-stroke` ist dafür nötig: Ohne den Effekt
   rechnet SVG die Strichstärke in viewBox-Einheiten und skaliert sie mit der
   Containerbreite mit — aus 1 würden je nach Fensterbreite 0,7 oder 1,3 px.
   Die Hierarchie zwischen Gerät, Verbindung und Bildschirminhalt liegt
   dadurch allein in der Deckkraft. */
.fa-diagram svg :is(rect, circle, path, line) {
  vector-effect: non-scaling-stroke;
}

.fa-dg-device {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.fa-dg-link {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 6 5;
  opacity: 0.6;
}

.fa-dg-ui {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.42;
}

/* Gefüllte Textzeilen in den angedeuteten Oberflächen */
.fa-dg-ui .fa-dg-fill {
  fill: currentColor;
  stroke: none;
}

/* Das vordere Fenster muss das hintere verdecken, sonst liest sich der
   Desktop als ein einziges Gitter. */
.fa-dg-ui .fa-dg-solid {
  fill: var(--color-bg);
}

.fa-diagram figcaption {
  margin-top: clamp(20px, 2.4vw, 28px);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-dim);
  max-width: 62ch;
}

/* ——— Medienslots (Platzhalter, bis das Material da ist) ——— */
.fa-media-slot {
  margin-top: clamp(40px, 5vw, 72px);
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.fa-media-slot--wide {
  min-height: 440px;
}

/* ——— Textlink mit Pfeil ——— */
.fa-textlink {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(26px, 3vw, 36px);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.fa-arrow {
  transition: transform 0.25s ease;
}

.fa-textlink:hover { opacity: 1; }
.fa-textlink:hover .fa-arrow { transform: translateX(6px); }

/* ——— ⑪ Zusammenarbeit ——— */
.fa-process {
  counter-reset: fa-proc;
  border-top: 1px solid var(--color-border);
}

.fa-process-item {
  counter-increment: fa-proc;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.65;
  color: var(--color-text);
  padding: 20px 0 20px 48px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.fa-process-item::before {
  content: counter(fa-proc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: calc(20px + 0.35em);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-text-dim);
}

/* ——— ⑫ Abschluss ——— */
.fa-section--cta {
  border-top: 1px solid var(--color-border);
  padding-top: var(--fa-section-y);
}

.fa-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 88px);
}

.fa-cta-title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 12px;
}

.fa-cta-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-dim);
  max-width: 42ch;
  margin-bottom: 28px;
}

/* ——— Buttons ———
   Keine Akzentfarbe: die Hauptaktion ist ein invertierter Block aus den
   vorhandenen Tokens. Funktioniert in beiden Themes identisch. */
.fa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid var(--color-text);
  border-radius: 4px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.fa-btn:hover {
  opacity: 1;
  background: rgba(var(--color-text-rgb), 0.1);
}

.fa-btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.fa-btn--primary:hover {
  opacity: 0.82;
  background: var(--color-text);
  color: var(--color-bg);
}

.fa-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ——— Eigene Hülle: Header und Footer ——— */
.header--filmapp .menu a,
.logo--filmapp {
  font-family: var(--font-display);
}

.logo--filmapp {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* Der Portfolio-Footer ist eine einzeilige Flexreihe. Die FilmApp-Variante
   trägt eine Zeile mehr und wird deshalb zur Spalte — sonst rutscht die
   Herkunftszeile neben die Links. */
.footer--filmapp {
  font-family: var(--font-display);
  flex-direction: column;
  gap: 24px;
}

.footer-origin {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* `.footer a` in index.css setzt 16px — ohne die Rücknahme stünde der Name
   größer da als der Satz, in dem er steht. */
.footer-origin a {
  font-size: inherit;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Responsive ——— */
@media screen and (max-width: 1000px) {
  .fa-cols {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
  }

  .fa-cols-aside {
    position: static;
  }

  .fa-benefits {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 600px) {
  .fa {
    --gutter: 20px;
  }

  .fa-hero {
    padding: 32px 20px clamp(48px, 9vw, 80px);
  }

  /* Auf schmalen Schirmen wird der Text aus dem Rahmen gelöst statt ihn zu
     überlagern: In einem Hochformat bleibt neben dem Motiv keine ruhige
     Fläche mehr übrig, egal welches Bild dort liegt. Bild oben, Schrift
     darunter auf dem Seitenhintergrund — maximale Lesbarkeit, und das Motiv
     bleibt unverdeckt. */
  .fa-hero-frame {
    display: block;
    aspect-ratio: auto;
    min-height: 0;
    overflow: visible;
    background: none;
  }

  .fa-hero-img {
    position: static;
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    object-position: 55% center;
  }

  .fa-hero-scrim {
    display: none;
  }

  .fa-hero-inner {
    position: static;
    max-width: none;
    padding: clamp(24px, 6vw, 32px) 0 0;
  }

  .fa-hero-headline {
    color: var(--color-text);
  }

  .fa-hero-headline-dim {
    color: var(--color-text-dim);
    opacity: 1;
  }

  .fa-hero-subline {
    color: var(--color-text);
    opacity: 1;
  }

  .fa-h2,
  .fa-h2--wide,
  .fa-statement {
    max-width: none;
  }

  .fa-media-slot {
    min-height: 220px;
  }

  .fa-media-slot--wide {
    min-height: 260px;
  }
}
