/* Stadtpalais Belle Étage · Boutique-Apartments
   Palette from the logo: brown ink #5B3D14 on warm paper, deep umber #3C2222, sage greens from the tree. */
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --brown: #5b3d14;      /* logo ink */
  --brown-2: #4a3110;    /* hover / pressed */
  --umber: #3c2222;      /* logo dark brown, film veils */
  --paper: #f6f0e4;      /* warm paper */
  --paper-2: #ede3d0;    /* deeper paper */
  --line: rgba(91, 61, 20, .22);
  --muted: #6a4f2c;      /* secondary text on paper (AA) */
  --sage: #5a7e46;       /* logo leaf green */
  --sage-ink: #46663a;   /* sage for small text on paper (AA) */
  --sage-l: #b2d0a6;     /* light leaf, accents on dark */
  --cream: #fbf7ef;      /* text on the film */
  --serif: "Cormorant", "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --load: 0;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--umber); scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--brown); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

/* ---------- header: logo on a paper plate in the top-left corner, Book button top right ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: flex-start; justify-content: space-between; padding: 0 max(14px, env(safe-area-inset-right)) 0 0; pointer-events: none; }
.top > * { pointer-events: auto; }
.mark { display: block; padding: max(10px, env(safe-area-inset-top)) 16px 10px max(16px, env(safe-area-inset-left)); background: rgba(246, 240, 228, .95); border-radius: 0 0 18px 0; box-shadow: 0 6px 24px rgba(60, 34, 34, .18), inset 0 -1px 0 var(--line), inset -1px 0 0 var(--line); line-height: 0; -webkit-backdrop-filter: none; }
.mark img { display: block; width: 112px; height: auto; }
.top .btn--small { margin-top: max(12px, env(safe-area-inset-top)); }
@media (min-width: 760px) { .mark { padding: max(14px, env(safe-area-inset-top)) 22px 14px max(22px, env(safe-area-inset-left)); border-radius: 0 0 22px 0; } .mark img { width: 150px; } .top { padding-right: max(22px, env(safe-area-inset-right)); } .top .btn--small { margin-top: max(20px, env(safe-area-inset-top)); } }
@media (min-width: 1600px) { .mark img { width: 170px; } }

.top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px rgba(60, 34, 34, .08); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
body.past-film .top::before { opacity: 1; }
body.past-film .mark { background: transparent; border-radius: 0; box-shadow: none; }
.mark { transition: background-color .3s ease, border-radius .3s ease, box-shadow .3s ease; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--brown); background: var(--brown); color: var(--cream); font: 600 .98rem/1.1 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; box-shadow: 0 6px 18px rgba(60, 34, 34, .22); }
.btn:hover { transform: translateY(-1px); background: var(--brown-2); }
.btn--ghost { background: rgba(246, 240, 228, .94); color: var(--brown); border-color: rgba(246, 240, 228, .94); }
.btn--ghost:hover { background: var(--paper); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: .9rem; border-color: rgba(251, 247, 239, .55); }
.btn--big { min-height: 58px; padding: 0 40px; font-size: 1.08rem; }

/* ---------- the film ---------- */
.film { position: relative; height: 100svh; background: var(--umber); color: var(--cream); }
body.live .film { height: 1500vh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--umber); }
.poster, #gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
#gl { opacity: 0; transition: opacity .6s ease; }
body.ready #gl { opacity: 1; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(60, 34, 34, .28) 0%, rgba(60, 34, 34, 0) 20%, rgba(60, 34, 34, 0) 52%, rgba(40, 22, 20, .62) 100%); }
/* the title must read over the first frame: a warm veil behind it that clears as soon as you scroll */
.hero-dim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(40, 22, 20, .18) 0%, rgba(40, 22, 20, .32) 42%, rgba(40, 22, 20, .82) 100%); will-change: opacity; }
.cap0 { position: absolute; left: 0; right: 0; bottom: calc(12vh + env(safe-area-inset-bottom)); text-align: center; padding: 0 20px; will-change: opacity, transform; }
.cap0 h1 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .95; text-shadow: 0 2px 24px rgba(30, 16, 14, .55); }
.h1-top { display: block; font-weight: 600; font-size: clamp(.95rem, 2.4vw, 1.5rem); letter-spacing: .34em; text-transform: uppercase; color: var(--sage-l); margin: 0 0 .5em .34em; }
.h1-main { display: block; font-size: clamp(3.2rem, 9vw, 7rem); letter-spacing: -.005em; }
.place { margin: 16px 0 8px; font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; }
.facts { margin: 0; font-size: 1rem; }
.place, .facts { text-shadow: 0 1px 14px rgba(30, 16, 14, .6); }
.cap-end { position: absolute; left: 0; right: 0; bottom: calc(11vh + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 20px; text-align: center; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.end-title { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .95; text-shadow: 0 2px 24px rgba(30, 16, 14, .55); }
.end-main { display: block; font-size: clamp(2.6rem, 6vw, 4.6rem); }
.end-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.end-btns .btn { min-width: 168px; white-space: nowrap; }
/* the last film frame is a close-up: a warm veil comes in with the closing buttons */
.end-dim { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(40, 22, 20, .35) 0%, rgba(40, 22, 20, .55) 50%, rgba(40, 22, 20, .85) 100%); will-change: opacity; }
body:not(.live) .end-dim { display: none; }
.hint { position: absolute; left: 50%; bottom: calc(3.2vh + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(30, 16, 14, .6); }
.hint i { width: 1px; height: 34px; background: var(--cream); transform-origin: top; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.bar, .loadbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; transform-origin: 0 50%; }
.bar { background: var(--sage-l); transform: scaleX(0); }
.loadbar { background: rgba(251, 247, 239, .22); transform: scaleX(var(--load)); transition: transform .4s ease; }
body:not(.live) .hint, body:not(.live) .bar, body:not(.live) .loadbar, body:not(.live) .cap-end { display: none; }

/* AI label of the flight: top right under the Book button, away from captions and room names */
.ai-badge { position: absolute; right: max(14px, env(safe-area-inset-right)); top: calc(max(12px, env(safe-area-inset-top)) + 54px); margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(40, 22, 20, .55); color: var(--cream); font-size: .66rem; line-height: 1.25; letter-spacing: .02em; pointer-events: none; max-width: min(60vw, 280px); text-align: right;  opacity: .85; }
@media (min-width: 1100px) { .ai-badge { font-size: .72rem; } }
@media (min-width: 760px) { .ai-badge { right: max(22px, env(safe-area-inset-right)); top: calc(max(20px, env(safe-area-inset-top)) + 56px); } }

/* room name during a stop in the flight: name big (door plate), kind of room small underneath */
.room-label { position: absolute; left: max(22px, env(safe-area-inset-left), 6vw); right: auto; width: fit-content; max-width: min(560px, 88vw); bottom: calc(12vh + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; pointer-events: none; will-change: opacity, transform; text-shadow: 0 2px 22px rgba(30, 16, 14, .6), 0 0 2px rgba(30, 16, 14, .35); }
.room-label::before { content: ""; width: 44px; height: 2px; background: var(--sage-l); margin-bottom: 6px; box-shadow: 0 1px 8px rgba(30, 16, 14, .4); }
.rl-name { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .95; color: var(--cream); }
.rl-type { font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--sage-l); }
/* soft scrim: an ellipse that has faded to 0 before it reaches its own box edge, so no edge can ever show */
.room-label::after { content: ""; position: absolute; z-index: -1; inset: -56px -72px -48px -56px; background: radial-gradient(closest-side, rgba(24, 12, 10, .55), rgba(24, 12, 10, .34) 45%, rgba(24, 12, 10, .1) 78%, rgba(24, 12, 10, 0) 96%); pointer-events: none; }
.rl-name:empty { display: none; }
.rl-name:empty + .rl-type { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .95; letter-spacing: 0; text-transform: none; color: var(--cream); }
.rl-name span { display: inline-block; white-space: pre; will-change: opacity, transform; }
@media (min-width: 1100px) { .rl-type { font-size: .92rem; } }

/* ---------- after the film: paper section ---------- */
.final { position: relative; display: grid; gap: 36px; justify-items: center; align-content: center; min-height: 100svh; padding: 88px 20px 72px; background: var(--paper); color: var(--brown); }
.final::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--sage), var(--sage-l) 50%, var(--sage)); opacity: .55; }
.final-text { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 34rem; }
.final-palais { width: min(260px, 66vw); height: auto; margin-bottom: 18px; }
.final h2 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .95; }
.ft-top { display: block; font-weight: 600; font-size: clamp(.9rem, 2vw, 1.15rem); letter-spacing: .34em; text-transform: uppercase; margin: 0 0 .45em .34em; color: var(--brown); }
.ft-main { display: block; font-size: clamp(2.8rem, 7vw, 4.6rem); }
.final-sub { margin: 14px 0 0; font-size: .84rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-ink); font-weight: 600; }
.flourish { width: min(300px, 76vw); height: auto; margin: 22px 0 18px; }
.final-facts { margin: 0 0 30px; font-size: 1.05rem; color: var(--brown); }
.final-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.book-note { margin: 0; font-size: .9rem; color: var(--muted); }
.explore-card { position: relative; width: min(1100px, 100%); aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--umber); color: var(--cream); box-shadow: 0 24px 60px rgba(60, 34, 34, .22); transition: transform .35s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.explore-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .82; transition: transform .8s ease, opacity .4s ease; }
.explore-card:hover img { transform: scale(1.03); opacity: .92; }
.explore-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 22, 20, 0) 45%, rgba(40, 22, 20, .66) 100%); pointer-events: none; }
.play { position: absolute; left: 50%; top: 46%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 1px solid rgba(251, 247, 239, .9); background: rgba(60, 34, 34, .45); z-index: 1; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.play::after { content: ""; position: absolute; left: 32px; top: 25px; border-left: 22px solid var(--cream); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.explore-label { position: absolute; left: 0; right: 0; bottom: 7%; z-index: 1; text-align: center; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.5rem); text-shadow: 0 2px 16px rgba(30, 16, 14, .6); }
.pixels { position: absolute; inset: 0; display: grid; pointer-events: none; z-index: 2; }
.pixels i { background: var(--paper); opacity: 1; transition: opacity .25s ease; }
.pixels i.off { opacity: 0; }
.pixels i.trail { animation: trail .7s ease-out; background: var(--sage-l); }
@keyframes trail { 0% { opacity: .5; } 100% { opacity: 0; } }
/* tablets: the palais drawing clears the logo plate (header height + 24 px) */
@media (min-width: 760px) and (max-width: 999px) { .final { padding-top: calc(140px + env(safe-area-inset-top)); } }
@media (min-width: 1000px) {
  .final { grid-template-columns: minmax(300px, 400px) minmax(0, 720px); justify-content: center; align-items: center; gap: clamp(40px, 6vw, 96px); padding: 110px 48px 96px; }
  .explore-card { aspect-ratio: 4 / 3.2; }
}

/* ---------- footer ---------- */
.foot { padding: 44px 20px max(48px, env(safe-area-inset-bottom)); text-align: center; font-size: .9rem; background: var(--paper-2); color: var(--muted); border-top: 1px solid var(--line); }
.foot-logo { display: block; width: 150px; height: auto; margin: 0 auto 16px; }
.foot address { font-style: normal; margin: 0 0 6px; color: var(--brown); }
.foot-legal { margin: 0; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--brown); text-underline-offset: 3px; }

