/* ==========================================================================
   Paulis Hütte – style.css
   Mobile-first. Tokens → base → components → sections → motion states.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-normal.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben – "Schnee & Schiefer": kühles Weiß, Schiefergrau-Blau (Dach, Abendhimmel) für Schrift und Aktionen,
     Orange nur als Licht (Fenster im Logo, Glühen im Grundriss) */
  --schnee: #F4F5F3;        /* page */
  --nebel: #E7EAEA;         /* alternating sections */
  --weiss: #FFFFFF;         /* cards, form */
  --linie: #D3D8DA;         /* hairlines */
  --linie-2: #A9B2B7;
  --schiefer: #22303C;      /* brand, buttons, headings */
  --schiefer-hell: #2F4252; /* hover */
  --schiefer-tief: #18222C; /* dark sections */
  --schiefer-nacht: #111921;/* footer */
  --licht: #E8873F;         /* the lit window */
  --licht-hell: #F2B27C;
  --licht-text: #A2501F;    /* orange text on light (to-do markers) */
  --holz: #8B5E3C;
  --gletscher: #3F7A93;     /* focus on light */
  --gletscher-hell: #8DC0D5;/* focus on dark */
  --ink: #161D24;
  --ink-2: #4A545D;
  --on-dark: #EEF2F4;
  --on-dark-2: #AEB9C2;

  /* Typo */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-hero: clamp(2.7rem, 1.2rem + 4.6vw, 5.4rem);
  --fs-h1: clamp(2.5rem, 1.55rem + 3.3vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.2vw, 3.4rem);
  --fs-h3: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  --fs-lead: clamp(1.15rem, 1.05rem + .4vw, 1.375rem);
  --fs-body: clamp(1.0625rem, 1.02rem + .2vw, 1.125rem);
  --fs-small: 0.9rem;

  /* Layout */
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --section: clamp(4.5rem, 9vw, 8.5rem);
  --maxw: 1320px;
  --radius: 6px;
  --radius-sm: 4px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --shadow: 0 1px 2px rgba(22, 31, 40, .06), 0 14px 40px -18px rgba(22, 31, 40, .28);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--schnee);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--schiefer); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gletscher); outline-offset: 3px; border-radius: 3px; }
.inquiry :focus-visible, .inside :focus-visible, .footer :focus-visible, .cta :focus-visible { outline-color: var(--gletscher-hell); }
section[tabindex="-1"]:focus, main:focus { outline: none; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section); }
/* every page except the home page: the first section starts below the fixed header, the title comes soon */
main > .page-first { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.todo {
  color: var(--licht-text);
  border: 1px dashed rgba(163, 78, 31, .45);
  border-radius: 6px;
  padding: .12em .45em;
  font-weight: 500;
  font-size: .9em;
}
.inquiry .todo { color: var(--licht-hell); border-color: rgba(242, 178, 124, .45); }

/* ---------- Typography ---------- */
/* h1 = the title of a page (each chapter of the hut is its own page) */
.h1 {
  font-family: var(--serif);
  font-size: var(--fs-h1);
  font-weight: 430;
  line-height: 1.02;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 440;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }


/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .8rem 1.4rem;
  border-radius: var(--radius-sm); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn--primary, .btn--dark { --btn-bg: var(--schiefer); --btn-fg: #fff; }
@media (hover: hover) { .btn--primary:hover, .btn--dark:hover { --btn-bg: var(--schiefer-hell); } }
/* on photos and dark sections the main button turns white */
.header:not(.is-solid) .btn--primary, .inquiry__text .btn--primary, .cta .btn--primary { --btn-bg: #fff; --btn-fg: var(--schiefer); }
@media (hover: hover) { .header:not(.is-solid) .btn--primary:hover, .inquiry__text .btn--primary:hover, .cta .btn--primary:hover { --btn-bg: var(--nebel); } }
.btn--ghost { --btn-bd: rgba(22, 29, 36, .35); --btn-fg: var(--ink); }
@media (hover: hover) { .btn--ghost:hover { --btn-bd: var(--ink); --btn-bg: rgba(22, 29, 36, .05); } }
.btn--ghost-light { --btn-bd: rgba(238, 242, 244, .5); --btn-fg: var(--schnee); background: rgba(24, 34, 44, .28); }
@media (hover: hover) { .btn--ghost-light:hover { --btn-bd: var(--schnee); background: rgba(238, 242, 244, .12); } }
.btn--sm { min-height: 42px; padding: .55rem 1.15rem; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Touch: no grey flash, no accidental double-tap zoom on controls, a clear press instead ---------- */
a, button, summary, label, [role="button"] { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, select, input, textarea { touch-action: manipulation; }
@media (hover: none) {
  .btn, .actionbar a, .seasons__tab, .plan__floor, .nav-toggle, .route__map-link { transition: transform .15s ease-out, background-color .3s var(--ease-out); }
  .btn:active, .actionbar a:active, .seasons__tab:active, .plan__floor:active, .plan__zoom-btn:active, .nav-toggle:active, .route__map-link:active { transform: scale(.96); }
  .plan__room:active { background: rgba(34, 48, 60, .06); }
  .nav__list a:active, .footer a:active { opacity: .7; }
  .video__btn:active .video__play { transform: scale(.94); }
}

/* ==========================================================================
   INTRO "Über den Wolken" – home page, first visit per session (controller: seiten/_intro-skript.html)
   The logo forms in a bright cloud and glides into the header while the cloud clears.
   ========================================================================== */
.intro { display: none; }
.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 150; overflow: hidden;
  background: #EEF2F4; -webkit-tap-highlight-color: transparent;
}
.intro-leaving .intro { background: transparent; pointer-events: none; } /* from here the fog canvas alone covers the page */
.intro__fog { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; max-width: none; display: block; opacity: 0; }
.intro__logo {
  --w: clamp(250px, 74vw, 620px);
  position: fixed; left: 50%; top: 46%; width: var(--w); height: calc(var(--w) * .21202); /* = the logo's 643.34 × 136.40 */
  transform: translate(-50%, -50%); transform-origin: 0 0; color: var(--schiefer);
}
.intro__part { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.intro__glow { /* lamplight in the fog, centred on the window by the controller */
  position: absolute; left: 9.2%; top: 44%; width: 58%; height: 273.56%; border-radius: 50%; opacity: 0;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 216, 160, .95), rgba(247, 168, 104, .5) 28%, rgba(224, 122, 63, .16) 56%, rgba(224, 122, 63, 0));
}
.intro__skip {
  position: absolute; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .55); color: var(--schiefer); border: 1px solid rgba(34, 48, 60, .22);
  border-radius: var(--radius-sm); padding: .6rem 1.1rem; font-size: .85rem; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .3s;
}
@media (hover: hover) { .intro__skip:hover { background: rgba(255, 255, 255, .85); } }
.intro-leaving .intro__skip { opacity: 0; }
/* the header logo waits for the intro logo to land; the altitude badge follows */
.intro-on:not(.intro-docked) .header .brand { visibility: hidden; }
.intro-on .brand__alt { opacity: 0; }

/* ==========================================================================
   HEADER & NAV
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--schnee);
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out), transform .45s var(--ease-out);
}
.header::before {
  content: ""; position: absolute; inset: 0 0 -40px; pointer-events: none;
  background: linear-gradient(rgba(14, 21, 28, .6), rgba(14, 21, 28, 0));
  transition: opacity .4s;
}
.header.is-solid {
  color: var(--ink);
  background: rgba(238, 242, 244, .9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(22, 29, 36, .08);
}
.header.is-solid::before { opacity: 0; }
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  position: relative; height: 100%;
  width: min(100% - 2 * var(--gutter), 1480px); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; margin-right: auto;
  position: relative; z-index: 2;
}
.brand__logo { display: block; height: 34px; width: auto; }
@media (min-width: 1080px) { .brand__logo { height: 42px; } }
@media (max-width: 400px) { .brand__alt { display: none; } }
.brand__alt {
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  padding: .15rem .5rem; border: 1px solid currentColor; border-radius: 3px; opacity: .75; white-space: nowrap;
  transition: opacity .6s .1s;
}
.nav-open .brand__alt { display: none; }
.header__cta { display: none; }

.nav-toggle {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: .6rem;
  background: none; border: 0; padding: .6rem .2rem; font-weight: 600; font-size: .95rem;
}
.nav-toggle__bars { position: relative; width: 22px; height: 12px; }
.nav-toggle__bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav-toggle__bars span:first-child { top: 0; }
.nav-toggle__bars span:last-child { top: 10px; }
.nav-open .nav-toggle__bars span:first-child { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars span:last-child { top: 5px; transform: rotate(-45deg); }

.nav {
  position: fixed; inset: 0; z-index: 1;
  background: var(--schiefer-tief);
  color: var(--schnee);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility 0s .45s;
}
.nav-open .nav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease-out); }
.nav-open .header { color: var(--schnee); background: transparent; box-shadow: none; backdrop-filter: none; }
.nav__list { display: grid; gap: .25rem; }
.nav__list a {
  display: block; padding: .35rem 0; text-decoration: none;
  font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); font-weight: 420; letter-spacing: -0.02em;
}
@media (hover: hover) { .nav__list a:hover { color: #fff; } }
/* menu on phones: a small lit window marks the page the reader is on */
.nav__list a[aria-current] { color: #fff; display: flex; align-items: center; gap: .9rem; }
.nav__list a[aria-current]::after { content: ""; width: 9px; height: 9px; border-radius: 1px; flex: none; background: var(--licht); box-shadow: 0 0 0 4px rgba(232, 135, 63, .22); }
.nav__contact a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; font-size: 1.1rem; }

@media (min-width: 900px) { .header__cta { display: inline-flex; } }
@media (min-width: 1080px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: none; }
  .nav { position: static; inset: auto; background: none; padding: 0; opacity: 1; visibility: visible; flex-direction: row; color: inherit; }
  .nav__list { display: flex; gap: clamp(1rem, 2vw, 2rem); }
  .nav__list a {
    font-family: var(--sans); font-size: .95rem; font-weight: 550; letter-spacing: .01em; padding: .4rem 0;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
    transition: background-size .45s var(--ease-out);
  }
  .nav__list a:hover, .nav__list a[aria-current] { color: inherit; background-size: 100% 1.5px; }
  .nav__list a[aria-current] { display: block; }
  .nav__list a[aria-current]::after { display: none; }
  .header__cta[aria-current] { box-shadow: 0 0 0 3px rgba(34, 48, 60, .18); }
  .nav__mobile-only, .nav__contact { display: none; }
}
@media (min-width: 1080px) and (max-width: 1259px) { .brand__alt { display: none; } .nav__list { gap: 1.1rem; } }

/* ==========================================================================
   SCROLL PROGRESS – thin line at the top
   ========================================================================== */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 95; height: calc(2px + env(safe-area-inset-top, 0px)); pointer-events: none; transition: transform .45s var(--ease-out); }
