/* ==========================================================================
   iamf 2027 – Stylesheet
   --------------------------------------------------------------------------
   Aufbau:
   1. Schriften
   2. Variablen (Abstände, Farben, Schrift)
   3. Skins (Farbschemata pro Seite)
   4. Reset / Grundeinstellungen
   5. Typografie
   6. Layout & Raster
   7. Bausteine (Links, Medienrahmen …)
   8. Header
   9. Kontakt-Block („Start a project with us“)
   10. Footer
   ========================================================================== */


/* ==========================================================================
   1. Schriften – Inter Tight, lokal vom eigenen Server (DSGVO-konform)
   Die .woff2-Dateien liegen im Ordner /fonts
   ========================================================================== */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   2. Variablen
   Hier zentral ändern – wirkt auf die ganze Website.
   ========================================================================== */

:root {
  /* --- Grundabstand ---------------------------------------------------
     Seitenrand links/rechts UND Abstand zwischen Spalten/Bildern.
     Für Mobile später einfach im Media Query überschreiben. */
  --gap: 15px;

  /* --- Farben (Grundwerte, werden von den Skins genutzt) -------------- */
  --white:      #ffffff;
  --black:      #000000;
  --dark:       #1d1d1d;   /* Hintergrund Info-Seite        */
  --lime:       #eafe79;   /* Hintergrund Kontakt-Seite     */
  --grey-light: #cecece;   /* Text auf dunklem Grund        */
  --grey-a0:    #a0a0a0;   /* Hervorhebung / Nebentext      */
  --grey-90:    #909090;   /* Labels auf dunklem Grund      */
  --grey-7f:    #7f7f7f;   /* Linien & Unterstreichungen    */
  --placeholder:#d9d9d9;   /* Platzhalter für Bilder        */

  /* --- Schrift -------------------------------------------------------- */
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  /* --- Strichstärke von Trennlinien ------------------------------------ */
  --line: 1px;
}


/* ==========================================================================
   3. Skins – Farbschema pro Seite
   Im HTML: <body class="skin-light">, "skin-dark" oder "skin-lime"
   Alle Bausteine verwenden nur die Variablen --color-…, nie feste Farben.
   ========================================================================== */

.skin-light {
  --color-bg:    var(--white);
  --color-text:  var(--black);
  --color-muted: var(--grey-a0);   /* Nebentext, z. B. „Contact“ im Footer */
  --color-label: var(--grey-a0);   /* Abschnitts-Labels                    */
  --color-line:  var(--grey-7f);   /* Trennlinien, Unterstreichungen       */
}

.skin-dark {
  --color-bg:    var(--dark);
  --color-text:  var(--grey-light);
  --color-muted: var(--grey-a0);
  --color-label: var(--grey-90);
  --color-line:  var(--grey-7f);
}

.skin-lime {
  --color-bg:    var(--lime);
  --color-text:  var(--black);
  --color-muted: var(--grey-a0);
  --color-label: var(--grey-a0);
  --color-line:  var(--grey-7f);
}


/* ==========================================================================
   4. Reset / Grundeinstellungen
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;          /* Bezugspunkt für die Tagline im Header */
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}


/* ==========================================================================
   5. Typografie – entspricht den Textstilen in Figma
   ========================================================================== */

/* marginalia – Standardtext, 13 px SemiBold */
.t-marginalia {
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
}

/* caption – Bildunterschriften, 13 px Medium, 3 % Laufweite */
.t-caption {
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

/* big text – Einleitungstexte, 20/24 SemiBold */
.t-big {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
}

/* h2 black – Abschnittsüberschriften, 24 px Black */
.t-h2 {
  font-size: 24px;
  font-weight: 900;
  line-height: normal;
}

/* h1 black – große Überschriften, 45/55 Black, −1 % Laufweite */
.t-h1 {
  font-size: 45px;
  font-weight: 900;
  line-height: 55px;
  letter-spacing: -0.01em;
}

.t-muted { color: var(--color-muted); }
.t-label { color: var(--color-label); }


/* ==========================================================================
   6. Layout & Raster
   ========================================================================== */

/* Inhaltsbereich mit Seitenrand */
.wrap {
  padding-inline: var(--gap);
}

/* Rasterspalten – Abstand immer = --gap */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Elemente, die bis an den Bildschirmrand gehen (z. B. 1920 × 1080-Bilder)
   innerhalb von .wrap */
.full-bleed {
  margin-inline: calc(var(--gap) * -1);
}

/* Trennlinie über Abschnitten */
.rule {
  border-top: var(--line) solid var(--color-line);
}


/* ==========================================================================
   7. Bausteine
   ========================================================================== */

/* --- Unterstrichener Link („Read more“, „View“, „See it live“ …) ------- */
.link-underline {
  display: inline-block;
  border-bottom: var(--line) solid var(--color-line);
}

/* --- Medienrahmen --------------------------------------------------------
   Fester Rahmen mit Seitenverhältnis. Inhalt kann Bild, Video, Lottie
   oder Slideshow sein – das Layout bleibt immer gleich.
   Seitenverhältnis per Klasse oder direkt: style="--ratio: 302 / 470"   */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 9);
  background: var(--placeholder);
}

.media > img,
.media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9     { --ratio: 16 / 9; }
.media--portrait { --ratio: 302 / 470; }   /* Hochformat Info-Seite   */
.media--tall     { --ratio: 937 / 1170; }  /* Hochformat Projektseite */


/* ==========================================================================
   8. Header
   Logo und Navigation bleiben fest in den Ecken stehen.
   Die Tagline (nur Startseite) scrollt normal mit.
   ========================================================================== */

.site-logo {
  position: fixed;
  top: 19px;
  left: var(--gap);
  z-index: 100;
  width: 35px;
  height: 18px;
  color: var(--color-text);   /* Logo-SVG nutzt „currentColor“ */
}

.site-logo svg {
  width: 100%;
  height: 100%;
}

.site-nav {
  position: fixed;
  top: 15px;
  right: var(--gap);
  z-index: 100;
}

.site-tagline {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}


/* ==========================================================================
   9. Kontakt-Block („Start a project with us“)
   ========================================================================== */

.cta {
  padding-top: 270px;      /* Abstand Linie → Text    */
  padding-bottom: 396px;   /* Abstand Text → Footer   */
  text-align: center;
}

.cta__mail {
  color: var(--color-muted);
}


/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
  padding-bottom: 20px;
}

/* Zeilen mit Linie oben: Label-Spalte (217 px) + Inhalt */
.footer-row {
  display: grid;
  grid-template-columns: 217px 1fr;
  padding-top: 10px;
  border-top: var(--line) solid var(--color-line);
}

.footer-row--intro {
  min-height: 66px;
}

.footer-list li + li {
  margin-top: 13px;
}

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 51px;
}

.footer-copy {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.footer-logo {
  width: 100px;
  height: 52px;
  margin-bottom: 3px;
  color: var(--color-text);
}

.footer-logo svg {
  width: 100%;
  height: 100%;
}
