/* =========================================================================
   Brigitte Hök - Stylesheet
   Gestaltung: helle Galerie (White Cube), ein Akzent (Zinnoberrot), keine Rundungen.
   Die Farbe kommt aus den Bildern, nicht aus der Oberfläche.
   ========================================================================= */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2-variations'), url('/fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-italic.woff2') format('woff2-variations'), url('/fonts/geist-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Light: neutrales Galerieweiß (kein Beige), fast schwarze Schrift */
  --bg: #fafaf9;
  --bg-2: #f0f0ee;
  --bg-3: #e7e7e4;
  --fg: #121211;
  --fg-2: #5c5b57;
  --fg-3: #74726d;
  --line: rgb(18 18 17 / 0.1);
  --line-strong: rgb(18 18 17 / 0.26); /* nur dekorative Kanten */
  --control: rgb(18 18 17 / 0.5); /* Kanten von Eingabefeldern: 3.5:1 auf --bg */
  --accent: #c43d24;
  --accent-soft: #b5361f;
  --on-fg: #fafaf9;
  --header-glass: rgb(250 250 249 / 0.92);
  --img-edge: rgb(18 18 17 / 0.07);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Schriftskala: größtes Wort 96px, Titel 44px, Labels 13px (bei 1440px) */
  --fs-display: clamp(2.75rem, 1.5rem + 5vw, 6.5rem);
  --fs-display-2: clamp(2.25rem, 1.4rem + 3vw, 4.5rem);
  --fs-title: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-label: 0.8125rem;

  --header-h: 72px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 1520px;
  --section: clamp(4rem, 7.5vw, 7rem);
  --page-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));

  /* Ebenen */
  --z-header: 50;
  --z-menu: 60;
  --z-dialog: 70;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--bg);
}
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: inherit; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--on-fg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; animation-timing-function: var(--ease-in-out); }

/* ---------- Utilities ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: calc(var(--z-dialog) + 1);
  padding: 0.75rem 1rem; background: var(--fg); color: var(--on-fg); font-size: 0.875rem;
  transform: translateY(-200%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Typografie: eine kurze Skala ---------- */
.display {
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
/* Seitentitel: das größte Wort einer Seite */
.hero__title, .page-head__title, .collection-head__title, .about-head__title, .contact__title {
  font-size: var(--fs-display);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-left: -0.05em;
}
/* zweite Ebene */
.feature__title, .showcase__title, .next-collection__title {
  font-size: var(--fs-display-2);
  letter-spacing: -0.035em;
}
/* Titelebene */
.section-title, .closing__title, .statement__quote p,
.form-status--sent h2, .form-status--mail h2, .mobile-menu li a {
  font-size: var(--fs-title);
}
/* Einleitungen */
.hero__lead, .collection-head__intro, .page-head__lead, .contact__lead {
  font-size: var(--fs-lead);
}
/* Labels: ein Stil für alle kleinen Beschriftungen */
.eyebrow, .next-collection__label, .exhibitions__label, .site-footer__label,
.facts dt, .lightbox__facts dt, .contact__direct dt {
  font-size: var(--fs-label);
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg-3);
}
.section-title {
  font-weight: 330;
  letter-spacing: -0.03em;
}

/* ---------- Buttons & Links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s var(--ease);
}
.button .icon { transition: transform 0.45s var(--ease); }
.button:hover .icon { transform: translateX(4px); }
.button:active { transform: scale(0.98); }
.button--solid { background: var(--fg); color: var(--on-fg); }
.button--solid:hover { background: var(--accent); color: var(--on-fg); }
.button--ghost { border-color: var(--line-strong); color: var(--fg); }
.button--ghost:hover { border-color: var(--fg); }
.button[disabled] { opacity: 0.6; pointer-events: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.3rem;
  font-size: 0.95rem;
  font-weight: 450;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.6s var(--ease), color 0.3s;
}
.text-link .icon { transition: transform 0.45s var(--ease); }
.text-link:hover { color: var(--accent-soft); }
.text-link:hover .icon { transform: translateX(4px); }

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  transition: border-color 0.3s, background-color 0.3s, color 0.3s, transform 0.2s var(--ease);
}
.icon-button:hover { border-color: var(--fg); background: var(--fg); color: var(--on-fg); }
.icon-button:active { transform: scale(0.96); }
.icon-button .icon { width: 1.25rem; height: 1.25rem; }

/* ---------- Header ---------- */
/* Ohne JavaScript bleibt der Glas-Hintergrund stehen; mit JS ist er oben auf der Seite durchsichtig. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s;
  border-bottom: 1px solid var(--line);
  background: var(--header-glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.js .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
}
.wordmark {
  font-size: 1rem;
  font-weight: 520;
  letter-spacing: -0.01em;
}
.site-nav ul { display: flex; gap: clamp(1.5rem, 3vw, 2.75rem); }
.site-nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 420;
  color: var(--fg-2);
  padding-block: 0.5rem;
  transition: color 0.3s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--fg); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; align-items: center; gap: 0.75rem; height: 2.75rem; font-size: 0.9rem; font-weight: 450; }
.menu-toggle__lines { display: grid; gap: 6px; width: 22px; }
.menu-toggle__lines span { height: 1px; background: currentColor; transition: transform 0.45s var(--ease); }
.menu-toggle[aria-expanded='true'] .menu-toggle__lines span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__lines span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 2rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu li a {
  display: block;
  padding-block: 0.25rem;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.mobile-menu__sub a { font-size: clamp(1.35rem, 6vw, 1.75rem) !important; color: var(--fg-2); padding-left: 1.25rem; }
.mobile-menu a[aria-current] { color: var(--accent-soft); }
.mobile-menu__mail { color: var(--fg-2); font-size: 0.95rem; }
/* offenes Menü: Kopfzeile immer deckend (schlägt auch die durchsichtige .js-Regel oben auf der Seite) */
.menu-open .site-header, .js .menu-open .site-header { background: var(--bg); z-index: calc(var(--z-menu) + 1); }
.menu-open { overflow: hidden; }

