/* Monika Ferstl · Virtuelle Galerie */

:root {
  --wall: #0e0d0c;
  --ink: #f1ebe2;
  --deep: #0e0d0c;
  --paper: #ebe5da;
  --gold: #c9a66b;
  --muted: color-mix(in srgb, var(--ink) 62%, transparent);
  --faint: color-mix(in srgb, var(--ink) 16%, transparent);
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 4vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.viewer-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 1.1s var(--ease-out), color 1.1s var(--ease-out);
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--deep); }

.kicker {
  margin: 0 0 1.4rem;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 7.4vw, 124px);
  line-height: .94;
  letter-spacing: -.02em;
}
.section-title em { color: var(--gold); font-weight: 300; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ Loader */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--deep);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.3s var(--ease-io) .15s;
}
body.is-ready .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__inner { text-align: center; }
.loader__eyebrow { margin: 0; font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: #8d8478; }
.loader__name {
  margin: .2em 0 .1em;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 7vw, 92px); line-height: 1; color: #f1ebe2;
}
.loader__name em { color: var(--gold); }
.loader__name > * { display: inline-block; animation: rise 1.4s var(--ease-out) both; }
.loader__name em { animation-delay: .12s; }
.loader__count { margin: 0; font-family: var(--serif); font-size: 15px; color: #8d8478; font-variant-numeric: tabular-nums; }
.loader__count::after { content: " %"; }
@keyframes rise { from { opacity: 0; transform: translateY(60%); filter: blur(8px); } }

/* ------------------------------------------------------------ Grain + cursor */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .09;
  mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #f1ebe2;
  mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), opacity .3s;
  opacity: 0;
}
.cursor.is-visible { opacity: 1; }
.cursor__label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #0e0d0c; opacity: 0; transition: opacity .3s; white-space: nowrap; font-weight: 600; }
.cursor.is-active { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
.cursor.is-active .cursor__label { opacity: 1; }
@media (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
}
@media (pointer: coarse) { .cursor { display: none; } }

.peek {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: clamp(220px, 22vw, 340px);
  opacity: 0; transform: scale(.85);
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.peek.is-on { opacity: 1; transform: scale(1); }
.peek__frame { box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); overflow: hidden; background: #000; }
.peek__frame img { width: 100%; height: auto; }
.peek__caption { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.2; color: var(--ink); }
.peek__caption small { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-top: 3px; }

/* ------------------------------------------------------------ Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter);
  color: var(--ink);
  transition: transform .8s var(--ease-out), color 1.1s var(--ease-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--wall) 82%, transparent), transparent);
  opacity: 0; transition: opacity .6s;
}
body.is-scrolled .nav::before { opacity: 1; }
body.nav-hidden .nav { transform: translateY(-110%); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.nav__mono {
  font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1;
  width: 40px; height: 40px; border: 1px solid var(--faint); border-radius: 50%;
  display: grid; place-items: center;
}
.nav__name { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; }
.nav__where {
  margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px;
  transition: opacity .5s; min-height: 1em;
}
.nav__links { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px); }
.nav__links a { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__tour {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 18px 10px 14px; border: 1px solid var(--faint); border-radius: 99px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .4s, color .4s, border-color .4s;
}
.nav__tour:hover { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.nav__tour-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--gold); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,166,107,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(201,166,107,0); } }
@media (max-width: 860px) {
  .nav { grid-template-columns: auto 1fr; padding-top: 16px; padding-bottom: 16px; }
  .nav__where, .nav__name, .nav__links a { display: none; }
}

/* ------------------------------------------------------------ Hero */
.hero { position: relative; height: 280vh; }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__scene { position: absolute; inset: 0; perspective: 1000px; perspective-origin: 50% 50%; }
.hero__space { position: absolute; inset: 0; transform-style: preserve-3d; }
.hero__item {
  position: absolute; left: 50%; top: 50%;
  will-change: transform, opacity;
  opacity: 0;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
}
.hero__item img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 34% at 50% 50%, rgba(14,13,12,.88), rgba(14,13,12,.4) 60%, transparent 80%),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(14,13,12,.85) 100%);
}
.hero__title {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  pointer-events: none; will-change: transform, opacity;
}
.hero__eyebrow {
  margin: 0 0 18px; display: flex; justify-content: center; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: #b9ae9f;
}
.hero__eyebrow .sep { width: 36px; height: 1px; background: var(--gold); }
.hero__name {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(76px, 15.5vw, 260px); line-height: .82; letter-spacing: -.035em;
  text-shadow: 0 10px 60px rgba(0,0,0,.55);
}
.hero__name .line { display: block; overflow: hidden; padding: 0 .06em .04em; }
.hero__name .word { display: inline-block; transform: translateY(105%); transition: transform 1.6s var(--ease-out); }
.hero__name em.word { color: var(--gold); margin-left: .5em; }
body.is-ready .hero__name .word { transform: none; transition-delay: .55s; }
body.is-ready .hero__name .line + .line .word { transition-delay: .7s; }
.hero__sub {
  margin: 26px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.7vw, 26px); color: #d8cfc2;
  opacity: 0; transition: opacity 1.4s 1.2s;
}
body.is-ready .hero__sub, body.is-ready .hero__eyebrow { opacity: 1; }
.hero__eyebrow { opacity: 0; transition: opacity 1.4s 1s; }
.hero__hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; text-decoration: none; color: #b9ae9f;
}
.hero__hint-line { width: 1px; height: 54px; background: linear-gradient(#b9ae9f, transparent); position: relative; overflow: hidden; }
.hero__hint-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
.hero__veil { position: absolute; inset: 0; background: var(--deep); opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .hero__name em.word { margin-left: 0; }
}

/* ------------------------------------------------------------ Welcome */
.welcome { min-height: 100vh; display: grid; place-items: center; padding: 18vh var(--gutter); }
.welcome__inner { max-width: 1180px; }
.welcome__text {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(34px, 5.2vw, 84px); line-height: 1.08; letter-spacing: -.015em;
}
.welcome__text .w { opacity: .14; transition: opacity .25s linear; }
.welcome__sign {
  margin: 4rem 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 38px); color: var(--gold);
}
.welcome__sign::before { content: "— "; }
.stats {
  margin: 10vh 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--faint); padding-top: 28px;
}
.stats dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(30px, 3.6vw, 54px); line-height: 1; font-weight: 300; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }

