/* =========================================================
   Braun Metallverarbeitung – Stylesheet (v4)
   Own design language from technical drawing and sheet metal:
   - chamfered corners (45° cut) on buttons, cards and frames
   - the yellow bar from the logo as label marker and accent line
   - drawing elements: dimension lines, position balloons, title block
   Brand: logo yellow #ffd511 + anthracite. Fonts: Barlow / Barlow Semi Condensed (OFL, self-hosted).
   ========================================================= */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --paper: #f0f1f2;
  --line: #dcdfe2;
  --line-strong: #b9bec3;
  --text: #16191c;
  --muted: #545b62;
  --anthracite: #23272b;
  --yellow: #ffd511;       /* logo yellow */
  --yellow-deep: #d9b000;  /* thin lines on white */

  --cut: 14px;             /* chamfer size */
  --container: 84rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.6, .05, .25, 1);
  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", "Arial Narrow", sans-serif;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M0 6h18M13 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; overflow-x: clip; background: var(--white); color: var(--text); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--anthracite); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--anthracite); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.panel { background: var(--paper); }

/* chamfer helpers: .cut clips the top-right corner; .frame draws a 1px outline that follows the cut */
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.frame { position: relative; isolation: isolate; }
.frame::before, .frame::after { content: ""; position: absolute; pointer-events: none; transition: background-color .25s; }
.frame::before { inset: 0; z-index: -2; background: var(--frame-line, var(--line-strong)); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.frame::after { inset: 1px; z-index: -1; background: var(--frame-bg, #fff); clip-path: polygon(0 0, calc(100% - var(--cut) + .4px) 0, 100% calc(var(--cut) - .4px), 100% 100%, 0 100%); }

/* label: the yellow bar from the logo + text */
.tag { display: flex; align-items: center; gap: .7rem; width: fit-content; font: 500 .95rem/1.3 var(--font); color: var(--text); }
.tag__dot { width: 1.9rem; height: .32rem; background: var(--yellow); flex: none; }
.tag--light { color: #fff; }

.section-head { max-width: 50rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem); display: grid; gap: 1rem; justify-items: start; }
.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.section-head p:not(.tag) { color: var(--muted); font-size: 1.08rem; max-width: 40rem; }
.section-head--row { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; gap: 1rem 3rem; }
.section-head--row > div { display: grid; gap: 1rem; justify-items: start; }

/* ---------- Buttons: chamfered plate, arrow, laser line on hover ---------- */
.btn {
  --cut: 10px;
  position: relative; display: inline-flex; align-items: center; gap: .8rem;
  min-height: 3rem; padding: .8rem 1.3rem; border: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: -5px; }
.btn__icon { display: block; flex: none; }
.btn__icon::before, .arrow { content: ""; display: block; width: 1.05rem; height: .65rem; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .25s var(--ease); }
.btn:hover .btn__icon::before, .btn:focus-visible .btn__icon::before { transform: translateX(4px); }
.btn--dark { background: var(--anthracite); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--line { background: #e4e7e9; color: var(--text); }
.btn--line::after { background: var(--anthracite); }
.btn--line:hover { background: #d9dde0; }
.btn--yellow { background: var(--yellow); color: var(--text); }
.btn--yellow::after { background: var(--anthracite); }
.btn--yellow:hover { background: #ffdd3a; }
button.btn { font-family: var(--font); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Scroll reveals (set up by JS) ---------- */
.wipe-ready .wipe { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease) var(--d, 0s); }
.wipe-ready .wipe.is-in { clip-path: inset(0 0 0 0); }
.wipe-ready .draw .ln { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) var(--d, 0s); }
.wipe-ready .draw.is-in .ln { stroke-dashoffset: 0; }
.wipe-ready .draw .pop { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity .4s, transform .5s var(--ease); transition-delay: calc(var(--d, 0s) + .9s); }
.wipe-ready .draw.is-in .pop { opacity: 1; transform: none; }

.split-ready [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-ready [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease) calc(var(--i) * 40ms); }
.split-ready [data-split].is-in .w > span { transform: none; }

/* ---------- Header: sticky bar, yellow scroll line (the "cut" running along) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--yellow); transform-origin: left; transform: scaleX(var(--progress, 0)); }
.header-bar { position: relative; display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 2.35rem; width: auto; }
.nav { display: flex; align-items: center; flex: 1; min-width: 0; justify-content: center; }
.nav ul { display: flex; gap: .25rem; }
.nav ul a { position: relative; display: block; padding: .5rem .85rem; text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--text); }
.nav ul a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav ul a:hover::after, .nav ul a.is-active::after { transform: scaleX(1); }
.nav__contact { display: none; }
.header-phone { display: flex; align-items: center; gap: .6rem; flex: none; text-decoration: none; font-weight: 500; white-space: nowrap; }
.header-phone .arrow { display: none; }
.header-phone::before { content: ""; width: .32rem; height: 1.1rem; background: var(--yellow); }
.header-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-cta { --cut: 10px; position: relative; display: flex; align-items: center; gap: .7rem; flex: none; min-height: 2.9rem; padding: .7rem 1.15rem; background: var(--anthracite); color: #fff; text-decoration: none; font-weight: 500; white-space: nowrap; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: background-color .2s; }
.header-cta:hover { background: #000; }
.header-cta:hover .arrow { transform: translateX(3px); }
.nav-toggle { display: none; width: 2.9rem; height: 2.9rem; flex: none; border: 1px solid var(--line-strong); background: #fff; color: var(--text); cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 1.15rem; height: 2px; background: currentColor; position: relative; transition: transform .25s, background-color .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1150px) { .header-phone { display: none; } }
@media (max-width: 1000px) {
  .nav-toggle { display: grid; }
  .header-cta { margin-left: auto; }
  .nav { position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); display: none; flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.5rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 0, 0, .08); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .nav ul a::after { display: none; }
  .nav__contact { display: grid; gap: .35rem; padding-top: 1rem; }
  .nav__contact a { text-decoration: none; color: var(--muted); overflow-wrap: anywhere; }
  .no-js .nav { display: flex; position: static; box-shadow: none; }
}
@media (max-width: 420px) {
  .header-bar { gap: .75rem; }
  .brand img { height: 1.9rem; }
  .header-cta { padding-inline: .9rem; font-size: .95rem; }
  .header-cta .arrow { display: none; }
}

/* ---------- Hero: text column + framed film ---------- */
.hero { padding-block: clamp(1.25rem, 2.5vw, 2rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: stretch; }
.hero__text { display: flex; flex-direction: column; gap: 1.2rem; padding-block: clamp(1rem, 3vw, 2.5rem) .25rem; }
.hero h1 { font-size: clamp(2.4rem, 3.9vw, 3.75rem); line-height: 1; }
.hero .lead { color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.15rem); max-width: 30rem; }
.hero .btn-row { margin-top: .3rem; }

/* chapter list: like a drawing's sheet index */
.hero__steps { margin-top: auto; padding-top: 1.5rem; }
.hero__steps-label { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.hero__steps ol { display: grid; border-top: 1px solid var(--line-strong); }
.hero__steps li { border-bottom: 1px solid var(--line); }
.hero__steps button { position: relative; display: flex; align-items: center; gap: 1rem; width: 100%; padding: .7rem 0; border: 0; background: none; color: var(--muted); font: 500 1.02rem/1.2 var(--font); text-align: left; cursor: pointer; transition: color .2s, padding .3s var(--ease); }
.hero__steps button span { font: 500 .85rem/1 var(--font); font-variant-numeric: tabular-nums; color: var(--muted); width: 1.5rem; }
.hero__steps button:hover { color: var(--text); }
.hero__steps button[aria-pressed="true"] { color: var(--text); padding-left: .6rem; }
.hero__steps button[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: .55rem; bottom: .55rem; width: 3px; background: var(--yellow); }
.hero__steps button i { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--anthracite); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; }
.hero__steps button[aria-pressed="true"] i { opacity: 1; }

.hero__stage { position: relative; min-height: 28rem; height: clamp(28rem, calc(100svh - var(--header-h) - 4rem), 52rem); }
.hero__frame { --cut: 28px; position: absolute; inset: 0; overflow: hidden; background: #eef0f1; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.film { position: absolute; inset: 0; }
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; background: #eef0f1; }
.film__spots { position: absolute; inset: 0; pointer-events: none; }
/* drawing marks around the frame: corner ticks + dimension line along the top */
.hero__marks { position: absolute; inset: -.75rem; pointer-events: none; }
.hero__marks span { position: absolute; width: .75rem; height: .75rem; border-color: var(--anthracite); border-style: solid; border-width: 0; }
.hero__marks span:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hero__marks span:nth-child(2) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hero__marks span:nth-child(3) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.hero__meta { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; pointer-events: none; }
.hero__meta > * { pointer-events: auto; }
.film__note { font-size: .8rem; color: var(--text); padding: .3rem .6rem .3rem .55rem; background: rgba(255, 255, 255, .88); border-left: 3px solid var(--yellow); }
.film__toggle { position: relative; width: 2.6rem; height: 2.6rem; border: 0; background: var(--anthracite); color: #fff; cursor: pointer; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.film__toggle:focus-visible { outline: 2px solid var(--yellow); outline-offset: -5px; }
.film__toggle span { position: absolute; top: 50%; left: 50%; width: 10px; height: 12px; transform: translate(-50%, -50%); border-inline: 3px solid currentColor; }
.film__toggle.is-paused span { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-block: 7px solid transparent; transform: translate(-35%, -50%); }

/* hotspots placed by js/film.js: yellow square markers like position marks */
.spot { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); pointer-events: auto; transition: opacity .35s, visibility .35s; }
.spot.is-off { opacity: 0; visibility: hidden; }
.spot__btn { position: relative; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 0; background: var(--yellow); color: var(--text); cursor: pointer; clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%); }
.spot__btn::before, .spot__btn::after { content: ""; position: absolute; width: 12px; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
.spot__btn::after { transform: rotate(90deg); }
.spot__btn[aria-expanded="true"]::before { transform: rotate(45deg); }
.spot__btn[aria-expanded="true"]::after { transform: rotate(135deg); }
.spot__btn:focus-visible { outline: 2px solid var(--anthracite); outline-offset: -4px; }
.spot::before { content: ""; position: absolute; inset: -6px; border: 1px solid rgba(35, 39, 43, .45); pointer-events: none; }
.spot__tip { position: absolute; left: calc(100% + .75rem); top: 50%; width: max-content; max-width: 16rem; padding: .7rem .9rem; border-left: 3px solid var(--yellow); background: #fff; box-shadow: 0 8px 26px rgba(0, 0, 0, .14); color: var(--muted); font-size: .92rem; line-height: 1.4; opacity: 0; visibility: hidden; transform: translate(-.4rem, -50%); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.spot--left .spot__tip { left: auto; right: calc(100% + .75rem); transform: translate(.4rem, -50%); }
.spot__tip strong { display: block; color: var(--text); font-weight: 600; margin-bottom: .15rem; }
.spot:hover .spot__tip, .spot__btn:focus-visible + .spot__tip, .spot__btn[aria-expanded="true"] + .spot__tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
@media (prefers-reduced-motion: no-preference) {
  .spot::before { animation: mark 2.6s var(--ease) infinite; }
  .spot + .spot::before { animation-delay: 1.3s; }
}
@keyframes mark { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

/* ---------- Standort: building render with position balloons + parts list ---------- */
.site { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.site__drawing { position: relative; margin: 0; }
.site__drawing img { width: 100%; height: auto; mix-blend-mode: multiply; }
.site__drawing svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.site__drawing .lead-line { fill: none; stroke: var(--anthracite); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.site__drawing .lead-dot { fill: var(--anthracite); }
.site__drawing .balloon circle { fill: #fff; stroke: var(--anthracite); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.site__drawing .balloon text { font: 600 26px var(--font); fill: var(--text); text-anchor: middle; dominant-baseline: central; }
.site__drawing figcaption { margin-top: .5rem; font-size: .85rem; color: var(--muted); }
.site__text { display: grid; gap: 1.1rem; justify-items: start; }
.site__text h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.site__text > p { color: var(--muted); max-width: 32rem; }
.parts { width: 100%; margin-top: .5rem; border-collapse: collapse; font-size: .98rem; }
.parts th, .parts td { text-align: left; padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.parts thead th { font-weight: 500; font-size: .82rem; color: var(--muted); border-bottom-color: var(--line-strong); }
.parts td:first-child { width: 3rem; }
.parts .pos { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 1.5px solid var(--anthracite); border-radius: 50%; font-weight: 600; font-size: .85rem; }

/* ---------- Eckdaten: sheet drawing + data sheet ---------- */
.specs { padding-block: clamp(4rem, 8vw, 6.5rem); }
.specs__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sheet { margin: 0; }
.sheet svg { width: 100%; height: auto; overflow: visible; }
.sheet .plate { fill: #fff; stroke: var(--anthracite); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sheet .hatch { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sheet .dim { fill: none; stroke: var(--anthracite); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sheet .dim-arrow { fill: var(--anthracite); }
.sheet .cutline { fill: none; stroke: var(--yellow-deep); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.sheet text { font: 600 34px var(--font-head); fill: var(--text); text-anchor: middle; }
.sheet figcaption { margin-top: .9rem; font-size: .92rem; color: var(--muted); }
.datasheet { margin: 0; border-top: 2px solid var(--anthracite); }
.datasheet div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-strong); }
.datasheet dt { color: var(--muted); }
.datasheet dd { margin: 0; font: 600 clamp(1.9rem, 3.2vw, 2.7rem)/1 var(--font-head); letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.datasheet dd small { font: 500 .95rem var(--font); color: var(--muted); margin-left: .35rem; letter-spacing: 0; }
.datasheet dd small.pre { margin: 0 .4rem 0 0; }

/* ---------- Leistungen: framed cards with cut corner ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 1.6vw, 1.25rem); }
.tile { --cut: 22px; position: relative; display: flex; flex-direction: column; gap: 1.25rem; min-height: 26rem; padding: 1.5rem 1.5rem 1.4rem; color: inherit; text-decoration: none; }
.tile:hover, .tile:focus-visible { --frame-line: var(--anthracite); }
.tile:focus-visible { outline: none; --frame-line: var(--yellow-deep); }
.tile__img { flex: 1; display: grid; place-items: center; min-height: 12rem; padding: 1rem .5rem 0; }
.tile__img img { width: auto; max-width: 100%; max-height: 12rem; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.tile:hover .tile__img img { transform: translateY(-4px); }
.tile__body { display: grid; gap: .5rem; }
.tile__title { font: 600 clamp(1.5rem, 2vw, 1.8rem)/1.1 var(--font-head); }
.tile__text { color: var(--muted); font-size: .98rem; max-width: 34ch; min-height: 4.8em; }
.tile__specs { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .35rem; padding-top: .7rem; border-top: 1px solid var(--line); font-weight: 600; font-size: .95rem; }
.tile__arrow { position: absolute; right: 1.4rem; bottom: 1.5rem; width: 1.15rem; height: .7rem; background: var(--text); -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; transition: transform .25s var(--ease); }
.tile:hover .tile__arrow { transform: translateX(4px); }
/* laser line along the bottom edge on hover */
.tile__body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tile:hover .tile__body::after, .tile:focus-visible .tile__body::after { transform: scaleX(1); }
.tile--cta { --frame-line: var(--yellow); --frame-bg: var(--yellow); justify-content: space-between; }
.tile--cta .tile__title { font-size: clamp(2rem, 3vw, 2.7rem); }
.tile--cta .tile__text { color: rgba(22, 25, 28, .8); }
.tile--cta .btn { align-self: flex-start; }

/* ---------- Vom Blech zum Bauteil (3D) ---------- */
.forming { position: relative; background: var(--paper); }
.js .forming { height: 420vh; }
.forming__sticky { padding-block: clamp(3rem, 6vw, 4.5rem); }
.js .forming__sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding-block: 1.5rem; }
.forming__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.forming__text .section-head { margin-bottom: 1.75rem; }
.forming__text .section-head h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.forming__steps { position: relative; display: grid; grid-template-columns: 3px minmax(0, 1fr); gap: 1.25rem; }
.forming__bar { background: var(--line-strong); position: relative; overflow: hidden; }
.forming__bar span { position: absolute; inset: 0; background: var(--yellow); transform-origin: top; transform: scaleY(0); }
.forming__step { padding-block: .55rem; }
.forming__step h3 { font-size: 1.3rem; color: var(--muted); transition: color .3s; }
.forming__step p { color: var(--muted); font-size: .98rem; max-width: 30rem; display: grid; }
.js .forming__step p { opacity: 0; max-height: 0; overflow: hidden; transition: opacity .35s, max-height .45s var(--ease), margin .45s var(--ease); }
.forming__step.is-active h3 { color: var(--text); }
.js .forming__step.is-active p { opacity: 1; max-height: 8rem; margin-top: .35rem; }
.forming__stage { margin: 0; position: relative; }
.forming__stage canvas { display: block; width: 100%; height: min(62vh, 36rem); cursor: grab; touch-action: pan-y; }
.forming__stage canvas:focus-visible { outline-offset: -2px; }
.forming.is-dragging canvas { cursor: grabbing; }
.forming__stage figcaption { margin-top: .6rem; font-size: .87rem; color: var(--muted); text-align: right; }
.forming:not(.is-ready) .forming__stage canvas { background: radial-gradient(closest-side, rgba(43, 47, 51, .06), transparent); }
.forming.is-static, .forming.no-webgl { height: auto; }
.forming.is-static .forming__sticky, .forming.no-webgl .forming__sticky { position: static; height: auto; padding-block: clamp(3rem, 6vw, 4.5rem); }
.forming.is-static .forming__step p, .forming.no-webgl .forming__step p { opacity: 1; max-height: none; margin-top: .35rem; }
.forming.is-static .forming__step h3, .forming.no-webgl .forming__step h3 { color: var(--text); }
.forming.no-webgl .forming__stage, .no-js .forming__stage { display: none; }
.forming.no-webgl .forming__grid, .no-js .forming__grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) {
  .forming__grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .js .forming__sticky { align-items: center; padding-block: 1rem; }
  .js .forming__text .section-head p:not(.tag) { display: none; }
  .js .forming__text .section-head { margin-bottom: 1rem; gap: .7rem; }
  .js .forming__step:not(.is-active) { display: none; }
  .js .forming.is-static .forming__step, .forming.no-webgl .forming__step { display: block; }
  .js .forming__stage canvas { height: min(50vh, 26rem); }
  .forming__stage figcaption { text-align: left; }
}

/* ---------- Unternehmen ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split__text { display: grid; gap: 1.1rem; justify-items: start; }
.split__text .section-head { margin-bottom: .75rem; }
.split__text > p { color: var(--muted); max-width: 36rem; }
.split__text .btn { margin-top: 1rem; }
.features { display: grid; border-top: 2px solid var(--anthracite); }
.feature { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .3rem 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line-strong); }
.feature svg { grid-row: span 2; width: 2.2rem; height: 2.2rem; fill: none; stroke: var(--anthracite); stroke-width: 1.5; stroke-linejoin: round; }
.feature h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); }
.feature p { color: var(--muted); }

/* ---------- Machine table ---------- */
.table-wrap { background: #fff; }
.machine-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.machine-table th, .machine-table td { text-align: left; vertical-align: top; padding: .95rem 1.4rem; border-bottom: 1px solid var(--line); }
.machine-table thead th { font-weight: 500; font-size: .85rem; color: var(--muted); border-bottom: 2px solid var(--anthracite); padding-block: .85rem; }
.machine-table tbody th[scope="rowgroup"] { font: 600 1.3rem/1.2 var(--font-head); padding-top: 1.6rem; padding-bottom: .7rem; border-bottom-color: var(--line-strong); }
.machine-table tbody th[scope="rowgroup"]::before { content: ""; display: inline-block; width: 1.4rem; height: .3rem; margin-right: .7rem; background: var(--yellow); vertical-align: .25em; }
.machine-table td:first-child { font-weight: 600; white-space: nowrap; }
.machine-table td:first-child small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.machine-table td ul { margin: 0; padding-left: 1.05rem; }
.machine-table tbody tr:not(.group):hover { background: #fafbfb; }
.machine-table tbody:last-child tr:last-child td { border-bottom: 0; }

/* ---------- Einblicke ---------- */
.insights { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 2rem clamp(2rem, 5vw, 4rem); align-items: start; }
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-auto-rows: clamp(12rem, 18vw, 16.5rem); gap: 1.6rem .9rem; }
.mosaic figure { position: relative; margin: 0; display: flex; flex-direction: column; }
.mosaic__tall { grid-row: span 2; }
.mosaic .img-box { --cut: 18px; position: relative; flex: 1; overflow: hidden; background: var(--line); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.wipe-ready .mosaic .img-box.wipe { clip-path: inset(0 100% 0 0); }
.wipe-ready .mosaic .img-box.wipe.is-in { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.03); }
.mosaic figcaption { margin-top: .5rem; font-size: .92rem; color: var(--muted); }

/* ---------- Title block CTA (like the Schriftfeld of a drawing) ---------- */
.titleblock { background: var(--yellow); color: var(--text); padding-block: clamp(4.5rem, 9vw, 7rem); }
.titleblock__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.titleblock__head { display: grid; gap: 1.1rem; justify-items: start; }
.titleblock h2 { font-size: clamp(2.4rem, 4.8vw, 4rem); max-width: 14ch; }
.titleblock__head > p:not(.tag) { color: rgba(22, 25, 28, .8); max-width: 30rem; }
.titleblock .tag__dot { background: var(--anthracite); }
.tb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1.5px solid var(--anthracite); }
.tb > div { display: grid; gap: .2rem; padding: .9rem 1.1rem; border-right: 1px solid rgba(22, 25, 28, .35); border-bottom: 1px solid rgba(22, 25, 28, .35); }
.tb > div:nth-child(2n) { border-right: 0; }
.tb dt { font-size: .8rem; color: rgba(22, 25, 28, .7); }
.tb dd { margin: 0; font-weight: 500; }
.tb__cta { grid-column: 1 / -1; display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--anthracite); color: #fff; border: 0 !important; padding: 1rem 1.1rem !important; }
.tb__cta a:not(.btn) { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tb__cta a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__info { display: grid; gap: 1.5rem; }
.contact__info .section-head { margin-bottom: 0; }
.contact-list { display: grid; border-top: 2px solid var(--anthracite); }
.contact-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line-strong); }
.contact-list span { color: var(--muted); font-size: .95rem; }
.contact-list address { font-style: normal; }
.contact-list a { overflow-wrap: anywhere; text-underline-offset: 3px; }
.contact-list .small { display: inline-block; margin-top: .35rem; font-size: .92rem; color: var(--muted); }

.form { --cut: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; padding: clamp(1.4rem, 3vw, 2.25rem); position: relative; }
.form h3 { grid-column: 1 / -1; font-size: clamp(1.6rem, 2.3vw, 2rem); }
.field { display: grid; gap: .4rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .9rem; border: 1px solid var(--line-strong); border-radius: 0;
  background: #f7f8f8; color: var(--text); font: 400 1rem/1.4 var(--font); transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - .8rem) 1.3rem; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--anthracite); background-color: #fff; box-shadow: inset 0 -3px 0 var(--yellow); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .93rem; color: var(--muted); }
.check input { width: 1.1rem; height: 1.1rem; margin: .2rem 0 0; accent-color: var(--anthracite); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form__foot small { color: var(--muted); font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: .85rem 1rem; font-size: .95rem; border: 1px solid; background: #fff; }
.form-status.is-ok { border-color: #3f7d4e; color: #24502f; }
.form-status.is-error { border-color: #b3261e; color: #8c1d18; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #1b1e21; color: rgba(255, 255, 255, .72); font-size: .95rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer::before { content: ""; position: absolute; left: 0; top: 0; width: min(18rem, 40%); height: 4px; background: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2.75rem; }
.footer-grid img { height: 2.2rem; width: auto; margin-bottom: 1.2rem; }
.footer-grid h2 { font: 600 1.1rem var(--font-head); color: #fff; margin-bottom: .9rem; }
.footer-grid address { font-style: normal; line-height: 1.75; }
.footer-grid ul { display: grid; gap: .45rem; }
.footer-grid a, .footer-bottom a { text-decoration: none; transition: color .2s; }
.footer-grid a:hover, .footer-bottom a:not(.made-by):hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Made-by signature (canonical spec, see global lessons) */
.made-by { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font: 400 .96rem/1 "Jost", var(--font); color: rgba(255, 255, 255, .5); }
.made-by-pill { position: relative; display: inline-block; flex: none; width: 33px; height: 24px; border-radius: 999px; background: #fff; opacity: .85; overflow: hidden; }
.made-by-pill img { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; max-width: none; transform: translate(-50%, -50%); }
.made-by:hover, .made-by:focus-visible { color: #fff; }
.made-by:hover .made-by-pill, .made-by:focus-visible .made-by-pill { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .made-by { transition: color .25s; }
  .made-by-pill { transition: opacity .25s, scale .25s; }
  .made-by:hover .made-by-pill, .made-by:focus-visible .made-by-pill { scale: 1.15; animation: wiggle .7s ease-in-out; }
  .made-by-pill.is-wiggling { animation: wiggle .7s ease-in-out; }
}
@keyframes wiggle { 0% { transform: rotate(0); } 15% { transform: rotate(-20deg); } 30% { transform: rotate(16deg); } 45% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal .container { max-width: 48rem; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 2rem; }
.legal h1::before { content: ""; display: block; width: 1.9rem; height: .32rem; background: var(--yellow); margin-bottom: 1rem; }
.legal h2 { font-size: 1.5rem; margin: 2.4rem 0 .7rem; }
.legal h3 { font-size: 1.15rem; margin: 1.5rem 0 .4rem; }
.legal p, .legal li, .legal address { color: var(--muted); font-style: normal; }
.legal p + p { margin-top: .8rem; }
.legal a { color: var(--text); text-underline-offset: 3px; }
.todo { background: #ffe25a; color: #1a1a1a; padding: .05rem .35rem; font-size: .9em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid, .site, .specs__grid, .split, .insights, .contact, .titleblock__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { display: flex; flex-direction: column; gap: 1.1rem; }
  .hero__text { display: contents; }
  .hero__text > * { order: 1; }
  .hero__text > .tag { margin-top: .75rem; }
  .hero__stage { order: 2; height: auto; min-height: 0; aspect-ratio: 4 / 3; margin-block: .75rem .25rem; }
  .hero__steps { order: 3; margin-top: 0; padding-top: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head--row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .hero__stage { aspect-ratio: 1 / 1; }
  .hero__frame { --cut: 18px; }
  .hero__marks { inset: -.5rem; }
  .film__note { font-size: .74rem; }
  .hero .btn-row .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero__steps ol { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; border-top: 0; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); gap: 1.25rem; }
  .hero__steps li { border-bottom: 0; }
  .hero__steps button { white-space: nowrap; padding-block: .6rem; border-bottom: 1px solid var(--line); }
  .hero__steps button[aria-pressed="true"] { padding-left: .6rem; }
  .hero__steps-label { display: none; }
  .tiles, .form, .tb { grid-template-columns: minmax(0, 1fr); }
  .tb > div { border-right: 0; }
  .tile { min-height: 0; }
  .tile__text { min-height: 0; }
  .mosaic { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 15rem; }
  .datasheet dd { font-size: 1.8rem; }
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .site__drawing .balloon text { font-size: 34px; }
  .sheet text { font-size: 64px; }
  /* table → stacked rows */
  .machine-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .machine-table, .machine-table tbody, .machine-table tr, .machine-table th, .machine-table td { display: block; width: 100%; }
  .machine-table tbody th[scope="rowgroup"] { padding-inline: 1rem; }
  .machine-table tr:not(.group) { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .machine-table tr:not(.group) td { padding: .15rem 0; border: 0; white-space: normal; }
  .machine-table tr:not(.group) td + td { color: var(--muted); }
}
