/* Jost Merscher – Version 2
   Leitidee: ein Gang durch eine Ausstellung. Eingangswand, Hängung, Verzeichnis, dann Räume mit eigener Wandfarbe.
   Schriften: Source Serif 4 (Wandtext, Titel), Libre Franklin (Schildchen, Bedienung). Beide SIL OFL, lokal. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-serif-4-latin.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: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-serif-4-italic-latin.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: "Libre Franklin"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/libre-franklin-latin.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: "Libre Franklin"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/libre-franklin-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Raumfarben: registriert, damit der Wechsel zwischen den Räumen weich ueberblendet */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #f5f5f3; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #171717; }
@property --fg-2 { syntax: "<color>"; inherits: true; initial-value: #474744; }
@property --fg-3 { syntax: "<color>"; inherits: true; initial-value: #5f5f5a; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #d4d4cf; }

:root {
  --bg: #f5f5f3; --fg: #171717; --fg-2: #474744; --fg-3: #5f5f5a; --line: #d4d4cf;
  --oxide: #9a3b22;
  --night: #111110;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --wrap: min(1320px, 100% - 2 * var(--gutter));
  --header: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
  transition: --bg 1.1s var(--ease-io), --fg 1.1s var(--ease-io), --fg-2 1.1s var(--ease-io), --fg-3 1.1s var(--ease-io), --line 1.1s var(--ease-io);
}
:root[data-room="bibliothek"] { --bg: #e4e3de; --fg: #171717; --fg-2: #42423f; --fg-3: #55554f; --line: #c9c8c1; }
:root[data-room="abend"] { --bg: #141413; --fg: #f1efe9; --fg-2: #c4c1b8; --fg-3: #9c998f; --line: #34332f; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 8px); background: var(--bg); scrollbar-color: color-mix(in srgb, var(--fg) 30%, var(--bg)) var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--serif); font-optical-sizing: auto;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; caret-color: var(--oxide); }
::selection { background: var(--fg); color: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--oxide); outline-offset: 3px; border-radius: 2px; }
:root[data-room="abend"] :focus-visible { outline-color: #e0a58e; }
.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; font: 500 14px/1 var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }

/* Kopf */
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--header); pointer-events: none; }
.site-header::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1); opacity: 0; transition: opacity .4s; }
.site-header.is-solid::before { opacity: 1; }
.bar { position: relative; height: 100%; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bar > * { pointer-events: auto; }
.brand { font: 450 19px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; padding: 13px 0; }
.nav { display: flex; gap: clamp(14px, 2.2vw, 34px); }
.nav a { font: 500 14px/1 var(--sans); text-decoration: none; padding: 15px 0; position: relative; color: var(--fg-2); transition: color .15s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Die Wand ---------- */
.anchor-top { position: absolute; top: 0; }
.wall { position: relative; }
.wall-track { padding: calc(var(--header) + 24px) var(--gutter) 64px; }
.wall-intro { padding: 6vh 0 10vh; }
.title { margin: 0; font-weight: 330; font-size: clamp(4rem, 9.6vw, 10.5rem); line-height: .9; letter-spacing: -.045em; }
.title .line { display: block; overflow: hidden; padding: .1em 0 .14em; margin: -.1em 0 -.14em; }
.title .word { display: block; }
.title .ch { display: inline-block; }
.wall-text { margin-top: clamp(24px, 4vh, 44px); max-width: 30ch; }
.lead { margin: 0; font-size: clamp(1.2rem, 1.55vw, 1.5rem); line-height: 1.35; font-weight: 380; }
.small { margin: 10px 0 0; font: 400 14px/1.55 var(--sans); color: var(--fg-3); }
.walk-hint { margin-top: clamp(28px, 5vh, 56px); display: inline-flex; align-items: center; gap: 14px; font: 500 14px/1 var(--sans); text-decoration: none; padding: 14px 0; color: var(--fg); }
.walk-hint svg { width: 40px; height: 12px; }
.is-h .walk-hint svg { animation: nudge 2.6s var(--ease) 2s 3; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(8px); } }

.hang { margin: 0 0 clamp(56px, 10vh, 120px); position: relative; }
.art { display: block; position: relative; overflow: hidden; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); aspect-ratio: var(--ar);
  box-shadow: 0 1px 1px rgb(0 0 0 / .05), 0 24px 44px -26px rgb(0 0 0 / .38); cursor: zoom-in; }
