@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; }

:root {
  --concrete: #0f0f0e;
  --concrete-deep: #080807;
  --joint: #050504;
  --paint: #f2f0ea;
  --paint-dim: #b9b6ae;
  --paint-line: rgba(242, 240, 234, .2);
  --red: #e10600;
  --red-fill: #d00500;
  --red-hover: #b80400;
  --red-ink: #ff3b30;
  --ink: #0b0b0a;
  --ink-on-red: #1a0100;
  --veil: rgba(8, 8, 7, .97);
  --veil-solid: #080807;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --pad-l: var(--gutter);
  --max: 1200px;
  --header-h: 64px;
  --bay-pad: clamp(88px, 11vw, 168px);
  color-scheme: dark;
  scrollbar-color: #3b3a36 var(--concrete-deep);
}
@media (max-width: 760px) { :root { --pad-l: 34px; --header-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--concrete) url("../img/concrete.webp") repeat;
  background-size: 512px 512px;
  color: var(--paint);
  font: 400 17px/1.6 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--red);
}
img, video, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
::selection { background: var(--red); color: var(--paint); }
:focus-visible { outline: 2px solid var(--paint); outline-offset: 3px; }
.site { overflow-x: clip; }
.wrap { position: relative; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-l) var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nc { text-transform: none; }
.skip { position: fixed; z-index: 60; left: 12px; top: 12px; padding: 12px 16px; background: var(--paint); color: var(--ink); font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform 200ms var(--ease-out); }
.skip:focus-visible { transform: none; }

/* Type voices: extended black caps like the logo, condensed stencil labels, plain body */
h1, h2, .bay-no, .mt, .row h3, .route h3, .worklist h3, .istep h3, .order-no b {
  font-family: var(--font); font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.012em;
}
h1 em, h2 em { font-style: normal; }
.bay-meta, .plate, .dur, .tool, .row-for, .row-time, .istep-time, .facts dt, .order-steps, legend, .chip, .t-no, .t-status, .t-steps, .ms, .mn, .menu-status span, .demo-tag, .hint, .stencil-info, .readings th, .protocol dt, .fine, .form-note, .ftr-small, .annahme-tag, .menu-label {
  font-family: var(--font); font-stretch: 72%; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-variant-numeric: tabular-nums;
}