/* header visible → the line sits on its lower edge */
.progress.is-low { transform: translateY(var(--header-h)); }
.progress__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--schiefer); transform-origin: 0 50%; transform: scaleX(0); }
.intro-on .progress, .nav-open .progress { display: none; }
html:not(.js) .progress { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--ink); overflow: hidden; isolation: isolate; background: var(--schnee);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 42%; transform-origin: 50% 60%; }
/* "Schnee & Schiefer": the sunny photo stays bright; the type stands on the snow in the foreground,
   which a soft veil of snow colour evens out */
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(244, 245, 243, .95) 0%, rgba(244, 245, 243, .82) 17%, rgba(244, 245, 243, .4) 33%, rgba(244, 245, 243, 0) 47%),
    radial-gradient(70% 55% at 0% 100%, rgba(244, 245, 243, .6), rgba(244, 245, 243, 0) 75%);
}
.hero__content {
  width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto;
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem); padding-top: calc(var(--header-h) + 2rem);
}
.hero__place {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1rem; padding: .3rem .7rem .3rem .55rem;
  border-radius: 999px; background: rgba(244, 245, 243, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em; color: var(--schiefer);
}
.hero__place .icon { width: 17px; height: 17px; color: var(--licht-text); }
.hero__title {
  font-family: var(--serif); font-size: var(--fs-hero); font-weight: 430; line-height: 1; letter-spacing: -0.022em;
  color: var(--schiefer); margin-bottom: 1.4rem;
}
.hero__line { display: block; }
.hero__lead { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); margin-bottom: 1.7rem; }
@media (min-width: 1100px) and (min-aspect-ratio: 4/3) { .hero__lead { max-width: 64ch; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .btn--ghost { background: rgba(244, 245, 243, .6); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 1.5rem; display: none; align-items: center; gap: .8rem;
  font-size: .85rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; color: var(--ink-2);
}
.hero__scroll-line { width: 1px; height: 54px; background: linear-gradient(rgba(34, 48, 60, .5), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--schiefer); animation: scroll-cue 2.2s var(--ease-io) infinite; }
@keyframes scroll-cue { to { top: 110%; } }
@media (min-width: 760px) { .hero__scroll { display: inline-flex; } }
/* low landscape screens (laptops): the snow veil reaches higher, the headline is a little smaller */
@media (min-aspect-ratio: 4/3) and (max-height: 820px) {
  .hero__title { font-size: min(var(--fs-hero), 9.6vh); }
  .hero__shade {
    background:
      linear-gradient(to top, rgba(244, 245, 243, .95) 0%, rgba(244, 245, 243, .84) 22%, rgba(244, 245, 243, .45) 42%, rgba(244, 245, 243, 0) 58%),
      radial-gradient(70% 60% at 0% 100%, rgba(244, 245, 243, .6), rgba(244, 245, 243, 0) 75%);
  }
}
/* Portrait phones and tablets: the upright photo on top, melting into snow; the text follows below it */
@media (max-aspect-ratio: 4/5) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .hero__media { position: relative; inset: auto; z-index: 0; flex: none; height: 56svh; }
  .hero__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(rgba(244, 245, 243, 0), var(--schnee) 92%); }
  .hero__img { object-position: 45% 50%; }
  .hero__shade { display: none; }
  .hero__content { position: relative; z-index: 1; width: auto; margin: -4.5rem var(--gutter) 0; padding-top: 0; }
}
@media (max-aspect-ratio: 4/5) and (max-height: 760px) {
  .hero__media { height: 46svh; }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 2.7rem); margin-bottom: 1.1rem; }
  .hero__lead { font-size: 1rem; margin-bottom: 1.4rem; }
}
@media (max-width: 899px) {
  .hero__content { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }
  .hero__actions .btn--ghost { display: none; }
}
@media (max-width: 559px) { .hero__title { font-size: clamp(2.3rem, 10.6vw, 2.7rem); } }   /* "Über den Wolken," stays on one line */

/* ==========================================================================
   FACTS
   ========================================================================== */
.facts { background: var(--schnee); border-bottom: 1px solid var(--linie); }
.facts__list {
  width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.fact { padding: 2.4rem 1rem 2.2rem 0; border-top: 1px solid rgba(22, 29, 36, .12); }
.fact:nth-child(odd) { padding-right: 1.25rem; }
.fact:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid rgba(22, 29, 36, .12); }
.fact:nth-child(-n+2) { border-top: 0; }
.fact__num {
  display: flex; align-items: baseline; gap: .15em;
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem); line-height: .95; letter-spacing: -0.04em;
  color: var(--schiefer); font-variant-numeric: lining-nums tabular-nums;
}
.fact__unit { font-family: var(--sans); font-size: .34em; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.fact__label { display: block; margin-top: .9rem; font-size: .93rem; line-height: 1.45; color: var(--ink-2); max-width: 22ch; }
@media (min-width: 900px) {
  .facts__list { grid-template-columns: repeat(4, 1fr); }
  .fact, .fact:nth-child(odd), .fact:nth-child(even) { border-top: 0; padding: 3rem 1.6rem 2.8rem; border-left: 1px solid rgba(22, 29, 36, .12); }
  .fact:first-child { border-left: 0; padding-left: 0; }
}

/* ==========================================================================
   DIE HÜTTE
   ========================================================================== */
.about__grid { display: grid; gap: 3.5rem; align-items: start; }
.about__text p:not(.lead) { color: var(--ink-2); max-width: 58ch; }
.about__text .h2 { margin-bottom: 1.6rem; max-width: 17ch; }
.about__text .lead { max-width: 52ch; }
.quote { margin: 2.6rem 0 0; padding: 1.8rem 0 0 1.6rem; border-left: 2px solid var(--schiefer); position: relative; }
.quote blockquote { margin: 0; }
.quote p { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--schiefer); margin: 0 0 1rem; max-width: 26ch; }
.quote figcaption { display: flex; flex-direction: column; font-size: .9rem; }
.quote__name { font-weight: 650; }
.quote__role { color: var(--ink-2); }