/* ---------- 3D tour overlay ---------- */
.tour { position: fixed; inset: 0; z-index: 50; background: var(--umber); }
.tour[hidden] { display: none; }
.tour iframe { width: 100%; height: 100%; border: 0; display: block; }
.tour-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--brown); font: 600 .92rem var(--sans); cursor: pointer; box-shadow: 0 6px 18px rgba(30, 16, 14, .3); }
body.tour-open { overflow: hidden; }

/* ---------- loader: welcome, palais drawing in a ring that fills while the film loads, wordmark ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--paper); color: var(--brown); transition: opacity .7s ease, visibility .7s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px; text-align: center; }
.loader-welcome { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 4.4vw, 2.6rem); letter-spacing: .01em; }
.loader-mark { position: relative; width: min(200px, 52vw); aspect-ratio: 1; display: grid; place-items: center; }
.loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lr-track { fill: none; stroke: rgba(90, 126, 70, .25); stroke-width: 1.4; }
.lr-bar { fill: none; stroke: var(--brown); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset .35s ease; }
.lr-dot { fill: var(--sage); transform-origin: 60px 60px; animation: lr-spin 2.4s linear infinite; }
@keyframes lr-spin { to { transform: rotate(360deg); } }
.loader-palais { width: 72%; height: auto; margin-top: 4%; }
.loader-word { width: min(190px, 50vw); height: auto; }
.loader-pct { margin: 0; font-size: .74rem; letter-spacing: .3em; color: var(--muted); font-variant-numeric: tabular-nums; }
body.is-loading { overflow: hidden; }

/* ---------- legal pages ---------- */
.legal-page .top { position: absolute; }
.legal { max-width: 46rem; margin: 0 auto; padding: 132px 20px 64px; line-height: 1.65; color: var(--brown); }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 7vw, 3.4rem); line-height: 1; margin: 0 0 .4em; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 1.7em 0 .35em; color: var(--brown); }
.legal h3 { font-size: 1.05rem; margin: 1.4em 0 .3em; }
.legal p { overflow-wrap: anywhere; }
.legal-draft { display: inline-block; margin: 0 0 1.2em; padding: 6px 14px; border: 1px solid var(--sage); border-radius: 999px; font-size: .88rem; color: var(--sage-ink); background: rgba(178, 208, 166, .18); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.legal-en { margin-top: 3em; padding-top: 1em; border-top: 1px solid var(--line); }
.legal .flourish { display: block; margin: 0 0 22px; width: 220px; }
@media (min-width: 760px) { .legal { padding-top: 170px; } }

/* ---------- misc ---------- */
.skip { position: fixed; left: 12px; top: -80px; z-index: 110; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--brown); color: var(--cream); font: 600 .95rem/1 var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }

