/* =========================================================================
   Zum Kuckuck — statischer Nachbau
   Design-Tokens forensisch aus dem Original gemessen (Playwright):
   BG #ededeb · Ink #333 · monochrom (KEIN Grün) · Inter + Inconsolata.
   Nav/H2 40px · Intro 40px mono · Projekttitel 80px · Body 24px mono.
   ========================================================================= */

/* ---- Fonts (lokal selbst-gehostet) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-semibold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/inconsolata.woff2') format('woff2');
}

:root {
  /* Farben (alle aus Live-Analyse des Originals — bewusst monochrom, KEIN Grün) */
  --bg: #ededeb;            /* rgb(237,237,235) */
  --surface: #ffffff;
  --ink: #333333;           /* rgb(51,51,51) */
  --ink-soft: rgba(51, 51, 51, 0.6);
  --ink-faint: rgba(51, 51, 51, 0.4);
  --line: rgba(51, 51, 51, 0.16);
  --line-soft: rgba(51, 51, 51, 0.08);
  --on-media: #ffffff;      /* weiße Schrift auf Bildkacheln */

  /* Schrift */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Inconsolata', ui-monospace, 'SFMono-Regular', 'Menlo', monospace;

  /* Typo-Skala — Zielwerte @1440px aus dem Original gemessen.
     Nav/H2 = 40px, Intro = 40px mono, Projekttitel = 80px, Body = 24px mono. */
  --text-nav:    clamp(24px, 2.8vw, 40px);
  --text-intro:  clamp(26px, 3.0vw, 40px);
  --text-h2:     clamp(28px, 3.0vw, 40px);
  --text-title:  clamp(42px, 6.4vw, 80px);
  --text-cardtitle: clamp(22px, 2.1vw, 30px);
  --text-cardeye:   clamp(14px, 1.15vw, 16px);
  --text-body:   clamp(18px, 1.7vw, 24px);
  --text-meta:   14px;
  --text-ref:    clamp(15px, 1.35vw, 18px);
  --text-foot:   14px;

  /* Spacing (8pt) */
  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;
  --s-24: 96px; --s-32: 128px;

  --radius: 0px;             /* keine runden Ecken (Wunsch) */
  --radius-s: 0px;

  --maxw: 1440px;            /* + 80px Rand = 1280px Inhalt wie im Original */
  --pad: clamp(20px, 5.6vw, 80px);
  --textcol: 960px;          /* zentrierter Inhaltsblock (Text + Bilder) */
  --gap: clamp(16px, 2.8vw, 40px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-hover: cubic-bezier(0.4, 0, 0.2, 1);   /* sanft & gleichmäßig, kein schneller Antritt */
  --dur: 280ms;
  --dur-hover: 720ms;                            /* bewusst langsamer, entspannter Kachel-Hover */
  --dur-reveal: 900ms;                           /* ruhiges, langsames Einblenden beim Scrollen */
  --dur-cta: 540ms;                              /* langsameres Einfärben der Buttons (z. B. „Alle Projekte") */
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  /* --page-bg wird pro Projektseite inline gesetzt (Sonderfarbe aus content.json);
     ohne Override gilt das Standardgrau. */
  background: var(--page-bg, var(--bg));
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Pixel-Icons (Pfeile, Logo) — erben Farbe via currentColor */
.icon { display: inline-flex; line-height: 0; }
.icon svg {
  width: 1em; height: auto; fill: currentColor;
  image-rendering: pixelated;
}

/* =======================================================================
   Navigation
   ======================================================================= */
.nav {
  position: relative;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  min-height: 88px;
  padding-block: clamp(24px, 2.8vw, 40px) clamp(18px, 2vw, 28px);
}
.nav-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-nav);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.nav-logo--link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 5px;
  text-decoration-skip-ink: none;
  text-underline-offset: 7px;
  transition: text-decoration-color var(--dur) var(--ease);
}
.nav-logo--link:hover { text-decoration-color: var(--ink); }
.nav-logo-mark { display: none; }
.nav-logo-mark svg { display: block; width: 36px; height: 32px; fill: var(--ink); }
.nav-links {
  display: flex;
  gap: clamp(16px, 1.9vw, 28px);
}
.nav-links-home { display: none; }
.nav-links a {
  font-size: var(--text-nav);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 5px;
  text-decoration-skip-ink: none;
  text-underline-offset: 7px;
  transition: text-decoration-color var(--dur) var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { text-decoration-color: var(--ink); }

.nav-legal { display: none; }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span {
  display: block; width: 26px; height: 3px; background: var(--ink);
  margin: 5px 0; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav.open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-inner { min-height: 64px; padding-block: 12px; }
  .nav-logo-text { display: none; }
  .nav-logo-mark { display: block; }
  .nav-burger { display: block; position: relative; z-index: 1002; }
  .nav.open .nav-burger { position: fixed; top: 12px; right: var(--pad); }
  .nav.open .nav-burger span { background: #f5f5f3; }
  .nav.open .nav-logo { position: relative; z-index: 1002; }
  .nav.open .nav-logo-mark svg { fill: #f5f5f3; }
  html.nav-locked, html.nav-locked body { overflow: hidden; }
  .nav-links {
    position: fixed; inset: 0; height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: flex-start; gap: 0;
    background: #1b1b1a;
    padding: calc(64px + var(--s-10)) var(--pad) var(--s-10);
    z-index: 1001;
    opacity: 0; pointer-events: none;
    transition: opacity var(--dur) var(--ease);
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links-home { display: block; }
  .nav-links a {
    padding: clamp(8px, 1.4vh, 14px) 0;
    font-size: clamp(30px, 9vw, 40px);
    font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
    color: #f5f5f3;
    text-decoration: none;
  }
  .nav-links a[aria-current="page"] {
    color: #f5f5f3;
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-decoration-skip-ink: none;
    text-underline-offset: 6px;
  }
  .nav-legal {
    display: flex;
    gap: clamp(20px, 6vw, 32px);
    margin-top: auto;
    padding-top: var(--s-10);
  }
  .nav-legal a {
    padding: 6px 0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: #f5f5f3;
    opacity: 0.65;
    text-decoration: none;
  }
}

/* =======================================================================
   Hero / Intro
   ======================================================================= */
.hero { padding-block: clamp(48px, 9vw, 128px) clamp(40px, 6vw, 80px); }
.hero-canvas { position: absolute; z-index: 2; pointer-events: none; }
.hero.cursor-fx { cursor: none; }
.hero-intro {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--text-intro);
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: none;          /* volle Breite wie das Grid darunter */
}
.page-intro { max-width: none; }

/* =======================================================================
   Section headings
   ======================================================================= */
.section { padding-block: clamp(40px, 6vw, 80px); }
.section-head {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-h2);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--s-10);
}

/* =======================================================================
   Projektgrid (Home + Projects)
   ======================================================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
}
.project-grid.featured .card:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* Karte = quadratisches Bild. Default: dunkler Mono-Titel direkt auf dem Bild,
   kein Overlay. Hover: grauer Überzug + großer weißer Titel + Pfeil, leichter Zoom. */
.card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e2e2df;
  isolation: isolate;
  aspect-ratio: 1 / 1;
}
.card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform var(--dur-hover) var(--ease-hover);
}
/* Hover: leichtes Heraus-Zoomen (zeigt mehr vom Bild) wie im Original */
.card:hover .card-media img,
.card:focus-visible .card-media img { transform: scale(1); }