/* Buttons are floor plates: square, flat, caps */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 2px solid transparent; border-radius: 0; font: 800 14px/1 var(--font); font-stretch: 110%; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 120ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.btn:active { transform: scale(.97); }
.btn-red { background: var(--red-fill); color: var(--paint); }
.btn-paint { background: transparent; color: var(--paint); border-color: var(--paint); }
.btn-ink { background: var(--ink); color: var(--paint); }
@media (hover: hover) and (pointer: fine) {
  .btn-red:hover { background: var(--red-hover); }
  .btn-paint:hover { background: var(--paint); color: var(--ink); }
  .btn-ink:hover { background: #000; }
}

/* Plates: stencil captions on images, black on white paint; red only for readings over the limit */
.plate { position: absolute; z-index: 4; left: 0; top: 0; padding: 7px 10px 6px; background: var(--paint); color: var(--ink); font-size: 12px; line-height: 1; }
.plate.red, .plate.over { background: var(--red-fill); color: var(--paint); }

/* Header: roller-door signage */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); transition: background-color 200ms ease, box-shadow 200ms ease; }
.hdr.solid { background: var(--veil-solid); box-shadow: 0 2px 0 var(--joint); }
.menu-open .hdr { background: transparent; box-shadow: none; }
.hdr-in { display: flex; align-items: center; gap: 12px; height: var(--header-h); padding-inline: var(--gutter); }
.logo { display: block; flex: none; width: clamp(150px, 15vw, 200px); line-height: 0; }
.logo img { display: block; width: 100%; height: auto; }
.demo-tag { margin-right: auto; padding: 5px 6px 4px; border: 2px solid var(--paint-line); color: var(--paint-dim); font-size: 11px; line-height: 1; }
.hdr .btn { gap: 0; min-height: 42px; padding: 0 16px; font-size: 13px; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 14px; border: 2px solid var(--paint); border-radius: 0; background: transparent; color: var(--paint); font-size: 13px; cursor: pointer; transition: transform 120ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.menu-btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .menu-btn:hover { background: var(--paint); color: var(--ink); } }
.burger { position: relative; width: 18px; height: 10px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 240ms var(--ease-out), top 240ms var(--ease-out); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 8px; }
.menu-open .burger i:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 4px; transform: rotate(-45deg); }
.menu-open .menu-btn { background: var(--paint); color: var(--ink); }
@media (max-width: 520px) {
  .hide-s, .demo-tag { display: none; }
  .logo { margin-right: auto; width: 136px; }
  .hdr-in { gap: 8px; }
  .hdr .btn { padding: 0 12px; }
  .menu-btn { padding: 0 12px; }
  .menu-btn .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Hallenplan: a roller door that rolls down over the page */
.menu { position: fixed; inset: 0; z-index: 29; overflow: auto; background: var(--concrete-deep) url("../img/concrete.webp") repeat; overscroll-behavior: contain; }
.menu::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, transparent 0 46px, rgba(0, 0, 0, .55) 46px 48px, rgba(242, 240, 234, .035) 48px 49px); }
.menu-in { position: relative; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: center; min-height: 100%; padding-block: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) calc(40px + env(safe-area-inset-bottom, 0px)); }
.menu-nav { container-type: inline-size; min-width: 0; }
.menu-nav ol { display: grid; margin: 0; padding: 0; list-style: none; }
.menu-nav li { border-top: 2px solid var(--paint-line); }
.menu-nav li:last-child { border-bottom: 2px solid var(--paint-line); }
.menu-nav a { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: clamp(8px, 1.4vh, 16px) 0; color: var(--paint); text-decoration: none; }
.mn { color: var(--paint-dim); font-size: 13px; }
.mt { font-size: clamp(26px, min(7.4cqi, 7.4vh), 72px); line-height: 1; transition: color 200ms ease, transform 260ms var(--ease-out); }
.ms { color: var(--paint-dim); font-size: 13px; text-align: right; }
.menu-nav a[aria-current] .mt { color: var(--red); }
.menu-nav a[aria-current] .mn { color: var(--paint); }
@media (hover: hover) and (pointer: fine) { .menu-nav a:hover .mt { color: var(--red); transform: translateX(10px); } }
.menu-side { display: grid; gap: 28px; }
.menu-status { display: grid; gap: 6px; margin: 0; padding: 16px; background: var(--paint); color: var(--ink); }
.menu-status span { font-size: 12px; }
.menu-status b { font-weight: 700; font-size: 16px; line-height: 1.3; }
.menu-contact { display: grid; gap: 6px; color: var(--paint-dim); font-size: 15px; font-style: normal; }
.menu-contact b { color: var(--paint); font-weight: 600; }
@media (max-width: 900px) {
  .menu-in { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 32px; }
  .ms { display: none; }
  .menu-nav a { grid-template-columns: 3.4rem minmax(0, 1fr); padding: 9px 0; }
}

