/* Layout: linksbündige Galerie. Großes Wortzeichen oben, Werke als Raster auf "Wandgrund",
   Beschriftung wie ein Museumsschild darunter. Warenkorb als Seitenleiste. */
:root {
  --bg: #f2f3f4;
  --wall: #e4e7ea;
  --ink: #16171b;
  --muted: #5b6069;
  --line: #cdd2d8;
  --accent: #2a3cc2;      /* Ultramarin */
  --accent-ink: #ffffff;
  --sold: #b3261e;
  --shade: rgba(16, 18, 24, .45);

  --f-display: "Newsreader", "Source Serif Pro", Georgia, serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111215; --wall: #1b1d22; --ink: #eceef2; --muted: #9ba1ab; --line: #2d3138;
    --accent: #8e9cff; --accent-ink: #0d0f1a; --sold: #ff8a80; --shade: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111215; --wall: #1b1d22; --ink: #eceef2; --muted: #9ba1ab; --line: #2d3138;
  --accent: #8e9cff; --accent-ink: #0d0f1a; --sold: #ff8a80; --shade: rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* Kopfzeile */
.kopf {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.kopf .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 6px 24px; padding-block: 14px 12px;
}
.logo { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; }
.logo a { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.logo-wort { font-family: var(--f-display); font-weight: 600; font-size: 32px; line-height: 1.05; letter-spacing: 0; }
.logo-name { font-family: var(--f-body); font-weight: 400; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav {
  grid-column: 1 / -1; grid-row: 2; overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
/* Die Spur gleitet so, dass der aktive Menüpunkt immer genau in der Mitte steht. */
.nav-spur { position: relative; display: flex; align-items: baseline; gap: 34px; width: max-content; transition: transform .55s cubic-bezier(.22, .8, .24, 1); will-change: transform; }
.korb-knopf { grid-column: 3; grid-row: 1; justify-self: end; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); white-space: nowrap; transition: font-size .4s ease, color .3s; }
.nav a.aktiv { font-family: var(--f-display); font-weight: 700; font-size: 30px; color: var(--ink); letter-spacing: -.01em; }
.nav a:hover { color: var(--ink); }
.korb-knopf {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ink); background: transparent; border-radius: 999px;
  padding: 6px 14px; font-size: 15px;
}
.korb-knopf .zahl {
  min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; padding: 0 6px;
}
@media (max-width: 720px) {
  .nav-spur { gap: 22px; }
  .nav a { font-size: 14px; }
  .nav a.aktiv { font-size: 22px; }
  .korb-knopf .wort { display: none; }
}

/* Auftakt */
.auftakt { padding-block: clamp(32px, 5vw, 64px); }
.wortzeichen {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(48px, 15.5vw, 260px); line-height: .82; letter-spacing: -.06em;
  margin: 0;
}
.wortzeichen span { color: var(--accent); }
.auftakt-zeile {
  display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline;
  
}
.auftakt-zeile .name { font-size: clamp(18px, 2vw, 24px); font-weight: 600; }
.auftakt-zeile .unter { color: var(--muted); }

/* Abschnitte */
.abschnitt { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.abschnitt-kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.abschnitt h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.eti { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* Rubriken-Filter */
.rubriken { display: flex; flex-wrap: wrap; gap: 8px; }
.rubriken button {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 7px 16px; font-size: 15px; color: var(--muted);
}
.rubriken button:hover { color: var(--ink); border-color: var(--ink); }
.rubriken button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rubriken .n { font-family: var(--f-mono); font-size: 12px; opacity: .7; margin-left: 4px; }

/* Werke-Raster */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 48px 32px; }
.werk { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.werk-bild {
  position: relative; aspect-ratio: 1; max-width: 100%;
  background: var(--wall); border: 0; padding: 0; width: 100%; overflow: hidden;
}
.werk-bild img {
  position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain;
  opacity: 0; transition: opacity .6s ease;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .18));
}
.werk-bild img.aktiv { opacity: 1; }
.punkte { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; opacity: 0; transition: opacity .3s; }
.werk-bild:hover .punkte, .werk-bild.laeuft .punkte { opacity: 1; }
.punkte i { width: 6px; height: 6px; border-radius: 3px; background: var(--muted); opacity: .45; transition: width .3s, opacity .3s; }
.punkte i.aktiv { width: 18px; opacity: 1; background: var(--ink); }
.status {
  position: absolute; top: 12px; left: 12px; font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em; padding: 3px 8px; background: var(--bg); color: var(--ink);
}
.status.verkauft { color: var(--sold); }
.status.verkauft::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--sold); margin-right: 6px; vertical-align: 0; }