/* ---------- Intro-Animationen (CSS, ohne JS) ---------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

[data-intro] { animation: fade-up 1.1s var(--ease) 0.35s both; }

/* Scroll-Reveal (nur mit JS aktiv) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
/* Das Werk wiegt mehr als der Name (Bildspalte 1.2fr). Der Textblock endet genau an der Unterkante des Bildes:
   sein Abstand unten ist so hoch wie die Bildunterschrift (1rem Abstand plus 1.5rem Zeile). */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 6rem);
  min-height: 100dvh;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) clamp(1.5rem, 4vh, 2.75rem);
}
.hero__text { align-self: end; padding-bottom: calc(1rem + 1.5rem); }
/* Unterlänge des "g" nicht abschneiden: mehr Raum unten, per negativem Rand wieder ausgeglichen */
.hero__title .line { display: block; overflow: hidden; padding-top: 0.12em; margin-top: -0.12em; padding-bottom: 0.1em; margin-bottom: -0.06em; }
.hero__title .line > span { display: block; animation: rise 1.3s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.1s; }
.hero__lead {
  max-width: 31ch;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  line-height: 1.5;
  color: var(--fg-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: clamp(1.75rem, 3.5vh, 2.75rem); animation-delay: 0.5s; }

.hero__art {
  position: relative;
  min-height: 0;
  /* verfügbare Bildhöhe: Viewport minus Header, Abstände und Bildunterschrift (2.5rem) */
  --hmax: calc(100dvh - var(--header-h) - 1.5rem - clamp(1.5rem, 4vh, 2.75rem) - 2.5rem);
}
.hero__slide {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(100%, var(--hmax) * var(--r));
  opacity: 0;
  visibility: hidden;
  /* nacheinander statt überblendet: erst geht das alte Werk ganz zur Wand, dann kommt das neue.
     So stehen nie zwei Werke oder zwei Bildunterschriften übereinander. */
  transition: opacity 0.7s var(--ease-in-out), visibility 0s 0.7s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s var(--ease-in-out) 0.7s, visibility 0s; }
/* Folgeslides erst anzeigen (und laden), wenn main.js sie vorbereitet; ohne JS bleibt es beim ersten Werk */
.hero__slide[data-pending] { display: none; }
.hero__frame { display: block; }
.hero__frame img { width: 100%; }
.hero__slide figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5rem;
  color: var(--fg-2);
}
.hero__caption-title { margin-right: auto; font-style: italic; color: var(--fg); }
/* Pause für den Bildwechsel (WCAG 2.2.2), nur wo er läuft: Desktop, mit JS, ohne reduzierte Bewegung */
.hero__toggle { min-height: 1.5rem; padding-inline: 0.25rem; font-size: inherit; color: var(--fg-2); text-decoration: underline; text-underline-offset: 0.2em; }
.hero__toggle:hover { color: var(--fg); }
:root:not(.js) .hero__toggle { display: none; }
@media (prefers-reduced-motion: reduce), (max-width: 899px) {
  .hero__toggle { display: none; }
}

/* feine Kante, damit Werke mit weißem Grund sich vom Galerieweiß abheben */
.hero__frame img, .feature__frame img, .work__frame img, .showcase__frame img,
.lightbox__img, .insitu__item img {
  outline: 1px solid var(--img-edge);
  outline-offset: -1px;
}