/* Einfahrt: the car rolls out of the dark onto bay 7 */
.story { position: relative; height: 420vh; background: #000; }
.stage { position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); overflow: hidden; background: #000; }
.stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .55) 30%, rgba(0, 0, 0, 0) 55%); }
.floor { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--floor, 1); perspective: 900px; perspective-origin: var(--fl-x, 60%) 40%; }
.floor-plane { position: absolute; left: var(--fl-x, 60%); top: var(--fl-y, 84%); width: var(--fl-w, 40vw); transform: translate(-50%, -50%) rotateX(68deg); transform-origin: 50% 50%; opacity: .78; -webkit-mask: url("../img/wear.webp") repeat; mask: url("../img/wear.webp") repeat; -webkit-mask-size: 140px; mask-size: 140px; }
.floor-plane img { display: block; width: 100%; height: auto; filter: blur(.35px) brightness(.92); }
.step { position: absolute; z-index: 2; left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); bottom: clamp(56px, 11vh, 120px); width: min(36rem, calc(100% - 2 * var(--gutter))); opacity: var(--o, 0); transform: translateY(var(--y, 24px)); }
.step h1, .step h2 { font-size: clamp(2.1rem, 3.7vw, 4rem); line-height: .94; text-wrap: balance; }
.step h1 .line { display: block; }
.step .copy { max-width: 38ch; margin: 20px 0 0; color: var(--paint-dim); font-size: clamp(16px, 1.25vw, 18px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.stencil-info { position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); top: calc(var(--header-h) + 28px); display: grid; justify-items: end; gap: 4px; margin: 0; color: var(--paint-dim); font-size: 13px; opacity: var(--info, 1); }
.hint { position: absolute; z-index: 2; left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); bottom: 18px; display: flex; align-items: center; gap: 10px; margin: 0; color: var(--paint-dim); font-size: 12px; opacity: var(--info, 1); }
.hint span { width: 2px; height: 26px; background: var(--paint); animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (min-width: 761px) and (max-height: 760px) {
  .step { bottom: 56px; }
  .step h1, .step h2 { font-size: clamp(2rem, 6.4vh, 3.4rem); }
  .step .copy { margin-top: 14px; }
  .actions { margin-top: 20px; }
}
@media (max-width: 760px) {
  .stage::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .85) 72%); }
  .step { left: var(--gutter); bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
  .step h1, .step h2 { font-size: clamp(1.8rem, 8.4vw, 2.6rem); }
  .step .copy { margin-top: 14px; font-size: 15px; }
  .actions { margin-top: 20px; }
  .actions .btn { flex: 1 1 auto; padding: 0 14px; }
  .stencil-info { display: none; }
  .floor { perspective: 600px; }
  .floor-plane { transform: translate(-50%, -50%) rotateX(42deg); opacity: .95; -webkit-mask-size: 110px; mask-size: 110px; }
  .floor-plane img { filter: none; }
  .wall .floor-plane { transform: translate(-50%, -50%); }
  .hint { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}

/* Annahme: the intake zone is painted red */
.annahme { position: relative; overflow: hidden; padding-block: calc(clamp(18px, 2.4vw, 36px) + 10.6vw + clamp(28px, 3vw, 48px)) clamp(96px, 13vw, 190px); background: var(--red); color: var(--ink-on-red); }
.annahme-stencil { position: absolute; left: 50%; top: clamp(18px, 2.4vw, 36px); margin: 0; transform: translateX(-50%); color: rgba(0, 0, 0, .14); font: 900 13vw/.8 var(--font); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-mask: url("../img/wear.webp") repeat; mask: url("../img/wear.webp") repeat; -webkit-mask-size: 256px; mask-size: 256px; }
.lightup { position: relative; max-width: 26ch; margin: 0; font: 800 clamp(26px, 3.6vw, 52px)/1.12 var(--font); font-stretch: 112%; letter-spacing: -.012em; text-wrap: pretty; }
.annahme-tag { position: relative; display: flex; flex-wrap: wrap; column-gap: .6em; margin: 36px 0 0; color: var(--paint); font-size: 19px; }
.annahme-tag span { white-space: nowrap; }

/* Bays: each chapter is a painted bay. The lane line runs down the left and turns into every bay */
.bay, .termin { position: relative; padding-block: clamp(56px, 7vw, 104px) var(--bay-pad); scroll-margin-top: var(--header-h); border-top: 3px solid var(--joint); }
.bay::before { content: ""; position: absolute; z-index: 1; width: 3px; left: calc(max(0px, (100% - var(--max)) / 2) + var(--pad-l) / 2 - 1px); top: 0; bottom: 0; background: var(--paint); transform-origin: top; transform: scaleY(var(--draw, 1)); }
.bay-head { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 64px); align-items: start; padding-top: clamp(28px, 4vw, 48px); }
.bay-head::before { content: ""; position: absolute; top: 0; left: calc(var(--pad-l) / -2 - 1px); right: 0; height: 3px; background: var(--paint); transform-origin: left; transform: scaleX(var(--turn, 1)); }
.bay-sign { display: grid; gap: 14px; margin: 0; }
.bay-no { display: block; color: var(--paint); font-size: clamp(7rem, 15vw, 14rem); line-height: .74; -webkit-mask: url("../img/wear.webp") repeat; mask: url("../img/wear.webp") repeat; -webkit-mask-size: 256px; mask-size: 256px; }
.bay-no-sm { font-size: clamp(5rem, 10vw, 9rem); }
.bay-no svg { display: block; width: 1.4em; height: auto; fill: currentColor; }
.bay-meta { color: var(--paint); font-size: 14px; line-height: 1.4; }
.bay-time { color: var(--paint-dim); }
.bay-text h2 { max-width: 14em; font-size: clamp(1.75rem, 4.6vw, 4.4rem); line-height: .94; text-wrap: balance; -webkit-hyphens: manual; hyphens: manual; }
.lead { max-width: 56ch; margin: 24px 0 0; color: var(--paint-dim); font-size: clamp(17px, 1.35vw, 19px); }
@media (max-width: 760px) {
  .bay-text h2 { -webkit-hyphens: auto; hyphens: auto; }
  .bay-head { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 20px; }
  .bay-sign { grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 16px; }
  .bay-no { font-size: 6.2rem; }
  .bay-no-sm { font-size: 4.6rem; }
}

