@font-face { font-family: "Gloock"; src: url("assets/gloock-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("assets/albert-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --kreide: #f3eee5;
  --stein: #e4ddd0;
  --tinte: #1c1b18;
  --gedimmt: rgba(28, 27, 24, .6);
  --linie: rgba(28, 27, 24, .16);
  --gruen: #1e3b33;
  --messing: #b98f4e;
  --serif: "Gloock", Georgia, serif;
  --sans: "Albert Sans", system-ui, sans-serif;
  --weich: cubic-bezier(.22, .8, .2, 1);
}
/* Nachtmodus: kommt vom Lichtschalter und läuft über die ganze Seite */
body.nacht { --kreide: #15171a; --stein: #1d2024; --tinte: #ece4d4; --gedimmt: rgba(236, 228, 212, .62); --linie: rgba(236, 228, 212, .16); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--kreide); color: var(--tinte); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: clip; transition: background-color 1.2s ease, color 1.2s ease; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--messing); outline-offset: 3px; }
em { font-style: normal; color: var(--messing); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }

.kopf {
  position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 56px) 34px; color: #fff; pointer-events: none;
  background: linear-gradient(rgba(18, 16, 13, .5), rgba(18, 16, 13, 0)); text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.kopf a { pointer-events: auto; }
.marke { font-family: var(--serif); font-size: 24px; text-decoration: none; }
.kopf nav { display: flex; gap: 28px; font-size: 14px; letter-spacing: .06em; }
.kopf nav a { text-decoration: none; }

/* ---------- Flügeltür ---------- */
.tuer { height: 330vh; position: relative; }
.tuer-buehne { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #191612; perspective: 1500px; }
.zimmer-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zs, 1.25)); filter: brightness(var(--zh, .55)); }
.spalt { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse var(--sb, 6%) 60% at var(--sx, 50%) 60%, rgba(255, 214, 150, .75), rgba(255, 200, 130, 0) 70%); mix-blend-mode: screen; }
.wand { position: absolute; inset: 0; will-change: transform; }
.angel { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; will-change: transform; }
.wand > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fluegel {
  position: absolute; background-image: url("assets/tuer.webp"); background-repeat: no-repeat;
  will-change: transform; backface-visibility: visible;
}
#fluegelL { transform-origin: left center; }
#fluegelR { transform-origin: right center; }
.kante { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, var(--k, 0)), rgba(0, 0, 0, calc(var(--k, 0) * .4))); pointer-events: none; }
#fluegelR .kante { background: linear-gradient(270deg, rgba(0, 0, 0, var(--k, 0)), rgba(0, 0, 0, calc(var(--k, 0) * .4))); }
.tuer-text { position: absolute; left: clamp(16px, 4vw, 56px); bottom: clamp(28px, 8vh, 90px); max-width: 25vw; color: var(--tinte); }
body.nacht .tuer-text { color: #1c1b18; }
.klein { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(28, 27, 24, .62); margin-bottom: 18px; }
.tuer-text h1 { font-size: clamp(34px, 3.5vw, 62px); line-height: 1.02; }
.tuer-text h1 em { color: #7d5a26; }
.hinweis { margin-top: 26px; font-size: 13px; letter-spacing: .06em; color: rgba(28, 27, 24, .62); }
.zimmer-text { position: absolute; left: clamp(16px, 4vw, 56px); bottom: clamp(28px, 7vh, 80px); color: #fff; font-size: 16px; opacity: 0; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.zimmer-text span { display: block; font-family: var(--serif); font-size: clamp(40px, 5vw, 84px); line-height: 1; margin-bottom: 8px; }

.einleitung { padding: 18vh clamp(16px, 4vw, 56px); max-width: 1180px; margin: 0 auto; }
.einleitung p { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 44px); line-height: 1.28; }

/* ---------- Rundblick ---------- */
.rund { height: 280vh; position: relative; background: #0f0e0c; color: #f3eee5; }
.rund-buehne { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.rund-szene { position: absolute; inset: 0; perspective: var(--p, 600px); cursor: grab; touch-action: pan-y; outline-offset: -6px; }
.rund-szene.zieht { cursor: grabbing; }
.zylinder { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.streifen {
  position: absolute; top: calc(var(--h) / -2); height: var(--h); width: calc(var(--sw) + 1.5px); margin-left: calc(var(--sw) / -2);
  background-image: url("assets/lounge.webp"); background-repeat: no-repeat; backface-visibility: hidden;
}
.marke-3d {
  position: absolute; white-space: nowrap; transform-origin: center; backface-visibility: hidden;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  padding: 7px 12px 7px 26px; background: rgba(15, 14, 12, .55); border: 1px solid rgba(255, 255, 255, .35);
}
.marke-3d::before { content: ""; position: absolute; left: 10px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 50%; background: var(--messing); box-shadow: 0 0 0 4px rgba(185, 143, 78, .3); }
.rund-kopf { position: absolute; left: clamp(16px, 4vw, 56px); top: 96px; pointer-events: none; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.rund-kopf h2 { font-size: clamp(34px, 4vw, 64px); line-height: 1.02; }
.rund-kopf p { margin-top: 10px; font-size: 14px; opacity: .8; }
.rund-kompass { position: absolute; left: 50%; bottom: 30px; width: 180px; height: 2px; margin-left: -90px; background: rgba(255, 255, 255, .25); }
.rund-kompass span { position: absolute; top: -4px; width: 26px; height: 10px; margin-left: -13px; background: var(--messing); left: var(--k, 50%); }

/* ---------- Zimmer ---------- */
.zimmer { padding: 18vh clamp(16px, 4vw, 56px) 14vh; max-width: 1240px; margin: 0 auto; }
.zimmer h2 { font-size: clamp(34px, 4vw, 64px); line-height: 1.05; margin-bottom: 50px; }
.preise { width: 100%; border-collapse: collapse; }
.preise th, .preise td { text-align: left; padding: 20px 10px 20px 0; border-bottom: 1px solid var(--linie); font-weight: 400; }
.preise thead th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gedimmt); padding-bottom: 12px; }
.preise tbody th { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 40px); }
.preise td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.preise thead th:last-child { text-align: right; }
.preise tbody tr { transition: background-color .3s; }
.preise tbody tr:hover { background: var(--stein); }
.preise-fuss { margin-top: 18px; color: var(--gedimmt); }

/* ---------- Schlüsselbrett ---------- */
.brett-teil { padding: 6vh clamp(16px, 4vw, 56px) 16vh; }
.brett-teil h2 { font-size: clamp(34px, 4vw, 64px); margin-bottom: 36px; }
.brett { display: flex; gap: 10px; height: min(74vh, 620px); }
.fach {
  position: relative; flex: 1; min-width: 0; border: 0; cursor: pointer; overflow: hidden; text-align: left; color: #fff;
  background: #222 var(--bild) var(--pos) / cover no-repeat;
  transition: flex-grow .9s var(--weich);
}
.fach::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 9, .45), rgba(10, 10, 9, .25) 40%, rgba(10, 10, 9, .8)); transition: background-color .6s; }
.fach[aria-expanded="true"] { flex-grow: 5; }
.fach[aria-expanded="false"]::before { background-color: rgba(10, 10, 9, .35); }
.anhaenger {
  position: absolute; left: 50%; top: -6px; width: 46px; height: 92px; margin-left: -23px;
  transform-origin: 50% 0; transform: rotate(var(--schwung, 0deg));
}
.anhaenger::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 26px; margin-left: -1px; background: #d9c39b; }
.anhaenger i {
  position: absolute; left: 0; right: 0; top: 24px; height: 62px; border-radius: 23px 23px 10px 10px;
  background: linear-gradient(160deg, #d7b276, #8c6430); color: #2a1d0c; font-style: normal; font-family: var(--serif); font-size: 18px;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
  box-shadow: 0 8px 14px rgba(0, 0, 0, .35);
}
.anhaenger i::before { content: ""; position: absolute; top: 9px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #1a1612; }
.fach-titel {
  position: absolute; left: 22px; bottom: 26px; font-family: var(--serif); font-size: clamp(22px, 2vw, 34px); line-height: 1.05;
  writing-mode: vertical-rl; transform: rotate(180deg); transition: opacity .3s;
}
.fach-text { position: absolute; left: 28px; right: 28px; bottom: 28px; max-width: 30em; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .6s var(--weich); }
.fach[aria-expanded="true"] .fach-titel { writing-mode: horizontal-tb; transform: none; bottom: auto; top: 120px; left: 28px; font-size: clamp(30px, 3vw, 48px); max-width: 12em; }
.fach[aria-expanded="true"] .fach-text { opacity: 1; transform: none; transition-delay: .35s; }

/* ---------- Fassade mit Lichtschalter ---------- */
.fassade { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); min-height: 100vh; border-top: 1px solid var(--linie); }
.fassade-bild { position: relative; overflow: hidden; min-height: 70vh; }
.fassade-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nacht-bild { clip-path: circle(0 at var(--lx, 100%) var(--ly, 80%)); transition: clip-path 1.5s cubic-bezier(.6, 0, .2, 1); }
body.nacht .nacht-bild { clip-path: circle(260% at var(--lx, 100%) var(--ly, 80%)); animation: fenster 2.2s 1.2s ease-out; }
@keyframes fenster { 0% { filter: brightness(.85); } 30% { filter: brightness(1.12); } 45% { filter: brightness(.95); } 100% { filter: brightness(1); } }
.fassade-text { padding: 14vh clamp(16px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.fassade-text h2 { font-size: clamp(34px, 4vw, 64px); line-height: 1.05; }
.fassade-text p { margin-top: 22px; color: var(--gedimmt); max-width: 30em; }
.schalter { margin-top: 40px; display: flex; align-items: center; gap: 16px; border: 0; background: none; cursor: pointer; text-align: left; }
.schalter-bahn { position: relative; width: 74px; height: 38px; border-radius: 99px; background: var(--stein); border: 1px solid var(--linie); transition: background-color .6s; }
.schalter-knopf { position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--tinte); transition: transform .5s var(--weich), background-color .6s, box-shadow .6s; }
.schalter[aria-checked="true"] .schalter-knopf { transform: translateX(36px); background: #ffd68f; box-shadow: 0 0 22px 6px rgba(255, 200, 110, .55); }
.schalter-text { font-size: 15px; }

.fuss { padding: 30px clamp(16px, 4vw, 56px) 120px; border-top: 1px solid var(--linie); color: var(--gedimmt); font-size: 13px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Schlüsselanhänger und Buchung ---------- */
.schluessel {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 252px; height: 66px;
  background: var(--gruen); color: #f3eee5; border-radius: 33px 14px 14px 33px; overflow: hidden;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55);
  transition: width .6s var(--weich), height .6s var(--weich), border-radius .6s var(--weich), transform .5s var(--weich), opacity .4s;
  transform: translateY(var(--sy, 140%)); opacity: var(--so, 0);
}
.schluessel.offen { border-radius: 22px; }
.ring { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--messing); flex: none; background: #0f0e0c; }
.schluessel-zu { display: flex; align-items: center; gap: 16px; width: 100%; height: 66px; padding: 0 22px 0 20px; border: 0; background: none; cursor: pointer; text-align: left; }
.s-zeile { display: flex; flex-direction: column; line-height: 1.25; }
.s-zeile strong { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.s-zeile small { font-size: 12px; opacity: .7; }
.schluessel.offen .schluessel-zu { display: none; }
.buchung { padding: 18px 22px 22px; opacity: 0; transition: opacity .35s .25s; }
.schluessel.offen .buchung { opacity: 1; }
.b-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.b-kopf h2 { font-size: 26px; flex: 1; }
.b-schliessen { border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; width: 36px; height: 36px; }
.monat-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-family: var(--serif); font-size: 18px; }
.monat-kopf button { border: 1px solid rgba(243, 238, 229, .3); background: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.monat-kopf button:disabled { opacity: .25; cursor: default; }
.wochentage, .tage { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.wochentage { font-size: 11px; letter-spacing: .1em; opacity: .55; margin-bottom: 4px; }
.tage button {
  position: relative; height: 38px; border: 0; background: none; cursor: pointer; font-size: 14px; font-variant-numeric: tabular-nums; z-index: 0;
}
.tage button::before { content: ""; position: absolute; inset: 3px 0; z-index: -1; background: rgba(185, 143, 78, .32); transform: scaleX(0); transition: transform .35s var(--weich); }
.tage button.drin::before { transform: scaleX(1); }
.tage button.anfang::before { transform: scaleX(1); left: 50%; }
.tage button.ende::before { transform: scaleX(1); right: 50%; }
.tage button.anfang::after, .tage button.ende::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--messing); z-index: -1; animation: tupf .4s var(--weich); }
@keyframes tupf { from { transform: scale(.3); } }
.tage button.allein::before { transform: scaleX(0); }
.tage button.anfang, .tage button.ende { color: #15120d; font-weight: 600; }
.tage button:disabled { opacity: .25; cursor: default; }
.tage button:not(:disabled):hover { text-decoration: underline; }
.b-zeile { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(243, 238, 229, .18); }
.zaehler { display: flex; align-items: center; gap: 14px; }
.zaehler button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(243, 238, 229, .35); background: none; cursor: pointer; }
.zaehler output { min-width: 1ch; text-align: center; font-variant-numeric: tabular-nums; }
.b-summe { margin-top: 14px; min-height: 3.2em; font-size: 15px; }
.b-senden { width: 100%; margin-top: 8px; padding: 13px; border: 0; border-radius: 99px; background: var(--messing); color: #17130d; font-weight: 600; cursor: pointer; }
.b-senden:disabled { opacity: .4; cursor: default; }

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  .kopf nav { display: none; }
  .tuer-text { max-width: none; right: 16px; bottom: auto; top: 84px; }
  .tuer-text h1 { font-size: 34px; }
  .tuer-text, body.nacht .tuer-text { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
  .tuer-text h1 em { color: #e6c48c; }
  .klein, .hinweis { color: rgba(255, 255, 255, .8); }
  .rund-kopf { top: 80px; right: 16px; }
  .brett { flex-direction: column; height: auto; }
  .fach { flex: none; height: 74px; transition: height .8s var(--weich); }
  .fach[aria-expanded="true"] { height: 380px; }
  .anhaenger { left: auto; right: 20px; top: -40px; }
  .fach-titel { writing-mode: horizontal-tb; transform: none; bottom: auto; top: 24px; left: 20px; font-size: 24px; }
  .fach[aria-expanded="true"] .fach-titel { top: 70px; left: 20px; }
  .fach-text { left: 20px; right: 20px; bottom: 20px; }
  .fassade { grid-template-columns: 1fr; }
  .fassade-bild { min-height: 56vh; }
  .fassade-text { padding: 8vh 16px 10vh; }
  .schluessel { right: 12px; left: 12px; width: auto; bottom: 12px; }
  .schluessel.offen { top: 70px; height: auto !important; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
}

