/* ==========================================================================
   Raab Galerie — Website
   Gestaltung: Galerieweiß, Tinte, ein Akzent (Raab-Grün).
   Schriften: Instrument Serif (Display), Instrument Sans (Text). OFL, lokal.
   ========================================================================== */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/instrument-serif-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/instrument-serif-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/instrument-serif-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(../fonts/instrument-serif-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/instrument-sans-latin-wght-normal.woff2) format("woff2-variations"), url(../fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2-variations"), url(../fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url(../fonts/instrument-sans-latin-wght-italic.woff2) format("woff2-variations"), url(../fonts/instrument-sans-latin-wght-italic.woff2) format("woff2"); }

:root {
  --wall: #E9EBDD;          /* helles Oliv: Grundfläche */
  --wall-rgb: 233, 235, 221;
  --paper: #F3F4EC;
  --stone: #DCDFCC;         /* Wand im Schatten */
  --stone-2: #D2D6BF;       /* Wand, Hover */
  --ink: #161514;           /* Tinte */
  --ink-2: #3A3835;
  --muted: #6B6D5E;
  --line: #C9CDB5;
  --accent: #23704A;        /* Raab-Grün, aus dem Logo von 1978 */
  --accent-soft: #DDEBE2;

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font: 400 17px/1.62 var(--sans); letter-spacing: .002em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
::selection { background: var(--ink); color: var(--wall); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--wall); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.plain { list-style: none; margin: 0; padding: 0; }

/* ---------- Typografie ---------- */
.display { font-family: var(--serif); font-size: clamp(34px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.012em; }
.display--sm { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; }
.display--xl { font-size: clamp(48px, 8vw, 120px); line-height: .95; letter-spacing: -.02em; }
.display--xxl { font-size: clamp(56px, 11vw, 176px); line-height: .9; letter-spacing: -.025em; }
.display em, .hero__title em { font-style: italic; }
.display a:hover { color: var(--ink-2); }
.eyebrow {
  font: 500 12px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px; display: flex; align-items: center; gap: .6em; flex-wrap: wrap;
}
.eyebrow a:hover { color: var(--ink); }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.caption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.link { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 1px; }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

.prose { font-size: 18px; line-height: 1.72; max-width: 68ch; }
.prose h2 { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; margin: 1.6em 0 .6em; }
.prose h3 { font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 2em 0 .8em; color: var(--muted); }
.prose > :first-child { margin-top: 0; }
.prose a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.prose strong { font-weight: 600; }
.prose ul { padding-left: 1.2em; }
.prose--sections h2 { padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose--sections h2:first-child { padding-top: 0; border-top: 0; }

/* ---------- Bildmarke ---------- */
.mark { width: 36px; height: 24px; fill: var(--ink); flex: none; }
.mark__accent { fill: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--wall); font: 500 14px/1 var(--sans); letter-spacing: .04em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--wall); }
.btn--light { background: var(--wall); color: var(--ink); border-color: var(--wall); }
.btn--light:hover { background: transparent; color: var(--wall); }
.btn--light-ghost { color: var(--wall); border-color: rgba(var(--wall-rgb), .4); }
.btn--light-ghost:hover { background: var(--wall); color: var(--ink); border-color: var(--wall); }
.arrow { width: 22px; height: 11px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.notice { background: var(--ink); color: var(--wall); text-align: center; padding: 10px var(--gutter); font-size: 14px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(var(--wall-rgb), .97); transition: box-shadow .3s, transform .45s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.brand { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; margin-right: auto; }
.brand .mark { grid-row: span 2; width: 42px; height: 28px; transition: transform .5s var(--ease); }
.brand:hover .mark { transform: translateX(2px); }
.brand__name { font-family: var(--serif); font-size: 27px; line-height: 1; letter-spacing: -.005em; }
.brand__sub { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 15px; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.status { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; white-space: nowrap; padding-left: 28px; border-left: 1px solid var(--line); }
.status__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--line); flex: none; }
.status__dot.is-open, .is-open > .status__dot { background: var(--accent); box-shadow: 0 0 0 0 rgba(35,112,74,.45); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(35,112,74,.4); } 70% { box-shadow: 0 0 0 8px rgba(35,112,74,0); } 100% { box-shadow: 0 0 0 0 rgba(35,112,74,0); } }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 10px; right: 10px; height: 1.3px; background: var(--ink); transition: transform .4s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: var(--header-h) 0 0; background: var(--wall); z-index: 49; padding: 32px var(--gutter); display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-family: var(--serif); font-size: 48px; line-height: 1.2; border-bottom: 1px solid var(--line); padding: 8px 0; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 50ms + 60ms); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu__foot { color: var(--muted); font-size: 15px; }

@media (max-width: 1100px) { .status { display: none; } }
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .brand__name { font-size: 24px; }
  .brand .mark { width: 36px; height: 24px; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(72px, 10vw, 150px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.section--wall { background: var(--stone); }
.section--ink { background: var(--ink); color: var(--wall); }
.section--ink .eyebrow, .section--ink .muted { color: #A39E95; }
.section--ink .lead { color: #D9D5CD; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section__sub { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); color: var(--ink); }
.page-head { padding: clamp(56px, 9vw, 140px) 0 clamp(24px, 3vw, 48px); }
.page-head .lead { margin-top: 28px; }
.framed { box-shadow: 0 1px 1px rgba(22,21,20,.06), 0 24px 50px -28px rgba(22,21,20,.45); }

/* ---------- Startseite ---------- */
.hero { padding: clamp(28px, 5vw, 80px) 0 clamp(40px, 5vw, 80px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.hero__title { font-family: var(--serif); font-size: clamp(56px, 8.6vw, 152px); line-height: .9; letter-spacing: -.03em; margin: 0 0 clamp(24px, 3vw, 44px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .09s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .18s; }
.is-loaded .hero__title .line > span { transform: none; }
.hero__title .line:nth-child(2) { padding-left: .9em; }
.hero__title .line:nth-child(3) { padding-left: .35em; }
.hero__intro { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; max-width: 38ch; color: var(--ink-2); margin: 0; }
.hero__frame { overflow: hidden; height: min(82vh, 56vw); }
.hero__frame img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

/* Wechselnde Hängung: Werke blenden nacheinander an derselben Wand ein */
.hang__stage { position: relative; display: block; background: var(--stone); aspect-ratio: 4 / 5; max-height: 76vh; width: 100%; overflow: hidden; }
.cycle__slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 13%; opacity: 0; transform: translateY(16px); transition: opacity 1.3s var(--ease), transform 1.6s var(--ease); pointer-events: none; }
.cycle__slide.is-active { opacity: 1; transform: none; pointer-events: auto; z-index: 1; }
.cycle__slide.is-leaving { opacity: 0; transform: translateY(-10px); transition-duration: .9s, 1.2s; }
.cycle__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 1px 1px rgba(22,21,20,.08), 2px 22px 36px -20px rgba(22,21,20,.55); }
.hang__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 14px; font-size: 14px; line-height: 1.4; }
.hang__caps { display: grid; flex: 1; min-width: 0; }
.cycle__cap { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(6px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.cycle__cap.is-active { opacity: 1; transform: none; transition-delay: .25s; }
.cycle__cap strong { font-weight: 500; display: block; }
.cycle__cap span { color: var(--muted); }
.hang__ctrl { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .06em; padding-top: 3px; }
.cycle__bar { width: 72px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.cycle__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.feature__stage { aspect-ratio: 5 / 4; max-height: 72vh; }
.feature__stage .cycle__slide { padding: 9%; }
a:hover > .hang__stage .cycle__slide.is-active img { transform: translateY(-4px); }
.hang__stage img { transition: transform .7s var(--ease); }

.hide-sm { display: inline; }
.wide-figure { margin: 0; }

.feature__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.feature__text .display { margin-bottom: 18px; }
.feature__dates, .x-head__dates { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); margin-bottom: 12px; }
.feature__artists { color: var(--ink-2); }
.feature__artists a:hover { text-decoration: underline; }
.feature__teaser { color: var(--muted); max-width: 52ch; margin-bottom: 32px; }
.feature__media { display: block; width: 100%; }
.feature .xlist { margin-top: 0; }
.feature .section__sub { margin-top: clamp(48px, 6vw, 90px); }

.program__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 72px); }
.strip { overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.strip.is-dragging { cursor: grabbing; }
.strip__track { display: flex; align-items: flex-end; gap: clamp(36px, 4vw, 72px); width: max-content; padding: 0 var(--gutter) 8px; will-change: transform; }
.strip__item { display: flex; flex-direction: column; gap: 18px; flex: none; }
.strip__img { display: flex; align-items: flex-end; height: clamp(220px, 28vw, 380px); }
.strip__img img { height: 100%; width: auto; max-width: 46vw; object-fit: contain; object-position: bottom; box-shadow: 0 1px 1px rgba(22,21,20,.08), 0 22px 40px -26px rgba(22,21,20,.55); transition: transform .7s var(--ease); pointer-events: none; }
.strip__item:hover img { transform: translateY(-6px); }
.strip__cap { font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; max-width: 280px; }
.strip__cap strong { font-weight: 500; }
.strip__cap span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.legacy__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.legacy__numbers { display: grid; gap: 0; }
.num { display: grid; grid-template-columns: minmax(3.2ch, auto) 1fr; align-items: baseline; gap: 24px; border-top: 1px solid var(--line); padding: 18px 0 14px; }
.num:last-child { border-bottom: 1px solid var(--line); }
.num__v { font-family: var(--serif); font-size: clamp(64px, 8vw, 128px); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.num__l { color: var(--muted); font-size: 15px; }
.legacy__text .lead { max-width: 36ch; margin-bottom: 32px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 40px); }
.card { display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 5; background: var(--stone); display: flex; align-items: center; justify-content: center; padding: 14%; margin-bottom: 18px; overflow: hidden; transition: background .5s var(--ease); }
.card__img img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 16px 30px -20px rgba(22,21,20,.6); transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card:hover .card__img { background: var(--stone-2); }
.card__date { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.card__title { font-family: var(--serif); font-size: 24px; line-height: 1.15; }

.visit { border-top: 1px solid var(--ink); }
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.visit__links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; margin: 0 0 12px; }
.hours dt { color: inherit; } .hours dd { margin: 0; }
.hours--lg { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.3; gap: 2px 32px; }

@media (max-width: 900px) {
  .feature__grid, .legacy__grid, .visit__grid { grid-template-columns: minmax(0, 1fr); }
  .feature__media { order: -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num { grid-template-columns: 2.6em 1fr; gap: 20px; padding: 14px 0 10px; }
  .num__v { font-size: 56px; }
}

/* ---------- Ausstellungslisten ---------- */
.xlist { list-style: none; margin: 0; padding: 0; }
.xrow a { display: grid; grid-template-columns: minmax(170px, 1.1fr) 2.4fr 1.6fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .45s var(--ease), color .3s; }
.xrow a:hover { padding-left: 14px; }
.xrow__date { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.xrow__title { font-family: var(--serif); font-size: clamp(21px, 1.8vw, 27px); line-height: 1.15; }
.xrow__meta { font-size: 14px; color: var(--muted); }
.xrow__meta em { font-style: normal; color: var(--accent); margin-right: 6px; }
@media (max-width: 700px) {
  .xrow a { grid-template-columns: 1fr; gap: 4px; }
}

.xfeature-list { display: grid; gap: clamp(56px, 7vw, 110px); }
.xfeature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.xfeature__media { display: flex; justify-content: center; background: var(--stone); padding: clamp(32px, 6vw, 80px); }
.xfeature__media img { max-height: 60vh; width: auto; }
.xfeature .display { margin-bottom: 16px; }
.ph { display: flex; align-items: center; justify-content: center; height: 300px; } .ph .mark { width: 80px; height: 54px; opacity: .25; }
.empty { border-top: 1px solid var(--ink); padding-top: 32px; }
.empty .lead { max-width: 52ch; margin-bottom: 28px; }
@media (max-width: 900px) { .xfeature { grid-template-columns: 1fr; } }

.archive { background: var(--paper); }
.archive__grid { display: grid; grid-template-columns: 120px 1fr; gap: clamp(24px, 4vw, 64px); }
.years { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; scrollbar-width: none; }
.years a { font-size: 14px; color: var(--muted); padding: 3px 0 3px 14px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: color .2s, border-color .2s, padding .3s var(--ease); }
.years a:hover { color: var(--ink); }
.years a.is-active { color: var(--ink); border-color: var(--ink); padding-left: 20px; }
.year { margin-bottom: 56px; }
.year__label { font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); line-height: 1; border-bottom: 1px solid var(--ink); padding-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.year__label span { font: 13px var(--sans); color: var(--muted); }
@media (max-width: 800px) {
  .archive__grid { grid-template-columns: 1fr; }
  .years { position: sticky; top: var(--header-h); flex-direction: row; overflow-x: auto; background: var(--paper); z-index: 5; padding: 10px 0; max-height: none; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); }
  .years a { border-left: 0; border-bottom: 1px solid var(--line); padding: 4px 10px; }
  .years a.is-active { padding-left: 10px; border-color: var(--ink); }
}

/* ---------- Ausstellung ---------- */
.x-head { padding: clamp(48px, 7vw, 110px) 0 clamp(24px, 3vw, 40px); }
.x-head__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 100px); align-items: end; }
.x-head .display { margin-bottom: 24px; }
.x-head__artists { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.x-head__media { margin: 0; display: flex; justify-content: center; }
.x-head__media img { max-height: 72vh; width: auto; }
.views__grid { display: grid; gap: 32px; }
.views__grid figure { margin: 0; }
@media (max-width: 900px) { .x-head__grid { grid-template-columns: 1fr; } }

/* ---------- Künstlerverzeichnis ---------- */
.names { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(32px, 5vw, 80px); border-top: 1px solid var(--ink); }
.names__item { break-inside: avoid; }
.names__item a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.names__name { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; letter-spacing: -.01em; transition: transform .5s var(--ease), color .3s; }
.names__item a:hover .names__name { transform: translateX(12px); }
.names__count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.names__thumb { display: none; }
@media (max-width: 800px) { .names { columns: 1; } }
@media (hover: none) {
  .names__item a { justify-content: flex-start; align-items: center; }
  .names__thumb { display: block; width: 56px; height: 56px; flex: none; background: var(--stone); }
  .names__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .names__count { margin-left: auto; }
}

.ptiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 32px); }
.ptile a { display: flex; flex-direction: column; }
.ptile__stage { position: relative; display: block; aspect-ratio: 1; background: var(--stone); overflow: hidden; margin-bottom: 14px; transition: background .5s var(--ease); }
.ptile__stage .cycle__slide { padding: 14%; }
.ptile__stage img { transition: transform .8s var(--ease); }
.ptile a:hover .ptile__stage { background: var(--stone-2); }
.ptile a:hover .cycle__slide.is-active img { transform: scale(1.035); }
.ptile__name { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; border-top: 1px solid var(--ink); padding-top: 10px; transition: transform .5s var(--ease); }
.ptile a:hover .ptile__name { transform: translateX(6px); }
.ptile__meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 1100px) { .ptiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ptile__stage .cycle__slide { padding: 12%; } }

.az { display: flex; flex-wrap: wrap; gap: 2px; }
.az a, .az span { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.az span { color: var(--line); }
.az a:hover { background: var(--ink); color: var(--wall); }
.az-grid { columns: 4 220px; column-gap: 40px; }
.az-group { break-inside: avoid; margin-bottom: 28px; }
.az-group__l { font-family: var(--serif); font-size: 32px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.az-group li a { display: inline-block; padding: 3px 0; color: var(--ink-2); transition: color .2s, transform .35s var(--ease); }
.az-group li a:hover { transform: translateX(6px); color: var(--ink); }
.az-group li a.is-program::after { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-left: 8px; vertical-align: middle; }

/* Vorschau, die dem Cursor folgt */
.preview { position: fixed; left: 0; top: 0; width: 260px; pointer-events: none; z-index: 60; opacity: 0; transform: translate3d(-50%, -50%, 0); transition: opacity .3s var(--ease); }
.preview.is-on { opacity: 1; }
.preview img { width: 100%; height: auto; box-shadow: 0 30px 60px -30px rgba(22,21,20,.6); transform: scale(.92); transition: transform .5s var(--ease); }
.preview.is-on img { transform: scale(1); }
@media (hover: none) { .preview { display: none; } }

/* ---------- Künstlerseite ---------- */
.artist-head { padding: clamp(48px, 7vw, 110px) 0 clamp(20px, 2vw, 32px); }
.artist-head__name { margin-bottom: clamp(20px, 3vw, 40px); }
.artist-head__meta { max-width: 760px; }
.artist-head__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 16px; margin-top: 24px; }
.artist-head__bar p { margin: 0; }
.toggle { display: inline-flex; border: 1px solid var(--ink); }
.toggle button { padding: 9px 16px; font-size: 13px; letter-spacing: .04em; transition: background .3s, color .3s; }
.toggle button[aria-selected="true"] { background: var(--ink); color: var(--wall); }

/* Wörter-Animation für Überschriften */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
[data-split].is-in .w > span { transform: none; }

/* Die Wand: Werke maßstabsgetreu auf Augenhöhe gehängt */
.works[data-view="wall"] .grid-view { display: none; }
.works[data-view="grid"] .wall { display: none; }
.wall { position: relative; background: var(--stone); }
.wall__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.wall__sticky::before { /* sanftes Deckenlicht */
  content: ""; position: absolute; inset: 0 0 auto; height: 60%; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%);
}
.wall__track { position: relative; flex: 1; display: flex; align-items: center; gap: var(--gap, 80px); padding: 0 max(var(--gutter), 12vw); width: max-content; will-change: transform; }
.wall__item { margin: 0; position: relative; top: calc(var(--lift, 0) * 1px); flex: none; display: flex; flex-direction: column; align-items: center; }
.wall__art { display: block; position: relative; }
.wall__art img { width: var(--w, auto); height: var(--h, 46vh); object-fit: cover; box-shadow: 0 1px 1px rgba(22,21,20,.1), 2px 18px 28px -14px rgba(22,21,20,.45); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.wall__art:hover img { transform: translateY(-3px); box-shadow: 0 1px 1px rgba(22,21,20,.1), 4px 28px 40px -16px rgba(22,21,20,.5); }
.wall__label { position: absolute; top: 100%; left: 0; margin-top: 22px; width: max(100%, 200px); max-width: 300px; font-size: 13px; line-height: 1.4; display: flex; flex-direction: column; gap: 2px; }
.wall__title { font-weight: 500; }
.wall__tech { color: var(--muted); }
.wall__status { color: var(--accent); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.wall__floor { position: relative; display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter) 22px; font-size: 12px; color: var(--muted); border-top: 1px solid rgba(22,21,20,.08); }
.wall__scale { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.wall__scale i { display: block; width: var(--m, 100px); height: 7px; border: 1px solid var(--ink-2); border-top: 0; }
.wall__progress { flex: 1; height: 1px; background: rgba(22,21,20,.12); position: relative; }
.wall__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.wall__hint { white-space: nowrap; }
.wall.is-native .wall__sticky { position: relative; height: auto; min-height: 78svh; }
.wall.is-native .wall__track { overflow-x: auto; width: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-top: 40px; padding-bottom: 100px; scrollbar-width: none; }
.wall.is-native .wall__track::-webkit-scrollbar { display: none; }
.wall.is-native .wall__item { scroll-snap-align: center; }
.wall.is-native .wall__progress { display: none; }
.wall.is-native .wall__floor { justify-content: space-between; }
html:not(.js) .wall__art img { height: 50vh; }

.grid-view { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.masonry { columns: 3 260px; column-gap: clamp(24px, 3vw, 48px); }
.masonry__item { break-inside: avoid; margin: 0 0 clamp(32px, 4vw, 56px); }
.masonry__item button { display: block; width: 100%; background: var(--stone); padding: 10%; transition: background .4s var(--ease); }
.masonry__item button:hover { background: var(--stone-2); }
.masonry__item img { width: 100%; box-shadow: 0 14px 28px -18px rgba(22,21,20,.55); transition: transform .7s var(--ease); }
.masonry__item button:hover img { transform: scale(1.025); }
.masonry__item figcaption { font-size: 14px; margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }
.masonry__item figcaption strong { font-weight: 500; }
.masonry__item figcaption em { font-style: normal; color: var(--accent); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

.bio__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 110px); }
.bio__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.bio__img { max-width: 320px; margin-top: 24px; }
.bio__text.is-collapsible .bio__inner { max-height: 640px; overflow: hidden; position: relative; transition: max-height .9s var(--ease); }
.bio__text.is-collapsible .bio__inner::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(rgba(var(--wall-rgb), 0), var(--wall)); transition: opacity .5s; }
.bio__text.is-open .bio__inner::after { opacity: 0; }
.bio__more { margin-top: 16px; }
.bio__text.is-open .bio__more .arrow { transform: rotate(-90deg); }
@media (max-width: 900px) { .bio__grid { grid-template-columns: 1fr; } .bio__aside { position: static; } }

.inquiry { border-top: 1px solid var(--ink); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.inquiry .lead { margin: 0; max-width: 52ch; }

.pager { display: flex; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: clamp(72px, 9vw, 130px); }
.pager a { display: flex; flex-direction: column; max-width: 46%; }
.pager__next { text-align: right; margin-left: auto; align-items: flex-end; }
.pager__t { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; transition: transform .5s var(--ease); }
.pager__prev:hover .pager__t { transform: translateX(-8px); }
.pager__next:hover .pager__t { transform: translateX(8px); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: var(--wall); display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.lightbox[hidden] { display: none; }
.lightbox.is-entering { animation: lb-in .5s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__stage { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 6vh, 80px) clamp(56px, 7vw, 110px); min-height: 0; background: var(--stone); position: relative; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 1px 1px rgba(22,21,20,.1), 2px 30px 60px -30px rgba(22,21,20,.6); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.lightbox__img.is-switching { opacity: 0; transform: translateX(calc(var(--dir, 1) * 24px)); }
.lightbox__info { padding: 96px 36px 36px; display: flex; flex-direction: column; overflow-y: auto; border-left: 1px solid var(--line); }
.lightbox__artist { font-size: 15px; margin-bottom: 4px; }
.lightbox__title { font-family: var(--serif); font-size: 36px; line-height: 1.08; margin-bottom: 24px; }
.lightbox__dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 14px; margin: 0 0 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.lightbox__dl dt { color: var(--muted); } .lightbox__dl dd { margin: 0; }
.lightbox__price { font-family: var(--serif); font-size: 26px; }
.lightbox__ask { align-self: flex-start; margin-top: auto; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.lightbox__close svg { width: 24px; height: 24px; transition: transform .4s var(--ease); }
.lightbox__close:hover svg { transform: rotate(90deg); }
.lightbox__nav { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; display: flex; align-items: center; justify-content: center; }
.lightbox__nav svg { width: 26px; height: 13px; }
.lightbox__prev { left: 8px; } .lightbox__next { left: calc(100% - 360px - 64px); }
.lightbox__prev:hover svg { transform: translateX(-4px); transition: transform .3s; }
.lightbox__count { margin-bottom: 28px; }
@media (max-width: 900px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lightbox__stage { padding: 64px 16px 16px; }
  .lightbox__info { padding: 20px var(--gutter) 28px; border-left: 0; border-top: 1px solid var(--line); max-height: 42vh; }
  .lightbox__title { font-size: 28px; margin-bottom: 14px; }
  .lightbox__count { margin-bottom: 10px; }
  .lightbox__nav { top: auto; bottom: calc(42vh + 8px); }
  .lightbox__next { left: auto; right: 8px; }
  .lightbox__ask { margin-top: 12px; }
}

/* ---------- Galerie / Über uns ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(40px, 7vw, 120px); }
.timeline ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ink); }
.timeline li { padding: 0 0 26px 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 12px; width: 7px; height: 7px; background: var(--wall); border: 1px solid var(--ink); }
.timeline li:first-child::before { background: var(--accent); border-color: var(--accent); }
.timeline__y { font-family: var(--serif); font-size: 30px; line-height: 1.2; display: block; }
.timeline p { color: var(--ink-2); font-size: 16px; margin: 4px 0 0; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.team__img { aspect-ratio: 4/5; overflow: hidden; margin-bottom: 16px; background: var(--wall); }
.team__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s; }
.team__p:hover .team__img img { filter: none; }
.team__name { font-family: var(--serif); font-size: 30px; line-height: 1.1; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 6px; }
.team p { margin: 0 0 4px; font-size: 15px; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__info .eyebrow { margin-top: 40px; }
.contact__info .display { margin-bottom: 24px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-2);
  padding: 10px 0; border-radius: 0; transition: border-color .3s;
}
.field textarea { resize: vertical; border: 1px solid var(--ink-2); padding: 12px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-color: #A23B2A; }
.field small, .err { color: #A23B2A; font-size: 13px; }
.check { display: flex; gap: 12px; font-size: 14px; color: var(--ink-2); align-items: flex-start; }
.check input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.form .btn { justify-self: start; margin-top: 8px; }
.form-work { display: flex; gap: 18px; align-items: center; padding: 16px; background: var(--stone); margin-bottom: 28px; }
.form-work img { width: 84px; height: 84px; object-fit: contain; }
.form-work p { margin: 0; } .form-work .eyebrow { margin-bottom: 4px; }
.success { border-top: 1px solid var(--ink); padding-top: 32px; }
.success .mark { width: 48px; height: 32px; margin-bottom: 24px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.page-404 { min-height: 60vh; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFCAC1; padding: clamp(64px, 8vw, 110px) 0 32px; font-size: 15px; }
.section--ink + .site-footer { border-top: 1px solid #2B2926; }
.site-footer .eyebrow { color: #8C877E; margin-bottom: 14px; }
.site-footer a:hover { color: var(--wall); }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid #2B2926; margin-bottom: 48px; }
.site-footer__brand { font-family: var(--serif); font-size: clamp(44px, 6vw, 88px); line-height: 1; color: var(--wall); display: flex; align-items: center; gap: .3em; letter-spacing: -.02em; }
.site-footer__brand .mark { width: .9em; height: .6em; fill: var(--wall); }
.site-footer__claim { margin: 0; color: #8C877E; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.site-footer__grid li { margin-bottom: 4px; }
.site-footer .hours { font-size: 15px; }
.social { display: flex; gap: 16px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid #2B2926; font-size: 13px; color: #8C877E; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Mobil: ruhigere Typografie, mehr Luft ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__title { font-size: clamp(50px, 14.5vw, 96px); line-height: .94; }
  .hero__title .line:nth-child(n) { padding-left: 0; }
  .hero__title em { font-style: normal; }
  .hang__stage { aspect-ratio: 1; max-height: none; }
  .cycle__slide { padding: 11%; }
  .feature__stage { aspect-ratio: 1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: .12em; margin-bottom: 14px; }
  .display { font-size: clamp(32px, 9vw, 40px); line-height: 1.06; }
  .display--xl { font-size: clamp(44px, 13vw, 64px); }
  .lead { font-size: 18px; }
  .section { padding: 64px 0; }
  .feature__grid { gap: 28px; }
  .feature__teaser { margin-bottom: 24px; }
  .feature__dates, .x-head__dates { font-size: 21px; }
  .cards { gap: 28px 16px; }
  .card__title { font-size: 20px; }
  .card__img { padding: 12%; }
  .hang__foot { font-size: 13px; }
  .btn { padding: 13px 18px; }
  .xrow__title { font-size: 21px; }
  .names__name { font-size: 30px; }
  .prose { font-size: 17px; line-height: 1.66; }
}

/* ---------- Einblend-Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal--img { clip-path: inset(8% 8% 8% 8%); opacity: 0; transform: none; transition: clip-path 1.3s var(--ease), opacity .8s var(--ease); }
.js .reveal--img.is-in { clip-path: inset(0 0 0 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal, .js .reveal--img { opacity: 1; transform: none; clip-path: none; }
  [data-split] .w > span, .js .hero__title .line > span { transform: none; }
}