/* ---------- Neue Kollektion ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  padding-block: var(--section);
}
.feature__head { position: sticky; top: calc(var(--header-h) + 3rem); align-self: start; }
.feature__title { margin: 1.5rem 0 2rem; }
.feature__intro { max-width: 34ch; color: var(--fg-2); margin-bottom: 2rem; }
.feature__collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
}
.feature__piece { display: block; }
.feature__piece--1 { grid-column: 1 / 9; }
.feature__piece--2 { grid-column: 9 / 13; margin-top: 45%; }
.feature__piece--3 { grid-column: 1 / 7; margin-top: clamp(3rem, 8vw, 8rem); }
.feature__frame { display: block; }
/* Wandschild: Titel kursiv; Technik und Maß; Preis und Werknummer */
.feature__caption { display: grid; gap: 0.1rem; margin-top: 0.85rem; font-size: 0.8125rem; color: var(--fg-2); }
.feature__caption-title { font-size: 0.9375rem; font-style: italic; color: var(--fg); }
.feature__piece:hover .feature__caption-title { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Im Raum ---------- */
/* digitale Raumvisualisierungen auf dem Seitengrund, ungeschnitten: feste Höhe, Breite aus dem Bild */
.insitu { padding-block: var(--section); }
.insitu__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.insitu__head .section-title, .insitu__lead { grid-column: 1; }
.insitu__lead { max-width: 46ch; color: var(--fg-2); margin-top: -0.5rem; }
.insitu__nav { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 0.5rem; }
.insitu__strip {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), (100vw - var(--max)) / 2);
  padding-inline: max(var(--gutter), (100vw - var(--max)) / 2);
  scrollbar-width: none;
  cursor: grab;
}
.insitu__strip::-webkit-scrollbar { display: none; }
.insitu__strip.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.insitu__strip.is-dragging img { pointer-events: none; }
.insitu__item { flex: none; scroll-snap-align: start; }
.insitu__item a { display: block; }
.insitu__item img { display: block; height: clamp(320px, 64vh, 720px); width: auto; }
.insitu__caption { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--fg-2); }

/* ---------- Kollektionen (Startseite) ---------- */
.collections-row { padding-block: var(--section); }
.collections-row .section-title { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- Statement ---------- */
.statement {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding-block: var(--section);
}
/* Atelierfoto: die Quelle ist schon schwarzweiß, kein Filter */
.statement__portrait { grid-column: 1 / 6; }
.statement__portrait img { width: 100%; }
.statement__quote { grid-column: 7 / 13; }
.statement__quote p {
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-indent: -0.42em;
}
.statement__quote footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; font-size: 0.9rem; color: var(--fg-2); }

/* ---------- Abschluss / Anfrage ---------- */
/* linksbündig wie jede andere Zeile: die Frage links, Text und beide Wege zur Anfrage rechts */
.closing {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}
.closing__title { grid-column: 1 / 6; }
.closing__body { grid-column: 7 / 13; display: grid; gap: 1.25rem; justify-items: start; }
.closing__text { max-width: 42ch; color: var(--fg-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(4rem, 8vw, 6rem) 2rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
}
.site-footer__mark { font-size: 1rem; font-weight: 520; letter-spacing: -0.01em; line-height: inherit; align-self: start; }
.site-footer__city { margin-top: 0.35rem; font-size: 0.875rem; color: var(--fg-2); }
.site-footer__label { margin-bottom: 1rem; }
.site-footer__col li + li { margin-top: 0.45rem; }
.site-footer__col a { transition: color 0.3s; overflow-wrap: anywhere; }
.site-footer__col a:hover { color: var(--accent-soft); }
.site-footer__base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--fg-3);
}
.site-footer__base a:hover { color: var(--fg); }
.site-footer__legal { display: flex; gap: 1.5rem; }

/* ---------- Seitenköpfe ---------- */
/* Titel links, Einleitung rechts: der Kopf bleibt flach, damit die Werke im ersten Bildschirm beginnen */
.page-head, .collection-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
  padding-top: var(--page-top);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.about-head { padding-top: var(--page-top); }
.collection-head { padding-top: calc(var(--header-h) + 1.5rem); }
.collection-head .breadcrumb { grid-column: 1 / -1; margin-bottom: 0.75rem; }
.collection-head__body, .page-head__lead { margin-top: 0; max-width: 46ch; }
.page-head__lead { color: var(--fg-2); }
.breadcrumb { margin-bottom: 1.5rem; font-size: 0.875rem; color: var(--fg-2); }
.breadcrumb a { transition: color 0.3s; }
.breadcrumb a::before { content: '← '; content: '← ' / ''; }
.breadcrumb a:hover { color: var(--fg); }

/* ---------- Kollektion ---------- */
.collection-head__body { display: grid; gap: 1.5rem; }
.collection-head__intro { line-height: 1.55; color: var(--fg-2); }
.collection-head__meta { display: flex; gap: 1.75rem; font-size: 0.875rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.collection-head__meta { flex-wrap: wrap; row-gap: 0.25rem; }
.collection-head__note { font-size: 0.8125rem; color: var(--fg-3); }

.works { padding-bottom: clamp(4rem, 8vw, 7rem); }
/* Gruppenkopf als ruhige Zeile ("Paintings · 4 works") statt einer zweiten großen Überschrift */
.works__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-bottom: 1rem;
}
.works__head .section-title { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; }
.works__note { margin-top: 0; font-size: 0.875rem; color: var(--fg-2); }
.works__count { color: var(--fg-3); font-weight: 400; }