/* ------------------------------------------------------------ Halls index */
.halls { padding: 16vh var(--gutter) 12vh; }
.halls__head { margin-bottom: 9vh; }
.halls__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--faint); }
.hall-row { border-bottom: 1px solid var(--faint); }
.hall-row a {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: baseline; gap: 24px;
  padding: clamp(18px, 2.6vw, 34px) 0;
  text-decoration: none; position: relative;
}
.hall-row__num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.hall-row__name {
  font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6.6vw, 112px); line-height: .95; letter-spacing: -.02em;
  transition: transform .8s var(--ease-out), color .5s;
}
.hall-row__meta { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: right; }
.hall-row__thumb { display: none; }
.halls__list:hover .hall-row__name { color: color-mix(in srgb, var(--ink) 30%, transparent); }
.halls__list .hall-row a:hover .hall-row__name { color: var(--ink); transform: translateX(28px); }
.hall-row a:hover .hall-row__name em { color: var(--gold); }
@media (max-width: 720px) {
  .hall-row a { grid-template-columns: 64px 1fr; gap: 6px 16px; }
  .hall-row__num { grid-row: span 2; }
  .hall-row__thumb { display: block; width: 64px; height: 64px; object-fit: cover; grid-row: 1 / span 2; grid-column: 1; }
  .hall-row__num { display: none; }
  .hall-row__meta { text-align: left; grid-column: 2; }
}

