/* ==========================================================================
   BUREAU BLINK — Stylesheet
   --------------------------------------------------------------------------
   Aufbau:
   1. Schriften
   2. Variablen (Farben, Abstände, Größen)  ← hier änderst du das Look & Feel
   3. Basis
   4. Header / Navigation
   5. Bausteine (Label, große Texte)
   6. Startseite: Intro, Projekte-Raster, Kategorien, Zitat, Kontakt
   7. Collagen-Seite
   8. Impressum
   9. Footer
   10. Responsive (Tablet / Handy)
   ========================================================================== */


/* 1. SCHRIFTEN ------------------------------------------------------------ */
/* Geist (Open Font License) – lokal eingebunden, kein Google-Server.
   Zwei Dateien: Grundzeichen (latin) und Sonderzeichen (latin-ext). */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-600-latin-ext.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Geist Regular (400) für Bildunterschriften und Fließtext */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* 2. VARIABLEN ------------------------------------------------------------ */
:root {
  /* Farben */
  --c-text:      #000000;
  --c-bg:        #ffffff;
  --c-accent:    #815eff;   /* Lila: Labels, Kategorien, Links */
  --c-lime:      #baff42;  /* Neon-Grün: aktiver Menüpunkt, Shop-Button */
  --c-pill:      #f3f3f5;   /* Hellgrau: Menü-Buttons */
  --c-white:     #ffffff;

  /* Schriften */
  --f-display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --f-text:    "Geist", "Helvetica Neue", Arial, sans-serif;

  /* Schriftgrößen – skalieren mit der Fensterbreite, mit Min/Max */
  --fs-small:   13px;
  --fs-card:    15px;
  --fs-l:       clamp(30px, 4.3vw, 55px);   /* Kontakt */
  --fs-intro:   max(28px, 4.35vw);           /* Intro-Text: wächst ohne Obergrenze mit, immer volle Breite */
  --fs-quote:   clamp(26px, 3.45vw, 44px);  /* Zitat */
  --fs-xl:      clamp(40px, 5.9vw, 75px);   /* Kategorien-Liste */
  --fs-logo:    calc((100vw - 2 * var(--pad)) / 5.9);  /* Riesiger Schriftzug im Footer, füllt die Breite */

  /* Abstände */
  --pad:        15px;     /* Seitenrand links/rechts */
  --gap:        20px;     /* Abstand zwischen Projekt-Kacheln */
  --radius:     8px;      /* Ecken-Rundung von Bildern & Buttons */
  --section:    clamp(80px, 12vw, 160px);  /* Abstand zwischen Sektionen */
}


/* 3. BASIS ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

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

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

main { padding: 0 var(--pad); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}


/* 4. HEADER / NAVIGATION -------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px var(--pad);
  pointer-events: none;            /* Klicks gehen durch die leere Fläche … */
  transition: transform .35s ease;
}
/* Beim Runterscrollen ausblenden, beim Hochscrollen wieder zeigen (main.js) */
.site-header.is-hidden { transform: translateY(-100%); }
.site-header > * { pointer-events: auto; }  /* … aber nicht durch die Buttons */

.nav { display: flex; gap: 10px; }

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--c-accent); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 27px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--c-pill);
  color: var(--c-accent);
  font-size: var(--fs-small);
  line-height: 1;
  transition: background .2s, color .2s, transform .2s;
}
.pill:hover               { background: var(--c-lime); color: var(--c-text); }
.pill.is-active           { background: var(--c-lime); color: var(--c-text); }
.pill--dark               { background: var(--c-text); color: var(--c-white); }
.pill--dark:hover         { background: var(--c-accent); color: var(--c-white); }
.pill--lime               { background: var(--c-lime); color: var(--c-text); }
.pill--lime:hover         { background: var(--c-text); color: var(--c-white); }


/* 5. BAUSTEINE ------------------------------------------------------------ */
.section { margin-top: var(--section); }

.label {
  display: block;
  margin: 0 0 20px;
  color: var(--c-accent);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1;
}

.text-l {
  margin: 0;
  font-size: var(--fs-l);
  line-height: 1;
  letter-spacing: -0.01em;
}

.link-underline {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* 6. STARTSEITE ----------------------------------------------------------- */

/* Intro */
.intro { padding-top: 70px; }
.intro__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1235 / 533;
  object-fit: cover;
  border-radius: var(--radius);
}
.intro__text {
  margin-top: 15px;
  font-size: var(--fs-intro);
  line-height: 1;
}

/* Projekte-Raster
   Jede Kachel bekommt eine Breite (w1 = 1 Spalte, w2 = 2 Spalten, w4 = volle
   Breite) und optional "tall" (doppelte Höhe). Siehe Anleitung in index.html. */
