/* =========================================================
   MK Heizung-Sanitär, St. Gallenkirch — Konzeptentwurf (VCSLV)
   Archivo (variabel): schmale, kräftige Überschriften wie die Versalien
   ihres Logos, normale Breite für Text und Bedienung. Eine Familie.
   Graphit, MK-Grün und -Blau aus dem Logo, Kupfer als Metall-Akzent
   ========================================================= */

@font-face { font-family: 'Archivo'; src: url('../fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-italic.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  --night: #0d1115;
  --graph: #12171d;
  --graph-2: #1a2028;
  --graph-3: #252d37;
  --ink: #161b21;
  --paper: #f2f1ed;
  --paper-2: #e7e6e1;
  --paper-3: #fbfaf8;
  --green: #249c4c;
  --green-l: #34b862;
  --blue: #0c5484;
  --blue-l: #4a8fd2;
  --cu: #b26d38;
  --cu-d: #8f5225;
  --cu-l: #e2a676;
  --ice: #8cc4ec;
  --muted: #5a626b;
  --ok: #6fd393;
  --line: rgba(22, 27, 33, .12);
  --line-2: rgba(22, 27, 33, .24);
  --line-inv: rgba(242, 241, 237, .13);
  --line-inv-2: rgba(242, 241, 237, .3);
  --muted-inv: rgba(242, 241, 237, .68);

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --narrow: 76%;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1440px;
  --hdr-h: 76px;
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-anchor: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink); overflow-anchor: none;
  font-family: var(--sans); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip; font-variant-numeric: lining-nums tabular-nums;
}
img, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
legend { padding: 0; }
::selection { background: var(--cu-l); color: var(--ink); }
:focus-visible { outline: 2px solid var(--cu-l); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r); transition: top .2s; }
.skip:focus { top: 16px; }
@media (max-width: 719px) { .hide-s { display: none !important; } }
@media (min-width: 720px) { .show-s { display: none !important; } }

/* ---------- Type ---------- */
.h2 { font-family: var(--sans); font-weight: 640; font-stretch: var(--narrow); line-height: .98; letter-spacing: -.012em; text-wrap: balance; }
.h2 em { font-style: italic; font-weight: 560; color: var(--cu); }
[data-theme="dark"] .h2 em { color: var(--cu-l); }
.ln { padding-bottom: .12em; margin-bottom: -.12em; }
.h-label { display: inline-flex; align-items: center; gap: 12px; color: var(--cu); }
.h-label::before { content: ''; width: 18px; height: 2px; background: linear-gradient(90deg, var(--green) 50%, var(--blue) 50%); }
.h-label--inv { color: var(--cu-l); }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 20px 0 22px; border-radius: var(--r);
  font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.btn:hover::after { transform: scaleX(1); }
.btn--cu { background: linear-gradient(135deg, #c8834b, var(--cu) 55%, var(--cu-d)); color: #fff; }
.btn--cu::after { background: var(--cu-d); }
.btn--dark { background: var(--graph); color: var(--paper); }
.btn--dark::after { background: var(--graph-3); }
.btn--line { border-color: currentColor; }
.btn--line::after { background: currentColor; opacity: .14; }
/* the wipe is a light tint of the button's own colour and the label keeps its colour, so it reads on any ground
   (a full currentColor fill plus a hover colour hid the label: the fill takes the hover colour too) */
.dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(111, 211, 147, .5); animation: pulse 2.4s 3; }  /* a few beats, then still: an idle page costs nothing */
.dot.is-closed { background: var(--cu-l); }
.dot.is-closed::after { background: rgba(226, 166, 118, .45); }
.dot.is-off::after { animation-play-state: paused; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(3.4); opacity: 0; } }