/* phones (narrow): sizes and placement tuned for 375 to 430 px */
@media (max-width: 759px) {
  .h1-main { font-size: clamp(3rem, 15vw, 4.2rem); }
  .place { font-size: .78rem; letter-spacing: .2em; }
  .facts { font-size: .95rem; }
  .cap0 { bottom: calc(13vh + env(safe-area-inset-bottom)); }
  .end-btns { gap: 10px; }
  .end-btns .btn { flex: 1 1 140px; min-width: 0; max-width: 220px; padding: 0 14px; }
  .final-sub { font-size: .78rem; letter-spacing: .14em; }
  .room-label { bottom: calc(11vh + env(safe-area-inset-bottom)); }
  .ai-badge { font-size: .66rem; padding: 4px 10px; }
  .end-title { font-size: 1.75rem; }
  .end-main { font-size: clamp(3rem, 14vw, 3.8rem); }
  .end-title .h1-top { font-size: 1rem; }
  .final { padding: calc(112px + env(safe-area-inset-top)) 20px 56px; gap: 30px; }
  .final-palais { width: min(220px, 62vw); }
  .btn--big { min-height: 54px; padding: 0 34px; width: min(100%, 320px); }
  .explore-card { border-radius: 12px; }
}
@media (max-height: 560px) and (orientation: landscape) { .cap0 { bottom: 8vh; } .h1-main { font-size: clamp(2.4rem, 8vh, 3.4rem); } .room-label { bottom: 9vh; } }