/* Grauer Überzug, blendet bei Hover ein (»ausgrauen«) */
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(51, 51, 51, 0.55);
  opacity: 0;
  transition: opacity var(--dur-hover) var(--ease-hover);
}
.card:hover .card-media::after,
.card:focus-visible .card-media::after { opacity: 1; }

/* Pfeil oben rechts, erscheint bei Hover (wie Original) */
.card-arrow {
  position: absolute;
  top: clamp(14px, 1.7vw, 24px);
  right: clamp(14px, 1.7vw, 24px);
  z-index: 3;
  color: var(--on-media);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity var(--dur-hover) var(--ease-hover), transform var(--dur-hover) var(--ease-hover);
}
.card-arrow svg { width: clamp(22px, 2vw, 28px); }
.card:hover .card-arrow,
.card:focus-visible .card-arrow { opacity: 1; transform: none; }

/* Caption unten links. Zwei Zustände wie im Original:
   Ruhe = nur der einzeilige Eyebrow (Kunde/Ort), Hover = großer zweizeiliger Titel.
   Crossfade rein über Opacity/Transform — der Titel wird IMMER in Zielgröße
   gerendert (absolut, bodenbündig), daher KEIN font-size-Reflow, kein Ruckeln. */
/* Eyebrow und Titel teilen sich DIESELBE Gitterzelle (beide unten verankert),
   damit sie exakt dieselbe Grundlinie/Polsterung haben und beim Crossfade nicht
   springen. Keine absolute Positionierung der Kinder → kein Padding-Versatz. */
