/* ============ BLAUE STUNDE — Alpine 5-Star Luxury ============ */
/* ---- FONTS: self-hosted copies of the Google Fonts files (SIL OFL 1.1, see
   assets/fonts/<family>/OFL.txt). Variable fonts: one file per subset and
   style; the weight ranges cover what the page uses. latin-ext is only
   downloaded when one of its characters appears (unicode-range). No
   preload: measured slower on Slow 4G (it competes with the CSS). ---- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond/cormorant-garamond-latin-ext.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond/cormorant-garamond-latin.woff2")
    format("woff2");
  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;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond/cormorant-garamond-italic-latin-ext.woff2")
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond/cormorant-garamond-italic-latin.woff2")
    format("woff2");
  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;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/manrope/manrope-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/manrope/manrope-latin.woff2") format("woff2");
  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 {
  /* background tones from the "mitte" trial (28.10.2026): halfway between the old
     warm black and a cool slate; text and accent colours stay. Set as r, g, b:
     overlays use rgba(var(--ink-rgb), a). The canvas scenes (js/*-scene.js,
     bergfahrt.js, main.js) and the theme-color meta repeat --ink as hex. */
  --ink-rgb: 16, 20, 26;
  /* #10141A page background */
  --ink-2-rgb: 22, 28, 37;
  /* #161C25 cards, form fields */
  --ink-deep-rgb: 11, 14, 18;
  /* #0B0E12 footer, overlays */
  --ink: rgb(var(--ink-rgb));
  --ink-2: rgb(var(--ink-2-rgb));
  --ink-deep: rgb(var(--ink-deep-rgb));
  --paper: #f3ede1;
  /* warm off-white */
  --gold: #d1a851;
  /* brass accent */
  --gold-soft: #ecd6a2;
  --line: rgba(209, 168, 81, 0.28);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --text-soft: rgba(243, 237, 225, 0.72);
  --container: 1300px;
  --gutter: clamp(1.2rem, 5vw, 4rem);
  /* distance to the screen edge for full-width bands: nav, footer, wide hero copy */
  --edge: clamp(1.2rem, 4vw, 3.5rem);
  --section-y: clamp(2.8rem, 5vh, 4.5rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* open menu on phones (js/nav.js): the page behind it does not scroll */
html.menu-open {
  overflow: hidden;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the footer stays at the bottom of the window on short pages (Impressum, 404, Kontakt on
   a tall screen): the page is a column and <main> takes the free height. width: 100%, or
   a centred main (.section, margin-inline: auto) would shrink to its content */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body>main {
  flex: 1 0 auto;
  width: 100%;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ---- overlays: vignette (::before) and film grain (::after) over the whole page ---- */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  box-shadow: inset 0 0 220px 40px rgba(0, 0, 0, 0.55);
  z-index: 9997;
}

/* touch screens (phones, tablets): no overlays. Safari on the iPhone ends a fixed layer
   short of the screen's bottom edge (its toolbar), and the page below it showed without
   the vignette: a hard, lighter strip right at the bottom (Nicky, 2026-10-28) */
@media (hover: none) and (pointer: coarse) {
  body::before,
  body::after {
    display: none;
  }
}

body::after {
  opacity: 0.05;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- shared ---- */
.kicker {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.kicker--light {
  color: var(--gold-soft);
}

/* ---- content section: container + editorial header ---- */
.section {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}

/* .steps-pin__stage>header: the process section's header, moved into its pinned stage on
   tall wide screens (js/steps.js), keeps the same look */
.section>header,
.steps-pin__stage>header {
  max-width: 52rem;
  margin-bottom: 2.4rem;
  /* anchor jumps land on the header (kicker first) below the fixed nav: 4.6rem ≈ the
     scrolled nav (73px), plus the usual section spacing. main.js passes it to Lenis */
  scroll-margin-top: calc(4.6rem + var(--section-y));
}

.section>header h2,
.steps-pin__stage>header h2 {
  text-wrap: balance;
}

.section>header h2+p,
.steps-pin__stage>header h2+p,
.mission__text p {
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.section>header h2+p,
.steps-pin__stage>header h2+p {
  margin-top: 1.4rem;
}

/* ---- METRICS: key figures, <b> = the figure, the rest = its label ----
   .metrics is a list of them (layout per section). A single .metric also
   appears inside channel tiles. */
.metric b {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-soft);
}

.metrics {
  list-style: none;
  display: grid;
  gap: 2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.metrics .metric {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: rgba(243, 237, 225, 0.6);
}

.metrics .metric b {
  display: block;
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05em 2.2em;
  border-radius: 2px;
  transition: 0.4s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--gold:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: rgba(243, 237, 225, 0.4);
  /* transparent also on a <button> (the form's "Zurück"), which has a light system
     background of its own */
  background: transparent;
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* above the page overlays (vignette 9997, grain 9999) so the brand keeps its real colour,
     and above the footer brand (10000), so the open menu covers it */
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem var(--edge);
  border-bottom: 1px solid transparent;
  transition:
    padding 0.5s var(--ease),
    border-color 0.5s var(--ease);
}

/* the translucent, blurred background of the scrolled bar sits on its own layer: a
   backdrop-filter (or a transform) on the bar itself would make it the containing block
   of the fixed full-screen menu (js/nav.js) and trap the menu inside the bar */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--ink-rgb), 0.5);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.nav.scrolled::before {
  opacity: 1;
}

/* soft shade behind brand and toggle, used instead of the bar over the cine scenes on
   phones and tablets (.nav--over-cine); it reaches a little below the bar and fades out */
.nav::after {
  content: "";
  position: absolute;
  inset: 0 0 -70% 0;
  z-index: -1;
  background: linear-gradient(rgba(var(--ink-deep-rgb), 0.55), rgba(var(--ink-deep-rgb), 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.nav.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom-color: var(--line);
}

/* the <nav> element inside the .nav bar holds the section links */
.nav nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav nav a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(243, 237, 225, 0.82);
  transition: color 0.3s;
}

.nav nav a:hover {
  color: var(--gold-soft);
}

.nav .nav__cta {
  border: 1px solid var(--line);
  padding: 0.7em 1.3em;
  border-radius: 2px;
  color: var(--gold-soft);
  white-space: nowrap;
}

.nav .nav__cta:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

/* menu toggle and the menu's contact/legal links (js/nav.js): only in the menu, up to
   1000px */
.nav__toggle,
.nav__meta {
  display: none;
}

/* ---- BRAND (nav and footer) ---- */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
}

/* symbol: blaue-stunde-logo-white.svg, scaled by height (aspect ratio 240:172) */
.brand img {
  display: block;
  flex: none;
  height: 40px;
  width: auto;
}

/* ---- CANVAS FRAME-SEQUENCE SCRUB (smooth 3D scroll) ---- */
.cine {
  position: relative;
}

.hero.cine {
  height: 200vh;
}

/* longer scrub distance = more px per frame = no skipping */
.scene.cine {
  height: 230vh;
}

/* hand-off (D-94): the section after a scene rises over the end of its pin while the stage
   fades (main.js ties the fade to this section's top), so no dark stretch opens between the
   image and the text. Only with JS: without it the scene is one still screen */
html.js .cine[data-scene]+.section {
  position: relative;
  z-index: 3;
  margin-top: -35vh;
}

.cine__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  will-change: transform, opacity;
}

.cine__stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: var(--ink);
}

.cine__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* dark veil of a long anchor jump (main.js, D-45): quick in, slower out; under the bar */
.jump-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease-out;
}

.jump-veil--on {
  opacity: 1;
  transition: opacity 0.18s ease-in;
}

/* without JS (no .js on <html>, set in <head>): no scrub, so each scene is one screen
   with a still frame behind its copy; the image is only requested in this case (F9) */
html:not(.js) .cine {
  height: auto;
}

html:not(.js) .cine__stage {
  background: var(--ink) center / cover no-repeat;
}

html:not(.js) .cine__stage canvas {
  display: none;
}

/* by scene name (D-64: each segment page opens with its own scene); the URLs are relative
   to this file, so they work from every page */
html:not(.js) [data-scene="hero"] .cine__stage {
  background-image: url("../assets/frames-hd/hero/frame_0001.webp");
}

html:not(.js) [data-scene="spa"] .cine__stage {
  background-image: url("../assets/frames-hd/spa/frame_0060.webp");
}

html:not(.js) [data-scene="skilift"] .cine__stage {
  background-image: url("../assets/frames-hd/skilift/frame_0060.webp");
}

/* phones held upright: the portrait set, framed on each scene's focal point (D-55) */
@media (max-width: 767px) and (orientation: portrait) {
  html:not(.js) [data-scene="hero"] .cine__stage {
    background-image: url("../assets/frames-phone/hero/frame_0001.webp");
  }

  html:not(.js) [data-scene="spa"] .cine__stage {
    background-image: url("../assets/frames-phone/spa/frame_0060.webp");
  }

  html:not(.js) [data-scene="skilift"] .cine__stage {
    background-image: url("../assets/frames-phone/skilift/frame_0060.webp");
  }
}

/* without JS the brand text runs into the bar's CTA below ~430px (measured); the hero
   shows the same button right below */
@media (max-width: 440px) {
  html:not(.js) .nav .nav__cta {
    display: none;
  }
}

.cine-line {
  will-change: opacity, transform;
}

/* ---- CINE TEXT LAYER (hero + scenes): above the scrim, same container as the
   content sections up to 1000px ---- */
.cine__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* wide screens: hero and scenes put their copy bottom-left at the nav's edge, the same
   place in all three, off the images' focal areas and where the scrims are darkest */
@media (min-width: 1001px) {
  .cine__stage {
    align-items: flex-end;
  }

  .cine__copy {
    max-width: none;
    margin: 0;
    padding: 0 var(--edge) clamp(4.5rem, 11vh, 7rem);
  }
}

.cine__copy :is(h1, h2)+p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(243, 237, 225, 0.85);
}