.art img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 0; }
.label { margin-top: 14px; display: grid; gap: 1px; font: 400 12.5px/1.45 var(--sans); color: var(--fg-3); }
.label b { font: 400 15px/1.35 var(--serif); color: var(--fg); }
.wall-end { padding: 4vh 0 2vh; max-width: 30ch; }
.wall-end p { margin: 0; font-size: 1.25rem; line-height: 1.4; }
.wall-meter { display: none; }

/* Telefon und Tablet: untereinander, jedes Werk wird beim Erreichen gehängt */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.is-h) .hang .art { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-io); }
  .js:not(.is-h) .hang .art img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
  .js:not(.is-h) .hang .label { opacity: 0; transform: translateY(8px); transition: opacity .6s .5s, transform .8s var(--ease) .5s; }
  .js:not(.is-h) .hang.is-in .art { clip-path: inset(0 0 0 0); }
  .js:not(.is-h) .hang.is-in .art img { transform: none; }
  .js:not(.is-h) .hang.is-in .label { opacity: 1; transform: none; }
}

/* Breite Schirme ohne Wandfahrt (weniger Bewegung, kein Skript): jedes Werk ganz im Bild, etwa in Wandgroesse */
@media (min-width: 721px) {
  :root:not(.is-h) .hang .art { height: min(calc(var(--h) * 1svh), calc(100svh - var(--header) - 96px)); width: auto; max-width: 100%; }
}

/* Desktop: die Wand steht, man geht an ihr entlang */
.is-h .wall { height: var(--wall-h, 600vh); }
.is-h .wall-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.is-h .wall-track { position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; padding: var(--header) 0 0 var(--gutter); will-change: transform; }
.is-h .wall-intro { flex: none; width: max(50vw, 600px); padding: 0 4vw 0 0; }
.is-h .hang { flex: none; height: calc(var(--h) * 1svh); aspect-ratio: var(--ar); margin: 0 0 0 calc(var(--gap) * 1vw + 200px); }
.is-h .hang:first-of-type { margin-left: calc(var(--gap) * 1vw); }
.is-h .art { height: 100%; clip-path: inset(0 0 calc((1 - var(--in, 1)) * 100%) 0); }
.is-h .art img { transform: scale(calc(1 + (1 - var(--in, 1)) * .2)) translateX(calc((1 - var(--in, 1)) * var(--drift, 0) * 1px)); }
.is-h .hang:first-of-type .label { left: auto; right: calc(100% + 22px); top: auto; bottom: 0; text-align: right; }
.is-h .label { position: absolute; left: calc(100% + 22px); bottom: 0; width: 170px; margin: 0; opacity: var(--label, 1); transform: translateY(calc((1 - var(--label, 1)) * 10px)); }
.is-h .wall-end { flex: none; width: auto; max-width: none; margin-left: calc(10vw + 200px); padding: 0 var(--gutter) 0 0; }
.is-h .wall-end p { width: 20ch; }
.is-h .wall-meter { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 18px; font: 500 12.5px/1 var(--sans); color: var(--fg-3); font-variant-numeric: tabular-nums; pointer-events: none; }
.meter-line { position: relative; width: 140px; height: 1px; background: var(--line); }
.meter-line span { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Abschnitte ---------- */
section:not(.wall) { padding-block: clamp(96px, 16vh, 180px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 6vh, 64px); }
h2 { margin: 0; font-weight: 340; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .95; letter-spacing: -.04em; }
h2 .w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .12em; margin: -.08em 0 -.12em; }
h2 .w-in { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js h2[data-rise] .w-in { transform: translateY(105%); transition: transform 1.1s var(--ease) calc(var(--i, 0) * 70ms); }
  .js h2[data-rise].is-in .w-in { transform: none; }
}
.section-note { margin: 16px 0 0; color: var(--fg-2); max-width: 52ch; text-wrap: pretty; }

