/* Online-Atelier: ruhige Galerie, große Schrift, Druckerschwärze plus Zinnoberrot. */

@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2?v=28966ccf") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2?v=28966ccf") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2?v=28966ccf") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-wght-normal.woff2?v=28966ccf") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --papier: #fbfbfa;
  --flaeche: #efefec;      /* Passepartout */
  --flaeche-tief: #e4e4e0;
  --tinte: #151515;
  --text-2: #45453f;       /* Nebentext, Kontrast ca. 9:1 */
  --linie: #cfcfc9;        /* nur Trennlinien */
  --rand-knopf: #85857e;   /* Ränder von Bedienelementen, mind. 3:1 */
  --bildschatten: drop-shadow(0 1px 1px rgb(0 0 0 / .08)) drop-shadow(0 6px 14px rgb(0 0 0 / .10));
  --rot: #b8321f;          /* Zinnober, Kontrast ca. 5.6:1 */
  --rot-text: #a52b1a;
  --auf-tinte: #fbfbfa;
  --hinweis: #f4e3a1;
  --schatten: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .07);
  --rahmen-max: 1320px;
  --rand: clamp(16px, 4vw, 48px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson", "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --papier: #141414;
    --flaeche: #1f1f1d;
    --flaeche-tief: #2a2a27;
    --tinte: #f1f0ec;
    --text-2: #c2c1bb;
    --linie: #3d3d39;
    --rand-knopf: #7a7a72;
    --bildschatten: drop-shadow(0 1px 1px rgb(0 0 0 / .4)) drop-shadow(0 6px 14px rgb(0 0 0 / .35));
    --rot: #e0634d;
    --rot-text: #ff8b74;
    --auf-tinte: #141414;
    --hinweis: #4a3f12;
    --schatten: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* versteckt heißt versteckt, egal welche display-Regel greift */
html { font-size: 125%; -webkit-text-size-adjust: 100%; }   /* 20 px Grundschrift */
html.gross { font-size: 150%; }                             /* 24 px */
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--rot-text); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
p { margin: 0 0 1em; }
.rahmen { width: 100%; max-width: var(--rahmen-max); margin-inline: auto; padding-inline: var(--rand); }
.klein { font-size: .9rem; color: var(--text-2); }

.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 16px; top: 16px; z-index: 10; background: var(--tinte); color: var(--auf-tinte); padding: .6rem 1rem; }

.vorschau-hinweis { margin: 0; padding: .55rem var(--rand); background: var(--hinweis); color: var(--tinte); font-size: .9rem; text-align: center; }

/* ---------- Kopf */
.kopf { border-bottom: 1px solid var(--linie); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem .6rem; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.marke-text { display: flex; flex-direction: column; line-height: 1.15; }
.marke-name { font-family: var(--serif); font-weight: 650; font-size: 1.45rem; letter-spacing: -.01em; }
.marke-unter { font-size: .9rem; color: var(--text-2); }
.stempel {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none;
  background: #b8321f; color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  border-radius: 3px; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .18);
}
.menue { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2rem; }
.menue a {
  display: inline-flex; align-items: center; min-height: 3rem; padding-top: 3px;
  font-size: 1.05rem; font-weight: 700; text-decoration: none; border-bottom: 4px solid transparent;
}
.menue a:hover { border-bottom-color: var(--linie); color: inherit; }
.menue a[aria-current="page"] { border-bottom-color: var(--rot); }

/* ---------- Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .55rem 1.3rem; border: 2px solid var(--tinte); border-radius: 4px;
  background: var(--tinte); color: var(--auf-tinte); font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.knopf:hover { background: var(--rot); border-color: var(--rot); color: #fff; }
.knopf.zweit { background: transparent; color: var(--tinte); }
.knopf.zweit:hover { background: var(--flaeche); border-color: var(--tinte); color: var(--tinte); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .8rem; }
.schrift-knopf { min-height: 2.6rem; padding-inline: 1rem; font-size: .9rem; }
.schrift-a { font-family: var(--serif); font-size: 1.3em; line-height: 1; }
html:not(.js) .schrift-knopf { display: none; }

/* ---------- Passepartout: Werke nie beschneiden */
/* Das Bild füllt die Innenfläche und wird mit object-fit: contain eingepasst.
   drop-shadow folgt nur dem sichtbaren Bild, nicht den leeren Rändern. */
.passepartout {
  --pp: 9%;
  position: relative; display: block; background: var(--flaeche);
  aspect-ratio: 1 / 1; overflow: hidden; border: 0; padding: 0; width: 100%; color: inherit;
}
.passepartout picture { display: contents; }
.passepartout img {
  position: absolute; top: var(--pp); left: var(--pp);
  width: calc(100% - 2 * var(--pp)); height: calc(100% - 2 * var(--pp));
  max-width: none; object-fit: contain; filter: var(--bildschatten);
}

/* ---------- Startseite */
.buehne { display: grid; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 1000px) { .buehne { grid-template-columns: 1.45fr 1fr; } }
.buehne-bild { margin: 0; }
.passepartout-gross { aspect-ratio: 4 / 3; --pp: 6%; text-decoration: none; }
.buehne-bild figcaption { margin-top: .6rem; font-size: .9rem; color: var(--text-2); }
.buehne-text h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.2rem); margin-bottom: .2em; }
.unterzeile { font-size: 1.15rem; color: var(--text-2); margin-bottom: 1.3em; }
.einleitung { font-size: 1.1rem; max-width: 38em; }

