/* ==========================================================================
   Link & Tepel GmbH - Design System
   Markenfarben aus dem LIBO-Logo: Signalgelb #FFE100 + Marineblau #002951
   Formensprache: scharfe Kanten, 45°-Fase (Chamfer) an Buttons und Karten
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-vf-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #060c15;
  --bg-2: #0a1320;
  --surface: #0f1a2a;
  --surface-2: #142236;
  --line: rgba(170, 196, 230, 0.12);
  --line-strong: rgba(170, 196, 230, 0.22);
  --text: #e9eef5;
  --muted: #98a6ba;
  --dim: #6b7a90;
  --steel: #c3cdd9;
  --navy: #002951;
  --accent: #ffe100;
  --accent-soft: rgba(255, 225, 0, 0.12);
  --accent-ink: #07111f;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 11vw, 168px);
  --header-h: 76px;
  --chamfer: 14px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Ebenen */
  --z-header: 50;
  --z-menu: 60;
  --z-lightbox: 80;
  --z-curtain: 90;
  --z-grain: 95;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  font-weight: 700;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Feines Filmkorn auf fixierter Ebene (nicht auf Scroll-Containern) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.section--alt { background: var(--bg-2); }

/* ---------- Typografie ---------- */
.h-display,
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 760;
  font-stretch: 108%;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
h2, .h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); }
h3, .h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0 0 1em; }
.lead {
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  line-height: 1.6;
  color: var(--steel);
  max-width: 62ch;
}
.muted { color: var(--muted); }
.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.accent { color: var(--accent); }
.prose { max-width: 66ch; color: var(--steel); }
.prose p { margin-bottom: 1.1em; }
.prose strong { color: var(--text); font-weight: 650; }

/* Wort-Reveal für Headlines */
.split-line { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split-word { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: var(--h);
  padding: 0 28px;
  font-weight: 650;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, 0 100%);
  isolation: isolate;
  overflow: hidden;
}
.btn i { font-size: 1.15em; transition: transform 0.4s var(--ease-out); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 0.9rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s, gap 0.4s var(--ease-out);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: rgba(6, 12, 21, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { width: 54px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-stretch: 110%; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--steel);
  transition: color 0.25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"], .has-mega.is-open > .nav-link { color: var(--text); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-link i { font-size: 0.8em; transition: transform 0.3s; }
.has-mega.is-open > .nav-link i { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.82rem; color: var(--steel); }
.header-phone:hover { color: var(--accent); }

/* Mega-Menü */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: min(880px, 92vw);
  transform: translate(-50%, 10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.45s var(--ease-out), visibility 0.3s;
  background: rgba(12, 21, 35, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.5);
  padding: 14px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-feature {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(6,12,21,.92)); }
.mega-feature:hover img { transform: scale(1.05); }
.mega-feature > div { position: relative; z-index: 1; }
.mega-feature strong { display: block; font-size: 1.2rem; font-stretch: 108%; margin-bottom: 4px; }
.mega-feature span { color: var(--muted); font-size: 0.9rem; }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-list a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  transition: background-color 0.25s;
}
.mega-list a:hover { background: rgba(255,255,255,.05); }
.mega-list i { font-size: 1.5rem; color: var(--accent); }
.mega-list strong { display: block; font-weight: 650; font-size: 0.98rem; }
.mega-list span { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.4; }

/* Mobile-Menü */
.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.menu-toggle span { position: relative; width: 20px; height: 2px; background: var(--text); transition: background-color 0.3s; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--text);
  transition: transform 0.4s var(--ease-out);
}
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: rotate(45deg); }
.menu-open .menu-toggle span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
  overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease-in-out); }
.menu-open .site-header { z-index: calc(var(--z-menu) + 1); background: transparent; box-shadow: none; backdrop-filter: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 720; font-stretch: 108%; letter-spacing: -0.02em;
  transform: translateY(100%);
  transition: transform 0.6s var(--ease-out);
}
.mobile-menu li a small { font-family: var(--mono); font-size: 0.7rem; color: var(--dim); font-weight: 400; letter-spacing: .06em; }
.menu-open .mobile-menu li a { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: 0.05s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: 0.1s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: 0.15s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: 0.2s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: 0.25s; }
.menu-open .mobile-menu li:nth-child(7) a { transition-delay: 0.3s; }
.menu-open .mobile-menu li:nth-child(8) a { transition-delay: 0.35s; }
.mobile-menu-foot { display: grid; gap: 14px; margin-top: 32px; color: var(--muted); }
.mobile-menu-foot a { color: var(--text); }