.about__media { display: grid; grid-template-columns: .8fr 1.78fr; gap: clamp(.6rem, 1.2vw, 1rem); align-items: start; }
.about__img { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--nebel); }
.about__img img, .cover { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.about__img--tall { aspect-ratio: 4 / 5; }
.about__img--wide { aspect-ratio: 16 / 9; }
@media (min-width: 960px) {
  .about__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); }
  .about__text { padding-top: 2rem; position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ==========================================================================
   AUSSTATTUNG
   ========================================================================== */
.equip { background: var(--nebel); }
.equip__head { display: grid; gap: 1.2rem 4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.equip__head .h2 { max-width: 16ch; }
.equip__head .lead { color: var(--ink-2); max-width: 40ch; margin: 0; }
.equip__grid { display: grid; gap: 2.2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.equip__group h3 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 450; letter-spacing: -0.01em; color: var(--schiefer);
  margin-bottom: .6rem; padding-bottom: .7rem; border-bottom: 1.5px solid rgba(34, 48, 60, .18);
}
.equip__group li { display: flex; gap: .75rem; align-items: flex-start; padding: .4rem 0; line-height: 1.45; }
.equip__group .icon { color: var(--schiefer); margin-top: .12em; width: 1.2em; height: 1.2em; }
@media (min-width: 960px) {
  .equip__head { grid-template-columns: auto 1fr; align-items: end; }
  .equip__head .lead { justify-self: end; }
}
@media (max-width: 599px) {
  .equip__grid { gap: 1.8rem; }
  .equip__group li { padding: .28rem 0; font-size: .98rem; }
}

/* Gut zu wissen – lives next to the inquiry form */
.gtk { padding-top: 1.8rem; border-top: 1px solid rgba(238, 242, 244, .16); }
.gtk h2 { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 420; color: var(--schnee); margin-bottom: 1.1rem; }
.gtk h2 .icon { color: var(--on-dark-2); }
.gtk dl { display: grid; gap: .9rem 2rem; margin: 0; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.gtk dt { font-weight: 650; font-size: .92rem; color: var(--schnee); }
.gtk dd { margin: .15rem 0 0; color: var(--on-dark-2); font-size: .93rem; line-height: 1.5; }
.gtk dd.todo { display: inline-block; }

/* ==========================================================================
   INNEN – photo grid (the page scrolls as usual); a click opens the large view (main.js)
   ========================================================================== */
.inside { background: var(--schiefer-tief); color: var(--on-dark); }
.inside__head { display: grid; gap: 1.2rem 4rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.inside__head .h1 { max-width: 15ch; margin: 0; }
.inside__head .lead { color: var(--on-dark-2); max-width: 46ch; margin: 0; }
.gallery { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); }
.shot { position: relative; aspect-ratio: 4 / 3; min-width: 0; }
.shot figure { position: absolute; inset: 0; margin: 0; }
.shot__link {
  position: absolute; inset: 0; display: block; overflow: hidden; border-radius: var(--radius);
  background: var(--schiefer-hell); cursor: zoom-in; color: #fff;
}
.shot__link picture, .shot__link img { display: block; width: 100%; height: 100%; }
.shot__link img { object-fit: cover; transition: transform 1s var(--ease-out); }
@media (hover: hover) { .shot__link:hover img { transform: scale(1.035); } }
/* the name sits on the photo, on a soft shade at the bottom; the full text is in the large view */
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.6rem 1rem .85rem; pointer-events: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(rgba(14, 21, 28, 0), rgba(14, 21, 28, .72));
}
.shot figcaption strong { display: block; font-family: var(--serif); font-weight: 430; font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.01em; color: #fff; }
.shot figcaption span { display: none; }
.shot__zoom {
  position: absolute; top: .7rem; right: .7rem; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(14, 21, 28, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.9); transition: opacity .25s, transform .25s var(--ease-out);
}
.shot__zoom .icon { width: 17px; height: 17px; }
@media (hover: hover) { .shot__link:hover .shot__zoom, .shot__link:focus-visible .shot__zoom { opacity: 1; transform: none; } }
.shot__link:focus-visible { outline-offset: -3px; }
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 31vw, 300px); grid-auto-flow: dense; }
  .shot { aspect-ratio: auto; }
  .shot--feature { grid-column: span 2; grid-row: span 2; }
  .shot--wide { grid-column: span 2; }
  .shot figcaption strong { font-size: 1.25rem; }
  .shot--feature figcaption strong { font-size: 1.55rem; }
}
@media (min-width: 1000px) {
  .inside__head { grid-template-columns: auto 1fr; align-items: end; }
  .inside__head .lead { justify-self: end; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 19vw, 300px); gap: 1rem; }
  .shot figcaption { padding: 3rem 1.25rem 1rem; }
}

