/* Lokal gehostete Schriften (SIL OFL 1.1), keine Verbindung zu Google */
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/bodoni-moda-400-normal-latin.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/bodoni-moda-400-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-400-normal-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-500-normal-latin.woff2") format("woff2"); }

/* Ruhige Galeriewand: helles Grau, damit zehn Stilrichtungen nebeneinander bestehen */
:root {
  --wand: #f4f2ee;
  --karte: #ebe8e2;
  --text: #1d1b18;
  --leise: #6b655c;
  --linie: #d9d4cb;
  --gold: #9a7400;
  --serif: "Bodoni Moda", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--wand); color: var(--text); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.kopf { max-width: 1240px; margin: 0 auto; padding: 72px 24px 32px; }
.marke { margin: 0 0 20px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.marke a { text-decoration: none; }
h1 { font: 400 clamp(44px, 7vw, 88px)/1 var(--serif); margin: 0 0 20px; letter-spacing: -.01em; }
.intro { max-width: 34em; margin: 0 0 8px; font-size: 17px; }
.bilanz { margin: 0; color: var(--leise); font-size: 13px; }

.serien { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--wand) 92%, transparent); backdrop-filter: blur(6px); border-block: 1px solid var(--linie); }
.serien { display: flex; gap: 22px; overflow-x: auto; padding: 14px max(24px, calc((100% - 1240px) / 2 + 24px)); scrollbar-width: none; }
.serien a { white-space: nowrap; text-decoration: none; font-size: 13px; letter-spacing: .04em; color: var(--leise); }
.serien a:hover, .serien a:focus-visible { color: var(--text); }

.filter { max-width: 1240px; margin: 0 auto; padding: 18px 24px 0; font-size: 13px; color: var(--leise); }

main { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.serie { padding: 56px 0 8px; }
.serie header { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--linie); padding-bottom: 10px; margin-bottom: 8px; }
h2 { font: 400 32px/1.1 var(--serif); margin: 0; }
.zahl { font-size: 12px; color: var(--leise); }
.serientext { max-width: 40em; margin: 12px 0 0; color: var(--leise); font-style: italic; font-family: var(--serif); font-size: 17px; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 28px; margin-top: 28px; }
.werk { margin: 0; }
.bild { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--karte); padding: 18px; }
.bild img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); transition: transform .3s ease; }
.bild:hover img { transform: scale(1.02); }
figcaption { padding-top: 12px; }
h3 { font: 500 13px/1.3 var(--sans); letter-spacing: .08em; margin: 0 0 4px; }
.daten, .ort { margin: 0; font-size: 13px; color: var(--leise); }
.status { margin: 6px 0 0; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 14px; align-items: baseline; }
.status-frei { color: var(--gold); }
.status-verkauft, .status-gespendet, .status-nicht { color: var(--leise); }
.anfrage { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--text); text-underline-offset: 3px; }

.filter { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.filter label { display: flex; gap: 8px; align-items: center; }
.filter select { font: inherit; color: var(--text); background: var(--karte); border: 1px solid var(--linie); padding: 6px 8px; }
.treffer { color: var(--gold); }
[hidden] { display: none !important; }

.fuss { max-width: 1240px; margin: 80px auto 0; padding: 32px 24px 56px; border-top: 1px solid var(--linie); font-size: 13px; color: var(--leise); }
.fuss p { margin: 0 0 6px; }

@media (max-width: 560px) {
  .kopf { padding-top: 48px; }
  .raster { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .bild { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bild img { transition: none; } }

/* Grossansicht */
#gross { border: 0; padding: 56px 24px 24px; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(20, 18, 16, .94); color: #f4f2ee; box-sizing: border-box; }
#gross[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
#gross::backdrop { background: rgba(20, 18, 16, .94); }
#gross img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.gross-titel { margin: 0; font-size: 13px; letter-spacing: .06em; text-align: center; }
.zu { position: fixed; top: 14px; right: 18px; font: 500 15px/1 var(--sans); color: #f4f2ee; background: transparent; border: 1px solid rgba(244, 242, 238, .5); padding: 10px 14px; cursor: pointer; }
.zu:hover, .zu:focus-visible { background: rgba(244, 242, 238, .12); }

/* Textseiten (Datenschutz) */
.text { max-width: 720px; margin: 0 auto; padding: 64px 24px 80px; }
.text h1 { font-size: clamp(40px, 6vw, 64px); }
.text h2 { font-size: 22px; margin: 36px 0 8px; }
.text p { margin: 0 0 12px; }
.fuss-klein { margin-top: 48px; font-size: 13px; color: var(--leise); }