.tags {
  list-style: none;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.5em 1.2em;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---- HERO ---- */
.hero .cine__scrim {
  background:
    linear-gradient(90deg,
      rgba(var(--ink-deep-rgb), 0.82) 0%,
      rgba(var(--ink-deep-rgb), 0.42) 45%,
      rgba(var(--ink-deep-rgb), 0.15) 100%),
    linear-gradient(0deg, rgba(var(--ink-deep-rgb), 0.7), transparent 55%);
}

.hero h1 {
  max-width: 11ch;
  /* two balanced lines, set by width instead of spans */
  font-size: clamp(2.9rem, 8.5vw, 7.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  animation: heroLine 1.1s var(--ease) both;
}

@keyframes heroLine {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1+p {
  max-width: 44ch;
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(243, 237, 225, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.hero__cue::before {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2s var(--ease) infinite;
}

/* gone once the page is scrolled (main.js) */
.hero__cue.is-gone {
  opacity: 0;
}

/* the same cue for the process line on wide screens (js/steps.js): fixed at the bottom of
   the screen while the drawing has only begun */
.steps__cue {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(243, 237, 225, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.steps__cue::before {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2s var(--ease) infinite;
}

.steps__cue.is-gone {
  opacity: 0;
}

/* the endless animations pause while hidden or off screen (main.js, P3) */
.steps__cue.is-gone::before,
.hero__cue.is-gone::before,
.hero__cue.is-offscreen::before,
.regions ul.is-offscreen,
.phones__hint.is-offscreen::before {
  animation-play-state: paused;
}

@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  45% {
    transform: scaleY(1);
    transform-origin: top;
  }

  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* the same stroke, sideways: grows to the right, then leaves to the right */
@keyframes cue-x {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }

  45% {
    transform: scaleX(1);
    transform-origin: left;
  }

  55% {
    transform: scaleX(1);
    transform-origin: right;
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

@keyframes hint-out {
  to {
    opacity: 0;
  }
}

/* ---- MISSION: short heading, then two articles side by side on the full width ---- */
.mission__text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 5vw, 5rem);
}

.mission__text h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 0.8rem;
}

/* ---- CINEMATIC SCENES ---- */
/* darkest where the copy sits (bottom-left on wide screens); checked for WCAG AA over
   the real frames, incl. the bright snow of the ski scene */
.scene .cine__scrim {
  background:
    radial-gradient(120% 100% at 18% 78%,
      rgba(var(--ink-deep-rgb), 0.72),
      rgba(var(--ink-deep-rgb), 0.2) 60%),
    linear-gradient(0deg, rgba(var(--ink-deep-rgb), 0.6), transparent 40%);
}

/* bright footage (snow): an extra side gradient behind the copy, as in the hero */
.scene--bright .cine__scrim {
  background:
    linear-gradient(90deg,
      rgba(var(--ink-deep-rgb), 0.7) 0%,
      rgba(var(--ink-deep-rgb), 0.35) 40%,
      transparent 65%),
    radial-gradient(120% 100% at 18% 78%,
      rgba(var(--ink-deep-rgb), 0.72),
      rgba(var(--ink-deep-rgb), 0.2) 60%),
    linear-gradient(0deg, rgba(var(--ink-deep-rgb), 0.6), transparent 40%);
}

.scene h2 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 6.5vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.scene h2+p {
  max-width: 44ch;
  margin-bottom: 1.8rem;
}

/* ---- TILES: hairline grid of cards with a heading and a description
   (channels). The grid draws the top and left hairline, each card its right and
   bottom one, so every line is a real border at any column count. ---- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

/* each card spans three rows of the shared grid (subgrid): heading, role + formats,
   description start at the same height in every card of a row, at 4, 2 or 1 columns */
.tiles>article {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
  padding: 2.6rem 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tiles p,
.steps p {
  font-size: 0.92rem;
  color: rgba(243, 237, 225, 0.66);
}

/* the role and formats of a channel (.metric) */
.tiles .metric {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text-soft);
}

.tiles .metric b {
  display: block;
  font-size: clamp(1.7rem, 2.3vw, 2.2rem);
  line-height: 1.1;
}

/* below the tiles: which channels depends on the client */
.channels__note {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text-soft);
}

.tiles .metric+p {
  margin-top: 1rem;
  font-size: 0.86rem;
  color: rgba(243, 237, 225, 0.6);
  line-height: 1.5;
}

/* ---- SERVICES: the process as numbered steps on one line (a column on phones);
   ::before = the number, ::after = the dot and the line ---- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  counter-reset: step;
  /* room for the ridges above the line */
  padding-top: 1.6rem;
}

/* each step draws its piece of the line, so it stays continuous at 5, 2 or 1 columns.
   The line rises over the ridge of the logo (both mountains), a little higher at every
   step: --ridge is the ridge as an SVG drawn in the --line colour, --ridge-w its width,
   --ridge-x where it starts. Layers of ::after, top to bottom: dot, line before the ridge,
   ridge, line after it. The line itself sits at the top edge of the step (y 0–1px). */
.steps li {
  position: relative;
  padding: 2.2rem clamp(1rem, 2vw, 2rem) 0 0;
  --ridge-x: 2.4rem;
  --ridge-w: 53px;
  --ridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='53' height='19'%3E%3Cpath d='M0 18.5C6.8 11.4 17.8 0.5 21.5 0.5C24 0.5 28.9 5.7 33.6 11.2C35.8 9.9 37.7 7.5 40.4 7.5C43.2 7.5 47.9 13.4 53 18.5' fill='none' stroke='%23d1a851' stroke-opacity='.28'/%3E%3C/svg%3E");
}

.steps li:nth-child(2) {
  --ridge-w: 71px;
  --ridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='71' height='25'%3E%3Cpath d='M0 24.5C9.2 15.1 23.9 0.5 28.8 0.5C32.1 0.5 38.7 7.5 45 14.8C48 13.1 50.5 9.8 54.2 9.8C57.8 9.8 64.2 17.7 71 24.5' fill='none' stroke='%23d1a851' stroke-opacity='.28'/%3E%3C/svg%3E");
}

.steps li:nth-child(3) {
  --ridge-w: 88px;
  --ridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='31'%3E%3Cpath d='M0 30.5C11.3 18.7 29.6 0.5 35.7 0.5C39.8 0.5 47.9 9.2 55.8 18.4C59.4 16.2 62.6 12.1 67.1 12.1C71.7 12.1 79.6 22 88 30.5' fill='none' stroke='%23d1a851' stroke-opacity='.28'/%3E%3C/svg%3E");
}

.steps li:nth-child(4) {
  --ridge-w: 106px;
  --ridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='106' height='37'%3E%3Cpath d='M0 36.5C13.7 22.4 35.6 0.5 42.9 0.5C48 0.5 57.7 10.9 67.2 21.9C71.6 19.4 75.4 14.4 80.9 14.4C86.4 14.4 95.9 26.3 106 36.5' fill='none' stroke='%23d1a851' stroke-opacity='.28'/%3E%3C/svg%3E");
}

.steps li:nth-child(5) {
  --ridge-w: 124px;
  --ridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='124' height='43'%3E%3Cpath d='M0 42.5C16 26 41.7 0.5 50.2 0.5C56.1 0.5 67.5 12.7 78.6 25.5C83.8 22.5 88.2 16.7 94.6 16.7C101 16.7 112.1 30.7 124 42.5' fill='none' stroke='%23d1a851' stroke-opacity='.28'/%3E%3C/svg%3E");
}

/* box from 48px above the step to 5px below its top edge: room for the highest ridge
   (43px) and the 9px dot centred on the line */
.steps li::after {
  content: "";
  position: absolute;
  top: -48px;
  left: 0;
  width: 100%;
  height: 53px;
  background:
    radial-gradient(circle closest-side, var(--gold) calc(100% - 1px), transparent) left bottom / 9px 9px no-repeat,
    linear-gradient(var(--line), var(--line)) left bottom 4px / var(--ridge-x) 1px no-repeat,
    var(--ridge) left var(--ridge-x) bottom 4px no-repeat,
    linear-gradient(var(--line), var(--line)) right bottom 4px / calc(100% - var(--ridge-x) - var(--ridge-w)) 1px no-repeat;
}

/* option: one mountain profile (data-line="profile", js/steps.js sets the class while
   the steps sit on one row). The whole line is --profile, an SVG with the logo ridge as
   wide as the list; its base runs along the steps' top edge. Each dot sits --rise px
   above the base, ringed and cut out of the line; a raised dot gets a dashed drop line
   to --drop px below the base, towards its number. */
/* pinned stage (js/steps.js, wide screens): the page stops for 160vh of scrolling while
   the logo draws and the steps appear */
.steps-pin--on {
  height: calc(100svh + 160vh);
}

/* phones and tablets with motion (js/steps.js): the stage pins longer, so each of the
   five steps gets its own stretch of scrolling */
.steps-pin--on.steps-pin--tabs {
  height: calc(100svh + 280vh);
}

/* there the step shows its own number; the dots stay as touch targets, the drawn line
   replaces the faint profile, and the steps' fades follow the scroll (no transition) */
.steps__nav.steps__nav--scroll {
  background: none;
}

.steps__nav.steps__nav--scroll button {
  font-size: 0;
}

.steps.steps--scroll li {
  transition: none;
}

/* the pinned phone stage is filled, not top-heavy: the block sits centred below the bar,
   the drawing runs almost to the screen edges (the gutter is given back to it) and the
   step is set larger */
.steps-pin--on.steps-pin--tabs .steps-pin__stage {
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 1rem;
}

.steps__nav.steps__nav--scroll {
  margin: 0 calc(-1 * var(--gutter) + 0.75rem) 1.2rem;
}

.steps.steps--scroll h3 {
  font-size: 1.8rem;
}

.steps.steps--scroll p {
  font-size: 1.02rem;
  line-height: 1.6;
}

/* from the top, a fixed gap below the bar: centred, tall screens left ~300px of empty
   stage between the section text and the logo */
.steps-pin--on .steps-pin__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: calc(4.6rem + clamp(1.5rem, 4vh, 3rem));
}

/* the logo above the steps (js/steps.js sets the padding to its height): ridge line,
   sun behind the mountains, arc */
.steps--profile {
  position: relative;
}

.steps__logo {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: visible;
  pointer-events: none;
}

/* the browser's [hidden] rule covers HTML elements only, not an <svg> (T9) */
.steps__logo[hidden] {
  display: none;
}

.steps__ridge {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: 0.45;
}

.steps__arc {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: 0.7;
  stroke-width: 1.5px;
  stroke-linecap: round;
}

.steps__sun {
  fill: var(--gold-soft);
  fill-opacity: 0.9;
}

/* while drawing, a step (its dot and its text) appears when the line reaches it */
.steps--drawing li {
  opacity: 0;
  translate: 0 0.8rem;
  transition:
    opacity 0.6s var(--ease),
    translate 0.6s var(--ease);
}

.steps--drawing li.is-on {
  opacity: 1;
  translate: none;
}

.steps--profile li::after {
  top: calc(-9px - var(--rise));
  left: -5px;
  width: 19px;
  /* from the ring's top to --drop below the base, at least the ring itself */
  height: calc(9.5px + var(--rise) + max(9.5px, var(--drop)));
  background:
    radial-gradient(circle, var(--gold) 0 4px, var(--ink) 4.75px 7.5px, rgba(209, 168, 81, 0.35) 8px 8.75px, transparent 9.25px) center top / 19px 19px no-repeat,
    repeating-linear-gradient(to bottom, rgba(209, 168, 81, 0.45) 0 3px, transparent 3px 7px) center bottom / 1px calc(100% - 21px) no-repeat;
}

/* phones and tablets (js/steps.js): the profile is the navigation, numbered dots on the
   ridge; the list shows one step at a time. All steps share one grid cell, so the panel
   keeps the height of the longest step and nothing below it jumps. */
.steps__nav {
  position: relative;
  margin-bottom: 0.6rem;
  background: var(--profile) left top var(--ridge-top) no-repeat;
}

.steps__nav button {
  /* a 44px-wide touch target; the dot (::before) sits 42px down, on the line, with the
     number above it in the kicker style */
  position: absolute;
  width: 44px;
  height: 62px;
  margin: -42px 0 0 -22px;
  padding: 6px 0 0 0.16em;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border: 0;
  background: none;
  color: var(--text-soft);
  font: 600 0.68rem/1 var(--sans);
  letter-spacing: 0.16em;
  font-variant-numeric: lining-nums tabular-nums;
  cursor: pointer;
  transition: color 0.3s;
}

/* the same ringed dot as on wide screens, cut out of the line; the chosen step gets a
   gold ring and grows a little */
.steps__nav button::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 50%;
  width: 19px;
  height: 19px;
  margin: -9.5px 0 0 -9.5px;
  background: radial-gradient(circle, var(--gold) 0 4px, var(--ink) 4.75px 7.5px, rgba(209, 168, 81, 0.35) 8px 8.75px, transparent 9.25px);
  transition: transform 0.3s var(--ease);
}

.steps__nav button[aria-pressed="true"] {
  color: var(--gold);
}

.steps__nav button[aria-pressed="true"]::before {
  background: radial-gradient(circle, var(--gold) 0 4px, var(--ink) 4.75px 7.25px, var(--gold) 7.75px 8.75px, transparent 9.25px);
  transform: scale(1.3);
}

.steps__nav button:focus-visible,
.steps__next:focus-visible {
  outline: 1px solid var(--gold-soft);
  outline-offset: 3px;
}

.steps.steps--tabs {
  grid-template-columns: 1fr;
  padding-top: 0;
}

/* phones and tablets with the drawn logo above all steps (js/steps.js, STILL): the logo
   is the line, so the steps drop their own small ridges */
.steps.steps--stacked {
  padding-top: 0;
  row-gap: 2.4rem;
}

.steps.steps--stacked li {
  padding-top: 0;
}

.steps.steps--stacked li::after {
  display: none;
}

.steps.steps--tabs li {
  grid-area: 1 / 1;
  padding-top: 1.2rem;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s;
}

.steps.steps--tabs li.is-active {
  visibility: visible;
  opacity: 1;
}

.steps.steps--tabs li::after {
  display: none;
}

.steps__next:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.8rem;
  width: 100%;
  min-height: 44px;
  margin-top: 1.6rem;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--text-soft);
  font: 300 0.95rem/1.4 var(--sans);
  text-align: left;
  cursor: pointer;
}

