:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --fg: #ecebe6;
  --muted: rgba(236, 235, 230, 0.6); /* halbtransparent: bleibt auf jeder Fotofarbe lesbar */
  --line: rgba(236, 235, 230, 0.12);
  --accent: #ff6a1a;
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--sans);
  background: var(--bg);
  /* Hintergrundfarbe wechselt beim Scrollen weich mit den Fotos (main.js / page.js) */
  transition: background-color 1.2s var(--ease);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
/* Eigener Zeiger nur, wenn er wirklich läuft (Maus + JavaScript) – sonst der normale */
html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor [data-lb] { cursor: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #000; }
html.lb-open, html.lb-open body { overflow: hidden; }

/* Tastatur: deutlich sichtbarer Fokus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
.skip {
  position: fixed; left: var(--gutter); top: 14px; z-index: 300; padding: 12px 18px; border-radius: 999px;
  background: var(--accent); color: #0a0a0b; font-weight: 600; font-size: 14px; transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { position: relative; z-index: 120; padding: 120px var(--gutter); font-size: 18px; max-width: 40ch; }

/* ── Canvas & grain ───────────────────────── */
#webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

/* ── Loader ───────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; grid-template-rows: 1fr auto auto auto; padding: var(--gutter);
  transition: clip-path 1.2s var(--ease), visibility 0s linear 1.2s;
  clip-path: inset(0 0 0 0);
}
#loader.done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader-name { font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.loader-name .acc { color: var(--accent); }
.loader-count { font-size: clamp(90px, 22vw, 320px); font-weight: 800; line-height: 0.8; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.loader-bar { height: 2px; background: var(--line); margin: 24px 0 12px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.loader-note { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── Cursor ───────────────────────────────── */
#cursor { position: fixed; inset: 0; pointer-events: none; z-index: 200; mix-blend-mode: difference; }
.c-dot, .c-ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.c-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.c-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255, 255, 255, 0.6);
  display: grid; place-items: center; transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background 0.3s;
}
.c-ring span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #000; opacity: 0; transition: opacity 0.2s; }
body.c-hover .c-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
body.c-view #cursor, body.c-view-el #cursor { mix-blend-mode: normal; }
body.c-view .c-dot, body.c-view-el .c-dot { opacity: 0; }
body.c-view .c-ring, body.c-view-el .c-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
body.c-view .c-ring span, body.c-view-el .c-ring span { opacity: 1; }
html:not(.has-cursor) #cursor { display: none; }
html.lb-open #cursor .c-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: none; border-color: rgba(255,255,255,.6); }
html.lb-open #cursor .c-ring span { opacity: 0; }

/* ── Nav ──────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 22px var(--gutter);
  padding-top: max(22px, env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  mix-blend-mode: difference; font-size: 13px; font-weight: 500;
  transition: transform .55s var(--ease), padding .4s var(--ease), background-color .4s;
}
/* Beim Runterscrollen verschwindet das Menü, beim Hochscrollen kommt es mit ruhigem Hintergrund zurück –
   so liegt es nie mehr über Fotos oder Texten */
