/* Gebr. Brugger Tischlerei — demo by VCSLV. Tokens, base, sections; Screens + Type layers last. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/fraunces.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: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/fraunces-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: 'Fraunces'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/fraunces-italic.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: 'Fraunces'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/fraunces-italic-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: 'Roboto Condensed'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/roboto-condensed.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: 'Roboto Condensed'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/roboto-condensed-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; }

:root {
  --night: #221813; --brown: #3f2c26; --brown-2: #4c382f; --yellow: #ead817; --olive: #bdae11; --brass: #857a0b;
  --paper: #f2ece2; --paper-2: #e6ddcd; --ink: #2b1f1a; --muted: #6c5d53; --cream: #f4efe6; --cream-2: rgba(244, 239, 230, .72);
  --line: rgba(43, 31, 26, .15); --line-d: rgba(244, 239, 230, .16);
  --serif: 'Fraunces', Georgia, serif; --sans: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  --hdr-h: 66px; --gut: clamp(16px, 4vw, 60px); --r: 3px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (max-width: 719px) { :root { --hdr-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-body)/1.55 var(--sans); font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
@media (max-width: 719px) { .hide-s { display: none; } }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r);
  font: 600 13.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate;
  -webkit-touch-callout: none; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .15s ease; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.btn:hover::after { transform: scaleX(1); }
.btn:active { transform: scale(.97); }
.btn--y { background: var(--yellow); color: var(--night); }
.btn--y::after { background: #fff; opacity: .35; }
.btn--dark { background: var(--brown); color: var(--cream); }
.btn--dark::after { background: #fff; opacity: .12; }
.btn--line { border-color: currentColor; }
.btn--line::after { background: currentColor; opacity: .14; }
.btn--light { color: var(--cream); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 12.5px; }

/* icons drawn with CSS masks (no glyphs) */
.ico { display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.ico--l { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.ico--r { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.ico--tel { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a1 1 0 01-1 1A16 16 0 014 5a1 1 0 011-1z'/%3E%3C/svg%3E"); }
.rbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background .2s, border-color .2s; }
.rbtn:hover { background: rgba(43, 31, 26, .07); border-color: var(--ink); }
.rbtn--dark { border-color: var(--line-d); color: var(--cream); }
.rbtn--dark:hover { background: rgba(244, 239, 230, .1); border-color: var(--cream); }
.rbtn:disabled { opacity: .3; pointer-events: none; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  background: rgba(34, 24, 19, .96); color: var(--cream); border-bottom: 1px solid rgba(244, 239, 230, .08); transition: transform .4s var(--ease); }
.hdr.is-up { transform: translateY(-100%); }
.hdr__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; transition: opacity .4s; flex: none; }
.hdr.has-crest .hdr__brand { opacity: 0; pointer-events: none; }
.hdr__mark { width: 40px; height: 38px; }
.hdr__word { width: 170px; height: 31px; color: var(--cream); }
.hdr__nav { display: flex; gap: clamp(14px, 1.8vw, 30px); margin: 0 auto; }
.hdr__nav a { font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--cream-2); padding: 8px 0; position: relative; transition: color .2s; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--yellow); transform: scaleX(0); transition: transform .35s var(--ease); }
.hdr__nav a:hover { color: var(--cream); }
.hdr__nav a:hover::after { transform: scaleX(1); }
.hdr__right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.hdr__cta { min-height: 40px; padding: 0 18px; font-size: 12.5px; }
.hdr__menu { display: none; align-items: center; gap: 10px; min-height: 40px; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.hdr__menu i { width: 20px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; transition: transform .3s; }
.hdr__menu[aria-expanded="true"] i { transform: scaleY(.2); }
.open { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1.2 var(--sans); letter-spacing: .04em; color: var(--cream-2); white-space: nowrap; }
.open__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #9a8f86; flex: none; }
.open.is-open .open__dot { background: #7fcf6a; }
.open.is-open .open__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #7fcf6a; animation: pulse 2.2s infinite; }
.open.is-off .open__dot::after { animation-play-state: paused; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@media (max-width: 1180px) { .hdr__nav { display: none; } .hdr__menu { display: inline-flex; } }
@media (max-width: 719px) { .hdr { gap: 10px; } .hdr__right .open { display: none; } .hdr__word { width: 136px; height: 25px; } .hdr__mark { width: 34px; height: 32px; } .hdr__cta { display: none; } }
.menu-open .hdr__cta, .menu-open .hdr__right .open { display: none; }

.menu { position: fixed; inset: var(--hdr-h) 0 0; z-index: 49; background: var(--night); color: var(--cream); padding: 28px var(--gut) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font: 380 clamp(1.7rem, 7vw, 2.4rem)/1.25 var(--serif); font-variation-settings: 'SOFT' 100; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line-d); }
.menu__foot { font-size: 14px; color: var(--cream-2); }

/* ---------- Hero · Schauraum ---------- */
.hero { position: relative; background: var(--night); color: var(--cream); overflow: hidden; overflow-anchor: none; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 18% 40%, rgba(234, 216, 23, .07), transparent 70%); pointer-events: none; }
.hero__in { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 72px); align-items: center;
  padding: calc(var(--hdr-h) + clamp(18px, 3.5svh, 44px)) var(--gut) clamp(18px, 4svh, 48px); }