/* Trennlinie innerhalb des Innenabstands, damit sie nicht breiter als der Inhalt ist */
.abschnitt { padding-block: 0 clamp(2rem, 5vw, 4rem); }
.abschnitt::before { content: ""; display: block; height: 1px; background: var(--linie); margin-bottom: clamp(2rem, 5vw, 4rem); }
.abschnitt-oben { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 5rem); }

/* ---------- Raster */
.raster { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.2rem, 2.5vw, 2.2rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.raster-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
@media (min-width: 1100px) { .raster-4 { grid-template-columns: repeat(4, 1fr); } }
.raster li[hidden] { display: none; }
.kachel a, .technik-kachel a { display: block; text-decoration: none; height: 100%; }
.kachel-titel { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin: .75rem 0 .1rem; }
.kachel-info { display: block; color: var(--text-2); font-size: .95rem; }
/* Werk ohne Titel: die Infozeile ist der einzige Text, also Abstand zum Bild und gut lesbar */
.passepartout + .kachel-info { margin-top: .75rem; font-size: 1.05rem; color: var(--tinte); }
.kachel a:hover .passepartout + .kachel-info { color: var(--rot-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.kachel a:hover .kachel-titel, .technik-kachel a:hover .kachel-titel { color: var(--rot-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.kachel a:hover .passepartout, .technik-kachel a:hover .passepartout { background: var(--flaeche-tief); }
.technik-kachel .kachel-titel { font-size: 1.5rem; }

.jahrzehnte { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.jahrzehnt {
  display: flex; flex-direction: column; min-height: 5rem; justify-content: center; padding: .7rem 1.1rem;
  border: 2px solid var(--rand-knopf); border-radius: 4px; text-decoration: none;
}
.jahrzehnt:hover { border-color: var(--tinte); color: inherit; background: var(--flaeche); }
.jz-zahl { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.jz-anzahl { color: var(--text-2); font-size: .9rem; }

/* ---------- Filter */
.filter { display: grid; gap: .9rem; margin: 1.2rem 0 1rem; padding: 1rem 1.1rem; background: var(--flaeche); border-radius: 4px; }
.filter-titel { font-weight: 700; margin: 0 0 .45rem; display: block; }
.filter-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }
.wahl {
  min-height: 2.9rem; padding: .45rem 1rem; border: 2px solid var(--rand-knopf); border-radius: 4px; background: var(--papier);
  color: var(--tinte); font: 700 .95rem/1.2 var(--sans); cursor: pointer;
}
.wahl span { font-weight: 400; color: var(--text-2); margin-left: .25rem; }
.wahl:hover { border-color: var(--tinte); }
.wahl[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: var(--auf-tinte); }
.wahl[aria-pressed="true"] span { color: inherit; opacity: .8; }
select {
  min-height: 2.9rem; padding: .4rem 2.4rem .4rem .9rem; font: 700 .95rem var(--sans); color: var(--tinte); background: var(--papier);
  border: 2px solid var(--rand-knopf); border-radius: 4px; max-width: 100%;
}
.treffer { font-weight: 700; margin-bottom: 1.4rem; }
.leer { padding: 2rem; text-align: center; background: var(--flaeche); border-radius: 4px; margin-bottom: 2rem; }
.brotkrumen { font-size: .95rem; color: var(--text-2); margin-bottom: 1.2rem; }
.brotkrumen a { color: var(--tinte); font-weight: 700; }

/* ---------- Werkseite */
.werk-raster { display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
@media (min-width: 1000px) { .werk-raster { grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr); } }
.werk-bild { margin: 0; }
/* Werkseite: Bild plus Blätter-Knöpfe passen auf den ersten Bildschirm.
   --werk-h = verfügbare Bildhöhe (Bildschirm minus Kopf, Brotkrumen, Titel, Knöpfe). */
.passepartout-werk {
  --werk-h: max(14rem, calc(100vh - 22rem));
  display: grid; place-items: center; aspect-ratio: auto; height: auto; padding: 1rem; cursor: zoom-in; border-radius: 0;
}
@supports (height: 100svh) { .passepartout-werk { --werk-h: max(14rem, calc(100svh - 22rem)); } }
/* width:100% + height:auto reserviert den Platz schon vor dem Laden (width/height-Attribute),
   object-fit: contain verhindert jedes Beschneiden. */
.passepartout-werk img {
  position: static; width: 100%; height: auto; max-height: calc(var(--werk-h) - 2rem); object-fit: contain;
}
.werk-hoch .passepartout-werk img { width: auto; max-width: 100%; height: calc(var(--werk-h) - 2rem); }
@media (min-width: 1000px) {
  .passepartout-werk { --werk-h: max(16rem, min(calc(100vh - 21rem), 60rem)); }
  @supports (height: 100svh) { .passepartout-werk { --werk-h: max(16rem, min(calc(100svh - 21rem), 60rem)); } }
  /* Hochformat: Bildspalte nur so breit wie das Bild, Text bekommt den Rest */
  .werk-hoch .werk-raster { grid-template-columns: auto minmax(18rem, .8fr); }
  .s-werk .kopf-innen { padding-block: .7rem .3rem; }
  .werk-hoch .passepartout-werk { width: auto; min-width: 16rem; }
}
@media (max-width: 999px) {
  /* Titel über dem Bild, damit man sofort sieht, welches Werk es ist */
  .werk-text { display: contents; }
  .werk-text h1 { order: -1; margin-bottom: 0; }
  .werk-raster { gap: 1rem; }
}
/* immer in einer Zeile, auch unter schmalen Hochformaten */
.blaettern-kurz { display: flex; gap: .6rem; margin-top: .9rem; }
.blaettern-kurz .knopf { flex: 1 1 0; min-width: 0; padding-inline: .6rem; white-space: normal; text-align: center; line-height: 1.2; font-size: .95rem; }
.werk.abschnitt-oben { padding-top: .8rem; }
.werk .brotkrumen { margin-bottom: .2rem; }
@media (max-width: 999px) {
  .werk .brotkrumen { order: -2; }
}
.knopf-ende { border-style: dashed; color: var(--text-2); cursor: default; }
.knopf-ende:hover { background: transparent; border-color: var(--tinte); color: var(--text-2); }
.werk-text h1 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); }
.angaben { margin: 0 0 1.4rem; border-top: 1px solid var(--linie); }
.angaben div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.angaben dt { color: var(--text-2); }
.angaben dd { margin: 0; font-weight: 700; }
.werk-beschreibung { font-size: 1.05rem; }
.status { min-height: 1.6em; color: var(--text-2); font-size: .95rem; }
.beispiel-marke { display: inline-block; margin-top: .6rem; padding: .15rem .6rem; background: var(--hinweis); font-size: .9rem; font-weight: 700; border-radius: 3px; }

.blaettern { display: grid; gap: .8rem; margin-top: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .blaettern { grid-template-columns: 1fr auto 1fr; } }
.blatt {
  display: flex; flex-direction: column; justify-content: center; min-height: 4.5rem; padding: .8rem 1.2rem;
  border: 2px solid var(--rand-knopf); border-radius: 4px; text-decoration: none;
}
a.blatt:hover { border-color: var(--tinte); background: var(--flaeche); color: inherit; }
.blatt-wort { font-weight: 700; font-size: 1.05rem; }
.blatt-titel { color: var(--text-2); font-size: .95rem; }
.blatt-nach { text-align: right; align-items: flex-end; }
.blatt-mitte { text-align: center; align-items: center; }
.blatt-leer { color: var(--text-2); border-style: dashed; justify-content: center; font-size: .95rem; }
@media (max-width: 699px) { .blatt-nach { text-align: left; align-items: flex-start; } .blatt-mitte { order: 3; text-align: left; align-items: flex-start; } }
.blatt-zaehler { margin-top: .8rem; color: var(--text-2); font-size: .9rem; text-align: center; }

/* ---------- Vollbild */
.vollbild { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0d0d0d; color: #f1f0ec; }
.vollbild::backdrop { background: #0d0d0d; }
.vollbild[open] { display: flex; flex-direction: column; }
.vollbild-leiste { display: flex; align-items: center; gap: .6rem; padding: .7rem var(--rand); }
.vollbild-titel { flex: 1 1 0; min-width: 0; margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vollbild-leiste .knopf { flex: none; }
.vollbild .knopf { background: #f1f0ec; color: #0d0d0d; border-color: #f1f0ec; }
.vollbild .knopf.zweit { background: transparent; color: #f1f0ec; }
.vollbild-flaeche { flex: 1; position: relative; overflow: hidden; min-height: 0; }
.vollbild-flaeche img {
  position: absolute; inset: 0 var(--rand) var(--rand); width: calc(100% - 2 * var(--rand)); height: calc(100% - var(--rand));
  max-width: none; object-fit: contain; cursor: zoom-in;
}
.vollbild-flaeche.gezoomt { overflow: auto; cursor: grab; }
.vollbild-flaeche.gezoomt img { position: static; width: 220%; height: auto; cursor: zoom-out; }
html.dialog-offen { overflow: hidden; }

/* ---------- Über */
.ueber { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (min-width: 900px) { .ueber { grid-template-columns: minmax(16rem, 420px) 1fr; } }
.ueber-bild { margin: 0; }
.ueber-bild .passepartout { aspect-ratio: 4 / 5; --pp: 7%; }
.zitat { margin: 1.8rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 4px solid var(--rot); font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; }
.zitat p { margin: 0; }
.zahlen { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; }
.zahlen strong { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; }
.zwei-spalten { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .zwei-spalten { grid-template-columns: 1fr 1fr; } }
.zeitleiste { list-style: none; margin: 0; padding: 0; }
.zeitleiste li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--linie); }
.zl-jahr { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--rot-text); }

/* ---------- Textseiten */
.schmal { max-width: 52rem; }
.text h2 { font-size: 1.4rem; margin-top: 1.8rem; }
.todo { background: var(--hinweis); padding: .1rem .4rem; border-radius: 3px; }

/* ---------- Fuß */
.fuss { border-top: 1px solid var(--linie); margin-top: 2rem; }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.6rem 2.4rem; }
.fuss-name { display: flex; align-items: center; gap: .7rem; margin: 0; font-weight: 700; flex-wrap: wrap; }
.fuss-name span:last-child { font-weight: 400; color: var(--text-2); }
.fuss .stempel { width: 1.9rem; height: 1.9rem; font-size: .8rem; }
.fuss-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.fuss-links a { display: inline-flex; min-height: 3rem; align-items: center; }

/* ---------- Umbruch, Tippflächen, Filter-Zeile */
h1, h2, h3, .kachel-titel, .blatt-titel { overflow-wrap: break-word; hyphens: auto; }
.marke-name { overflow-wrap: break-word; hyphens: auto; }
.werk-text, .buehne-text { min-width: 0; }
/* Trennlinie innerhalb des Innenabstands, damit sie nicht breiter als der Inhalt ist */
.zwei-spalten::before { grid-column: 1 / -1; margin-bottom: 0; }
.text a { display: inline-block; padding-block: .6rem; }
.brotkrumen a, figcaption a, .klein a { display: inline-flex; align-items: center; min-height: 3rem; }
.vorschau-hinweis .kurz, .menue .kurz, .galerie-pfeil .kurz, .galerie-extra .kurz, .schrift-kurz { display: none; }
.knopf:disabled { cursor: default; }
.s-galerie .vorschau-hinweis { padding-block: .3rem; }
.s-galerie .vorschau-hinweis .lang { display: none; }
.s-galerie .vorschau-hinweis .kurz { display: inline; }
@media (min-width: 700px) {
  .filter-gruppe { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 1rem; }
  .filter-titel { margin: 0; }
}
.filter-klappe[hidden] { display: none; }
.filter-schalter { display: none; list-style: none; }
.filter-schalter::-webkit-details-marker { display: none; }
@media (max-width: 600px) {
  .filter-schalter { display: flex; width: 100%; margin: .6rem 0 .2rem; }
  .filter-schalter::after { content: " ▾"; margin-left: .4rem; }
  .filter-klappe[open] .filter-schalter::after { content: " ▴"; }
}
.treffer-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.4rem; }
.treffer-zeile .treffer { margin: 0; }
.sortierung { display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 700; flex-wrap: wrap; }
.sortierung[hidden] { display: none; }

/* ---------- Handy: Kopf in zwei Zeilen (Name + Schrift-Knopf, dann Menü) */
@media (max-width: 600px) {
  .vorschau-hinweis { padding-block: .35rem; }
  .vorschau-hinweis .lang, .menue .lang { display: none; }
  .vorschau-hinweis .kurz, .menue .kurz { display: inline; }
  .kopf-innen { flex-wrap: nowrap; padding-block: .7rem .2rem; gap: .6rem; }
  .marke { flex: 1 1 0; min-width: 0; gap: .6rem; }
  .marke-name { font-size: 1.15rem; }
  .marke-unter { display: none; }
  .kopf .stempel { width: 2rem; height: 2rem; font-size: .85rem; }
  .schrift-knopf { flex: none; padding-inline: .7rem; }
  .schrift-knopf .schrift-text { display: none; }
  .schrift-knopf .schrift-kurz { display: inline; font-size: .9rem; }
  .menue { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0 .6rem; }
  html.gross .marke-name { font-size: .95rem; }
  html.gross .kopf .stempel { display: none; }
  .menue a { min-width: 3rem; justify-content: center; }
  html.gross .menue { gap: 0 .2rem; }
  html.gross .menue a { font-size: .95rem; min-width: 0; }
  /* 2) Zusatzknöpfe im Rundgang nebeneinander und kurz */
  .galerie-extra { display: grid; grid-template-columns: 1fr 1fr; }
  .galerie-extra .lang { display: none; }
  .galerie-extra .kurz { display: inline; }
  .galerie-extra .knopf { padding-inline: .5rem; }
  /* 10) Filter kompakter: Techniken zu zweit, Jahrzehnte zu dritt */
  .filter-gruppe:first-child .filter-knoepfe { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-gruppe:nth-child(2) .filter-knoepfe { display: grid; grid-template-columns: repeat(3, 1fr); }
  .filter .wahl { padding-inline: .4rem; }
  .angaben div { grid-template-columns: 1fr; gap: 0; }
  .zeitleiste li { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- 3D-Rundgang */
.galerie.abschnitt-oben { padding-top: 1rem; padding-bottom: 2rem; }
.galerie-titel { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); margin: 0; }
.galerie-hilfe { color: var(--text-2); margin: 1.4rem auto 0; max-width: 46em; text-align: center; }
.galerie-titel { margin-bottom: .6rem; }
.saele { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.4rem; padding: 1rem 1.1rem; background: var(--flaeche); border-radius: 4px; }
.technik-gruppe + .technik-gruppe { margin-top: clamp(1.8rem, 4vw, 3rem); }
.gruppe-titel { font-size: 1.6rem; margin-bottom: 1rem; padding-top: .9rem; border-top: 3px solid var(--tinte); color: var(--tinte); }
.technik-kachel h4.kachel-titel { font-size: 1.3rem; }
.sammlung-ueberblick { color: var(--text-2); margin-bottom: 1.4rem; }
@media (max-width: 600px) {
  /* Startseite: Technik-Kacheln zu zweit, sonst wird die Seite sehr lang */
  .technik-gruppe .raster-4 { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .technik-kachel h4.kachel-titel { font-size: 1.1rem; }
  .technik-kachel .kachel-info { font-size: .9rem; }
  /* Rundgang: Säle zu zweit */
  .saele { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saele .wahl { min-width: 0; white-space: normal; line-height: 1.2; }
  .saele-titel { grid-column: 1 / -1; }
}
/* iPad quer: Filter kompakter, damit die erste Werkreihe auf dem ersten Bildschirm beginnt */
@media (min-width: 700px) {
  .filter { gap: .5rem; padding: .7rem 1rem; }
  .filter .wahl { min-height: 2.5rem; padding-block: .3rem; }
}
.saele-titel { font-weight: 700; margin-right: .3rem; }
.galerie-rahmen { background: var(--papier); }
.buehne3d { position: relative; height: clamp(16rem, calc(100vh - 22rem), 56rem); background: #e9e7e2; overflow: hidden; border-radius: 4px; }
.buehne3d canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
@media (prefers-color-scheme: dark) { .buehne3d { box-shadow: 0 0 0 1px #4a4a45, 0 0 0 6px #1f1f1d; } }
.galerie-steuerung[hidden], .saele[hidden], .galerie-hilfe[hidden] { display: none; }
.galerie-laden {
  position: absolute; inset: auto 1rem 1rem 1rem; margin: 0; padding: .7rem 1rem; text-align: center;
  background: rgb(255 255 255 / .92); color: #151515; font-weight: 700; border-radius: 4px;
}
.galerie-ohne { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 1.5rem; background: var(--flaeche); }
.galerie-steuerung { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: .8rem; align-items: center; margin-top: .8rem; }
.galerie-pfeil { min-height: 3.6rem; font-size: 1.05rem; width: 100%; }
.galerie-pfeil:disabled { opacity: 1; cursor: default; color: var(--text-2); border-style: dashed; border-color: var(--rand-knopf); }
.galerie-pfeil:disabled:hover { background: transparent; color: var(--text-2); border-color: var(--rand-knopf); }
.galerie-info { text-align: center; min-width: 0; }
.galerie-werk { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; }
.galerie-werk-info { margin: .15rem 0 0; color: var(--text-2); font-size: .95rem; }
.galerie-extra { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .7rem; }
.galerie-extra [hidden], .galerie-ohne[hidden], .galerie-laden[hidden] { display: none; }
[data-auto][aria-pressed="true"] { background: var(--tinte); color: var(--auf-tinte); }
.galerie-rahmen:fullscreen { padding: .8rem; overflow: auto; }
.galerie-rahmen:-webkit-full-screen { padding: .8rem; overflow: auto; }
@media (max-width: 1279px) {
  html.gross .galerie-pfeil .lang { display: none; }
  html.gross .galerie-pfeil .kurz { display: inline; }
}
@media (max-width: 699px) {
  .galerie-pfeil .lang { display: none; }
  .galerie-pfeil .kurz { display: inline; }
}
@media (max-width: 899px) {
  .galerie-steuerung { grid-template-columns: 1fr 1fr; }
  .galerie-info { grid-column: 1 / -1; grid-row: 1; }
}
.galerie-blende { position: absolute; inset: 0; background: #eceae5; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.galerie-blende.an { opacity: 1; }
@media (max-width: 699px) {
  .galerie-pfeil .lang { display: none; }
  .galerie-pfeil .kurz { display: inline; }
  .galerie-steuerung { grid-template-columns: 1fr 1fr; }
  .galerie-info { grid-column: 1 / -1; grid-row: 1; }
  .galerie-pfeil { font-size: .95rem; padding-inline: .5rem; }
}

/* Rundgang: Kopf kompakter, damit die Bühne mehr Höhe bekommt */
.s-galerie .kopf-innen { padding-block: .6rem .2rem; }
.s-galerie .marke-unter { display: none; }
.s-galerie .menue a { min-height: 2.6rem; }
/* kleine Handys (iPhone SE/mini): Knöpfe etwas flacher, damit „Nächstes“ auf den Bildschirm passt */
@media (max-height: 700px) and (max-width: 600px) {
  .blaettern-kurz .knopf, .galerie-pfeil { min-height: 3rem; padding-block: .3rem; }
  .werk .brotkrumen a { min-height: 2.6rem; }
}

/* Blätter-Knopf mit kleiner Zusatzzeile (an Technik-Grenzen) */
.knopf-zwei { flex-direction: column; gap: 0; line-height: 1.15; }
.knopf-zusatz { font-weight: 400; font-size: .8rem; color: var(--text-2); }
/* Vollbild am Handy: Knöpfe dürfen in zwei Zeilen, Titel oben ganz */
@media (max-width: 600px) {
  .vollbild-leiste { flex-wrap: wrap; }
  .vollbild-titel { flex-basis: 100%; }
  .vollbild-leiste .knopf { flex: 1 1 40%; padding-inline: .6rem; }
  /* oben Blättern, darunter Vergrößern und Schließen */
  .vollbild-leiste [data-zoom] { order: 3; }
  .vollbild-leiste [data-schliessen] { order: 4; }
  /* 9) Über: Porträt nicht bildschirmfüllend */
  .ueber-bild .passepartout { aspect-ratio: auto; height: min(45vh, 22rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .passepartout, .jahrzehnt, .blatt, .wahl, .knopf { transition: background-color .15s, border-color .15s, color .15s; }
}
@media print {
  .kopf nav, .schrift-knopf, .knopfreihe, .blaettern, .vorschau-hinweis, .filter { display: none !important; }
  .passepartout { background: none; padding: 0; }
}