.nav.nav-solid { mix-blend-mode: normal; background: rgba(10, 10, 11, 0.94); padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: 16px; }
.nav.nav-hidden { transform: translateY(-101%); }
.nav:focus-within { transform: none; }
.logo { font-weight: 800; font-size: 16px; letter-spacing: -0.02em; display: inline-block; }
.logo sup { font-size: 9px; font-weight: 500; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { position: relative; display: inline-block; }
.nav nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #3dff8b; box-shadow: 0 0 10px #3dff8b; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (max-width: 860px) { .status { display: none; } .nav nav { gap: 16px; } }
@media (max-width: 520px) { .nav nav a:nth-child(1) { display: none; } }

/* ── Shared ───────────────────────────────── */
main { position: relative; z-index: 1; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 500; }
.hero-top .eyebrow { color: var(--muted); }
.big { font-size: clamp(44px, 7.5vw, 130px); line-height: 0.92; font-weight: 600; letter-spacing: -0.045em; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Foto-Titel gleichmäßig umbrechen statt ein einzelnes Wort allein in die letzte Zeile
   (die großen Überschriften behalten ihren bewussten Umbruch, z. B. „Noah.“ allein in Zeile 2) */
.hud-title, .card-info h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Seitenwechsel: sanft überblenden statt hart umschalten (ältere Browser wechseln einfach normal) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ── Hero ─────────────────────────────────── */
#hero {
  height: 100vh; height: 100svh; padding: 90px var(--gutter) var(--gutter);
  display: flex; flex-direction: column; justify-content: space-between; pointer-events: none;
}
.hero-top { display: flex; justify-content: space-between; }
.hero-title {
  font-size: clamp(110px, 31vw, 560px); font-weight: 800; line-height: 0.78; letter-spacing: -0.075em;
  display: flex; justify-content: space-between; margin: 0 -0.03em; overflow: hidden; padding-bottom: 0.04em;
  mix-blend-mode: difference;
}
.hero-title .ch { display: inline-block; transform: translateY(105%); transition: transform 1.4s var(--ease); }
body.loaded .hero-title .ch { transform: translateY(0); }
body.loaded .hero-title .ch:nth-child(2) { transition-delay: 0.07s; }
body.loaded .hero-title .ch:nth-child(3) { transition-delay: 0.14s; }
body.loaded .hero-title .ch:nth-child(4) { transition-delay: 0.21s; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-sub { font-size: clamp(18px, 2vw, 28px); line-height: 1.15; max-width: 22ch; letter-spacing: -0.02em; }
.scroll-hint {
  pointer-events: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 22px; border: 1px solid var(--accent); border-radius: 999px;
  background: rgba(10, 10, 11, 0.78);
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.scroll-hint:hover { background: var(--accent); color: #0a0a0b; }
.scroll-hint i {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #0a0a0b;
  display: grid; place-items: center; overflow: hidden; font-style: normal; font-size: 20px; font-weight: 600;
}
.scroll-hint b { display: block; animation: arrow 1.6s var(--ease) infinite; }
@keyframes arrow { 0% { transform: translateY(-140%); } 25%, 75% { transform: none; } 100% { transform: translateY(140%); } }
/* nach ein paar Sekunden ohne Scrollen: sanft hüpfen */
body.loaded .scroll-hint { animation: nudge 2.2s 3.5s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-10px); } 45% { transform: translateY(2px); } }
body.loaded.scrolled .scroll-hint { opacity: 0; transform: translateY(20px); pointer-events: none; animation: none; transition-delay: 0s; }
.reveal-load { opacity: 0; transform: translateY(20px); transition: opacity 1s 0.5s var(--ease), transform 1s 0.5s var(--ease); }
body.loaded .reveal-load { opacity: 1; transform: none; }
.right { text-align: right; }
@media (max-width: 640px) {
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .scroll-hint { align-self: stretch; justify-content: space-between; }
}

/* ── Journey HUD ──────────────────────────── */
#journey { height: 900vh; position: relative; }
.hud {
  position: sticky; top: 0; height: 100vh; height: 100svh; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--gutter);
  opacity: 0; transition: opacity 0.6s;
}
.hud.on { opacity: 1; }
.hud-inner { position: relative; max-width: 420px; transition: margin-left 1s var(--ease); }
/* Ohne WebGL: das aktuelle Foto flach in der Mitte */
.flat { position: absolute; left: 50%; top: 38%; width: min(68vw, 860px); max-height: 48vh; object-fit: contain; transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s var(--ease); }
.flat.in { opacity: 1; }
@media (max-width: 760px) {
  /* Handy: dunkler Verlauf hinter dem Titel, damit er auch über hellen Fotos lesbar bleibt */
  .hud::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(10, 10, 11, 0.88), rgba(10, 10, 11, 0)); pointer-events: none; }
  .flat { top: 34%; width: calc(100vw - 2 * var(--gutter)); max-height: 46vh; }
}
.hud.right .hud-inner { margin-left: auto; text-align: right; }
.hud-index { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 12px; color: var(--accent); }
.hud-open { pointer-events: auto; margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--accent); background: rgba(10,10,11,.62); color: var(--fg); font: 500 14px var(--sans); transition: background .3s, color .3s; }
.hud-open i { font-style: normal; color: var(--accent); transition: color .3s; }
.hud-open:hover, .hud-open:active { background: var(--accent); color: #000; }
.hud-open:hover i, .hud-open:active i { color: #000; }
.hud-index small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.hud-title { font-size: clamp(36px, 5vw, 76px); font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; }
.hud-meta { margin-top: 12px; color: var(--muted); font-size: 14px; }
.hud-inner.swap .hud-title, .hud-inner.swap .hud-meta { animation: swap 0.9s var(--ease); }
@keyframes swap { 0% { opacity: 0; transform: translateY(30px); filter: blur(8px); } 100% { opacity: 1; transform: none; filter: none; } }
.hud-progress { position: relative; height: 2px; background: var(--line); margin-top: 28px; overflow: hidden; }
.hud-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ── Statement ────────────────────────────── */
#statement { height: 280vh; position: relative; }
.statement-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); }
.statement-text {
  font-size: clamp(32px, 5.4vw, 92px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500;
  max-width: 17ch; text-align: center;
}
.statement-text .w { opacity: 0.12; transition: opacity 0.25s linear; }
.statement-text .w.em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }

