:root {
  --background: #cecfcb;
  --panel: #f1f0ec;
  --ink: #222321;
  --muted: #666863;
  --line: rgba(38, 39, 37, .18);
  --button: #333532;
}
* { box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; margin: 0; overflow: hidden;
  background: var(--background); color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
canvas { display: block; }
button { font: inherit; }
.hidden { display: none !important; }
.screen-layer {
  position: fixed; inset: 0; z-index: 30; display: grid; place-items: center;
  padding: 20px; background: var(--background);
}
.entrance-panel {
  width: min(1140px, 94vw); height: min(820px, 94vh); min-height: 610px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(34px, 5vh, 62px) clamp(32px, 7vw, 92px);
  overflow: hidden; text-align: center; background: var(--panel);
  border: 1px solid rgba(35, 36, 34, .14); box-shadow: 0 24px 72px rgba(24, 25, 23, .15);
}
.eyebrow {
  margin: 0 0 clamp(20px, 3vh, 34px); color: #70716d;
  font-size: clamp(.88rem, 1.25vw, 1.08rem); font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
}
h1 {
  max-width: 950px; margin: 0; font-family: Garamond, Georgia, serif;
  font-size: clamp(4rem, 7vw, 6.5rem); font-weight: 400; line-height: .98; letter-spacing: -.025em;
}
.subtitle { margin: clamp(18px, 2.5vh, 28px) 0 0; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.3; }
.quiet-intro {
  margin: clamp(24px, 3.6vh, 40px) 0 clamp(22px, 3vh, 34px); color: #545651;
  font-family: Garamond, Georgia, serif; font-size: clamp(1.25rem, 1.7vw, 1.55rem); line-height: 1.5;
}
.primary-button {
  min-width: 240px; min-height: 58px; padding: 14px 28px;
  border: 1px solid var(--button); border-radius: 0; background: var(--button); color: #fff;
  cursor: pointer; font-size: 1.15rem; font-weight: 700; letter-spacing: .015em;
}
.primary-button:hover, .primary-button:focus-visible { background: #171816; }
.instructions {
  width: min(900px, 100%); margin-top: clamp(24px, 3.4vh, 38px);
  padding-top: clamp(18px, 2.4vh, 26px); border-top: 1px solid var(--line); color: var(--muted);
}
.instructions h2 { margin: 0 0 13px; color: #4d4f4a; font-size: clamp(1rem, 1.3vw, 1.18rem); font-weight: 700; }
.instructions p { display: inline; margin: 0; font-size: clamp(.98rem, 1.18vw, 1.1rem); line-height: 1.75; }
.instructions p:not(:last-child)::after { content: "  ·  "; padding: 0 8px; color: #9a9b96; }
.instructions .secondary { display: block; margin-top: 5px; }
.instructions .secondary::after { content: none !important; }
#crosshair {
  position: fixed; left: 50%; top: 50%; z-index: 15; width: 10px; height: 10px;
  margin: -5px 0 0 -5px; display: none; pointer-events: none;
  border: 2px solid rgba(255,255,255,.95); border-radius: 50%;
  background: rgba(40,40,40,.45); box-shadow: 0 0 0 1px rgba(0,0,0,.35);
}
#crosshair.moving { background: #b86416; border-color: #fff; box-shadow: 0 0 0 4px rgba(184,100,22,.22); }
.gallery-help {
  position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translateX(-50%);
  padding: 12px 20px; border-radius: 3px; background: rgba(24,25,24,.82);
  color: white; font-size: clamp(1rem, 2vw, 1.2rem); pointer-events: none;
}
.pause { background: rgba(206,207,203,.92); }
.pause-panel {
  width: min(920px, 94vw); padding: 52px 58px; text-align: center; background: var(--panel);
  border: 1px solid rgba(35,36,34,.14); box-shadow: 0 20px 58px rgba(29,30,28,.16);
}
.pause-panel h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}
.pause-panel > p:not(.pause-title):not(.thank-you) {
  margin: 0 0 25px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}
.pause-title {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: Garamond, Georgia, serif;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
}
.thank-you {
  margin: 28px 0 34px;
  color: var(--ink);
  font-family: Garamond, Georgia, serif;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: normal;
  text-transform: none;
}
.pause-panel .primary-button { display: block; margin: 0 auto 16px; }
#back-to-start.primary-button { margin-bottom: 0; }
.text-button {
  padding: 7px 10px; border: 0; background: transparent; color: var(--muted);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
#hint { position: fixed; z-index: 10; bottom: 18px; left: 50%; transform: translateX(-50%); }
@media (max-height: 760px) and (min-width: 701px) {
  .screen-layer { padding: 12px; }
  .entrance-panel { height: min(700px, 96vh); min-height: 0; padding-top: 28px; padding-bottom: 28px; }
  .eyebrow { margin-bottom: 16px; }
  h1 { font-size: clamp(3.2rem, 6.4vw, 5.35rem); }
  .subtitle { margin-top: 14px; }
  .quiet-intro { margin: 18px 0; }
  .primary-button { min-height: 52px; }
  .instructions { margin-top: 18px; padding-top: 15px; }
  .instructions p { line-height: 1.55; }
}
@media (max-width: 700px) {
  html, body { overflow: auto; }
  .screen-layer { position: absolute; min-height: 100%; padding: 12px; }
  .entrance-panel { width: 100%; height: auto; min-height: calc(100vh - 24px); overflow: visible; padding: 36px 20px; }
  h1 { font-size: clamp(3.05rem, 14vw, 4.65rem); }
  .instructions p { display: block; line-height: 1.55; }
  .instructions p:not(:last-child)::after { content: none; }
  .instructions p + p { margin-top: 7px; }
}

@media (max-width: 820px) {
  .pause-panel { width: min(94vw, 720px); padding: 38px 24px; }
  .pause-title, .thank-you {
    white-space: normal;
    font-size: clamp(2.25rem, 8vw, 3.6rem);
  }
}


/* Gefuehrter Rundgang */
.entrance-actions{display:flex;gap:14px;justify-content:center;align-items:center;flex-wrap:wrap}.guided-tour-controls{position:fixed;z-index:26;left:50%;top:18px;transform:translateX(-50%);display:grid;grid-template-columns:auto auto minmax(230px,1fr) auto;align-items:center;gap:8px;width:min(900px,calc(100vw - 32px));padding:9px 10px;background:rgba(24,25,24,.84);border-radius:3px;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.16)}.guided-tour-controls button{min-height:40px;padding:8px 14px;border:1px solid rgba(255,255,255,.28);background:var(--button);color:#fff;cursor:pointer;font-weight:700}.guided-tour-controls button:hover,.guided-tour-controls button:focus-visible{background:#b86416}.guided-tour-controls button:disabled{opacity:.38;cursor:default;background:var(--button)}#guided-status{text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:Garamond,Georgia,serif;font-size:1.06rem}@media(max-width:760px){.guided-tour-controls{grid-template-columns:1fr 1fr 1fr;top:8px}.guided-tour-controls #guided-status{grid-column:1/-1;grid-row:1}.guided-tour-controls button{font-size:.78rem;padding:7px 5px}.entrance-actions{flex-direction:column}.entrance-actions .primary-button{width:min(360px,100%)}}