/* small gold caps label (the ride headings repeat it: .chain h3 comes later) */
.steps__next span,
.chain__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.steps__next i {
  font-style: normal;
  color: var(--gold-soft);
  transition: transform 0.3s var(--ease);
}

.steps__next:hover i {
  transform: translateX(4px);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1.2rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
}

.steps h3 {
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

/* ---- CHANNELS (non-scroll break): denser tiles with an icon label and a metric ---- */
.channels article {
  padding: 2rem 1.6rem;
}

.channels h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

/* the platform's own logo in its colours (D-75): recognised without reading */
.channels__logo {
  flex: none;
  width: 30px;
  height: 30px;
}

/* three channels since TikTok left (D-75): one row of three, one column on phones */
.channels .tiles {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
  .channels .tiles {
    grid-template-columns: 1fr;
  }
}

/* ---- PHONES: iPhone-style mockups (social proof wall) ----
   The figure is the phone: screen image + caption overlay; the island is ::before. */
.phones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

/* swipe cue, only on touch screens where the phones become a swipe row (<=1000px) */
.phones__hint {
  display: none;
}

.phone {
  position: relative;
  aspect-ratio: 9/19.5;
  border-radius: 2.4rem;
  overflow: hidden;
  background: var(--ink-deep);
  border: 2px solid var(--ink-2);
  box-shadow:
    0 2px 0 #000 inset,
    0 30px 60px -20px rgba(0, 0, 0, 0.75),
    0 0 0 6px rgba(var(--ink-2-rgb), 0.6);
}

.phone::before {
  /* dynamic island */
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 30%;
  height: 1.15rem;
  background: #000;
  border-radius: 1rem;
}

.phone img,
.member__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* the caption sits at the bottom of the screen, as in a real reel: badge, title and line
   end just above the bottom edge; the top padding is room for the gradient (Raffaele,
   2026-10-26) */
.phone figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 3.5rem 0.9rem 1.1rem;
  background: linear-gradient(0deg, rgba(var(--ink-deep-rgb), 0.9), transparent);
}

.phone figcaption>span {
  /* format badge (REEL, STORY) */
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--gold);
  color: var(--ink);
  padding: 0.28em 0.6em;
  border-radius: 4px;
}

.phone figcaption p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.phone figcaption b {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}

/* ---- CHARTS (figures section): a card with a readout, a plot of buttons, an axis,
   a legend, a note and the source. The plot is static HTML; js/evidence.js only adds
   the readout on hover/tap, the view toggle and the bar growth (.chart--wait). ---- */
.chart {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--ink-2-rgb), 0.7), rgba(var(--ink-rgb), 0.4));
  padding: clamp(1.2rem, 3vw, 2.4rem);
}

.chart__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.chart__readout {
  /* fixed height (figure + two lines): a changing readout must not move the plot */
  height: 6.4rem;
  overflow: hidden;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.chart__readout b {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.05;
  color: var(--gold-soft);
}

.chart__plot {
  position: relative;
  height: clamp(220px, 30vw, 320px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(4px, 1.2vw, 14px);
  align-items: end;
  margin-left: 2.8rem;
}

.chart__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chart__grid span {
  position: absolute;
  left: -2.8rem;
  right: 0;
  border-top: 1px solid rgba(243, 237, 225, 0.07);
  font-size: 0.66rem;
  line-height: 0;
  color: rgba(243, 237, 225, 0.35);
  pointer-events: none;
}

.chart__axis {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(4px, 1.2vw, 14px);
  margin: 0.7rem 0 0 2.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(243, 237, 225, 0.5);
}

.chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.6rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.chart__key::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 10px;
  margin-right: 0.5rem;
  vertical-align: middle;
  background: currentColor;
}

.chart__key--fill::before {
  background: rgba(236, 214, 162, 0.55);
}

.chart__key--empty::before {
  background: none;
  border: 1px solid rgba(243, 237, 225, 0.25);
}

.chart__key--typ::before {
  background: rgba(243, 237, 225, 0.35);
}

.chart__key--top::before {
  background: var(--gold);
}

.chart__note {
  margin-top: 1.4rem;
  max-width: 70ch;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.chart__source {
  margin-top: 1.2rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgba(243, 237, 225, 0.4);
}

/* plot buttons: the text is the accessible name, the bars are drawn with CSS */
.month,
.level {
  position: relative;
  height: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.month:focus-visible,
.level:focus-visible {
  outline: none;
}

/* month: ::before = all beds (outline), ::after = occupied beds (--v %) */
.month {
  font-size: 0;
  color: transparent;
}

.month::before,
.month::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.month::before {
  top: 0;
  border: 1px solid rgba(243, 237, 225, 0.08);
  border-bottom: 0;
  transition: border-color 0.3s;
}

.month::after {
  height: calc(var(--v) * 1%);
  background: linear-gradient(180deg, rgba(236, 214, 162, 0.55), rgba(209, 168, 81, 0.25));
  transition: height 0.9s var(--ease);
}

.month--peak::after {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}

.month--quiet::after {
  background: linear-gradient(180deg, rgba(243, 237, 225, 0.32), rgba(243, 237, 225, 0.1));
}

.month:hover::before,
.month:focus-visible::before,
.month[aria-pressed="true"]::before {
  border-color: var(--gold);
}

/* level: a typical post and the best 10 % side by side (--h % of the scale) */
.chart__plot--levels,
.chart__axis--levels {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 2.4vw, 32px);
}

.level {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(243, 237, 225, 0.45);
}

.level::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.level:hover::after,
.level:focus-visible::after,
.level[aria-pressed="true"]::after {
  border-color: var(--gold);
}

.level--none {
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed rgba(243, 237, 225, 0.3);
}

.level__typ,
.level__top {
  position: relative;
  width: min(38%, 46px);
  height: calc(var(--h) * 1%);
  transition: height 0.9s var(--ease);
}

.level__typ {
  background: rgba(243, 237, 225, 0.35);
}

.level__top {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}

.level i {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 0.35rem;
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--paper);
}

.level__typ i {
  font-size: 0.75rem;
  color: rgba(243, 237, 225, 0.55);
}

.chart__axis--levels {
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.chart__axis--levels b {
  display: block;
  font-weight: 600;
  color: var(--text-soft);
}

/* growth: four lines in a 52 × 100 viewBox, labels at their end points */
.chart__plot--growth {
  display: block;
}

.chart__plot--growth svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart__plot--growth polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart__ends span {
  position: absolute;
  right: 0.4rem;
  transform: translateY(-120%);
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

.chart__axis--growth {
  display: flex;
  justify-content: space-between;
}

.line-1 {
  --c: rgba(243, 237, 225, 0.3);
  color: var(--c);
}

.line-2 {
  --c: rgba(243, 237, 225, 0.55);
  color: var(--c);
}

.line-3 {
  --c: var(--gold);
  color: var(--c);
}

.line-4 {
  --c: var(--gold-soft);
  color: var(--c);
}

/* in the legend the text is neutral and the swatch takes the line colour */
.chart__legend [class*="line-"] {
  color: var(--text-soft);
}

.chart__legend [class*="line-"]::before {
  height: 2px;
  background: var(--c);
}

/* bars start at zero until the chart scrolls into view (set by js/evidence.js) */
.chart--wait .month::after,
.chart--wait .level__typ,
.chart--wait .level__top {
  height: 0;
}

/* view toggle (pill buttons) */
.toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toggle button {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: none;
  border: 1px solid rgba(243, 237, 225, 0.22);
  border-radius: 999px;
  padding: 0.75em 1.2em;
  cursor: pointer;
  transition: 0.3s var(--ease);
}

.toggle button:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.toggle button[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ---- CHAIN: seen first → booked direct → commission saved. A vertical rail on the left
   (a ringed number per link, ::before, and a gold line down to the next one, ::after);
   per link the sourced fact and our answer ("Was wir tun") side by side, stacked on
   narrow screens. The scroll animation is at the end of this block ---- */
.chain {
  list-style: none;
  margin: 3.4rem 0;
  counter-reset: step;
}

.chain li {
  --rail: 2.6rem;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.6rem clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: 0 0 4.2rem calc(var(--rail) + clamp(1.4rem, 3vw, 2.6rem));
}

.chain li:last-child {
  padding-bottom: 0;
}

.chain li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--rail);
  height: var(--rail);
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--gold);
}

/* the line from this link's number down to the next one */
.chain li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--rail) + 0.6rem);
  bottom: 0.6rem;
  left: calc(var(--rail) / 2 - 0.5px);
  width: 1px;
  background: linear-gradient(var(--gold), var(--line));
  transform-origin: top;
}