.schild { display: grid; gap: 2px; }
.schild h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.schild h3 em { font-family: var(--f-body); font-weight: 400; font-style: normal; color: var(--muted); font-size: 16px; margin-left: 6px; }
.schild .medium { color: var(--muted); font-size: 15px; }
.schild .masse { font-family: var(--f-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.schild-fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.preis { font-weight: 600; font-variant-numeric: tabular-nums; }

.knopf {
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.knopf:hover { filter: brightness(1.1); }
.knopf.drin { background: transparent; color: var(--accent); }
.knopf:disabled { background: transparent; border-color: var(--line); color: var(--muted); cursor: not-allowed; filter: none; }
.knopf.gross { padding: 12px 20px; font-size: 16px; }

/* Ausstellungen */
.ausst { list-style: none; padding: 0; margin: 0; }
.ausst li {
  display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; gap: 8px 32px; align-items: baseline;
  padding-block: 20px; border-bottom: 1px solid var(--line);
}
.ausst li:first-child { border-top: 1px solid var(--ink); }
.ausst .datum { font-family: var(--f-mono); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ausst .titel { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15; }
.ausst .ort { color: var(--muted); }
.ausst .art { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ausst .jetzt { color: var(--accent); }
.ausst-gruppe { margin: 40px 0 12px; }
@media (max-width: 720px) {
  .ausst li { grid-template-columns: 1fr; gap: 4px; }
}

/* Biografie */
.bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.bio-bild { background: var(--wall); aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; }
.bio-bild img { width: 100%; height: 100%; object-fit: cover; }
.bio-text { min-width: 0; max-width: 62ch; }
.bio-text p { margin: 0 0 1.1em; font-size: 19px; }
.bio-text p:first-child { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.45; }
.stationen { margin: 32px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; border-top: 1px solid var(--line); padding-top: 20px; }
.stationen dt { font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.stationen dd { margin: 0; }
@media (max-width: 820px) { .bio { grid-template-columns: 1fr; } .bio-bild { max-width: 420px; } }

/* Kontakt & Fuß */
.kontakt { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: baseline; }
.kontakt .gross-link { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 4vw, 44px); text-decoration: none; border-bottom: 2px solid var(--accent); overflow-wrap: anywhere; }
.fuss { padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Ebenen: Warenkorb & Werkansicht */
.schleier { position: fixed; inset: 0; background: var(--shade); z-index: 40; }
.korb {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(440px, 100%);
  background: var(--bg); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 24px calc(env(safe-area-inset-bottom, 0px) + 20px);
  transform: translateX(100%); transition: transform .35s ease; visibility: hidden;
}
.korb.offen { transform: none; visibility: visible; }
.korb-kopf { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.korb-kopf h2 { font-size: 28px; }
.zu { border: 0; background: transparent; font-size: 28px; line-height: 1; padding: 4px 8px; }
.korb-liste { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.korb-liste li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); align-items: start; }
.korb-liste .mini { aspect-ratio: 1; background: var(--wall); display: grid; place-items: center; }
.korb-liste .mini img { max-height: 80%; max-width: 80%; object-fit: contain; }
.korb-liste .t { font-weight: 600; line-height: 1.3; }
.korb-liste .d { font-size: 13px; color: var(--muted); }
.korb-liste .d.m { font-family: var(--f-mono); font-size: 12px; }
.korb-liste .r { text-align: right; display: grid; gap: 6px; justify-items: end; }
.entfernen { border: 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; }
.korb-leer { color: var(--muted); padding-block: 32px; }
.korb-summe { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; gap: 12px; }
.korb-summe .zeile { display: flex; justify-content: space-between; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.korb-summe .hinweis { font-size: 13px; color: var(--muted); margin: 0; }
.anfrage { display: grid; gap: 10px; }
.anfrage label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.anfrage input, .anfrage textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--wall);
  border: 1px solid var(--line); padding: 9px 11px; border-radius: 4px; width: 100%;
}
.anfrage textarea { min-height: 70px; resize: vertical; }
.danke { background: var(--wall); padding: 14px; font-size: 14px; }
.danke pre { white-space: pre-wrap; font-family: var(--f-mono); font-size: 12px; margin: 10px 0 0; max-height: 160px; overflow: auto; }

.ansicht {
  position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px;
}
.ansicht-karte {
  position: relative; background: var(--bg); width: min(1100px, 100%); max-height: calc(100% - 16px); overflow: auto;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.ansicht-bild { background: var(--wall); display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.ansicht-bild .gross { display: grid; place-items: center; padding: 6%; min-height: 360px; }
.ansicht-bild .gross img { max-height: 62vh; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.2)); }
.daumen { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.daumen button { width: 56px; height: 56px; flex: none; border: 1px solid transparent; background: var(--bg); padding: 4px; }
.daumen button[aria-current="true"] { border-color: var(--ink); }
.daumen img { width: 100%; height: 100%; object-fit: contain; }
.ansicht-info { padding: clamp(20px, 3vw, 40px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.ansicht-info h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.02em; line-height: 1.05; }
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.angaben dt { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 3px; }
.angaben dd { margin: 0; }
.angaben .masse { font-family: var(--f-mono); font-size: 15px; }
.ansicht .zu { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--bg); }
@media (max-width: 760px) { .ansicht-karte { grid-template-columns: 1fr; } .ansicht-bild .gross { min-height: 260px; } }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; transition: .3s;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 15px;
  max-width: calc(100% - 32px);
}
.toast.zeigen { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Erster Abschnitt direkt unter der Kopfzeile: keine doppelte Linie */
#werke { border-top: 0; padding-top: clamp(32px, 5vw, 64px); }

/* 3 cm Abstand zwischen Name und Menü */
.kopf .nav { margin-top: calc(3cm - 6px); }

.abschnitt { scroll-margin-top: var(--kopf-h, 0px); }

/* Echte Inhalte: Werkbeschreibung, Werkserien, Ausstellungsnotiz */
.beschreibung { border-top: 1px solid var(--line); padding-top: 16px; }
.beschreibung p { margin: 0 0 .9em; font-size: 16px; line-height: 1.65; max-width: 62ch; }
.beschreibung .eti { margin-bottom: 10px; }
.ausst .notiz { font-size: 15px; color: var(--muted); margin-top: 4px; }
.bio.ohne-bild { grid-template-columns: 1fr; }
.bio-zwischen { margin: 40px 0 14px; }
.werkserien { display: grid; gap: 22px; border-top: 1px solid var(--line); padding-top: 20px; }
.serie h3 { font-size: 24px; font-weight: 600; }
.serie h3 em { font-family: var(--f-mono); font-style: normal; font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.serie p { margin: 4px 0 0; font-size: 17px; }
.stationen { margin-top: 0; }
.beschreibung p.eti, .bio-text p.eti { font-size: 12px; line-height: 1.6; }
.bio-text p.bio-zwischen { margin: 44px 0 14px; }

/* Werke: keine doppelte Überschrift, Reiter mittig */
.rubriken.mittig { justify-content: center; margin-bottom: clamp(28px, 4vw, 48px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.raster { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 400px)); justify-content: center; }

/* Reiter im Werke-Bereich: gleiten wie das Menü */
.rubriken.mittig {
  display: block; overflow: hidden; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
/* Stil wie vorher (Rahmen, aktiver Reiter dunkel gefüllt), nur das Gleiten ist neu */
.rubriken.mittig .nav-spur { gap: 8px; align-items: center; }
.rubriken.mittig button { white-space: nowrap; }

/* Ausstellungen: Titel beginnt bündig unter dem Menüpunkt „Ausstellungen“ (Spalte per JS gemessen) */
#ausst .ausst li { grid-template-columns: var(--ausst-spalte, 220px) 1fr auto; column-gap: 0; }
#ausst .ausst .art { padding-left: 24px; }
@media (max-width: 720px) {
  #ausst .ausst li { grid-template-columns: 1fr; padding-left: var(--ausst-spalte, 0px); }
  #ausst .ausst .art { padding-left: 0; }
}

/* Ausstellung: Galerie neben dem Titel */
#ausst .titel-zeile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; }

/* Biografie zentriert */
#biografie .bio { grid-template-columns: 1fr; justify-items: center; }
#biografie .bio-text { margin-inline: auto; text-align: center; }
#biografie .bio-text p { margin-inline: auto; }
#biografie .werkserien { justify-items: center; }
#biografie .stationen { grid-template-columns: max-content minmax(0, 46ch); justify-content: center; text-align: left; }

/* Ausstellungen: Mitte zentriert, Jahr links und Art rechts bleiben */
#ausst .ausst li { grid-template-columns: minmax(0,1fr) minmax(0,2fr) minmax(0,1fr); column-gap: 24px; padding-left: 0; }
#ausst .ausst li > div { text-align: center; }
#ausst .ausst .titel-zeile { justify-content: center; }
#ausst .ausst .datum { justify-self: start; }
#ausst .ausst .art { justify-self: end; padding-left: 0; }
@media (max-width: 720px) {
  #ausst .ausst li { grid-template-columns: 1fr; }
}
#ausst .ausst .titel-zeile { flex-direction: column; align-items: center; gap: 2px; }
/* Erster Biografie-Absatz gleich groß wie der restliche Text */
#biografie .bio-text #bio-text p:first-child { font-size: 19px; line-height: 1.6; }

/* ---------- Kunstwerke im Bento-Stil ---------- */
.raster {
  grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 250px; grid-auto-flow: dense;
  gap: 16px; justify-content: stretch;
}
.werk {
  grid-column: span 2; grid-row: span 2;
  background: var(--wall); border-radius: 20px; padding: 14px 18px 16px;
  gap: 10px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease;
}
.werk:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35); }
.werk.kachel-quer { grid-column: span 4; }
.werk.kachel-gross { grid-column: span 4; grid-row: span 3; }
.werk-bild { aspect-ratio: auto; flex: 1; min-height: 0; background: transparent; border-radius: 12px; overflow: visible; }
.werk-bild img { inset: 4%; width: 92%; height: 92%; }
.werk .schild-fuss { margin-top: 6px; padding-top: 8px; }
.werk .status { top: 8px; left: 8px; border-radius: 6px; }
@media (max-width: 1000px) {
  .raster { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; }
}
@media (max-width: 640px) {
  .raster { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .werk, .werk.kachel-quer, .werk.kachel-gross { grid-column: auto; grid-row: auto; }
  .werk-bild { flex: none; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .werk:hover { transform: none; } }

/* Alle Kacheln gleich groß, Raster mittig */
.raster { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 400px)); grid-auto-rows: 540px; justify-content: center; }
.werk, .werk.kachel-quer, .werk.kachel-gross { grid-column: auto; grid-row: auto; }
@media (max-width: 640px) {
  .raster { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
}

/* Logo: Vektorgrafik aus Monikas Zeichnung (images/logo.svg), Farbe folgt dem Text */
.logo-bild { display: block; height: 46px; width: auto; color: var(--ink); }
@media (max-width: 640px) { .logo-bild { height: 36px; } }
/* Logo genau so breit wie der Name darunter (Name bestimmt die Breite) */
.logo a { display: inline-flex; flex-direction: column; align-items: stretch; }
.logo-bild, .logo-bild { width: 0; min-width: 100%; height: auto; }
@media (max-width: 640px) { .logo-bild { height: auto; } }
/* Name unter dem Logo: schwarz und kleiner */
.logo-name { color: var(--ink); font-size: 11px; }
/* Logo feste Breite, Name noch kleiner, mittig darunter und schmaler als das Logo */
.logo a { align-items: center; }
.logo-bild { width: 124px; min-width: 0; height: auto; }
.logo-name { font-size: 9.5px; padding-left: .14em; margin-top: 4px; }
@media (max-width: 640px) { .logo-bild { width: 110px; } }
/* Warenkorb-Knopf oben rechts ohne Rahmen */
.korb-knopf { border: 0; padding-inline: 6px; }
a.knopf { text-decoration: none; display: inline-block; }
/* Warenkorb oben nur als Symbol mit Anzahl */
.korb-knopf .wort { display: none; }
.raster { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 370px)); }
.korb-knopf svg { width: 20px; height: 20px; }

/* Ausstellungen: Reiter Kommende / Aktuelle / Vergangene */
#ausst-reiter { margin-bottom: clamp(24px, 3vw, 40px); }
.ausst-leer { text-align: center; color: var(--muted); padding-block: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
#ausst .ausst-link a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#ausst-reiter button:disabled { opacity: .4; cursor: default; }
/* Ausstellungen: Seitenspalten gleich breit, damit die Mitte immer exakt mittig sitzt */
#ausst .ausst .art { text-align: right; }
@media (max-width: 720px) { #ausst .ausst .art { text-align: right; } }
/* Ausstellungs-Reiter docken unter dem Kopf an, solange die Ausstellungen sichtbar sind */
.ausst-andock { position: sticky; top: var(--kopf-h, 0px); z-index: 5; background: var(--bg); padding-block: 12px; margin-top: -12px; }
#ausst .ausst-andock #ausst-reiter { margin-bottom: 0; }
#ausst .ausst-andock + .ausst { margin-top: clamp(12px, 2vw, 28px); }
/* Abschnitte gleiten beim Scrollen von unten herein */
.rein-js .abschnitt > * { opacity: 0; transform: translateY(90px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.rein-js .abschnitt.da > * { opacity: 1; transform: none; }
/* angedockte Ausstellungs-Reiter mit Abstand zum Kopf */
.ausst-andock { padding-top: 28px; margin-top: -28px; padding-bottom: 16px; }

/* Werk-Kacheln: Bilder größer, Text und Preis dezenter */
.raster { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px)); grid-auto-rows: 600px; }
.werk { padding: 10px 12px 14px; gap: 8px; }
.werk-bild img { inset: 1%; width: 98%; height: 98%; }
.werk .schild { gap: 1px; padding-inline: 4px; }
.werk .schild h3 { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.werk .schild h3 em { font-size: 13px; }
.werk .schild .medium { font-size: 13px; }
.werk .schild .masse { font-size: 11.5px; }
.werk .schild-fuss { margin-top: 4px; padding-top: 6px; }
.werk .preis { font-weight: 400; font-size: 13px; color: var(--muted); }
.werk .knopf { padding: 5px 11px; font-size: 12.5px; font-weight: 500; }
@media (max-width: 640px) {
  .raster { grid-auto-rows: auto; }
  .werk-bild { aspect-ratio: 4 / 5; }
}
.raster { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 384px)); gap: 12px; grid-auto-rows: 580px; }
.werk { padding: 8px 8px 12px; }
.werk .schild { padding-inline: 8px; }
@media (max-width: 640px) { .raster { grid-auto-rows: auto; } }

/* Reiter dezent: eckig, ohne Rahmen, aktiver Reiter schwarz, 5pt Innenabstand */
.rubriken.mittig .nav-spur { gap: 2px; }
.rubriken button, .rubriken.mittig button {
  border: 0; border-radius: 0; background: transparent; color: var(--muted);
  padding: 5pt; font-size: 13px; line-height: 1.2; letter-spacing: .01em;
}
.rubriken button:hover { color: var(--ink); background: transparent; }
.rubriken button[aria-pressed="true"], .rubriken button[aria-pressed="true"]:hover { background: var(--ink); color: var(--bg); }
.rubriken .n { font-size: 10.5px; opacity: .6; }
#ausst-reiter button:disabled { opacity: .35; }
/* Ausstellungs-Reiter direkt an der Linie unter dem Menü */
.ausst-andock { padding-top: 0; margin-top: 0; padding-bottom: 0; }
.ausst-andock { padding-bottom: 12px; }
/* Zahl neben dem Reiter: schwarz auf weißem Feld, auch im aktiven Reiter */
.rubriken .n, .rubriken button[aria-pressed="true"] .n {
  display: inline-block; margin-left: 6px; padding: 1px 5px;
  background: #fff; color: #111; font-size: 12px; opacity: 1; line-height: 1.3;
}
/* Ausstellungen: Reiter sitzen schon beim Ankommen an der Linie unter dem Menü */
#ausstellungen { padding-top: 0; }
.ausst-andock { padding-top: 10px; }
/* Reiter bleiben angedockt, bis der nächste Menüpunkt beginnt */
#ausstellungen { padding-bottom: 0; }
#ausst { padding-bottom: clamp(48px, 7vw, 96px); }

/* Abschnitte mit angedockten Reitern nur einblenden, nicht verschieben
   (eine Transform am Elternelement würde das Andocken brechen) */
.rein-js #werke > *, .rein-js #ausstellungen > * { transform: none; }
/* Werke-Reiter docken wie die Ausstellungs-Reiter an der Linie unter dem Menü an */
#werke { padding-top: 0; padding-bottom: 0; }
#werke .wrap > #rubriken { position: sticky; top: var(--kopf-h, 0px); z-index: 5; background: var(--bg); padding-top: 10px; padding-bottom: 12px; margin-bottom: clamp(12px, 2vw, 28px); }
#werke .wrap > .raster { padding-bottom: clamp(48px, 7vw, 96px); }
/* Abstand nach unten an die Liste, nicht an den Sticky-Container
   (Padding am Elternelement verkürzt den Andock-Bereich) */
#ausst { padding-bottom: 0; }
#ausst .ausst { padding-bottom: clamp(48px, 7vw, 96px); }
/* Hintergrund der angedockten Reiter über die volle Breite */
#werke .wrap > #rubriken, .ausst-andock { background: transparent; }
#werke .wrap > #rubriken::before, .ausst-andock::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -50vw; right: -50vw;
  background: var(--bg); z-index: -1;
}
/* volle Breite ohne eigenes Pseudo-Element (bleibt über dem Inhalt) */
#werke .wrap > #rubriken::before, .ausst-andock::before { content: none; }
#werke .wrap > #rubriken, .ausst-andock {
  background: var(--bg); box-shadow: -50vw 0 0 var(--bg), 50vw 0 0 var(--bg);
}
/* Werke-Reiter: Andock-Leiste wie bei den Ausstellungen */
#werke .wrap > #rubriken { position: static; padding: 0; margin: 0; box-shadow: none; background: transparent; }
.werke-andock {
  position: sticky; top: var(--kopf-h, 0px); z-index: 5;
  background: var(--bg); box-shadow: -50vw 0 0 var(--bg), 50vw 0 0 var(--bg);
  padding-top: 10px; padding-bottom: 12px; margin-bottom: clamp(12px, 2vw, 28px);
}
.werke-andock #rubriken { margin-bottom: 0; }
.ausst-andock { box-shadow: -50vw 0 0 var(--bg), 50vw 0 0 var(--bg); }
/* Reiter sitzen direkt auf der Linie unter dem Menü */
.werke-andock, .ausst-andock { padding-top: 0; }

/* ---------- Starre Reiter-Leisten (direkt in <main>, kleben über die ganze Seite) ---------- */
.reiter-leiste {
  position: sticky; top: var(--kopf-h, 0px); z-index: 6;
  background: var(--bg); box-shadow: none;
  padding: 0 0 12px; margin: 0;
  transition: opacity .25s ease, visibility .25s;
}
.reiter-leiste .rubriken.mittig { margin: 0; }
.reiter-leiste.weg { opacity: 0; visibility: hidden; pointer-events: none; }
#werke, #ausstellungen { padding-top: clamp(12px, 2vw, 28px); border-top: 0; }
#werke, #ausstellungen { scroll-margin-top: calc(var(--kopf-h, 0px) + var(--reiter-h, 44px)); }
#ausst .ausst { margin-top: 0; }

/* ---------- Kontakt: mittig, E-Mail klein und serifenlos, Formular ---------- */
.kontakt { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.kontakt .gross-link { font-family: var(--f-body); font-weight: 400; font-size: 16px; border-bottom: 0; letter-spacing: .01em; }
.kontakt .unter { color: var(--muted); font-size: 14px; }
.kontakt-form { width: min(100%, 480px); display: grid; gap: 14px; margin-top: 32px; text-align: left; }
.kontakt-form label { display: grid; gap: 4px; }
.kontakt-form label span { font-size: 13px; color: var(--muted); }
.kontakt-form input, .kontakt-form textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--wall);
  border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; width: 100%;
}
.kontakt-form textarea { resize: vertical; min-height: 120px; }
.kontakt-form input:focus, .kontakt-form textarea:focus { outline: none; border-color: var(--ink); }
.kontakt-form .knopf { justify-self: center; margin-top: 4px; }
#ausst-reiter, #rubriken { margin-bottom: 0; }

/* Biografie: Schriftgrößen an den Rest der Seite angleichen */
#biografie #bio-text p, #biografie .bio-text #bio-text p:first-child { font-size: 15px; line-height: 1.65; }
#biografie #werkserien h3 { font-size: 20px; }
#biografie #werkserien p, #biografie #stationen dd { font-size: 15px; line-height: 1.6; }
#biografie #stationen dt { font-size: 12px; }
.kontakt-titel { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -.01em; }
.kontakt-form { margin-top: 20px; }

/* Werkserien: Jahr links, Titel und Text exakt mittig (wie bei den Ausstellungen) */
#biografie .werkserien {
  width: min(var(--maxw, 1180px) - 2 * var(--gutter, 24px), 100vw - 2 * var(--gutter, 24px));
  position: relative; left: 50%; transform: translateX(-50%);
  justify-items: stretch;
}
.serie { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); column-gap: 24px; align-items: baseline; }
.serie-jahr { justify-self: start; text-align: left; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.serie-mitte { text-align: center; }
@media (max-width: 720px) {
  .serie { grid-template-columns: 1fr; row-gap: 2px; }
  .serie > span:last-child { display: none; }
}
/* Werkserien wie Ausstellungen: Trennlinien zwischen den Einträgen */
#biografie .werkserien { gap: 0; padding-top: 0; border-top: 1px solid var(--ink); }
.serie { padding-block: 22px; border-bottom: 1px solid var(--line); }
.serie-jahr { font-size: 13px; letter-spacing: .02em; }
/* Biografie-Texte im selben Grau wie die Ausstellungs-Texte, Titel bleiben schwarz */
#biografie #bio-text p, #biografie .serie p, #biografie #stationen dd { color: var(--muted); }
/* Ausstellungstitel so groß wie die Titel der Werkserien */
#ausst .ausst .titel { font-size: 20px; font-weight: 600; }

/* Galerie-Kacheln: Bild randlos und vollflächig, Kachel oben eckig, unten rund */
.werk { padding: 0 0 14px; border-radius: 0 0 20px 20px; }
.werk-bild { border-radius: 0; overflow: hidden; }
.werk-bild img { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.werk .schild { padding-inline: 16px; }
.werk .status { top: 10px; left: 10px; }
/* Reiter-Leisten durchscheinend wie der Kopf (Bilder schimmern unscharf durch) */
.reiter-leiste {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: none;
}
/* Reiter-Leisten ganz ohne Hintergrund */
.reiter-leiste { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
/* Nicht gewählte Reiter: milchig durchscheinend, damit sie über Bildern lesbar bleiben */
.rubriken button:not([aria-pressed="true"]) {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink);
}
.rubriken button:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.rubriken button:disabled { color: var(--muted); }

/* ---------- Abschnittswechsel: immer nur ein Menüpunkt sichtbar ---------- */
.reiter-leiste { position: fixed; top: var(--kopf-h, 0px); left: 0; right: 0; }
#werke, #ausstellungen { padding-top: calc(var(--reiter-h, 44px) + clamp(12px, 2vw, 28px)); scroll-margin-top: var(--kopf-h, 0px); }
.wechsel-js .abschnitt > * { transition: opacity .45s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.wechsel-js .abschnitt.drunter > * { opacity: 0; transform: translateY(90px); }
.wechsel-js .abschnitt.drueber > * { opacity: 0; }
.wechsel-js .abschnitt.an > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .wechsel-js .abschnitt.drunter > * { transform: none; }
}
/* Ausstellungen: keine schwarze Linie oben, Liste näher an den Reitern */
#ausst .ausst li:first-child { border-top: 0; }
#ausstellungen { padding-top: calc(var(--reiter-h, 44px) + 4px); }
#ausst .ausst li:first-child { padding-top: 8px; }

/* Galerie: Bilder wieder mit Rand in der runden Kachel (wie vorher), vier Werke nebeneinander */
.werk { padding: 8px 8px 12px; border-radius: 20px; }
.werk-bild { border-radius: 12px; overflow: visible; }
.werk-bild img { inset: 1%; width: 98%; height: 98%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .18)); }
.werk .schild { padding-inline: 8px; }
.werk .status { top: 8px; left: 8px; }
.raster { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; grid-auto-rows: 480px; }
@media (max-width: 1100px) { .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 440px; } }
@media (max-width: 640px)  { .raster { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } }
/* Galerie: 4 nebeneinander, wenn es nicht passt (kleines Fenster, Handy) immer 2 */
@media (max-width: 1100px) { .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 520px; } }
@media (max-width: 640px) {
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; }
  .werk { padding: 6px 6px 10px; border-radius: 14px; gap: 6px; }
  .werk-bild { flex: none; aspect-ratio: 4 / 5; }
  .werk .schild { padding-inline: 4px; }
  .werk .schild h3 { font-size: 14px; }
  .werk .schild h3 em { font-size: 11px; margin-left: 4px; }
  .werk .schild .medium { font-size: 11.5px; }
  .werk .schild .masse { font-size: 10.5px; }
  .werk .schild-fuss { flex-direction: column; align-items: flex-start; gap: 6px; }
  .werk .preis { font-size: 12px; }
  .werk .knopf { padding: 4px 9px; font-size: 11.5px; }
}