/* segmented control with sliding pill */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: 4px; background: rgba(242, 241, 237, .07); max-width: 100%; }
.seg button { position: relative; z-index: 1; height: 38px; padding: 0 14px; border-radius: var(--r); font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--muted-inv); transition: color .4s var(--ease); }
.seg button[aria-checked="true"] { color: #fff; }
.seg__pill { position: absolute; z-index: 0; top: 3px; left: 0; height: 38px; border-radius: var(--r); background: var(--cu); transition: transform .55s var(--ease), width .55s var(--ease); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-inv-2); font-size: 14.5px; font-weight: 500; white-space: nowrap; color: rgba(242, 241, 237, .92); transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s; }
.chip:hover { border-color: var(--cu-l); }
.chip[aria-pressed="true"] { background: var(--cu); border-color: var(--cu); color: #fff; }
.chips--sm .chip { height: 34px; padding: 0 11px; font-size: 13.5px; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: var(--paper);
  transition: color .5s var(--ease), transform .6s var(--ease), height .5s var(--ease), box-shadow .5s;
}
.hdr::before { content: ''; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background-color .5s var(--ease); }
.hdr.is-solid { --hdr-h: 64px; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr.is-solid::before { background: rgba(242, 241, 237, .95); }
.hdr.is-solid.on-dark { color: var(--paper); box-shadow: 0 1px 0 var(--line-inv); }
.hdr.is-solid.on-dark::before { background: var(--hdr-dark, rgba(18, 23, 29, .95)); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__brand { display: flex; align-items: center; gap: 12px; flex: none; transition: opacity .6s var(--ease); }
.hdr__mark { width: 52px; height: 27px; }
/* the mark lives in a <symbol>: colours reach it through custom properties */
.mkm__g { fill: var(--mk-g, #34b862); }
.mkm__b { fill: var(--mk-b, #4a8fd2); }
.hdr.is-solid:not(.on-dark) .hdr__mark, .ticket__mark { --mk-g: var(--green); --mk-b: var(--blue); }
.hdr__word { font-size: 15px; font-weight: 640; font-stretch: var(--narrow); letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.hdr__word span { margin: 0 .3em; color: var(--cu-l); }
.hdr.has-crest .hdr__brand { opacity: 0; pointer-events: none; }
.hdr:not(.is-solid) { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.hdr__nav { display: flex; gap: clamp(18px, 2.2vw, 36px); font-size: 14.5px; font-weight: 500; }
.hdr__nav a { position: relative; padding: 6px 0; opacity: .92; }
.hdr__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.hdr__sos { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.hdr__sos svg { width: 17px; height: 17px; color: var(--cu-l); }
.hdr.is-solid:not(.on-dark) .hdr__sos svg { color: var(--cu); }
.hdr__book { --h: 42px; font-size: 14px; padding: 0 16px 0 18px; }
.hdr__book svg { width: 15px; height: 15px; }
.hdr__menu { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 4px 0 10px; font-size: 14px; font-weight: 500; }
.hdr__burger { width: 26px; height: 10px; position: relative; display: block; }
.hdr__burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.hdr__burger i:first-child { top: 0; }
.hdr__burger i:last-child { top: 8.5px; }
.menu-open .hdr__burger i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .hdr__burger i:last-child { top: 4.25px; transform: rotate(-45deg); }
.menu-open .hdr { color: var(--paper); }
.menu-open .hdr::before { background: var(--night) !important; }
.menu-open .hdr.is-solid { box-shadow: none; }
.menu-open .hdr__brand { opacity: 1 !important; pointer-events: auto !important; }
.menu-open .hdr__nav, .menu-open .hdr__book, .menu-open .hdr__sos { opacity: 0; pointer-events: none; }
@media (max-width: 1180px) { .hdr__nav { display: none; } }
@media (max-width: 719px) {
  :root { --hdr-h: 62px; }
  .hdr.is-solid { --hdr-h: 56px; }
  .hdr__book, .hdr__word { display: none; }
  .hdr__mark { width: 46px; height: 24px; }
  .hdr__menu-label { display: none; }
  .hdr__menu { width: 44px; justify-content: center; padding: 0; }
  .hdr__sos { height: 40px; padding: 0 12px; border: 1px solid var(--line-inv-2); border-radius: var(--r); font-size: 13.5px; }
  .hdr.is-solid:not(.on-dark) .hdr__sos { border-color: var(--line-2); }
}

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--night); color: var(--paper);
  display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: 1fr auto;
  padding: calc(var(--hdr-h) + 24px) var(--gutter) 28px; gap: 0 6vw; clip-path: inset(0 0 100% 0);
}
.menu__media { position: relative; grid-row: 1 / 3; overflow: hidden; border-radius: var(--r); }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.menu__media img.is-on { opacity: 1; transform: scale(1); }
.menu__nav { align-self: center; }
.menu__nav li { overflow: hidden; border-bottom: 1px solid var(--line-inv); }
.menu__nav a { display: grid; grid-template-columns: 52px 1fr auto; align-items: baseline; gap: 12px; padding: 12px 0; font-weight: 640; font-stretch: var(--narrow); font-size: clamp(2rem, min(3vw, 5.4svh), 3.2rem); line-height: 1.05; letter-spacing: -.01em; transition: color .4s, padding .5s var(--ease); }
.menu__nav a:hover { padding-left: 14px; color: var(--cu-l); }
.menu__no { font-size: 12px; letter-spacing: .14em; color: var(--muted-inv); font-weight: 500; font-stretch: 100%; }
.menu__nav em { font-style: normal; font-stretch: 100%; font-weight: 400; font-size: 13px; letter-spacing: .02em; color: var(--muted-inv); text-align: right; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 15px; padding-top: 24px; }
.menu__foot a:not(.btn) { display: inline-flex; align-items: center; gap: 10px; }
.menu__foot svg { width: 18px; height: 18px; }
.menu__foot .btn { margin-left: auto; }
@media (max-width: 899px) {
  .menu { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding-top: calc(var(--hdr-h) + 8px); overflow-y: auto; overscroll-behavior: contain; }
  .menu__media { grid-row: auto; height: 16vh; min-height: 90px; }
  .menu__nav a { grid-template-columns: 34px 1fr; font-size: clamp(1.8rem, 8vw, 2.5rem); padding: 9px 0; }
  .menu__nav em { grid-column: 2; text-align: left; margin-top: -2px; }
  .menu__foot { gap: 10px 20px; padding-top: 16px; }
  .menu__foot .btn { margin-left: 0; width: 100%; }
}

/* =========================================================
   Hero: the MK logo builds itself over their heating room
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--hdr-h); background: var(--night); color: var(--paper); overflow: hidden; overflow-anchor: none; isolation: isolate; }
.hero__scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__fg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 50% 40%; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(44% 40% at 50% var(--crest-y, 38%), rgba(9, 12, 16, .78), rgba(9, 12, 16, .5) 60%, rgba(9, 12, 16, .1) 100%),
  linear-gradient(180deg, rgba(9, 12, 16, .86) 0%, rgba(9, 12, 16, .55) 18%, rgba(9, 12, 16, .5) 46%, rgba(9, 12, 16, .66) 64%, rgba(9, 12, 16, .9) 82%, rgba(9, 12, 16, .97) 100%); }
.crest { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(10px, 3svh, 40px) 20px clamp(14px, 3svh, 36px); text-align: center; }
.mk { width: clamp(240px, min(30vw, 44svh), 470px); height: auto; overflow: visible; }
.mk__m { fill: var(--green-l); }
.mk__k { fill: var(--blue-l); }
.mk__l1, .mk__l2 { fill: #f4f2ee; }
.mk__l2 { fill: rgba(244, 242, 238, .86); }
.crest__since { display: flex; align-items: center; gap: 16px; margin-top: clamp(14px, 2.6svh, 28px); font-size: 12.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: rgba(244, 242, 238, .9); padding-left: .3em; }
.crest__since em { font-style: normal; color: var(--cu-l); }
.crest__since i { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--cu-l)); }
.crest__since i:last-child { background: linear-gradient(90deg, var(--cu-l), transparent); }
.js .hero__fg, .js .hero__shade, .js .crest__since, .js .svc, .js .mk { opacity: 0; }
.no-anim .hero__fg, .no-anim .hero__shade, .no-anim .crest__since, .no-anim .svc, .no-anim .mk,
.is-static .hero__fg, .is-static .hero__shade, .is-static .crest__since, .is-static .svc, .is-static .mk { opacity: 1 !important; }

/* ---------- Service console ---------- */
.svc { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 900px); margin: 0 auto clamp(16px, 4svh, 46px); background: rgba(14, 18, 23, .9); border: 1px solid var(--line-inv); border-radius: 6px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); color: var(--paper); }
.svc__top { display: flex; align-items: center; gap: 18px; padding: 12px 18px; border-bottom: 1px solid var(--line-inv); }
.svc__lab { color: var(--cu-l); white-space: nowrap; }
.svc__office { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted-inv); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc__steps { display: flex; gap: 6px; margin-left: auto; flex: none; }
.svc__steps li { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; border: 1px solid var(--line-inv-2); color: var(--muted-inv); transition: background-color .4s, color .4s, border-color .4s; }
.svc__steps li.is-on { background: var(--paper); color: var(--graph); border-color: var(--paper); }
.svc__steps li.is-done { border-color: var(--cu-l); color: var(--cu-l); }
.svc__body { padding: 16px 18px 6px; min-height: 152px; }
.svc__q { font-size: var(--h3s); font-weight: 640; font-stretch: var(--narrow); line-height: 1.1; margin-bottom: 12px; }
.svc__sys { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.svc__sys .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; padding-bottom: 2px; }
.svc__sys .chips::-webkit-scrollbar { display: none; }
.svc__cap { color: var(--muted-inv); flex: none; }
.svc__pair { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; }
.svc__sel { display: grid; gap: 6px; min-width: 0; }
.svc__sel select { height: 44px; min-width: 220px; max-width: 100%; padding: 0 40px 0 14px; border-radius: var(--r); border: 1px solid var(--line-inv-2); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%23e2a676' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; color: var(--paper); font-size: 15px; font-weight: 500; appearance: none; -webkit-appearance: none; }
.svc__sel select option { color: var(--ink); }
.svc__urg { display: grid; gap: 6px; min-width: 0; }
.svc__hint { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--muted-inv); }
.svc__hint svg { width: 18px; height: 18px; color: var(--cu-l); flex: none; }
.svc__hint a { color: var(--paper); font-weight: 600; border-bottom: 1px solid var(--cu-l); white-space: nowrap; }
.svc__hint.is-hot { color: var(--paper); }
.svc__who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.svc__in { flex: 1 1 160px; min-width: 0; }
.svc__in input { width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-inv-2); background: rgba(242, 241, 237, .04); color: var(--paper); font-size: 15px; }
.svc__in input::placeholder { color: rgba(242, 241, 237, .5); }
.svc__photo { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: var(--r); border: 1px dashed var(--cu-l); color: var(--cu-l); font-size: 14px; font-weight: 600; max-width: 100%; }
.svc__photo svg { width: 18px; height: 18px; }
.svc__photo.has-img { border-style: solid; color: var(--paper); background: rgba(178, 109, 56, .25); }
.svc__photo img { width: 26px; height: 26px; object-fit: cover; border-radius: 2px; }
.svc__nav { display: flex; align-items: center; gap: 14px; padding: 10px 18px 14px; }
.svc__back { width: 44px; height: 44px; flex: none; border-radius: var(--r); border: 1px solid var(--line-inv-2); display: grid; place-items: center; transition: opacity .3s; }
.svc__back svg { width: 18px; height: 18px; }
.svc__back:disabled { opacity: .3; cursor: default; }
.svc__sum { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted-inv); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc__sum b { color: var(--paper); font-weight: 600; }
.svc__next { --h: 46px; flex: none; }
.svc__next[aria-disabled="true"] { filter: saturate(.3) brightness(.8); }
.svc.is-shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- Ticket: the inquiry as it would arrive ---------- */
.ticket { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(9, 12, 16, .66); }
.ticket__card { position: relative; width: min(640px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 118px; background: var(--paper-3); color: var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 0 50px 110px -30px rgba(0, 0, 0, .7); max-height: calc(100svh - 40px); overflow-y: auto; }
.ticket__x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 241, 237, .14); color: #fff; }
.ticket__x svg { width: 16px; height: 16px; }
.ticket__main { padding: 22px 24px 18px; min-width: 0; }
.ticket__brand { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.ticket__mark { width: 52px; height: 27px; flex: none; }
.ticket__brand span { display: grid; font-size: 16px; font-weight: 640; line-height: 1.2; }
.ticket__brand small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.ticket__lab { margin-top: 14px; color: var(--cu); }
.ticket__title { margin-top: 2px; font-weight: 640; font-stretch: var(--narrow); letter-spacing: -.01em; font-size: 2rem; line-height: 1.02; }
.ticket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 14px; }
.ticket__grid dt { color: var(--muted); }
.ticket__grid dd { font-size: 15px; font-weight: 560; line-height: 1.3; overflow-wrap: anywhere; }
.ticket__grid dd img { width: 64px; height: 48px; object-fit: cover; border-radius: 2px; margin-top: 3px; }
.ticket__grid .is-wide { grid-column: 1 / -1; }
.ticket__stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--graph); color: var(--paper); }
.ticket__stub::before { content: ''; position: absolute; left: -6px; top: 0; bottom: 0; width: 12px; background: radial-gradient(circle at 6px 8px, var(--paper-3) 4px, transparent 4.5px) 0 0 / 12px 16px repeat-y; }
.ticket__n { font-weight: 640; font-stretch: var(--narrow); font-size: 3.6rem; line-height: .9; color: var(--cu-l); }
.ticket__no { margin-top: 14px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 600; letter-spacing: .2em; opacity: .7; }
.ticket__foot { grid-column: 1 / -1; padding: 14px 24px 20px; background: var(--paper-2); }
.ticket__note { font-size: 13.5px; line-height: 1.5; color: #3c434b; }
.ticket__note b { color: var(--ink); }
.ticket__go { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ticket__go .btn { --h: 46px; flex: 1 1 180px; }
.ticket__go .btn--line { color: var(--ink); }
.ticket__go svg { width: 17px; height: 17px; }
.ticket-open { overflow: hidden; }

/* =========================================================
   1 Heute im Montafon — board and week
   ========================================================= */
.today { background: var(--graph); color: var(--paper); }
.today__head { display: flex; flex-direction: column; margin-bottom: clamp(14px, 2.8svh, 36px); }
.today__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px); height: clamp(380px, calc(var(--scr-h) - var(--head-h, 140px)), 600px); }
.board { display: flex; flex-direction: column; background: var(--night); border: 1px solid var(--line-inv); border-radius: 6px; overflow: hidden; }
.board__top { display: flex; align-items: baseline; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line-inv); }
.board__title { font-size: 1.5rem; font-weight: 640; font-stretch: var(--narrow); letter-spacing: .01em; }
.board__date { color: var(--muted-inv); }
.board__clock { margin-left: auto; font-size: 1.5rem; font-weight: 600; font-stretch: var(--narrow); color: var(--cu-l); }
.board__rows { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; padding: 6px 0; }
.brow { display: grid; grid-template-columns: 118px minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 20px; }
.brow + .brow { border-top: 1px solid rgba(242, 241, 237, .06); }
.brow__lab { color: var(--muted-inv); }
.plate { position: relative; display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 3px; background: linear-gradient(180deg, #1d242c 0 49.5%, #161c23 50.5% 100%); font-size: 18px; font-weight: 640; font-stretch: var(--narrow); letter-spacing: .01em; white-space: nowrap; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(242, 241, 237, .05); }
.plate::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.plate--side { font-size: 15px; font-weight: 500; font-stretch: 100%; color: var(--muted-inv); }
.plate.is-frost { color: var(--ice); }
.plate.is-open { color: var(--ok); }
.plate--link { color: var(--cu-l); }
.plate.is-flip span { display: inline-block; animation: flip .6s var(--ease); }
@keyframes flip { 0% { transform: translateY(-60%) rotateX(80deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.board__src { padding: 10px 20px; border-top: 1px solid var(--line-inv); font-size: 12px; color: rgba(242, 241, 237, .5); }
.week { display: flex; flex-direction: column; min-height: 0; }
.week__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.week__lab { color: var(--muted-inv); }
.week__key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-inv); }
.week__key i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.week__key .k-day { background: var(--cu-l); }
.week__key .k-frost { background: var(--ice); }
.week__chart { flex: 1; min-height: 110px; width: 100%; overflow: visible; }
.week__chart .zero { stroke: rgba(140, 196, 236, .55); stroke-dasharray: 4 5; stroke-width: 1; vector-effect: non-scaling-stroke; }
.week__chart .grid { stroke: rgba(242, 241, 237, .07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.week__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 6px; text-align: center; font-size: 13px; }
.week__days b { display: block; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; color: var(--muted-inv); }
.week__days span { display: block; font-weight: 600; white-space: nowrap; }
.week__days small { display: block; font-size: 12.5px; color: var(--muted-inv); white-space: nowrap; }
.week__days .is-frost small { color: var(--ice); }
.tip { margin-top: clamp(12px, 2svh, 22px); padding: clamp(14px, 2.2svh, 22px) 20px; border-radius: 6px; background: linear-gradient(135deg, rgba(178, 109, 56, .2), rgba(178, 109, 56, .06)); border: 1px solid rgba(226, 166, 118, .28); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: end; }
.tip__lab { grid-column: 1 / -1; color: var(--cu-l); }
.tip__t { font-size: var(--h3s); font-weight: 640; font-stretch: var(--narrow); line-height: 1.1; }
.tip__d { grid-column: 1; font-size: var(--t-small); color: var(--muted-inv); }
.tip__go { --h: 44px; grid-column: 2; grid-row: 2 / 4; align-self: center; }

/* =========================================================
   2 Leistungen — explorer
   ========================================================= */
.lst { background: var(--paper); }
.lst__head { display: flex; flex-direction: column; margin-bottom: clamp(14px, 2.8svh, 36px); }
.lst__grid { display: grid; grid-template-columns: 220px minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 40px); height: clamp(380px, calc(var(--scr-h) - var(--lhead-h, 140px)), 620px); }
.lst__nav { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.lst__g { color: var(--muted); padding: 10px 0 4px; }
.lst__g:first-child { padding-top: 0; }
.lst__nav button { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 5px 0 5px 14px; font-size: 1.12rem; font-weight: 560; font-stretch: 88%; color: #3e454d; transition: color .35s, padding .45s var(--ease); }
.lst__nav button::before { content: ''; position: absolute; left: 0; top: 50%; width: 2px; height: 0; background: var(--cu); transform: translateY(-50%); transition: height .45s var(--ease); }
.lst__nav button:hover { color: var(--ink); padding-left: 18px; }
.lst__nav button[aria-selected="true"] { color: var(--ink); font-weight: 640; }
.lst__nav button[aria-selected="true"]::before { height: 70%; }
.lst__fig { position: relative; border-radius: 4px; overflow: hidden; background: var(--paper-2); min-height: 0; }
.lst__fig img, .firm__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.lst__fig img.is-on, .firm__fig img.is-on { opacity: 1; }
.lst__no { position: absolute; left: 14px; bottom: 12px; padding: 4px 9px; border-radius: 2px; background: rgba(13, 17, 21, .72); color: var(--paper); }
.lst__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 0; }
.lst__cap { color: var(--cu); }
.lst__t { margin-top: 4px; font-size: var(--h3m); font-weight: 640; font-stretch: var(--narrow); line-height: 1; letter-spacing: -.01em; }
.lst__lead { margin-top: clamp(8px, 1.4svh, 14px); font-size: var(--h3s); font-style: italic; font-weight: 450; line-height: 1.2; color: #2f353c; }
.lst__text { margin-top: clamp(8px, 1.4svh, 14px); font-size: var(--t-body); color: #3e454d; }
.lst__facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(12px, 2svh, 22px); border-top: 1px solid var(--line); }
.lst__facts div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.lst__facts dt { color: var(--muted); }
.lst__facts dd { font-size: var(--t-body); font-weight: 600; line-height: 1.3; }
.lst__go { margin-top: clamp(14px, 2.4svh, 26px); align-self: flex-start; }

/* =========================================================
   3 Betrieb
   ========================================================= */
.firm { background: var(--graph-2); color: var(--paper); }
.firm__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3.6vw, 64px); align-items: center; }
.firm__fig { position: relative; height: clamp(360px, var(--scr-h), 760px); border-radius: 4px; overflow: hidden; background: var(--graph-3); }
.firm__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-size: 13px; color: rgba(242, 241, 237, .9); background: linear-gradient(180deg, transparent, rgba(9, 12, 16, .8)); }
.firm__body { display: flex; flex-direction: column; min-width: 0; }
.firm__nums { display: flex; gap: clamp(20px, 3vw, 48px); margin-top: clamp(14px, 2.6svh, 30px); }
.firm__nums div { display: flex; flex-direction: column-reverse; gap: 4px; }
.firm__nums dd { font-size: clamp(2.6rem, min(4.4vw, 8svh), 4.6rem); font-weight: 640; font-stretch: var(--narrow); line-height: .9; color: var(--cu-l); }
.firm__nums dt { color: var(--muted-inv); max-width: 15ch; }
.tl { position: relative; display: flex; gap: 0; margin-top: clamp(18px, 3.2svh, 36px); border-bottom: 1px solid var(--line-inv-2); }
.tl button { position: relative; flex: 1 1 0; min-width: 0; padding: 0 0 12px; text-align: left; font-size: 1.05rem; font-weight: 600; font-stretch: var(--narrow); color: var(--muted-inv); transition: color .35s; white-space: nowrap; }
.tl button::after { content: ''; position: absolute; left: 0; right: 8px; bottom: -1px; height: 2px; background: var(--cu-l); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.tl button:hover { color: var(--paper); }
.tl button[aria-selected="true"] { color: var(--paper); }
.tl button[aria-selected="true"]::after { transform: scaleX(1); }
.tl__card { margin-top: clamp(12px, 2.2svh, 22px); min-height: 7.6em; }
.tl__t { font-size: var(--h3s); font-weight: 640; font-stretch: var(--narrow); line-height: 1.12; }
.tl__d { margin-top: 6px; font-size: var(--t-body); color: var(--muted-inv); max-width: 46ch; }
.firm__lehre { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: clamp(10px, 2svh, 22px); padding-top: clamp(10px, 2svh, 18px); border-top: 1px solid var(--line-inv); font-size: var(--t-small); color: var(--muted-inv); }
.firm__lehre b { color: var(--cu-l); }

/* =========================================================
   4 Einsatzgebiet — relief map
   ========================================================= */
.area { background: var(--paper-2); }
.area__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3.6vw, 64px); align-items: center; }
.area__body { display: flex; flex-direction: column; min-width: 0; }
.area__lead { margin-top: clamp(10px, 2svh, 20px); font-size: var(--t-lead); color: #3e454d; max-width: 46ch; }
.area__places { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(14px, 2.6svh, 26px); }
.area__places button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 560; transition: background-color .35s, color .35s, border-color .35s; }
.area__places button small { font-size: 12px; font-weight: 600; color: var(--muted); }
.area__places button:hover { border-color: var(--cu); }
.area__places button[aria-selected="true"] { background: var(--graph); border-color: var(--graph); color: var(--paper); }
.area__places button[aria-selected="true"] small { color: var(--cu-l); }
.area__card { margin-top: clamp(12px, 2.2svh, 22px); padding-top: clamp(10px, 2svh, 18px); border-top: 1px solid var(--line-2); min-height: 9.6em; }
.area__name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.area__name b { font-size: var(--h3s); font-weight: 640; font-stretch: var(--narrow); }
.area__name span { color: var(--muted); white-space: nowrap; }
.area__list { margin-top: 8px; font-size: var(--t-body); color: #2f353c; line-height: 1.5; }
.area__list li { display: inline; }
.area__list li + li::before { content: ' · '; color: var(--cu); font-weight: 700; }
.area__more { margin-top: clamp(10px, 2svh, 18px); font-size: var(--t-small); color: var(--muted); }
.area__more b { color: var(--ink); font-weight: 600; }
.area__map { position: relative; min-width: 0; }
.map { width: 100%; height: clamp(360px, calc(var(--scr-h) - 26px), 760px); border-radius: 4px; background: #e4e7e8; overflow: hidden; }
.map__src { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.map .route { fill: none; stroke: var(--cu); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map .route-halo { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; vector-effect: non-scaling-stroke; }
.map .pin { cursor: pointer; }
.map .pin circle { fill: var(--graph); stroke: #fff; stroke-width: 2.5; transition: fill .35s; }
.map .pin text { fill: #fff; font-size: 16px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.map .pin .lab { fill: var(--ink); font-size: 19px; font-weight: 640; font-stretch: 88%; text-anchor: start; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 5px; stroke-linejoin: round; }
.map .pin.is-on circle { fill: var(--cu); }
.map__home .ring { fill: none; stroke: var(--cu); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.6s infinite; }
.map__home.is-off .ring { animation-play-state: paused; }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.4); opacity: 0; } }

/* =========================================================
   5 Kontakt
   ========================================================= */
.contact { background: var(--graph); color: var(--paper); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.contact__main { display: flex; flex-direction: column; min-width: 0; }
.contact__big { margin-top: clamp(16px, 3svh, 34px); border-top: 1px solid var(--line-inv); }
.contact__big li { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: clamp(8px, 1.5svh, 14px) 0; border-bottom: 1px solid var(--line-inv); }
.contact__cap { color: var(--muted-inv); }
.contact__big a { font-size: clamp(1.35rem, min(2.3vw, 4svh), 2.2rem); font-weight: 640; font-stretch: var(--narrow); line-height: 1.1; overflow-wrap: anywhere; transition: color .3s; }
.contact__big a:hover { color: var(--cu-l); }
.contact__big .is-sos a { color: var(--cu-l); }
.contact__go { margin-top: clamp(16px, 3svh, 30px); align-self: flex-start; }
.contact__side { display: flex; flex-direction: column; gap: clamp(18px, 3.4svh, 36px); min-width: 0; }
.hours { padding: clamp(14px, 2.4svh, 22px) 20px; border-radius: 6px; background: var(--night); border: 1px solid var(--line-inv); }
.hours__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.hours__lab { color: var(--cu-l); }
.hours__now { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted-inv); text-align: right; }
.hours__grid { display: grid; gap: 6px; }
.hrow { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; }
.hrow b { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted-inv); }
.hrow.is-today b { color: var(--paper); }
.htrack { position: relative; height: 16px; border-radius: 2px; background: rgba(242, 241, 237, .05); }
.htrack i { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(90deg, var(--green), #2b8f6a 50%, var(--blue)); opacity: .85; }
.hrow.is-today .htrack i { opacity: 1; }
.htrack .now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--cu-l); border-radius: 1px; }
.hours__axis { display: flex; justify-content: space-between; margin: 6px 0 0 44px; font-size: 11px; color: rgba(242, 241, 237, .45); }
.people__lab { color: var(--muted-inv); margin-bottom: 10px; }
.people__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--line-inv); }
.people__list li { padding: 8px 0; border-bottom: 1px solid var(--line-inv); min-width: 0; }
.people__list b { display: block; font-size: 15.5px; font-weight: 640; line-height: 1.25; }
.people__list span { display: block; font-size: 13px; color: var(--muted-inv); line-height: 1.3; }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--paper); padding: clamp(64px, 8vw, 120px) 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot__big { display: flex; align-items: center; gap: .3em; font-weight: 640; font-stretch: var(--narrow); text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 6.4rem); line-height: 1; /* the whole line fits the width (at 5.6vw it ran off the right edge) */ letter-spacing: .01em; white-space: nowrap; }
.foot__mark { width: 1.9em; height: 1em; flex: none; }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 5vw, 80px); padding-top: 32px; border-top: 1px solid var(--line-inv); }
.foot__cols h4 { color: var(--muted-inv); margin-bottom: 14px; }
.foot__cols a, .foot__cols p { display: block; font-size: 15px; padding: 3px 0; color: rgba(242, 241, 237, .86); }
.foot__cols a:hover { color: var(--cu-l); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; font-size: 13px; color: var(--muted-inv); }
.foot__base a { border-bottom: 1px solid var(--line-inv-2); }
@media (max-width: 899px) { .foot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 719px) { .foot__big { font-size: clamp(.9rem, 4.4vw, 1.6rem); } }