/* ── Series ───────────────────────────────── */
#work { transition: background-color 0.8s var(--ease); padding: 16vh var(--gutter) 10vh; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 10vh; flex-wrap: wrap-reverse; }
@media (max-width: 760px) { .section-head { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 20px; margin-bottom: 56px; } }
.series { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); row-gap: 12vh; }
.card { position: relative; display: block; }
.card:nth-child(4n+1) { grid-column: 1 / span 6; }
.card:nth-child(4n+2) { grid-column: 8 / span 5; margin-top: 22vh; }
.card:nth-child(4n+3) { grid-column: 2 / span 5; }
.card:nth-child(4n+4) { grid-column: 7 / span 6; margin-top: 14vh; }
.card-media {
  overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); clip-path: inset(8% 8% 8% 8%);
  /* neigt sich leicht zur Maus (Werte setzt main.js) */
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: clip-path 1.4s var(--ease), transform 0.8s var(--ease);
}
.card.in .card-media { clip-path: inset(0 0 0 0); }
.card-media img { width: 100%; height: 118%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease); }
.card.in .card-media img { transform: scale(1); }
.card:hover .card-media img { transform: scale(1.06); }
.card-info h3 { transition: color .4s; }
.card:hover .card-info h3, .card:focus-visible .card-info h3 { color: var(--accent); }
.card:focus-visible { outline-offset: 8px; }
.card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.card-info h3 { font-size: clamp(26px, 3vw, 44px); font-weight: 500; letter-spacing: -0.035em; }
.card-info p { color: var(--muted); font-size: 14px; text-align: right; }
@media (max-width: 760px) {
  .series { row-gap: 72px; }
  .card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .card-info { flex-direction: column; gap: 6px; }
  .card-info p { text-align: left; }
}