/* ---------- Seitenübergang & Fortschritt ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: var(--z-curtain);
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.curtain span {
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
}
.curtain span:nth-child(even) { background: #f2d600; }
html.is-loading .curtain span { transform: scaleY(1); transform-origin: top; }
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: calc(var(--z-header) + 1);
  pointer-events: none;
}

/* ==========================================================================
   STARTSEITE - HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 24px) 0 120px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 70% at 72% 52%, rgba(0, 61, 122, 0.55), transparent 70%),
    radial-gradient(40% 50% at 78% 60%, rgba(255, 225, 0, 0.07), transparent 70%),
    var(--bg);
}
/* Zeichnungsraster: technischer Bezug zur Konstruktionszeichnung */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(150, 190, 240, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 190, 240, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(150, 190, 240, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 190, 240, 0.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(70% 80% at 65% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 80% at 65% 50%, #000 20%, transparent 80%);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 26%);
  mask-image: linear-gradient(180deg, transparent 4%, #000 26%);
}
.hero-fallback {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 58%;
  z-index: -1;
  opacity: 0;
  transition: opacity 1s;
}
.hero-fallback img { width: 100%; height: 100%; object-fit: cover; }
.hero-fallback::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(6,12,21,.6) 40%, rgba(6,12,21,.2)); }
.no-webgl .hero-fallback { opacity: 1; }

.hero-inner { position: relative; width: 100%; }
.hero-copy { max-width: 760px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 28px;
  padding: 8px 14px 8px 8px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero-eyebrow b {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 8px;
  font-weight: 500;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 800;
  font-stretch: 106%;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero-title .t-steel {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(220, 230, 242, 0.7);
}
.hero-title .t-accent { color: var(--accent); }

/* Maßlinie unter der Headline */
.dimline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 30px;
  max-width: 560px;
  color: var(--accent);
}
.dimline-track {
  position: relative;
  flex: 1;
  height: 14px;
}
.dimline-track::before,
.dimline-track::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: currentColor;
}
.dimline-track::before { left: 0; }
.dimline-track::after { right: 0; }
.dimline-bar {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}
.dimline-bar::before, .dimline-bar::after {
  content: "";
  position: absolute;
  top: -4px;
  border: 4.5px solid transparent;
}
.dimline-bar::before { left: 0; border-right: 8px solid currentColor; border-left: 0; }
.dimline-bar::after { right: 0; border-left: 8px solid currentColor; border-right: 0; }
.dimline-val { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em; white-space: nowrap; }

.hero-sub { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--steel); max-width: 52ch; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* CNC-Readout: Live-Koordinaten des Tasters aus der 3D-Szene */
.hero-readout {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  width: 280px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--steel);
  background: rgba(8, 16, 28, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.readout-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.readout-head .live { color: var(--accent); }
.readout-rows { padding: 10px 14px 12px; display: grid; gap: 4px; }
.readout-row { display: grid; grid-template-columns: 22px 1fr auto; align-items: baseline; }
.readout-row b { color: var(--accent); font-weight: 500; }
.readout-row span { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.readout-row em { font-style: normal; color: var(--dim); font-size: 0.68rem; margin-left: 6px; }
.readout-foot {
  display: flex; justify-content: space-between;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.readout-foot span:last-child { color: var(--text); }

/* Bemaßungs-Annotationen am 3D-Bauteil */
.hero-annot {
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  will-change: transform;
}
.hero-annot .annot-dot {
  position: absolute; left: -4px; top: -4px;
  width: 8px; height: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}
.hero-annot .annot-line {
  position: absolute; left: 0; top: 0;
  width: 70px; height: 1px;
  background: var(--accent);
  transform-origin: left;
  transform: rotate(-32deg);
}
.hero-annot .annot-text {
  position: absolute;
  left: 58px; top: -52px;
  padding: 6px 10px;
  background: rgba(8,16,28,.8);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.hero-annot .annot-text b { color: var(--accent); font-weight: 500; }
.hero-annot.left .annot-line { transform: rotate(212deg); }
.hero-annot.left .annot-text { left: auto; right: 58px; }

.hero-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line);
}
.hero-bottom .container { display: flex; gap: 0; }
.hero-tag {
  padding: 16px 28px 16px 0;
  margin-right: 28px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-tag strong { color: var(--text); font-weight: 500; }
.hero-tag:last-child { border-right: 0; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg);
  padding-block: 26px;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 750;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--steel);
}
.marquee-item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(200, 212, 228, 0.5); }
.marquee-item i { font-size: 0.6em; color: var(--accent); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro-Statement ---------- */
.statement {
  font-size: clamp(1.6rem, 3.3vw, 3rem);
  font-weight: 650;
  font-stretch: 104%;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 24ch;
  text-wrap: balance;
}
.statement .w { opacity: 0.16; transition: opacity 0.2s; }
.statement-wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement-media { position: relative; }
.statement-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.statement-media figcaption { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }
.statement-side { display: grid; gap: 40px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 22px 22px 0 0; }
.pillar + .pillar { padding-left: 22px; border-left: 1px solid var(--line); }
.pillar i { font-size: 1.6rem; color: var(--accent); margin-bottom: 14px; display: block; }
.pillar strong { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; margin: 0; }

/* ---------- Leistungen: horizontale Fahrt ---------- */
.services-pan { position: relative; overflow: hidden; background: var(--bg-2); }
.pan-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; padding-block: clamp(56px, 9vh, 110px); }
.pan-track {
  display: flex;
  gap: 24px;
  padding-inline: var(--gutter);
  width: max-content;
}
.svc-card {
  position: relative;
  width: min(78vw, 640px);
  height: min(72vh, 620px);
  min-height: 460px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 40px);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  isolation: isolate;
}
.svc-card-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.svc-card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease-out); }
.svc-card:hover .svc-card-media img { transform: scale(1.14); }
.svc-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,12,21,.35) 0%, rgba(6,12,21,.2) 22%, rgba(6,12,21,.55) 48%, rgba(6,12,21,.94) 74%, rgba(6,12,21,.97) 100%);
}
.svc-card-top {
  position: absolute;
  top: clamp(24px, 3vw, 40px);
  left: clamp(24px, 3vw, 40px);
  right: clamp(24px, 3vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.svc-card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.6rem;
}
.svc-spec { text-align: right; font-family: var(--mono); }
.svc-spec strong { display: block; font-family: var(--font); font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 780; font-stretch: 110%; letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.svc-spec span { font-size: 0.72rem; color: var(--steel); letter-spacing: .06em; text-transform: uppercase; }
.svc-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.svc-card p { color: var(--steel); max-width: 44ch; margin-bottom: 22px; }
.svc-card .link-arrow { align-self: flex-start; }
.svc-card--intro {
  width: min(78vw, 420px);
  background: var(--accent);
  color: var(--accent-ink);
  justify-content: space-between;
}
.svc-card--intro::before { display: none; }
.svc-card--intro h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.svc-card--intro p { color: rgba(7,17,31,.78); }
.svc-card--intro .big { font-size: clamp(5rem, 9vw, 8rem); font-weight: 850; font-stretch: 112%; line-height: .85; letter-spacing: -0.05em; }
.svc-card--intro .link-arrow { color: var(--accent-ink); border-color: rgba(7,17,31,.35); }

/* ---------- Dimensionen / Kennzahlen ---------- */
.dims-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.dim {
  position: relative;
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.dim:nth-child(1) { grid-column: span 7; }
.dim:nth-child(2) { grid-column: span 5; }
.dim:nth-child(3) { grid-column: span 4; }
.dim:nth-child(4) { grid-column: span 4; }
.dim:nth-child(5) { grid-column: span 4; }
.dim-k { font-family: var(--mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dim-v {
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 820;
  font-stretch: 112%;
  letter-spacing: -0.045em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  margin: 28px 0 16px;
}
.dim-v small { font-size: 0.32em; font-weight: 600; letter-spacing: 0; color: var(--accent); margin-left: 6px; }
.dim p { color: var(--muted); font-size: 0.94rem; margin: 0; max-width: 38ch; }
.dim--img { color: var(--text); }
.dim--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; transition: opacity .6s, transform 1.2s var(--ease-out); }
.dim--img:hover img { opacity: .45; transform: scale(1.04); }
.dim--img > *:not(img) { position: relative; }
.dim .dim-ruler {
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background-image: linear-gradient(90deg, var(--line-strong) 1px, transparent 1px);
  background-size: 12px 100%;
  mask-image: linear-gradient(90deg, #000, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent);
}

/* ---------- Videos: Live aus der Fertigung ---------- */
.reels { display: grid; grid-template-columns: 0.9fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.reels-copy h2 { margin-bottom: 22px; }
.reels-copy .lead { margin-bottom: 30px; }
.reels-stage { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); align-items: start; }
.reel { position: relative; }
.reel:nth-child(2) { margin-top: 90px; }
.reel:nth-child(3) { margin-top: 30px; }
.reel-frame {
  position: relative;
  aspect-ratio: 464 / 848;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(0,0,0,.45);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.reel-frame video, .reel-frame img { width: 100%; height: 100%; object-fit: cover; }
.reel-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6,12,21,.8));
  pointer-events: none;
}
.reel-cap {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase;
}
.reel-toggle {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color .25s;
}
.reel-toggle:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Prozess ---------- */
.process { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 110px); }
.process-sticky { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.process-sticky h2 { margin-bottom: 22px; }
.process-sticky .process-img { margin-top: 36px; overflow: hidden; }
.process-sticky .process-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.steps { position: relative; padding: 0 0 0 56px; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-line { position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps-line span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.step { position: relative; padding: 0 0 64px; }
.step:last-child { padding-bottom: 0; }
.step-node {
  position: absolute;
  left: -56px; top: 2px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--muted);
  font-size: 1rem;
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.step.is-active .step-node { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; max-width: 52ch; }
.step .chips { margin-top: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  color: var(--steel);
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- Qualität ---------- */
.quality { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.quality-media { position: relative; }
.quality-media .qm-main { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.quality-cert {
  position: absolute;
  right: -28px; bottom: -48px;
  width: 38%;
  background: #fff;
  padding: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
  transform: rotate(3deg);
  transition: transform .6s var(--ease-out);
}
.quality-cert:hover { transform: rotate(0deg) scale(1.03); }
.quality-list { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.quality-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--steel); }
.quality-list i { color: var(--accent); font-size: 1.3rem; line-height: 1.4; }
.quality-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Tradition ---------- */
.heritage {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.heritage-img { position: absolute; inset: -10% 0; z-index: -2; }
.heritage-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.7); }
.heritage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(6,12,21,.35) 30%, rgba(6,12,21,.5) 60%, var(--bg) 100%);
}
.heritage-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; padding-bottom: var(--section); }
.heritage-year {
  font-size: clamp(6rem, 19vw, 17rem);
  font-weight: 860;
  font-stretch: 115%;
  letter-spacing: -0.06em;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,225,0,.85);
}
.heritage-copy h2 { margin-bottom: 18px; }
.heritage-copy p { color: var(--steel); }
.heritage-copy .btn { margin-top: 12px; }

/* ---------- Teaser-Paar (Maschinenpark / Karriere) ---------- */
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.duo-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 44px);
  isolation: isolate;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.duo-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.duo-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,12,21,.05), rgba(6,12,21,.92)); }