.chain h3 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.chain .metric {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.chain .metric b {
  display: block;
  margin-bottom: 0.5rem;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.chain small {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.66rem;
  color: rgba(243, 237, 225, 0.38);
}

.chain__answer {
  padding: 1.6rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(243, 237, 225, 0.025);
  font-size: 0.95rem;
  color: var(--text-soft);
}

.chain__label {
  margin-bottom: 0.8rem;
}

.chain a,
.contact__note a,
.calc__nojs a {
  color: var(--gold-soft);
  border-bottom: 1px solid var(--line);
}

/* scroll animation (CSS only): the fact comes in, then its answer, then the line draws
   down to the next link while the link scrolls up the screen. Each link's own view
   timeline drives its parts, so the order follows the reader. Without support or with
   reduced motion everything is simply shown */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chain li {
      view-timeline: --link block;
    }

    .chain li::before,
    .chain__fact {
      animation: chain-in linear both;
      animation-timeline: --link;
      animation-range: entry 5% entry 50%;
    }

    .chain__answer {
      animation: chain-in linear both;
      animation-timeline: --link;
      animation-range: entry 30% entry 75%;
    }

    .chain li:not(:last-child)::after {
      animation: chain-line linear both;
      animation-timeline: --link;
      /* done when the link's bottom reaches the screen edge, i.e. as the next link enters */
      animation-range: entry 55% entry 100%;
    }
  }
}

@keyframes chain-in {
  from {
    opacity: 0;
    translate: 0 1.4rem;
  }

  to {
    opacity: 1;
    translate: none;
  }
}

@keyframes chain-line {
  from {
    scale: 1 0;
  }

  to {
    scale: 1 1;
  }
}

/* ---- BERGFAHRT (js/bergfahrt.js): the chain as a cable car ride. A tall full-bleed
   section with a pinned stage: the canvas mountain fills it, the active link (.is-active)
   sits on the left over a dark gradient (phones: below the mountain, at the bottom), the
   progress 01–03 on the right, the calculator CTA at the top of the ride (.ride--top) ---- */
.ride {
  position: relative;
  width: 100vw;
  height: 340vh;
  margin: 3.4rem 0 3.4rem calc(50% - 50vw);
}

.ride__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.ride canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ride__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--ink-rgb), 0.96) 0%, rgba(var(--ink-rgb), 0.85) 32%, rgba(var(--ink-rgb), 0) 52%);
}

/* the list in the stage: the three links on top of each other, one shown at a time */
.chain.chain--ride {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(var(--gutter), calc(50vw - var(--container) / 2 + var(--gutter)));
  width: min(30rem, 40%);
  margin: 0;
  display: grid;
  translate: 0 -50%;
}

.chain.chain--ride li {
  grid-area: 1 / 1;
  display: block;
  padding: 0;
  counter-increment: step;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.2rem);
}

/* opacity, rise and visibility follow the scroll (js/bergfahrt.js); the first link is
   shown before the first frame */
.chain--ride li.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.chain--ride li::before,
.chain--ride li::after {
  display: none;
}

.chain--ride li>* {
  animation: none;
}

.chain--ride h3 {
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.chain--ride h3::before {
  content: counter(step, decimal-leading-zero) " · ";
}

.chain--ride .metric b {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
}

.chain--ride .chain__answer {
  margin-top: 1.6rem;
  padding: 0 0 0 1.2rem;
  border: 0;
  border-left: 1px solid var(--gold);
  border-radius: 0;
  background: none;
}

.chain--ride .chain__label {
  margin-bottom: 0.5rem;
  color: var(--gold-soft);
}

.ride__dots {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: var(--edge);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  translate: 0 -50%;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(243, 237, 225, 0.4);
}

.ride__dots .on {
  color: var(--gold);
}

.ride__cta {
  position: absolute;
  z-index: 2;
  right: var(--edge);
  bottom: clamp(2rem, 8vh, 4rem);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.6s var(--ease),
    visibility 0.6s;
}

.ride--top .ride__cta {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .ride {
    height: 300vh;
  }

  .ride__stage::before {
    inset: 40% 0 0;
    background: linear-gradient(rgba(var(--ink-rgb), 0), rgba(var(--ink-rgb), 0.92) 40%);
  }

  .chain.chain--ride {
    top: auto;
    bottom: 1.6rem;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    translate: none;
    align-items: end;
  }

  .chain--ride .metric b {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }

  .chain--ride .chain__answer {
    margin-top: 1rem;
  }

  .ride__dots {
    display: none;
  }

  /* on phones the third link's own "Rechner" link is the way on */
  .ride__cta {
    display: none;
  }
}

/* ---- CALCULATOR: tabs per business type, then inputs left, result card right ---- */
.calc-tabs {
  margin-bottom: 2.4rem;
}

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: start;
}

.calc[hidden] {
  display: none;
}

/* label and value on one row, the slider and its notes below (the <output> sits next
   to the <label>, not inside it, so the slider is named by the label alone) */
.range {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  column-gap: 1rem;
  margin-bottom: 1.9rem;
}

.range>* {
  grid-column: 1/-1;
}

.range label {
  grid-column: 1;
  margin-bottom: 0.8rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.range output {
  grid-column: 2;
  margin-bottom: 0.8rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--paper);
}

.range small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  color: rgba(243, 237, 225, 0.38);
}

/* --p = filled share of the track, set by js/evidence.js */
.range input {
  --p: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}

.range input::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--gold) var(--p), rgba(243, 237, 225, 0.18) var(--p));
}

.range input::-moz-range-track {
  height: 2px;
  background: linear-gradient(90deg, var(--gold) var(--p), rgba(243, 237, 225, 0.18) var(--p));
}

.range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold-soft);
  transition: transform 0.2s var(--ease);
}

.range input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold-soft);
}

.range input:focus-visible::-webkit-slider-thumb {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(209, 168, 81, 0.25);
}

.calc details {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

.calc summary {
  list-style: none;
  cursor: pointer;
  margin-bottom: 1.6rem;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.calc summary::-webkit-details-marker {
  display: none;
}

.calc summary::after {
  content: " +";
}

.calc details[open] summary::after {
  content: " –";
}

.calc__result {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--ink-2-rgb), 0.85), rgba(var(--ink-rgb), 0.6));
  padding: clamp(1.4rem, 3vw, 2.6rem);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.calc__total {
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.8rem;
  font-size: 0.8rem;
  color: rgba(243, 237, 225, 0.5);
}

.calc__total b {
  display: block;
  margin: 0.4rem 0 0.5rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1;
  color: var(--gold-soft);
}

/* the scenario (D-85): three equal buttons on top of the result card, the assumptions
   spelled out below them */
.calc__result .calc__scenario {
  margin-bottom: 2.2rem;
}

.calc__scenario .choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.calc__scenario .choice span {
  padding: 0.55rem 0.4rem;
  font-size: 0.85rem;
  text-align: center;
}

.calc__scenario small {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(243, 237, 225, 0.5);
}

.calc__out {
  margin-bottom: 1.8rem;
}

.calc__out b {
  margin-right: 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--paper);
}

.calc__out small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(243, 237, 225, 0.5);
}

.calc__note {
  margin: 1.6rem 0 1.8rem;
  font-size: 0.7rem;
  line-height: 1.55;
  color: rgba(243, 237, 225, 0.4);
}

/* ---- VISIBILITY CHECK (D-78, js/check.js): the calculator's grid and result card, the
   form's one-click choices; a bar with one segment per question and the tips that apply ---- */
