/* ==========================================================================
   Helvetech Engineering GmbH – Website-Entwurf (Nov. 2026)
   Reines HTML/CSS/JS, ohne Frameworks, ohne externe Abhängigkeiten.
   Schriften eingebettet in fonts.css (keine Übertragung an Google o. Ä. → DSG-freundlich).
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --red: #DA291C;          /* Logo-Rot (exakt aus Logo-Datei gemessen) */
  --red-text: #C2241A;     /* Rot für Text auf hellem Grund (Kontrast ≥ 4.5:1) */
  --red-on-dark: #FF4A3D;  /* Rot für Text auf dunklem Grund */
  --ink: #121417;
  --ink-2: #2A2E34;
  --muted: #5E636B;
  --paper: #F5F4F0;
  --paper-2: #ECEAE4;
  --white: #FFFFFF;
  --night: #0E1013;
  --night-2: #171A1F;
  --night-line: rgba(255,255,255,.12);
  --on-night: #F2F2F0;
  --on-night-muted: #9CA3AD;
  --line: rgba(18,20,23,.14);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --header-h: 76px;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 750; line-height: 1.05; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: #fff; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: .75rem 1rem; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--paper2 { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--dark { background: var(--night); color: var(--on-night); }
.section--dark .muted, .section--dark .lead { color: var(--on-night-muted); }