/* Raster im wahren Größenverhältnis: Originale zu zweit, Drucke zu dritt. Kein Werk wird beschnitten oder gezoomt. */
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 3.5vw, 3.5rem);
}
.works__grid--originals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work { container-type: inline-size; --cap: 1.1; }
.works__grid--originals .work { --cap: 0.95; }
.work__open { display: block; width: 100%; cursor: zoom-in; }
/* Breite aus dem Seitenverhältnis (--r): Querformate füllen die Spalte, Hochformate werden höchstens --cap Spaltenbreiten hoch */
.work__frame { display: block; width: min(100%, var(--cap) * 100cqi * var(--r)); }
.work__frame img { width: 100%; }
/* Ab Tablet zusätzlich nach der Bildschirmhöhe begrenzt (für alle Werke gleich, das Größenverhältnis bleibt):
   die erste Reihe steht auch auf kleinen Laptops (1280 × 720) ganz im ersten Bildschirm */
@media (min-width: 640px) {
  .work__frame { width: min(100%, var(--cap) * 100cqi * var(--r), max(18rem, 100svh - 26rem) * var(--r)); }
}
/* Werke blenden früher und ohne Versatz ein (eigener Beobachter in main.js) */
.js .work[data-reveal] { transform: none; transition: opacity 0.5s var(--ease); }