/* large view: one photo at a time, arrows, swipe, Esc */
.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(11, 16, 21); color: var(--on-dark); overflow: hidden;
}
.lightbox::backdrop { background: rgba(11, 16, 21, .6); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: lb-in .35s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
/* the photo is centred in the free area with insets + auto margins: it keeps its proportions
   and never grows past the area, in every browser */
.lightbox__media {
  --pt: clamp(3.5rem, 7vh, 4.5rem); --px: clamp(4.25rem, 6vw, 5.5rem); --pb: .75rem;
  position: relative; min-height: 0; touch-action: pan-y; user-select: none;
}
.lightbox__media picture { display: contents; }
.lightbox__media img {
  position: absolute; top: var(--pt); bottom: var(--pb); left: var(--px); right: var(--px); margin: auto;
  width: auto; height: auto; max-width: calc(100% - 2 * var(--px)); max-height: calc(100% - var(--pt) - var(--pb));
  border-radius: var(--radius-sm); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  transition: opacity .3s, transform .35s var(--ease-out);
}
.lightbox__media.is-out img { opacity: 0; transform: translateX(calc(var(--dir, 1) * -24px)); }
.lightbox__bar {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem;
  width: min(100% - 2 * var(--gutter), 1100px); margin: 0 auto; padding: .4rem 0 calc(1.4rem + env(safe-area-inset-bottom, 0px));
}
.lightbox__cap { margin: 0; display: grid; gap: .2rem; max-width: 62ch; }
.lightbox__cap strong { font-family: var(--serif); font-weight: 430; font-size: 1.3rem; color: #fff; }
.lightbox__cap span { color: var(--on-dark-2); font-size: .95rem; line-height: 1.5; }
.lightbox__count { margin: 0; flex: none; font-size: .9rem; font-weight: 600; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.lightbox__btn, .lightbox__close {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(238, 242, 244, .16); background: rgba(17, 25, 33, .62); color: #fff; transition: background-color .2s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (hover: hover) { .lightbox__btn:hover, .lightbox__close:hover { background: rgba(47, 66, 82, .9); } }
.lightbox__btn .icon, .lightbox__close .icon { width: 24px; height: 24px; }
/* arrows: in the middle of the photo area (the caption bar below is left out) */
.lightbox__prev, .lightbox__next { top: calc(50% - 2.5rem); transform: translateY(-50%); }
.lightbox__prev { left: clamp(.5rem, 1.5vw, 1.5rem); }
.lightbox__next { right: clamp(.5rem, 1.5vw, 1.5rem); }
.lightbox__close { top: clamp(.5rem, 1.5vw, 1rem); right: clamp(.5rem, 1.5vw, 1rem); }
.lightbox :focus-visible { outline-color: var(--gletscher-hell); }
.lightbox:focus { outline: none; }
html.lightbox-open { overflow: hidden; }
/* phones: the photo uses the full width, the arrows sit on its edges */
@media (max-width: 599px) {
  .lightbox__media { --px: 0px; }
  .lightbox__media img { border-radius: 0; }
  .lightbox__btn { width: 42px; height: 42px; }
  .lightbox__prev { left: .5rem; }
  .lightbox__next { right: .5rem; }
}

/* ==========================================================================
   GRUNDRISS – room list on the left, 3D model on the right (grundriss.js)
   ========================================================================== */
.plan { background: var(--schnee); }
.plan__head { display: grid; gap: 1.2rem 4rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.plan__head .h1 { max-width: 15ch; margin: 0; }
.plan__head .lead { color: var(--ink-2); max-width: 44ch; margin: 0; }
.plan__grid { display: grid; gap: 1.25rem; }
.plan__nav { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
.plan__nav > * { min-width: 0; }

/* viewer */
.plan__stage {
  position: relative; aspect-ratio: 1 / 1; min-height: 300px; overflow: hidden;
  border-radius: var(--radius); background: linear-gradient(180deg, #EEF1F2, #E2E7E9);
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.plan__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; -webkit-tap-highlight-color: transparent; }
.plan__stage.is-dragging .plan__canvas { cursor: grabbing; }
.plan__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem .75rem; }
.js .plan__still { display: none; }
.js .plan__stage.is-2d .plan__still { display: block; }
.plan__hint {
  position: absolute; z-index: 3; left: .75rem; bottom: .8rem; max-width: calc(100% - 10.5rem); margin: 0;
  padding: .3rem .55rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .9);
  font-size: .78rem; font-weight: 600; line-height: 1.35; color: var(--ink-2);
  box-shadow: 0 6px 16px -12px rgba(22, 31, 40, .5);
  opacity: 0; transition: opacity .6s, background-color .3s, color .3s; pointer-events: none;
}
.plan__stage.is-3d .plan__hint { opacity: 1; }
.plan__stage.is-3d .plan__hint.is-hidden { opacity: 0; }
.plan__hint.is-flash { background: var(--schiefer); color: #fff; }
/* buttons on the model: whole floor, − and + (bottom right); the first two only when there is something to undo */
.plan__zoom {
  position: absolute; z-index: 3; right: .75rem; bottom: .75rem; display: none; gap: 2px; padding: 3px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: 0 8px 22px -14px rgba(22, 31, 40, .45);
}
.plan__stage.is-3d .plan__zoom { display: inline-flex; }
.plan__zoom-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--schiefer); transition: background-color .2s, color .2s, transform .15s ease-out;
}
@media (hover: hover) { .plan__zoom-btn:not([aria-disabled="true"]):hover { background: var(--nebel); } }
.plan__zoom-btn .icon { width: 20px; height: 20px; }
.plan__zoom-btn[aria-disabled="true"] { color: var(--linie-2); cursor: default; }
.plan__stage.is-zoomed { touch-action: none; }   /* zoomed in: one finger moves the model, two fingers zoom */
@media (pointer: coarse) { .plan__zoom-btn { width: 42px; height: 42px; } }
/* the name of the selected room, above its far wall; the small tip points down to the room */
.plan__labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.plan__label {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: .45rem; visibility: hidden;
  padding: .32rem .6rem; border-radius: var(--radius-sm); white-space: nowrap;
  background: var(--schiefer); color: #fff; font-size: .8rem; font-weight: 650; line-height: 1.25;
  box-shadow: 0 10px 24px -12px rgba(17, 25, 33, .7);
  will-change: transform, opacity;
}
.plan__label::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 1px; background: var(--licht); box-shadow: 0 0 0 3px rgba(232, 135, 63, .32); }
.plan__label::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: var(--schiefer); transform: rotate(45deg); border-radius: 0 0 2px 0; }
.plan__label-area { font-weight: 500; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }

/* floor switch: a segmented control (the floor is the context, the room the selection) */
.plan__floors { display: none; }
.js .plan:not(.no-module) .plan__floors {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px;
  background: var(--nebel); border-radius: var(--radius);
}
.plan__floor {
  min-height: 40px; padding: .4rem .8rem; border: 0; border-radius: var(--radius-sm); background: transparent;
  font-size: .92rem; font-weight: 600; color: var(--ink-2); transition: background-color .25s, color .25s, box-shadow .25s;
}
@media (hover: hover) { .plan__floor[aria-pressed="false"]:hover { color: var(--ink); background: rgba(255, 255, 255, .55); } }
.plan__floor[aria-pressed="true"] { background: var(--weiss); color: var(--schiefer); box-shadow: 0 1px 2px rgba(22, 31, 40, .12), 0 4px 10px -6px rgba(22, 31, 40, .3); }

/* room list: "Gesamtansicht" first, then the rooms with their areas */
.plan__list-title { font-family: var(--sans); font-size: 1rem; font-weight: 650; margin: 0 0 .4rem; }
.plan__list { display: grid; gap: 2px; }
.plan__all { display: none; }
.js .plan:not(.no-module) .plan__all { display: block; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--linie); }
.plan__room {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; min-height: 44px; padding: .55rem .75rem; border: 0; border-radius: var(--radius-sm); background: none; text-align: left;
  font-weight: 600; color: var(--ink); transition: background-color .2s, color .2s;
}
.plan__room:focus-visible { outline-offset: -3px; }   /* inside: the chip row scrolls and would cut it off */
.plan__room-name { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; }
.plan__room-name .icon { flex: none; width: 18px; height: 18px; color: var(--ink-2); transition: color .2s; }
.plan__room-area { flex: none; font-size: .86rem; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .2s; }
.plan__room-text { margin: .1rem .75rem .9rem; font-size: .95rem; color: var(--ink-2); }
/* with JavaScript the card replaces the texts in the list – decided at first paint, so nothing shifts when grundriss.js arrives */
.js .plan:not(.no-module) .plan__room-text, .js .plan:not(.no-module) .plan__list-title { display: none; }
.js .plan:not(.is-interactive):not(.no-module) [data-floor-list="ug"] { display: none; }
html:not(.js) .plan__list li, .plan.no-module .plan__list li { border-bottom: 1px solid var(--linie); }
html:not(.js) .plan__floorlist + .plan__floorlist, .plan.no-module .plan__floorlist + .plan__floorlist { margin-top: 1.4rem; }
html:not(.js) .plan__card, .plan.no-module .plan__card { display: none; }
@media (hover: hover) {
  .is-interactive .plan__room[aria-pressed="false"]:hover, .is-interactive .plan__room.is-hover[aria-pressed="false"] { background: rgba(34, 48, 60, .065); }
}
.plan__room[aria-pressed="true"] { background: var(--schiefer); color: #fff; }
.plan__room[aria-pressed="true"] .plan__room-area, .plan__room[aria-pressed="true"] .icon { color: var(--on-dark-2); }
.plan__room:not(.plan__room--all)[aria-pressed="true"] .plan__room-name::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 1px; background: var(--licht); box-shadow: 0 0 0 3px rgba(232, 135, 63, .3);
}

/* info card: the selected room (text and photos) or the whole floor */
.plan__card { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.15rem 1.2rem 1.25rem; }
.plan__card-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 460; line-height: 1.15; letter-spacing: -0.01em; color: var(--schiefer); }
.plan__card-meta { margin: .3rem 0 0; font-size: .88rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.plan__card-text { margin: .7rem 0 0; font-size: 1rem; }
.plan__card-photos { display: grid; gap: .5rem; margin-top: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan__photo { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--nebel); }
.plan__card-photos[data-count="1"] .plan__photo, .plan__card-photos[data-count="3"] .plan__photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.plan__photo img { width: 100%; height: 100%; object-fit: cover; }
/* a new card fades in – so the change is noticed */
@keyframes plan-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.plan__card.is-swapped > * { animation: plan-card-in .45s var(--ease-out) both; }
.plan__card.is-swapped > :nth-child(2) { animation-delay: .04s; }
.plan__card.is-swapped > :nth-child(3) { animation-delay: .08s; }
.plan__card.is-swapped > :nth-child(4) { animation-delay: .12s; }

/* phones and tablets: model first, then floor switch, the rooms as chips, the card */
@media (max-width: 999px) {
  .plan__stage { order: -1; }
  .js .plan:not(.no-module) .plan__nav { display: contents; }
  .js .plan:not(.no-module) .plan__floors { order: 1; }
  .js .plan:not(.no-module) .plan__floorlist { order: 2; }
  .js .plan:not(.no-module) .plan__card { order: 3; }
  .js .plan:not(.no-module) .plan__list { display: flex; flex-wrap: wrap; gap: .5rem; }
  .js .plan:not(.no-module) .plan__all { padding: 0 .5rem 0 0; margin: 0; border-bottom: 0; border-right: 1px solid var(--linie); }
  .js .plan:not(.no-module) .plan__room {
    width: auto; min-height: 44px; padding: .5rem .85rem; gap: .6rem;
    border: 1px solid var(--linie); background: var(--weiss);
    font-size: .95rem; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s, transform .15s ease-out;
  }
  .js .plan:not(.no-module) .plan__room--all .plan__room-area { display: none; }
  .js .plan:not(.no-module) .plan__room-area { font-size: .8rem; }
  .js .plan:not(.no-module) .plan__room[aria-pressed="true"] { background: var(--schiefer); border-color: var(--schiefer); }
}
@media (max-width: 999px) and (hover: none) {
  .js .plan:not(.no-module) .plan__room:active { transform: scale(.96); background: var(--nebel); }
  .js .plan:not(.no-module) .plan__room[aria-pressed="true"]:active { background: var(--schiefer-hell); }
}
@media (max-width: 559px) {
  .plan__hint { left: .5rem; bottom: .55rem; max-width: calc(100% - 9.5rem); font-size: .72rem; }
  .plan__zoom { right: .5rem; bottom: .5rem; }
  .plan__label { font-size: .76rem; padding: .28rem .5rem; }
  .js .plan:not(.no-module) .plan__grid { gap: .9rem; }
  /* one row that scrolls sideways, edge to edge, fading out at the screen edges */
  .js .plan:not(.no-module) .plan__list {
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .js .plan:not(.no-module) .plan__list::-webkit-scrollbar { display: none; }
  .js .plan:not(.no-module) .plan__list li { flex: none; scroll-snap-align: start; }
}
@media (min-width: 560px) and (max-width: 999px) { .plan__stage { aspect-ratio: 5 / 4; } }
/* desktop: list left, model right – the model stays in view while the list and the card scroll past */
@media (min-width: 1000px) {
  .plan__head { grid-template-columns: auto 1fr; align-items: end; }
  .plan__head .lead { justify-self: end; }
  .plan__grid { grid-template-columns: clamp(280px, 25vw, 340px) minmax(0, 1fr); gap: clamp(1.75rem, 3vw, 3rem); align-items: start; }
  .plan__stage {
    position: sticky; top: calc(var(--header-h) + 1.25rem); aspect-ratio: auto;
    height: clamp(460px, calc(100vh - var(--header-h) - 3rem), 760px);
  }
  @supports (height: 100svh) { .plan__stage { height: clamp(460px, calc(100svh - var(--header-h) - 3rem), 760px); } }
}
/* laptops and larger: three columns – choice | model | room – and the whole panel fits the screen,
   so nothing is cut off; main.js lets the page settle on it when scrolling stops close by */
@media (min-width: 1200px) and (min-height: 540px) {
  .js .plan:not(.no-module) .container { --maxw: 1480px; }
  .js .plan:not(.no-module) .plan__grid {
    --plan-h: clamp(500px, calc(100vh - var(--header-h) - 2.5rem), 780px);
    grid-template-columns: clamp(230px, 17vw, 270px) minmax(0, 1fr) clamp(280px, 22vw, 340px);
    grid-template-rows: auto minmax(0, 1fr);
    height: var(--plan-h); gap: 1rem clamp(1.25rem, 2vw, 2rem); align-items: stretch;
  }
  @supports (height: 100svh) { .js .plan:not(.no-module) .plan__grid { --plan-h: clamp(500px, calc(100svh - var(--header-h) - 2.5rem), 780px); } }
  .js .plan:not(.no-module) .plan__nav { display: contents; }
  .js .plan:not(.no-module) .plan__floors { grid-column: 1; grid-row: 1; }
  .js .plan:not(.no-module) .plan__floorlist { grid-column: 1; grid-row: 2; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .js .plan:not(.no-module) .plan__stage { grid-column: 2; grid-row: 1 / -1; position: relative; top: auto; height: auto; }
  .js .plan:not(.no-module) .plan__card {
    grid-column: 3; grid-row: 1 / -1; display: flex; flex-direction: column; min-height: 0;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  }
  /* the photos take the room that is left: the first one grows, further ones sit below as a row */
  .js .plan:not(.no-module) .plan__card-photos { flex: 1 1 auto; min-height: 150px; grid-template-rows: minmax(0, 1fr); grid-auto-rows: auto; }
  .js .plan:not(.no-module) .plan__card-photos .plan__photo:first-child { grid-column: 1 / -1; aspect-ratio: auto; min-height: 0; }
  .js .plan:not(.no-module) .plan__card-photos[data-count="2"] { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  .js .plan:not(.no-module) .plan__card-photos[data-count="2"] .plan__photo { grid-column: 1 / -1; aspect-ratio: auto; min-height: 0; }
  .js .plan:not(.no-module) .plan__card-photos[data-count="3"] .plan__photo:not(:first-child) { aspect-ratio: 4 / 3; }
}
/* low laptop screens: tighter rows, so the whole list stays in view */
@media (min-width: 1200px) and (min-height: 540px) and (max-height: 760px) {
  .js .plan:not(.no-module) .plan__room { min-height: 38px; padding-block: .4rem; }
  .js .plan:not(.no-module) .plan__floor { min-height: 36px; }
  .js .plan:not(.no-module) .plan__card { padding: 1rem 1.1rem 1.1rem; }
  .js .plan:not(.no-module) .plan__card-title { font-size: 1.35rem; }
  .js .plan:not(.no-module) .plan__card-text { font-size: .95rem; margin-top: .55rem; }
  .js .plan:not(.no-module) .plan__card-photos { margin-top: .8rem; }
}

/* ==========================================================================
   VIER JAHRESZEITEN
   ========================================================================== */
.seasons { position: relative; background: #D3DEE5; }
.seasons__sticky { position: relative; }
.seasons__stage { position: relative; height: 62vh; min-height: 380px; overflow: hidden; }
.seasons__scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 55%; }
.seasons__view { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease-out); }
.seasons__view.is-ready { opacity: 1; }
/* upright screens: the picture with the sky above the hut, standing on the bottom edge (as drawn by main.js) */
@media (max-aspect-ratio: 4/5) { .seasons__scene { object-position: 50% 100%; } }
.seasons__credit {
  position: absolute; z-index: 1; left: var(--gutter); bottom: 1rem; margin: 0;
  font-size: .75rem; font-weight: 600; color: rgba(238, 242, 244, .92); text-shadow: 0 1px 6px rgba(14, 21, 28, .55);
}
@media (max-width: 899px) { .js .seasons__credit { bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)); } }
.seasons__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.seasons__card {
  position: relative; z-index: 2;
  width: min(100% - 2 * var(--gutter), 560px); margin: -5rem auto 0;
  background: rgba(238, 242, 244, .94); border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.seasons__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin-bottom: 1.4rem; }
.seasons__tabs { display: none; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.js .seasons__tabs { display: flex; }
html:not(.js) .nav-toggle { display: none; }
.seasons__tab {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; border: 1.5px solid rgba(22, 29, 36, .18); border-radius: var(--radius-sm);
  padding: .45rem .9rem; font-size: .88rem; font-weight: 600; color: var(--ink-2);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
@media (hover: hover) { .seasons__tab:hover { border-color: var(--schiefer); color: var(--schiefer); } }
.seasons__tab.is-active { background: var(--schiefer); border-color: var(--schiefer); color: var(--schnee); }
.seasons__stack { display: grid; gap: 2rem; }
.season__title { font-family: var(--serif); font-size: 1.55rem; font-weight: 430; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: .7rem; color: var(--schiefer); }
.season p { color: var(--ink-2); margin-bottom: 1rem; }
.season__img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--nebel); max-height: 240px; width: 100%; }
.season__img img { width: 100%; height: 100%; object-fit: cover; }

/* JS: sticky, scroll-driven */
.js .seasons { height: 400vh; } /* ≈ one screen of scrolling per transition */
/* full-screen stages use the LARGE viewport height: on iPhone/iPad Safari the toolbar shrinks while scrolling –
   with svh a strip of the section background showed below the scene */
.js .seasons__sticky { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.js .seasons__stage { position: absolute; inset: 0; height: auto; min-height: 0; }
.js .seasons__card { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--header-h) + .75rem); margin: 0; width: min(100% - 2rem, 560px); padding: 1.25rem 1.3rem 1.3rem; }
.js .seasons__title { margin-bottom: 1rem; }
.js .seasons__tabs { margin-bottom: 1rem; }
.seasons__meter { display: none; }
.js .seasons__meter { display: block; position: relative; height: 3px; margin: -.3rem 0 1rem; border-radius: 3px; background: rgba(22, 29, 36, .12); overflow: hidden; }
.js .seasons__meter span { position: absolute; inset: 0; border-radius: inherit; background: var(--schiefer); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.js .seasons__stack { display: grid; gap: 0; overflow: clip; transition: height .6s var(--ease-out); }
.js .season { grid-area: 1 / 1; align-self: start; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), visibility 0s .55s; }
.js .season.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease-out) .08s, transform .7s var(--ease-out) .08s; }
.js .season p { font-size: .96rem; margin-bottom: .8rem; }
.js .season__img { max-height: 150px; }
@media (max-width: 899px) {
  .js .seasons { height: 500vh; } /* phones: ≈ 1.3 screens per transition, time to watch it change */
  .js .season__img { display: none; }
  .js .seasons__title { font-size: 1.7rem; margin-bottom: .8rem; }
  .js .seasons__tabs { flex-wrap: nowrap; gap: .3rem; }
  .js .seasons__tab { padding: .38rem .68rem; font-size: .82rem; }
  .js .seasons__tab .icon { display: none; }
  .js .season__title { font-size: 1.3rem; margin-bottom: .45rem; }
  .js .season p { font-size: .92rem; line-height: 1.55; margin-bottom: 0; }
}
@media (min-width: 900px) {
  .js .seasons__card { left: var(--gutter); transform: none; top: max(calc(var(--header-h) + 1.25rem), 12vh); width: min(40vw, 520px); padding: clamp(1.6rem, 2.5vw, 2.4rem); }
  /* the card must always fit the screen height (tablets, small laptops) */
  .js .seasons__title { font-size: clamp(1.9rem, min(1.4rem + 2.4vw, 4.9vh), 3.2rem); }
  .js .season__img { max-height: min(210px, 17vh); }
  .seasons__stage { height: 80vh; }
}
@media (min-width: 900px) and (max-width: 1365px) {
  /* narrower card: the four season tabs stay on one line (text only) */
  .js .seasons__tabs { flex-wrap: nowrap; gap: .35rem; }
  .js .seasons__tab { padding: .42rem .8rem; }
  .js .seasons__tab .icon { display: none; }
}
@media (min-width: 900px) and (max-height: 760px) { .js .season__img { display: none; } }

