/* Albrecht&Lewark – Variante B
   Layout: Vollbilder von Rand zu Rand, zentrierte Typografie, Kopfzeile mit Menü links /
   Schriftzug mittig / Kontakt rechts; Projektseite als Folge bildschirmfüllender Bilder, Beschreibung als eigene Fläche. */

@font-face { font-family: "Merriweather"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/merriweather-latin-400-normal.woff2") format("woff2"); }

:root {
  --ink: #111111;          /* Text, Linien */
  --paper: #ffffff;        /* Grund */
  --stone: #eeeeec;        /* Bildhintergrund im Raster */
  --line: #d9d9d6;         /* Trennlinien */
  --muted: #6b6b68;        /* Nebentexte */
  --red: #c4161c;          /* Raute */
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Merriweather", Georgia, serif;
  --head: 72px;
  --side: 32px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.link-u { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid currentColor; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--head);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--side); color: var(--ink); background: var(--paper);
  transition: background-color .25s, color .25s;
}
.site-header.is-over { background: transparent; color: #fff; }
/* über dem durchlaufenden Projekttext: abgedunkelt und unscharf, damit sich Text und Kopfzeile nicht überlagern */
.site-header.is-dim { background: rgba(20,20,20,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; justify-self: start; font-size: 14px; }
.menu-btn svg { width: 16px; height: 10px; }
.wordmark { font-family: var(--sans); font-size: 19px; font-weight: 400; letter-spacing: -.005em; white-space: nowrap; }
.head-right { justify-self: end; font-size: 14px; }

/* ---------- Menü (Schublade von links) ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(17,17,17,.35); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; width: min(420px, 100%);
  background: var(--paper); color: var(--ink); padding: 26px var(--side) 40px;
  transform: translateX(-100%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  display: flex; flex-direction: column; gap: 44px; overflow-y: auto; }
body.menu-open .drawer { transform: none; }
body.menu-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer-close { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; align-self: flex-start; }
.drawer nav { display: flex; flex-direction: column; gap: 14px; font-size: 26px; letter-spacing: -.01em; }
.drawer nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.drawer .small { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13px; margin-top: auto; }

/* ---------- Startseite: Bühne ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: #000; color: #fff; overflow: hidden; cursor: e-resize; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.js .hero:not(.is-ready) .slide { opacity: 0; transition: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; background: linear-gradient(to bottom, rgba(0,0,0,.28), transparent); pointer-events: none; z-index: 1; }
.slide::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(0,0,0,.45), transparent); pointer-events: none; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 92px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 0 var(--side); cursor: default; }
.hero-text h2 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.hero-text .link-u { margin-top: 6px; }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 18px; cursor: default; }
.bars { display: flex; gap: 6px; }
.bar { width: 44px; padding: 10px 0; cursor: pointer; }
.bar .track { display: block; height: 2px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; transition: background-color .2s; }
.bar:hover .track { background: rgba(255,255,255,.7); }
.bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.bar.is-done i { transform: scaleX(1); }
.bar.is-active i { animation: fill var(--dur, 6s) linear forwards; }
.hero.is-paused .bar.is-active i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.pause { position: absolute; right: var(--side); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Abschnitt mit Reitern ---------- */
/* Titelbild bleibt stehen, „Projekte“ mit den Reitern läuft darüber; danach folgt die Übersicht */
.h-stick { position: relative; }
.h-stick > .hero { position: sticky; top: 0; z-index: 0; }
.intro { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  text-align: center; padding: var(--head) var(--side) 48px; color: #fff;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,.5) 45vh, rgba(0,0,0,.5) 100%);
  text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.intro h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); font-weight: 500; letter-spacing: -.01em; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.tab { font-size: 16px; padding-bottom: 6px; border-bottom: 1px solid transparent; color: rgba(255,255,255,.7); }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: #fff; font-weight: 500; }
.hero-text, .hero-ctrl { transition: opacity .1s linear; }

.tiles { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 2px; }
.tiles[hidden] { display: none; }
.tile { flex: 0 0 calc((100% - (var(--cols) - 1) * 2px) / var(--cols)); display: block; }
.tile figure { position: relative; }
.tile .ph { aspect-ratio: 1 / 1; background: #222; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .35s ease; }
/* Projekttitel erscheint, wenn die Kachel die Bildschirmmitte erreicht oder die Maus darüber ist */
.tile figcaption { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 16px; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.tile figcaption span { text-align: center; color: #fff;
  font-size: clamp(22px, 2.2vw, 33px); font-weight: 500; letter-spacing: -.01em; line-height: 1.15;
  text-shadow: 0 1px 14px rgba(0,0,0,.45); text-wrap: balance; }
.tile.is-center figcaption, .tile:hover figcaption, .tile:focus-visible figcaption { opacity: 1; }
.tile.is-center img, .tile:hover img, .tile:focus-visible img { filter: brightness(.7); }
.tile:hover img { transform: scale(1.03); }

/* ---------- Schwarzes Band ---------- */
.band { position: relative; margin-top: 2px; height: 88vh; min-height: 480px; background: #000; color: #fff; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
/* Slit-Scan-Animation (Günters Schopf) als Abschluss der Startseite, Klick führt ins Journal */
.band-anim { display: block; cursor: pointer; }
.band-anim img, .band-anim canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.band-anim img { opacity: 1; }
.band-text { position: absolute; left: 0; right: 0; bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 0 var(--side); }
.band-text h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); font-weight: 500; text-wrap: balance; }
.band-note { text-align: center; padding: 48px var(--side) 0; }
.band-note p { margin: 0 auto; max-width: 52ch; }

/* ---------- Fußzeile ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 48px var(--side) 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 13px; }
.site-footer h3 { margin: 0 0 14px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-mark { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 40px; color: var(--muted); font-size: 12px; }
.foot-mark .wordmark { color: var(--ink); font-size: 15px; }

/* ---------- Weiße 2-px-Fuge zwischen untereinanderliegenden Vollbildern (wie im Projektraster) ---------- */
/* Startseite: dieselbe Fuge auch links und rechts der Bilder */
.home main, .proj main { padding-inline: 2px; }
.h-stick + .tiles, .h-stick ~ .tiles { margin-top: 2px; }
.p-stick + .p-sec, .p-sec + .p-sec { margin-top: 2px; }

/* ---------- Projektseite: bildschirmfüllende Abschnitte ---------- */
/* Titelbild bleibt stehen, die Beschreibung schiebt sich darüber; danach läuft beides weg */
.p-stick { position: relative; }
.p-stick > .p-sec { position: sticky; top: 0; z-index: 0; }
.p-stick > .p-text { position: relative; z-index: 1; color: #fff;
  /* durchsichtig: oben weich auslaufende Abdunklung, damit der weiße Text lesbar bleibt */
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,.5) 45vh, rgba(0,0,0,.5) 100%);
  text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.p-stick > .p-text .p-meta, .p-stick > .p-text dt, .p-stick > .p-text .p-credits { color: #fff; }
.p-stick > .p-text dl { border-top-color: #fff; }
.p-title { transition: opacity .1s linear; }
.p-sec { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; background: #000; }
.p-sec > img { width: 100%; height: 100%; object-fit: cover; cursor: url("cursor-raute.svg") 11 11, url("cursor-raute.png") 11 11, zoom-in; }
/* Hochformatige Abbildungen wie Screenshots: ganz zeigen auf weißem Grund */
.p-sec.is-contain { background: var(--paper); }
.p-sec.is-contain::before { display: none; }
.p-sec.is-contain > img { object-fit: contain; padding: calc(var(--head) + 24px) var(--side) 48px; }
.p-sec::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; background: linear-gradient(to bottom, rgba(0,0,0,.28), transparent); pointer-events: none; }
.p-title { z-index: 2; position: absolute; left: 0; right: 0; bottom: 64px; color: #fff; text-align: center; padding: 0 var(--side); pointer-events: none; }
.p-title h1 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
.p-sec.has-title::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(0,0,0,.45), transparent); pointer-events: none; }

.p-text { min-height: 100vh; min-height: 100svh; background: var(--paper); color: var(--ink);
  padding: calc(var(--head) + 56px) var(--side) 96px;
  display: grid; grid-template-columns: minmax(0, 60ch); gap: 40px; align-content: start; }
.p-text h2 { margin: 0 0 6px; font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.p-text .p-sub { margin: 0 0 4px; }
.p-text .p-meta { margin: 0 0 32px; color: var(--muted); }
.p-text dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); max-width: 52ch; }
.p-text dt { color: var(--muted); }
.p-text dd { margin: 0; }
.p-body { max-width: 60ch; }
.p-body p { margin: 0 0 1em; }
.p-body ul { list-style: none; margin: 0 0 1em; padding: 0; }
.p-credits { color: var(--muted); }
.p-body .p-name { margin: 0 0 2px; font-weight: 500; }
.p-text a.ext { border-bottom: 1px solid currentColor; }
.p-text a.ext:hover { opacity: .7; }
.p-text .p-price { margin: 24px 0 0; font-weight: 500; }
.p-text .p-price a { border-bottom: 1px solid currentColor; }

.more { padding-top: 88px; }
.more h2 { margin: 0 0 28px; text-align: center; font-size: 20px; font-weight: 500; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  :root { --side: 16px; --head: 60px; }
  .menu-btn span { display: none; }
  .head-right { font-size: 13px; }
  .wordmark { font-size: 16px; }
  .tile { --cols: 2 !important; }
  .tile figcaption { padding: 10px; }
  .tile figcaption span { font-size: 18px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .p-text { grid-template-columns: 1fr; gap: 32px; align-content: start; padding-top: calc(var(--head) + 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .drawer, .tile img { transition: none; }
  .bar.is-active i { animation: none; transform: scaleX(1); }
}

/* ---------- Projektseite: Klick zeigt das Bild unbeschnitten ---------- */
.p-view { position: fixed; top: var(--head); left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--paper); padding: 24px var(--side); cursor: url("cursor-raute.svg") 11 11, url("cursor-raute.png") 11 11, zoom-out;
  opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.p-view img { width: 100%; height: 100%; object-fit: contain; }
body.is-viewing .p-view { opacity: 1; pointer-events: auto; }
body.is-viewing .site-header { background: var(--paper); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .p-view { transition: none; } }

/* ---------- Übersichten, Journal, Rechtliches ---------- */
.more.cat { padding-top: 2px; }
.j-note { padding-bottom: 48px; }
.j-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.j-grid figure { margin: 0; aspect-ratio: 2 / 3; overflow: hidden; background: #222; }
.j-grid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.j-grid img { width: 100%; height: 100%; object-fit: cover; cursor: url("cursor-raute.svg") 11 11, url("cursor-raute.png") 11 11, zoom-in; }
.legal { max-width: 68ch; padding: calc(var(--head, 72px) + 56px) var(--side) 88px; }
.legal h1 { margin: 0 0 40px; font-size: clamp(32px, 4vw, 56px); font-weight: 500; letter-spacing: -.01em; }
.legal h2 { margin: 32px 0 8px; font-size: 16px; font-weight: 500; }
.legal p { margin: 0 0 1em; }
.legal a.ext { border-bottom: 1px solid currentColor; }
.legal-date { margin-top: 40px !important; }
@media (max-width: 900px) { .j-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Mauszeiger: rote Raute auf allen Seiten und über allen Elementen ---------- */
*, *::before, *::after { cursor: url("cursor-raute.svg") 11 11, url("cursor-raute.png") 11 11, auto !important; }