.hero__left { display: flex; flex-direction: column; gap: clamp(16px, 2.6svh, 30px); min-width: 0; }
.brand { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); will-change: transform; }
.mark { width: clamp(78px, 11svh, 126px); height: auto; flex: none; overflow: visible; }
.mark__ring { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js .mark__ring { stroke-dashoffset: 1; }
.mark__tool { opacity: 0; }
.word { width: clamp(250px, 27vw, 470px); height: auto; color: var(--cream); overflow: visible; }
.hero__line { margin: 0; font: 300 var(--t-lead)/1.45 var(--sans); color: var(--cream-2); letter-spacing: .01em; }

.console { border: 1px solid var(--line-d); background: rgba(244, 239, 230, .035); border-radius: var(--r); padding: clamp(16px, 2.4svh, 24px); display: flex; flex-direction: column; gap: clamp(12px, 1.8svh, 18px); max-width: 560px; }
.console__lab { margin: 0; color: var(--yellow); }
.console__line { margin: 0; min-height: 3em; font-size: var(--t-body); line-height: 1.5; color: var(--cream-2); }
.console__line b { color: var(--cream); font-weight: 600; }
.console__go { display: flex; flex-wrap: wrap; gap: 10px; }
.console__go .btn--line { color: var(--cream); }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: var(--r); background: rgba(244, 239, 230, .07); isolation: isolate; }
.seg__b { position: relative; z-index: 1; min-height: 42px; padding: 0 10px; font: 600 13px/1.1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--cream-2); border-radius: 2px; transition: color .3s; white-space: nowrap; }
.seg__b:hover { color: var(--cream); }
.seg__b[aria-selected="true"] { color: var(--night); }
.seg__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 2px; background: var(--yellow); opacity: 0; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; }
.seg--light { background: rgba(43, 31, 26, .07); }
.seg--light .seg__b { color: var(--muted); }
.seg--light .seg__b:hover { color: var(--ink); }
.seg--light .seg__b[aria-selected="true"] { color: var(--cream); }
.seg--light .seg__pill { background: var(--brown); }
.seg--dark .seg__b[aria-selected="true"] { color: var(--night); }

.wall { position: relative; display: grid; grid-template-columns: 1fr 1.18fr 1.18fr 1fr; grid-template-rows: 1.12fr 1fr; gap: 5px;
  height: min(calc(100svh - var(--hdr-h) - clamp(40px, 8svh, 96px)), 860px); min-height: 380px; }
.wall__p { position: relative; margin: 0; overflow: hidden; background: #160f0c; border-radius: 2px; }
.wall__p--a { grid-column: 1; grid-row: 1 / span 2; }
.wall__p--b { grid-column: 2 / span 2; grid-row: 1; }
.wall__p--c { grid-column: 2; grid-row: 2; }
.wall__p--d { grid-column: 3; grid-row: 2; }
.wall__p--e { grid-column: 4; grid-row: 1 / span 2; }
.wall__p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall__p figcaption { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 6px 9px; background: rgba(34, 24, 19, .82); color: var(--cream); border-radius: 2px; }
.wall__p::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; z-index: 1; }

@media (max-width: 899px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; }
  .wall { order: 2; height: clamp(170px, 30svh, 340px); min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr; gap: 4px; }
  .hero__left { display: contents; }
  .brand { order: 0; } .hero__line { order: 1; } .console { order: 3; max-width: none; }
  .wall__p--a, .wall__p--b, .wall__p--e { grid-column: auto; grid-row: auto; }
  .wall__p--c, .wall__p--d { display: none; }
}
@media (max-width: 899px) {
  .hero__in { display: flex; flex-direction: column; align-items: stretch; }
  .wall { flex: 1 1 auto; height: auto; min-height: 150px; max-height: 52svh; }
}
@media (max-width: 719px) {
  .hero__in { padding-top: calc(var(--hdr-h) + 12px); padding-bottom: 14px; gap: 12px; }
  .mark { width: 62px; }
  .word { width: min(64vw, 260px); }
  .hero__line { font-size: 14.5px; }
  .console { padding: 12px; gap: 10px; }
  .console__lab { display: none; }
  .console__line { min-height: 2.9em; font-size: 14px; line-height: 1.45; }
  .seg__b { min-height: 40px; font-size: 12px; letter-spacing: .06em; padding: 0 4px; }
  .console__go { flex-wrap: nowrap; gap: 8px; }
  .console__go .btn { flex: 1 1 auto; padding: 0 12px; min-height: 44px; font-size: 12px; letter-spacing: .08em; }
  .wall__p figcaption { left: 6px; bottom: 6px; padding: 4px 6px; }
}
@media (max-width: 719px) and (max-height: 700px) { .hero__line { display: none; } .wall { min-height: 120px; } }

