/* ============================================================
   Wolfgang Hagemann – Portfolio
   ============================================================ */

:root {
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --header-h: 76px;
  --radius: 4px;
}

/* Galerie bei Nacht (Standard) */
:root,
:root[data-theme="dark"] {
  --bg: #0f0e0c;
  --bg-2: #171512;
  --surface: #1d1a16;
  --line: rgba(236, 228, 214, .12);
  --text: #ece6dc;
  --muted: #a39a8c;
  --faint: #6f675c;
  --accent: #c9a46a;
  --accent-ink: #1a140b;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --img-bg: #1a1814;
  color-scheme: dark;
}

/* Heller Galerieraum */
:root[data-theme="light"] {
  --bg: #f5f1ea;
  --bg-2: #ede7dc;
  --surface: #ffffff;
  --line: rgba(35, 28, 20, .12);
  --text: #1d1a16;
  --muted: #6b6257;
  --faint: #a1978a;
  --accent: #8f6a2f;
  --accent-ink: #fff;
  --shadow: 0 30px 60px -30px rgba(60, 40, 20, .35);
  --img-bg: #e6dfd3;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typo ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.01em;
  margin: 0;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.005em; }
h2.section-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; font-weight: 300; }
h2.section-title em, .display em { font-style: italic; color: var(--accent); }
.lead { font-family: var(--serif); font-size: clamp(21px, 2.1vw, 27px); line-height: 1.45; font-weight: 400; color: var(--text); }
.muted { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .02em;
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: border-color .3s, gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background .4s var(--ease), border-color .4s, transform .5s var(--ease), color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-color: var(--line);
}
.site-header.hide { transform: translateY(-100%); }
.site-header.on-hero:not(.scrolled) { color: #f3ede3; }
.site-header.on-hero:not(.scrolled) .nav a:not(.nav-cta)::after { background: #f3ede3; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1;
  opacity: .9;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .01em; }
.brand-sub { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; opacity: .6; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav a { font-size: 14px; font-weight: 500; letter-spacing: .02em; position: relative; padding: 6px 0; opacity: .85; transition: opacity .3s; }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--text); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { border: 1px solid currentColor; border-radius: 999px; padding: 8px 18px; opacity: 1; }
.nav .nav-cta:hover, .nav .nav-cta.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background .3s; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }
.menu-btn { display: none; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-open .menu-btn span:first-child { transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .brand-sub { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 0 var(--gutter);
    background: var(--bg); color: var(--text);
    opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
  }
  .nav a { font-family: var(--serif); font-size: 44px; font-weight: 300; letter-spacing: 0; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav a::after { display: none; }
  .nav .nav-cta { border: 0; padding: 6px 0; }
  .nav .nav-cta:hover, .nav .nav-cta.active { background: none; color: var(--accent); }
  .nav a.active { color: var(--accent); }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .nav a { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: .05s; }
  .menu-open .nav a:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav a:nth-child(4) { transition-delay: .15s; }
  .menu-open .nav a:nth-child(5) { transition-delay: .2s; }
  .menu-open .site-header { color: var(--text) !important; background: transparent; border-color: transparent; backdrop-filter: none; }
}

/* ---------- Page transition ---------- */
#main { min-height: 100vh; outline: none; }
.page { animation: pageIn .7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: #0b0a09; color: #f3ede3;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  transition: transform 9s linear;
}
.hero-slide.active img { transform: scale(1.0); }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,7,6,.55) 0%, rgba(8,7,6,0) 22%),
    linear-gradient(0deg, rgba(8,7,6,.88) 0%, rgba(8,7,6,.35) 38%, rgba(8,7,6,0) 62%),
    linear-gradient(90deg, rgba(8,7,6,.45) 0%, rgba(8,7,6,0) 55%);
}
.hero-content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(36px, 7vh, 80px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px;
  max-width: var(--maxw); margin: 0 auto;
}
.hero .eyebrow { color: rgba(243, 237, 227, .75); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.hero .eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(56px, 10.5vw, 168px); font-weight: 300; line-height: .9; letter-spacing: -.02em; }
.hero h1 .l2 { display: block; font-style: italic; padding-left: .55em; }
.hero-tag { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.8vw, 25px); margin: 26px 0 0; color: rgba(243, 237, 227, .85); max-width: 32ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(243, 237, 227, .35); color: #f3ede3; }
.hero .btn-ghost:hover { border-color: #f3ede3; }
.hero .btn-primary { background: #f3ede3; color: #15120e; }
.hero-caption {
  text-align: right; font-size: 13px; color: rgba(243, 237, 227, .78);
  min-width: 220px; cursor: pointer;
}
.hero-caption .t { font-family: var(--serif); font-size: 21px; font-style: italic; color: #f3ede3; display: block; line-height: 1.2; margin-bottom: 4px; }
.hero-dots { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.hero-dots button { width: 26px; height: 2px; background: rgba(243, 237, 227, .28); position: relative; overflow: hidden; }
.hero-dots button::after { content: ''; position: absolute; inset: 0; background: #f3ede3; transform: scaleX(0); transform-origin: left; }
.hero-dots button.active::after { animation: dot 7s linear forwards; }
.hero-dots button.done::after { transform: scaleX(1); }
@keyframes dot { to { transform: scaleX(1); } }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 1px; height: 44px; background: rgba(243, 237, 227, .25); overflow: hidden;
}
.scroll-cue::after { content: ''; position: absolute; left: 0; top: -44px; width: 1px; height: 44px; background: #f3ede3; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 44px; } }

@media (max-width: 760px) {
  .hero-content { grid-template-columns: 1fr; gap: 24px; }
  .hero-caption { text-align: left; }
  .hero-dots { justify-content: flex-start; }
  .scroll-cue { display: none; }
}

/* ---------- Status-Hinweis ---------- */
.status {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.status .wrap { display: flex; align-items: center; gap: 18px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.status strong { font-family: var(--serif); font-size: 20px; font-weight: 500; font-style: italic; }
.status span.muted { font-size: 14.5px; }

/* ---------- Sections ---------- */
section.block { padding: clamp(80px, 12vw, 160px) 0; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.block-head .eyebrow { margin-bottom: 18px; display: block; }

/* Neue Arbeiten – horizontaler Streifen */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30vw);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 24px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
@media (min-width: 1500px) { .strip { padding-left: calc((100vw - var(--maxw)) / 2 + var(--gutter)); grid-auto-columns: 420px; } }
@media (max-width: 600px) { .strip { grid-auto-columns: 78vw; } }
.strip .card { scroll-snap-align: start; }
.strip .card .frame { aspect-ratio: 4 / 5; }
.strip .card .frame img { height: 100%; object-fit: cover; }

.card { cursor: pointer; display: block; }
.card .frame {
  position: relative; overflow: hidden; background: var(--img-bg);
  border-radius: var(--radius);
}
.card .frame img {
  width: 100%; height: auto;
  transition: transform 1.2s var(--ease), opacity .8s ease, filter .6s;
  opacity: 0;
}
.card .frame img.loaded { opacity: 1; }
.card:hover .frame img { transform: scale(1.035); }
.card .cap { padding: 14px 2px 0; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.card .cap .t { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.card .cap .y { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.card .cap .m { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

/* Intro/Zitat */
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.intro-portrait { position: relative; }
.intro-portrait .frame { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/5; background: var(--img-bg); }
.intro-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.intro-portrait .badge {
  position: absolute; right: -28px; bottom: 40px;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; text-align: center;
  font-family: var(--serif); line-height: 1.05; font-size: 15px;
  transform: rotate(-8deg);
}
.intro-portrait .badge b { display: block; font-size: 40px; font-weight: 400; font-style: italic; }
blockquote.quote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.3vw, 46px); line-height: 1.2; }
blockquote.quote em { color: var(--accent); }
.intro-text p { color: var(--muted); max-width: 56ch; }
.intro-text .eyebrow { display: block; margin-bottom: 28px; }
.intro-text .quote { margin-bottom: 32px; }
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-portrait { max-width: 440px; }
  .intro-portrait .badge { right: -8px; width: 110px; height: 110px; }
  .intro-portrait .badge b { font-size: 32px; }
}

/* Zahlen */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 24px 36px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); font-weight: 300; line-height: 1; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 10px; letter-spacing: .02em; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Werkgruppen */
.groups { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.2vw, 32px); }
.group-card { grid-column: span 4; position: relative; display: block; }
.groups.feature .group-card:nth-child(1), .groups.feature .group-card:nth-child(2) { grid-column: span 6; }
.group-card .frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--img-bg); position: relative; }
.group-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .8s; opacity: 0; }
.group-card .frame img.loaded { opacity: 1; }
.group-card:hover .frame img { transform: scale(1.05); }
.group-card .frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 45%); opacity: 0; transition: opacity .5s; }
.group-card:hover .frame::after { opacity: 1; }
.group-card .meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; gap: 12px; }
.group-card h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.group-card .yrs { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 19px; white-space: nowrap; }
.group-card .cnt { font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 1000px) { .group-card, .groups.feature .group-card:nth-child(-n+2) { grid-column: span 6; } }
@media (max-width: 600px) { .group-card, .groups.feature .group-card:nth-child(-n+2) { grid-column: span 12; } }

