/* Elisabeth Moers — statische Website
   Eine Schriftfamilie, viel Weissraum, keine Effekte. Die Bilder sind der Inhalt. */

:root {
  --tinte: #1c1a18;
  --gedaempft: #6d6862;
  --linie: #ddd8d1;
  --papier: #fbfaf8;
  --akzent: #1c1a18;
  --spalte: 68rem;
  --luft: clamp(2rem, 6vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
               Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--akzent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--gedaempft); }

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

.skip {
  position: absolute; left: -9999px;
  background: var(--tinte); color: var(--papier); padding: 0.6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; }

.visuell-versteckt {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------------------------------------------------------------- Kopf */
.kopf {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: baseline; justify-content: space-between;
  max-width: var(--spalte);
  margin: 0 auto;
  padding: 2.5rem var(--luft) 1.75rem;
  border-bottom: 1px solid var(--linie);
}

.marke {
  margin: 0;
  font-size: 1.0625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.marke a { text-decoration: none; }

.kopf nav ul {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin: 0; padding: 0; list-style: none;
}
.kopf nav a {
  text-decoration: none;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.kopf nav a:hover { border-bottom-color: var(--linie); }
.kopf nav a[aria-current="page"] { border-bottom-color: var(--tinte); }

/* ---------------------------------------------------------------- Grundraster */
main { max-width: var(--spalte); margin: 0 auto; padding: 0 var(--luft); }

section { margin: clamp(3rem, 8vw, 6rem) 0; }

h1 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 400; letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
}
h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 400;
  margin: 0 0 1.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--linie);
}
h3 { font-size: 1.125rem; font-weight: 400; margin: 2.5rem 0 0.75rem; }

.lead { margin: 0; color: var(--gedaempft); letter-spacing: 0.04em; }

.hinweis { color: var(--gedaempft); font-size: 0.9375rem; max-width: 46rem; }

.signatur { color: var(--gedaempft); font-style: italic; }

/* ---------------------------------------------------------------- Start */
.start { text-align: left; }

/* Einstiegsbild: auf Home, Vita und Ausstellungen direkt unter der Titelzeile,
   überall mit demselben Abstand nach oben. Den Platz darunter liefert das
   nächste Element - das Zitat auf Home, sonst der Abschnittsabstand. */
figure.einstieg { margin: clamp(2rem, 5vw, 3.5rem) 0 0; }
figure.einstieg img { width: 100%; }
figure.einstieg figcaption {
  margin-top: 0.75rem; color: var(--gedaempft); font-size: 0.875rem;
}

blockquote {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--linie);
  max-width: 44rem;
}
blockquote p { margin: 0 0 1rem; }
blockquote footer { color: var(--gedaempft); font-size: 0.9375rem; }

.weiter { margin-top: 3rem; }

/* ---------------------------------------------------------------- Galerie */
.sprungmarken ul {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
  margin: 1.5rem 0 0; padding: 0; list-style: none;
  font-size: 0.9375rem;
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

figure.werk { margin: 0; }

/* Einheitliche Bildhöhe, damit die Legenden auf einer Linie sitzen. Die Bilder
   behalten ihr Seitenverhältnis (contain), nichts wird beschnitten. */
figure.werk a {
  display: flex; align-items: center; justify-content: center;
  height: clamp(14rem, 24vw, 20rem);
  background: #f2efeb;
}
figure.werk picture { display: contents; }
figure.werk img { max-width: 100%; max-height: 100%; width: auto; height: auto; }

figure.werk figcaption {
  margin-top: 0.7rem;
  font-size: 0.875rem;
  line-height: 1.45;
}
figure.werk .titel { display: block; }
figure.werk .meta { display: block; color: var(--gedaempft); }

/* ---------------------------------------------------------------- Chronologie */
.chronologie {
  display: grid;
  grid-template-columns: minmax(6.5rem, max-content) 1fr;
  gap: 0.6rem 2rem;
  max-width: 52rem;
}
.chronologie .jahr { color: var(--gedaempft); font-variant-numeric: tabular-nums; }
.chronologie .station, .chronologie .ort { margin: 0; }

@media (max-width: 32rem) {
  .chronologie { grid-template-columns: 1fr; gap: 0.15rem; }
  .chronologie .jahr { margin-top: 0.9rem; }
}

figure.portrait { float: right; margin: 0 0 1.5rem 2rem; max-width: 14rem; }
@media (max-width: 40rem) {
  figure.portrait { float: none; margin: 0 0 2rem; max-width: 100%; }
}

/* ---------------------------------------------------------------- Texte */
.texte article { max-width: 42rem; }
.texte p { margin: 0 0 1.1rem; }

/* ---------------------------------------------------------------- Kontakt */
.kontakt address { font-style: normal; }
.kontakt .name { letter-spacing: 0.06em; }
.kontakt p { margin: 0 0 1rem; }

/* ---------------------------------------------------------------- Fuss */
.fuss {
  max-width: var(--spalte);
  margin: clamp(4rem, 10vw, 7rem) auto 0;
  padding: 1.75rem var(--luft) 3rem;
  border-top: 1px solid var(--linie);
  color: var(--gedaempft);
  font-size: 0.875rem;
}
.fuss p { margin: 0 0 0.35rem; }
.fuss .klein { font-size: 0.8125rem; }

/* ---------------------------------------------------------------- Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  background: rgba(20, 18, 16, 0.96);
  padding: clamp(1rem, 4vw, 3rem);
}
.lb[hidden] { display: none; }
.lb img {
  max-width: 100%; max-height: 78vh;
  width: auto; height: auto;
  object-fit: contain;
}
.lb figcaption {
  color: #e8e4de; font-size: 0.875rem; text-align: center; max-width: 40rem;
}
.lb figcaption .meta { display: block; color: #a49d94; }
.lb button {
  position: absolute;
  background: none; border: 1px solid rgba(232, 228, 222, 0.35);
  color: #e8e4de; font: inherit; font-size: 1.25rem;
  width: 2.75rem; height: 2.75rem;
  cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lb button:hover { border-color: #e8e4de; }
.lb .zu { top: 1rem; right: 1rem; }
.lb .vor { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb .zurueck { left: 1rem; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .kopf nav, .skip, .lb, .sprungmarken { display: none; }
  body { background: #fff; }
  a { text-decoration: none; }
}

/* Aktuelle Ausstellung */
.aktuell .ausstellungstitel { font-size: 1.125rem; margin: 0 0 0.75rem; }
.aktuell p { margin: 0 0 0.6rem; max-width: 44rem; }