/* ---------- Verzeichnis ---------- */
.filter { display: flex; gap: 4px; flex-wrap: wrap; }
.filter button { border: 1px solid transparent; background: none; cursor: pointer; padding: 10px 14px; min-height: 44px; font: 500 14px/1 var(--sans);
  color: var(--fg-2); border-radius: 999px; transition: color .15s, border-color .2s, background-color .25s; }
.filter button:hover { color: var(--fg); border-color: var(--line); }
.filter button[aria-pressed="true"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.filter button:active { transform: scale(.97); }
.filter .count { font-variant-numeric: tabular-nums; color: var(--fg-3); margin-left: 5px; }
.filter button[aria-pressed="true"] .count { color: color-mix(in srgb, var(--bg) 70%, var(--fg)); }

.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.row { border-top: 1px solid var(--line); position: relative; }
.row a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 9rem minmax(0, 15rem) 2rem; align-items: baseline; gap: 16px; padding: 22px 0; text-decoration: none; position: relative; cursor: zoom-in; }
.row a::before { content: ""; position: absolute; inset: -1px 0 auto; border-top: 1px solid var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.row .nr { font: 500 13px/1 var(--sans); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.row .t { font: 400 clamp(1.3rem, 2vw, 1.75rem)/1.15 var(--serif); letter-spacing: -.015em; transition: transform .55s var(--ease); }
.row .k, .row .m { font: 400 14px/1.4 var(--sans); color: var(--fg-2); }
.row .m { color: var(--fg-3); }
.row .go { justify-self: end; width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .45s var(--ease); align-self: center; }
.row .thumb { display: none; }
.row a:hover::before, .row a:focus-visible::before { transform: scaleX(1); }
.row a:hover .t { transform: translateX(14px); }
.row a:hover .go, .row a:focus-visible .go { opacity: 1; transform: none; }
.peek { position: fixed; left: 0; top: 0; z-index: 25; width: 260px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: auto; box-shadow: 0 30px 60px -28px rgb(0 0 0 / .45); clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease); }
.peek.is-on img { clip-path: inset(0 0 0 0); }
@media (hover: none), (pointer: coarse) { .peek { display: none; } }

/* ---------- Bibliothek ---------- */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4.5vw, 72px); list-style: none; margin: 0; padding: 0; }
.book { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .js .book { opacity: 0; transform: translateY(48px); transition: opacity .9s var(--ease) calc(var(--i) * 110ms), transform 1.2s var(--ease) calc(var(--i) * 110ms); }
  .js .books.is-in .book { opacity: 1; transform: none; }
}
.book3d { position: relative; display: block; width: min(100%, 290px); aspect-ratio: var(--ba, 2 / 3); perspective: 1600px; text-decoration: none; color: inherit; }
.pages { position: absolute; inset: 1.2% 0 1.2% 2%; background: #fbfaf6; border-radius: 1px 3px 3px 1px; display: grid; place-items: center; padding: 18%;
  box-shadow: inset -2px 0 0 #e8e5dd, inset -4px 0 0 #f6f4ee, inset -6px 0 0 #e6e3da, 0 24px 40px -22px rgb(0 0 0 / .4); }
.leaf { font: italic 400 15px/1.4 var(--serif); color: #4a4843; text-align: center; opacity: 0; transition: opacity .35s .12s; }
.cover { position: absolute; inset: 0; container-type: inline-size; background: #eee;
  transform-origin: left center; transform: rotateY(0); transition: transform 1s var(--ease), box-shadow 1s var(--ease); backface-visibility: hidden; overflow: hidden;
  box-shadow: 0 1px 1px rgb(0 0 0 / .06), 0 12px 26px -10px rgb(30 25 20 / .3), 0 34px 60px -34px rgb(30 25 20 / .4); }
.cover::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(0 0 0 / .16) 0, rgb(255 255 255 / .12) 1.8%, transparent 4.5%, transparent 92%, rgb(0 0 0 / .06)); }
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 40%, rgb(0 0 0 / .18)); opacity: 0; transition: opacity 1s var(--ease); }
.book3d:hover .cover, .book3d:focus-visible .cover { transform: rotateY(-38deg); box-shadow: 0 1px 1px rgb(0 0 0 / .06), 18px 20px 40px -18px rgb(30 25 20 / .45); }
.book3d:hover .cover::after, .book3d:focus-visible .cover::after { opacity: 1; }
.book3d:hover .leaf, .book3d:focus-visible .leaf { opacity: 1; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.book-info { padding-top: 26px; }
.book-info h3 { margin: 0; font: 400 1.35rem/1.2 var(--serif); letter-spacing: -.01em; }
.book-meta { margin: 6px 0 0; font: 400 13.5px/1.5 var(--sans); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.book-text { margin: 12px 0 0; color: var(--fg-2); font-size: 16px; line-height: 1.55; max-width: 38ch; text-wrap: pretty; }

/* ---------- Abend: Person und Kontakt ---------- */
.person .wrap { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); row-gap: clamp(40px, 7vh, 80px); }
.person h2 { grid-column: 1 / -1; }
.statement { grid-column: 1 / span 10; margin: 0; font: 330 clamp(2rem, 4.4vw, 4.2rem)/1.1 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.statement .w { color: color-mix(in srgb, var(--fg) calc(28% + var(--k, 1) * 72%), var(--bg)); }
.facts { grid-column: 5 / -1; margin: 0; border-top: 1px solid var(--fg); }
.facts div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 13px/1.6 var(--sans); color: var(--fg-3); padding-top: 3px; }
.facts dd { margin: 0; font-size: 18px; line-height: 1.5; }

.contact .wrap { display: grid; gap: 22px; }
.contact-note { margin: 10px 0 0; color: var(--fg-2); }
.mail { justify-self: start; font: 330 clamp(1.45rem, 6.6vw, 6rem)/1.1 var(--serif); letter-spacing: -.035em; text-decoration: none; white-space: nowrap; padding: 6px 0; }
.mail .ch { display: inline-flex; flex-direction: column; height: 1.1em; overflow: hidden; vertical-align: top; }
.mail .ch > span { display: block; height: 1.1em; transition: transform .7s var(--ease) calc(var(--i) * 14ms); }
.mail .ch > span + span { font-style: italic; }
.mail:hover .ch > span, .mail:focus-visible .ch > span { transform: translateY(-100%); }
.contact-side { margin: 18px 0 0; font: 400 14px/1.6 var(--sans); color: var(--fg-2); }

.site-footer { padding: 30px 0 44px; border-top: 1px solid var(--line); font: 400 13px/1.5 var(--sans); color: var(--fg-3); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; padding: 12px 0; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }

.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font: 500 14px/1 var(--sans); text-decoration: none; padding: 12px 0; }
.text-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease); }
.text-link:hover span { background-size: 0 1px; background-position: 100% 100%; }
.text-link svg { width: 14px; height: 14px; }