/* ---------- Typo-Bausteine ---------- */
.kicker {
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-text); display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .kicker, .hero .kicker, .page-hero .kicker { color: var(--red-on-dark); }
.h-display { font-size: clamp(2.6rem, 1.4rem + 5.4vw, 6.2rem); font-stretch: 112%; font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.h-1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); font-stretch: 108%; letter-spacing: -.03em; }
.h-2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); font-stretch: 106%; }
.h-3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); font-stretch: 104%; letter-spacing: -.015em; }
.accent { font-style: italic; color: var(--red-text); }
.section--dark .accent, .hero .accent, .page-hero .accent { color: var(--red-on-dark); }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em; }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 4rem; }
  .section-head--split .lead { justify-self: end; }
}

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--red); --b-fg: #fff; --b-bd: var(--red);
  display: inline-flex; align-items: center; gap: .7rem; padding: .95rem 1.5rem;
  font: 600 .98rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd); border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover { --b-bg: #B81F14; --b-bd: #B81F14; }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --b-bg: transparent; --b-fg: currentColor; --b-bd: currentColor; }
.btn--ghost:hover { --b-bg: currentColor; --b-bd: currentColor; }
.btn--ghost:hover span, .btn--ghost:hover svg { color: var(--night); }
.section:not(.section--dark) .btn--ghost:hover span, .section:not(.section--dark) .btn--ghost:hover svg { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: .15rem;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff; transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-solid {
  background: rgba(245,244,240,.88); color: var(--ink);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line); --header-h: 66px;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; line-height: 0; }
.brand img { width: auto; height: 46px; transition: height .35s var(--ease); }
.site-header.is-solid .brand img { height: 40px; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav__list { list-style: none; display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav__list a {
  position: relative; text-decoration: none; font-weight: 550; font-size: .95rem; padding-block: .5rem;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: .7rem 1.1rem; font-size: .9rem; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0;
  position: relative; z-index: 2;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 24px; height: 2px; background: currentColor; content: ""; transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--night); color: var(--on-night);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 2.5rem; padding: 6rem var(--gutter) 3rem;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__list { flex-direction: column; gap: 1.1rem; }
  .nav__list a { font-family: var(--f-display); font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 750; font-stretch: 110%; letter-spacing: -.02em; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); color: #fff; background: var(--night);
  display: grid; align-items: end; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.04); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14,16,19,.92) 0%, rgba(14,16,19,.72) 42%, rgba(14,16,19,.25) 75%, rgba(14,16,19,.35) 100%),
    linear-gradient(0deg, rgba(14,16,19,.95) 0%, rgba(14,16,19,0) 45%);
}
.hero__grid { /* feines technisches Raster */
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%); mask-image: linear-gradient(90deg, #000 0%, transparent 60%);
}
.hero__content { padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero__title { max-width: 13ch; margin-bottom: 1.75rem; }
.hero__lead { color: rgba(255,255,255,.82); max-width: 54ch; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); margin-bottom: 2.25rem; }
.hero .btn--ghost { --b-fg: #fff; --b-bd: rgba(255,255,255,.55); }
.hero .btn--ghost:hover { --b-bg: #fff; --b-bd: #fff; }

.specbar {
  margin-top: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--night-line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.specbar__item { padding: 1.4rem 1.5rem 0 0; }
.specbar__item + .specbar__item { padding-left: 1.5rem; border-left: 1px solid var(--night-line); }
.specbar__value { font-family: var(--f-display); font-weight: 750; font-stretch: 112%; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); letter-spacing: -.02em; line-height: 1.1; }
.specbar__value small { font-size: .55em; font-weight: 600; margin-left: .15em; color: var(--on-night-muted); }
.specbar__label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); margin-top: .35rem; }
@media (max-width: 800px) {
  .specbar { grid-template-columns: repeat(2, 1fr); }
  .specbar__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .specbar__item:nth-child(n+3) { border-top: 1px solid var(--night-line); margin-top: 1.4rem; }
}
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 2.25rem; writing-mode: vertical-rl;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6);
  display: flex; align-items: center; gap: 1rem;
}
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
@media (max-width: 800px) { .scroll-cue { display: none; } }

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.page-hero {
  position: relative; color: #fff; background: var(--night); isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,16,19,.94) 0%, rgba(14,16,19,.78) 50%, rgba(14,16,19,.45) 100%); }
.page-hero .lead { color: rgba(255,255,255,.8); margin-top: 1.5rem; }
.breadcrumb { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: 2rem; }
.breadcrumb a { text-decoration: none; } .breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { margin: 0 .6rem; }

/* ---------- Intro / Über uns ---------- */
.intro { display: grid; gap: 3rem; }
@media (min-width: 960px) { .intro { grid-template-columns: 5fr 7fr; gap: 6rem; } }
.intro__statement { font-family: var(--f-display); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.95rem); font-weight: 600; font-stretch: 104%; line-height: 1.2; letter-spacing: -.02em; }
.pillars { list-style: none; display: grid; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.pillars .mono { color: var(--red-text); padding-top: .2rem; }
.pillars h3 { font-size: 1.15rem; font-stretch: 104%; margin-bottom: .3rem; letter-spacing: -.01em; }
.pillars p { margin: 0; color: var(--muted); }

/* ---------- Leistungs-Karten ---------- */
.services { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.service {
  position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(18,20,23,.35); border-color: transparent; }
.service__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__media img { transform: scale(1.06); }
.service__body { padding: 1.75rem 1.75rem 2rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.service__num { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .12em; color: var(--red-text); }
.service__list { list-style: none; display: grid; gap: .45rem; color: var(--ink-2); font-size: .97rem; }
.service__list li { padding-left: 1.2rem; position: relative; }
.service__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 2px; background: var(--red); }
.service__more { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.service__more svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.service:hover .service__more svg { transform: translateX(5px); }

/* ---------- Case / Feature-Split ---------- */
.split { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.split__media figcaption { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-muted); margin-top: .9rem; }
.section:not(.section--dark) .split__media figcaption { color: var(--muted); }
.corner-marks { position: absolute; inset: -12px; pointer-events: none; }
.corner-marks::before, .corner-marks::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--red);
}
.corner-marks::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner-marks::after { bottom: 34px; right: 0; border-left: 0; border-top: 0; }
.steps-inline { list-style: none; display: grid; gap: 0; margin: 2rem 0 2.5rem; counter-reset: s; }
.steps-inline li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; padding: 1.1rem 0; border-top: 1px solid var(--night-line); }
.section:not(.section--dark) .steps-inline li { border-top-color: var(--line); }
.steps-inline li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: .8rem; color: var(--red-on-dark); padding-top: .2rem; }
.section:not(.section--dark) .steps-inline li::before { color: var(--red-text); }
.steps-inline strong { display: block; font-family: var(--f-display); font-size: 1.1rem; font-stretch: 104%; margin-bottom: .15rem; }
.steps-inline span { color: var(--on-night-muted); }
.section:not(.section--dark) .steps-inline span { color: var(--muted); }