/* Atelier CTA */
.atelier {
  position: relative; overflow: hidden; color: #f3ede3;
  min-height: 78vh; display: flex; align-items: flex-end;
  background: #0b0a09;
}
.atelier img { position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover; opacity: .62; will-change: transform; }
.atelier::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,7,6,.9), rgba(8,7,6,.2) 70%); }
.atelier .wrap { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.atelier h2 { font-size: clamp(40px, 6vw, 88px); font-weight: 300; line-height: 1; }
.atelier h2 em { font-style: italic; color: #e2c38e; }
.atelier p { max-width: 48ch; color: rgba(243,237,227,.8); margin: 22px 0 0; }
.atelier .btn-primary { background: #f3ede3; color: #15120e; }
.atelier .eyebrow { color: rgba(243,237,227,.7); }
@media (max-width: 760px) { .atelier .wrap { grid-template-columns: 1fr; } }

/* ---------- Seitenkopf ---------- */
.page-head { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(36px, 5vw, 64px); }
.page-head .eyebrow { display: block; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(52px, 8.5vw, 132px); font-weight: 300; line-height: .95; letter-spacing: -.02em; }
.page-head h1 em { font-style: italic; color: var(--accent); }
.page-head .lead { max-width: 44ch; margin-top: 28px; color: var(--muted); }

/* ---------- Filter ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: top .5s var(--ease);
}
body:not(.header-hidden) .toolbar { top: var(--header-h); }
.toolbar .wrap { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13.5px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--muted); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip sup { font-size: 10.5px; opacity: .6; top: 0; }
.toolbar select, .search {
  height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font: inherit; font-size: 13.5px;
  padding: 0 16px;
}
.toolbar select { padding-right: 34px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a39a8c' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.toolbar select option { background: var(--surface); color: var(--text); }
.search { width: 200px; padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a39a8c' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center; }
.search::placeholder { color: var(--faint); }
.search:focus, .toolbar select:focus { outline: none; border-color: var(--accent); }
.result-count { font-size: 13px; color: var(--muted); padding: 28px 0 0; }
@media (max-width: 760px) {
  .toolbar .wrap { flex-wrap: wrap; gap: 10px; }
  .chips { flex-basis: 100%; order: 3; }
  .search { flex: 1; width: auto; }
}

/* ---------- Masonry ---------- */
.masonry { display: flex; align-items: flex-start; gap: clamp(18px, 2.4vw, 36px); padding: 28px 0 40px; }
.m-col { flex: 1; min-width: 0; }
.masonry .card { margin-bottom: clamp(30px, 3.4vw, 52px); }
.masonry .card .frame img { aspect-ratio: var(--r); object-fit: cover; }
.masonry .card { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.masonry .card.in { opacity: 1; transform: none; }
.empty { text-align: center; padding: 100px 0; color: var(--muted); font-family: var(--serif); font-size: 26px; font-style: italic; }

/* Werkgruppe Detail */
.group-hero { position: relative; height: 70vh; min-height: 460px; overflow: hidden; color: #f3ede3; background: #0b0a09; }
.group-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; transform: scale(1.06); animation: slowzoom 14s ease-out forwards; }
@keyframes slowzoom { to { transform: scale(1); } }
.group-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,7,6,.92), rgba(8,7,6,.1) 70%), linear-gradient(180deg, rgba(8,7,6,.5), transparent 25%); }
.group-hero .wrap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-bottom: clamp(36px, 6vw, 72px); }
.group-hero .eyebrow { color: rgba(243,237,227,.7); display: block; margin-bottom: 16px; }
.group-hero h1 { font-size: clamp(48px, 7.5vw, 116px); font-weight: 300; line-height: .95; }
.group-hero h1 em { font-style: italic; color: #e2c38e; }
.group-hero p { max-width: 56ch; color: rgba(243,237,227,.82); margin: 20px 0 0; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(243,237,227,.75); margin-bottom: 26px; }
.back-link:hover { color: #fff; }
.group-intro { max-width: 760px; padding-top: clamp(40px, 6vw, 72px); }
.group-intro p { color: var(--muted); white-space: pre-line; }
.group-pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 40px; }
.group-pager a { padding: 44px 0; display: block; transition: color .3s; }
.group-pager a:hover { color: var(--accent); }
.group-pager a + a { text-align: right; border-left: 1px solid var(--line); }
.group-pager .eyebrow { display: block; margin-bottom: 10px; }
.group-pager .t { font-family: var(--serif); font-size: clamp(24px, 3vw, 40px); font-weight: 300; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: #0c0b0a;
  color: #ece6dc;
  display: grid; grid-template-columns: 1fr 380px;
  opacity: 0; transition: opacity .45s var(--ease);
}
[data-theme="light"] .lightbox { background: #f5f1ea; color: #1d1a16; }
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 84px; min-height: 0; }
.lb-figure { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
  transition: opacity .35s ease, transform .5s var(--ease);
}
.lb-img.swap { opacity: 0; transform: scale(.985); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; opacity: .6; transition: opacity .3s, background .3s; }
.lb-nav:hover { opacity: 1; background: rgba(128,128,128,.12); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transition: background .3s; z-index: 3; }
.lb-close:hover { background: rgba(128,128,128,.15); }
.lb-panel { border-left: 1px solid rgba(128,128,128,.18); padding: 88px 40px 40px; overflow-y: auto; display: flex; flex-direction: column; }
.lb-count { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .55; margin-bottom: 22px; }
.lb-title { font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1.08; margin-bottom: 28px; }
.lb-meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; font-size: 14px; }
.lb-meta dt { opacity: .5; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.lb-meta dd { margin: 0; }
.lb-note { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.45; opacity: .85; margin: 26px 0 0; white-space: pre-line; }
.lb-note:empty { display: none; }
.lb-views { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.lb-views:empty { display: none; }
.lb-views button { width: 68px; height: 68px; border-radius: 3px; overflow: hidden; opacity: .5; outline: 1px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s; }
.lb-views button img { width: 100%; height: 100%; object-fit: cover; }
.lb-views button.active { opacity: 1; outline-color: var(--accent); }
.lb-views-label { width: 100%; font-size: 12px; opacity: .6; }
.lb-actions { margin-top: auto; padding-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.lb-actions .btn { justify-content: center; }
.lightbox .btn-ghost { border-color: rgba(128,128,128,.35); }
@media (max-width: 900px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-stage { padding: 64px 12px 12px; }
  .lb-nav { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; }
  .lb-panel { border-left: 0; border-top: 1px solid rgba(128,128,128,.18); padding: 20px var(--gutter) 24px; max-height: 42vh; }
  .lb-title { font-size: 28px; margin-bottom: 16px; }
  .lb-count { margin-bottom: 10px; }
  .lb-actions { flex-direction: row; padding-top: 22px; }
  .lb-actions .btn { flex: 1; height: 44px; padding: 0 14px; font-size: 13px; }
}

/* ---------- Aktuelles ---------- */
.expo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.expo {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3vw, 44px);
  display: grid; grid-template-columns: 1fr auto; gap: 24px; background: var(--bg-2);
}
.expo .when { font-size: 13px; color: var(--accent); letter-spacing: .04em; }
.expo h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; line-height: 1.12; margin: 14px 0 12px; }
.expo .place { color: var(--muted); font-size: 14.5px; }
.expo img { width: 120px; border-radius: 2px; box-shadow: var(--shadow); cursor: zoom-in; }
@media (max-width: 860px) { .expo-grid { grid-template-columns: 1fr; } }

.timeline { position: relative; margin-top: clamp(60px, 8vw, 110px); }
.tl-item { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 5vw, 80px); padding: 44px 0; border-top: 1px solid var(--line); }
.tl-date { font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--accent); line-height: 1.2; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.tl-body h3 { font-size: 30px; font-weight: 400; margin-bottom: 12px; }
.tl-body p { margin: 0; max-width: 64ch; color: var(--muted); font-size: 16.5px; }
.tl-works { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.tl-works .card { width: 150px; }
.tl-works .card .frame { aspect-ratio: 1; }
.tl-works .card .frame img { height: 100%; object-fit: cover; }
.tl-works .card .cap .t { font-size: 16px; }
.tl-poster { width: 180px; margin-top: 26px; cursor: zoom-in; border-radius: 2px; box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
  .tl-date { position: static; }
  .tl-works .card { width: calc(50% - 7px); }
}

/* ---------- Über mich ---------- */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; padding-top: var(--header-h); }
.about-hero .img { position: relative; overflow: hidden; background: var(--img-bg); }
.about-hero .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 40%; }
.about-hero .txt { padding: 60px var(--gutter) 70px; display: flex; flex-direction: column; justify-content: flex-end; }
.about-hero h1 { font-size: clamp(52px, 7vw, 116px); font-weight: 300; line-height: .95; letter-spacing: -.02em; }
.about-hero h1 em { font-style: italic; color: var(--accent); }
.about-hero .lead { margin-top: 30px; max-width: 30ch; }
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; min-height: 0; }
  .about-hero .img { height: 70vh; order: -1; }
  .about-hero .txt { padding-top: 48px; }
}
.bio { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 7vw, 120px); }
.bio-text p { font-size: 18px; line-height: 1.75; margin: 0 0 1.3em; }
.bio-text p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 88px; line-height: .8; padding: 8px 12px 0 0; color: var(--accent); }
.bio aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } .bio aside { position: static; } }