/* Bühne 1: paint readings */
.measure { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: clamp(48px, 6vw, 80px) 0 0; overflow: hidden; background: var(--concrete-deep); }
.measure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dot { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; transform: translate(-6px, -50%); }
.dot.d1 { left: 21%; top: 47%; }
.dot.d2 { left: 36%; top: 57%; }
.dot.d3 { left: 59%; top: 57%; }
.dot.d4 { left: 63%; top: 25.5%; }
.dot.d5 { left: 83%; top: 44%; }
.dot::before { content: ""; flex: none; width: 12px; height: 12px; border: 2px solid var(--ink); background: var(--paint); }
.dot b { padding: 6px 8px 5px; background: var(--paint); color: var(--ink); font: 700 13px/1 var(--font); font-stretch: 80%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot.left { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), -50%); }
.dot.over::before { background: var(--red); border-color: var(--paint); }
.dot.over b { background: var(--red-fill); color: var(--paint); }
.readings { width: 100%; margin: 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.readings thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.readings tbody { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--paint); }
.readings tr { display: grid; gap: 4px; padding: 14px 16px 0 0; }
.readings th { color: var(--paint-dim); font-size: 13px; text-align: left; }
.readings td { font: 900 clamp(22px, 2.2vw, 30px)/1.1 var(--font); font-stretch: 112%; }
.readings tr.over td, .readings tr.over th { color: var(--red-ink); }
.diag { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-top: clamp(48px, 6vw, 80px); }
.probe { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--concrete-deep); container-type: inline-size; }
.probe img { display: block; width: 100%; height: 100%; object-fit: cover; }
.probe .plate { top: auto; bottom: 0; }
.note { max-width: 40ch; margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }
.note strong { display: block; margin-bottom: 8px; color: var(--red-ink); font-weight: 900; font-stretch: 112%; text-transform: uppercase; }
@media (max-width: 900px) { .diag { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 760px) {
  .dot b { padding: 4px 5px 3px; font-size: 11px; }
  .dot::before { width: 10px; height: 10px; }
  .readings tbody { grid-template-columns: minmax(0, 1fr); }
  .readings tr { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--paint-line); }
  .readings td { font-size: 22px; }
}

/* Bühne 2: pinned picture, active stage */
.work { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(48px, 6vw, 80px); }
.work-media { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px); z-index: 2; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; background: var(--concrete-deep); }
.work-media > img, .work-media > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms var(--ease-out); }
.work-media > .on { opacity: 1; }
.worklist { display: grid; margin: 0; padding: 0; list-style: none; }
.worklist li { position: relative; min-width: 0; padding: 28px 0 28px 28px; border-top: 2px solid var(--paint-line); transition: opacity 300ms var(--ease-out); }
.worklist li:last-child { border-bottom: 2px solid var(--paint-line); }
.worklist li::before { content: ""; position: absolute; left: 0; top: 36px; width: 12px; height: 12px; border: 2px solid var(--paint-dim); transition: background-color 200ms ease, border-color 200ms ease; }
.worklist li.active::before { background: var(--paint); border-color: var(--paint); }
.worklist.armed li:not(.active) { opacity: .4; }
.wl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.worklist h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.05; -webkit-hyphens: auto; hyphens: auto; }
.dur { flex: none; color: var(--paint); font-size: 14px; white-space: nowrap; }
.worklist p { max-width: 44ch; margin: 10px 0 0; color: var(--paint-dim); }
.worklist .tool { color: var(--paint); font-size: 13px; }
@media (max-width: 900px) {
  .work { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .work-media { top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px); box-shadow: 0 16px 24px var(--concrete); }
}