.card-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(16px, 1.7vw, 24px);
  display: grid;
  align-items: end;
}

/* Eyebrow: im Ruhezustand sichtbar, beim Hover sanft ausblenden. */
.card-eyebrow {
  grid-area: 1 / 1;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-cardeye);
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--on-media);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.34);
  transition: opacity var(--dur-hover) var(--ease-hover), color var(--dur-hover) var(--ease-hover);
}
.card:hover .card-eyebrow,
.card:focus-visible .card-eyebrow { opacity: 0; }

/* Titel: großer, fetter Sans-Titel. Ruhe = verborgen (opacity 0, leicht abgesenkt),
   Hover = steigt sanft ein. Liegt in derselben Gitterzelle wie der Eyebrow und ist
   unten verankert — überlagert also exakt dieselbe Kante, ohne Layout-Versatz. */
.card-title {
  grid-area: 1 / 1;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-cardtitle);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--on-media);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-hover) var(--ease-hover), transform var(--dur-hover) var(--ease-hover);
}
.card:hover .card-title,
.card:focus-visible .card-title { opacity: 1; transform: translateY(0); }

/* Helle Kachel-Thumbnails (per JS erkannt): dunkler Eyebrow für Kontrast im Ruhezustand.
   Der Titel ist nur beim Hover sichtbar (über dem dunklen Überzug) → bleibt immer weiß. */
.card--lite .card-eyebrow {
  color: #15140f;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.55);
}

/* Mobil bleibt es 2-spaltig (nebeneinander), nur das Featured-Bild ist breit. */
@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 2.4vw, 16px); }
  .project-grid.featured .card:nth-child(1) { grid-column: span 2; grid-row: auto; }

  /* Text-Logik identisch zum Desktop: Ruhe = nur Eyebrow (erste Zeile),
     Hover/Fokus = Crossfade zum Titel (zweite Zeile). Kein dauerhaftes
     Zwei-Zeilen-Layout — die Crossfade-Regeln oben gelten auch mobil. */
}

/* Button "Alle Projekte" — volle Breite, Outline, Hover invertiert hell -> dunkel */
.cta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%;
  margin-top: var(--s-12);
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid rgba(51, 51, 51, 0.2);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans); font-weight: 600; font-size: var(--text-cardtitle);
  letter-spacing: -0.01em;
  transition: background var(--dur-cta) var(--ease-hover), color var(--dur-cta) var(--ease-hover), border-color var(--dur-cta) var(--ease-hover);
}
.cta .icon svg { width: clamp(20px, 1.6vw, 24px); transition: transform var(--dur-cta) var(--ease-hover); }
.cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cta:hover .icon svg { transform: translateX(5px); }

/* =======================================================================
   Referenzen
   ======================================================================= */
.refs {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 1280px;
}
.ref-letter { font-weight: 800; color: var(--ink); }
.refs .sep { color: var(--ink-faint); }
/* Abstand zwischen Buchstaben-Gruppen als End-Margin: bricht eine Gruppe auf
   eine neue Zeile um, entsteht KEINE führende Einrückung (anders als ein
   eigener Spacer-Span, der am Zeilenanfang das erste Wort einrücken würde). */