/* ---------- Prozess ---------- */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: p; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line); }
.process li { counter-increment: p; position: relative; padding-right: 1.5rem; }
.process__dot {
  width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--paper); border: 1.5px solid var(--ink); font-family: var(--f-mono); font-size: .85rem; font-weight: 500; margin-bottom: 1.5rem;
  transition: background .3s, color .3s, border-color .3s;
}
.process li:hover .process__dot { background: var(--red); border-color: var(--red); color: #fff; }
.process h3 { font-size: 1.15rem; font-stretch: 104%; margin-bottom: .5rem; letter-spacing: -.01em; }
.process p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 2rem; }
  .process::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process li { display: grid; grid-template-columns: 47px 1fr; gap: 1.25rem; padding: 0; }
  .process__dot { margin: 0; }
}

/* ---------- Werkstoffe ---------- */
.materials { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.material { background: var(--white); padding: 1.75rem; display: flex; flex-direction: column; gap: .8rem; }
.material--hp { background: var(--night); color: var(--on-night); }
.material__tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.material--hp .material__tag { color: var(--red-on-dark); }
.material h3 { font-size: 2rem; font-stretch: 112%; font-weight: 800; }
.material p { font-size: .95rem; color: var(--muted); margin: 0; }
.material--hp p { color: var(--on-night-muted); }
.meters { list-style: none; display: grid; gap: .55rem; margin-top: auto; padding-top: .75rem; }
.meter { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: .75rem; font-size: .8rem; }
.meter span:first-child { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.material--hp .meter span:first-child { color: var(--on-night-muted); }
.meter__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.meter__bar i { height: 6px; background: var(--paper-2); }
.material--hp .meter__bar i { background: rgba(255,255,255,.14); }
.meter__bar i.on { background: var(--ink); }
.material--hp .meter__bar i.on { background: var(--red); }
.note { font-size: .88rem; color: var(--muted); margin-top: 1.25rem; }

/* ---------- Anwendungen ---------- */
.apps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.app { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .3s, transform .3s var(--ease); }
.app:hover { border-color: var(--ink); transform: translateY(-3px); }
.app svg { width: 34px; height: 34px; color: var(--red); margin-bottom: 1.1rem; }
.app h3 { font-size: 1.1rem; font-stretch: 104%; margin-bottom: .4rem; letter-spacing: -.01em; }
.app p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(140px, 16vw, 230px); }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--night-2); cursor: zoom-in; padding: 0; border: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption, .gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; text-align: left;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
.g-a { grid-column: span 7; grid-row: span 2; } .g-b { grid-column: span 5; grid-row: span 1; } .g-c { grid-column: span 5; }
.g-d { grid-column: span 4; grid-row: span 2; } .g-e { grid-column: span 4; grid-row: span 1; } .g-f { grid-column: span 4; grid-row: span 2; }
.g-g { grid-column: span 4; } .g-h { grid-column: span 6; grid-row: span 1; } .g-i { grid-column: span 6; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery > .g-a, .gallery > .g-h { grid-column: span 2 !important; grid-row: span 2 !important; }
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1600px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,11,13,.92); }
.lightbox img { max-width: min(94vw, 1600px); max-height: 84vh; width: auto; margin: auto; border-radius: var(--radius); }
.lightbox p { color: #ddd; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; margin: 1rem 0 0; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.lightbox__nav { position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lightbox__nav--prev { left: 1rem; } .lightbox__nav--next { right: 1rem; }

/* ---------- Team ---------- */
.team { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 2.5rem; }
.person { display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.person__mono { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: #fff; font-family: var(--f-display); font-weight: 750; font-stretch: 110%; font-size: 1.25rem; }
.person h3 { font-size: 1.15rem; font-stretch: 104%; letter-spacing: -.01em; }
.person p { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Software / Tags ---------- */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.tags li { font-family: var(--f-mono); font-size: .82rem; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 100px; background: var(--white); }
.tags--primary li { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--dark .tags li { background: transparent; border-color: var(--night-line); color: var(--on-night); }
.section--dark .tags--primary li { background: var(--red); border-color: var(--red); }

/* ---------- Spec-Tabelle ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec-table th, .spec-table td { text-align: left; padding: 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.section--dark .spec-table th, .section--dark .spec-table td { border-bottom-color: var(--night-line); }
.spec-table th { font-family: var(--f-mono); font-weight: 400; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); width: 42%; padding-right: 1rem; }
.section--dark .spec-table th { color: var(--on-night-muted); }
.spec-table td { font-weight: 550; }

/* ---------- Vergleich FDM / SLA ---------- */
.compare { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.compare__card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--white); }
.compare__card h3 { margin-bottom: .35rem; }
.compare__card .mono { color: var(--red-text); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.pc h4 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; margin-bottom: .75rem; color: var(--muted); }
.pc ul { list-style: none; display: grid; gap: .5rem; font-size: .95rem; }
.pc li { padding-left: 1.4rem; position: relative; }
.pc .pro li::before { content: "+"; position: absolute; left: 0; color: var(--red-text); font-weight: 700; }
.pc .con li::before { content: "−"; position: absolute; left: 0; color: var(--muted); font-weight: 700; }
@media (max-width: 520px) { .pc { grid-template-columns: 1fr; } }

/* ---------- Kompetenzliste ---------- */
.competences { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line); }
.competences li { display: grid; grid-template-columns: 3rem 1fr; gap: .75rem; padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.competences .mono { color: var(--red-text); padding-top: .25rem; }
.competences h3 { font-size: 1.1rem; font-stretch: 104%; letter-spacing: -.01em; margin-bottom: .3rem; }
.competences p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- CTA-Band ---------- */
.cta {
  position: relative; overflow: hidden; background: var(--red); color: #fff; isolation: isolate;
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.cta::after { /* Schweizerkreuz-Andeutung aus dem Logo-Signet */
  content: ""; position: absolute; z-index: -1; right: -4%; top: 50%; width: clamp(260px, 34vw, 520px); aspect-ratio: 1;
  translate: 0 -50%; opacity: .12;
  -webkit-mask: linear-gradient(#000 0 0) center/34% 100% no-repeat, linear-gradient(#000 0 0) center/100% 34% no-repeat;
          mask: linear-gradient(#000 0 0) center/34% 100% no-repeat, linear-gradient(#000 0 0) center/100% 34% no-repeat;
  background-color: #fff; transform: skewX(-18deg);
}
.cta__inner { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: 1.4fr 1fr; } .cta__inner .btn-row { justify-content: flex-end; } }
.cta .kicker { color: #fff; }
.cta .btn { --b-bg: #fff; --b-fg: var(--ink); --b-bd: #fff; }
.cta .btn:hover { --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink); }
.cta .btn--ghost { --b-bg: transparent; --b-fg: #fff; --b-bd: rgba(255,255,255,.6); }
.cta .btn--ghost:hover { --b-bg: #fff; --b-bd: #fff; }
.cta .btn--ghost:hover span, .cta .btn--ghost:hover svg { color: var(--ink); }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 7fr; } }
.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 2rem; }
.contact-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.contact-list .mono { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; padding-top: .2rem; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--red-text); }
.socials { display: flex; gap: .75rem; margin-top: 1.75rem; }
.socials a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background .25s, color .25s, border-color .25s; }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.socials svg { width: 19px; height: 19px; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label, .field legend { font-size: .85rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-bottom-color: var(--line); border-radius: var(--radius) var(--radius) 0 0;
  padding: .85rem 1rem; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--ink); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: .6rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: .55rem 1rem; border: 1.5px solid var(--line); border-radius: 100px; font-size: .9rem; font-weight: 500; transition: all .2s; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .88rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 550; }
.form__status.is-ok { display: block; background: #E7F4EA; color: #14532D; }
.form__status.is-err { display: block; background: #FDECEA; color: #8A1C12; }

/* ---------- Rechtstexte ---------- */
.prose { max-width: 75ch; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin: 3rem 0 1rem; font-stretch: 104%; }
.prose h3 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1em; }
.prose li { margin-bottom: .35rem; }
.prose a { color: var(--red-text); }
.draft-note { border-left: 3px solid var(--red); background: var(--white); padding: 1rem 1.25rem; font-size: .92rem; margin-bottom: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night-muted); padding: clamp(4rem, 7vw, 6rem) 0 2rem; font-size: .95rem; }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.6fr repeat(3, 1fr); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
.footer__brand img { height: 52px; width: auto; margin-bottom: 1.5rem; }
.footer__brand p { max-width: 36ch; }
.site-footer h2 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer__bottom { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.swiss { display: inline-flex; align-items: center; gap: .5rem; }
.swiss i { width: 14px; height: 14px; background: var(--red); position: relative; display: inline-block; border-radius: 2px; }
.swiss i::before, .swiss i::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; translate: -50% -50%; }
.swiss i::before { width: 8px; height: 2.4px; } .swiss i::after { width: 2.4px; height: 8px; }

/* ---------- Scroll-Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .nav-toggle, .scroll-cue, .cta, .form, .lightbox { display: none !important; }
  .hero, .page-hero { min-height: 0; color: #000; background: none; padding-top: 2rem; }
  .hero::before, .page-hero::before, .hero__media, .page-hero__media { display: none; }
  body { background: #fff; }
}

/* ---------- Mobile-Feinschliff ---------- */
@media (max-width: 600px) {
  .kicker { flex-wrap: wrap; letter-spacing: .1em; font-size: .72rem; }
  .hero::before { background: linear-gradient(0deg, rgba(14,16,19,.96) 0%, rgba(14,16,19,.82) 55%, rgba(14,16,19,.6) 100%); }
  .page-hero::before { background: rgba(14,16,19,.82); }
  .specbar__value { font-size: 1.15rem; }
  .specbar__item { padding-right: .75rem; }
  .specbar__item + .specbar__item { padding-left: .9rem; }
  .specbar__item:nth-child(3) { padding-left: 0; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .contact-list li { grid-template-columns: 1fr; gap: .25rem; }
}

/* ==========================================================================
   V2.0 – Onepager-Erweiterungen
   ========================================================================== */
html { scroll-padding-top: 72px; }

/* Navigation mit Scroll-Spy */
.nav__list { gap: clamp(.9rem, 1.6vw, 1.75rem); }
.nav__list a { font-size: .92rem; }
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a.is-active { color: inherit; }
.nav .btn { white-space: nowrap; }
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--night); color: var(--on-night);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 2.5rem; padding: 6rem var(--gutter) 3rem;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__list { flex-direction: column; gap: .7rem; }
  .nav__list a { font-family: var(--f-display); font-size: clamp(1.7rem, 6.5vw, 2.4rem); font-weight: 750; letter-spacing: -.02em; }
  body.nav-open { overflow: hidden; }
}
@media (max-height: 640px) and (max-width: 1140px) { .nav__list a { font-size: 1.4rem; } .nav { gap: 1.5rem; } }

/* Hero: Kompetenz-Leiste statt Druckerdaten */
.hero__title { max-width: 15ch; }
.compstrip { margin-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--night-line); display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; }
.compstrip li + li { border-left: 1px solid var(--night-line); }
.compstrip a { display: block; height: 100%; padding: 1.4rem 1.5rem .25rem; text-decoration: none; transition: background .3s var(--ease); }
.compstrip li:first-child a { padding-left: 0; }
.compstrip a:hover { background: rgba(255,255,255,.04); }
.compstrip .mono { color: var(--red-on-dark); font-size: .74rem; letter-spacing: .12em; }
.compstrip strong { display: block; font-family: var(--f-display); font-size: clamp(1.05rem, .9rem + .5vw, 1.3rem); font-weight: 700; line-height: 1.2; margin: .5rem 0 .35rem; letter-spacing: -.01em; }
.compstrip span.t { display: block; font-size: .9rem; color: var(--on-night-muted); line-height: 1.5; }
@media (max-width: 900px) {
  .compstrip { grid-template-columns: 1fr 1fr; }
  .compstrip li:nth-child(3) { border-left: 0; }
  .compstrip li:nth-child(3) a { padding-left: 0; }
  .compstrip li:nth-child(n+3) { border-top: 1px solid var(--night-line); }
  .compstrip span.t { display: none; }
}

/* Abschnitts-Einleitung mit Nummer */
.sec-index { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
.section--dark .sec-index { color: var(--on-night-muted); }
.ratio-32 { aspect-ratio: 3 / 2 !important; }
.ratio-34 { aspect-ratio: 3 / 4 !important; }

/* Leistungsspektrum */
.spectrum { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4rem); }
.spectrum li { background: var(--white); padding: 1.6rem 1.5rem; display: grid; gap: .5rem; align-content: start; transition: background .3s; }
.spectrum li:hover { background: var(--paper); }
.spectrum svg { width: 30px; height: 30px; color: var(--red); margin-bottom: .4rem; }
.spectrum h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.spectrum p { margin: 0; font-size: .93rem; color: var(--muted); }

/* Verfahren-Karten mit Bild */
.proc-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.proc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 2fr 3fr; }
.proc-card__media { background: var(--night); min-height: 100%; }
.proc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.proc-card__body { padding: clamp(1.5rem, 2.5vw, 2.25rem); display: flex; flex-direction: column; gap: .8rem; }
.proc-card__body .mono { color: var(--red-text); }
.proc-card__body p { margin: 0; color: var(--muted); font-size: .96rem; }
.checklist { list-style: none; display: grid; gap: .45rem; font-size: .94rem; margin-top: .4rem; }
.checklist li { padding-left: 1.4rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .4rem; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.section--dark .checklist li { color: var(--on-night); }
@media (max-width: 560px) { .proc-card { grid-template-columns: 1fr; } .proc-card__media { aspect-ratio: 16/10; } }

/* Scan: Bildpaar */
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; }
.media-pair img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }

