/* 3D-Rundgang /ausstellung. Farben der Oberflaeche ueber --a-* (setzt ausstellung/js/oberflaeche.js aus den
   Mieterdaten); die Rueckfallwerte hier sind die Farben dieser Website. */
.ausstellung-hero { padding-bottom: 1.25rem; }
@media (max-width: 899px) { .ausstellung-hero { padding-top: 1.25rem; padding-bottom: .9rem; } .ausstellung-hero h1 { font-size: 1.7rem; } }
.ausstellung-vorschau-hinweis { margin-top: .75rem; font-size: .95rem; color: var(--text-muted, #6b6256); }
.ausstellung-bereich { padding-top: 0; }

.ausstellung-buehne {
  --a-akzent: #c2904e; --a-dunkel: #0d0d0d; --a-hell: #f4ecdd;
  position: relative; overflow: hidden; border-radius: 10px; background: #dfe7ee;
  aspect-ratio: 16 / 9; width: 100%; max-height: 82vh; isolation: isolate;
}
.ausstellung-buehne picture, .ausstellung-vorschau { display: block; width: 100%; height: 100%; }
.ausstellung-vorschau { object-fit: cover; }
.ausstellung-flaeche { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; opacity: 0; transition: opacity .4s; }
.ausstellung-buehne.bereit .ausstellung-flaeche { opacity: 1; }
.ausstellung-startfeld {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center;
  background: rgba(13, 13, 13, .72); color: #fff; padding: 1.1rem 1.4rem; border-radius: 10px; max-width: 88%;
}
.ausstellung-startfeld p { margin: .6rem 0 0; font-size: .9rem; color: #e8e2d6; }
.ausstellung-buehne.laeuft .ausstellung-startfeld { display: none; }
.ausstellung-buehne.laeuft:not(.bereit)::after {
  content: 'Rundgang wird geladen …'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(13, 13, 13, .72); color: #fff; padding: .7rem 1rem; border-radius: 8px; font-size: .95rem;
}
.ausstellung-rueckfall { margin: 0; padding: 1rem 1.2rem; background: #fff6e8; border-left: 4px solid var(--a-akzent, #c2904e); color: #2a2620; }
.ausstellung-buehne.ohne-3d { aspect-ratio: auto; max-height: none; background: transparent; }
.ausstellung-buehne.ohne-3d .ausstellung-rueckfall { margin-top: .75rem; }
.ausstellung-buehne.ohne-3d .ausstellung-startfeld { display: none; }
.ausstellung-hero .hero-actions { margin-top: 1rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.ausstellung-text h3 { margin-top: 1.1rem; }
/* Stationskarten im Textteil (tools/ausstellung/seite-karten.js): Raster wie die Karten der Startseite, aber klein;
   auto-fill, damit zwei Karten nicht auf halbe Breite aufgehen. Kein Hover-Sprung. */
.seite-karten-raster { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.seite-karte { display: flex; flex-direction: column; margin: 0; padding: 0; overflow: hidden; background: var(--white, #fff);
  border-radius: var(--radius, 10px); box-shadow: var(--shadow); border: 1px solid rgba(194, 144, 78, .22); }
.seite-karte picture, .seite-karte img { display: block; width: 100%; }
.seite-karte img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--anthracite, #0d0d0d); }
.seite-karte-text { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.ausstellung-text .seite-karte h3 { font-size: 1.2rem; line-height: 1.25; margin: 0 0 8px; }
.seite-karte-text p { color: var(--text-muted, #6b6256); font-size: .95rem; line-height: 1.55; margin: 0 0 12px; }
.seite-karte-text p.seite-karte-aktionen { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .95rem; font-weight: 700; }
.seite-karte-aktionen a { color: var(--accent-text, #8a6225); }

/* Ebene ueber der Zeichenflaeche */
.ausstellung-ebene { position: absolute; inset: 0; pointer-events: none; font-size: 15px; }
.ausstellung-ebene > * { pointer-events: auto; }
.ausstellung-laden {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: rgba(13, 13, 13, .7); color: #fff; padding: .35rem .7rem;
  border-radius: 6px; font-size: .85rem; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.ausstellung-laden.an { opacity: 1; }
.ausstellung-hinweis {
  position: absolute; left: 50%; bottom: 86px; transform: translateX(-50%); margin: 0; max-width: 90%;
  background: rgba(13, 13, 13, .66); color: #fff; padding: .45rem .8rem; border-radius: 6px; font-size: .85rem; text-align: center;
  transition: opacity .6s; pointer-events: none;
}
.ausstellung-hinweis.aus { opacity: 0; }
.ausstellung-leiste {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: .9rem; overflow-x: auto; padding: .6rem .7rem;
  background: linear-gradient(to top, rgba(13, 13, 13, .78), rgba(13, 13, 13, .45)); scrollbar-width: thin;
}
.ausstellung-gruppe { display: flex; align-items: center; gap: .35rem; flex: 0 0 auto; }
.ausstellung-gruppe-titel { color: #fff; font-weight: 600; font-size: .85rem; margin-right: .15rem; white-space: nowrap; }
.ausstellung-station {
  min-width: 44px; min-height: 44px; border-radius: 22px; border: 2px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12);
  color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.ausstellung-station[aria-current="true"] { background: var(--a-akzent); border-color: var(--a-akzent); color: var(--a-dunkel); }
.ausstellung-station:focus-visible, .ausstellung-knopf:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ausstellung-karte {
  position: absolute; right: 12px; top: 12px; width: min(340px, calc(100% - 24px)); max-height: calc(100% - 100px); overflow: auto;
  background: rgba(255, 255, 255, .96); color: #1b1b1b; border-radius: 10px; padding: .9rem 1rem 1rem; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  border-top: 4px solid var(--a-akzent);
}
.ausstellung-karte[hidden] { display: none; }
.ausstellung-karte-abschnitt { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #6b6256; }
.ausstellung-karte-titel { margin: .15rem 2rem .5rem 0; font-size: 1.25rem; line-height: 1.2; }
.ausstellung-karte-kurz { margin: -.3rem 0 .5rem; font-weight: 600; }
.ausstellung-karte-mehr { margin: 0 0 .6rem; }
.ausstellung-karte-mehr summary { cursor: pointer; font-size: .9rem; min-height: 32px; display: list-item; }
.ausstellung-karte-merkmale { margin: .3rem 0 .4rem; padding-left: 1.1rem; font-size: .92rem; }
.ausstellung-karte-merkmale li { margin: .1rem 0; }
.ausstellung-karte-fehler { background: #fff2f0; border-left: 3px solid #b3261e; padding: .4rem .6rem; font-size: .88rem; margin: 0 0 .7rem; }
.ausstellung-karte-laedt { font-size: .88rem; color: #6b6256; margin: 0 0 .7rem; }
.ausstellung-karte-zu {
  position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: #333;
}
.ausstellung-karte-knoepfe { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.ausstellung-karte-foto { margin: 0 0 .7rem; display: grid; grid-template-columns: 112px 1fr; gap: .6rem; align-items: center; }
.ausstellung-karte-foto-titel { display: block; margin: 0 0 .15rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #6b6256; }
/* Kleines Bild (feste Groesse, kein Layoutsprung); das ganze Bild zeigt die Grossansicht */
.ausstellung-karte-foto img { display: block; width: 112px; height: 84px; object-fit: cover; border-radius: 6px; background: #e9e4da; }
.ausstellung-karte-foto figcaption { margin: 0; font-size: .85rem; line-height: 1.3; color: #4a443c; }
.ausstellung-karte-foto-text { display: block; }
.ausstellung-karte-foto-knopf { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; }
.ausstellung-karte-foto-knopf:focus-visible { outline: 3px solid var(--a-akzent); outline-offset: 2px; }
.ausstellung-foto-gross { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; padding: 3.2rem 12px 1rem; background: rgba(10, 10, 10, .92); cursor: zoom-out; }
.ausstellung-foto-gross img { max-width: 100%; max-height: calc(100% - 3rem); object-fit: contain; border-radius: 6px; }
.ausstellung-foto-gross-text { margin: 0; color: #f2efe8; font-size: .95rem; text-align: center; }
.ausstellung-foto-gross-zu { position: absolute; top: 10px; right: 10px; min-width: 44px; min-height: 44px; border-radius: 22px; border: 2px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.4rem; cursor: pointer; }
.ausstellung-foto-gross-zu:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ausstellung-knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem .9rem; border-radius: 6px;
  border: 2px solid var(--a-dunkel); background: #fff; color: var(--a-dunkel); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
}
.ausstellung-knopf-haupt { background: var(--a-akzent); border-color: var(--a-akzent); color: var(--a-dunkel); }
.ausstellung-meldung { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); margin: 0; background: rgba(13, 13, 13, .8); color: #fff; padding: .4rem .8rem; border-radius: 6px; }
.ausstellung-messung {
  position: absolute; left: 12px; right: 12px; top: 12px; max-width: 560px; margin: 0 auto; background: #fff; color: #111; padding: .8rem 1rem;
  border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); z-index: 3;
}
.ausstellung-messung h2 { font-size: 1.1rem; margin: 0 0 .3rem; }
.ausstellung-messung p { margin: 0 0 .5rem; font-size: .9rem; }
.ausstellung-messung textarea { width: 100%; font: 12px/1.3 ui-monospace, monospace; margin-bottom: .5rem; }
.ausstellung-messung .ausstellung-knopf { margin-right: .4rem; }
.ausstellung-beenden {
  position: absolute; right: 10px; top: 10px; z-index: 2; min-height: 44px; padding: .4rem .8rem; border-radius: 6px; border: 0;
  background: rgba(13, 13, 13, .75); color: #fff; font-weight: 600; cursor: pointer;
}

/* PC: Knopf "Vollbild" oben rechts (Handy: Vollbild kommt mit dem Start); die Karte rueckt darunter */
.ausstellung-vollbild-knopf {
  position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  padding: .4rem .8rem; border-radius: 6px; border: 0; background: rgba(13, 13, 13, .75); color: #fff; font-weight: 600; cursor: pointer;
}
.ausstellung-vollbild-knopf:focus-visible, .ausstellung-beenden:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ausstellung-buehne.vollbild .ausstellung-vollbild-knopf, .ausstellung-buehne.ohne-3d .ausstellung-vollbild-knopf { display: none; }
.ausstellung-buehne.laeuft .ausstellung-karte { top: 62px; max-height: calc(100% - 150px); }
.ausstellung-buehne:fullscreen { width: 100%; height: 100%; }

/* Handy: Vollbild nach "Rundgang starten" */
.ausstellung-buehne.vollbild { position: fixed; inset: 0; z-index: 1000; border-radius: 0; aspect-ratio: auto; max-height: none; width: 100%; height: 100%; height: 100dvh; }
html.ausstellung-vollbild, html.ausstellung-vollbild body { overflow: hidden; }
html.ausstellung-vollbild .floating-cta, html.ausstellung-vollbild .cookie-banner { display: none !important; }
.ausstellung-buehne.vollbild .ausstellung-karte { top: 62px; }

@media (max-width: 899px) {
  .ausstellung-buehne { aspect-ratio: 4 / 5; max-height: 72vh; border-radius: 8px; }
  .ausstellung-karte { left: 12px; right: 12px; width: auto; top: auto; bottom: 74px; max-height: 46%; }
  .ausstellung-karte-foto { grid-template-columns: 96px 1fr; margin-bottom: .4rem; }
  .ausstellung-karte { padding-top: .7rem; }
  .ausstellung-karte-knoepfe { margin-bottom: .45rem; }
  .ausstellung-karte-foto figcaption { font-size: .82rem; line-height: 1.25; }
  .ausstellung-karte-foto img { width: 96px; height: 72px; }
  .ausstellung-buehne.vollbild .ausstellung-karte, .ausstellung-buehne.laeuft .ausstellung-karte { top: auto; max-height: 46%; }
  .ausstellung-vollbild-knopf { display: none; }
  .ausstellung-hinweis { bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .ausstellung-flaeche, .ausstellung-hinweis, .ausstellung-laden { transition: none; }
}