.duo-card:hover img { transform: scale(1.05); }
.duo-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.duo-card p { color: var(--steel); max-width: 46ch; }
.duo-card--accent::before { background: linear-gradient(180deg, rgba(0,41,81,.2), rgba(0,30,60,.95)); }

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(7,17,31,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,17,31,.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; padding-block: clamp(72px, 9vw, 130px); }
.cta-band h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: .98; }
.cta-band p { color: rgba(7,17,31,.8); font-size: 1.1rem; max-width: 46ch; }
.cta-contact { display: grid; gap: 14px; }
.cta-line {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  border-bottom: 1.5px solid rgba(7,17,31,.25);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  transition: border-color .3s, padding .4s var(--ease-out);
}
.cta-line small { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.cta-line i { font-size: 1.4rem; transition: transform .4s var(--ease-out); }
.cta-line:hover { border-color: var(--accent-ink); padding-left: 8px; }
.cta-line:hover i { transform: translateX(4px) rotate(-45deg); }
.btn--dark { background: var(--accent-ink); color: var(--accent); }
.btn--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateY(101%); transition: transform .5s var(--ease-out); }
.btn--dark:hover::before { transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 110px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 64px; }
.footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 20px; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--steel); transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-col address { font-style: normal; color: var(--steel); line-height: 1.7; }
.footer-wordmark {
  font-size: clamp(2.4rem, 9.2vw, 9rem);
  font-weight: 860;
  font-stretch: 112%;
  letter-spacing: -0.055em;
  line-height: .78;
  color: transparent;
  -webkit-text-stroke: 1px rgba(170, 196, 230, 0.22);
  white-space: nowrap;
  user-select: none;
  padding-top: 12px;
  overflow: hidden;
}
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.85rem;
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--text); }