.check__form {
  display: grid;
  gap: 1.8rem;
  align-content: start;
}

/* one question at a time in a card (js/check.js adds .check--steps): on top the step and
   a progress bar, then the question and its answers as wide buttons, Zurück/Weiter below;
   after the last answer the card shows the result instead (.check--done) */
.check--steps {
  display: block;
  max-width: 46rem;
}

.check--steps .check__form {
  gap: 1.4rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--ink-2-rgb), 0.85), rgba(var(--ink-rgb), 0.6));
}

.check--steps .check__result,
.check--done .check__form {
  display: none;
}

.check--done .check__result {
  display: block;
}

.check__head {
  display: grid;
  gap: 0.8rem;
}

.check__step {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.check__progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  list-style: none;
}

.check__progress li {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color 0.4s;
}

.check__progress li.is-done {
  background: var(--gold);
}

.check__progress li.is-now {
  background: var(--gold-soft);
}

.check__form .choice-group[hidden] {
  display: none;
}

.check__form .choice-group legend {
  margin-bottom: 1.2rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
}

/* the answers: one wide button each, with an arrow that says "choose and go on" */
.check--steps .choices {
  flex-direction: column;
  gap: 0.6rem;
}

.check--steps .choice span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-size: 1rem;
}

.check--steps .choice span::after {
  content: "→";
  color: var(--gold);
  opacity: 0.45;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.check--steps .choice:hover span::after,
.check--steps .choice input:checked+span::after {
  opacity: 1;
  transform: translateX(3px);
}

.check__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.check__nav [data-dir="1"] {
  margin-left: auto;
}

.check__go {
  padding: 0.4rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font: inherit;
  font-size: 0.85rem;
  color: var(--gold-soft);
  cursor: pointer;
}

.check__go:hover {
  border-color: var(--gold);
}

.check__go[hidden] {
  display: none;
}

.check__go:disabled {
  opacity: 0.35;
  cursor: default;
}

/* in the result card: back to the first question */
.check__again {
  display: block;
  margin-top: 1.4rem;
}

.check__level {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.check__bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin-bottom: 1.6rem;
  list-style: none;
}

.check__bar li {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color 0.4s;
}

.check__bar li[data-points="1"] {
  background: rgba(209, 168, 81, 0.55);
}

.check__bar li[data-points="2"] {
  background: var(--gold);
}

.check__tips {
  display: grid;
  gap: 0.9rem;
  list-style: none;
}

.check__tips:empty {
  display: none;
}

.check__tips li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* the same gold dash as the scope lists */
.check__tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.8rem;
  height: 1px;
  background: var(--gold);
}

/* ---- TEAM ---- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  /* three cards at the size the two founder cards had (~370px each) */
  max-width: 1150px;
}

.member__img {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4/5;
  background: var(--ink-2);
}

.member__img img {
  filter: grayscale(1) contrast(1.04);
  transition:
    transform 1s var(--ease),
    filter 0.6s;
}

.member:hover .member__img img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.02);
}

/* placeholder until the photo exists: initials on the card background */
.member figcaption {
  padding: 1.1rem 0.2rem 0;
}