/* ── Numbers ──────────────────────────────── */
/* Ein ruhiges, etwas helleres Band – so viele Spalten, wie es Zahlen gibt */
#numbers { padding: clamp(64px, 12vh, 140px) var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
/* Zahlen-Band als kräftige orange Fläche: dunkle Schrift, die Zusätze in Weiß */
#numbers { background: var(--accent); color: #0a0a0b; }
#numbers .num span { color: #0a0a0b; }
#numbers .num b .suf { color: #fff; }
#numbers[data-n="1"] { grid-template-columns: 1fr; }
#numbers[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
#numbers[data-n="3"] { grid-template-columns: repeat(3, 1fr); }
#numbers[hidden] { display: none; }
.num { display: flex; flex-direction: column; gap: 14px; }
.num b { display: block; font-size: clamp(56px, 9vw, 150px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.num span { color: var(--fg); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.35; max-width: 18ch; }
.num b .suf { color: var(--accent); font-size: inherit; }
@media (max-width: 760px) {
  #numbers, #numbers[data-n] { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  #numbers[data-n="1"] { grid-template-columns: 1fr; }
  #numbers[data-n="3"] .num:first-child { grid-column: 1 / -1; }
  .num b { font-size: clamp(56px, 19vw, 96px); }
}

/* ── About ────────────────────────────────── */
#about { padding: 18vh var(--gutter); display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; align-items: center; }
.about-img { overflow: hidden; aspect-ratio: 3 / 4; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.about-text { display: flex; flex-direction: column; gap: 28px; }
.about-text p:not(.eyebrow) { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: rgba(236, 235, 230, 0.86); max-width: 48ch; }
.clients { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.clients li a { display: inline-flex; align-items: center; gap: 8px; background: rgba(236,235,230,.07); border-radius: 999px; padding: 11px 18px; font-size: 14px; transition: background .3s, color .3s; }
.clients li a i { font-style: normal; color: var(--accent); transition: transform .4s var(--ease), color .3s; }
.clients li a:hover, .clients li a:focus-visible { background: var(--accent); color: #000; }
.clients li a:hover i, .clients li a:focus-visible i { color: #000; transform: translate(2px, -2px); }
@media (max-width: 860px) {
  #about { grid-template-columns: 1fr; gap: 48px; padding-top: 14vh; padding-bottom: 14vh; }
  .about-img { max-height: 70vh; }
}

/* ── Contact ──────────────────────────────── */
#contact { padding: 18vh var(--gutter) 12vh; display: flex; flex-direction: column; gap: 48px; }
.contact-title { font-size: clamp(54px, 10vw, 190px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.9; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.copy-mail { background: none; border: 0; padding: 12px 4px; font-size: 15px; color: var(--muted); transition: color .3s; }
.copy-mail:hover, .copy-mail:focus-visible { color: var(--accent); }
.cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 18px; padding: 22px 34px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: clamp(16px, 1.6vw, 22px); font-weight: 500; position: relative; overflow: hidden;
  max-width: 100%;
}
.cta span { overflow: hidden; text-overflow: ellipsis; }
.cta:focus-visible::before { transform: none; }
.cta::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); border-radius: inherit; transition: transform 0.6s var(--ease); }
.cta:hover::before { transform: none; }
.cta span, .cta i { position: relative; font-style: normal; }
.cta i { transition: transform 0.6s var(--ease); }
.cta:hover i { transform: translateX(6px); }
.socials { display: flex; flex-wrap: wrap; gap: 32px; font-size: 16px; }
.socials:empty { display: none; }
.socials a { display: inline-block; border-bottom: 2px solid var(--accent); padding-bottom: 4px; transition: color .3s; }
.socials a:hover { color: var(--accent); }

/* ── Footer ───────────────────────────────── */
footer { background: var(--bg); padding-bottom: var(--gutter); overflow: hidden; }
.marquee { overflow: hidden; padding: 4vh 0 3vh; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-size: clamp(60px, 12vw, 220px); font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; padding-right: 0.3em; -webkit-text-stroke: 1px var(--fg); color: transparent; }
.marquee-track span:nth-child(even) { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); padding-bottom: env(safe-area-inset-bottom); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.foot a { transition: color .3s; }
.foot a:hover { color: var(--accent); }
.foot-links { display: flex; gap: 20px; }

/* ── Foto-Ansicht ─────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(8, 8, 9, 0.97);
  display: grid; place-items: center; padding: 84px calc(var(--gutter) + 72px) 6vh; opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease); touch-action: none; overscroll-behavior: contain;
}
#lightbox.open { opacity: 1; pointer-events: auto; }
#lightbox figure { max-width: min(1400px, 100%); display: flex; flex-direction: column; align-items: center; transform: scale(0.96); transition: transform 0.8s var(--ease); }
#lightbox.open figure { transform: none; }
.lb-frame { position: relative; display: grid; place-items: center; min-height: 30vh; min-width: min(60vw, 400px); }
.lb-frame::after {
  content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(236, 235, 230, 0.18);
  border-top-color: var(--accent); animation: spin 0.8s linear infinite; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
#lightbox.is-loading .lb-frame::after { opacity: 1; transition-delay: 0.25s; }
@keyframes spin { to { transform: rotate(360deg); } }
#lightbox img {
  max-height: 76vh; max-height: 76svh; width: auto; margin: 0 auto; user-select: none; -webkit-user-drag: none;
  opacity: 0; transform: translateX(calc(var(--dir, 0) * 28px)); transition: opacity 0.45s var(--ease), transform 0.7s var(--ease);
}
#lightbox img.in { opacity: 1; transform: none; }
#lightbox figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; width: 100%; margin-top: 18px; font-size: 15px; }
.lb-text { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.lb-text span, .lb-count { color: var(--muted); }
.lb-count { font-variant-numeric: tabular-nums; flex-shrink: 0; }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(236, 235, 230, 0.08);
  color: var(--fg); display: grid; place-items: center; transition: background 0.3s, color 0.3s;
}
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--accent); color: #0a0a0b; }
.lb-btn[hidden] { display: none; }
.lb-close { top: max(18px, env(safe-area-inset-top)); right: var(--gutter); }
.lb-prev, .lb-next { top: 50%; margin-top: -26px; }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
@media (max-width: 760px) {
  #lightbox { padding: 76px var(--gutter) 104px; }
  #lightbox img { max-height: 64vh; max-height: 64svh; }
  .lb-prev, .lb-next { top: auto; bottom: max(24px, env(safe-area-inset-bottom)); margin-top: 0; }
  #lightbox figcaption { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .grain { display: none; }
  .lb-frame::after { display: none; }
}

/* ── Unterseiten (Leistungen, Impressum, Datenschutz) ── */
.page main { padding: 18vh var(--gutter) 6vh; max-width: 1280px; margin: 0 auto; }
.page footer { padding: 4vh 0 var(--gutter); border-top: 1px solid var(--line); }
.page-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 8vh; }
.back { font-size: 13px; color: var(--muted); align-self: flex-start; transition: color .3s; }
.back:hover { color: var(--accent); }
.page-title { font-size: clamp(52px, 10vw, 170px); }
.intro { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.02em; max-width: 32ch; color: #d4d3cd; }
.cover { margin: 0 0 10vh; overflow: hidden; border-radius: 4px; }
.cover img { width: 100%; max-height: 82vh; object-fit: cover; transition: transform 1.2s var(--ease); }
.cover:hover img { transform: scale(1.02); }
.prose { max-width: 72ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: #cfcec8; }
.prose h2 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.03em; color: var(--fg); margin: 2.2em 0 0.6em; line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1em; }
.prose ul { list-style: none; margin-bottom: 1.2em; }
.prose li { padding-left: 1.4em; position: relative; margin-bottom: .45em; }
.prose li::before { content: ""; position: absolute; left: 0; top: .7em; width: .55em; height: 1px; background: var(--accent); }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; word-break: break-word; }
.prose strong { color: var(--fg); }
.legal { font-size: 16px; }
.legal h2 { font-size: 22px; }
.gallery { margin-top: 12vh; }
.gallery-title, .more-title { font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.gallery-grid { margin-top: 28px; columns: 3 280px; column-gap: var(--gutter); }
.gallery-grid figure { break-inside: avoid; margin-bottom: var(--gutter); overflow: hidden; }
.gallery-grid img { width: 100%; transition: transform 1.2s var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.04); }
.page-cta { margin-top: 16vh; display: flex; flex-direction: column; gap: 32px; }
.more { margin-top: 14vh; }
.more ul { list-style: none; margin-top: 22px; border-top: 1px solid var(--line); }
/* 404 */
.notfound { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: 14vh; }
.nf-code { font-size: clamp(110px, 26vw, 380px); font-weight: 800; letter-spacing: -0.07em; line-height: 0.8; color: var(--accent); }
.more li a { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(24px, 3vw, 44px); font-weight: 500; letter-spacing: -0.035em; transition: color .3s, padding .5s var(--ease); }
.more li a i { font-style: normal; color: var(--accent); font-size: .7em; }
.more li a:hover { color: var(--accent); padding-left: 14px; }