/* Bühne 3: pinned interior with a wipe */
.innen { padding-bottom: 0; }
.innen-scrolly { position: relative; height: 340vh; }
.innen-stage { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: center; height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); max-width: var(--max); margin-inline: auto; padding-inline: var(--pad-l) var(--gutter); }
.innen-media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--concrete-deep); --w: 0%; }
.innen-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.innen-after { clip-path: inset(0 calc(100% - var(--w)) 0 0); }
.innen-bar { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--w); width: 4px; margin-left: -2px; background: var(--paint); opacity: var(--bar, 0); }
.innen-tag.l { opacity: var(--tl, 0); }
.innen-tag.r { left: auto; right: 0; opacity: var(--tr, 1); }
.innen-pip { position: absolute; z-index: 3; left: 12px; bottom: 12px; width: 36%; aspect-ratio: 16 / 9; overflow: hidden; border: 3px solid var(--paint); background: var(--concrete-deep); box-shadow: 0 12px 28px rgba(0, 0, 0, .55); opacity: var(--pip, 0); transform: translateY(calc((1 - var(--pip, 0)) * 12px)); pointer-events: none; }
.innen-pip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.innen-pip .plate { top: auto; bottom: 0; font-size: 10px; }
.innen-steps { position: relative; min-height: 15rem; }
.istep { position: absolute; top: 0; left: 0; right: 0; opacity: var(--o, 0); transform: translateY(var(--y, 16px)); }
.istep-time { margin: 12px 0 0; color: var(--paint-dim); font-size: 13px; }
.istep h3 { margin-top: 0; font-size: clamp(24px, 2.6vw, 36px); line-height: 1; -webkit-hyphens: auto; hyphens: auto; }
.istep p:last-child { max-width: 36ch; margin: 14px 0 0; color: var(--paint-dim); }
.innen-progress { position: relative; height: 2px; margin-top: 28px; background: var(--paint-line); }
.innen-progress i { position: absolute; inset: 0; background: var(--paint); transform-origin: left; transform: scaleX(var(--ip, 0)); }
@media (max-width: 900px) {
  .innen-stage { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 28px; }
  .innen-steps { min-height: 12rem; }
  .innen-pip { left: 8px; bottom: 8px; width: 46%; }
}