/* Bildunterschrift wie ein Wandschild: Titel kursiv; Technik und Maß; Preis · Werknummer (wie auf der Startseite und der Anfrageseite) */
.work__caption { display: grid; gap: 0.15rem; margin-top: 1rem; font-size: 0.875rem; color: var(--fg-2); }
.work__title { font-size: 1rem; font-style: italic; font-weight: 400; color: var(--fg); }
.work__note { font-style: normal; color: var(--fg-2); }
.work__buy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.3em; margin-top: 0.35rem; }
.work__price { color: var(--fg); font-variant-numeric: tabular-nums; }
.work__price.is-sold { color: var(--accent-soft); }
.work__price.is-reserved { color: var(--fg-2); }
.work__ref { font-size: 0.8125rem; color: var(--fg-3); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
/* Hover und Fokus zeigen sich an der Bildunterschrift, nie am Werk selbst */
.work__open:hover + .work__caption .work__title,
.work__open:focus-visible + .work__caption .work__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
/* Tastaturfokus: Ring um das Bild statt um die ganze Spalte (Hochformate sind schmaler als die Spalte) */
.work__open:focus-visible { outline: none; }
.work__open:focus-visible .work__frame { outline: 2px solid var(--accent); outline-offset: 3px; }

.next-collection {
  display: block;
  padding-block: clamp(4rem, 9vw, 8rem);
  border-top: 1px solid var(--line);
}
.next-collection__label { display: block; margin-bottom: 1.25rem; }
.next-collection__title { display: inline-flex; align-items: center; gap: 0.3em; transition: color 0.4s; }
.next-collection__title .icon { width: 0.6em; height: 0.6em; transition: transform 0.7s var(--ease); }
.next-collection:hover .next-collection__title { color: var(--accent-soft); }
.next-collection:hover .icon { transform: translateX(0.15em); }

/* ---------- Werkseite ---------- */
.artwork { padding-block: calc(var(--header-h) + clamp(1.5rem, 3vw, 2.5rem)) var(--section); }
.artwork__crumbs a::before { content: none; }
.artwork__crumbs a + a::before { content: '/'; content: '/' / ''; display: inline-block; margin-inline: 0.5rem; color: var(--fg-3); }
.artwork__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: 1.5rem;
}
/* das ganze Werk im ersten Bildschirm, nie beschnitten */
.artwork__figure { display: grid; justify-items: center; }
.artwork__img { width: auto; max-width: 100%; max-height: calc(100dvh - var(--header-h) - 7rem); outline: 1px solid var(--img-edge); outline-offset: -1px; }
.artwork__panel { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 1rem; justify-items: start; }
.artwork__collection { font-size: 0.875rem; color: var(--fg-2); }
.artwork__title { font-size: var(--fs-title); font-weight: 300; font-style: italic; letter-spacing: -0.03em; line-height: 1.05; }
.artwork__note { font-style: normal; color: var(--fg-2); }
.artwork__collection a, .artwork__pager a { transition: color 0.3s; }
.artwork__collection a:hover, .artwork__pager a:hover { color: var(--accent-soft); }
/* Faktenliste der Werkseite und der Lightbox */
.facts { display: grid; gap: 1rem; width: 100%; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.facts dd { font-variant-numeric: tabular-nums; }
.facts dd::first-letter { text-transform: uppercase; }
.facts dd.is-sold { color: var(--accent-soft); }
.facts__alt { color: var(--fg-3); }
.facts__note { font-size: 0.8125rem; color: var(--fg-3); }
.artwork__buy { display: grid; width: 100%; }
.artwork__buy-price { display: none; }
.artwork__cta { width: 100%; }
.artwork__pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.artwork__pager a { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); animation: fade-up 0.6s var(--ease); }
.lightbox:focus-visible { outline-offset: -3px; }
.lightbox::backdrop { background: rgb(250 250 249 / 0.7); }
/* Desktop: Schließen und Blättern liegen frei auf der Bildfläche. Mobil wird daraus eine feste Leiste oben (899px-Block). */
.lightbox__bar { display: contents; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: clamp(1rem, 4vw, 4.5rem) clamp(1rem, 4vw, 4.5rem) 6rem; touch-action: pan-y pinch-zoom; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - clamp(1rem, 4vw, 4.5rem) - 6.5rem); width: auto; height: auto; object-fit: contain; transition: opacity 0.4s var(--ease); }
.lightbox__img.is-loading { opacity: 0.25; }
.lightbox__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 6.5rem clamp(1.5rem, 2.5vw, 2.75rem) 2.5rem;
  border-left: 1px solid var(--line);
  overflow-y: auto;
}
.lightbox__collection { font-size: 0.875rem; color: var(--fg-2); }
.lightbox__title { font-size: clamp(2rem, 2.8vw, 2.75rem); font-weight: 300; font-style: italic; letter-spacing: -0.035em; line-height: 1.02; }
.lightbox__note:empty { display: none; }
.lightbox__note { color: var(--fg-2); }
/* Anfrage direkt unter den Fakten: mit dem 1rem-Abstand des Panels 1.5rem */
.lightbox__buy { margin-top: 0.5rem; }
.lightbox__buy-price { display: none; }
.lightbox__cta { width: 100%; }
.lightbox__more { margin-top: 0.75rem; }
.lightbox__controls { position: absolute; z-index: 2; left: clamp(1rem, 4vw, 4.5rem); bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.lightbox__count { min-width: 4.5ch; text-align: center; font-size: 0.875rem; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.lightbox__close { position: absolute; z-index: 2; top: 1rem; right: 1rem; }
@media (min-width: 900px) {
  .lightbox { --lb-panel: 380px; }
  /* Blättern und Zähler mittig unter der Bildfläche */
  .lightbox__controls { left: calc((100% - var(--lb-panel)) / 2); transform: translateX(-50%); }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .lightbox { --lb-panel: 320px; }
}

/* ---------- Kollektionen-Übersicht ---------- */
/* drei Titelbilder in einer Reihe, unten bündig, jedes ungeschnitten im eigenen Seitenverhältnis (--r).
   Wie im Werkraster füllen Querformate die Spalte, Hochformate werden höchstens 1.1 Spaltenbreiten hoch.
   Schriftgröße und Laufweite des Titels kommen aus der Skala oben (zweite Ebene). */
.shop-collections { padding-block: clamp(1rem, 3vw, 2rem) var(--section); }
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem clamp(1.5rem, 3.5vw, 3.5rem); align-items: end; }
.showcase__item { container-type: inline-size; }
.showcase__link { display: grid; gap: 0.75rem; }
.showcase__frame { display: block; width: min(100%, 1.1 * 100cqi * var(--r)); }
.showcase__frame img { width: 100%; }
.showcase__title { font-weight: 300; line-height: 0.95; margin-top: 0.5rem; }
.showcase__meta { display: flex; gap: 1.25rem; font-size: 0.875rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.showcase__link:hover .showcase__title,
.showcase__link:focus-visible .showcase__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }

/* ---------- About ---------- */
/* Kopf: Titel und Einleitung links, das Atelierfoto rechts. Die Fotos sind schon schwarzweiß: kein Filter. */
.about-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); align-items: end; }
.about-head__text { grid-column: 1 / 7; }
.about-head__lead { margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 30ch; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 300; line-height: 1.25; letter-spacing: -0.02em; }
.about-head__photo { grid-column: 8 / 13; }
.about-head__photo img { width: auto; max-width: 100%; max-height: 72dvh; margin-left: auto; }
/* Biografie: kleines Porträt links, Text in lesbarer Zeilenlänge. 40ch sind in Geist (breite Ziffer 0) rund 450px,
   das ergibt höchstens etwa 60 Zeichen je Zeile (62ch wären fast 700px und über 90 Zeichen). */
.bio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); align-items: start; padding-block: var(--section); }
.bio__portrait { grid-column: 1 / 4; }
.bio__portrait img { width: 100%; }
.bio__body { grid-column: 5 / 12; max-width: 40ch; display: grid; gap: 1.25rem; color: var(--fg-2); font-size: 1.0625rem; line-height: 1.7; }