/* ---------- Sections ---------- */
.sec { position: relative; padding-left: var(--gut); padding-right: var(--gut); }
.sec--paper { background: var(--paper); color: var(--ink); }
.sec--dark { background: var(--brown); color: var(--cream); }
.sec--dark .h-label { color: var(--yellow); }
.h-label { margin: 0 0 12px; color: var(--brass); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 360; font-variation-settings: 'SOFT' 100; line-height: 1.04; letter-spacing: -.01em; }
.h2 em { font-style: italic; font-weight: 340; color: var(--brass); }
.sec--dark .h2 em { color: var(--yellow); }
.ln .ln-mask { display: block; overflow: hidden; padding: 0 .16em .14em; margin: 0 -.16em -.14em; }
.ln .ln-in { display: block; }

/* stage: sequential photo change */
.stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stage__box { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-2); height: var(--stage-h, clamp(280px, calc(var(--scr-h) - 58px), 760px)); }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.stage__img.is-on { opacity: 1; }
.stage__img.is-port { object-fit: contain; }
.stage__bar { display: flex; align-items: center; gap: 12px; }
.stage__cap { margin-right: auto; color: inherit; }
.stage__n { font: 500 var(--t-small)/1 var(--sans); letter-spacing: .08em; opacity: .75; white-space: nowrap; }
.stage__n b { font-weight: 600; }

.ex__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.ex__text { display: flex; flex-direction: column; gap: clamp(16px, 2.6svh, 26px); align-items: flex-start; }
.ex__text .seg { width: 100%; max-width: 440px; }
.facts { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 460px; }
.facts li { display: grid; gap: 2px; padding: clamp(9px, 1.5svh, 14px) 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font: 400 var(--h3s)/1.2 var(--serif); font-variation-settings: 'SOFT' 100; }
.facts span { font-size: var(--t-small); color: var(--muted); }

/* doors */
.doors__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.doors__text { display: flex; flex-direction: column; gap: clamp(16px, 2.6svh, 26px); }
.doors__text .seg { max-width: 380px; }
.doors__line { margin: 0; color: var(--cream-2); font-size: var(--t-body); max-width: 26em; }
.nums { display: flex; flex-wrap: wrap; gap: 14px clamp(22px, 3vw, 44px); margin: 0; }
.nums div { display: flex; flex-direction: column-reverse; gap: 4px; }
.nums dt { color: var(--cream-2); }
.nums dd { margin: 0; font: 330 clamp(2.2rem, min(3.6vw, 6svh), 3.6rem)/1 var(--serif); font-variation-settings: 'SOFT' 100; color: var(--yellow); }
.nums dd.nums__s { font-size: clamp(1.35rem, min(2vw, 3.6svh), 1.9rem); line-height: 1.15; color: var(--cream); padding-top: .5em; }
.nums--light dt { color: var(--muted); }
.nums--light dd { color: var(--ink); }
.hall { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hall__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 18px); height: min(calc(var(--scr-h) - 56px), 46vw, 760px); }
.hall__door { position: relative; overflow: hidden; border-radius: 2px; background: #2c1f1a; opacity: .5; transition: opacity .5s; cursor: pointer; }
.hall__door.is-cur { opacity: 1; cursor: default; }
.hall__door:not(.is-cur):hover { opacity: .78; }
.hall__door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hall__door.is-cur::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow); }
.hall__bar { display: flex; align-items: center; gap: 12px; }