/* phone photo story (not used any more, kept for the fallback) */
.story { display: none; }
body.mode-story .story { display: block; position: absolute; inset: 0; }
body.mode-story .story figure { position: absolute; left: 4vw; right: 4vw; top: 50%; margin: -34vw 0 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); will-change: transform, opacity; transform: translate3d(0, 105vh, 0); }
body.mode-story .story figure:first-child { transform: none; }
body.mode-story .story img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; }
body.mode-story .film { height: 650vh; }
body.mode-story #gl, body.mode-story .poster, body.mode-story .ai-badge { display: none; }

@media (prefers-reduced-motion: reduce) { .hint i, .lr-dot { animation: none; } * { transition: none !important; } }

/* ---- phone / portrait intro: poster + gentle Ken Burns, no canvas ---- */
.intro-btns { display: none; }
body.phone-intro #gl, body.phone-intro .story, body.phone-intro .hint, body.phone-intro .bar, body.phone-intro .loadbar, body.phone-intro .cap-end, body.phone-intro .end-dim, body.phone-intro .room-label { display: none; }
body.phone-intro .film, body.phone-intro .stage { height: 100svh; }
body.phone-intro .poster { transform-origin: 50% 62%; animation: kb 22s ease-in-out infinite alternate; will-change: transform; }
body.phone-intro .cap0 { bottom: calc(9svh + env(safe-area-inset-bottom)); }
body.phone-intro .intro-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
body.phone-intro .intro-btns .btn { min-width: 160px; white-space: nowrap; }
@keyframes kb { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2.5%, -2%, 0); } }
@media (prefers-reduced-motion: reduce) { body.phone-intro .poster { animation: none; } }