.exhibitions { padding-bottom: var(--section); }
.exhibitions .section-title { margin-bottom: clamp(2rem, 4vw, 3rem); }
.exhibitions__groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 7rem); }
.exhibitions__label { padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 0.5rem; }
.exhibition { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 0.15rem 1.5rem; padding-block: 1.1rem; }
.exhibition__date { grid-column: 1; grid-row: 1; font-size: 0.875rem; color: var(--fg-2); font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.exhibition__venue, .exhibition__city, .exhibition__note { grid-column: 2; }
.exhibition__venue { font-size: 1.125rem; font-weight: 420; }
.exhibition__note { margin-top: 0.35rem; font-size: 0.9rem; color: var(--fg-2); max-width: 40ch; }
.exhibitions__note { margin-top: clamp(2rem, 4vw, 3rem); font-size: 0.9rem; color: var(--fg-2); }
.exhibition__venue a { transition: color 0.3s; }
.exhibition__venue a .icon { display: inline-block; vertical-align: -0.08em; margin-left: 0.2em; width: 0.95em; height: 0.95em; color: var(--fg-3); transition: transform 0.45s var(--ease), color 0.3s; }
.exhibition__venue a:hover { color: var(--accent-soft); }
.exhibition__venue a:hover .icon { transform: translate(2px, -2px); color: currentColor; }
.exhibition__city { font-size: 0.9rem; color: var(--fg-2); }
/* hält das letzte Wort eines Ausstellungsorts mit dem Pfeil ↗ zusammen */
.nowrap { white-space: nowrap; }

/* ---------- Kontakt ---------- */
/* Desktop: Einleitung (mit dem angefragten Werk) und darunter Email/Studio links, das Formular rechts über beide Zeilen.
   Zeile 1 ist so hoch wie die Einleitung (die 1fr-Zeile nimmt den Rest der Formularhöhe auf). Mobil folgt das Formular direkt auf die Karte. */
.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  gap: 3rem clamp(1.5rem, 3vw, 3rem);
  padding-block: var(--page-top) var(--section);
}
.contact__intro { grid-column: 1 / 6; }
.contact__panel { grid-column: 7 / 13; grid-row: 1 / span 2; padding-top: clamp(0rem, 4vw, 3.5rem); }
.contact__lead { max-width: 38ch; margin-top: 2rem; color: var(--fg-2); }
.contact__direct { grid-column: 1 / 6; grid-row: 2; align-self: start; display: grid; gap: 1.25rem; margin-top: 0; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.contact__direct a { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color 0.3s; overflow-wrap: anywhere; }
.contact__direct a:hover { color: var(--accent-soft); }

/* das angefragte Werk wie ein Wandschild: Bild, Titel kursiv, Technik und Maß, Preis und Werknummer */
.contact__work { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: 2rem; padding-block: 1.25rem; border-block: 1px solid var(--line); }
.contact__work-img img { width: 112px; outline: 1px solid var(--img-edge); outline-offset: -1px; }
.contact__work figcaption { display: grid; gap: 0.2rem; font-size: 0.875rem; color: var(--fg-2); }
.contact__work-title { font-size: 1rem; font-style: italic; color: var(--fg); }
.contact__work-note { font-style: normal; color: var(--fg-2); }
.contact__work .text-link { justify-self: start; margin-top: 0.5rem; font-size: 0.875rem; }
@media (min-width: 900px) {
  /* Desktop mit Werkkarte: deren untere Linie trennt bereits, Email/Studio steht darunter ohne zweite Linie */
  .contact--work .contact__direct { padding-top: 0; border-top: 0; }
}

/* Kaufinformationen: erscheinen erst mit der ersten bestätigten Antwort (site.buying) */
.buying { grid-column: 1 / -1; padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.buying__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); margin-top: 1.5rem; }
.buying__list dt { font-weight: 500; }
.buying__list dd { margin-top: 0.35rem; color: var(--fg-2); max-width: 52ch; }

.form { display: grid; gap: 1.75rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
/* align-content: start: hat nur das Nachbarfeld einer Zeile eine Fehlermeldung, bleibt dieses Feld oben statt gestreckt */
.field { display: grid; gap: 0.35rem; align-content: start; }
.field label { font-size: 0.875rem; font-weight: 450; }
.field__optional { color: var(--fg-3); font-weight: 400; }
.field input[type='text'], .field input[type='email'], .field textarea {
  width: 100%;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid var(--control);
  border-radius: 0;
  background: transparent;
  font-size: 1.0625rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--fg-2); }