.member h3,
.member .member__name {
  /* on the Über uns page the names are h2s (the page's h1 is above them) */
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.member p {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* what each person brings: plain text under the role */
.member .member__bio {
  margin-top: 0.7rem;
  max-width: 34ch;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
}

/* ---- REGIONS marquee (decorative) ----
   Two identical lists side by side, each moving left by its own width, so the
   second list takes the first one's place and the loop is seamless. Each list
   must be at least as wide as the viewport: one repetition of the eight names is
   ~1700px at the largest font size, so each list holds two (~3400px). The
   trailing padding equals the gap, so the seam looks like any other gap.
   41s keeps the earlier speed (~82px/s, D-69 list measured 3390px at 1440). */
.regions {
  display: flex;
  overflow: hidden;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.regions ul {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  list-style: none;
  animation: marq 41s linear infinite;
  will-change: transform;
}

.regions li {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-style: italic;
  color: rgba(243, 237, 225, 0.5);
}

.regions li::after {
  content: "·";
  font-size: 1rem;
  font-style: normal;
  color: var(--gold);
}

@keyframes marq {
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

/* ---- CONTACT (closing call to action: centred, larger heading) ---- */
.contact {
  --section-y: clamp(3rem, 6vh, 5rem);
}

.contact>header {
  margin-inline: auto;
  text-align: center;
}

.contact h2 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.contact h2+p {
  margin-inline: auto;
}

/* pages that open with their own h1 in a section header (Über uns, Kontakt): the lead
   below it as under a section's h2 */
.section>header h1+p {
  max-width: 60ch;
  margin-top: 1.4rem;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.contact h1+p {
  margin-inline: auto;
}

/* the address for anyone who would rather write directly (Kontakt page, D-76) */
.contact__direct {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.contact__direct a {
  color: var(--gold-soft);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.contact__direct a:hover {
  border-color: var(--gold);
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  max-width: 640px;
  margin: 0 auto;
}

.field {
  position: relative;
}

.field--full {
  grid-column: 1/-1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.9rem 0;
  resize: none;
  transition:
    border-color 0.4s,
    box-shadow 0.4s;
}

/* focus: the underline turns gold and doubles to 2px (the shadow adds the second pixel),
   a clear cue for keyboard users without a box around the field (A3) */
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 1px 0 var(--gold);
}

/* select: same underline field, a small gold caret instead of the native arrow */
.field select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d1a851' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.2rem center;
}

.field select option {
  background: var(--ink);
  color: var(--paper);
}

/* customizable select (Chromium 135+): the open list becomes a dark panel in the site's
   style (hairline, padding, gold for hover and the chosen option) instead of the native
   white-framed list. Other browsers skip this block and keep the native list. */
@supports (appearance: base-select) {

  .field select,
  .field select::picker(select) {
    appearance: base-select;
  }

  .field select {
    background-image: none;
  }

  /* the gold caret, turned up while the list is open */
  .field select::picker-icon {
    content: "";
    width: 12px;
    height: 8px;
    margin-right: 0.2rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d1a851' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
    transition: rotate 0.3s var(--ease);
  }

  .field select:open::picker-icon {
    rotate: 180deg;
  }

  .field select::picker(select) {
    margin: 0.5rem 0;
    padding: 0.4rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--ink-2);
    color: var(--paper);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.55);
    opacity: 0;
    translate: 0 -0.4rem;
    transition:
      opacity 0.25s var(--ease),
      translate 0.25s var(--ease),
      display 0.25s allow-discrete,
      overlay 0.25s allow-discrete;
  }

  .field select:open::picker(select) {
    opacity: 1;
    translate: none;
  }

  @starting-style {
    .field select:open::picker(select) {
      opacity: 0;
      translate: 0 -0.4rem;
    }
  }

  .field select option {
    padding: 0.75rem 1rem;
    background: none;
    color: var(--text-soft);
    font-size: 0.95rem;
    transition:
      background-color 0.2s,
      color 0.2s;
  }

  .field select option:hover,
  .field select option:focus-visible {
    outline: none;
    background: rgba(209, 168, 81, 0.12);
    color: var(--paper);
  }

  .field select option:checked {
    color: var(--gold-soft);
  }

  /* the tick of the chosen option at the end of the row, in gold */
  .field select option::checkmark {
    order: 1;
    margin-left: auto;
    color: var(--gold);
  }
}

.field label {
  position: absolute;
  left: 0;
  top: 0.9rem;
  color: rgba(243, 237, 225, 0.55);
  font-size: 1rem;
  pointer-events: none;
  transition: 0.3s var(--ease);
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field select:focus+label,
.field select:valid+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label {
  top: -0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact__form .btn {
  grid-column: 1/-1;
  justify-self: start;
  margin-top: 0.6rem;
}

/* without JS the calculator cannot react: a note replaces tabs and sliders */
html:not(.js) .calc-tabs,
html:not(.js) .calc {
  display: none;
}

.calc__nojs {
  max-width: 60ch;
  color: var(--text-soft);
}

/* without JS nothing can be sent (D-04): a note with the address replaces the button */
html:not(.js) .contact__form .btn {
  display: none;
}

/* extra fields per business type (<fieldset>): their fields join the form grid when shown */
.contact__extra {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact__extra:not([hidden]) {
  display: contents;
}

/* its question is the step's title (D-97): across the step's grid like the step legends */
.contact__extra>legend {
  grid-column: 1/-1;
}

/* ---- ENQUIRY IN FOUR STEPS (D-74, D-97, js/contact.js): progress, steps, one-click choices.
   Without JS every step shows, one after the other, and the step buttons are hidden ---- */
.wizard__progress {
  grid-column: 1/-1;
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  list-style: none;
  counter-reset: step;
}

.wizard__progress li {
  flex: 1;
  padding-top: 0.7rem;
  border-top: 2px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 237, 225, 0.55);
  counter-increment: step;
  transition:
    border-color 0.4s,
    color 0.4s;
}

.wizard__progress li::before {
  content: counter(step) " · ";
}

.wizard__progress li.is-done {
  border-color: var(--gold);
}

.wizard__progress li[aria-current] {
  border-color: var(--gold);
  color: var(--gold-soft);
}

html:not(.js) .wizard__progress {
  display: none;
}

/* four labels do not fit a phone's width (they broke into two lines): the numbers only,
   the names stay for screen readers; the step's title says what is asked */
@media (max-width: 480px) {
  .wizard__progress li {
    font-size: 0;
  }

  .wizard__progress li::before {
    content: counter(step);
    font-size: 0.7rem;
  }
}

.wizard__step {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.wizard__step[hidden] {
  display: none;
}

html:not(.js) .wizard__step+.wizard__step {
  margin-top: 1.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

/* each step on the page's centre axis, like the header above and the team below (D-97):
   title, short choices and buttons centred; the cards and the fields keep the full width.
   margin-inline: auto centres a step's own <legend> */
.wizard__title {
  padding: 0;
  margin-inline: auto;
  margin-bottom: 1rem;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  color: var(--paper);
  outline: none;
}

.wizard__hint {
  grid-column: 1/-1;
  margin-top: -1rem;
  font-size: 0.85rem;
  color: rgba(243, 237, 225, 0.55);
}

.wizard__nav {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.wizard__step .choices {
  justify-content: center;
}

/* a question with one-click answers: the radio stays in the label (focusable, invisible),
   its <span> is the button */
.choice-group {
  grid-column: 1/-1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  padding: 0;
  margin-bottom: 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.choices {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: block;
  height: 100%;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.9rem;
  color: var(--text-soft);
  transition:
    border-color 0.3s,
    background-color 0.3s,
    color 0.3s;
}

.choice:hover span {
  border-color: rgba(209, 168, 81, 0.6);
  color: var(--paper);
}

.choice input:checked+span {
  border-color: var(--gold);
  background: rgba(209, 168, 81, 0.12);
  color: var(--gold-soft);
}

.choice input:focus-visible+span {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* the business type: four cards, a name and a line each */
.choices--cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.choice--card span {
  padding: 1.2rem 1.3rem;
}

.choice--card b {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--paper);
}

.choice--card input:checked+span b {
  color: var(--gold-soft);
}

@media (max-width: 480px) {
  .choices--cards {
    grid-template-columns: 1fr;
  }
}

.contact__calc,
.contact__note,
.contact__error {
  grid-column: 1/-1;
  font-size: 0.8rem;
  color: rgba(243, 237, 225, 0.55);
}

.contact__calc span {
  color: var(--gold-soft);
}

.contact__error {
  color: #e8a0a0;
}

/* honeypot: off screen, still in the form */
.contact__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* confirmation after sending (native <dialog>, top layer above the page overlays) */
.dialog {
  max-width: min(32rem, calc(100% - 2.4rem));
  margin: auto;
  padding: clamp(1.8rem, 5vw, 3rem);
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--paper);
}

.dialog::backdrop {
  background: rgba(var(--ink-rgb), 0.7);
  backdrop-filter: blur(6px);
}

.dialog h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 1rem;
}

.dialog p:not(.kicker) {
  color: var(--text-soft);
}

.dialog .dialog__test {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(243, 237, 225, 0.5);
}

.dialog .btn {
  margin-top: 2rem;
}

/* ---- LEGAL pages and 404 (impressum.html, datenschutz.html, 404.html; D-90): in the
   site frame, the top and the heading come from .page-top ---- */
.legal header p:not(.kicker) {
  margin-top: 1.4rem;
  color: var(--text-soft);
}

/* the legal texts (Impressum, Datenschutz, D-86): one readable column */
.legal__text {
  max-width: 46rem;
  margin: 2.4rem 0 3.2rem;
}

.legal__text h2 {
  margin: 2.6rem 0 0.9rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
}

.legal__text h2:first-child {
  margin-top: 0;
}

.legal__text p,
.legal__text li {
  line-height: 1.7;
  color: var(--text-soft);
}

.legal__text p+p,
.legal__text p+ul {
  margin-top: 0.9rem;
}

.legal__text ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.legal__text a {
  color: var(--gold-soft);
  border-bottom: 1px solid var(--line);
}

/* an open point before the launch (build-dist.mjs --launch refuses "[TBD") */
.legal__tbd {
  padding: 0 0.2em;
  background: rgba(209, 168, 81, 0.18);
  color: var(--gold-soft);
}

/* the 404 is short: heading, text and its two buttons centred both ways in the height
   between the bar and the footer (the header's margin-bottom is the gap to the buttons) */
.legal--center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.legal--center>header {
  margin-inline: auto;
}

.legal--center header p:not(.kicker) {
  max-width: 52ch;
  margin-inline: auto;
}

.legal--center .hero__actions {
  justify-content: center;
}

/* ---- PLACEHOLDERS (D-38): where Nicolas's frames, images or video will go; the text
   names the shot that is wanted, so the page doubles as a shot list ---- */
.ph {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  aspect-ratio: var(--ratio, 16 / 9);
  padding: 1.5rem;
  border: 1px dashed var(--line);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.ph b {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* sourced figures on the segment pages: one card per figure, its source in small print */
.facts {
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.facts .metric {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.facts small {
  display: block;
  margin-top: 1rem;
  font-size: 0.66rem;
  line-height: 1.5;
  /* 0.55 on --ink = 5.5:1, the same as .foot__legal (A1) */
  color: rgba(243, 237, 225, 0.55);
}

/* a row of placeholders, as many columns as fit */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.6rem;
}

/* ---- SEGMENT PAGES (hotels-resorts/, bergbahnen/, wellness-thermen/, kontakt/): the
   opening screen has the media placeholder behind the copy, at the cine hero's place ---- */
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding: 7rem var(--edge) clamp(3rem, 10vh, 6rem);
}

.page-hero>.ph {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  place-content: start center;
  padding-top: 8rem;
  border-width: 0 0 1px;
}

.page-hero__copy {
  position: relative;
  max-width: 46rem;
}

.page-hero h1,
.contact h1,
.page-top h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-hero__copy>p:not(.kicker) {
  max-width: 52ch;
  margin: 1.4rem 0 2rem;
  font-size: 1.1rem;
  color: var(--text-soft);
}

/* the Kontakt page starts below the fixed bar */
.page-top {
  padding-top: calc(var(--section-y) + 6rem);
}

/* the closing call to action of pages without the form */
.contact .hero__actions {
  justify-content: center;
}

/* the page the visitor is on (D-73): in the bar a gold label with a gold line under it;
   "Start" leads home from every page */
.nav nav a[aria-current="page"] {
  position: relative;
  color: var(--gold-soft);
}

.nav nav a[aria-current="page"]:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.7em;
  height: 2px;
  background: var(--gold);
}

/* while js/nav.js turns the <nav> into the closed panel (two frames): no transition, or the
   panel would slide out once on every page load */
.nav--setup nav,
.nav--setup nav * {
  transition: none !important;
}

@media (max-width: 1000px) {

  /* in the open menu: the current page's row in gold with a gold dot at its end */
  .nav.nav--menu nav a[aria-current="page"] {
    color: var(--gold-soft);
  }

  .nav.nav--menu nav a[aria-current="page"]:not(.nav__cta)::after {
    top: 50%;
    bottom: auto;
    left: auto;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  /* the small contact/legal links end with their text: the dot goes into the gap after it */
  .nav.nav--menu nav .nav__meta a[aria-current="page"]::after {
    right: -0.8rem;
  }
}

/* ---- HOME HERO without scrub (D-64): one still frame behind the copy, where the canvas
   was; the portrait frame on phones held upright ---- */
.cine__still img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* phones held upright see a narrow strip of the wide image: keep the photographer
   (right third) in it */
@media (max-width: 767px) and (orientation: portrait) {
  .cine__still img {
    object-position: 84% 50%;
  }
}

/* the home's heading: one line shorter than the scenes' hero, so the copy fits on a
   laptop screen with room for the image */
.hero--still h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
}

/* ---- SEGMENT PAGE OPENING (D-64): the scene with the page's h1, a longer line than the
   home's, so a smaller size; the path to the page in place of the kicker ---- */
.hero.hero--page h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
}

.crumbs a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.crumbs a:hover {
  border-color: currentColor;
}

/* bright footage (snow) under the page title: stronger at the side and at the bottom,
   where the copy sits on wide screens and on phones */
.hero.hero--bright .cine__scrim {
  background:
    linear-gradient(90deg,
      rgba(var(--ink-deep-rgb), 0.86) 0%,
      rgba(var(--ink-deep-rgb), 0.5) 45%,
      rgba(var(--ink-deep-rgb), 0.12) 100%),
    linear-gradient(0deg, rgba(var(--ink-deep-rgb), 0.8), transparent 60%);
}

/* one h1 size on phones, the home hero's (.hero h1 in the ≤767px block): the segment
   openings, Über uns, Kontakt, the legal pages and 404 */
@media (max-width: 767px) {
  .hero.hero--page h1,
  .page-hero h1,
  .contact h1,
  .page-top h1 {
    font-size: clamp(2.4rem, 11vw, 3.3rem);
    line-height: 1.04;
  }
}

/* ---- CONTENT PATTERN (D-71): at a glance, scope, questions, the doors to the segment
   pages, the team strip. Each list starts on a gold hairline like .metrics ---- */
.glance__list,
.scope__cols,
.faq__list {
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

/* a header across the full width (D-77): kicker and title left, the lead right, so the
   text keeps a readable line length on wide screens; stacked below 1001px */
@media (min-width: 1001px) {
  .section--split>header {
    display: grid;
    grid-template-columns: 5fr 6fr;
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: end;
    max-width: none;
  }

  .section--split>header>.kicker,
  .section--split>header>h2 {
    grid-column: 1;
  }

  .section--split>header>h2+p {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
}

/* below the segment FAQs: the general questions are on Über uns */
.faq__more {
  margin-top: 2.4rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.faq__more a {
  color: var(--gold-soft);
  border-bottom: 1px solid var(--line);
}

.faq__more a:hover {
  border-color: var(--gold);
}

.glance__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}

.glance__list dt,
.people__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.glance__list dd {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.scope__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem 4rem;
}

.scope h3,
.faq h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.scope ul {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.scope li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* a short gold dash for what is included, a pale one for what is not */
.scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.8rem;
  height: 1px;
  background: var(--gold);
}

.scope__cols>div+div li::before {
  background: rgba(243, 237, 225, 0.35);
}

/* what the offer depends on, the second part of the scope section (D-81): its four factors
   use .metrics.facts, four in a row where they fit */
.scope__cost {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.scope__cost>p {
  max-width: 60ch;
  margin-bottom: 0.4rem;
  color: var(--text-soft);
}

.scope__cost .facts {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

/* the factors are figures, not list items: no dash, no indent (the .scope li rules) */
.scope__cost li {
  padding-left: 0;
}

.scope__cost li::before {
  display: none;
}

/* headings inside the content blocks: a heading's line height, not the body's */
.scope h3,
.faq h3,
.door h3 {
  line-height: 1.25;
}

/* phones: the four price factors two by two, the area cards as compact rows (image left,
   text right) instead of three tall cards one under the other */
@media (max-width: 640px) {
  .scope__cost .facts {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 1.2rem;
  }

  .scope__cost .metric b {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
  }

  .doors .doors__list {
    gap: 1rem;
  }

  .doors__list .door a {
    display: grid;
    grid-template-columns: 38% 1fr;
    column-gap: 1rem;
    align-items: start;
    padding-bottom: 1rem;
  }

  .doors__list .door img {
    grid-row: span 3;
    aspect-ratio: 4 / 5;
    margin-bottom: 0;
  }

  .doors__list .door h3 {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
  }

  .doors__list .door p {
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
  }
}

/* phones: the four example phones two by two instead of the swipe row (Raffaele,
   2026-10-22): all four in view, no hidden content; tablets keep the row */
@media (max-width: 640px) {
  .impact .phones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.8rem;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .impact .phone {
    border-radius: 1.6rem;
    box-shadow:
      0 2px 0 #000 inset,
      0 18px 36px -16px rgba(0, 0, 0, 0.75),
      0 0 0 4px rgba(var(--ink-2-rgb), 0.6);
  }

  .impact .phone::before {
    top: 0.5rem;
    height: 0.85rem;
  }

  .impact .phone figcaption {
    padding: 2.6rem 0.7rem 0.9rem;
  }

  .impact .phone figcaption b {
    font-size: 0.82rem;
  }

  .impact .phone figcaption p {
    font-size: 0.7rem;
  }

  .impact .phones__hint {
    display: none;
  }
}

/* touch targets of at least ~44px for the small text links (phones and tablets) */
@media (pointer: coarse) {

  .people__more,
  .crumbs a,
  .check__go {
    display: inline-block;
    padding-block: 0.8rem;
  }

  .crumbs a {
    margin-block: -0.8rem;
  }
}

/* the FAQ as an accordion (D-84): one question per row on a hairline, the answer opens
   on a click; the answers stay in the HTML (search engines, AI assistants, no JS) */
.faq__list {
  max-width: 52rem;
  padding-top: 0;
}

.faq__list details {
  border-bottom: 1px solid var(--line);
}

.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: "+";
  flex: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.faq__list details[open] summary::after {
  transform: rotate(45deg);
}

.faq__list summary:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.faq__list summary h3 {
  margin-bottom: 0;
}

.faq__list p {
  max-width: 60ch;
  padding-bottom: 1.5rem;
  line-height: 1.65;
  color: var(--text-soft);
}

/* the segment pages as cards: still, name, one line, a gold "more" */
.doors__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 1.6rem;
}

.doors--more .doors__list {
  max-width: 870px;
}

.door a {
  display: block;
  height: 100%;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.door img {
  width: 100%;
  /* auto: the height attribute would win over the ratio */
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 1.2rem;
  filter: saturate(0.85);
  transition: filter 0.6s;
}

.door a:hover img {
  filter: saturate(1.05);
}

.door h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.door p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.door__more {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transition: color 0.3s;
}

.door__more::after {
  content: " →";
}

.door a:hover .door__more {
  color: var(--gold-soft);
}

/* the people behind the enquiry (D-65, D-76): a strip under its buttons on every page
   but Über uns, which has the full team */
.people {
  max-width: 52rem;
  margin: 3.2rem auto 0;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  scroll-margin-top: calc(4.6rem + var(--section-y));
}

.people__title {
  margin-bottom: 1.4rem;
}

.people ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem 2.4rem;
}

.people li {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* "Web Designer & Developer" on one line */
  width: 12rem;
}

.people img {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(1) contrast(1.04);
}

/* first name and surname on two lines for all three, so the roles below line up */
.people b {
  width: min-content;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
}

.people li span {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.people__more {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--gold-soft);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 767px) {

  .scope__cols,
  .faq__list {
    grid-template-columns: 1fr;
  }
}

/* phones: the three people side by side, smaller, the roles may wrap */
@media (max-width: 640px) {
  .people ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .people li {
    width: auto;
  }

  .people img {
    width: 3.6rem;
    height: 3.6rem;
  }

  .people b {
    font-size: 1rem;
    line-height: 1.15;
  }

  .people li span {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }
}

/* ---- FOOTER: a full-width band like the nav (same --edge); both hairlines run
   from screen edge to screen edge ---- */
/* the content keeps to 68rem, centred, so the columns do not drift apart on large screens
   (Raffaele, 2026-10-26) */
.foot {
  --foot-pad: max(var(--edge), calc((100% - 68rem) / 2));
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  padding: 2.8rem var(--foot-pad) 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  /* clips the legal hairline (100vw, scrollbar included) to the footer's width */
  overflow: hidden;
}

/* the same white brand as in the nav, a link to the top; above the page overlays
   (vignette 9997, grain 9999) like the nav, so the symbol keeps its real colour */
.foot .brand {
  position: relative;
  z-index: 10000;
  justify-self: start;
  align-self: start;
}

/* three columns sized to their content, spread with equal gaps; the last one ends at
   the right edge */
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: 2rem;
}

.foot__cols p {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.foot__cols a,
.foot__cols span {
  display: block;
  font-size: 0.9rem;
  color: rgba(243, 237, 225, 0.66);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.foot__cols a:hover {
  color: var(--gold-soft);
}

.foot__cols a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

/* the social glyphs in one row (each column at most two rows). Platform glyphs stay
   monochrome (light, never gold): brand rules allow one-colour versions of the marks,
   not recoloured ones */
.foot__icons {
  display: flex;
  gap: 1.2rem;
  padding-block: 0.1rem;
}

.foot__icons svg {
  width: 20px;
  height: 20px;
  fill: rgba(243, 237, 225, 0.8);
}

.foot__legal {
  position: relative;
  grid-column: 1/-1;
  padding-top: 1.6rem;
  font-size: 0.76rem;
  color: rgba(243, 237, 225, 0.55);
}

/* the hairline runs from screen edge to screen edge, like the footer's top border, while
   the text stays in line with the content (Raffaele, 2026-10-26) */
.foot__legal::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  border-top: 1px solid var(--line);
}

/* ---- NARROW DESKTOP (1001–1400px): brand, five links and the CTA on one line; labels
   never wrap, a little tighter and smaller than on wide screens ---- */
@media (min-width: 1001px) and (max-width: 1400px) {
  .nav nav {
    gap: 1.4rem;
  }

  .nav nav a {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
  }
}

/* five links since "So arbeiten wir" (D-38): up to 1260px the bar needs tighter labels,
   a smaller brand and a slimmer CTA to keep everything on one line (measured: brand–links
   gap 13px at 1001, at least ~80px above 1260) */
@media (min-width: 1001px) and (max-width: 1260px) {
  .nav {
    gap: 0.8rem;
  }

  .nav nav {
    gap: 0.95rem;
  }

  .nav nav a {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .nav .nav__cta {
    padding: 0.65em 0.9em;
  }

  .nav .brand {
    font-size: 0.85rem;
  }
}

.nav .brand,
.nav nav a {
  white-space: nowrap;
}

/* ---- RESPONSIVE (1000px → 767px → 640px) ---- */
@media (max-width: 1000px) {

  /* without JS (no menu): only the CTA, as before */
  .nav:not(.nav--menu) nav a:not(.nav__cta) {
    display: none;
  }

  /* over a cine scene (js/nav.js) the bar fades into the soft shade: the frames stay
     whole, brand and toggle stay readable (contrast 7.4–9.7 over the ski frames) */
  .nav.nav--over-cine::before {
    opacity: 0;
  }

  .nav.nav--over-cine::after {
    opacity: 1;
  }

  .nav.nav--over-cine {
    border-bottom-color: transparent;
  }

  /* MENU (js/nav.js adds .nav--menu): the <nav> becomes a full-screen panel that slides
     in from the right, under the bar: brand and toggle stay on top of it (z-index -1
     inside the bar's stacking context). Links as full-width rows from under the bar,
     contact and legal links at the bottom (.nav__meta); the panel scrolls itself on
     very short screens */
  .nav--menu nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 7rem var(--edge) 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ink);
    transform: translateX(100%);
    visibility: hidden;
    /* closing: slide out, then hide */
    transition:
      transform 0.45s var(--ease),
      visibility 0s 0.45s;
  }

  .nav--menu nav>a:first-child {
    border-top: 1px solid var(--line);
  }

  .nav.nav--open {
    border-bottom-color: transparent;
  }

  .nav--open::before,
  .nav.nav--open::after {
    opacity: 0;
  }

  /* opening: visible at once (so the first link can take focus), then slide in */
  .nav--open nav {
    transform: none;
    visibility: visible;
    transition:
      transform 0.45s var(--ease),
      visibility 0s;
  }

  .nav--menu nav a:not(.nav__cta) {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    color: var(--paper);
  }

  /* each section a row between hairlines; the CTA below takes the same full width */
  .nav--menu nav>a:not(.nav__cta) {
    align-self: stretch;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
  }

  .nav--menu .nav__cta {
    align-self: stretch;
    margin-top: 2rem;
    padding: 1.25em 1.5em;
    border-color: var(--gold);
    background: var(--gold);
    color: var(--ink);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-align: center;
  }

  .nav--menu .nav__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.6rem;
    width: 100%;
    margin-top: auto;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
  }

  /* nav prefix: outweighs the large serif menu links */
  .nav--menu nav .nav__meta a {
    padding-block: 0.6rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-soft);
  }

  /* email and phone (D-86) a row each, the page links share the last row */
  .nav--menu nav .nav__meta a[href^="mailto:"],
  .nav--menu nav .nav__meta a[href^="tel:"] {
    flex-basis: 100%;
  }

  /* two strokes that turn into a cross */
  .nav__toggle:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -11px;
    border: 0;
    background: none;
    color: var(--paper);
    cursor: pointer;
  }

  .nav__toggle span {
    position: relative;
    width: 22px;
    height: 8px;
  }

  .nav__toggle span::before,
  .nav__toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition:
      top 0.35s var(--ease),
      transform 0.35s var(--ease);
  }

  .nav__toggle span::before {
    top: 0;
  }

  .nav__toggle span::after {
    top: 6.5px;
  }

  .nav--open .nav__toggle span::before {
    top: 3.25px;
    transform: rotate(45deg);
  }

  .nav--open .nav__toggle span::after {
    top: 3.25px;
    transform: rotate(-45deg);
  }

  .nav__toggle:focus-visible {
    outline: 1px solid var(--gold-soft);
    outline-offset: 2px;
  }

  /* one height scrolled or not: the bar's padding change moved brand and toggle by
     fractions of a pixel for half a second, which made the toggle strokes shimmer */
  .nav,
  .nav.scrolled {
    padding-block: 1.1rem;
    padding-inline: var(--edge);
  }

  .nav .nav__cta {
    padding: 0.65em 1.05em;
    font-size: 0.72rem;
  }

  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  /* the reels as a swipe row, like a feed (tablets and phones): edge to edge, about two
     and a half phones in view on tablets (one and a half on phones, <=640px), snapping
     to each phone */
  .phones {
    display: flex;
    gap: 1rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    /* a mouse needs the scrollbar to move the row; touch screens hide it (below) */
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }

  .phone {
    flex: 0 0 36%;
    scroll-snap-align: start;
  }

  .calc {
    grid-template-columns: 1fr;
  }

  /* the brand gets its own row, the four link columns the full width */
  .foot {
    grid-template-columns: 1fr;
  }

  /* the row gap leaves room for the next row's ridge (up to 43px) */
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 4.6rem;
  }
}

/* ---- MOBILE cinematic: full-height portrait stage with the caption overlaid on it ---- */
@media (max-width: 767px) {
  .brand img {
    height: 36px;
  }

  /* the stage fills the phone: full height, the frame cropped around the scene's focal
     point (main.js). lvh = the height with the toolbars hidden, stable while they hide
     and show, so the canvas does not stretch and no strip opens under the frame; the
     copy is lifted by the toolbars' height (--bars) so it stays above them */
  .cine__stage {
    --bars: calc(100lvh - 100svh);
    height: 100svh;
    height: 100lvh;
    min-height: 0;
  }

  /* scenes on phones, like a reel: kicker, heading, paragraph and tags in the bottom
     third on a bottom-weighted scrim, the image free above (one scrim for both scenes:
     same specificity as the desktop ones, declared later; WCAG AA over the real frames,
     see notes/reports/mobile-cine-copy-2026-10-06.md) */
  .scene .cine__scrim {
    background: linear-gradient(0deg,
        rgba(var(--ink-deep-rgb), 0.9) 0%,
        rgba(var(--ink-deep-rgb), 0.78) 38%,
        rgba(var(--ink-deep-rgb), 0.25) 68%,
        rgba(var(--ink-deep-rgb), 0.45) 100%);
  }

  .scene .cine__stage {
    align-items: flex-end;
  }

  .scene .cine__copy {
    padding-bottom: calc(clamp(2rem, 7svh, 3.5rem) + var(--bars));
  }

  .scene h2+p {
    max-width: 36ch;
    margin-bottom: 1.4rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(243, 237, 225, 0.9);
  }

  .hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.3rem);
    line-height: 1.04;
    margin-bottom: 1.4rem;
  }

  /* hero on phones, kept clean: kicker, heading and two equal buttons in the bottom third
     on a bottom-weighted scrim (WCAG AA over the real frames, see
     notes/reports/mobile-cine-copy-2026-10-06.md); no lead paragraph, no scroll cue */
  .hero .cine__stage {
    align-items: flex-end;
  }

  .hero .cine__copy {
    padding-bottom: calc(clamp(2rem, 7svh, 3.5rem) + var(--bars));
  }

  .hero .cine__scrim {
    background: linear-gradient(0deg,
        rgba(var(--ink-deep-rgb), 0.9) 0%,
        rgba(var(--ink-deep-rgb), 0.72) 35%,
        rgba(var(--ink-deep-rgb), 0.15) 65%,
        rgba(var(--ink-deep-rgb), 0.45) 100%);
  }

  .hero__cue {
    display: none;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    width: 100%;
  }

  /* a single button (the closing sections) stays centred under the centred text */
  .hero__actions:has(> .btn:only-child) {
    grid-template-columns: auto;
    justify-content: center;
  }

  /* labels centred both ways, so the pair stays even when one label takes two lines */
  .hero__actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.15em 0.6em;
    letter-spacing: 0.12em;
    text-align: center;
  }

  /* the hero stays clean on phones: no lead paragraph (D-47) */
  .hero h1+p {
    display: none;
  }

  .scene .kicker {
    margin-bottom: 0.8rem;
  }

  .scene h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
    margin-bottom: 1.2rem;
  }

  /* longer pins than on wide screens: a thumb swipe travels further than a wheel notch.
     The stage is a full screen (100lvh), so the scrub runs over the height beyond it:
     130vh left ~30vh (≈2 px per frame on a 390×844 phone, the clip raced and stuttered);
     240vh leaves 140vh (≈10 px per frame), as on nicolaslekai.com */
  .hero.cine,
  .scene.cine {
    height: 240vh;
  }

  /* tight vertical rhythm everywhere — no dead air between blocks */
  :root {
    --section-y: 2.2rem;
  }

  .contact {
    --section-y: 2.5rem;
  }

  .section>header {
    margin-bottom: 1.8rem;
  }

  .tiles>article {
    padding: 1.6rem 1.4rem;
  }

  .channels article {
    padding: 1.4rem 1.2rem;
  }

  .channels h3 {
    margin-bottom: 1rem;
  }

  .foot {
    padding: 2.5rem var(--foot-pad) 1.8rem;
    gap: 1.8rem;
  }

}