/* ==========================================================================
   UNTERSEITEN
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-h) + 48px) 0 clamp(48px, 6vw, 88px);
}
.page-hero--short { min-height: 64vh; min-height: 64dvh; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero-media img, .page-hero-media video { width: 100%; height: 115%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,12,21,.94) 0%, rgba(6,12,21,.7) 45%, rgba(6,12,21,.25) 100%),
    linear-gradient(180deg, rgba(6,12,21,.5) 0%, transparent 30%, transparent 60%, var(--bg) 100%);
}
.page-hero-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; width: 100%; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--accent); }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 6rem); font-weight: 820; font-stretch: 108%; letter-spacing: -0.04em; line-height: .96; margin-bottom: 24px; }
.page-hero .lead { margin-bottom: 0; }
.page-hero-specs { display: grid; gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); align-self: end; }
.phs { background: rgba(8,16,28,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 18px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.phs span { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.phs strong { font-size: 1.35rem; font-weight: 750; font-stretch: 108%; letter-spacing: -0.01em; white-space: nowrap; }
.phs strong small { font-size: .62em; color: var(--accent); font-weight: 600; margin-left: 3px; }

/* Intro mit Bild-Collage */
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.intro h2 { margin-bottom: 26px; }
.collage { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); aspect-ratio: 1 / 1.05; }
.collage figure { margin: 0; overflow: hidden; position: relative; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { grid-column: 1 / 5; grid-row: 1 / 5; }
.collage .c2 { grid-column: 4 / 7; grid-row: 3 / 7; box-shadow: 0 0 0 10px var(--bg); z-index: 1; }
.collage .c3 { grid-column: 1 / 3; grid-row: 5 / 7; }
.section--alt .collage .c2 { box-shadow: 0 0 0 10px var(--bg-2); }

/* Kennzahl-Kacheln */
.spec-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec-tile { background: var(--bg); padding: 28px 26px 30px; position: relative; overflow: hidden; }
.section--alt .spec-tile { background: var(--bg-2); }
.spec-tile i { font-size: 1.5rem; color: var(--accent); }
.spec-tile .v { display: block; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; font-stretch: 110%; letter-spacing: -0.035em; line-height: 1; margin: 26px 0 10px; font-variant-numeric: tabular-nums; }
.spec-tile .v small { font-size: .45em; color: var(--accent); margin-left: 4px; font-weight: 600; letter-spacing: 0; }
.spec-tile .k { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

/* Spotlight-Rahmen bei Hover */
.spot { --mx: 50%; --my: 50%; }
.spot::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255,225,0,.09), transparent 60%);
}
.spot:hover::after { opacity: 1; }