/* Werkstoff-Gruppen */
.mgroups { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.mgroup { background: var(--white); padding: 1.75rem 1.5rem 2rem; display: flex; flex-direction: column; gap: .9rem; }
.mgroup--hp { background: var(--night); color: var(--on-night); }
.mgroup__tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); }
.mgroup--hp .mgroup__tag { color: var(--red-on-dark); }
.mgroup h3 { font-size: 1.3rem; letter-spacing: -.015em; }
.mgroup p { margin: 0; font-size: .93rem; color: var(--muted); }
.mgroup--hp p { color: var(--on-night-muted); }
.mchips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.mchips li { font-family: var(--f-mono); font-size: .78rem; font-weight: 500; padding: .35rem .65rem; border-radius: 3px; background: var(--paper-2); }
.mgroup--hp .mchips li { background: var(--red); color: #fff; }
.mgroup dl { margin: auto 0 0; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .88rem; display: grid; gap: .3rem; }
.mgroup--hp dl { border-top-color: var(--night-line); }
.mgroup dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mgroup--hp dt { color: var(--on-night-muted); }
.mgroup dd { margin: 0 0 .4rem; }

.advice { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 900px) { .advice { grid-template-columns: 5fr 6fr; } }
.advice img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); }

/* Galerie V2 */
.gallery2 { display: grid; gap: .75rem; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 13vw, 200px); }
.gallery2 .gallery__item { grid-column: span 4; grid-row: span 2; }
.gallery2 .w6 { grid-column: span 6; } .gallery2 .w8 { grid-column: span 8; } .gallery2 .w3 { grid-column: span 3; }
.gallery2 .h3 { grid-row: span 3; }
@media (max-width: 760px) {
  .gallery2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery2 .gallery__item { grid-column: span 1 !important; grid-row: span 2 !important; }
  .gallery2 .wide-m { grid-column: span 2 !important; grid-row: span 2 !important; }
}