/* ------------------------------------------------------------ Rooms (horizontal walls) */
.room { position: relative; }
.room__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.room__track {
  position: absolute; left: 0; top: 0; height: 100%;
  display: flex; align-items: center; gap: var(--hang-gap, 9vw);
  padding: 0 12vw 0 var(--gutter);
  will-change: transform;
}
.room__intro { flex: 0 0 auto; width: min(560px, 78vw); padding-right: 4vw; }
.room__num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted); }
.room__name {
  margin: .1em 0 .3em; font-family: var(--serif); font-weight: 300;
  font-size: clamp(64px, 10vw, 170px); line-height: .88; letter-spacing: -.03em;
}
.room__text { margin: 0; max-width: 34ch; font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35; }
.room__facts { margin: 2.2rem 0 0; display: flex; gap: 28px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.room__go { margin-top: 2.6rem; display: inline-flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.room__go::after { content: ""; width: 70px; height: 1px; background: currentColor; animation: nudge 2s var(--ease-io) infinite; transform-origin: left; }
@keyframes nudge { 50% { transform: scaleX(1.5); } }

.hang { position: relative; flex: 0 0 auto; margin: 0; display: flex; flex-direction: column; }
.hang::before {
  /* Spot von der Decke */
  content: ""; position: absolute; left: 50%; top: -48vh; width: 160%; height: 150vh; transform: translateX(-50%);
  background: radial-gradient(ellipse 40% 50% at 50% 42%, var(--spot), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hang__art {
  position: relative; z-index: 1; display: block; width: var(--w); height: var(--h);
  box-shadow: 0 2px 3px rgba(0,0,0,.25), 0 26px 50px -16px rgba(0,0,0,.55), 0 60px 100px -50px rgba(0,0,0,.6);
  transition: transform .9s var(--ease-out), box-shadow .9s var(--ease-out);
}
.hang__art img { width: 100%; height: 100%; object-fit: cover; background-size: cover; }
.hang__art:hover { transform: translateY(-6px) scale(1.012); box-shadow: 0 2px 3px rgba(0,0,0,.25), 0 40px 70px -20px rgba(0,0,0,.6), 0 80px 120px -50px rgba(0,0,0,.6); }
.label {
  position: absolute; z-index: 1; left: 0; top: calc(100% + 26px); width: max(100%, 220px);
  font-size: 12px; line-height: 1.5; color: var(--muted);
}
.label__title { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.2; color: var(--ink); }
.label__title i { color: var(--muted); }
.room__outro { flex: 0 0 auto; width: min(520px, 70vw); }
.room__outro p { margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.room__outro a { display: block; margin-top: .4em; font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6vw, 96px); line-height: .95; text-decoration: none; }
.room__outro a span { display: inline-block; transition: transform .7s var(--ease-out); }
.room__outro a:hover span { transform: translateX(16px); }
.room__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; height: 1px; background: var(--faint); }
.room__progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.room__floor { position: absolute; left: 0; right: 0; bottom: 0; height: 8vh; background: linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.18)); pointer-events: none; }

/* ohne Animation: Wände horizontal scrollen */
.no-motion .room__sticky { position: relative; height: auto; overflow-x: auto; }
.no-motion .room__track { position: relative; height: 100vh; }

/* ------------------------------------------------------------ Timeline */
.timeline { padding: 16vh 0 14vh; }
.timeline__head { padding: 0 var(--gutter); display: grid; grid-template-columns: 1.2fr 1fr; gap: 6vw; align-items: end; }
.timeline__head .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.timeline__intro { margin: 0; max-width: 40ch; font-family: var(--serif); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.4; color: var(--muted); }
@media (max-width: 860px) { .timeline__head { grid-template-columns: 1fr; gap: 24px; } }
.timeline__scroller { overflow-x: auto; margin-top: 10vh; padding: 0 var(--gutter) 10px; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
.timeline__track { display: flex; align-items: flex-end; gap: 10px; min-width: max-content; padding-top: 40px; }
.tl__year { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tl__stack { display: flex; flex-wrap: wrap-reverse; width: calc(var(--cols) * 42px); gap: 4px; justify-content: center; }
.tl__thumb { width: 38px; height: 38px; overflow: hidden; transition: transform .4s var(--ease-out), opacity .4s; background: rgba(0,0,0,.08); }
.tl__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl__thumb:hover { transform: scale(1.35); position: relative; z-index: 2; }
.tl__stack:hover .tl__thumb:not(:hover) { opacity: .45; }
.tl__label { font-family: var(--serif); font-size: 19px; border-top: 1px solid var(--ink); padding-top: 8px; width: 100%; text-align: center; }
.tl__count { font-size: 10px; letter-spacing: .2em; color: var(--muted); margin-top: -10px; }
.tl__gap { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 80px; }
.tl__gap span { font-size: 10px; letter-spacing: .18em; color: var(--muted); border-top: 1px dashed var(--faint); width: 100%; text-align: center; padding-top: 12px; margin-bottom: 30px; }

/* ------------------------------------------------------------ Index grid */
.index { padding: 16vh var(--gutter) 12vh; }
.index__head { margin-bottom: 6vh; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 18px 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); position: sticky; top: 74px; z-index: 5; background: color-mix(in srgb, var(--wall) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.filters__group { display: flex; flex-wrap: wrap; gap: 6px; }
.filters__count { margin: 0 0 0 auto; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); }
.chip {
  padding: 7px 14px; border-radius: 99px; border: 1px solid var(--faint);
  font-size: 12px; letter-spacing: .06em; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.chip sup { font-size: 9px; margin-left: 3px; opacity: .6; }
@media (max-width: 860px) { .filters { top: 64px; } .filters__count { margin-left: 0; width: 100%; } }
.grid { list-style: none; margin: 5vh 0 0; padding: 0; columns: 4 260px; column-gap: 26px; }
.grid li { break-inside: avoid; margin: 0 0 34px; }
.card { display: block; width: 100%; text-align: left; }
.card__img { position: relative; overflow: hidden; background-size: cover; }
.card__img img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out), filter .6s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.card__title { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.card__year { font-size: 11px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; padding-top: 4px; }
.card__tech { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .06em; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------------------ Kontakt */
.contact { padding: 16vh var(--gutter) 6vh; display: grid; grid-template-columns: 1fr 1.15fr; gap: 6vw; align-items: start; }
.contact__intro { margin: 2.4rem 0 0; max-width: 30ch; font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35; color: var(--muted); }
.contact__form { position: relative; padding-top: 1.4rem; }
.contact__work { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; padding: 10px 10px 10px 10px; border: 1px solid var(--faint); }
.contact__work[hidden] { display: none; }
.contact__work img { width: 56px; height: 56px; object-fit: cover; }
.contact__work p { margin: 0; flex: 1; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact__work span { display: block; margin-top: 2px; font-family: var(--serif); font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.field { position: relative; margin-bottom: 30px; }
.field input, .field textarea {
  width: 100%; padding: 26px 0 12px; border: 0; border-bottom: 1px solid var(--faint); border-radius: 0;
  background: transparent; color: var(--ink); font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.3;
  outline: none; resize: vertical; transition: border-color .4s;
}
.field textarea { min-height: 150px; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field label {
  position: absolute; left: 0; top: 28px; pointer-events: none;
  font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); color: var(--muted);
  transform-origin: left top; transition: transform .5s var(--ease-out), color .4s, letter-spacing .4s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-30px) scale(.5); color: var(--gold); letter-spacing: .08em;
}
.field.is-invalid { --faint: #c46a5a; }
.field.is-invalid label { color: #e08b7a; }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: 10px; }
.contact__note { margin: 0; max-width: 42ch; font-size: 12px; line-height: 1.6; color: var(--muted); }
.contact__note a { color: var(--gold); text-underline-offset: 3px; }
.contact__send {
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 30px; border-radius: 99px;
  background: var(--ink); color: var(--wall); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .4s, color .4s, opacity .3s;
}
.contact__send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.contact__send:hover { background: var(--gold); }
.contact__send:hover svg { transform: translateX(6px); }
.contact__send:disabled { opacity: .5; pointer-events: none; }
.contact__status { margin: 22px 0 0; min-height: 1.6em; font-size: 14px; }
.contact__status.is-error { color: #e08b7a; }
.contact__done { padding: 6vh 0; }
.contact__done p { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 76px); line-height: 1; }
.contact__done p em { color: var(--gold); }
.contact__done span { display: block; margin-top: 1.4rem; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 4vh; } }

/* ------------------------------------------------------------ Footer */
.footer { padding: 20vh var(--gutter) 40px; }
.footer__big { margin: 0 0 14vh; font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 11vw, 190px); line-height: .88; letter-spacing: -.03em; }
.footer__big em { color: var(--gold); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--faint); padding-top: 24px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.footer__row p { margin: 0; }
.footer__top { text-decoration: none; }

/* ------------------------------------------------------------ Rechtliches */
.legal-page .nav { background: color-mix(in srgb, var(--wall) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.legal { max-width: 860px; margin: 0 auto; padding: 22vh var(--gutter) 10vh; }
.legal .section-title { font-size: clamp(48px, 8vw, 110px); hyphens: manual; }
.legal .legal__lead { margin: 3.4rem 0 0; color: var(--ink); font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.4; }
.legal section { margin-top: 4.5rem; padding-top: 2rem; border-top: 1px solid var(--faint); }
.legal h2 { margin: 0 0 1.2rem; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; display: flex; gap: 18px; align-items: baseline; }
.legal h2 span { font-style: italic; font-size: .6em; color: var(--gold); min-width: 1.2em; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.2em; }
.legal li::marker { color: var(--gold); }
.legal a { color: var(--gold); text-underline-offset: 3px; }
.legal .legal__small { font-size: 13px; color: var(--muted); }
.legal__date { margin-top: 4rem !important; font-size: 12px !important; letter-spacing: .2em; text-transform: uppercase; color: var(--muted) !important; }
.legal-page .nav__links a.legal__back { display: inline; }
.footer--slim { padding-top: 0; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ink); }

/* ------------------------------------------------------------ Viewer */
.viewer {
  position: fixed; inset: 0; z-index: 70;
  --amb: #15110f;
  background: var(--amb);
  color: #f1ebe2;
  --faint: rgba(241,235,226,.16); --muted: rgba(241,235,226,.62); --ink: #f1ebe2;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 25vw);
  grid-template-rows: 1fr auto;
  opacity: 0; transition: opacity .6s var(--ease-out), background-color 1.2s var(--ease-out);
}
.viewer[hidden] { display: none; }
.viewer.is-open { opacity: 1; }
.viewer__ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.viewer__ambient-img {
  position: absolute; inset: -20%; width: 140%; height: 140%; object-fit: cover;
  filter: blur(90px) saturate(1.5); opacity: .5; transform: scale(1.1);
  transition: opacity 1.2s;
}
.viewer__ambient::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 40% 50%, transparent 20%, rgba(0,0,0,.55)); }
.viewer__stage { position: relative; grid-row: 1 / span 2; overflow: hidden; touch-action: none; }
.viewer__img {
  position: absolute; transform-origin: 0 0; background-size: cover;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.85), 0 4px 10px rgba(0,0,0,.35);
  user-select: none; -webkit-user-drag: none;
}
.viewer__img.is-flip { transition: transform 1s var(--ease-out); }
.viewer__img.is-fade { transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.viewer__img.is-kb { animation: kenburns 9s linear both; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.06; } }
.viewer__label {
  position: relative; grid-column: 2; grid-row: 1;
  padding: 110px var(--gutter) 30px 34px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--faint);
  background: linear-gradient(to right, rgba(0,0,0,.12), rgba(0,0,0,.28));
}
.vl__room { margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.vl__title { margin: .35em 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3vw, 54px); line-height: 1; letter-spacing: -.01em; }
.vl__year { margin: .3em 0 0; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold); }
.vl__meta { margin: 2.4rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 13px; }
.vl__meta dt { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.vl__meta dd { margin: 0; }
.vl__palette { display: flex; gap: 0; margin-top: 2.2rem; height: 10px; width: 100%; max-width: 260px; overflow: hidden; border-radius: 2px; }
.vl__palette span { flex: 1; transition: background-color .8s; }
.vl__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 10px; }
.vbtn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
  border: 1px solid var(--faint); border-radius: 99px; font-size: 12px; letter-spacing: .08em;
  transition: background .3s, color .3s, border-color .3s;
}
.vbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.vbtn .i-play, .vbtn .i-pause { fill: currentColor; stroke: none; }
.vbtn .i-pause, .vbtn[aria-pressed="true"] .i-play { display: none; }
.vbtn[aria-pressed="true"] .i-pause { display: block; }
.vbtn:hover, .vbtn[aria-pressed="true"] { background: #f1ebe2; color: #15110f; border-color: #f1ebe2; }
.vbtn:disabled { opacity: .35; pointer-events: none; }
.viewer__bar {
  grid-column: 2; grid-row: 2; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px var(--gutter) 26px 34px; border-left: 1px solid var(--faint);
  background: rgba(0,0,0,.28);
}
.viewer__counter { margin: 0; font-family: var(--serif); font-size: 18px; display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.viewer__counter-sep { width: 22px; height: 1px; background: var(--muted); }
.viewer__nav, .viewer__tools { display: flex; gap: 6px; }
.vicon { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--faint); display: grid; place-items: center; transition: background .3s, color .3s; }
.vicon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.vicon:hover { background: #f1ebe2; color: #15110f; }
.viewer__progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; }
.viewer__progress span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.viewer.is-playing .viewer__progress span { animation: prog var(--slide, 7s) linear both; }
@keyframes prog { to { transform: scaleX(1); } }
.viewer__hint { position: absolute; left: 24px; bottom: 18px; margin: 0; font-size: 11px; letter-spacing: .08em; color: var(--muted); pointer-events: none; transition: opacity 1s; }
.viewer.is-playing .viewer__hint { opacity: 0; }
@media (pointer: coarse) { .viewer__hint { display: none; } }

/* Wandansicht */
.viewer__wall {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  background: linear-gradient(to bottom, #d9d2c6, #cfc7ba 70%);
  transition: opacity .8s var(--ease-out), visibility 0s .8s;
}
.viewer.is-wall .viewer__wall { opacity: 1; visibility: visible; transition: opacity .8s var(--ease-out); }
.viewer.is-wall .viewer__img { opacity: 0 !important; }
.wall__light { position: absolute; inset: 0; background: radial-gradient(ellipse 30% 45% at 50% 30%, rgba(255,247,230,.75), transparent 70%); }
.wall__floor { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, #8f8273, #6d6255); }
.wall__floor::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: #efe9df; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.wall__art { position: absolute; box-shadow: 0 3px 4px rgba(0,0,0,.2), 0 24px 40px -14px rgba(0,0,0,.45); transition: all .9s var(--ease-out); }
.wall__art img { width: 100%; height: 100%; object-fit: cover; }
.wall__bench { position: absolute; fill: #2c2621; filter: drop-shadow(0 10px 8px rgba(0,0,0,.25)); }
.wall__ruler { position: absolute; height: 8px; border: 1px solid #5b5248; border-top: 0; }
.wall__ruler span { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); font-size: 10px; letter-spacing: .14em; color: #5b5248; }
.wall__note { position: absolute; left: 0; right: 0; top: 96px; margin: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 18px; color: #4a423a; }

@media (max-width: 860px) {
  .viewer { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; }
  .viewer__stage { grid-row: 1; }
  .viewer__label { grid-column: 1; grid-row: 2; border-left: 0; border-top: 1px solid var(--faint); padding: 18px 16px 10px; }
  .vl__title { font-size: 30px; }
  .vl__year { font-size: 19px; }
  .vl__meta { margin-top: 1rem; gap: 4px 16px; font-size: 12px; }
  .vl__palette { display: none; }
  .vl__actions { margin-top: 1rem; }
  .viewer__bar { grid-column: 1; grid-row: 3; border-left: 0; padding: 10px 16px 18px; }
  .vicon { width: 38px; height: 38px; }
  .viewer__hint { display: none; }
  .wall__note { top: 70px; font-size: 15px; padding: 0 16px; }
}

.noscript { padding: 40vh 24px; text-align: center; font-family: var(--serif); font-size: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
}