.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: calc((100vw - 2 * var(--pad) - 3 * var(--gap)) / 4 * 1.32 + 23px);  /* +23px = Bildunterschrift */
  row-gap: 36px;
  gap: var(--gap);
}

.projects { counter-reset: projekt; }

/* Eine Kachel = Bildfläche (card__media) + Bildunterschrift (card__caption) */
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  grid-column: span 1;
  counter-increment: projekt;          /* Nummerierung läuft automatisch */
}
.card.w2   { grid-column: span 2; }
.card.w4   { grid-column: span 4; }
.card.tall { grid-row: span 2; }

.card__media {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-pill);
}
.card__media img,
.card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.card__media video { opacity: 0; }
.card:hover .card__media video { opacity: 1; }
.card:hover .card__media img   { transform: scale(1.035); }

/* Bildunterschrift: Nummer · Titel ……… Kategorie */
.card__caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: var(--fs-small);
  line-height: 1;
  white-space: nowrap;
}
.card__caption::before {
  content: counter(projekt, decimal-leading-zero);
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
}
.card__title {
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--f-text);
  font-weight: 400;
  font-size: var(--fs-card);
}
.card__cat {
  margin-left: auto;
  color: var(--c-accent);
}
/* Externe Links bekommen einen kleinen Pfeil */
a.card[target="_blank"] .card__cat::after { content: " ↗"; }

/* Eigener Cursor über Projekten (main.js) – nur bei Maus */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: var(--c-lime);
  color: var(--c-text);
  font-size: var(--fs-small);
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  transition: opacity .2s, transform .2s;
}
.cursor.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Sanftes Einblenden beim Scrollen (main.js setzt .js auf <html>) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Kategorien: "Das Alles" */
.categories {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
}
.categories__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--c-accent);
  font-size: var(--fs-xl);
  line-height: 1.05;
}
.categories__list li {
  width: fit-content;
  transition: color .25s, transform .4s cubic-bezier(.2,.7,.2,1);
}
.categories__list li:hover { color: var(--c-text); transform: translateX(.25em); }

/* Zitat + Porträt */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.about__quote {
  margin: 0;
  font-size: var(--fs-quote);
  line-height: 1.1;
}
.about__image {
  width: 100%;
  aspect-ratio: 610 / 777;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Kontakt */
.contact .text-l a { transition: color .2s; }
.contact .text-l a:hover { color: var(--c-accent); }


/* 7. COLLAGEN-SEITE ------------------------------------------------------- */
/* Hero-Collage: volle Breite, Höhe fest (wie vorher, ca. 610 px) – wird oben/unten beschnitten */
.collage-hero { padding-top: 70px; }
.collage-hero img {
  width: 100%;
  height: min(611px, 60vw);
  object-fit: cover;
  border-radius: var(--radius);
}

.collage-intro { display: grid; gap: 20px; }
.collage-intro__head { display: flex; align-items: center; gap: 14px; }
.collage-intro__head .label { margin: 0; }
/* Einleitungstext im Stil des Zitats auf der Startseite („Kid, I’ve flown …“) */
.collage-intro__text {
  margin: 0;
  font-size: var(--fs-quote);
  line-height: 1.1;
}
.collage-intro__cta { margin: 10px 0 0; }

/* Masonry: Bilder fließen in 3 Spalten */
.collage-grid {
  columns: 3;
  column-gap: var(--gap);
}
.collage-grid img {
  width: 100%;
  margin-bottom: var(--gap);
  break-inside: avoid;
}



/* Lightbox (Collagen) ------------------------------------------------------ */
.collage-grid img { cursor: zoom-in; transition: opacity .25s; }
.collage-grid img:hover { opacity: .88; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--c-bg);
  color: var(--c-text);
}
.lightbox::backdrop { background: var(--c-bg); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; animation: lb-in .3s ease; }
@keyframes lb-in { from { opacity: 0; } }

.lightbox__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px var(--pad);
}
.lightbox__count { color: var(--c-accent); font-variant-numeric: tabular-nums; }

.lightbox__stage {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(var(--pad) + 70px) var(--pad);
}
.lightbox__stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 80px);
  object-fit: contain;
  transition: opacity .2s;
}
.lightbox__stage img.is-loading { opacity: 0; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-pill);
  color: var(--c-accent);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lightbox__nav:hover,
.lightbox__nav:focus-visible { background: var(--c-lime); color: var(--c-text); }
.lightbox__nav--prev { left: var(--pad); }
.lightbox__nav--next { right: var(--pad); }
.lightbox button.pill { border: 0; font: inherit; font-size: var(--fs-small); cursor: pointer; }