.field__hint { font-size: 0.8125rem; color: var(--fg-3); }
.field__hint:empty:not([aria-live]), .field__error:empty { display: none; }
.field__hint[aria-live]:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Tippfehler-Hinweis unter der E-Mail-Adresse ("Did you mean name@gmail.com?", main.js) */
.field__suggest { color: var(--fg); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 0.2em; text-align: left; overflow-wrap: anywhere; }
.field__error { font-size: 0.8125rem; color: var(--accent-soft); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--accent-soft); }
/* nach der Fehlerregel: auch ein Fehlerfeld zeigt im Fokus die dunkle 2px-Linie. Die Checkbox behält den Fokusring. */
.field input:not([type='checkbox']):focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); box-shadow: 0 1px 0 0 var(--fg); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; font-size: 0.9rem; color: var(--fg-2); cursor: pointer; }
.check a { color: var(--fg); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.check input {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  border: 1px solid var(--control);
  background: transparent center / 75% no-repeat;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.check input:hover { border-color: var(--fg); }
.check input:checked {
  background-color: var(--fg);
  border-color: var(--fg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fafaf9' stroke-width='1.8'/%3E%3C/svg%3E");
}
.field--check.has-error .check input { border-color: var(--accent-soft); }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { justify-self: start; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 0.5rem; }
/* beim Senden: der Knopf behält den Fokus (disabled würde ihn auf <body> fallen lassen) */
.button[aria-disabled='true'] { opacity: 0.6; cursor: progress; }

.form-status--error { padding: 1rem 1.25rem; border-left: 2px solid var(--accent); background: var(--bg-2); font-size: 0.925rem; color: var(--fg); }
.form-status--error a { text-decoration: underline; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.form-status--sent, .form-status--mail { display: grid; gap: 1.25rem; justify-items: start; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form-status--sent h2, .form-status--mail h2 { font-weight: 300; letter-spacing: -0.04em; }
.form-status--sent p, .form-status--mail p { color: var(--fg-2); max-width: 40ch; }
.form-status--sent strong { font-weight: 500; color: var(--fg); overflow-wrap: anywhere; }
.form-status--sent p a { color: var(--fg); text-decoration: underline; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
/* per Skript fokussiert (Danke, Fehlermeldung): die Fläche selbst ist deutlich genug, kein zusätzlicher Ring */
.form-status--sent:focus, .form-status--error:focus { outline: none; }
[hidden] { display: none !important; }

/* ---------- Rechtliches ---------- */
.legal {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 3rem clamp(1.5rem, 3vw, 3rem);
  padding-block: var(--page-top) var(--section);
}
.legal__head { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.legal__title { font-size: var(--fs-display-2); }
.legal__toc { display: grid; gap: 0.5rem; margin-top: 2rem; font-size: 0.95rem; color: var(--fg-2); }
.legal__toc a:hover { color: var(--fg); }
.legal__body { grid-column: 5 / 13; }
.prose { max-width: 72ch; color: var(--fg-2); font-size: 0.975rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-block: 0.7em; }
.prose h2 { margin: 3.25em 0 1em; font-size: clamp(1.6rem, 2.4vw, 2.25rem); font-weight: 320; letter-spacing: -0.03em; color: var(--fg); }
.prose h3 { margin: 2.75em 0 0.75em; font-size: 1.25rem; font-weight: 450; color: var(--fg); }
.prose h4 { margin: 2em 0 0.4em; font-size: 1rem; font-weight: 520; color: var(--fg); }
.prose h2, .prose h3, .prose h4 { overflow-wrap: anywhere; hyphens: auto; }
.prose hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.prose a:hover { text-decoration-color: currentColor; }
.legal__source { margin-top: 3em !important; font-size: 0.85rem; color: var(--fg-3); }

/* ---------- 404 ---------- */
.notfound { display: grid; justify-items: start; gap: 2rem; padding-block: var(--page-top) var(--section); }
.notfound--error { min-height: 80dvh; align-content: center; }
.notfound .shop-collections { width: 100%; padding: clamp(1.5rem, 4vw, 3rem) 0 0; }
.notfound__title { font-size: var(--fs-display-2); max-width: 14ch; }
.notfound__text { color: var(--fg-2); font-size: 1.125rem; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .works__grid--prints { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lightbox[open] { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .site-nav { display: none; }
  .js .menu-toggle { display: inline-flex; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 1.5rem;
    padding-top: calc(var(--header-h) + 1.25rem);
  }
  .hero__text { padding-bottom: 0; }
  /* Telefon und Tablet: das erste Werk direkt unter dem Text, mit Bildunterschrift ganz im ersten Bildschirm
     (kein Wechsel, keine leere Fläche). Die Bildhöhe ist der Rest des Bildschirms nach Text und Unterschrift. */
  .hero__title { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero__lead { margin-top: 1rem; }
  .hero__actions { margin-top: 1.25rem; }
  /* --hero-text: Höhe von Kopfzeile, Name, Einleitung, Links und Bildunterschrift (gemessen: Telefon 23.7rem, Tablet 26.8rem) */
  .hero__art { height: auto; --hero-text: 24rem; }
  .hero__slide { position: static; width: min(100%, max(14rem, 100svh - var(--hero-text)) * var(--r)); }
  .hero__slide:not(.is-active) { display: none; }

  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__head { position: static; }
  .feature__collage { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .feature__piece--1 { grid-column: 1 / -1; }
  .feature__piece--2, .feature__piece--3 { grid-column: auto; margin-top: 0; }
  .feature__piece--3 { margin-top: 3rem; }

  .insitu__head { grid-template-columns: minmax(0, 1fr); }
  .insitu__nav { display: none; }
  .insitu__item img { height: min(56vh, 110vw); }

  .statement { grid-template-columns: minmax(0, 1fr); }
  .statement__portrait, .statement__quote { grid-column: 1; }

  .closing { grid-template-columns: minmax(0, 1fr); }
  .closing__title, .closing__body { grid-column: 1; }

  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }

  .showcase { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }

  .about-head, .bio { grid-template-columns: minmax(0, 1fr); }
  .about-head__text, .about-head__photo, .bio__portrait, .bio__body { grid-column: 1; }
  .about-head__photo img { margin-left: 0; max-height: none; }
  .bio__portrait { max-width: 60%; }
  .exhibitions__groups { grid-template-columns: minmax(0, 1fr); }

  .contact, .legal { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-rows: none; }
  .contact__intro, .contact__panel, .contact__direct, .legal__head, .legal__body { grid-column: 1; }
  /* eine Spalte in Quellreihenfolge: Einleitung mit Karte, Formular, Email/Studio, Kaufinformationen */
  .contact__panel, .contact__direct { grid-row: auto; }
  .buying__list { grid-template-columns: minmax(0, 1fr); }
  .legal__head { position: static; }

  .collection-head, .page-head { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }

  .artwork__layout { grid-template-columns: minmax(0, 1fr); }
  .artwork__panel { position: static; }
  /* Bild etwas kleiner, damit die Angaben im ersten Bildschirm beginnen: nur dann bleibt die Kaufleiste unten stehen */
  .artwork__img { max-height: 60svh; }
  /* Preis und Anfrage bleiben unten am Bildschirm, bis die Leiste an ihrer Stelle in den Angaben ankommt (wie in der Lightbox) */
  .artwork__buy {
    position: sticky;
    bottom: 0;
    z-index: 1;
    justify-self: stretch;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .artwork__buy-price { display: block; flex: none; font-variant-numeric: tabular-nums; }
  .artwork__buy-price.is-sold { color: var(--accent-soft); }
  .artwork__buy .artwork__cta { flex: 1; width: auto; }

  /* Lightbox mobil: Schließen und Blättern bleiben oben stehen, Preis und Anfrage unten */
  .lightbox[open] { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .lightbox__bar { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 2; padding: 0.75rem 1rem; background: var(--bg); }
  .lightbox__controls, .lightbox__close { position: static; transform: none; }
  .lightbox__controls { order: 1; }
  .lightbox__close { order: 2; }
  .lightbox__stage { display: block; padding: 0.25rem 1rem 1.25rem; min-height: 0; }
  /* Bildbox so breit wie das Bild (--r aus main.js), damit die feine Kante das Werk umschließt und keine leere Fläche */
  .lightbox__img { width: min(100%, 58dvh * var(--r, 1)); height: auto; max-height: 58dvh; margin-inline: auto; object-fit: contain; }
  .lightbox__panel { border-left: 0; border-top: 1px solid var(--line); padding: 1.5rem 1.25rem 0; overflow: visible; }
  .lightbox__title { font-size: 1.75rem; }
  .lightbox__facts { grid-template-columns: 1fr 1fr; gap: 0.9rem 1.5rem; margin-top: 1rem; padding-top: 1rem; }
  .lightbox__buy {
    position: sticky;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem -1.25rem 0;
    padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .lightbox__buy-price { display: block; flex: none; font-variant-numeric: tabular-nums; }
  .lightbox__buy-price.is-sold { color: var(--accent-soft); }
  .lightbox__cta { flex: 1; width: auto; }
  .lightbox__more { margin: 1rem 0 1.5rem; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero__art { --hero-text: 27rem; }
}

@media (max-width: 639px) {
  /* Originale bleiben groß, Drucke zu zweit nebeneinander */
  .works__grid--originals { grid-template-columns: minmax(0, 1fr); }
  .works__grid--prints { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; row-gap: 2.5rem; }
  .works__grid--prints .work { --cap: 1.45; }
  .works__grid--prints .work__title { font-size: 0.875rem; }
  .works__grid--prints .work__caption { font-size: 0.8125rem; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .exhibition { grid-template-columns: minmax(0, 1fr); }
  .exhibition__date, .exhibition__venue, .exhibition__city, .exhibition__note { grid-column: 1; grid-row: auto; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
}

/* ---------- Erzwungene Farben (z. B. Windows-Kontrastdesign) ---------- */
/* Das eigene Häkchen ist ein helles SVG und wäre auf Canvas-Weiß unsichtbar: dort die System-Checkbox zeigen. */
@media (forced-colors: active) {
  .check input { appearance: auto; }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* Impressum: Firmenzeile der Geschaeftsadresse kleiner unter dem Namen */
.address__company { font-size: 0.82em; color: var(--fg-2); }