/* Bühne 4: before and after, handover protocol */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: clamp(48px, 6vw, 80px); }
.compare figure { position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--concrete-deep); }
.compare img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.protocol { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 4vw, 64px); margin-top: clamp(48px, 6vw, 80px); }
.protocol-title { font: 700 14px/1.4 var(--font); font-stretch: 72%; letter-spacing: .07em; text-transform: uppercase; }
.protocol dl { margin: 0; border-top: 2px solid var(--paint); }
.protocol dl div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--paint-line); }
.protocol dt { color: var(--paint-dim); font-size: 14px; }
.protocol dd { margin: 0; font: 900 clamp(28px, 3.4vw, 48px)/1 var(--font); font-stretch: 118%; font-variant-numeric: tabular-nums; text-align: right; }
.protocol dd small { font: 700 13px/1 var(--font); font-stretch: 72%; letter-spacing: .07em; text-transform: uppercase; color: var(--paint-dim); }
.protocol dd s { margin-right: .3em; color: var(--paint-dim); font-size: max(16px, .55em); text-decoration-color: var(--paint); text-decoration-thickness: 3px; }
@media (max-width: 760px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .protocol { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .protocol dd small { display: block; margin-top: 6px; text-align: right; }
}

/* Preistafel: one board, one row per package; the most booked row is painted red */
.board { display: grid; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; list-style: none; border-top: 2px solid var(--paint); }
.row { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 7.5rem 10.5rem auto; grid-template-areas: "name list time price cta" "for list time price cta"; column-gap: clamp(16px, 2.4vw, 36px); align-items: start; padding: 28px 0; border-bottom: 2px solid var(--paint-line); }
.row h3 { grid-area: name; font-size: clamp(24px, 2.1vw, 30px); line-height: 1; }
.row-for { grid-area: for; margin: 8px 0 0; color: var(--paint-dim); font-size: 13px; }
.row ul { grid-area: list; display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--paint-dim); font-size: 15px; }
.row ul li { display: flex; gap: 10px; }
.row ul li::before { content: ""; flex: none; width: 10px; height: 2px; margin-top: .72em; background: currentColor; }
.row-time { grid-area: time; margin: 4px 0 0; font-size: 14px; white-space: nowrap; }
.row-price { grid-area: price; margin: 0; font: 900 clamp(30px, 3vw, 44px)/1 var(--font); font-stretch: 118%; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.row-price span { font: 700 13px/1 var(--font); font-stretch: 72%; letter-spacing: .07em; text-transform: uppercase; color: var(--paint-dim); }
.row .btn { grid-area: cta; }
.row-top { position: relative; border-bottom-color: transparent; box-shadow: 0 0 0 16px var(--red-fill); background: var(--red-fill); color: var(--paint); }
.row-top .row-for, .row-top ul, .row-top .row-price span { color: var(--paint); }
.row-top :focus-visible { outline-color: var(--ink); }
.fine { margin: 20px 0 0; color: var(--paint-dim); font-size: 13px; }
@media (max-width: 1100px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "for for" "list list" "time cta"; row-gap: 0; }
  .row ul { margin-top: 18px; }
  .row-time { align-self: center; margin-top: 20px; }
  .row .btn { margin-top: 20px; }
}