/* ---------- Kontakt: keine Linie, Anfrage näher an der Menülinie ---------- */
#biografie, #kontakt { border-top: 0; padding-top: clamp(12px, 2vw, 28px); min-height: calc(100vh - var(--kopf-h, 0px)); }

/* ---------- Ausstellungen: erster Eintrag so weit vom Reiter wie die Bilderrahmen in der Galerie ---------- */
#ausst .ausst li:first-child { margin-top: calc(clamp(12px, 2vw, 28px) - 6px); }

/* ---------- Kontakt: Danke nach dem Absenden ---------- */
.kontakt-danke { display: none; }
#kontakt.gesendet .kontakt > .kontakt-titel, #kontakt.gesendet .kontakt-form { display: none; }
#kontakt.gesendet .kontakt-danke { display: grid; justify-items: center; gap: 10px; }
.kontakt-danke p { margin: 0; color: var(--muted); max-width: 420px; }
.kontakt-danke .kontakt-titel { color: var(--ink); }
.kontakt-neu { margin-top: 12px; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.kontakt-fehler { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Galerie: ganze Fensterbreite nutzen ---------- */
#werke > .wrap { max-width: none; padding-inline: 12px; }
@media (min-width: 1101px) { .raster { grid-auto-rows: max(480px, 34vw); } }

/* ---------- Galerie: unter dem Bild nur der Titel; der Rest klappt beim Drüberfahren auf ---------- */
.schild-mehr { display: grid; grid-template-rows: 1fr; }
.schild-mehr > div { overflow: hidden; min-height: 0; }
@media (hover: hover) {
  .raster .schild h3 em { opacity: 0; transition: opacity .3s ease; }
  .schild-mehr { grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s ease, opacity .3s ease; }
  .werk:hover .schild-mehr, .werk:focus-within .schild-mehr { grid-template-rows: 1fr; opacity: 1; }
  .werk:hover .schild h3 em, .werk:focus-within .schild h3 em { opacity: 1; }
}

/* ---------- Galerie: quadratischer Bildbereich, Bild darin eingepasst ---------- */
.raster { grid-auto-rows: auto; align-items: start; }
.werk-bild { flex: none; aspect-ratio: 1 / 1; height: auto; }
/* Mit Maus: die weiteren Angaben klappen unter der Kachel auf, ohne das Raster zu verschieben */
@media (hover: hover) {
  .werk { position: relative; overflow: visible; }
  .werk:hover, .werk:focus-within { z-index: 3; border-radius: 20px 20px 0 0; }
  .schild-mehr {
    position: absolute; left: 0; right: 0; top: 100%; margin-top: -2px;
    padding: 0 16px 12px; background: var(--wall); border-radius: 0 0 20px 20px;
    box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .35); pointer-events: none;
  }
  .werk:hover .schild-mehr, .werk:focus-within .schild-mehr { pointer-events: auto; }
}

/* ---------- Menü: ein Viertel des ursprünglichen Abstands zum Logo ---------- */
.kopf .nav { margin-top: calc(0.75cm - 2px); }
/* Menüpunkte enger zusammen und in der Höhe mittig zum großen aktiven Punkt */
.kopf .nav-spur { gap: 22px; align-items: center; }
.kopf .nav a { line-height: 1; }
@media (max-width: 640px) { .kopf .nav-spur { gap: 16px; } }

/* ---------- Galerie: Werktitel zentriert, normale Groß- und Kleinschreibung ---------- */
/* Schrift wie der Name unter dem Logo: serifenlos, normal, weit gesperrt, Großbuchstaben */
.raster .schild h3 { text-align: center; font-size: 13px; font-family: var(--f-body); font-weight: 400; letter-spacing: .14em; color: var(--ink); text-transform: uppercase; }
@media (max-width: 640px) { .raster .schild h3 { font-size: 11px; letter-spacing: .1em; } }

/* ---------- Galerie: Titelbereich in der Farbe des Bildrahmens ---------- */
.raster .werk { padding-bottom: 0; }
.raster .schild { background: var(--wall); margin: 0 -8px; padding: 12px 16px 14px; border-radius: 0 0 20px 20px; }
@media (max-width: 640px) { .raster .werk { padding-bottom: 0; } .raster .schild { margin: 0 -6px; padding: 10px 10px 12px; border-radius: 0 0 14px 14px; } }
@media (hover: hover) {
  .raster .werk:hover .schild, .raster .werk:focus-within .schild { border-radius: 0; }
  .raster .schild-mehr { background: var(--wall); }
}

/* ---------- Galerie: Bild beginnt erst nach der Rundung des Rahmens, oben und seitlich ---------- */
.raster .werk { padding-top: 20px; padding-inline: 20px; }
.raster .schild { margin-inline: -20px; }
@media (max-width: 640px) { .raster .werk { padding-top: 14px; padding-inline: 14px; } .raster .schild { margin-inline: -14px; } }

/* ---------- Galerie: dünne Linie über dem Titel, bündig mit dem Bildfeld ---------- */
.raster .schild { padding-inline: 20px; }
.raster .schild h3 { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 640px) { .raster .schild { padding-inline: 14px; } .raster .schild h3 { padding-top: 10px; } }
/* Linie auch unter dem Titel, vor den aufklappenden Angaben */
.raster .schild-mehr .medium { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 0; }
@media (hover: hover) { .raster .schild-mehr { padding-inline: 20px; } }
/* Infos unter dem Titel zentriert: Technik, Maße, dann Preis und Knopf untereinander */
.raster .schild-mehr { text-align: center; }
.raster .schild-fuss { flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
/* Jahr nimmt keinen Platz ein, solange es ausgeblendet ist: Titel steht mittig, beim Einblenden wird neu zentriert */
@media (hover: hover) {
  .raster .schild h3 em { display: inline-block; max-width: 0; margin-left: 0; overflow: hidden; vertical-align: bottom; white-space: nowrap; transition: max-width .4s ease, margin-left .4s ease, opacity .3s ease; }
  .raster .werk:hover .schild h3 em, .raster .werk:focus-within .schild h3 em { max-width: 6em; margin-left: 6px; }
}

/* ---------- Galerie: Werktitel in derselben Schrift wie die Ausstellungstitel ---------- */
.raster .schild h3 { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: normal; text-transform: none; line-height: 23px; color: var(--ink); }
.raster .schild h3 em { font-family: var(--f-body); font-size: 14px; font-weight: 400; color: var(--muted); }
@media (max-width: 640px) { .raster .schild h3 { font-size: 16px; line-height: 19px; letter-spacing: normal; } .raster .schild h3 em { font-size: 11px; } }
/* Werktitel etwas kleiner und im Grau der Menüpunkte statt Schwarz */
.raster .schild h3 { font-size: 18px; line-height: 21px; color: var(--muted); }
@media (max-width: 640px) { .raster .schild h3 { font-size: 15px; line-height: 18px; } }

/* ---------- Galerie: Titel wieder schwarz, darüber klein der Künstlername ---------- */
.raster .schild h3 { color: var(--ink); border-top: 0; padding-top: 2px; }
.raster .schild .kuenstler { display: block; text-align: center; border-top: 1px solid var(--line); padding-top: 12px; font-family: var(--f-body); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
@media (max-width: 640px) { .raster .schild .kuenstler { padding-top: 10px; font-size: 10.5px; } }
