/* Öffentliche Seite. Ruhige Satzschrift, eine Spalte Text, der Rest Bildfläche.

   Aufbau nach der Auswertung von 17 Künstler-Portfolios: ein Werk pro Bildschirm,
   schmale Textspalte links, Spaltenbreite im Raster konstant, Titel und Jahr am
   Bild, zwei Spalten auf dem Telefon. Keine Rundungen, keine Schatten,
   keine fremde Schrift. */

:root {
  --bg: #f6f4ef;
  --ink: #161514;
  --body: #2a2825;
  --muted: #625c52;
  --muted-ink: #4f4a43;
  --line: #d9d3c6;
  --leer: #e8e4d9;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", Times, serif;
  --rand: clamp(1rem, 3vw, 2.5rem);
  --luecke: clamp(0.75rem, 1.2vw, 1.15rem);
  --spalte: 15.5rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --ink: #eceae4;
    --body: #d5d1c8;
    --muted: #a29b8e;
    --muted-ink: #bdb6a7;
    --line: #2e2b27;
    --leer: #1d1b19;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

img { display: block; max-width: 100%; height: auto; background: var(--leer); }

h1, h2, h3 { color: var(--ink); font-weight: 400; line-height: 1.15; margin: 0; }

/* ---------------------------------------------------------------- Gerüst */

.geruest {
  display: grid;
  grid-template-columns: minmax(11rem, var(--spalte)) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  max-width: 108rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--rand) 2rem;
}

.kopf {
  position: sticky;
  top: clamp(1.25rem, 3vw, 2.5rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.kopf-oben { display: flex; flex-direction: column; gap: 0.1rem; }

.name { margin: 0; font-size: 1.05rem; color: var(--ink); }
.rolle { margin: 0; font-size: 0.82rem; color: var(--muted-ink); }

.wege { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.95rem; }
.wege a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }

.fuss-oben { margin: 0; font-size: 0.82rem; color: var(--muted-ink); overflow-wrap: anywhere; }

.inhalt { grid-column: 2; min-width: 0; }

.fuss {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 8vh, 6rem);
  padding-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.fuss p { margin: 0; }
.fuss-wege { display: flex; gap: 1rem; }

/* ------------------------------------------------------------------ Hero */

.hero { margin: 0; }
.hero figure {
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.hero img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 9.5rem);
  margin: 0 auto;
  object-fit: contain;
}
.hero figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--muted-ink);
}
.serienverweis { color: var(--ink); font-size: 0.8rem; letter-spacing: 0.04em; }

.index { margin-top: clamp(3rem, 9vh, 7rem); }
.index ol { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.index li { border-top: 1px solid var(--line); }
.index li:last-child { border-bottom: 1px solid var(--line); }
.index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.5rem 6rem;
  gap: 1rem;
  align-items: baseline;
  padding: 0.8rem 0;
  font-size: 1rem;
  color: var(--ink);
}
.index .sj, .index .sn { font-size: 0.8rem; color: var(--muted); text-align: right; }

.mono-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* --------------------------------------------------------------- Arbeiten */

.seiten-titel { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 2rem; }

.serienliste { display: flex; flex-direction: column; gap: clamp(3rem, 8vh, 6rem); }
.serie { display: flex; flex-direction: column; gap: 0.6rem; max-width: 42rem; }
.serie-bild { display: block; }
.serie-bild img { max-height: 78svh; width: auto; max-width: 100%; }
.serie h2 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.serie-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-ink);
}
.serientext-kurz { margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--body); max-width: 34rem; }

.serien-kopf { margin-bottom: 1.6rem; }
.serien-kopf h1 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 0.4rem; }

.serientext { margin: 0 0 2rem; max-width: 34rem; }
.serientext summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.3rem 0;
}
.serientext[open] summary { margin-bottom: 0.8rem; }

/* ----------------------------------------------------------------- Raster */

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: var(--luecke);
  align-items: start;
}

.kachel { margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.kachel.weit { grid-column: span 2; }
.kachel img { width: 100%; }
.bildtitel {
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted-ink);
  line-height: 1.45;
}
.bildtitel .bt { color: var(--body); }
.bildtitel .bj { white-space: nowrap; }

.zurueck { margin-top: 2.5rem; font-size: 0.85rem; color: var(--muted); }

/* ------------------------------------------------------------- Einzelbild */

.einzel figure { margin: 0; display: flex; justify-content: center; }
.einzel img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 11rem);
  object-fit: contain;
}
.einzel-fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted-ink);
}
.einzel-titel { margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.einzel-wege { margin: 0; display: flex; align-items: baseline; gap: 1.2rem; }
.einzel-wege a { color: var(--ink); }
.pfeil { font-size: 1.1rem; color: var(--ink); }

/* ------------------------------------------------------------------ Prosa */

.prosa-seite { max-width: 34rem; }
.prosa-seite h1 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 1.4rem; }
.prosa-seite h2 { font-size: 1.1rem; margin: 2.2rem 0 0.6rem; }
.prosa p { margin: 0 0 1rem; }
.prosa .mail { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.still { color: var(--muted); font-size: 0.9rem; }

.leer { max-width: 32rem; }
.leer h1 { font-size: 1.5rem; margin-bottom: 0.8rem; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.9em; }

/* ------------------------------------------------------------------ Mobil */

@media (max-width: 52rem) {
  .geruest { grid-template-columns: minmax(0, 1fr); row-gap: 1.8rem; padding-bottom: 1.5rem; }
  .inhalt { grid-column: 1; }
  .kopf { position: static; gap: 0.9rem; }
  .wege { flex-direction: row; flex-wrap: wrap; gap: 0.45rem 1.15rem; font-size: 0.95rem; }
  .fuss-oben { display: none; }
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero img, .einzel img { max-height: calc(100svh - 14rem); }
  .index a { grid-template-columns: minmax(0, 1fr) 3.6rem; }
  .index .sn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