/* rooms */
.rooms__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(16px, 3svh, 32px); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs__b { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 40px; font: 600 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.tabs__b:hover { color: var(--ink); border-color: var(--ink); }
.tabs__b[aria-selected="true"] { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.rooms__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr); gap: clamp(20px, 3vw, 48px); align-items: stretch; }
.stage--room .stage__box { height: clamp(260px, calc(var(--scr-h) - var(--rooms-head, 120px)), 700px); }
.rooms__side { display: flex; flex-direction: column; gap: clamp(14px, 2.4svh, 24px); justify-content: center; }
.rooms__line { margin: 0; font: 380 var(--h3m)/1.18 var(--serif); font-variation-settings: 'SOFT' 100; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumb { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--paper-2); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .25s, opacity .25s; opacity: .62; }
.thumb:hover { opacity: .9; }
.thumb.is-on { outline-color: var(--brown); opacity: 1; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rooms__quote { margin: 0; padding-top: clamp(10px, 2svh, 18px); border-top: 1px solid var(--line); font: italic 330 var(--quote)/1.35 var(--serif); font-variation-settings: 'SOFT' 100; color: var(--muted); }

/* chronik: folding rule */
.chron { display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4.5svh, 54px); }
.rule { position: relative; }
.rule__svg { width: 100%; height: auto; overflow: visible; }
.rule__svg text { font: 600 13px var(--sans); fill: #2b1f1a; letter-spacing: .02em; }
.rule__years { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.rule__y { min-height: 44px; border-top: 2px solid var(--line-d); font: 500 15px/1 var(--sans); letter-spacing: .06em; color: var(--cream-2); text-align: left; padding-top: 10px; transition: color .25s, border-color .25s; }
.rule__y:hover { color: var(--cream); border-color: var(--cream-2); }
.rule__y[aria-selected="true"] { color: var(--yellow); border-color: var(--yellow); }
.chron__card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 48px); align-items: center; }
.chron__y { margin: 0; font: 300 clamp(4.2rem, min(11vw, 17svh), 9.5rem)/.9 var(--serif); font-variation-settings: 'SOFT' 100; color: var(--yellow); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.chron__t { margin: 0 0 6px; font: 400 var(--h3m)/1.15 var(--serif); font-variation-settings: 'SOFT' 100; }
.chron__l { margin: 0; color: var(--cream-2); font-size: var(--t-lead); max-width: 36em; }

/* crew */
.crew__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 3.6vw, 64px); align-items: center; }
.crew__photo { position: relative; overflow: hidden; border-radius: var(--r); height: clamp(300px, var(--scr-h), 780px); background: var(--paper-2); }
.crew__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.crew__text { display: flex; flex-direction: column; gap: clamp(14px, 2.4svh, 24px); }
.faces { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.face { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--paper-2); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .25s, transform .25s; }
.face:hover { transform: translateY(-2px); }
.face[aria-selected="true"] { outline-color: var(--brown); }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.5); transform-origin: 50% 12%; }
.face__card { margin: 0; display: flex; align-items: center; gap: 16px; min-height: 3.2em; }
.face__card img { width: clamp(64px, 7vw, 96px); aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 15%; border-radius: 2px; flex: none; }
.face__who { display: flex; flex-direction: column; gap: 2px; }
.face__card b { font: 400 var(--h3s)/1.2 var(--serif); font-variation-settings: 'SOFT' 100; }
.face__who > span { color: var(--muted); font-size: var(--t-small); }