.ref-group { margin-inline-end: 1.4em; }

/* =======================================================================
   Projekt-Detailseite
   ======================================================================= */
/* Projektseite: zentrierte Textspalte (960) im 1280-Raster, Bilder volle Breite.
   Alle Textelemente werden auf var(--textcol) begrenzt und mittig gesetzt. */
.detail-head { padding-block: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 40px); }
.detail-head > *, .detail-text, .detail-credit {
  max-width: var(--textcol); margin-inline: auto;
}
.back {
  font-family: var(--font-sans); font-weight: 600; font-size: var(--text-body);
  color: var(--ink); display: inline-flex; gap: 12px; align-items: center;
  margin-bottom: clamp(24px, 3vw, 40px);
  transition: gap var(--dur) var(--ease);
}
.back .icon svg { width: clamp(18px, 1.5vw, 22px); }
.back:hover { gap: 18px; }

.detail-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-title);
  letter-spacing: -0.03em;
  line-height: 1.0;
}
/* Kunde/Ort = mono 24px; Leistungen = mono 14px Zeile, gedämpft. */
.detail-client {
  font-family: var(--font-mono); font-weight: 300;
  font-size: var(--text-body); line-height: 1.5;
  color: var(--ink); margin-top: clamp(18px, 2vw, 24px);
}
/* Leistungen = abgerundete Pillen mit feiner Kontur (wie Original) */
.detail-services {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: clamp(16px, 2vw, 24px);
}
.detail-services span {
  font-family: var(--font-mono); font-weight: 400;
  font-size: var(--text-meta); letter-spacing: 0.01em;
  line-height: 1.4; color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 2px 12px;
}
.detail-link {
  display: block; margin-top: clamp(20px, 2.2vw, 28px);
  font-family: var(--font-mono); font-weight: 400; font-size: var(--text-meta);
  color: var(--ink);
}
.detail-link span {
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: text-decoration-color var(--dur) var(--ease);
}
.detail-link:hover span { text-decoration-color: var(--ink); }

.detail-body { padding-block: clamp(32px, 5vw, 64px); }
/* Bilder/Videos in größerem Container als der Text (volle Rasterbreite ~1280),
   nicht randabfallend bis zum Viewport-Rand – wie auf der Büro-Seite. */
.detail-figure {
  width: 100%; max-width: 100%;
  margin: clamp(40px, 5.5vw, 88px) auto;
  overflow: hidden;
}
.detail-figure img, .detail-figure video { display: block; width: 100%; height: auto; }
/* Mehrere Handy-Mockups hintereinander: horizontales Band in EINER Reihe,
   wischbar/scrollbar – kein Zeilenumbruch. --cell = native Bildbreite, damit
   nie hochskaliert wird. */