/* Entwurfshinweis */
.draft { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 999px;
  background: #171717; color: #e9e7e1; font: 400 12.5px/1.3 var(--sans); box-shadow: 0 10px 30px -12px rgb(0 0 0 / .4); transition: opacity .6s; }
.draft strong { color: #fff; font-weight: 600; }
.draft button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.draft button:hover { background: rgb(255 255 255 / .1); }
.draft svg { width: 12px; height: 12px; }
.draft[hidden] { display: none; }

/* Zeiger: ein ruhiger Kreis mit Wort, nur ueber Werken */
.cursor { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; display: none; }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } }
.cursor span { position: absolute; left: -46px; top: -46px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fg); color: var(--bg); font: 500 12.5px/1 var(--sans); letter-spacing: .02em; transform: scale(0); transition: transform .45s var(--ease); }
.cursor.is-on span { transform: scale(1); }

/* ---------- Werkansicht ---------- */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #ece9e2; overflow: hidden; }
.viewer::backdrop { background: transparent; }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
.viewer-bg { position: absolute; inset: 0; background: var(--night); }
.viewer-top, .viewer-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(14px, 3vw, 36px); }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(14px, 4vw, 64px); }
.viewer-img { max-width: 100%; max-height: calc(100svh - 170px); width: auto; height: auto; box-shadow: 0 0 0 0 rgb(0 0 0 / 0), 0 40px 90px -40px rgb(0 0 0 / .8); transform-origin: 0 0; }
.viewer-count { font: 400 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: #a8a398; }
.viewer-caption h3 { margin: 0; font: 400 1.3rem/1.2 var(--serif); }
.viewer-caption p { margin: 5px 0 0; font: 400 13px/1.4 var(--sans); color: #a8a398; }
.viewer-nav { display: flex; gap: 10px; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgb(236 233 226 / .2); background: transparent; color: inherit; border-radius: 50%; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .12s; }
.icon-btn:hover { background: rgb(236 233 226 / .08); border-color: rgb(236 233 226 / .45); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }
.viewer :focus-visible { outline-color: #e0a58e; }

/* Eroeffnung */
.intro-frame { position: fixed; left: 0; top: 0; z-index: 20; pointer-events: none; overflow: visible; color: var(--fg); display: none; }
.intro .title .word { transform: translateY(110%); }
.intro [data-intro="fade"] { opacity: 0; }
.intro .hang:first-of-type .art { clip-path: inset(0 0 100% 0); }
.intro .hang:first-of-type .label { opacity: 0; }
.intro .draft { opacity: 0; }

/* ---------- Breiten ---------- */
@media (max-width: 1000px) {
  .row a { grid-template-columns: 3.2rem minmax(0, 1fr) 7rem 2rem; }
  .row .m { display: none; }
  .statement { grid-column: 1 / -1; }
  .facts { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .brand { display: none; }
  .bar { justify-content: flex-start; }
  .nav { gap: 16px; }
  .nav a { font-size: 13.5px; }
  .wall-intro { padding-top: 3vh; }
  .hang .art { width: 100%; }
  .filter { gap: 0; }
  .filter button { padding: 10px 11px; font-size: 13.5px; }
  .row a { grid-template-columns: 56px minmax(0, 1fr) 1.2rem; gap: 2px 14px; padding: 14px 0; align-items: center; }
  .row .nr, .row .m { display: none; }
  .row .t { grid-column: 2; grid-row: 1; font-size: 1.2rem; }
  .row .k { grid-column: 2; grid-row: 2; font-size: 13px; }
  .row .thumb { display: block; grid-column: 1; grid-row: 1 / span 2; width: 56px; aspect-ratio: 1; object-fit: cover; }
  .row .go { grid-row: 1 / span 2; grid-column: 3; opacity: 1; transform: none; }
  .books { grid-template-columns: 1fr; gap: 64px; }
  .book3d { width: 72%; }
  .facts div { grid-template-columns: 6.5em 1fr; }
  .viewer-img { max-height: calc(100svh - 190px); }
  .draft { left: 16px; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  .cover, .mail .ch > span, .row .t, .peek img { transition: none; }
}
@media print {
  .site-header, .draft, .filter, .viewer, .cursor, .walk-hint, .wall-meter { display: none !important; }
}