/* ---- TOUCH SCREENS (phones, tablets, large iPads; not a mouse): touch targets of
   about 44px. Toggles, the assumptions switch, footer links (the padding replaces their
   bottom margin), and the sliders' hit area (the visible track stays 2px) ---- */
@media (pointer: coarse) {
  .toggle button {
    min-height: 44px;
  }

  .calc summary {
    padding-block: 0.9rem;
    margin-bottom: 0.7rem;
  }

  .calc details {
    padding-top: 0.3rem;
  }

  /* the plain-text entries (place, social names until their profiles exist) take the same
     rows as the links, so the three footer columns line up */
  .foot__cols a,
  .foot__cols span {
    padding-block: 0.55rem;
    margin-bottom: 0;
  }

  /* the glyph row as tall as a link row */
  .foot__icons {
    padding-block: 0.65rem;
  }

  .range input {
    height: 44px;
  }
}

/* ---- SWIPE ROW ON TOUCH SCREENS (<=1000px): no scrollbar, a "Wischen" cue with a stroke
   that runs to the right, like "Scrollen" in the hero. Where scroll-driven animations
   exist the cue fades out over the first 120px of swiping (the row's scroll timeline,
   shared with the section) ---- */
@media (max-width: 1000px) and (pointer: coarse) {
  .phones {
    scrollbar-width: none;
  }

  .phones::-webkit-scrollbar {
    display: none;
  }

  .impact {
    timeline-scope: --phones;
  }

  .phones {
    scroll-timeline: --phones x;
  }

  .phones__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 1.4rem;
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(243, 237, 225, 0.6);
  }

  .phones__hint::before {
    content: "";
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    animation: cue-x 2s var(--ease) infinite;
  }

  @supports (animation-timeline: scroll()) {
    .phones__hint {
      animation: hint-out linear both;
      animation-timeline: --phones;
      animation-range: 0 120px;
    }
  }
}