/* Fahrweg: three painted floor arrows */
.route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; list-style: none; }
.route li { min-width: 0; }
.arrow { display: block; width: clamp(88px, 9vw, 120px); height: auto; fill: var(--paint); -webkit-mask: url("../img/wear.webp") repeat; mask: url("../img/wear.webp") repeat; -webkit-mask-size: 160px; mask-size: 160px; }
.route h3 { margin-top: 22px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1; }
.route p { max-width: 34ch; margin: 12px 0 0; color: var(--paint-dim); }
@media (max-width: 480px) { .row h3 { font-size: 21px; } .row-top { box-shadow: 0 0 0 12px var(--red-fill); } }
@media (max-width: 760px) { .route { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Annahme: the barrier stripe marks the threshold to the booking */
.termin { padding-top: 0; border-top: 0; }
.barrier { height: 20px; margin-bottom: var(--bay-pad); background: repeating-linear-gradient(-45deg, var(--red) 0 22px, var(--paint) 22px 44px); }
.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.book-head { container-type: inline-size; min-width: 0; }
.book-head h2 { font-size: min(5.5rem, 14.5cqi); line-height: .94; text-wrap: balance; }
.facts { display: grid; margin: 40px 0 0; border-top: 2px solid var(--paint); }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--paint-line); }
.facts dt { padding-top: 3px; color: var(--paint-dim); font-size: 13px; }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.facts a { text-decoration: none; border-bottom: 2px solid var(--paint); }
.order { position: relative; display: grid; gap: 22px; min-width: 0; padding: clamp(22px, 3vw, 40px); background: var(--paint); color: var(--ink); }
.order :focus-visible { outline-color: var(--ink); }
.order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.order-no { margin: 0; font: 700 13px/1 var(--font); font-stretch: 72%; letter-spacing: .07em; text-transform: uppercase; }
.order-no b { display: block; margin-top: 6px; font-size: clamp(34px, 4vw, 52px); line-height: .9; letter-spacing: -.01em; }
.chip { padding: 7px 10px 6px; border: 2px solid var(--ink); font-size: 12px; line-height: 1; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.chip.done { background: var(--red-fill); border-color: var(--red-fill); color: var(--paint); }
.order-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: os; font-size: 12px; }
.order-steps li { padding-top: 10px; border-top: 4px solid rgba(11, 11, 10, .18); color: rgba(11, 11, 10, .6); counter-increment: os; transition: border-color 200ms ease, color 200ms ease; }
.order-steps li::before { content: counter(os) " · "; }
.order-steps li.done { border-top-color: var(--ink); color: var(--ink); }
.order-steps li.now { border-top-color: var(--red); color: var(--ink); }
.order-part { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.order-part legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; font-size: 13px; }
.js .order-part:not(.now) { display: none; }
.js .order legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.order-steps { display: none; }
.js .order-steps { display: grid; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 15px; font-weight: 600; }
.field label span { color: #55534d; font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--font); caret-color: var(--red); transition: border-color 200ms ease, box-shadow 200ms ease; }
.field input::placeholder, .field textarea::placeholder { color: #6d6a63; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); outline: none; }
.field.invalid input { border-color: var(--red); }
.err { margin: 0; color: #b00500; font-size: 14px; font-weight: 600; }
.order-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.order .btn-paint { color: var(--ink); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .order .btn-paint:hover { background: var(--ink); color: var(--paint); } }
.form-note { margin: 0; color: #55534d; font-size: 12px; }
.form-status { margin: 0; padding: 14px 16px; background: var(--ink); color: var(--paint); font-weight: 600; }
@media (max-width: 900px) { .book { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .order-nav .btn { flex: 1 1 auto; } }

/* Job tag that follows the story */
.ticket { position: fixed; z-index: 25; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 16px; width: min(720px, calc(100% - 24px)); padding: 10px 14px; border-top: 3px solid var(--red); background: var(--veil); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translate(-50%, calc(100% + 32px)); transition: transform 400ms var(--ease-out); }
.ticket.show:not(.typing) { transform: translate(-50%, 0); }
.menu-open .ticket { transform: translate(-50%, calc(100% + 32px)); }
.t-no { display: grid; gap: 2px; color: var(--paint-dim); font-size: 11px; white-space: nowrap; }
.t-no b { display: block; overflow: hidden; color: var(--paint); font: 900 17px/1.1 var(--font); font-stretch: 118%; }
.t-no b span { display: inline-block; }
.t-status { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.t-steps { display: flex; flex: none; gap: 12px; margin: 0; padding: 0; list-style: none; }
.t-steps li { display: flex; align-items: center; gap: 6px; color: var(--paint-dim); font-size: 11px; }
.t-steps li::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--paint-dim); transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out); }
.t-steps li.done::before { background: var(--red); border-color: var(--red); }
.t-steps li.now { color: var(--paint); }
.t-steps li.now::before { background: var(--paint); border-color: var(--paint); }
@media (max-width: 640px) { .t-steps { gap: 6px; } .t-steps li span { display: none; } }

.ftr { position: relative; padding-block: 72px calc(120px + env(safe-area-inset-bottom, 0px)); border-top: 3px solid var(--joint); color: var(--paint-dim); }
.ftr-in { display: grid; gap: 16px; }
.ftr-logo { display: block; width: min(560px, 100%); height: auto; margin-bottom: 16px; }
.ftr p { max-width: 62ch; margin: 0; font-size: 15px; }
.ftr a { color: var(--paint); }
.ftr-small { font-size: 12px; }

/* Reduced motion: nothing scrubs, everything stacks and reads */
.reduced .story { height: auto; }
.reduced .stage { position: relative; height: auto; padding-block: calc(var(--header-h) + 16px) 48px; }
.reduced .stage canvas { position: relative; height: 60vh; }
.reduced .stage::after, .reduced .hint, .reduced .floor { display: none; }
.reduced .step, .reduced .stencil-info { position: static; width: auto; max-width: 40rem; margin: 40px var(--gutter) 0; opacity: 1; transform: none; }
.reduced .stencil-info { justify-items: start; }
.reduced .innen-scrolly { height: auto; }
.reduced .innen-stage { position: relative; height: auto; padding-block: 24px 80px; }
.reduced .innen-media { --w: 100%; }
.reduced .innen-steps { display: grid; gap: 28px; min-height: 0; }
.reduced .istep { position: static; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hint span { animation: none; } .btn, .work-media > *, .ticket, .mt, .burger i, .menu-btn { transition: none; } }
@media (min-width: 761px) and (max-height: 700px) { .ticket { display: none; } }