/* Fähigkeiten-Liste (zweispaltig gruppiert) */
.caps { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.caps-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.cap-group h3 { font-size: 1.1rem; font-stretch: 104%; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line-strong); display: flex; align-items: center; gap: 10px; }
.cap-group h3 i { color: var(--accent); font-size: 1.3rem; }
.cap-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cap-group li { position: relative; padding-left: 22px; color: var(--steel); line-height: 1.5; }
.cap-group li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1.5px; background: var(--accent); }

/* Maschinen-Karten */
.machines { display: grid; gap: 24px; }
.machine {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  position: relative;
}
.machine:nth-child(even) { grid-template-columns: 1fr 1.05fr; }
.machine:nth-child(even) .machine-media { order: 2; }
.machine-media { position: relative; min-height: 380px; overflow: hidden; background: #fff; }
.machine-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.machine:hover .machine-media img { transform: scale(1.04); }
.machine-body { padding: clamp(26px, 3.4vw, 48px); display: flex; flex-direction: column; }
.machine-type { font-family: var(--mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.machine-body h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 14px; }
.machine-body > p { color: var(--muted); }
.machine-axes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin: 18px 0 22px; box-shadow: 0 0 0 1px var(--line); }
.axis { background: var(--surface); padding: 16px 16px 14px; }
.axis b { display: block; font-family: var(--mono); font-weight: 500; color: var(--accent); font-size: 0.76rem; margin-bottom: 6px; }
.axis span { font-size: 1.35rem; font-weight: 760; font-stretch: 108%; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.axis span small { font-size: .6em; color: var(--muted); font-weight: 500; margin-left: 3px; }
.machine-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 0; }
.machine-specs div { display: flex; flex-direction: column; padding-top: 10px; border-top: 1px solid var(--line); }
.machine-specs dt { font-size: 0.8rem; color: var(--dim); }
.machine-specs dd { margin: 2px 0 0; color: var(--text); font-weight: 550; font-size: 0.97rem; }

/* Galerie */
.gallery { columns: 3; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; overflow: hidden; position: relative; break-inside: avoid; }
.gallery img { width: 100%; transition: transform .9s var(--ease-out), filter .5s; }
.gallery a::after {
  content: "\e30c";
  font-family: "Phosphor";
  position: absolute; right: 12px; top: 12px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 1.1rem;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.gallery a:hover img { transform: scale(1.05); }
.gallery a:hover::after { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(4, 8, 14, 0.94);
  display: grid; place-items: center;
  padding: 64px 16px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1200px, 100%); max-height: 82vh; object-fit: contain; transform: scale(.96); transition: transform .5s var(--ease-out); }
.lightbox.is-open img { transform: none; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  font-size: 1.4rem;
  transition: background-color .25s, color .25s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--accent); color: var(--accent-ink); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* Medienband mit Video */
.media-band { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.media-band .wide { position: relative; overflow: hidden; }
.media-band .wide img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.media-band .reel { max-width: 360px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  text-align: left;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 650;
}
.faq-q i { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform .4s var(--ease-out), background-color .3s, color .3s; }
.faq-item.is-open .faq-q i { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); padding-bottom: 24px; margin: 0; max-width: 64ch; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* Verwandte Leistungen */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.related a { position: relative; background: var(--bg); padding: 32px 28px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: background-color .4s; }
.section--alt .related a { background: var(--bg-2); }
.related a > i { font-size: 1.9rem; color: var(--accent); }
.related strong { display: block; font-size: 1.4rem; font-stretch: 106%; letter-spacing: -0.01em; margin-bottom: 6px; }
.related span { color: var(--muted); font-size: 0.93rem; }
.related .go { position: absolute; right: 24px; top: 28px; font-size: 1.3rem; color: var(--muted); transition: transform .45s var(--ease-out), color .3s; }
.related a:hover .go { transform: rotate(-45deg); color: var(--accent); }
.related a:hover { background: var(--surface); }

/* Leistungsübersicht */
.svc-index { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1.2fr 1fr 60px;
  gap: 32px;
  align-items: center;
  padding: 38px 0;
  border-bottom: 1px solid var(--line-strong);
  transition: padding .5s var(--ease-out);
}
.svc-row .n { font-family: var(--mono); color: var(--dim); font-size: .85rem; }
.svc-row h3 { font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 780; letter-spacing: -0.035em; transition: color .3s; }
.svc-row p { color: var(--muted); margin: 0; }
.svc-row .go { font-size: 1.8rem; justify-self: end; transition: transform .5s var(--ease-out), color .3s; }
.svc-row:hover { padding-left: 18px; }
.svc-row:hover h3, .svc-row:hover .go { color: var(--accent); }
.svc-row:hover .go { transform: rotate(-45deg); }
.svc-preview {
  position: fixed;
  left: 0; top: 0;
  width: 340px; height: 240px;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.85);
  transition: opacity .3s, transform .4s var(--ease-out);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.svc-preview.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.svc-preview img.is-active { opacity: 1; }

.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry { position: relative; aspect-ratio: 3 / 4; overflow: hidden; display: flex; align-items: flex-end; padding: 22px; isolation: isolate; }
.industry img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35); transition: transform 1s var(--ease-out), filter .5s; }
.industry::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(6,12,21,.92)); }
.industry:hover img { transform: scale(1.06); filter: none; }
.industry strong { display: block; font-size: 1.3rem; font-stretch: 106%; margin-bottom: 4px; }
.industry span { color: var(--steel); font-size: .9rem; line-height: 1.45; display: block; }
.industry:nth-child(even) { margin-top: 48px; }