/* ---------- Dock (phones) ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  .dock {
    display: flex; gap: 6px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
    padding: 6px; border-radius: 8px; background: rgba(13, 17, 21, .95);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); transform: translateY(140%); transition: transform .6s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock__book { flex: 1; display: grid; place-items: center; height: 48px; border-radius: 5px; background: linear-gradient(135deg, #c8834b, var(--cu) 55%, var(--cu-d)); color: #fff; font-weight: 640; font-size: 15px; white-space: nowrap; min-width: 0; }
  .dock__ico, .dock__note { width: 48px; height: 48px; border-radius: 5px; display: grid; place-items: center; color: var(--paper); border: 1px solid var(--line-inv-2); flex: none; }
  .dock__sos { color: var(--cu-l); }
  .dock__ico svg { width: 20px; height: 20px; }
  .dock__note i { width: 7px; height: 7px; border-radius: 50%; background: var(--cu-l); box-shadow: 0 0 0 4px rgba(226, 166, 118, .2); }
  .menu-open .dock, .ticket-open .dock { transform: translateY(140%); }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Concept note ---------- */
.note { position: fixed; left: max(10px, calc(var(--gutter) / 2 - 14px)); top: 50%; z-index: 52; font-size: 14px; opacity: 0; visibility: hidden; transform: translate(-6px, -50%); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.note.is-shown, .note.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.note__btn { display: inline-flex; align-items: center; gap: 10px; writing-mode: vertical-rl; transform: rotate(180deg); width: 28px; padding: 14px 0 12px; border-radius: 4px; background: rgba(13, 17, 21, .86); color: var(--paper); box-shadow: 0 0 0 1px var(--line-inv); }
.note__btn i { width: 6px; height: 6px; border-radius: 50%; background: var(--cu-l); }
.note__panel { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); width: min(340px, calc(100vw - 32px)); background: var(--paper-3); color: var(--ink); border-radius: 6px; padding: 22px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.note__panel b { font-weight: 640; font-stretch: var(--narrow); font-size: 1.6rem; }
.note__panel .btn { --h: 44px; margin-top: 6px; justify-self: start; }
.note__fine { font-size: 12px; line-height: 1.45; color: var(--muted); }
.note__fine a { text-decoration: underline; text-underline-offset: 2px; }
.ticket-open .note { opacity: 0; visibility: hidden; }
@media (max-width: 899px) {
  .note { left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateY(8px); }
  .note.is-open { transform: none; }
  .note.is-shown:not(.is-open) { opacity: 0; visibility: hidden; }
  .note__btn { display: none; }
  .note__panel { position: static; width: auto; transform: none; }
}

[data-img-reveal] { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================
   Screens: every section fits one viewport. Big visuals take
   the height that is left; phones subtract the dock.
   ========================================================= */
:root {
  --scr-t: calc(var(--hdr-h) + clamp(14px, 3.4svh, 46px));
  --scr-b: clamp(18px, 3.8svh, 50px);
  --scr-h: calc(100svh - var(--scr-t) - var(--scr-b));
  --h2s: clamp(2.3rem, min(3.9vw, 6.6svh), 4.4rem);
}
@media (max-width: 899px) { :root { --scr-b: calc(86px + env(safe-area-inset-bottom)); } }
@media (max-width: 719px) { :root { --scr-t: calc(var(--hdr-h) + 12px); --h2s: clamp(2.1rem, 10vw, 2.6rem); } }
main .h2 { font-size: var(--h2s); }
main .h-label { margin-bottom: clamp(8px, 1.6svh, 16px); }
main > section:not(.hero) { padding-top: var(--scr-t); padding-bottom: var(--scr-b); }
@media (min-width: 900px) {
  main > section:not(.hero) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}

/* ---- short viewports: small laptops ---- */
@media (min-width: 900px) and (max-height: 820px) {
  .lst__text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .lst__facts div { padding-block: 7px; }
  .lst__nav button { padding-block: 3px; font-size: 1.02rem; }
  .lst__g { padding: 6px 0 2px; }
  .board__src { display: none; }
  .tip__d { display: none; }
  .firm__nums dd { font-size: clamp(2.2rem, 6.4svh, 3.4rem); }
  .tl__card { min-height: 6.6em; }
  .area__lead { display: none; }
  .people__list li { padding: 6px 0; }
}
@media (min-width: 900px) and (max-height: 740px) {
  .lst__lead { display: none; }
  .firm__lehre { display: none; }
  .hours__axis { display: none; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .lst__grid { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); }
  .lst__text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .brow { grid-template-columns: 100px minmax(0, 1.25fr) minmax(0, 1fr); padding-inline: 14px; }
  .tip { grid-template-columns: minmax(0, 1fr); }
  .tip__go { grid-column: 1; grid-row: auto; justify-self: start; }
  .tip__d { display: none; }
}

/* =========================================================
   Type system — one voice
   Archivo narrow 600–650: headlines, figures, plates. Archivo normal: text,
   controls and two label tiers — LABEL 600 · .18em (names a block) ·
   CAPTION 500 · .14em (names a value). Brand lockups keep their own set.
   ========================================================= */
:root {
  --t-lab: 11.5px; --t-cap: 11px; --t-lead: 17px; --t-body: 15px; --t-small: 14px;
  --h3m: clamp(1.9rem, 2.6vw, 2.8rem);
  --h3s: clamp(1.3rem, min(1.8vw, 2.9svh), 1.7rem);
}
@media (max-width: 719px) {
  :root { --t-lab: 11px; --t-cap: 10.5px; --t-lead: 15px; --t-body: 14.5px; --t-small: 13.5px; --h3m: 1.8rem; --h3s: 1.28rem; }
}
body { font-synthesis: none; }
b, strong { font-weight: 600; }
/* LABEL */
.h-label, .svc__lab, .brow__lab, .week__lab, .tip__lab, .lst__g, .people__lab, .hours__lab, .foot__cols h4, .note__btn, .ticket__lab, .ticket__nl {
  font-family: var(--sans); font-size: var(--t-lab); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-style: normal; font-stretch: 100%;
}
/* CAPTION */
.svc__cap, .board__date, .lst__no, .lst__cap, .lst__facts dt, .firm__nums dt, .contact__cap, .ticket__grid dt {
  font-family: var(--sans); font-size: var(--t-cap); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-style: normal; font-stretch: 100%;
}
.lst__cap { font-weight: 600; }

/* ---------- Phone hero ---------- */
@media (max-width: 719px) {
  .hero__fg { object-position: 50% 30%; }
  .hero__shade { background:
    radial-gradient(90% 32% at 50% var(--crest-y, 28%), rgba(9, 12, 16, .8), rgba(9, 12, 16, .5) 62%, rgba(9, 12, 16, .2) 100%),
    linear-gradient(180deg, rgba(9, 12, 16, .85) 0%, rgba(9, 12, 16, .5) 22%, rgba(9, 12, 16, .5) 44%, rgba(9, 12, 16, .82) 60%, rgba(9, 12, 16, .96) 76%); }
  .crest { padding: clamp(6px, 2svh, 22px) 16px clamp(10px, 2svh, 20px); }
  .mk { width: clamp(200px, min(66vw, 30svh), 290px); }
  .crest__since { margin-top: 12px; gap: 10px; font-size: 10.5px; letter-spacing: .24em; }
  .crest__since i { width: 22px; }
  .svc { width: auto; margin: 0 10px 10px; }
  .svc__top { gap: 10px; padding: 10px 12px; }
  .svc__office { font-size: 12.5px; }
  .svc__steps li { width: 22px; height: 22px; font-size: 11px; }
  .svc__body { padding: 12px 12px 4px; min-height: 0; }
  .svc__q { margin-bottom: 10px; }
  .chips[data-group="issue"] { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .chips[data-group="issue"] .chip { padding: 0 10px; font-size: 14px; height: 40px; }
  .chips[data-group="cb"] { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .svc__sys { margin-top: 10px; gap: 8px; }
  .svc__pair { gap: 12px; }
  .svc__sel, .svc__sel select { width: 100%; min-width: 0; }
  .svc__urg { width: 100%; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1 1 0; padding: 0 6px; font-size: 13.5px; }
  .svc__hint { margin-top: 10px; font-size: 12.5px; }
  .svc__who { margin-top: 10px; }
  .svc__in { flex: 1 1 120px; }
  .svc__nav { padding: 8px 12px 12px; gap: 10px; }
  .svc__sum { font-size: 12.5px; white-space: normal; line-height: 1.3; } /* two short lines instead of "· St. Gallen…" */
  .svc__next { padding: 0 14px 0 16px; font-size: 14.5px; }
  .ticket { place-items: end center; padding: 0; }
  .ticket__card { grid-template-columns: minmax(0, 1fr) 80px; border-radius: 14px 14px 0 0; max-height: 92svh; }
  .ticket__main { padding: 16px 14px 12px; }
  .ticket__title { font-size: 1.6rem; padding-right: 30px; }
  .ticket__grid { gap: 8px 12px; margin-top: 10px; }
  .ticket__grid dd { font-size: 13.5px; }
  .ticket__n { font-size: 2.6rem; }
  .ticket__foot { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); }
  .ticket__note { font-size: 12.5px; }
  .ticket__x { top: 10px; right: 90px; background: rgba(22, 27, 33, .08); color: var(--ink); }
}
@media (max-width: 719px) and (max-height: 700px) { .crest__since { display: none; } }

/* ---------- Phone and tablet screens: keep each one above the dock ---------- */
@media (max-width: 899px) {
  .today__grid, .lst__grid, .firm__grid, .area__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .today__grid { gap: 12px; }
  .lst__grid { gap: 12px; }
  .lst__fig { height: clamp(150px, 26svh, 380px); }
  .firm__fig { height: clamp(150px, 24svh, 380px); }
  .map { height: clamp(220px, 36svh, 460px); }
  .lst__nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .lst__nav::-webkit-scrollbar { display: none; }
  .lst__g { display: none; }
  .lst__nav button { flex: none; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 14.5px; font-stretch: 100%; white-space: nowrap; }
  .lst__nav button::before { display: none; }
  .lst__nav button:hover { padding-left: 12px; }
  .lst__nav button[aria-selected="true"] { background: var(--graph); border-color: var(--graph); color: var(--paper); }
  .area__map { order: -1; }
  .people { display: none; }
}
@media (max-width: 719px) {
  .today__head, .lst__head { margin-bottom: 12px; }
  .board__top { padding: 9px 14px; }
  .board__title { font-size: 1.3rem; }
  .board__date, .board__src { display: none; }
  .board__clock { font-size: 1.3rem; }
  .board__rows { padding: 2px 0; }
  .brow { grid-template-columns: 74px minmax(0, 1.2fr) minmax(0, 1fr); gap: 5px; padding: 4px 12px; }
  .brow__lab { font-size: 9.5px; letter-spacing: .12em; }
  .plate { min-height: 32px; padding: 0 8px; font-size: 15px; }
  .plate--side { font-size: 12.5px; }
  .week__head { display: none; }
  .week__chart { flex: none; height: 64px; min-height: 0; }
  .week__days { font-size: 12px; margin-top: 2px; }
  .week__days small { font-size: 11px; }
  .tip { margin-top: 10px; padding: 12px 14px; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tip__d { display: none; }
  .tip__go { --h: 42px; grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .lst__t { font-size: 1.7rem; }
  .lst__lead { display: none; }
  .lst__text { margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .lst__facts { margin-top: 10px; }
  .lst__facts div { padding: 6px 8px 6px 0; }
  .lst__go { --h: 44px; margin-top: 12px; }
  .firm__nums { margin-top: 10px; gap: 28px; }
  .firm__nums dd { font-size: 2.3rem; }
  .firm__nums dt { font-size: 10px; max-width: none; }
  .contact { min-height: 100svh; }
  .firm__cap { display: none; }
  .tl { margin-top: 14px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .tl::-webkit-scrollbar { display: none; }
  .tl button { flex: none; padding: 0 16px 10px 0; font-size: 1rem; }
  .tl__card { min-height: 0; margin-top: 10px; }
  .tl__d { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .firm__lehre { margin-top: 10px; padding-top: 10px; font-size: 12.5px; }
  .firm__lehre span { display: none; }
  .area__lead { display: none; }
  .area__places { margin-top: 10px; gap: 5px; }
  .area__places button { height: 34px; padding: 0 9px; font-size: 13.5px; gap: 6px; }
  .area__card { min-height: 0; margin-top: 10px; padding-top: 10px; }
  .area__list { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .area__more { display: none; }
  .map__src { font-size: 10.5px; }
  .contact__big li { grid-template-columns: 72px minmax(0, 1fr); padding: 8px 0; }
  .contact__big a { font-size: 1.3rem; }
  .contact__go { --h: 46px; }
  .hours { padding: 12px 14px; }
  .hrow { gap: 8px; grid-template-columns: 28px minmax(0, 1fr); }
  .htrack { height: 12px; }
  .hours__axis { margin-left: 36px; }
}
/* short phones (iPhone SE, Safari with toolbars) */
@media (max-width: 719px) and (max-height: 760px) {
  .lst__fig { height: 21svh; }
  .lst__text { -webkit-line-clamp: 3; }
  .map { height: 31svh; }
  .area__list { -webkit-line-clamp: 3; }
  .contact__big { margin-top: 10px; }
  .contact__big li { padding: 6px 0; }
  .contact__go { margin-top: 12px; }
  .hours__grid { gap: 4px; }
  .hours__axis { display: none; }
}