/* ==========================================================================
   UMGEBUNG
   ========================================================================== */
.around { background: var(--nebel); }
.around__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.around__head { display: grid; gap: 1.2rem 4rem; }
.around__head .h1 { margin: 0; max-width: 14ch; }
.around__head .lead { color: var(--ink-2); max-width: 40ch; }
.around__head .todo { display: inline-block; margin: 0; }
.around__pano { margin: 0; }
.around__pano-img { aspect-ratio: 21 / 9; border-radius: var(--radius); overflow: hidden; background: var(--linie); }
.around__pano-img img { width: 100%; height: 100%; object-fit: cover; }
.around__pano figcaption { margin-top: .6rem; font-size: .9rem; font-weight: 600; line-height: 1.35; }
@media (max-width: 599px) { .around__pano-img { aspect-ratio: 16 / 9; } }
.around__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem .9rem; }
.around__photos figure { margin: 0; }
.around__photo { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--linie); }
.around__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .around__photos li:hover .around__photo img { transform: scale(1.04); } }
.around__photos figcaption { margin-top: .55rem; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
@media (min-width: 960px) { .around__photos { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } .around__photo { border-radius: var(--radius); } }
.around__groups { display: grid; gap: 2.6rem; }
.around__label { font-family: var(--serif); font-size: 1.3rem; font-weight: 450; letter-spacing: -0.01em; color: var(--schiefer); padding-bottom: .7rem; border-bottom: 1.5px solid rgba(34, 48, 60, .18); }
.places { display: grid; }
.place { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(22, 29, 36, .1); }
.place:last-child { border-bottom: 0; }
.place__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--schnee); color: var(--schiefer); transition: background-color .4s var(--ease-out), color .4s var(--ease-out), transform .5s var(--ease-out); }
.place__icon .icon { width: 21px; height: 21px; }
@media (hover: hover) { .place:hover .place__icon { background: var(--schiefer); color: var(--schnee); } }
.place h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 650; line-height: 1.3; margin-bottom: .2rem; }
.place p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
@media (min-width: 960px) {
  .around__head { grid-template-columns: auto 1fr; align-items: end; }
  .around__head > div:last-child { justify-self: end; max-width: 44ch; }
  .around__groups { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
}

/* ==========================================================================
   VIDEOS
   ========================================================================== */
.videos { background: var(--schnee); }
.videos__head { margin-bottom: 2rem; }
.videos__grid { display: grid; gap: 2rem; }
.video { margin: 0; }
.video__btn, .video__frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--schiefer); color: var(--schnee);
}
.video__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s; }
.video__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 21, 28, .55), rgba(14, 21, 28, 0) 55%); }
@media (hover: hover) { .video__btn:hover img { transform: scale(1.04); } }
.video__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 78px; height: 78px; margin: -39px 0 0 -39px;
  border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--schiefer);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .22); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.video__play .icon { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
@media (hover: hover) { .video__btn:hover .video__play { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(255, 255, 255, .18); } }
.video__label { position: absolute; left: 1.2rem; bottom: 1rem; z-index: 1; font-size: .95rem; font-weight: 600; }
.video__btn[disabled] { cursor: not-allowed; }
.video__btn[disabled] .video__play { background: var(--linie); box-shadow: none; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: .8rem; font-weight: 600; line-height: 1.35; }
.videos__note { display: flex; gap: .6rem; align-items: flex-start; margin: 2rem 0 0; font-size: .88rem; color: var(--ink-2); max-width: 70ch; }
.videos__note .icon { margin-top: .2em; color: var(--gletscher); }
@media (max-width: 899px) {
  .videos__grid {
    grid-auto-flow: column; grid-auto-columns: 84%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .videos__grid::-webkit-scrollbar { display: none; }
  .video { scroll-snap-align: start; }
  .video__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}
@media (min-width: 900px) { .videos__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.videos__head .lead { color: var(--ink-2); max-width: 46ch; margin: 1rem 0 0; }

/* ==========================================================================
   ANFAHRT
   ========================================================================== */
.route__grid { display: grid; gap: 3rem; align-items: center; }
.route__text .h1 { margin-bottom: 1.8rem; max-width: 12ch; }
.route__address { font-size: 1.15rem; line-height: 1.55; margin-bottom: 1.8rem; }
.route__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.4rem; }
.route__list { display: grid; gap: 1.2rem; }
.route__list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.route__list li > .icon { width: 1.4em; height: 1.4em; color: var(--schiefer); margin-top: .1em; }
.route__list strong { display: block; font-weight: 650; }
.route__list span { display: block; color: var(--ink-2); }
.route__list .todo { display: inline-block; margin-top: .3rem; }
.route__map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--nebel); }
.route__map-link {
  position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--schiefer); color: #fff; border-radius: var(--radius-sm); padding: .55rem 1rem; font-size: .88rem; font-weight: 600; text-decoration: none;
  transition: background-color .3s;
}
@media (hover: hover) { .route__map-link:hover { background: var(--schiefer-hell); } }
@media (min-width: 960px) { .route__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); } }