/* Kontakt-Abschnitt: Team */
.team--compact { grid-template-columns: 1fr 1fr; margin-top: 2rem; gap: 1rem; }
.team--compact .person { padding: 1rem 1.1rem; gap: .9rem; }
.team--compact .person__mono { width: 48px; height: 48px; font-size: 1rem; }
@media (max-width: 480px) { .team--compact { grid-template-columns: 1fr; } }

/* Nach-oben-Button */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.15);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 20px; height: 20px; }
.nav .btn.is-active { box-shadow: 0 0 0 3px rgba(218,41,28,.25); }
.hero .h-display { font-size: clamp(2.5rem, 1.3rem + 4.2vw, 5.1rem); }
.hero .hero__lead { margin-bottom: 2rem; }
.compstrip { margin-top: clamp(2.5rem, 5vw, 3.75rem); }
.hero__content { padding-top: calc(var(--header-h) + 3rem); }
.spectrum { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .spectrum { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .spectrum { grid-template-columns: 1fr; } }
#engineering .split { align-items: start; }
@media (max-width: 600px) {
  .h-1 { font-size: clamp(1.75rem, 1rem + 4.6vw, 2.2rem); }
  .h-1, .h-2 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
}

/* ==========================================================================
   V2.1 – SPOC-Fokus, Werkstoffe im 3D-Druck
   ========================================================================== */
.compstrip--5 { grid-template-columns: repeat(5, 1fr); counter-reset: none; }
.compstrip--5 li { position: relative; }
.compstrip--5 li:not(:last-child)::after { /* Pfeil zwischen den Stufen */
  content: ""; position: absolute; right: -6px; top: 1.65rem; width: 11px; height: 11px; z-index: 1;
  border-top: 1.5px solid var(--red-on-dark); border-right: 1.5px solid var(--red-on-dark); transform: rotate(45deg); background: transparent;
}
@media (max-width: 900px) {
  .compstrip--5 { grid-template-columns: 1fr 1fr; }
  .compstrip--5 li:nth-child(3) { border-left: 0; }
  .compstrip--5 li:nth-child(3) a { padding-left: 0; }
  .compstrip--5 li:nth-child(4) { border-left: 1px solid var(--night-line); }
  .compstrip--5 li:nth-child(4) a { padding-left: 1.5rem; }
  .compstrip--5 li:nth-child(5) { border-left: 0; }
  .compstrip--5 li:nth-child(5) a { padding-left: 0; }
  .compstrip--5 li::after { display: none; }
}

.process--spoc li:last-child .process__dot { background: var(--red); border-color: var(--red); color: #fff; }

.benefits { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.benefits li { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.benefits .mono { color: var(--red-text); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.benefits h3 { font-size: 1.15rem; margin: .6rem 0 .4rem; letter-spacing: -.01em; }
.benefits p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; } }

.matblock { display: grid; gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(3.5rem, 7vw, 5.5rem); align-items: start; }
@media (min-width: 960px) { .matblock { grid-template-columns: 5fr 6fr; } }
.matblock__img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); }
.mlist { margin: 0; border-top: 1px solid var(--line); }
.mlist > div { display: grid; grid-template-columns: 14rem 1fr; gap: .35rem 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.mlist dt { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; grid-row: span 2; padding-top: .2rem; }
.mlist dd { margin: 0; color: var(--muted); font-size: .94rem; }
.mlist__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.mlist__chips span { font-family: var(--f-mono); font-size: .78rem; font-weight: 500; padding: .3rem .6rem; border-radius: 3px; background: var(--paper-2); color: var(--ink); }
.mlist__hp dt { color: var(--red-text); }
.mlist__hp .mlist__chips span { background: var(--red); color: #fff; }
@media (max-width: 560px) { .mlist > div { grid-template-columns: 1fr; } .mlist dt { grid-row: auto; } }
.hero .hero__title { max-width: 19ch; font-size: clamp(2.3rem, 1.2rem + 3.7vw, 4.5rem); }
.compstrip--5 li:not(:last-child)::after { top: 2.75rem; }

/* V2.2 – Leistungsspektrum mit Stufen-Markierung */
.spectrum__stage { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); }
.spectrum li h3 { margin-top: -.15rem; }
/* Anwendungen: festes Raster 4 / 2 / 1, damit die 8 Kacheln immer aufgehen */
.apps { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .apps { grid-template-columns: 1fr; } }

/* ==========================================================================
   V2.3 – Hero passt sich dem Bildschirm an
   Höhe = sichtbarer Bildschirm, Leistungsverlauf unten bündig,
   Schriftgrössen skalieren mit Breite UND Höhe (das Kleinere gewinnt).
   ========================================================================== */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: stretch; }
.hero .hero__content {
  flex: 1; display: flex; flex-direction: column; width: min(100% - 2 * var(--gutter), var(--container));
  padding-top: calc(var(--header-h) + clamp(.75rem, 4vh, 3.5rem));
  padding-bottom: clamp(.75rem, 3vh, 2.25rem);
}
.hero__main { margin-block: auto; padding-bottom: clamp(.75rem, 3vh, 2rem); }
.hero .kicker { margin-bottom: clamp(.6rem, 2.2vh, 1.25rem); }
.hero .hero__title {
  font-size: clamp(1.85rem, min(5.3vw, 7.6vh), 4.6rem);
  max-width: 19ch; margin-bottom: clamp(.75rem, 2.6vh, 1.75rem);
}
.hero .hero__lead {
  font-size: clamp(.95rem, min(1.35vw, 2.3vh), 1.3rem); line-height: 1.55;
  margin-bottom: clamp(1rem, 3.6vh, 2.25rem);
}
.hero .btn { padding: clamp(.7rem, 1.6vh, .95rem) clamp(1.1rem, 1.6vw, 1.5rem); }
.hero .compstrip { margin-top: 0; }
.hero .compstrip a { padding-top: clamp(.7rem, 2.2vh, 1.4rem); padding-bottom: 0; }
.hero .compstrip strong { font-size: clamp(.95rem, min(1.6vw, 2.6vh), 1.3rem); margin: clamp(.2rem, .8vh, .5rem) 0 clamp(.1rem, .5vh, .35rem); }
.hero .compstrip span.t { font-size: clamp(.78rem, 1.7vh, .9rem); }
.compstrip--5 li:not(:last-child)::after { top: calc(clamp(.7rem, 2.2vh, 1.4rem) + 1.2rem); }
@media (max-height: 720px) { .hero .compstrip span.t { display: none; } .scroll-cue { display: none; } }
@media (max-height: 560px) and (min-width: 700px) { .hero .kicker { display: none; } }

/* Handy: Verlauf kompakt in 5 Spalten (nur Nummer + Stufe) */
@media (max-width: 900px) {
  .hero .compstrip--5 { grid-template-columns: repeat(5, 1fr); }
  .hero .compstrip--5 li, .hero .compstrip--5 li:nth-child(n) { border-left: 0; border-top: 0; }
  .hero .compstrip--5 li + li { border-left: 1px solid var(--night-line); }
  .hero .compstrip--5 li a, .hero .compstrip--5 li:nth-child(n) a { padding: .7rem .35rem 0; }
  .hero .compstrip--5 li:first-child a { padding-left: 0; }
  .hero .compstrip strong { font-size: clamp(.62rem, 2.6vw, .9rem); letter-spacing: 0; overflow-wrap: anywhere; hyphens: auto; }
  .hero .compstrip .mono { font-size: .62rem; }
  .hero .compstrip span.t { display: none; }
  .scroll-cue { display: none; }
}
html, body { overflow-x: clip; }
@media (max-width: 900px) { .hero .compstrip strong { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; } }

/* V2.4 – Auswahl-Chips: ganze Fläche klickbar mit Hand-Cursor */
.chips label { display: inline-block; cursor: pointer; }
.chips input { width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.chips span { cursor: pointer; user-select: none; }
.chips label:hover span { border-color: var(--ink); }
.consent, .consent input { cursor: pointer; }
