/* Alpenhotel Heimspitze — Entwurf. Colours are theirs (heimspitze.com CSS): paper, ink, terracotta, stone blue.
   Type: Sporting Grotesque (their heading face, SIL OFL) + Inter (closest free match to their Neue Haas Grotesk). */

@font-face { font-family: "Sporting Grotesque"; src: url("../fonts/sporting-grotesque-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  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; }

:root {
  --paper: #F2F2F2; --ink: #1E1E16; --terra: #C94A30; --stone: #89A0B0; --white: #fff;
  --line: rgba(30, 30, 22, .16); --line-l: rgba(255, 255, 255, .28); --mute: rgba(30, 30, 22, .66);
  --accent: var(--terra); --accent-l: #fff;
  --disp: "Sporting Grotesque", "Inter", sans-serif; --sans: "Inter", sans-serif;
  --hdr-h: 68px;
  --gut: clamp(20px, 4vw, 56px);
  --pad: max(var(--gut), calc((100% - 1480px) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 899px) { :root { --hdr-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd, figure, fieldset, address { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-inline-size: 0; }
address { font-style: normal; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
b, strong { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid transparent;
  font: 700 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; white-space: nowrap; text-align: center;
  -webkit-touch-callout: none; user-select: none; transition: background-color .25s, color .25s, transform .15s; }
.btn:active { transform: scale(.97); }
.btn--terra { background: var(--terra); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { border-color: currentColor; background: transparent; }
@media (hover: hover) {
  .btn--terra:hover { background: #b23f27; }
  .btn--ink:hover { background: #34342a; }
  .btn--line:hover { background: rgba(30, 30, 22, .08); }
}

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr-h); display: flex; align-items: center; gap: clamp(14px, 2.4vw, 36px);
  padding: 0 var(--gut); background: rgba(242, 242, 242, .97); color: var(--ink); border-bottom: 1px solid var(--line);
  transition: background-color .4s, color .4s, border-color .4s; }
.hdr__logo { display: block; width: clamp(132px, 12vw, 172px); color: var(--terra); margin-right: auto; transition: opacity .4s, color .4s; }
.hdr__logo svg { width: 100%; height: auto; }
.hdr__nav { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.hdr__nav a { font: 700 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding: 12px 0; position: relative; }
.hdr__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
@media (hover: hover) { .hdr__nav a:hover::after { transform: scaleX(1); } }
.hdr__call { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid currentColor; border-radius: 50%; flex: none; }
.hdr__call svg, .dock__call svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.hdr__book { min-height: 44px; padding: 0 22px; flex: none; }
/* over the hero: clear, white, and without the small logo while the big one is in view */
.hdr.has-crest { background: rgba(242, 242, 242, 0); color: #fff; border-color: transparent; }
.hdr.has-crest .hdr__logo { opacity: 0; pointer-events: none; color: #fff; }
@media (max-width: 899px) { .hdr__nav, .hdr__book { display: none; } .hdr__call { width: 40px; height: 40px; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--hdr-h);
  background: var(--ink); color: #fff; overflow: hidden; overflow-anchor: none; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--hero-y, 0%); will-change: transform, opacity; }
.hero__shade { position: absolute; inset: 0; background:
  radial-gradient(60% 42% at 50% var(--crest-y, 30%), rgba(30, 30, 22, .34), rgba(30, 30, 22, 0) 100%),
  linear-gradient(180deg, rgba(30, 30, 22, .5) 0%, rgba(30, 30, 22, .12) 26%, rgba(30, 30, 22, 0) 46%, rgba(30, 30, 22, .12) 66%, rgba(30, 30, 22, .62) 100%); }
/* portrait screens: a taller photo puts the lettering on their garage behind the console */
@media (max-aspect-ratio: 1/1) { .hero__img { height: 116%; object-position: 30% 0; } }

.crest { position: relative; z-index: 1; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: clamp(10px, 4.2svh, 52px) 20px 16px; text-align: center; }
.crest__mark { width: clamp(84px, 14.5svh, 148px); height: auto; overflow: visible; }
.crest__draw { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.crest__heart { transform-box: fill-box; transform-origin: 50% 62%; }
.crest__word { width: clamp(232px, 26vw, 400px); height: auto; margin-top: clamp(14px, 2.6svh, 28px); overflow: visible; }
.crest__line { display: flex; align-items: center; gap: 16px; margin-top: clamp(12px, 2.2svh, 24px); font: 700 11px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.crest__line i { display: block; width: clamp(18px, 4vw, 46px); height: 1px; background: currentColor; opacity: .7; transform-origin: center; }
@media (max-width: 719px) {
  .crest { padding-top: clamp(8px, 3svh, 34px); }
  .crest__mark { width: clamp(76px, min(26vw, 13svh), 112px); }
  .crest__word { width: min(64vw, 262px); margin-top: clamp(10px, 2svh, 18px); }
  .crest__line { font-size: 10px; letter-spacing: .24em; gap: 10px; margin-top: clamp(8px, 1.6svh, 14px); }
}

/* the Anfrage console: paper, like their own booking bar */
.stay { position: relative; z-index: 2; width: min(1180px, calc(100% - 2 * var(--gut))); margin: 0 auto clamp(16px, 4svh, 44px); }
.stay__status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; background: rgba(30, 30, 22, .78); font: 700 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.stay__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stone); flex: none; }
.stay__bar { display: grid; grid-template-columns: 1fr 1.2fr 1.15fr 1.15fr auto; background: var(--paper); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.stay__f { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 2px 10px; min-width: 0; padding: 15px clamp(14px, 1.7vw, 26px); text-align: left; border-right: 1px solid var(--line); transition: background-color .25s; }
.stay__f .lab { white-space: nowrap; }
.stay__v { font: 400 clamp(1rem, 1.35vw, 1.22rem)/1.25 var(--disp); white-space: nowrap; }
.stay__go { min-height: 78px; padding: 0 clamp(20px, 2.4vw, 36px); }
@media (hover: hover) { .stay__f:hover { background: #fff; } }
.stay__f[aria-expanded="true"] { background: #fff; }
@media (max-width: 1023px) {
  .stay__bar { grid-template-columns: 1fr 1fr; }
  .stay__f { padding: 11px 16px; border-bottom: 1px solid var(--line); }
  .stay__f:nth-child(2n) { border-right: 0; }
  .stay__go { grid-column: 1 / -1; min-height: 52px; }
}
@media (max-width: 719px) {
  .stay { width: calc(100% - 28px); margin-bottom: 14px; }
  .stay__status { font-size: 10px; letter-spacing: .18em; padding: 7px 11px 7px 10px; }
  .stay__f .lab { font-size: 10px; letter-spacing: .18em; }
  .stay__f { padding: 9px 13px 10px; }
  .stay__v { font-size: min(1rem, 4.1vw); }
}

/* intro states (GSAP sets the rest) */
.js .crest__draw { stroke-dashoffset: 1; }
.js .hero__img, .js .hero__shade, .js .crest__heart, .js .crest__word, .js .crest__line, .js .stay { opacity: 0; }
.js .hdr { opacity: 0; }
.no-anim .crest__draw, .is-static .crest__draw { stroke-dashoffset: 0 !important; }
.no-anim .hero__img, .no-anim .hero__shade, .no-anim .crest__heart, .no-anim .crest__word, .no-anim .crest__line, .no-anim .stay, .no-anim .hdr,
.is-static .hero__img, .is-static .hero__shade, .is-static .crest__heart, .is-static .crest__word, .is-static .crest__line, .is-static .stay, .is-static .hdr { opacity: 1 !important; transform: none !important; }

/* ---------- Shared parts ---------- */
.nb { white-space: nowrap; }
.lab { display: block; font: 700 11px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.h2 { font: 400 var(--h2s)/1.06 var(--disp); letter-spacing: -.012em; }

.seg { display: inline-flex; border: 1px solid var(--ink); }
.seg button { display: inline-flex; align-items: baseline; gap: 7px; min-height: 42px; padding: 0 18px; font: 700 11px/42px var(--sans); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; transition: background-color .25s, color .25s; }
.seg button + button { border-left: 1px solid var(--ink); }
.seg button i { font-style: normal; opacity: .6; }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) { .seg button[aria-selected="false"]:hover { background: rgba(30, 30, 22, .08); } }

.rbtn { width: 62px; height: 41px; color: #fff; transition: opacity .25s, transform .25s var(--ease); }
.rbtn svg { width: 62px; height: 41px; fill: none; stroke: currentColor; stroke-width: 2; }
.rbtn:disabled { opacity: .3; pointer-events: none; }
@media (hover: hover) { .stage__next:hover { transform: translateX(4px); } .stage__prev:hover { transform: translateX(-4px); } }

/* cross-faded pictures: the old one leaves, then the new one arrives */
.stage__img, .ans__img, .week__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.stage__img.is-on, .ans__img.is-on, .week__img.is-on { opacity: 1; }

/* ---------- 2 · Zimmer & Suiten ---------- */
.rooms, .faq, .week { padding-inline: var(--pad); }
.rooms__head, .faq__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-bottom: clamp(14px, 2.4svh, 26px); }
.rooms__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 60px); align-items: center; }
.stage { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: calc(100svh - var(--hdr-h) - 318px); min-height: 200px; overflow: hidden; background: var(--ink); touch-action: pan-y pinch-zoom; }
.stage__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 40px 18px 14px; color: #fff;
  background: linear-gradient(180deg, rgba(30, 30, 22, 0), rgba(30, 30, 22, .62)); pointer-events: none; }
.stage__name { font: 400 1.25rem/1.2 var(--disp); visibility: hidden; }
.stage__count { font: 700 11px/41px var(--sans); letter-spacing: .2em; margin-right: 150px; }
.stage__prev, .stage__next { position: absolute; bottom: 14px; }
.stage__next { right: 16px; }
.stage__prev { right: 88px; }

.room__name { font: 400 var(--h3m)/1.1 var(--disp); color: var(--terra); padding-bottom: 14px; border-bottom: 2px solid var(--terra); }
.room__facts { margin-top: 16px; }
.room__text { margin-top: 8px; max-width: 46ch; min-height: 4.65em; color: var(--mute); }
.room__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; min-height: 34px; }
.room__tags li { padding: 4px 12px; border: 1px solid var(--line); line-height: 1.5; white-space: nowrap; }
.room__ask { margin-top: clamp(16px, 2.6svh, 26px); }
.room__ask .short { display: none; }

.rail { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; margin-top: clamp(14px, 2.4svh, 24px); }
.rail__it { display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; text-align: left; position: relative; padding-bottom: 8px; }
.rail__it img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #dcdcd8; transition: opacity .3s; }
.rail__n, .rail__m { display: block; font-size: 12.5px; line-height: 1.35; }
.rail__n { margin-top: 7px; hyphens: auto; }
.rail__m { color: var(--mute); white-space: nowrap; }
@media (max-width: 1259px) { .rail__p { display: none; } }
.rail__it::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.rail__it[aria-selected="true"]::after { transform: scaleX(1); }
.rail__it[aria-selected="true"] .rail__n { color: var(--terra); }
.rail__it[aria-selected="false"] img { opacity: .78; }
@media (hover: hover) { .rail__it:hover img { opacity: 1; } }

@media (max-width: 899px) {
  .rooms__head { margin-bottom: 10px; gap: 10px; }
  .rooms__body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  /* phone: a taller photo fills the screen instead of a white band under the rail (his gate 14.11) */
  .stage { aspect-ratio: 4 / 3; max-height: min(82vw, calc(100svh - var(--hdr-h) - 420px)); min-height: 150px; }
  .stage__name { visibility: visible; font-size: 1.05rem; }
  .stage__count { margin: 0; line-height: 41px; }
  .stage__cap { padding: 34px 14px 8px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0; }
  .stage__prev, .stage__next { bottom: 8px; }
  .stage__next { right: 10px; } .stage__prev { right: 78px; }
  .room { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
  .room__name, .room__text, .room__house { display: none; }
  .room__facts { margin: 0; line-height: 1.35; }
  .room__tags { grid-column: 1; margin: 0; min-height: 0; display: block; line-height: 1.35; color: var(--mute); }
  .room__tags li { display: inline; padding: 0; border: 0; white-space: normal; }
  .room__tags li + li::before { content: ' · '; }
  .room__ask { grid-column: 2; grid-row: 1 / span 2; margin: 0; min-height: 46px; padding: 0 16px; letter-spacing: .14em; }
  .room__ask .long { display: none; } .room__ask .short { display: inline; }
  .rail { display: flex; gap: 8px; margin: 10px calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 2px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rail::-webkit-scrollbar { display: none; }
  .rail__it { flex: 0 0 116px; scroll-snap-align: start; padding-bottom: 6px; }
  .rail__n { margin-top: 5px; }
  .rail__m { display: none; }
}

/* ---------- 3 · Schnelle Antworten ---------- */
.faq__body { display: grid; grid-template-columns: minmax(250px, .82fr) minmax(0, 1.7fr); gap: clamp(24px, 4vw, 72px); align-items: stretch; }
.faq__list { display: flex; flex-direction: column; justify-content: center; }
.faq__q { display: flex; align-items: center; gap: 0; width: 100%; padding: clamp(9px, 1.5svh, 14px) 0; border-bottom: 1px solid var(--line); text-align: left; line-height: 1.35; transition: color .25s; }
.faq__q::before { content: ''; flex: none; width: 0; height: 2px; background: var(--terra); margin-right: 0; transition: width .4s var(--ease), margin-right .4s var(--ease); }
.faq__q[aria-selected="true"] { color: var(--terra); }
.faq__q[aria-selected="true"]::before { width: 26px; margin-right: 14px; }
.faq__q .short { display: none; }
@media (hover: hover) { .faq__q[aria-selected="false"]:hover { color: var(--terra); } }
.ans { position: relative; min-width: 0; }
.ans__fig { position: relative; height: clamp(300px, calc(100svh - var(--hdr-h) - 232px), 600px); overflow: hidden; background: var(--ink); margin-left: clamp(60px, 9vw, 150px); }
.ans__card { position: absolute; left: 0; bottom: clamp(20px, 4svh, 44px); width: min(430px, 62%); background: var(--paper); padding: clamp(18px, 2vw, 30px) clamp(20px, 2.4vw, 36px) clamp(18px, 2vw, 30px) 0; }
.ans__q { display: none; color: var(--mute); }
.ans__big { font: 400 clamp(2rem, 3.5vw, 3.4rem)/1.05 var(--disp); letter-spacing: -.012em; color: var(--terra); margin: 0 0 12px; }
.ans__text { max-width: 44ch; }
.seg--s button { min-height: 38px; line-height: 38px; padding: 0 14px; }
@media (max-width: 899px) {
  .faq__head { margin-bottom: 10px; gap: 10px; }
  .faq__body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .faq__list { flex-direction: row; justify-content: flex-start; gap: 6px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); overflow-x: auto; scrollbar-width: none; }
  .faq__list::-webkit-scrollbar { display: none; }
  .faq__q { width: auto; flex: none; padding: 0 14px; min-height: 40px; border: 1px solid var(--line); font: 700 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
  .faq__q::before { display: none; }
  .faq__q[aria-selected="true"] { background: var(--terra); border-color: var(--terra); color: #fff; }
  .faq__q .long { display: none; } .faq__q .short { display: inline; }
  .ans__fig { height: clamp(96px, calc(100svh - var(--hdr-h) - 468px), 220px); margin-left: 0; }
  .ans__card { position: static; width: auto; padding: 10px 0 0; background: none; min-height: 212px; }
  .ans__q { display: block; line-height: 1.35; }
  .ans__big { font-size: clamp(1.5rem, 7.4vw, 2rem); margin: 2px 0 8px; }
  .ans__text { line-height: 1.45; }
}

/* ---------- 4 · Eine Woche im Haus ---------- */
@media (min-width: 900px) { main > section.week[data-screen] { flex-direction: row; align-items: center; justify-content: space-between; gap: clamp(28px, 5vw, 90px); } }
.week__txt { flex: 1 1 0; min-width: 0; max-width: 620px; }
.days { display: flex; gap: clamp(6px, .8vw, 12px); margin-top: clamp(16px, 3svh, 30px); }
.days button { width: 48px; height: 48px; border: 1.5px solid var(--ink); border-radius: 50%; font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; flex: none; transition: background-color .25s, color .25s, border-color .25s; }
.days button[aria-selected="true"] { background: var(--terra); border-color: var(--terra); color: #fff; }
@media (hover: hover) { .days button[aria-selected="false"]:hover { background: rgba(30, 30, 22, .08); } }
.day { margin-top: clamp(16px, 3svh, 30px); min-height: 250px; }
.day__hl { font: 400 var(--h3m)/1.12 var(--disp); color: var(--terra); }
.day__rows { margin-top: 14px; border-top: 1px solid var(--line); }
.day__rows div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.day__rows dt { color: var(--mute); line-height: 1.4; }
.day__rows dd { line-height: 1.4; }
.day__note { margin-top: 12px; max-width: 50ch; }
.week__always { margin-top: 6px; color: var(--mute); max-width: 50ch; }
.week__fig { position: relative; flex: 0 1 46%; aspect-ratio: 1 / 1.08; max-height: calc(100svh - var(--hdr-h) - 110px); overflow: hidden; background: var(--ink); }
.week__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px; color: #fff; font: 700 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(30, 30, 22, 0), rgba(30, 30, 22, .62)); }
@media (max-width: 899px) {
  .week { display: flex; flex-direction: column; }
  .week__txt { display: contents; }
  .week .h2 { order: 2; }
  .days { order: 3; margin-top: 10px; justify-content: space-between; gap: 4px; }
  .days button { width: min(44px, 11.4vw); height: min(44px, 11.4vw); }
  .week__fig { order: 4; flex: none; width: 100%; aspect-ratio: auto; height: clamp(86px, calc(100svh - var(--hdr-h) - 484px), 210px); margin-top: 10px; max-height: none; }
  .week__cap { padding: 22px 12px 8px; font-size: 10px; letter-spacing: .16em; }
  .day { order: 5; margin-top: 10px; min-height: 0; }
  .day__rows { margin-top: 8px; min-height: 142px; }
  .day__rows div { grid-template-columns: 92px minmax(0, 1fr); padding: 6px 0; }
  .day__note { margin-top: 8px; line-height: 1.4; min-height: 2.8em; }
  .week__always { display: none; }
}

/* ---------- Footer ---------- */
.ftr { background: var(--ink); color: #fff; padding: clamp(40px, 7svh, 84px) var(--pad) 0; }
.ftr__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; padding-bottom: clamp(22px, 4svh, 40px); border-bottom: 1px solid var(--line-l); }
.ftr__logo { width: clamp(190px, 26vw, 380px); height: auto; color: var(--terra); }
.ftr__fam { line-height: 1.5; }
.ftr__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 30px; padding-top: clamp(22px, 4svh, 40px); line-height: 1.7; }
.ftr__cols a { text-decoration: none; border-bottom: 1px solid var(--line-l); transition: border-color .25s; }
@media (hover: hover) { .ftr__cols a:hover { border-color: #fff; } }
@media (max-width: 719px) { .ftr__cols { grid-template-columns: minmax(0, 1fr); } .ftr { padding-bottom: calc(86px + env(safe-area-inset-bottom)); } }

/* ---------- Entwurf note ---------- */
.note__tab { position: fixed; left: 0; top: 50%; z-index: 60; transform: rotate(-90deg) translate(-50%, 0); transform-origin: 0 0; background: var(--ink); color: #fff;
  padding: 7px 14px; font: 700 10px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; opacity: .86; transition: opacity .25s; }
@media (hover: hover) { .note__tab:hover { opacity: 1; } }
.note { position: fixed; left: 34px; top: 50%; transform: translateY(-50%); z-index: 61; width: min(330px, calc(100vw - 48px)); background: #fff; color: var(--ink); padding: 22px 24px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .28); }
.note p { margin-top: 8px; line-height: 1.45; }
.note .lab { margin: 0; }
.note .btn { margin-top: 14px; width: 100%; letter-spacing: .12em; padding: 0 12px; white-space: normal; }
.note .note__small { color: var(--mute); }
.note__x { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; display: grid; place-items: center; }
.note__x svg, .ask__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 899px) { .note__tab { display: none; } .note { left: 14px; right: 14px; top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); transform: none; width: auto; } }

/* ---------- Phone dock ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 57; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(242, 242, 242, .97); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .45s var(--ease); }
  .dock.is-on { transform: none; }
  .dock__book { flex: 1 1 auto; min-height: 46px; padding: 0 12px; letter-spacing: .16em; }
  .dock__call { display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 50%; flex: none; }
  .dock__note { min-height: 46px; padding: 0 6px; font: 700 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; flex: none; }
}

/* ---------- Popups ---------- */
.pop { position: fixed; z-index: 96; width: 332px; max-width: calc(100vw - 20px); background: #fff; color: var(--ink); padding: 16px 18px 18px; box-shadow: 0 22px 70px rgba(0, 0, 0, .34); }
.pop__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pop__title { font: 400 1.1rem/1.2 var(--disp); }
.pop__nav { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.pop__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pop__nav:disabled { opacity: .25; pointer-events: none; }
@media (hover: hover) { .pop__nav:hover { background: var(--paper); } }
.pop__hint { margin-top: 10px; min-height: 2.9em; line-height: 1.45; color: var(--mute); }
.pop__ok { width: 100%; margin-top: 10px; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__dow span { text-align: center; line-height: 2; color: var(--mute); }
.cal__grid { row-gap: 2px; min-height: 252px; align-content: start; }
.cal__d { height: 40px; line-height: 40px; text-align: center; position: relative; }
.cal__d:disabled { color: rgba(30, 30, 22, .28); cursor: default; }
.cal__d.is-in { background: rgba(137, 160, 176, .3); }
.cal__d.is-a, .cal__d.is-b { background: var(--ink); color: #fff; }
@media (hover: hover) { .cal__d:not(:disabled):not(.is-a):not(.is-b):hover { background: rgba(137, 160, 176, .3); } }
.step { display: grid; grid-template-columns: minmax(0, 1fr) 40px 34px 40px; align-items: center; gap: 6px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.step__l { line-height: 1.3; }
.step__l small { display: block; font-size: inherit; color: var(--mute); }
.step__b { width: 40px; height: 40px; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 19px; line-height: 1; }
.step__b:disabled { opacity: .25; cursor: default; }
.step output { text-align: center; font: 400 1.1rem/1 var(--disp); }
.ropts { display: grid; gap: 2px; max-height: min(336px, 46svh); overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 0 8px; }
.ropt { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 0 12px; padding: 5px 8px 5px 5px; text-align: left; border: 1px solid transparent; }
.ropt img, .ropt__open { grid-row: 1 / span 2; width: 52px; height: 42px; object-fit: cover; background: #dcdcd8; }
.ropt__open { background: none; border: 1px dashed var(--line); }
.ropt__n { line-height: 1.25; align-self: end; }
.ropt__m { line-height: 1.25; color: var(--mute); white-space: nowrap; align-self: start; }
.ropt[aria-selected="true"] { border-color: var(--terra); background: rgba(201, 74, 48, .06); }
.ropt:disabled { opacity: .42; cursor: default; }
@media (hover: hover) { .ropt:not(:disabled)[aria-selected="false"]:hover { background: var(--paper); } }
@media (max-width: 719px) {
  .pop { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-width: none; padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 60px rgba(0, 0, 0, .38); }
  .cal__grid { min-height: 230px; } .cal__d { height: 37px; line-height: 37px; }
}

/* ---------- Anfrage ---------- */
.ask { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.ask__veil { position: absolute; inset: 0; background: rgba(30, 30, 22, .62); }
.ask__box { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); width: min(1020px, 100%); max-height: min(720px, calc(100svh - 40px)); background: var(--paper); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); overflow: hidden; }
.ask__x { position: absolute; right: 10px; top: 10px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); }
.ask__fig { position: relative; min-height: 100%; background: var(--ink); color: #fff; overflow: hidden; }
.ask__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ask__fig figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; background: linear-gradient(180deg, rgba(30, 30, 22, 0), rgba(30, 30, 22, .78)); }
.ask__room { display: block; font: 400 var(--h3m)/1.1 var(--disp); }
.ask__meta { display: block; margin-top: 6px; }
.ask__form, .tick { padding: clamp(20px, 3vw, 34px) clamp(18px, 3vw, 36px); overflow-y: auto; overscroll-behavior: contain; min-height: 0; max-height: min(720px, calc(100svh - 40px)); }
.ask__h { font: 400 var(--h3m)/1.12 var(--disp); padding-right: 40px; }
.ask__rows { margin-top: 14px; border-top: 1px solid var(--line); }
.ask__row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.ask__k { color: var(--mute); }
.ask__row b { font-weight: 400; line-height: 1.35; }
.ask__row i { font-style: normal; color: var(--terra); white-space: nowrap; }
@media (hover: hover) { .ask__row:hover { background: #fff; } }
.ask__set { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); line-height: 1; white-space: nowrap; transition: background-color .2s, color .2s; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) { .chip[aria-pressed="false"]:hover { background: rgba(30, 30, 22, .08); } }
.ask__know { margin-top: 14px; padding: 12px 14px; background: #fff; border-left: 3px solid var(--stone); }
.ask__know p { line-height: 1.42; }
.ask__know p + p { margin-top: 6px; }
.ask__know b { font-weight: 400; color: var(--terra); }
.ask__who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 14px; }
.fld span { color: var(--mute); }
.fld input { width: 100%; margin-top: 5px; height: 46px; padding: 0 12px; border: 1px solid var(--line); background: #fff; font-size: 16px; border-radius: 0; -webkit-appearance: none; appearance: none; }
.fld input::placeholder { color: rgba(30, 30, 22, .42); }
.fld input:focus { outline: 2px solid var(--stone); outline-offset: 0; }
.ask__send { width: 100%; margin-top: 16px; min-height: 52px; }
.tick__lab { display: flex; align-items: center; gap: 10px; color: var(--terra); margin-bottom: 8px; }
.tick__ok { width: 18px; height: 18px; border-radius: 50%; background: var(--terra); position: relative; flex: none; }
.tick__ok::after { content: ''; position: absolute; left: 5px; top: 4.5px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.tick__rows { margin-top: 14px; border-top: 1px solid var(--line); }
.tick__rows div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tick__rows dt { color: var(--mute); line-height: 1.4; }
.tick__rows dd { line-height: 1.4; }
.tick__link { margin-top: 14px; }
.tick__link span { color: var(--mute); }
.tick__link code { display: block; margin-top: 5px; padding: 9px 11px; background: #fff; font: inherit; line-height: 1.4; overflow-wrap: anywhere; }
.tick__demo { margin-top: 12px; color: var(--terra); }
.tick__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 719px) {
  .ask { padding: 0; place-items: stretch; }
  .ask__box { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); width: 100%; max-height: none; height: 100svh; }
  .ask__fig { min-height: 0; height: clamp(96px, 17svh, 150px); }
  .ask__fig figcaption { padding: 30px 16px 10px; }
  .ask__meta { margin-top: 2px; }
  .ask__form, .tick { max-height: none; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
  .ask__who { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ask__row { grid-template-columns: 78px minmax(0, 1fr) auto; }
  .tick__rows div { grid-template-columns: 88px minmax(0, 1fr); }
}
.ask-open { overflow: hidden; }

/* ---------- Screens layer: every section fits one viewport ---------- */
:root {
  --scr-t: calc(var(--hdr-h) + clamp(12px, 3svh, 40px));
  --scr-b: clamp(16px, 3.2svh, 44px);
  --h2s: clamp(2rem, min(3.5vw, 5.6svh), 3.5rem);
}
@media (max-width: 899px) { :root { --scr-b: calc(86px + env(safe-area-inset-bottom)); } }
@media (max-width: 719px) { :root { --scr-t: calc(var(--hdr-h) + 12px); --h2s: clamp(1.3rem, 6.5vw, 1.7rem); } }
main > section[data-screen] { padding-top: var(--scr-t); padding-bottom: var(--scr-b); }
@media (min-width: 900px) { main > section[data-screen] { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; } }
.rooms__body, .faq__body, .rail, .ask__box, .room { min-width: 0; }

/* ---------- Type system layer ---------- */
:root { --h3m: clamp(1.45rem, min(2.1vw, 3.6svh), 2rem); --h3s: clamp(1.05rem, 1.35vw, 1.25rem); }
@media (max-width: 719px) { :root { --h3m: 1.35rem; --h3s: 1rem; } }
h1 em, h2 em, h3 em, .h2 em { font-style: normal; color: var(--accent); }

/* ---------- VCSLV credit (templates/credit) ---------- */
.vc-credit-row { margin-top: clamp(28px, 4vw, 44px); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  display: flex; justify-content: center; grid-column: 1 / -1; flex: 0 0 100%; width: 100%; box-sizing: border-box; }
.vc-credit { --vc-dot: #D2664A; display: inline-flex; align-items: center; gap: .7em; min-height: 44px; padding: 0 6px; color: inherit; text-decoration: none; font-size: 12px; line-height: 1; letter-spacing: .04em; opacity: .72; transition: opacity .4s ease; }
.vc-credit--light { --vc-dot: #A8452F; }
.vc-credit__mark { display: block; height: .92em; width: auto; overflow: visible; }
.vc-credit__dot { fill: var(--vc-dot); transform-box: fill-box; transform-origin: center; transition: transform .8s cubic-bezier(.2, .9, .25, 1.35) .15s, filter .4s ease; }
.vc-credit__line { padding-left: .7em; border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.vc-credit.is-arm .vc-credit__dot { transform: scale(0); }
.vc-credit.is-arm.is-in .vc-credit__dot { transform: scale(1); }
.vc-credit:hover, .vc-credit:focus-visible { opacity: 1; }
.vc-credit:hover .vc-credit__dot, .vc-credit:focus-visible .vc-credit__dot { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--vc-dot) 80%, transparent)); }
.vc-credit:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; border-radius: 4px; }
@media (max-width: 520px) {
  .vc-credit { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding: 10px 6px; }
  .vc-credit__line { flex-basis: 100%; text-align: center; padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .vc-credit.is-arm .vc-credit__dot { transform: none; transition: none; } }

@media (max-width: 389px) { .stay__nn { display: none; } }
