/* Galerie „Ausstellung“ – baut auf bildergalerie.css auf (Bilderwand, Farbpunkte, Großansicht).
   Neu: Raumplan, aufklappbare Auswahl, Räume mit viel Weißraum, Bilder im Rampenlicht, roter Punkt für „verkauft“. */

.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Einstieg: Raumplan + leise Auswahl ---------- */
.ausstellung-intro { margin: clamp(80px, 9vw, 140px) var(--pad) 0; text-align: center; }
.raum-plan-titel { font-weight: 250; font-size: clamp(28px, 3vw, 46px); letter-spacing: -.02em; line-height: 1.2; }
.raum-plan-hinweis { margin-top: 14px; color: var(--muted); font-size: 16px; }
/* Raumplan: kleine Bilder als „Türen“ – beim Überfahren heben sie sich, der Name wird kräftiger */
.raum-plan { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 34px clamp(14px, 1.8vw, 28px); margin: 44px auto 0; max-width: 1240px; }
@media (max-width: 1100px) { .raum-plan { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; } }
.raum-tuer { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); }
.raum-tuer[hidden] { display: none; }
.tuer-bild { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; margin-bottom: 8px; box-shadow: 0 2px 4px rgba(0,0,0,.07), 0 12px 24px -14px rgba(0,0,0,.3);
  transition: transform .7s var(--weich), box-shadow .7s var(--weich); }
.tuer-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--weich); }
.tuer-nr { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.tuer-name { font-size: 14.5px; line-height: 1.3; text-align: center; transition: color .5s var(--weich), font-weight .5s var(--weich); }
.raum-tuer:hover .tuer-bild, .raum-tuer:focus-visible .tuer-bild { transform: translateY(-8px) scale(1.04); box-shadow: 0 4px 10px rgba(0,0,0,.08), 0 24px 40px -18px rgba(0,0,0,.38); }
.raum-tuer:hover .tuer-bild img { transform: scale(1.08); }
.raum-tuer:hover .tuer-name, .raum-tuer:focus-visible .tuer-name { color: var(--ink); font-weight: 600; }
.raum-tuer:focus-visible { outline: none; }
/* zurück zum Raumplan am Ende jedes Raums */
.raum-fuss { text-align: center; margin-top: clamp(50px, 6vw, 80px); }
.zum-plan { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 1px solid #d9d5ce; padding-bottom: 2px; transition: color .4s var(--weich), border-color .4s var(--weich); }
.zum-plan .icon { width: 15px; height: 15px; }
.zum-plan:hover { color: var(--ink); border-color: var(--ink); }

.auswahl-zeile { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px 28px; font-size: 15px; color: var(--muted); }
.auswahl-auf { font: inherit; background: none; border: 0; padding: 0 0 2px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid currentColor; }
.auswahl-auf .icon { width: 17px; height: 17px; transition: transform .5s var(--weich); }
.auswahl-auf[aria-expanded="true"] .icon { transform: rotate(180deg); }
.legende { display: inline-flex; align-items: center; gap: 9px; }

/* weich auf- und zuklappen */
.auswahl-box { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s var(--weich), opacity .6s var(--weich); }
.auswahl-box > div { overflow: hidden; }
.auswahl-box.offen { grid-template-rows: 1fr; opacity: 1; }
.auswahl-box .farbpunkte { margin-top: 44px; padding-top: 10px; }
.auswahl-box .auswahl-weiter { margin-top: 54px; }
.auswahl-box .massstab-hinweis { margin: 18px 0 30px; }
.ausstellung-intro .auswahl-ergebnis { margin-top: 30px; }

/* ---------- roter Punkt (verkauft) ---------- */
.roter-punkt { display: inline-block; width: 8px; height: 8px; margin-left: 9px; border-radius: 50%; background: #c8352c; vertical-align: .18em; }
.legende .roter-punkt { margin-left: 0; vertical-align: 0; }

/* Schildchen zurückhaltender, wie im Museum: Maße erscheinen sanft beim Überfahren (am Handy immer sichtbar) */
.ausstellung .schild { height: 4.4em; }
.ausstellung .schild .masse { transition: opacity .6s var(--weich); }
@media (hover: hover) {
  .ausstellung .bild .schild .masse { opacity: 0; }
  .ausstellung .bild:hover .schild .masse, .ausstellung .bild:focus-within .schild .masse { opacity: 1; }
}
.grossansicht .verkauft-text { color: var(--text); margin-top: 4px; }

/* ---------- Räume ---------- */
.raum { padding-top: clamp(130px, 15vw, 240px); transition: opacity .38s var(--weich); }
.raum[hidden], .rampenlicht[hidden] { display: none; }
.raum-kopf { text-align: center; max-width: 40em; margin: 0 auto; padding: 0 var(--pad); }
.raum-kopf .kicker { display: inline-flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 18px; }
.raum-kopf .kicker::before { content: ''; width: 1px; height: 54px; background: #d9d5ce; }
.raum-kopf h2 { font-size: clamp(34px, 3.6vw, 60px); }
.raum-text { color: var(--text); font-size: 18px; margin-top: 18px; }
.raum-zitat { margin: 22px auto 0; max-width: 34em; }
.raum-zitat p { font-weight: 300; font-size: clamp(20px, 1.7vw, 25px); line-height: 1.45; letter-spacing: -.01em; color: var(--ink); }
.raum-zitat cite { display: block; margin-top: 12px; font-style: normal; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.raum-wand { padding-top: clamp(60px, 7vw, 100px); }

/* ---------- Rampenlicht: ein Bild allein, groß, mit Text ---------- */
.rampenlicht { --rl-h: min(76vh, 780px); display: grid; grid-template-columns: auto minmax(260px, 26em); justify-content: center; align-items: center;
  gap: clamp(40px, 6vw, 110px); padding: clamp(140px, 16vw, 260px) var(--pad) 0; transition: opacity .38s var(--weich), transform .38s var(--weich); }
.rampenlicht.geht, .rampenlicht.kommt { opacity: 0; transform: translateY(14px); }
.rampenlicht.kommt { transition: none; }
.rl-bild { margin: 0; height: var(--rl-h); aspect-ratio: calc(var(--b) * var(--n, 1) + var(--fuge) * (var(--n, 1) - 1)) / var(--h); max-width: calc(100vw - 2 * var(--pad) - 26em - 110px); }
.rl-bild .bild-knopf { height: 100%; }
.rl-bild .leinwand { height: 100%; }
.rl-text .kicker { margin-bottom: 18px; }
.rl-text h2 { font-size: clamp(34px, 3.4vw, 56px); }
.rl-text h2 .roter-punkt { width: 11px; height: 11px; margin-left: 14px; }
.rl-masse { margin-top: 10px; color: var(--muted); font-size: 15px; }
.rl-satz { margin: 26px 0 30px; color: var(--text); font-size: 19px; line-height: 1.6; }

@media (max-width: 900px) {
  .rampenlicht { --rl-h: auto; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 30px; }
  .rl-bild { height: auto; width: min(100%, 62vh * var(--b) / var(--h)); max-width: 100%; }
  .rl-bild .leinwand { height: auto; }
  .rl-text { max-width: 34em; }
}
@media (max-width: 560px) {
  .raum-plan { gap: 28px 16px; }
  .tuer-name { font-size: 13.5px; }
  .raum-text, .rl-satz { font-size: 17px; }
}
#raeume { scroll-margin-top: 100px; }