/* Maschinenpark */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter {
  padding: 11px 18px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--steel);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.filter:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.filter.is-active { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.filter sup { font-family: var(--mono); font-size: .7em; margin-left: 4px; opacity: .7; }
.park { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.park-card {
  position: relative;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .5s var(--ease-out), opacity .4s;
}
.park-card.is-hidden { display: none; }
.park-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8ebef; }
.park-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.park-card:hover .park-card-media img { transform: scale(1.05); }
.park-year { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; background: rgba(6,12,21,.82); color: var(--text); padding: 5px 9px; }
.park-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.park-card-body .machine-type { margin-bottom: 8px; }
.park-card-body h3 { font-size: 1.3rem; margin-bottom: 16px; }
.park-card dl { margin: auto 0 0; display: grid; gap: 8px; }
.park-card dl div { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); font-size: .9rem; }
.park-card dt { color: var(--dim); }
.park-card dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Bauraum-Vergleich */
.envelope { display: grid; grid-template-columns: 0.9fr 1.5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.env-picker { display: grid; gap: 8px; margin-top: 28px; }
.env-btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px;
  text-align: left;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .25s, box-shadow .25s;
}
.env-btn span { font-weight: 650; }
.env-btn small { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.env-btn:hover { background: rgba(255,255,255,.04); }
.env-btn.is-active { box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px var(--line-strong); background: rgba(255,225,0,.05); }
.env-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(rgba(150,190,240,.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(150,190,240,.06) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.env-stage svg { width: 100%; height: 100%; }
.env-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.env-legend span { display: inline-flex; align-items: center; gap: 8px; }
.env-legend i { width: 14px; height: 3px; background: var(--accent); display: inline-block; }
.env-legend i.ref { background: var(--steel); }

/* Zeitstrahl Unternehmen */
.timeline-pan { position: relative; overflow: hidden; }
.tl-track { display: flex; gap: 0; width: max-content; padding-inline: var(--gutter); }
.tl-item { position: relative; width: min(80vw, 400px); flex-shrink: 0; padding: 70px 40px 0 0; }
.tl-item::before { content: ""; position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: var(--line-strong); }
.tl-item::after { content: ""; position: absolute; left: 0; top: 21px; width: 15px; height: 15px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); }
.tl-year { font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 840; font-stretch: 112%; letter-spacing: -0.04em; line-height: 1; color: var(--accent); margin-bottom: 16px; }
.tl-item p { color: var(--steel); max-width: 36ch; }
.tl-item figure { margin: 22px 0 0; overflow: hidden; max-width: 320px; }
.tl-item figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1) contrast(1.05); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { position: relative; padding: 36px 30px 34px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.value .big { position: absolute; right: -10px; bottom: -36px; font-size: 9rem; color: rgba(255,255,255,.03); }
.value i.ico { font-size: 2rem; color: var(--accent); display: block; margin-bottom: 26px; }
.value h3 { margin-bottom: 12px; }
.value p { color: var(--muted); margin: 0; }
.value--img { padding: 0; min-height: 100%; }
.value--img img { width: 100%; height: 100%; object-fit: cover; }

/* Karriere */
.jobs { display: grid; gap: 16px; }
.job {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 30px 32px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s, transform .5s var(--ease-out);
  overflow: hidden;
}
.job:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.job h3 { font-size: 1.45rem; margin-bottom: 6px; }
.job .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job p { color: var(--muted); margin: 0; font-size: .95rem; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.benefit { background: var(--bg); padding: 30px 26px; position: relative; overflow: hidden; }
.benefit i { font-size: 1.7rem; color: var(--accent); }
.benefit strong { display: block; margin: 22px 0 8px; font-size: 1.1rem; }
.benefit p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-cards { display: grid; gap: 14px; margin-top: 32px; }
.contact-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center;
  padding: 20px 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s;
}
a.contact-card:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.contact-card i { width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.45rem; }
.contact-card small { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-size: 1.12rem; font-weight: 650; }
.contact-card address { font-style: normal; }
.form {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(24px, 3.4vw, 48px);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.form h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 8px; }
.form > p { color: var(--muted); margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--steel); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 14px 16px;
  color: var(--text);
  border-radius: 0;
  transition: border-color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2398a6ba' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #75849a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,225,0,.15); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .err { font-size: .82rem; color: #ff9b8a; display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #ff7a66; }
.field.has-error .err { display: block; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .88rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.form-status { display: none; padding: 16px 18px; background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); color: var(--text); font-size: .95rem; margin-top: 18px; }
.form-status.is-visible { display: block; }

.map-consent {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
}
.map-consent > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; z-index: -1; filter: grayscale(1); }
.map-consent .inner { max-width: 520px; padding: 24px; }
.map-consent p { color: var(--muted); font-size: .92rem; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg); }

