/* ---------- Schrift (lokal, keine Verbindung zu Google) ---------- */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("schrift/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("schrift/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Farben ---------- */
:root {
  --wand: #ecebe7;
  --text: #1b1b19;
  --sub: #62615c;
  --licht: rgba(255, 255, 255, 0.85);
  --boden1: #d3d1cb;
  --boden2: #c4c2bb;
  --sockel: #b4b2ab;
  --boden-text: #4c4b47;
  --rahmen: #161616;
  --rahmen-breite: 9px;
  --passepartout: clamp(12px, 3.4vh, 36px);
  --boden-hoehe: 15vh;
}
.wand-anthrazit {
  --wand: #242423;
  --text: #f0efea;
  --sub: #aeada6;
  --licht: rgba(255, 255, 255, 0.09);
  --boden1: #1a1a19;
  --boden2: #131312;
  --sockel: #0c0c0c;
  --boden-text: #aeada6;
}
.rahmen-eiche { --rahmen: #b48d5f; }
.rahmen-ohne { --rahmen-breite: 0px; --passepartout: 0px; }

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  background: var(--wand);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; color: inherit; }
a { color: inherit; }
a:hover, .textknopf:hover, .kopf button:hover { opacity: 0.7; }
button:focus-visible, a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.galerie {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
}

/* ---------- Kopfzeile ---------- */
.kopf {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  padding: 10px 4vw;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
}
.kopf button {
  background: none; border: 0; padding: 0;
  min-height: 44px;
  font-size: 14px; font-weight: 400;
  cursor: pointer;
}
.kopf-name { font-size: 16px !important; }
.kopf-raeume { display: flex; flex-wrap: wrap; column-gap: 22px; }
.kopf-raeume button { color: var(--sub); }

/* ---------- Wand ---------- */
.wand {
  position: relative;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: 64px;
  padding-bottom: var(--boden-hoehe);
  scrollbar-width: none;
  outline: none;
}
.wand::-webkit-scrollbar { display: none; }
.wand-spur {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
}

.eingang {
  width: min(620px, 92vw);
  padding: 0 4vw 0 8vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.eingang h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}
.unterzeile {
  margin: 0;
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sub);
}
.einleitung { margin: 0; font-size: 17px; line-height: 1.6; max-width: 360px; color: var(--sub); }
.eintreten {
  margin: 24px 0 0;
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 12px;
}

.raum { display: flex; align-items: center; height: 100%; }
.raum-schild {
  width: 220px;
  padding: 0 24px 0 56px;
  display: flex; flex-direction: column; gap: 8px;
}
.raum-nr {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sub);
}
.raum-schild h2 { margin: 0; font-size: 30px; font-weight: 300; line-height: 1.1; }

.werk {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  padding: 7vh 4vw;
  background: radial-gradient(ellipse 62% 72% at 42% 40%, var(--licht), transparent 72%);
}
.rahmen {
  display: block;
  margin: 0;
  border: var(--rahmen-breite) solid var(--rahmen);
  padding: var(--passepartout);
  background: #fcfcfa;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.2),
    0 16px 26px -10px rgba(0, 0, 0, 0.3),
    0 44px 60px -34px rgba(0, 0, 0, 0.3);
}
button.rahmen { cursor: zoom-in; }
.werk img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(68vw - 2 * var(--passepartout) - 2 * var(--rahmen-breite));
  max-height: 44vh;           /* Querformat */
  opacity: 0;
  transition: opacity 0.6s ease;
}
.werk img.quadrat { max-height: 50vh; }
.werk img.hoch { max-height: 58vh; }
.werk img.geladen { opacity: 1; }
.werk img:not(.geladen) { min-width: 30vh; min-height: 20vh; }

.schild {
  width: 104px;
  padding-bottom: 4px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 12px; line-height: 1.4;
}
.schild-titel { font-weight: 500; }
.schild-sub { color: var(--sub); }

.ausgang {
  width: min(520px, 92vw);
  padding: 0 8vw 0 80px;
  display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start;
}
.ausgang-text { margin: 0; font-size: 30px; line-height: 1.2; }
.ausgang a {
  font-size: 15px; font-weight: 400;
  min-height: 44px;
  display: inline-flex; align-items: center;
  text-underline-offset: 5px;
}
.textknopf {
  background: none; border: 0; padding: 0;
  min-height: 44px;
  font-size: 15px; font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- Boden ---------- */
.boden {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--boden-hoehe);
  pointer-events: none;
  background: linear-gradient(var(--boden1), var(--boden2));
  border-top: 1px solid var(--sockel);
  box-shadow: 0 -10px 24px -14px rgba(0, 0, 0, 0.25);
}
.boden-leiste {
  position: absolute;
  left: 4vw; right: 4vw; bottom: 0;
  height: var(--boden-hoehe);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.boden-hinweis {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--boden-text);
}
.pfeile { display: flex; gap: 8px; pointer-events: auto; }
.rund {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--boden-text);
  background: none;
  color: var(--boden-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.rund:hover { background: rgba(0, 0, 0, 0.05); }

/* ---------- Einzelansicht ---------- */
.einzel {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 10px 4vw 3vh;
  display: flex;
  flex-direction: column;
  background: var(--wand);
  animation: einblenden 0.35s ease;
}
.einzel[hidden] { display: none; }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.einzel-kopf { display: flex; align-items: center; justify-content: space-between; }
.einzel-zahl { font-size: 14px; font-weight: 400; color: var(--sub); }
.einzel-kopf .textknopf { font-size: 14px; }
.einzel-buehne {
  flex: 1 1 auto;
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 56% 70% at 50% 44%, var(--licht), transparent 72%);
}
.einzel .rahmen {
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.2),
    0 22px 34px -12px rgba(0, 0, 0, 0.32),
    0 60px 80px -40px rgba(0, 0, 0, 0.34);
}
.einzel img {
  display: block;
  width: auto; height: auto;
  max-width: calc(80vw - 2 * var(--passepartout) - 2 * var(--rahmen-breite));
  max-height: 64vh;
}
.einzel-fuss { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.einzel .rund { border-color: var(--sub); color: var(--text); }
.einzel-schild {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 13px; line-height: 1.4; text-align: center;
}

/* ---------- Handy ---------- */
@media (max-width: 640px) {
  :root { --boden-hoehe: 12vh; }
  .kopf-raeume { display: none; }
  .boden-hinweis { display: none; }
  .pfeile { margin-left: auto; }
  .raum-schild { width: 150px; padding: 0 12px 0 32px; }
  .raum-schild h2 { font-size: 24px; }
  .werk { flex-direction: column; align-items: flex-start; gap: 12px; padding: 4vh 6vw; }
  .werk img { max-width: calc(84vw - 2 * var(--passepartout) - 2 * var(--rahmen-breite)); }
  .schild { width: auto; }
  .einzel img { max-width: calc(92vw - 2 * var(--passepartout) - 2 * var(--rahmen-breite)); max-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  .werk img, .einzel { transition: none; animation: none; }
}