/* ---- exterior photos ---- */
.outside { background: var(--paper); color: var(--brown); padding: clamp(72px, 12vw, 150px) clamp(16px, 4vw, 56px) clamp(64px, 10vw, 130px); overflow: hidden; }
.out-title { margin: 0 auto clamp(32px, 6vw, 72px); text-align: center; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: .95; }
.out-rail { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 28px); max-width: 1320px; margin: 0 auto; align-items: start; }
.out-card { margin: 0; }
.out-frame { overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; background: var(--paper-2); box-shadow: 0 18px 40px rgba(60, 34, 34, .14); }
.out-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); will-change: transform; }
.out-a { grid-column: 1 / span 8; }
.out-b { grid-column: 7 / span 6; margin-top: clamp(-120px, -8vw, -40px); position: relative; z-index: 1; }
.out-c { grid-column: 2 / span 9; margin-top: clamp(28px, 5vw, 72px); }
/* reveal: the frame opens like a curtain from the bottom while the photo settles from a deeper zoom */
.js-out .out-frame { clip-path: inset(100% 0 0 0 round 6px); transition: clip-path 1.4s cubic-bezier(.7, 0, .2, 1); }
.js-out .out-card.in .out-frame { clip-path: inset(0 0 0 0 round 6px); }
.js-out .out-card { opacity: 0; transform: translate3d(0, 70px, 0); transition: opacity 1s ease, transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.js-out .out-card.in { opacity: 1; transform: none; }
.js-out .out-b { transition-delay: .15s; }
.js-out .out-b .out-frame { transition-delay: .15s; }
@media (max-width: 767px) {
  .out-rail { display: flex; flex-direction: column; gap: 22px; }
  .out-a, .out-b, .out-c { margin: 0; }
  .out-b { width: 86%; align-self: flex-end; }
  .out-c { width: 92%; }
  .out-frame { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .js-out .out-card { opacity: 1; transform: none; transition: none; } .js-out .out-frame { clip-path: none; transition: none; } .out-frame img { transform: none; } }

/* consent banner (live domain only, consent.js) */
.consent { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000; width: min(560px, calc(100% - 32px)); background: #2a1d17; color: #f4ece2; padding: 16px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 15px; line-height: 1.45; }
.consent p { margin: 0 0 12px; }
.consent a { color: #f4ece2; text-decoration: underline; }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(244,236,226,.5); background: transparent; color: #f4ece2; font: inherit; cursor: pointer; }
.consent button.consent-yes { background: #f4ece2; color: #2a1d17; border-color: #f4ece2; }

/* Instagram: icon button next to "Jetzt buchen" (header) and a smaller pill under the big CTA */
.top-actions .btn-ig { width: 40px; height: 40px; }
.top-actions { display: flex; align-items: center; gap: 8px; margin-top: max(12px, env(safe-area-inset-top)); }
.top .top-actions .btn--small { margin-top: 0; }
@media (min-width: 760px) { .top-actions { margin-top: max(20px, env(safe-area-inset-top)); } }
.btn-ig { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; border-radius: 999px; background: rgba(246, 240, 228, .94); color: var(--brown); border: 1px solid rgba(91, 61, 20, .25); box-shadow: 0 6px 18px rgba(60, 34, 34, .18); text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.btn-ig:hover { transform: translateY(-1px); background: var(--paper); }
.btn-ig--label { width: auto; height: 42px; padding: 0 18px; font: 600 .9rem/1 var(--sans); }

.legal { overflow-wrap: anywhere; }
.legal table { display: block; max-width: 100%; overflow-x: auto; }

/* phone intro background: the Booking exterior photos, slow crossfade + Ken Burns (no canvas) */
.phone-hero { display: none; }
body.phone-intro .poster { display: none; }
body.phone-intro .phone-hero { display: block; position: absolute; inset: 0; overflow: hidden; background: var(--paper-2); }
.phone-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: ph-fade 18s linear infinite, ph-kb 18s ease-in-out infinite; will-change: opacity, transform; }
.phone-hero img:nth-child(1) { object-position: 38% 50%; animation-delay: 0s, 0s; opacity: 1; }
.phone-hero img:nth-child(2) { object-position: 55% 50%; animation-delay: 6s, 6s; }
.phone-hero img:nth-child(3) { object-position: 45% 50%; animation-delay: 12s, 12s; }
@keyframes ph-fade { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }
@keyframes ph-kb { 0% { transform: scale(1.18) translate3d(3%, 0, 0); } 40% { transform: scale(1.04) translate3d(-3%, -1.5%, 0); } 100% { transform: scale(1.04) translate3d(-3%, -1.5%, 0); } }
.phone-hero img:nth-child(1) { animation-name: ph-fade-first, ph-kb; }
@keyframes ph-fade-first { 0% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; } 94% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .phone-hero img { animation: none; } .phone-hero img:nth-child(1) { opacity: 1; } }