/* ---------- Reveal-Grundzustände (nur mit JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); }
.js [data-clip] { clip-path: inset(100% 0 0 0); }
.js [data-clip] img { transform: scale(1.25); }

/* ==========================================================================
   Responsiv
   ========================================================================== */
@media (max-width: 1180px) {
  .header-phone { display: none; }
  .nav-link { padding: 10px 11px; }
}
@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .main-nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 40px); }
  .hero-readout { display: none; }
  .statement-wrap, .reels, .process, .quality, .heritage-inner, .cta-inner, .intro, .caps, .faq, .media-band, .envelope, .contact, .page-hero-inner { grid-template-columns: 1fr; }
  .process-sticky { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .pillar { padding: 20px 0; }
  .dim:nth-child(n) { grid-column: span 6; }
  .dim:nth-child(1) { grid-column: span 12; }
  .duo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .spec-tiles, .benefits { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: 1fr; }
  .park { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .quality-cert { right: 12px; bottom: -32px; }
  .svc-row { grid-template-columns: 50px 1fr 40px; }
  .svc-row p { grid-column: 2 / 3; }
  .svc-preview { display: none; }
  .job { grid-template-columns: 1fr; gap: 16px; }
  .machine, .machine:nth-child(even) { grid-template-columns: 1fr; }
  .machine:nth-child(even) .machine-media { order: 0; }
  .machine-media { min-height: 280px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .hero { min-height: 100svh; padding-bottom: 250px; }
  #hero-canvas {
    -webkit-mask-image: linear-gradient(180deg, transparent 52%, #000 72%);
    mask-image: linear-gradient(180deg, transparent 52%, #000 72%);
  }
  .hero-bottom .container { flex-wrap: wrap; }
  .hero-tag { padding: 10px 14px 10px 0; margin-right: 14px; font-size: .64rem; }
  .hero-tag:nth-child(3) { display: none; }
  .hero-annot { display: none; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .dimline { margin: 24px 0 22px; }
  .reels-stage { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .reel:nth-child(2) { margin-top: 40px; }
  .reel:nth-child(3) { margin-top: 14px; }
  .reel-cap { font-size: .55rem; left: 8px; right: 8px; bottom: 8px; }
  .reel-cap span { display: none; }
  .reel-toggle { width: 28px; height: 28px; }
  .dim:nth-child(n) { grid-column: span 12; min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-tiles, .benefits { grid-template-columns: 1fr; }
  .caps-groups { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery a { margin-bottom: 10px; }
  .park { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr 1fr; gap: 10px; }
  .industry { padding: 14px; }
  .industry:nth-child(even) { margin-top: 24px; }
  .industry strong { font-size: 1.05rem; }
  .industry span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .machine-axes { grid-template-columns: 1fr 1fr 1fr; }
  .axis { padding: 12px 10px; }
  .axis span { font-size: 1.05rem; }
  .machine-specs { grid-template-columns: 1fr; }
  .svc-card { width: 86vw; height: auto; min-height: 480px; }
  .heritage { min-height: 80vh; }
  .quality-cert { width: 44%; }
  .map-consent { aspect-ratio: 4 / 5; }
  .collage { aspect-ratio: 1 / 1.1; }
  .tl-item { width: 82vw; }
  .page-hero { min-height: 82svh; }
  .phs { padding: 14px 16px; }
  .footer-bottom nav { flex-wrap: wrap; gap: 14px; }
}

/* Mobile: horizontale Fahrten werden zu nativen Scroll-Snap-Strecken */
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .pan-wrap { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pan-wrap::-webkit-scrollbar { display: none; }
  .pan-wrap .svc-card, .pan-wrap .tl-item { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-clip] { clip-path: none; }
  .js [data-clip] img { transform: none; }
  .statement .w { opacity: 1; }
}

/* Grid-Kinder dürfen schrumpfen (verhindert horizontales Überlaufen durch Bilder) */
.statement-wrap > *, .reels > *, .process > *, .quality > *, .heritage-inner > *, .cta-inner > *,
.intro > *, .caps > *, .faq > *, .media-band > *, .envelope > *, .contact > *, .page-hero-inner > *,
.duo > *, .footer-grid > *, .machine > * { min-width: 0; }

/* ---------- MPE-Rechner (3D-Messtechnik) ---------- */
.mpe {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(24px, 3.4vw, 48px);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.mpe-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.mpe-k { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mpe-l, .mpe-v { display: block; font-weight: 800; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mpe-l { font-size: clamp(2rem, 3.4vw, 3rem); }
.mpe-v { font-size: clamp(3rem, 6vw, 5.4rem); color: var(--accent); }
.mpe-res { text-align: right; }
.mpe-range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; }
.mpe-range::-webkit-slider-runnable-track {
  height: 12px;
  background-image: linear-gradient(90deg, var(--line-strong) 1px, transparent 1px);
  background-size: 2.5% 100%;
  border-bottom: 1px solid var(--line-strong);
}
.mpe-range::-moz-range-track {
  height: 12px;
  background-image: linear-gradient(90deg, var(--line-strong) 1px, transparent 1px);
  background-size: 2.5% 100%;
  border-bottom: 1px solid var(--line-strong);
}
.mpe-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 34px; margin-top: -11px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.mpe-range::-moz-range-thumb { width: 22px; height: 34px; border: 0; border-radius: 0; background: var(--accent); }
.mpe-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--dim); margin-top: 8px; }
.mpe-note { margin: 28px 0 0; color: var(--muted); font-size: .95rem; }
.mpe-note strong { color: var(--text); }

/* ---------- Vergleich Lohn- / Komplettfertigung ---------- */
.compare { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: stretch; }
.compare-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.6vw, 52px);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.compare-card .ico { font-size: 2.2rem; color: var(--accent); display: block; margin-bottom: 28px; }
.compare-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 12px; }
.compare-card > p { color: var(--muted); max-width: 46ch; }
.compare-card ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.compare-card li { display: flex; gap: 12px; align-items: baseline; color: var(--steel); }
.compare-card li i { color: var(--accent); }
.compare-card--accent { background: var(--accent); color: var(--accent-ink); box-shadow: none; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.compare-card--accent .ico, .compare-card--accent li i { color: var(--accent-ink); }
.compare-card--accent > p, .compare-card--accent li { color: rgba(7,17,31,.82); }
.compare-card--accent.spot::after { background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255,255,255,.35), transparent 60%); }
@media (max-width: 767px) { .compare { grid-template-columns: 1fr; } }
.media-band--rev { grid-template-columns: 0.7fr 1.3fr; }
@media (max-width: 1023px) { .media-band--rev { grid-template-columns: 1fr; } }

/* Zeitstrahl: Kopfbereich bleibt in der Spalte, nur die Spur fährt */
.timeline-pan .pan-wrap > div { width: 100%; min-width: 0; }
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .timeline-pan .pan-wrap { overflow: visible; min-height: 0; }
  .timeline-pan .tl-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .timeline-pan .tl-track::-webkit-scrollbar { display: none; }
  .tl-item { scroll-snap-align: start; }
}

/* Lange deutsche Komposita in Headlines sauber umbrechen */
h1, h2, h3, .statement { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; hyphenate-limit-chars: 10 4 4; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 5.2rem); }

/* Checkbox nicht wie Textfeld stylen */
.field .check input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
[data-clip] { overflow: hidden; }

/* ---------- Info-Balken: Hinweis auf Demo-Webseite ---------- */
.demo-bar {
  background: #f2f4f7;
  color: #1a2433;
  border-top: 3px solid var(--accent);
}
.demo-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px 28px;
  padding-block: 18px;
}
.demo-bar-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 6px 12px;
  background: #1a2433;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.demo-bar-tag i { font-size: 1rem; color: var(--accent); }
.demo-bar p { margin: 0; flex: 1; font-size: 0.92rem; line-height: 1.5; color: #3a4658; }
.demo-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 11px 18px;
  background: #1a2433;
  color: #fff;
  font-weight: 650;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.demo-bar-link:hover { background: var(--accent); color: var(--accent-ink); }
.demo-bar-link:focus-visible { outline-color: #1a2433; }
@media (max-width: 900px) {
  .demo-bar-inner { flex-wrap: wrap; }
  .demo-bar p { flex-basis: 100%; order: 2; }
  .demo-bar-link { order: 3; }
}