.mockup-band {
  display: flex;
  gap: clamp(16px, 2.2vw, 40px);
  margin: clamp(40px, 5.5vw, 88px) auto;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.mockup-band::-webkit-scrollbar { display: none; }
.mockup-band .mockup-item {
  margin: 0;
  flex: 0 0 auto;
  width: var(--cell, 375px);
  max-width: 78vw;
  scroll-snap-align: center;
}
.mockup-band .mockup-item img { display: block; width: 100%; height: auto; }
.detail-text {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 auto clamp(32px, 5vw, 64px);
}
.detail-text p + p { margin-top: 1.4em; }
.detail-credit { font-family: var(--font-mono); font-size: var(--text-meta); color: var(--ink-faint); margin-top: var(--s-8); }

/* generischer Textblock (Bureau, Contact, Jobs, Legal) */
/* Textseiten: zentrierter Inhaltsblock, Text linksbündig darin. */
.page-narrow > * { max-width: var(--textcol); margin-inline: auto; }
.prose {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--ink);
  max-width: var(--textcol);
  margin-inline: auto;
}
.prose figure { margin: clamp(20px, 3vw, 40px) 0; overflow: hidden; background: #e2e2df; }
.prose figure img { width: 100%; height: auto; display: block; }
.prose h2 { font-family: var(--font-sans); font-weight: 600; font-size: var(--text-h2); letter-spacing: -0.02em; margin: var(--s-12) 0 var(--s-4); }
.prose h3 { font-family: var(--font-sans); font-weight: 600; font-size: 20px; margin: var(--s-8) 0 var(--s-3); }
.prose p + p { margin-top: 1.1em; }
.prose strong, .prose b { font-weight: 700; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose-list { margin: 1.1em 0; padding-left: 1.3em; list-style: disc; }
.prose-list li { margin-top: 0.25em; }
.prose h3 + p { margin-top: var(--s-3); }

/* =======================================================================
   Block-getriebene Textseiten (Büro, Kontakt, Projektarchiv)
   Text/Überschriften zentriert auf 960, Bilder volle Rasterbreite (1280).
   ======================================================================= */
.prose-flow > * { max-width: var(--textcol); margin-inline: auto; }
.prose-flow > p {
  font-family: var(--font-mono); font-weight: 300;
  font-size: var(--text-body); line-height: 1.5; color: var(--ink);
  margin-top: clamp(16px, 1.8vw, 24px);
}
.prose-h1 {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 40px; letter-spacing: -0.025em; line-height: 1.08;
  margin-top: clamp(48px, 6vw, 88px);
}
.prose-flow a {
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color var(--dur) var(--ease);
}
.prose-flow a:hover { text-decoration-color: var(--ink); }
.prose-h2 {
  font-family: var(--font-sans); font-weight: 600;
  font-size: var(--text-h2); letter-spacing: -0.02em; line-height: 1.1;
  margin-top: clamp(56px, 7vw, 104px);
}
.prose-flow > .prose-h1 + *,
.prose-flow > .prose-h2 + * { margin-top: clamp(20px, 2.2vw, 32px); }
.prose-figure {
  max-width: 100%; margin: clamp(40px, 5.5vw, 88px) auto;
  overflow: hidden;
}
.prose-figure img, .prose-figure video { display: block; width: 100%; height: auto; }
/* randabfallend bis an die 1440er-Wrapper-Kante (über die --pad-Einrückung hinaus) */
.prose-flow > .prose-figure--bleed {
  width: auto; max-width: none;
  margin-inline: calc(-1 * var(--pad));
}

/* Vogel-Piktogramme als eine 3-spaltige Gruppe */
.pictos {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px); align-items: end;
  margin-top: clamp(28px, 4vw, 56px);
}
.pictos .picto { margin: 0; text-align: center; }
.pictos .picto img { width: clamp(96px, 12vw, 151px); height: auto; margin: 0 auto; }
.pictos .picto figcaption {
  font-family: var(--font-mono); font-weight: 400; font-size: 14px;
  color: var(--ink); margin-top: 12px;
}

/* Projektarchiv-Liste — linksbündig am Raster, echte Bullet-Liste */
.archive { margin-top: clamp(48px, 8vw, 112px); }
.archive-intro {
  font-family: var(--font-mono); font-weight: 300;
  font-size: var(--text-body); line-height: 1.5; color: var(--ink);
  max-width: var(--textcol);
  margin-top: clamp(16px, 1.8vw, 24px);
}
.archive-list {
  margin-top: clamp(28px, 3.5vw, 48px);
  columns: 2; column-gap: clamp(32px, 5vw, 80px);
}
.archive-list li {
  position: relative;
  break-inside: avoid;
  font-family: var(--font-sans); font-weight: 600;
  font-size: var(--text-body); line-height: 1.4; color: var(--ink);
  padding: clamp(4px, 0.6vw, 8px) 0 clamp(4px, 0.6vw, 8px) 1.4em;
}
.archive-list li::before {
  content: "•"; position: absolute; left: 0.1em; color: var(--ink);
}
@media (max-width: 720px) { .archive-list { columns: 1; } }

@media (max-width: 720px) {
  .pictos { gap: 12px; }
  .pictos .picto img { width: 100%; }
}

/* =======================================================================
   Footer
   ======================================================================= */
.footer {
  margin-top: clamp(48px, 8vw, 112px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
/* Trennlinien auf Inhaltsbreite eingerückt (nicht randabfallend) */
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  border-top: 1px solid rgba(51, 51, 51, 0.2);
  padding-top: clamp(24px, 3vw, 40px);
}
.footer-logo { color: var(--ink); }
.footer-logo svg { width: clamp(34px, 3vw, 44px); }
.footer-up { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.footer-up svg { width: clamp(22px, 2vw, 28px); transform: rotate(90deg); }
.footer-brand {
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em;
  margin-top: clamp(28px, 3.5vw, 48px);
}
.footer-addr {
  font-style: normal; font-family: var(--font-mono); font-weight: 300;
  font-size: var(--text-body); color: var(--ink-soft);
  line-height: 1.5; margin-top: clamp(12px, 1.6vw, 20px);
}
.footer-addr a {
  color: var(--ink-soft); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--line);
  transition: text-decoration-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer-addr a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.footer-line {
  border-top: 1px solid rgba(51, 51, 51, 0.2);
  margin-top: clamp(40px, 6vw, 80px);
}
.footer-links {
  display: flex; gap: clamp(20px, 2.4vw, 32px);
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(15px, 1.4vw, 18px);
  padding-top: clamp(20px, 2.4vw, 32px);
}
.footer-links a { color: var(--ink); }
.footer-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* =======================================================================
   Scroll-Reveal
   ======================================================================= */
/* Progressive Enhancement: Inhalt ist standardmäßig sichtbar; nur mit JS
   wird er anfangs versteckt und beim Scrollen eingeblendet. So bleibt die
   Seite auch ohne/bei fehlerhaftem JS vollständig lesbar. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
/* Karten dezent zeilenweise versetzt einblenden (3-Spalten-Raster).
   Kleiner Drift + sanfter Stagger = ruhiges Lazy-Einblenden, kein Springen. */
.js .project-grid .card { transform: translateY(14px); }
.js .project-grid .card:nth-child(3n+2) { transition-delay: 60ms; }
.js .project-grid .card:nth-child(3n) { transition-delay: 120ms; }

/* =======================================================================
   Dark Mode (dezent, markentreu)
   ======================================================================= */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1b1a;
    --surface: #242422;
    --ink: #ececea;
    --ink-soft: #a6a6a1;
    --ink-faint: #6f6f6a;
    --line: rgba(255, 255, 255, 0.14);
    --line-soft: rgba(255, 255, 255, 0.08);
  }
  .card { background: #2b2b29; }
  /* Projekt-Sonderfarben (--page-bg) sind helle Töne fürs Light-Theme;
     im Dunkelmodus bleibt es beim dunklen Standard. */
  body { background: var(--bg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =======================================================================
   Pixel-Transition-Loader (forensisch aus Original übernommen):
   Raster aus #333-Kacheln deckt die Seite beim Laden ab und löst sich
   in zufälliger Reihenfolge auf. Kachelgröße 20vw (max 300px), wie Original.
   ======================================================================= */
#pixelTransition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}
.blocksContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 120vw;
  display: flex;
  flex-flow: row wrap;
  gap: 0;
}
.blocksContainer .block {
  width: 20vw;
  height: 20vw;
  max-width: 300px;
  max-height: 300px;
  background-color: #333;
  opacity: 0;
  border: 1px solid #333;
}

/* =======================================================================
   Leistungen-Seite
   ======================================================================= */
.leistung-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.leistung { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.leistung-num {
  display: block;
  font-family: var(--font-mono); font-weight: 700;
  font-size: var(--text-meta); letter-spacing: 0.02em;
  color: var(--ink-faint); margin-bottom: var(--s-5);
}
.leistung h3 {
  font-family: var(--font-sans); font-weight: 600;
  font-size: var(--text-cardtitle); letter-spacing: -0.01em;
  line-height: 1.15; margin-bottom: var(--s-3);
}
.leistung p {
  font-family: var(--font-mono); font-weight: 300;
  font-size: var(--text-ref); line-height: 1.5; color: var(--ink-soft);
}

/* Output-Kategorien mit Beispiel-Projekten */
.leistung-cat { margin-top: clamp(40px, 6vw, 72px); }
.leistung-cat:first-child { margin-top: 0; }
/* Kategorie-Kopf: Titel (bold) + Beschreibung fließen als EIN Absatz */
.leistung-cat-head {
  margin-bottom: var(--s-6); max-width: 78ch;
  font-family: var(--font-mono); font-weight: 300;
  font-size: clamp(14px, 1.1vw, 16px); line-height: 1.55; color: var(--ink-soft);
}
.leistung-cat-title {
  display: inline; font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -0.01em; color: var(--ink);
}
.leistung-cat-dash { color: var(--ink-faint); }

/* Kurze Crop-Balken im Dreier-Raster (statt voller Breite) */
.leistung-strips {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2);
}
.leistung-strip {
  position: relative; display: block; overflow: hidden;
  height: clamp(84px, 7vw, 104px);
}
.leistung-strip img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transition: transform var(--dur-hover) var(--ease-hover);
}
.leistung-strip:hover img,
.leistung-strip:focus-visible img { transform: scale(1.04); }
/* Lesbarkeits-Verlauf unten links für den Text */
.leistung-strip::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.18) 50%, rgba(0,0,0,0) 100%);
}
.leistung-strip-label {
  position: absolute; z-index: 1; left: clamp(12px, 1.2vw, 16px);
  bottom: clamp(10px, 1vw, 14px); right: clamp(12px, 1.2vw, 16px);
  color: var(--on-media);
  font-family: var(--font-mono); font-size: clamp(12px, 0.95vw, 13px);
  line-height: 1.3; letter-spacing: 0.01em;
  display: flex; flex-direction: column; gap: 1px;
}
.leistung-strip-label b { font-weight: 700; }
.leistung-strip-label b,
.leistung-strip-label > span {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.leistung-strip-label > span { color: rgba(255,255,255,0.72); }

@media (max-width: 760px) {
  .leistung-strips { grid-template-columns: 1fr; }
}

.leistung-tech {
  font-family: var(--font-mono); font-weight: 300;
  font-size: var(--text-body); line-height: 1.5; color: var(--ink-soft);
  max-width: 1280px;
}
.leistung-tech b { font-weight: 800; color: var(--ink); }
.leistung-tech .sep { color: var(--ink-faint); }

/* Technik-Bento: 4-Spalten-Raster, Kacheln 1/2/3 Spalten breit */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: clamp(8px, 1vw, 14px);
}
.bento {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(18px, 1.8vw, 26px);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.bento--s1 { grid-column: span 1; }
.bento--s2 { grid-column: span 2; }
.bento--s3 { grid-column: span 3; }
.bento-label {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(15px, 1.3vw, 18px); letter-spacing: -0.01em; line-height: 1.2;
}
/* Inhalte als scannbare Chips (besser lesbar als Mono-Fließtext) */
.bento-tags { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.bento-tags li {
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(12px, 0.92vw, 13.5px); line-height: 1.35;
  color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); padding: 4px 10px;
}
/* Dunkle Akzent-Kachel als Hingucker */
.bento--feature { background: var(--ink); border-color: var(--ink); }
.bento--feature .bento-label { color: #fff; }
.bento--feature .bento-tags li {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento--s2, .bento--s3 { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento, .bento--s1, .bento--s2, .bento--s3 { grid-column: 1 / -1; }
}
.leistung-awards {
  font-family: var(--font-mono); font-weight: 300;
  font-size: var(--text-intro); line-height: 1.32; letter-spacing: -0.01em;
  color: var(--ink); max-width: 1280px;
}

@media (max-width: 760px) {
  .leistung-grid { grid-template-columns: 1fr; gap: var(--s-8); }
}