/* ---- TALL PHONES (780px+ high, iPhone X and later): the hero has room for its lead
   paragraph above the buttons; the kicker keeps WCAG AA (5.6–7.2 measured over the
   frames), the image stays free in the upper half ---- */
@media (max-width: 767px) and (min-height: 780px) {
  .hero h1+p {
    display: block;
    max-width: 36ch;
    margin-bottom: 1.6rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(243, 237, 225, 0.9);
  }
}

/* ---- SMALL PHONES: single-column grids ---- */
@media (max-width: 640px) {

  /* without JS: "Potenzial berechnen" next to the brand, tighter */
  .nav:not(.nav--menu) .nav__cta {
    letter-spacing: 0.08em;
    padding-inline: 0.85em;
  }

  .tiles,
  .contact__form {
    grid-template-columns: 1fr;
  }

  .team__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* two cards side by side, an odd last card centred under them */
  .member:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.5rem);
  }

  /* phones: one reel in view with the next one peeking in */
  .phone {
    flex-basis: 58%;
  }

  /* charts: shorter scale labels, every other month, frequency only under the levels */
  .chart__plot,
  .chart__axis {
    margin-left: 1.9rem;
  }

  .chart__grid span {
    left: -1.9rem;
  }

  .chart__readout {
    height: 7.4rem;
  }

  .chart__axis:not(.chart__axis--levels) span:nth-child(even) {
    visibility: hidden;
  }

  .chart__axis--levels {
    font-size: 0.6rem;
  }

  .chart__axis--levels b,
  .level__typ i {
    display: none;
  }

  .level i {
    font-size: 0.78rem;
  }

  /* fact above its answer */
  .chain li {
    --rail: 2.2rem;
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 3.2rem;
  }

  /* footer: the symbol over the name, centred on its own row, then Studio, Social and
     Rechtliches as three equal columns, each centred (Raffaele, 2026-10-22; the earlier
     two-column layout was sized for the email address, which left the footer, D-76) */
  .foot {
    grid-template-columns: 1fr;
    row-gap: 2.2rem;
  }

  .foot .brand {
    justify-self: center;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.72rem;
    text-align: center;
  }

  .foot .brand img {
    height: 48px;
  }

  .foot__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 1rem;
    text-align: center;
  }

  .foot__cols p {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .foot__cols a,
  .foot__cols span {
    font-size: 0.84rem;
  }

  .foot__icons {
    justify-content: center;
    gap: 0.9rem;
  }

  .foot__legal {
    text-align: center;
  }

  .mission__text,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .month::after,
  .level__typ,
  .level__top {
    transition: none;
  }

  .regions ul,
  .hero__cue::before,
  .phones__hint::before,
  .hero h1 {
    animation: none;
  }
}