/* Map (SVG file, inlined by main.js; its colours live inside the SVG) */
.map { display: block; width: 100%; height: auto; font-family: var(--sans); }

/* ==========================================================================
   ANFRAGE
   ========================================================================== */
.inquiry {
  position: relative; color: var(--on-dark); padding-block: var(--section);
  background: var(--schiefer-tief);
}
.inquiry__grid { display: grid; gap: 3.5rem; align-items: start; }
.inquiry__text .h1 { margin-bottom: 1.4rem; max-width: 12ch; }
.inquiry__text .lead { color: var(--on-dark-2); max-width: 40ch; margin-bottom: 2rem; }
.host { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.host__avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--holz); color: var(--schnee); font-family: var(--serif); font-size: 1.25rem; font-weight: 500; box-shadow: 0 0 0 4px rgba(238, 242, 244, .12); }
.host__name { margin: 0; font-weight: 650; font-size: 1.1rem; }
.host__role { margin: 0; color: var(--on-dark-2); font-size: .92rem; }
.inquiry__phone { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); font-weight: 380; letter-spacing: -0.02em; margin-bottom: 1.6rem; }
.inquiry__phone .icon { color: var(--on-dark-2); width: .9em; height: .9em; }
@media (hover: hover) { .inquiry__phone:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; } }
.inquiry__quick { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.inquiry__addr { color: var(--on-dark-2); font-size: .92rem; }
.inquiry__addr a, .gtk a { color: var(--schnee); text-decoration: underline; text-decoration-color: rgba(238, 242, 244, .45); text-underline-offset: .2em; }
@media (hover: hover) { .inquiry__addr a:hover, .gtk a:hover { text-decoration-color: var(--on-dark); } }
.inquiry__info { display: grid; gap: 2.6rem; }
.booking { padding-top: 1.8rem; border-top: 1px solid rgba(238, 242, 244, .16); }
.booking h2 { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 420; color: var(--schnee); margin-bottom: 1.1rem; }
.booking h2 .icon { color: var(--on-dark-2); }
.booking ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: .85rem; }
.booking li { counter-increment: step; display: grid; grid-template-columns: 1.9rem 1fr; gap: .8rem; color: var(--on-dark-2); font-size: .95rem; line-height: 1.5; }
.booking li::before {
  content: counter(step); width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(238, 242, 244, .35); color: var(--on-dark); font-weight: 650; font-size: .85rem;
}