.milestones { list-style: none; margin: 0; padding: 0; }
.milestones li { display: grid; grid-template-columns: 160px 1fr; gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; transition: padding .4s var(--ease); }
.milestones li:hover { padding-left: 10px; }
.milestones .y { font-family: var(--serif); font-size: 30px; font-weight: 300; }
.milestones .x { font-size: 16px; color: var(--muted); }
@media (max-width: 600px) { .milestones li { grid-template-columns: 1fr; gap: 4px; } }

.techniques { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.tech { padding: 36px 32px 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.tech .num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 22px; }
.tech h3 { font-size: 30px; font-weight: 400; margin: 18px 0 14px; }
.tech p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .techniques { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); padding-bottom: clamp(80px, 10vw, 140px); }
.contact-info .item { padding: 26px 0; border-top: 1px solid var(--line); }
.contact-info .item .eyebrow { display: block; margin-bottom: 8px; }
.contact-info .item a, .contact-info .item div.v { font-family: var(--serif); font-size: 26px; }
.contact-info .item a:hover { color: var(--accent); }
.contact-info .item p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 18px; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0 14px; transition: border-color .3s; border-radius: 0;
}
.field select option { background: var(--surface); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13px; max-width: 42ch; }
.form-ok { grid-column: 1 / -1; padding: 22px 24px; border: 1px solid var(--accent); border-radius: var(--radius); font-family: var(--serif); font-size: 21px; display: none; }
.form-ok.show { display: block; animation: pageIn .6s var(--ease); }
.werk-ref { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.werk-ref img { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; }
.werk-ref .t { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.werk-ref .m { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } form.contact { grid-template-columns: 1fr; } }

/* ---------- Rechtliches ---------- */
.legal { max-width: 760px; padding-bottom: 120px; }
.legal h2 { font-size: 30px; margin: 48px 0 12px; }
.legal p, .legal ul { color: var(--muted); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal .note { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px var(--gutter) 48px; }
.footer-inner { max-width: calc(var(--maxw) - 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; align-items: start; }
.footer-name { font-family: var(--serif); font-size: 34px; font-weight: 300; line-height: 1; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.footer-nav a:hover, .footer-meta a:hover { color: var(--accent); }
.footer-meta { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); text-align: right; }
.footer-meta a:first-child { font-family: var(--serif); font-size: 22px; color: var(--text); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-meta { text-align: left; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-slide img { transform: none !important; }
}