@media (max-width: 600px) {
  .lightbox__stage { padding: 0 var(--pad) 90px; }
  .lightbox__stage img { max-height: calc(100dvh - 170px); }
  .lightbox__nav { top: auto; bottom: 20px; transform: none; }
}

/* 8. IMPRESSUM ------------------------------------------------------------ */
.legal { padding-top: 110px; max-width: 760px; }
.legal h1 { font-size: var(--fs-l); line-height: 1; margin: 0 0 40px; }
.legal h2 { font-size: 22px; margin: 48px 0 12px; }
.legal h3 { font-size: 15px; margin: 28px 0 8px; }
.legal p, .legal li {
  font-family: var(--f-text);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
}
.legal a { color: var(--c-accent); text-decoration: underline; }



/* 8b. PROJEKT-DETAILSEITE -------------------------------------------------- */
.project-head {
  padding-top: 110px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  align-items: end;
}
.project-head h1 {
  margin: 0;
  font-size: var(--fs-xl);
  line-height: .95;
  letter-spacing: -0.015em;
}

/* Fakten-Tabelle: Kunde, Agentur, Rolle … */
.facts { margin: 0; }
.facts div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--c-text);
  font-size: var(--fs-small);
  line-height: 1.2;
}
.facts div:last-child { border-bottom: 1px solid var(--c-text); }
.facts dt { color: var(--c-accent); }
.facts dd { margin: 0; }

.gallery video { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; }
.project-covers { margin: 70px 0 0; }
.project-covers img { width: 100%; height: auto; }

.gallery .bleed { margin: 0 calc(-1 * var(--pad)); }
.gallery .bleed img { border-radius: 0; }
.gallery .bleed figcaption { padding: 0 var(--pad); }

.project-lead {
  max-width: 1000px;
  margin: 60px 0 0;
  font-size: var(--fs-quote);
  line-height: 1.1;
}

/* Bildstrecke: volle Breite (.full) oder zwei nebeneinander (.pair) */
.gallery { display: grid; gap: var(--gap); margin-top: var(--section); }
.gallery figure { margin: 0; }
.gallery img, .gallery video {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.gallery .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
.gallery figcaption {
  margin-top: 8px;
  color: var(--c-accent);
  font-size: var(--fs-small);
}

/* Textblock zweispaltig: Label links, Text rechts */
.project-text {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
}
.project-text p {
  max-width: 720px;
  margin: 0 0 1em;
  font-family: var(--f-text);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
}

/* Nächstes Projekt */
.next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: end;
  padding-top: 20px;
  border-top: 1px solid var(--c-text);
}
.next__title {
  font-size: var(--fs-xl);
  line-height: .95;
  transition: color .25s;
}
.next:hover .next__title { color: var(--c-accent); }
.next img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.placeholder { background: var(--c-lime); }   /* markiert Texte, die du noch ersetzen musst */

/* 9. FOOTER --------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section);
  padding: 0 var(--pad);
  overflow: hidden;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.footer__cols ul { margin: 22px 0 0; padding: 0; list-style: none; }   /* bündig unter dem Label */
.footer__cols li + li { margin-top: 24px; }
.footer__cols a { transition: color .2s; }
.footer__cols a:hover { color: var(--c-accent); }

.footer__logo {
  margin: 60px 0 0;
  font-size: var(--fs-logo);
  line-height: .78;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transform: translateY(4%);   /* Schriftzug schneidet unten leicht an */
}


/* 10. RESPONSIVE ---------------------------------------------------------- */

/* Tablet */
@media (max-width: 900px) {
  :root { --gap: 14px; }
  .projects {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: calc((100vw - 2 * var(--pad) - var(--gap)) / 2 * 1.25 + 23px);
  }
  .card.w4 { grid-column: span 2; }
  .categories, .about { grid-template-columns: 1fr; }
  .collage-grid { columns: 2; }
  .project-head, .project-text, .next { grid-template-columns: 1fr; }
}

/* Handy */
@media (max-width: 600px) {
  .nav { gap: 6px; }
  .pill { min-width: 0; padding: 0 10px; }
  .projects {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .card, .card.w2, .card.w4 { grid-column: span 1; }
  .card.tall { grid-row: span 1; }
  .card__media { flex: none; aspect-ratio: 4 / 5; }
  .card.w4 .card__media { aspect-ratio: 4 / 3; }
  .intro__image { aspect-ratio: 4 / 3; }
  .logo { display: none; }
  .collage-grid { columns: 1; }
  .collage-hero img { height: auto; }
  .gallery .pair { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}


@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