/* Belegungskalender: data from Traum-Ferienwohnungen, drawn by belegung.js.
   Free days are snow, booked days stay dark, your stay lights up like the window of the hut. */
.belegung { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(238, 242, 244, .16); }
.belegung__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.belegung h2 { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 420; color: var(--schnee); margin: 0; }
.belegung h2 .icon { color: var(--on-dark-2); }
.belegung__nav { display: flex; gap: .5rem; flex: none; }
.belegung__nav button {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  border: 1.5px solid rgba(238, 242, 244, .32); background: transparent; color: var(--on-dark); cursor: pointer;
  transition: border-color .2s, background-color .2s, opacity .2s;
}
.belegung__nav .icon { width: 20px; height: 20px; }
.belegung__nav button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .belegung__nav button:not(:disabled):hover { border-color: var(--schnee); background: rgba(238, 242, 244, .08); } }
.belegung__intro, .belegung__nojs { color: var(--on-dark-2); font-size: .93rem; line-height: 1.5; margin: 0 0 1.3rem; max-width: 46ch; }
.belegung__nojs a, .belegung__status a, .belegung__src a, .belegung__jump {
  color: var(--schnee); text-decoration: underline; text-decoration-color: rgba(238, 242, 244, .45); text-underline-offset: .2em;
}
@media (hover: hover) { .belegung__nojs a:hover, .belegung__status a:hover, .belegung__src a:hover, .belegung__jump:hover { text-decoration-color: var(--on-dark); } }
.belegung:not(.is-ready) .belegung__app, .belegung:not(.is-ready) .belegung__nav, .belegung.is-ready .belegung__nojs { display: none; }
.belegung.is-failed :is(.belegung__nav, .belegung__intro, .belegung__months, .belegung__legend, .belegung__src) { display: none; }
.belegung__months { --per: 1; display: grid; grid-template-columns: repeat(var(--per), minmax(0, 22rem)); gap: 1.4rem 1.6rem; touch-action: pan-y; }
.belegung__months:empty { min-height: 22rem; }   /* room for the calendar until the script has drawn it */
.cal__title { font-family: var(--serif); font-size: 1.12rem; font-weight: 450; letter-spacing: -0.01em; color: var(--schnee); margin: 0 0 .45rem; }
.cal__grid { width: calc(100% + 6px); margin: 0 -3px; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal__grid th { padding: 0 0 .2rem; font-size: .7rem; font-weight: 650; color: var(--on-dark-2); text-align: center; }
.cal__grid abbr { text-decoration: none; }
.cal__grid td { padding: 0; }
.cal__day {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden;
  border: 0; border-radius: 5px; font: 600 .84rem/1 var(--sans); font-variant-numeric: tabular-nums;
  background: rgba(238, 242, 244, .055); color: rgba(174, 185, 194, .66); cursor: default;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.cal__day.is-free { background: var(--schnee); color: var(--ink); }
.cal__day.is-past { background: transparent; color: rgba(174, 185, 194, .34); }
.cal__day.is-unknown { background: rgba(238, 242, 244, .07); color: rgba(174, 185, 194, .38); }
.belegung.is-loading .cal__day.is-unknown { animation: cal-wait 1.1s ease-in-out infinite alternate; }
@keyframes cal-wait { to { background-color: rgba(238, 242, 244, .13); } }
/* changeover days: the corner shows the night before */
.cal__day:is(.is-turn-in, .is-turn-out)::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cal__day.is-turn-in::before { background: linear-gradient(135deg, var(--schiefer-tief) 0 30%, transparent 31%); }
.cal__day.is-turn-out::before { background: linear-gradient(135deg, var(--schnee) 0 30%, transparent 31%); }
.cal__day[aria-current="date"]::after { content: ""; position: absolute; left: 50%; bottom: 13%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal__day.is-pickable { cursor: pointer; }
@media (hover: hover) { .cal__day.is-pickable:hover { box-shadow: 0 0 0 2px var(--licht-hell); } }
.cal__day:is(.is-range, .is-preview) { background: var(--licht-hell); color: var(--ink); }
.cal__day:is(.is-start, .is-end) { background: var(--licht); color: var(--ink); box-shadow: 0 6px 18px -6px rgba(232, 135, 63, .85); }
.cal__day:is(.is-range, .is-preview, .is-start, .is-end)::before { content: none; }
.cal__day:focus-visible { outline: 2px solid var(--gletscher-hell); outline-offset: 2px; z-index: 1; }
.belegung__legend { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; margin: .85rem 0 0; padding: 0; list-style: none; font-size: .84rem; color: var(--on-dark-2); }
.belegung__legend li { display: inline-flex; align-items: center; gap: .5rem; }
.lg { width: 15px; height: 15px; border-radius: 4px; flex: none; }
.lg--free { background: var(--schnee); }
.lg--busy { background: rgba(238, 242, 244, .055); box-shadow: inset 0 0 0 1px rgba(238, 242, 244, .24); }
.lg--turn { background: linear-gradient(135deg, var(--schiefer-tief) 0 34%, var(--schnee) 35%); }
.lg--you { background: var(--licht); }
.belegung__status { margin: 1.15rem 0 0; font-size: .95rem; line-height: 1.55; color: var(--on-dark); min-height: 1.55em; }
.belegung__status strong { font-weight: 650; color: var(--schnee); }
.belegung__jump { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.belegung__src { margin: .45rem 0 0; font-size: .8rem; color: var(--on-dark-2); }

@media (min-width: 960px) {
  .inquiry__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); }
  .inquiry__info { grid-column: 1 / -1; grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 6rem); }
}

/* Form */
.form { background: var(--weiss); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .5); }
.form__title { font-family: var(--serif); font-size: 1.8rem; font-weight: 420; letter-spacing: -0.015em; margin-bottom: 1.5rem; }
.form__row { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 .75rem; }
@media (max-width: 420px) { .form__row--stack-xs, .form__row:has(input[type="email"]) { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .75rem .95rem;
  background: #FFFFFF; border: 1.5px solid var(--linie); border-radius: var(--radius-sm);
  transition: border-color .25s, box-shadow .25s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2621' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.5rem;
}
.field input[type="date"] { min-width: 0; display: block; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
@media (hover: hover) { .field input:hover, .field select:hover, .field textarea:hover { border-color: #9AA4AB; } }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gletscher); box-shadow: 0 0 0 4px rgba(91, 143, 168, .22); }
.field [aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.field__error { margin: .35rem 0 0; font-size: .84rem; font-weight: 600; color: #B3261E; min-height: 0; }
.field__error:empty { display: none; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; margin: 1.4rem 0 1.5rem; }
.field--check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; min-height: 0; padding: 0; margin: .1rem 0 0; border-radius: 3px; display: grid; place-items: center; cursor: pointer; }
.field--check input::after { content: ""; width: 12px; height: 7px; border: solid var(--schnee); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--ease-out); }
.field--check input:checked { background: var(--schiefer); border-color: var(--schiefer); }
.field--check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field--check label { font-weight: 400; font-size: .88rem; line-height: 1.5; color: var(--ink-2); margin: 0; cursor: pointer; }
.field--check .field__error { grid-column: 2; }
.form__hint { font-size: .85rem; color: var(--ink-2); margin: -.4rem 0 1.1rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { margin-top: .2rem; }
.form__submit[aria-busy="true"] { opacity: .75; pointer-events: none; }
.form__status { margin: 1rem 0 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--schiefer); background: rgba(34, 48, 60, .08); padding: 1rem 1.1rem; border-radius: var(--radius-sm); }
.form__status.is-error { color: #B3261E; }
.form__note { margin: 1rem 0 0; font-size: .82rem; color: var(--ink-2); text-align: center; }
.form.is-sent .form__fields-hide { display: none; }

/* ==========================================================================
   HOME PAGE: the chapters (each one its own page) and a short way to the inquiry
   ========================================================================== */
.chapters { background: var(--nebel); }
.chapters__title { max-width: 18ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.chapters__grid { display: grid; gap: 2.6rem 1.5rem; grid-template-columns: minmax(0, 1fr); }
.chapter__link { display: block; text-decoration: none; color: inherit; }
.chapter__img { display: block; overflow: hidden; border-radius: var(--radius); background: var(--linie); aspect-ratio: 16 / 10; }
.chapter__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.chapter__img--plan { background: #F1F2F0; }
.chapter__name {
  display: block; margin-top: 1rem; font-family: var(--serif); font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); font-weight: 440;
  line-height: 1.1; letter-spacing: -0.015em; color: var(--schiefer);
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px; text-underline-offset: .18em;
  transition: text-decoration-color .3s;
}
.chapter__text { display: block; margin-top: .45rem; color: var(--ink-2); max-width: 46ch; line-height: 1.5; }
@media (hover: hover) {
  .chapter__link:hover .chapter__img img { transform: scale(1.035); }
  .chapter__link:hover .chapter__name { text-decoration-color: currentColor; }
}
@media (min-width: 700px) {
  .chapters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter--wide { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  /* first row: the rooms large, the plan beside them; second row: three of a size */
  .chapters__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3.2rem 1.5rem; }
  .chapter { grid-column: span 4; }
  .chapter--wide { grid-column: span 7; }
  .chapter--wide + .chapter { grid-column: span 5; }
  .chapter__img { aspect-ratio: auto; height: clamp(220px, 19vw, 290px); }
  .chapter--wide .chapter__img, .chapter--wide + .chapter .chapter__img { height: clamp(300px, 30vw, 450px); }
}

.cta { background: var(--schiefer-tief); color: var(--on-dark); padding-block: clamp(3.5rem, 7vw, 6rem); }
.cta__inner { display: grid; gap: 2rem; }
.cta .h2 { color: var(--schnee); max-width: 16ch; margin-bottom: 1rem; }
.cta .lead { color: var(--on-dark-2); max-width: 50ch; margin: 0; }
.cta__free { margin: 1.1rem 0 0; }
.cta__free a { display: inline-flex; align-items: center; gap: .55rem; color: var(--schnee); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(238, 242, 244, .45); text-underline-offset: .22em; }
.cta__free .icon { width: 1.15em; height: 1.15em; color: var(--on-dark-2); }
@media (hover: hover) { .cta__free a:hover { text-decoration-color: var(--on-dark); } }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 960px) { .cta__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4rem; } }

/* ==========================================================================
   "WEITER" – at the end of every page, the next stop of the tour through the hut
   ========================================================================== */
.next { background: var(--weiss); border-top: 1px solid var(--linie); }
.next__link {
  width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3rem clamp(1.25rem, 4vw, 3rem);
  padding-block: clamp(2.75rem, 6vw, 4.75rem); text-decoration: none; color: var(--schiefer);
}
.next__label, .next__title, .next__text { grid-column: 1; }
.next__label { font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.next__title { font-family: var(--serif); font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.4rem); font-weight: 430; line-height: 1.02; letter-spacing: -0.025em; }
.next__text { color: var(--ink-2); max-width: 52ch; margin-top: .55rem; line-height: 1.5; }
.next__arrow {
  grid-column: 2; grid-row: 1 / span 3; display: grid; place-items: center; width: clamp(56px, 6vw, 84px); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(34, 48, 60, .3); transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .5s var(--ease-out);
}
.next__arrow .icon { width: 42%; height: 42%; }
@media (hover: hover) { .next__link:hover .next__arrow { background: var(--schiefer); border-color: var(--schiefer); color: var(--schnee); transform: translateX(6px); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative; color: var(--on-dark-2); padding: clamp(4rem, 8vw, 6rem) 0 calc(2rem + 76px);
  background: var(--schiefer-nacht);
}
.footer > * { position: relative; }
.footer a { text-decoration: none; }
@media (hover: hover) { .footer a:hover { color: var(--schnee); text-decoration: underline; text-underline-offset: .2em; } }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
.footer__stamp { width: clamp(140px, 15vw, 170px); height: auto; margin: 0 0 1.3rem; }
.footer__tag { margin: 0; }
.footer__label { font-size: .95rem; font-weight: 650; color: var(--on-dark); margin-bottom: .9rem; }
.footer__index { columns: 2; column-gap: 1.5rem; }
.footer__index a[aria-current] { color: var(--schnee); }
.footer__col--index { grid-column: 1 / -1; }
.footer__col p { margin-bottom: .7rem; line-height: 1.6; }
.footer__col li { margin-bottom: .45rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(238, 242, 244, .12); font-size: .85rem; }
.footer__bottom p { margin: 0; }
.footer__top { display: inline-flex; align-items: center; gap: .4rem; }
@media (min-width: 900px) {
  .footer { padding-bottom: 2.5rem; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1.4fr .8fr; }
  .footer__brand, .footer__col--index { grid-column: auto; }
}

/* ==========================================================================
   MOBILE ACTION BAR
   ========================================================================== */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(238, 242, 244, .97);
  box-shadow: 0 -1px 0 rgba(22, 29, 36, .1), 0 -10px 30px -12px rgba(24, 34, 44, .2);
  transition: transform .45s var(--ease-out);
}
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 650; font-size: .92rem; color: var(--schiefer);
  border: 1.5px solid rgba(34, 48, 60, .2);
}
.actionbar__primary { background: var(--schiefer); color: #fff !important; border-color: var(--schiefer) !important; }
.actionbar.is-hidden { transform: translateY(110%); }
.intro-on .actionbar { transform: translateY(110%); }
@media (min-width: 900px) { .actionbar { display: none; } }

/* ==========================================================================
   MOTION STATES (set up by main.js; content is visible without JS)
   ========================================================================== */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
.header { view-transition-name: site-header; }
.actionbar { view-transition-name: actionbar; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .seasons .season { transition: opacity .2s linear !important; }
}

/* Legal pages */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.legal .container { max-width: 780px; }
.legal h1 { font-family: var(--serif); font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); font-weight: 380; letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 2rem; }
.legal h2 { font-family: var(--serif); font-size: 1.55rem; font-weight: 450; margin: 2.6rem 0 .8rem; }
.legal h3 { font-weight: 650; font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.legal a:not(.btn) { color: var(--gletscher); }
.legal .btn { margin: 0 .5rem .5rem 0; }
.legal__kicker { font-weight: 650; margin-bottom: .6rem; }
.legal .legal__pages { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0 0 2.2rem; }
.legal__pages a { font-weight: 600; }