/* lehre */
.lehre__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.lehre__text { display: flex; flex-direction: column; gap: clamp(14px, 2.4svh, 24px); }
.lehre__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 460px; }
.lehre__pair figure { margin: 0; }
.lehre__pair .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: #2c1f1a; height: min(var(--pair-h, 30svh), 320px); width: auto; }
.lehre__pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.lehre__pair figcaption { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.lehre__pair figcaption b { font: 400 1.15rem/1.2 var(--serif); font-variation-settings: 'SOFT' 100; }
.lehre__pair figcaption span { color: var(--cream-2); font-size: var(--t-small); }
.lehre__story { margin: 0; color: var(--cream-2); font-size: var(--t-lead); max-width: 30em; }
.lehre__open { display: none; align-self: flex-start; }
.apply { border: 1px solid var(--line-d); border-radius: var(--r); padding: clamp(18px, 3svh, 30px); display: flex; flex-direction: column; gap: clamp(12px, 2svh, 18px); background: rgba(0, 0, 0, .12); }
.apply__lab { margin: 0; color: var(--yellow); }
.apply__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.apply__go { align-self: flex-start; }
.apply__note { margin: 0; font-size: var(--t-small); color: var(--cream-2); }
.apply__done { padding: 14px 16px; border-left: 3px solid var(--yellow); background: rgba(234, 216, 23, .08); }
.apply.is-done .apply__row, .apply.is-done .chips, .apply.is-done .apply__go, .apply.is-done .apply__note { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-d); border-radius: 40px; font: 500 14px/1 var(--sans); letter-spacing: .02em; color: var(--cream-2); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--cream); color: var(--cream); }
.chip.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--night); }
.sec--paper .chip { border-color: var(--line); color: var(--muted); }
.sec--paper .chip:hover { border-color: var(--ink); color: var(--ink); }
.sec--paper .chip.is-on { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld span { color: inherit; opacity: .78; }
.fld input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-d); border-radius: var(--r); background: rgba(244, 239, 230, .06); color: var(--cream); font: 400 16px var(--sans); }
.sec--paper .fld input { border-color: var(--line); background: #fff; color: var(--ink); }
.fld input:focus { outline: 2px solid var(--yellow); outline-offset: 0; border-color: transparent; }
.fld.is-bad input { border-color: #c4553a; }

/* anfrage */
.ask__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.ask__form { display: flex; flex-direction: column; gap: clamp(12px, 2.2svh, 22px); min-width: 0; }
.steps { display: flex; flex-direction: column; gap: clamp(12px, 2svh, 20px); }
.step { border: 0; margin: 0; padding: 0; min-inline-size: 0; display: flex; flex-direction: column; gap: 10px; }
.step legend { padding: 0; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font: 400 var(--h3s)/1.2 var(--serif); font-variation-settings: 'SOFT' 100; }
.step legend i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brown); color: var(--cream); font: 600 12px/1 var(--sans); font-style: normal; flex: none; }
.ask__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ask__nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ask__nav [data-back] { display: none; }
.ask__sum { display: none; }
@media (max-width: 899px) {
  .ask__sum { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); background: var(--paper-2); }
  .ask__sumrefs { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; flex: none; }
  .ask__sumrefs span { position: relative; width: 44px; height: 44px; overflow: hidden; border-radius: 2px; background: #d8cdbb; }
  .ask__sumrefs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .ask__sum p { margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--ink); min-width: 0; }
  .ask__sum p b { display: block; font-weight: 600; }
}
@media (max-width: 400px) { .dock__call span { display: none; } .dock__call { padding: 0 14px; } }
.ask__hint { margin: 0; font-size: var(--t-small); color: #9a3f2a; min-height: 1.2em; }
.ticket { position: relative; background: var(--night); color: var(--cream); border-radius: var(--r); padding: clamp(18px, 3svh, 30px); display: flex; flex-direction: column; gap: clamp(10px, 1.6svh, 16px); }
.ticket::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--yellow); border-radius: var(--r) var(--r) 0 0; }
.ticket__lab { margin: 0; color: var(--yellow); }
.ticket__rows { margin: 0; display: flex; flex-direction: column; }
.ticket__rows div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-d); }
.ticket__rows dt { color: var(--cream-2); }
.ticket__rows dd { margin: 0; font: 400 16px/1.35 var(--sans); }
.ticket__rows div { transition: background-color 1.2s ease; border-radius: 2px; }
.ticket__rows div.is-lit { animation: lit 1.4s ease; }
@keyframes lit { 0% { background-color: rgba(234, 216, 23, .26); } 100% { background-color: transparent; } }
.ticket__cap { margin: 4px 0 0; color: var(--cream-2); }
.ticket__refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ticket__refs span { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: #2c1f1a; }
.ticket__refs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ticket__bring { margin: 0; font-size: var(--t-body); }
.ticket__done { padding: 12px 14px; border-left: 3px solid var(--yellow); background: rgba(234, 216, 23, .08); font-size: var(--t-small); }

/* contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.contact__text { display: flex; flex-direction: column; gap: clamp(12px, 2.2svh, 22px); align-items: flex-start; }
.addr { font-style: normal; font-size: var(--t-lead); line-height: 1.55; color: var(--cream-2); }
.addr b { display: block; color: var(--cream); font-weight: 600; }
.addr a { color: var(--cream); text-decoration-color: rgba(234, 216, 23, .6); text-underline-offset: 3px; }
.hours { display: flex; flex-direction: column; gap: 4px; }
.open--big { font-size: 15px; color: var(--cream); margin: 0; }
.hours__l { margin: 0; font-size: var(--t-small); color: var(--cream-2); }
.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; width: 100%; max-width: 560px; }
.place { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 0; border-bottom: 1px solid var(--line-d); text-align: left; color: var(--cream-2); transition: color .2s; }
.place:hover, .place[aria-pressed="true"] { color: var(--cream); }
.place__n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; font: 600 11px/1 var(--sans); flex: none; }
.place[aria-pressed="true"] .place__n { background: var(--yellow); border-color: var(--yellow); color: var(--night); }
.place__nm { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.2; }
.place__t { font: 600 13.5px/1.2 var(--sans); white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.place__how { width: 15px; height: 15px; background: currentColor; opacity: .75; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.place__how--car { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 16V12l2-5h12l2 5v4zM4 16v2h3v-2M17 16v2h3v-2M4 12h16'/%3E%3C/svg%3E"); }
.place__how--foot { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Ccircle cx='13' cy='4.5' r='2'/%3E%3Cpath d='M11 22l2-6-3-3 1-5 4 3h3M9 9l-3 3M13 16l3 6'/%3E%3C/svg%3E"); }
.map { position: relative; aspect-ratio: 640 / 460; width: 100%; max-height: var(--scr-h); justify-self: center; border-radius: var(--r); overflow: hidden; background: #efe8dc; }
.map__vp { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; aspect-ratio: 640 / 460; }
.map__over { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__over { pointer-events: none; }
.map__route { opacity: 0; transition: opacity .35s; }
.map__route.is-on { opacity: 1; }
.map__case { stroke: #fff; stroke-width: 8; fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.map__line { stroke: var(--brown); stroke-width: 4; fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.map__pins { position: absolute; inset: 0; }
.pin { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); color: var(--ink); border: 1.5px solid var(--brown); font: 600 11px/1 var(--sans); transition: background .2s, color .2s, transform .2s; }
.pin:hover { transform: translate(-50%, -50%) scale(1.1); }
.pin.is-on { background: var(--brown); color: var(--cream); }
.pin__lab { position: absolute; left: 50%; top: calc(100% + 3px); transform: translateX(-50%); white-space: nowrap; font: 600 11.5px/1 var(--sans); color: var(--ink); text-shadow: 0 0 3px #f3eee6, 0 0 3px #f3eee6, 0 0 3px #f3eee6; pointer-events: none; }
.pin--home { width: 46px; height: 44px; border: 0; background: none; z-index: 2; }
.pin--home svg { width: 46px; height: 44px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.pin--home .pin__lab { font-size: 12.5px; top: auto; bottom: calc(100% + 2px); }
.pin__lab--schruns { left: calc(100% + 5px); top: 50%; transform: translateY(-50%); }
.pin__lab--bahn { left: auto; right: calc(100% + 5px); top: 50%; transform: translateY(-50%); }
.pin__lab--bartholomaeberg, .pin__lab--silbertal { top: auto; bottom: calc(100% + 3px); }
.pin--edge { width: auto; height: 26px; padding: 0 9px; border-radius: 14px; gap: 5px; display: inline-flex; white-space: nowrap; font: 600 11.5px/1 var(--sans); }
.pin--edge .pin__lab { display: none; }
.map__info { position: absolute; right: 10px; top: 10px; text-align: right; z-index: 3; margin: 0; padding: 9px 12px; background: var(--night); color: var(--cream); border-radius: var(--r); font: 400 13px/1.3 var(--sans); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); pointer-events: none; }
.map__info b { font: 600 16px/1 var(--sans); color: var(--yellow); margin-right: 4px; }
.map__info span { display: block; margin-top: 3px; color: var(--cream-2); font-size: 12px; }
.map__src { position: absolute; left: 8px; bottom: 6px; margin: 0; font-size: 11px; color: var(--muted); }

/* footer */
.foot { background: var(--night); color: var(--cream-2); padding: clamp(40px, 8svh, 80px) var(--gut) calc(clamp(28px, 5svh, 50px) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; font-size: var(--t-small); }
.foot__word { width: min(520px, 86vw); height: auto; aspect-ratio: 3150 / 580; color: var(--cream); margin-bottom: 12px; }
.foot p { margin: 0; max-width: 60em; }
.foot__vc a { color: var(--yellow); }

/* draft note, dock, assistant */
.note-tab { position: fixed; left: 0; top: 50%; z-index: 60; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; padding: 14px 7px; background: rgba(34, 24, 19, .9); color: var(--cream-2); border-radius: 0 3px 3px 0; font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; border: 1px solid rgba(244, 239, 230, .14); border-left: 0; }
.note-tab:hover { color: var(--yellow); }
.note { position: fixed; left: 40px; top: 50%; transform: translateY(-50%); z-index: 61; width: min(330px, calc(100vw - 56px)); background: var(--night); color: var(--cream); border-radius: var(--r); padding: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 12px; font-size: var(--t-small); }
.note[hidden] { display: none; }
.note p { margin: 0; color: var(--cream-2); }
.note .note__t { color: var(--yellow); font: 600 var(--t-lab)/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.note .note__s { font-size: 12.5px; }
.note__s a { color: var(--cream); }
.note .btn { align-self: flex-start; }
.note__x { position: absolute; right: 8px; top: 6px; width: 34px; height: 34px; font-size: 22px; color: var(--cream-2); }

.dock { display: none; }
.dock__asst, .dock__note { display: none; }
@media (max-width: 899px) {
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(34, 24, 19, .97); border-top: 1px solid rgba(244, 239, 230, .1); transform: translateY(110%); transition: transform .45s var(--ease); }
  .dock.is-on { transform: none; }
  .dock__main { flex: 1; min-height: 48px; }
  .dock__note { display: inline-block; }
  .dock__call { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 48px; border: 1px solid rgba(244, 239, 230, .3); border-radius: var(--r); color: var(--cream); text-decoration: none; font: 600 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
  .note-tab { display: none; }
  .dock__note { flex: none; writing-mode: vertical-rl; transform: rotate(180deg); padding: 0 4px; min-height: 48px; border: 1px solid rgba(244, 239, 230, .16); border-radius: 2px; color: var(--cream-2); font: 600 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
  .note { top: auto; bottom: calc(90px + env(safe-area-inset-bottom)); transform: none; }
}

.asst-btn { position: fixed; right: 0; top: 50%; z-index: 56; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; width: 38px; padding: 14px 0; border-radius: 4px 0 0 4px; background: var(--yellow); color: var(--night); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: translateY(-50%); transition: opacity .4s, width .25s; }
.asst-btn:hover { width: 44px; }
.asst-btn__lab { writing-mode: vertical-rl; transform: rotate(180deg); }
.asst-btn.is-on { opacity: 1; }
.asst-btn[hidden] { display: none; }
.asst-btn__ico { width: 22px; height: 22px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M8 10h.01M12 10h.01M16 10h.01' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M8 10h.01M12 10h.01M16 10h.01' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.asst-btn__dot { position: absolute; top: -4px; left: -4px; width: 12px; height: 12px; border-radius: 50%; background: #d8452f; border: 2px solid var(--yellow); }
.asst-btn.is-seen .asst-btn__dot { display: none; }
.asst-bub { position: fixed; right: 50px; top: calc(50% - 30px); z-index: 56; max-width: 260px; margin: 0; padding: 12px 14px; background: var(--cream); color: var(--ink); border-radius: 10px 10px 2px 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.asst-bub.is-on { opacity: 1; transform: none; }
.asst-bub[hidden] { display: none; }
.asst { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end; padding: 20px; background: rgba(20, 14, 11, .45); }
.asst[hidden] { display: none; }
.asst__box { position: relative; width: min(420px, 100%); height: min(760px, calc(100svh - 40px)); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.asst__box iframe { width: 100%; height: 100%; border: 0; display: block; }
.asst__x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; background: rgba(34, 24, 19, .85); color: #fff; font-size: 22px; }
@media (max-width: 899px) {
  .asst-btn { display: none !important; }
  .asst-bub { right: 12px; top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: 230px; }
  .dock__asst { position: relative; display: inline-grid; place-items: center; width: 50px; min-height: 48px; border-radius: var(--r); background: rgba(234, 216, 23, .14); color: var(--yellow); flex: none; }
  .dock__asst .asst-btn__dot { top: 4px; left: auto; right: 4px; border-color: var(--night); }
  .dock__asst.is-seen .asst-btn__dot { display: none; }
  .asst { padding: 0; }
  .asst__box { width: 100%; height: 100%; border-radius: 0; }
}

/* ---------- Screens layer ---------- */
: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.1rem, min(3.4vw, 5.4svh), 3.8rem);
}
main > section.sec { padding-top: var(--scr-t); padding-bottom: var(--scr-b); }
@media (min-width: 900px) { main > section.sec { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; } }
@media (max-width: 899px) {
  :root { --scr-b: calc(86px + env(safe-area-inset-bottom)); }
  .ex__grid, .doors__grid, .rooms__body, .crew__grid, .lehre__grid, .ask__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) { :root { --scr-t: calc(var(--hdr-h) + 14px); --h2s: clamp(1.85rem, 8.2vw, 2.35rem); } }
@media (max-height: 800px) and (min-width: 900px) { :root { --h2s: clamp(2rem, min(3.2vw, 5.6svh), 3.2rem); } }
main .h2 { font-size: var(--h2s); }

/* phone screens: hide the secondary, keep one thought per screen */
@media (max-width: 899px) {
  .ex__grid { gap: 14px; }
  .ex__text { gap: 12px; }
  .ex__text .btn { display: none; }
  .stage { gap: 8px; }
  .stage__box { height: clamp(180px, 34svh, 420px); }
  .ex .stage { order: 2; }
  .facts li { padding: 6px 0; }
  .facts span { display: none; }
  .doors__grid { gap: 14px; }
  .doors__line { display: none; }
  .nums dd { font-size: 2rem; }
  .nums dd.nums__s { font-size: 1.2rem; }
  .hall__row { grid-template-columns: minmax(0, 1fr); height: clamp(220px, 40svh, 520px); }
  .hall__door:not(.is-cur) { display: none; }
  .rooms__head { margin-bottom: 12px; gap: 12px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut); }
  .tabs::-webkit-scrollbar { display: none; }
  .rooms__body { gap: 12px; }
  .stage--room .stage__box { height: clamp(190px, 36svh, 440px); }
  .rooms__quote { display: none; }
  .rooms__line { font-size: 1.2rem; }
  .chron { gap: 18px; }
  .rule__years { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 4px; }
  .rule__svg text { display: none; }
  .rule__svg { height: 46px; }
  .chron__card { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .crew__grid { gap: 14px; }
  .crew__photo { height: clamp(150px, 26svh, 380px); }
  .crew__text { gap: 12px; }
  .faces { max-width: none; gap: 6px; }
  .lehre__grid { gap: 16px; }
  .lehre__story { font-size: 14.5px; }
  .apply__row { grid-template-columns: minmax(0, 1fr); }
  .lehre__open { display: inline-flex; }
  .lehre .apply { display: none; }
  .lehre.is-form .apply { display: flex; }
  .lehre.is-form .lehre__pair, .lehre.is-form .lehre__story, .lehre.is-form .lehre__open { display: none; }
  .ask__grid { gap: 14px; }
  .step:not(.is-on) { display: none; }
  .ask__nav [data-back] { display: inline-flex; }
  .ask__row { grid-template-columns: minmax(0, 1fr); }
  .ticket { display: none; }
  .ask.is-done .ask__form { display: none; }
  .ask.is-done .ticket { display: flex; }
  .contact__grid { gap: 14px; }
  .contact .map { order: -1; aspect-ratio: auto; height: clamp(170px, 25svh, 420px); }
  .addr b { display: none; }
  .map__vp { width: auto; height: 100%; max-width: 100%; }
  .pin { width: 20px; height: 20px; font-size: 10px; }
  .pin--home, .pin--home svg { width: 34px; height: 32px; }
  .pin[data-k="bahn"], .pin--home .pin__lab { display: none; }
  .pin__lab { font-size: 10.5px; }
  .pin.pin--edge { width: auto; height: 22px; padding: 0 7px; font-size: 10.5px; }
  .map__info { right: 6px; top: 6px; padding: 6px 9px; font-size: 12px; }
  .map__info b { font-size: 14px; }
  .map__info span { display: none; }
  .face__card img { width: 46px; }
  .map__src { font-size: 10px; }
  .places { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
  .place { min-height: 32px; padding: 3px 0; }
  .place__nm { font-size: 13px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
  .place__t { font-size: 12.5px; }
  .addr { font-size: 14.5px; }
  .hours__l { display: none; }
}
@media (max-width: 719px) {
  .lehre__pair { --pair-h: 21svh; gap: 10px; }
  .lehre__jobs { display: none; }
  .places li:nth-child(n+7) { display: none; }
  .contact .btn { min-height: 42px; }
}
@media (max-width: 719px) and (max-height: 700px) {
  .crew__photo { height: 20svh; }
  .stage__box, .stage--room .stage__box { height: 30svh; }
  .hall__row { height: 34svh; }
  .contact .map { height: 22svh; }
  .places li:nth-child(n+5) { display: none; }
  .lehre__pair { --pair-h: 17svh; }
}

/* ---------- Type system layer ---------- */
:root { --t-lab: 11.5px; --t-cap: 11px; --t-lead: 17px; --t-body: 15px; --t-small: 14px;
  --h3m: clamp(1.5rem, 2vw, 1.9rem); --h3s: clamp(1.2rem, min(1.6vw, 2.7svh), 1.5rem); --quote: clamp(1.15rem, min(1.5vw, 2.4svh), 1.45rem); }
@media (max-width: 719px) { :root { --t-lab: 11px; --t-cap: 10.5px; --t-lead: 15px; --t-small: 13.5px; --h3m: 1.45rem; --h3s: 1.15rem; --quote: 1.1rem; } }
.h-label, .console__lab, .apply__lab, .ticket__lab { font: 600 var(--t-lab)/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.wall__p figcaption, .stage__cap, .nums dt, .ticket__cap, .ticket__rows dt, .fld span, .lehre__jobs span { font: 500 var(--t-cap)/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.lehre__jobs { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.lehre__jobs span { padding: 7px 12px; border: 1px solid var(--line-d); border-radius: 30px; color: var(--cream); }

/* ---------- Motion states ---------- */
.js .mark__gb, .js .word .g, .js .hero__line, .js .console, .js .wall__p { opacity: 0; }
.no-anim .mark__gb, .no-anim .word .g, .no-anim .hero__line, .no-anim .console, .no-anim .wall__p,
.is-static .mark__gb, .is-static .word .g, .is-static .hero__line, .is-static .console, .is-static .wall__p { opacity: 1 !important; transform: none !important; }
.no-anim .mark__ring, .is-static .mark__ring { stroke-dashoffset: 0 !important; }
.js .rv { opacity: 0; }
.no-anim .rv, .is-static .rv { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.ask__sum.is-lit { animation: lit2 1.4s ease; }
@keyframes lit2 { 0% { background-color: #f1e27a; } 100% { background-color: var(--paper-2); } }
/* touch: the 24 px map pins get a 44 px hit area, same look */
@media (hover: none), (max-width: 899px) {
  .pin:not(.pin--home)::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; }
}
