/* Vennekamp Zerspanungstechnik (Muster von Neonkontor)
   Handy zuerst. Raster: zwölf Spalten, Linien sind Zellränder. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("assets/fonts/martian-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-style: normal;
  font-display: swap;
}

:root {
  --graphit-900: oklch(0.165 0.008 255);
  --graphit-800: oklch(0.2 0.009 255);
  --graphit-700: oklch(0.245 0.011 255);
  --linie: oklch(0.33 0.012 255);
  --linie-stark: oklch(0.47 0.014 255);
  --stahl-dunkel: oklch(0.66 0.016 250);
  --stahl: oklch(0.76 0.016 250);
  --text: oklch(0.88 0.008 250);
  --hell: oklch(0.96 0.005 250);
  --gelb: oklch(0.83 0.17 88);
  --gelb-hell: oklch(0.89 0.16 93);

  --schrift-titel: "Barlow Condensed", "Arial Narrow", sans-serif;
  --schrift-text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --schrift-mass: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --rand: 10px;
  --zelle: 14px;
  --kopf-h: 58px;
  --kenn-h: 0px;
  --weich: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 700px) {
  :root { --rand: clamp(16px, 2.8vw, 40px); --zelle: clamp(16px, 1.6vw, 22px); --kopf-h: 64px; }
}
@media (min-width: 1100px) {
  :root { --kenn-h: 38px; }
}

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

html {
  background: var(--graphit-900);
  color-scheme: dark;
  scroll-padding-top: calc(var(--kopf-h) + var(--kenn-h) + 12px);
  scrollbar-color: var(--linie-stark) var(--graphit-900);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  padding-bottom: 68px;
  background: var(--graphit-900);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--schrift-text);
  caret-color: var(--gelb);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1100px) {
  body { padding-bottom: 0; }
}

::selection { background: var(--gelb); color: var(--graphit-900); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

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

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
}

.sprung {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gelb);
  color: var(--graphit-900);
  font-weight: 500;
}
.sprung:focus { top: 8px; }

/* Maße, Kennzahlen, Tabellenwerte */
.daten dd,
.angaben dd,
.kennleiste p,
.mono,
.zahl,
.mass__wert,
.werkstoffe li,
.branchen__los,
.stellen__ab,
.kontaktzeilen dd,
.unten p,
figcaption {
  font-family: var(--schrift-mass);
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* Kleine Beschriftungen in Engschrift */
.daten dt,
.angaben dt,
.kennleiste span,
.branchen__los span,
.kontaktzeilen dt,
.tabelle thead th,
.tabelle caption,
.tabelle td::before,
.fuss h2 {
  font: 500 0.8125rem/1.3 var(--schrift-titel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stahl);
}

/* ---------- Musterstreifen (gehört zu Neonkontor, nicht zum Betrieb) ---------- */

.muster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 20px;
  padding: 8px max(var(--rand), 14px);
  background: oklch(0.93 0.012 95);
  color: oklch(0.24 0.01 255);
  font: 400 0.8125rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.muster strong { font-weight: 650; }
.muster a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  font-weight: 600;
}
.muster a:focus-visible { outline-color: oklch(0.24 0.01 255); }
.muster__lang { display: none; }
@media (min-width: 520px) {
  .muster__lang { display: inline; }
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--graphit-900);
  border-bottom: 1px solid var(--linie);
}
.kopf__innen {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: min(100% - 2 * var(--rand), 1440px);
  height: var(--kopf-h);
  margin-inline: auto;
  border-inline: 1px solid var(--linie);
}

.marke {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: var(--zelle);
  text-decoration: none;
  color: var(--hell);
}
.marke__zeichen { width: 30px; height: 30px; fill: none; stroke: var(--hell); stroke-width: 2.4; }
.marke__strich { stroke: var(--gelb); }
.marke__name {
  font: 600 1.5rem/1 var(--schrift-titel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.marke__zusatz {
  display: none;
  padding-left: 12px;
  border-left: 1px solid var(--linie-stark);
  font: 500 0.8125rem/1.2 var(--schrift-titel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stahl);
}
@media (min-width: 1280px) {
  .marke__zusatz { display: block; }
}

.nav { display: none; }
.kopf .knopf--kopf { display: none; }

@media (min-width: 1100px) {
  .nav { display: flex; margin-left: auto; }
  .nav ul { display: flex; }
  .nav a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding-inline: clamp(10px, 1.1vw, 18px);
    font: 500 1.0625rem/1 var(--schrift-titel);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    transition: color 0.15s;
  }
  .nav a::after {
    content: "";
    position: absolute;
    left: clamp(10px, 1.1vw, 18px);
    right: clamp(10px, 1.1vw, 18px);
    bottom: -1px;
    height: 3px;
    background: var(--gelb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--weich);
  }
  .nav a:hover { color: var(--hell); }
  .nav a:hover::after,
  .nav a[aria-current]::after { transform: scaleX(1); }
  .nav a[aria-current] { color: var(--hell); }
  .kopf .knopf--kopf { display: inline-flex; margin-left: 10px; padding-inline: 22px; }
  .menue { display: none; }
}

.menue summary {
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: var(--zelle);
  border-left: 1px solid var(--linie);
  font: 600 1.0625rem/1 var(--schrift-titel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hell);
  cursor: pointer;
  list-style: none;
}
.menue summary::-webkit-details-marker { display: none; }
.menue summary:focus-visible { outline-offset: -4px; }
.menue__zu { display: none; }
.menue[open] .menue__auf { display: none; }
.menue[open] .menue__zu { display: inline; }
.menue nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--graphit-800);
  border-block: 1px solid var(--linie-stark);
}
.menue li + li { border-top: 1px solid var(--linie); }
.menue nav a {
  display: block;
  padding: 14px var(--zelle);
  font: 600 1.375rem/1.1 var(--schrift-titel);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hell);
}
.menue li:last-child a { color: var(--gelb); }

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 0;
  background: var(--gelb);
  color: var(--graphit-900);
  font: 600 1.125rem/1 var(--schrift-titel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}
.knopf:hover { background: var(--gelb-hell); }
.knopf:active { background: var(--gelb); }
.knopf:focus-visible { outline-color: var(--hell); }
.knopf .icon { font-size: 1.05em; stroke-width: 1.7; }

.pfeillink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--linie-stark);
  font: 600 1.0625rem/1.1 var(--schrift-titel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hell);
  transition: border-color 0.15s;
}
.pfeillink .icon { transition: transform 0.25s var(--weich); }
.pfeillink:hover { border-color: var(--gelb); }
.pfeillink:hover .icon { transform: translateX(4px); }

/* ---------- Blatt ---------- */

.blatt {
  width: min(100% - 2 * var(--rand), 1440px);
  margin-inline: auto;
  border-inline: 1px solid var(--linie);
}

figcaption {
  padding: 9px var(--zelle);
  border-top: 1px solid var(--linie);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--stahl);
}

/* ---------- Hero ---------- */

.hero { display: grid; grid-template-columns: minmax(0, 1fr); }

.hero h1 {
  padding: 22px var(--zelle) 18px;
  font: 600 clamp(2.9rem, 13.4vw, 5.6rem)/0.9 var(--schrift-titel);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--hell);
}
.hero__zeile2 { display: block; color: var(--stahl); }
.gelb { color: var(--gelb); }

.hero__bild { order: 1; border-block: 1px solid var(--linie); }
.hero__text { order: 2; }
.hero__daten { order: 3; }
.hero__bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 55% 50%; }

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px var(--zelle) 28px;
}
.hero__lead { max-width: 34em; font-size: 1.125rem; line-height: 1.55; color: var(--hell); }
.hero__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__frist { font-size: 0.9375rem; color: var(--stahl); }
/* Unter 1100 px steht derselbe Knopf dauerhaft in der Leiste unten. */
.hero .hero__knopf { display: none; }
@media (min-width: 1100px) {
  .hero .hero__knopf { display: inline-flex; }
}

.hero__daten { border-top: 1px solid var(--linie); }
.daten__titel {
  padding: 13px var(--zelle);
  border-bottom: 1px solid var(--linie-stark);
  font: 600 1.0625rem/1.2 var(--schrift-titel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hell);
}
.daten div {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 11px var(--zelle);
  border-bottom: 1px solid var(--linie);
}
.daten div:last-child { border-bottom: 0; }
.daten dd { font-size: 0.9375rem; line-height: 1.35; color: var(--hell); }

@media (min-width: 700px) and (max-width: 1099px) {
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1, .hero__bild { grid-column: 1 / -1; }
  .hero h1 { font-size: clamp(4rem, 9.8vw, 6.5rem); padding-block: 30px 24px; }
  .hero__bild img { aspect-ratio: 16 / 8; }
  .hero__daten { border-top: 0; border-left: 1px solid var(--linie); }
}

@media (min-width: 1100px) {
  .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto minmax(390px, 1fr);
    min-height: calc(100svh - var(--kopf-h) - 42px);
  }
  .hero h1 {
    grid-column: 1 / -1;
    padding: clamp(18px, 2.4vw, 34px) var(--zelle) clamp(14px, 1.8vw, 24px);
    border-bottom: 1px solid var(--linie);
    font-size: min(10.9vw, 9.81rem);
    line-height: 0.88;
  }
  .hero__text {
    grid-column: 1 / 4;
    grid-row: 2;
    justify-content: space-between;
    gap: 24px;
    padding: var(--zelle) var(--zelle) 20px;
  }
  .hero__lead { font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); }
  .hero__knoepfe { flex-direction: column; align-items: flex-start; margin-top: auto; }
  .hero__bild {
    grid-column: 4 / 10;
    grid-row: 2;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    border-block: 0;
    border-inline: 1px solid var(--linie);
  }
  .hero__bild picture { position: relative; min-height: 0; }
  .hero__bild img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .hero__daten {
    grid-column: 10 / -1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    border-top: 0;
  }
  .daten { flex: 1; display: grid; grid-auto-rows: minmax(0, 1fr); }
  .daten div {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 3px;
    padding-block: 6px;
  }
  .daten dd { font-size: clamp(0.875rem, 1.06vw, 1rem); }
}

/* ---------- Kennleiste ---------- */

.kennleiste { display: none; }
@media (min-width: 1100px) {
  .kennleiste {
    position: sticky;
    top: var(--kopf-h);
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: var(--kenn-h);
    background: var(--graphit-800);
    border-block: 1px solid var(--linie);
  }
  .kennleiste p {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-inline: var(--zelle);
    font-size: 0.78rem;
    color: var(--hell);
    white-space: nowrap;
    overflow: hidden;
  }
  .kennleiste p + p { border-left: 1px solid var(--linie); }
}

/* ---------- Abschnitte ---------- */

.abschnitt { border-top: 1px solid var(--linie); }
.kennleiste + .abschnitt { border-top: 0; }
.abschnitt--flaeche { background: var(--graphit-800); }

.abschnitt h2 {
  font: 600 clamp(2.75rem, 5.6vw, 5rem)/0.92 var(--schrift-titel);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--hell);
}
.abschnitt h3 {
  font: 600 1.625rem/1 var(--schrift-titel);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--hell);
}

.abschnitt__kopf {
  display: grid;
  gap: 18px;
  padding: clamp(56px, 9vw, 72px) var(--zelle) 28px;
}
.abschnitt__kopf p { max-width: 36em; }

@media (min-width: 900px) {
  .abschnitt__kopf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 0;
  }
  .abschnitt__kopf > * { padding: clamp(72px, 8vw, 120px) var(--zelle) 34px; }
  .abschnitt__kopf > p,
  .abschnitt__kopf > figure {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    border-left: 1px solid var(--linie);
  }
  .abschnitt__kopf > div > p { margin-top: 22px; }
  .abschnitt__kopf--bild > figure {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
  }
  .abschnitt__kopf--bild > figure img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
}
.abschnitt__kopf--bild > div > p { margin-top: 18px; max-width: 36em; }
.abschnitt__kopf--bild > figure { margin-inline: calc(-1 * var(--zelle)); border-top: 1px solid var(--linie); }
@media (min-width: 900px) {
  .abschnitt__kopf--bild > figure { margin-inline: 0; border-top: 0; }
}

/* ---------- Fertigung ---------- */

.verfahren__zeile {
  display: grid;
  gap: 14px;
  padding: 26px var(--zelle) 30px;
  border-top: 1px solid var(--linie);
}
.verfahren__zeile h3 { font-size: clamp(1.875rem, 2.9vw, 2.5rem); line-height: 0.96; hyphens: manual; }
.verfahren__zeile p { max-width: 34em; }

.angaben { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.angaben div { display: grid; gap: 3px; align-content: start; }
.angaben dd { font-size: 0.875rem; line-height: 1.45; color: var(--hell); }

.angaben--liste { grid-template-columns: minmax(0, 1fr); gap: 0; }
.angaben--liste div {
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 16px;
  padding: 11px 0;
  border-top: 1px solid var(--linie);
}
.angaben--liste div:last-child { border-bottom: 1px solid var(--linie); }
@media (max-width: 460px) {
  .angaben--liste div { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1100px) {
  .verfahren__zeile {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0;
    padding: 0;
  }
  .verfahren__zeile > * { padding: 30px var(--zelle) 36px; }
  .verfahren__zeile h3 { grid-column: 1 / 4; }
  .verfahren__zeile p { grid-column: 4 / 7; border-left: 1px solid var(--linie); }
  .verfahren__zeile .angaben { grid-column: 7 / -1; border-left: 1px solid var(--linie); gap: 22px var(--zelle); }
}

.werkstoffe { display: grid; border-top: 1px solid var(--linie-stark); }
.werkstoffe > h3 { padding: 26px var(--zelle) 18px; }
.werkstoffe__spalte { padding: 18px var(--zelle) 22px; border-top: 1px solid var(--linie); }
.werkstoffe h4 {
  margin-bottom: 10px;
  font: 500 0.8125rem/1.3 var(--schrift-titel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stahl);
}
.werkstoffe ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.werkstoffe li { font-size: 0.9375rem; line-height: 1.7; color: var(--hell); }
.werkstoffe__hinweis { padding: 18px var(--zelle) 26px; border-top: 1px solid var(--linie); font-size: 0.9375rem; color: var(--stahl); }

@media (min-width: 900px) {
  .werkstoffe { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .werkstoffe > h3 { grid-row: 1 / 3; padding-block: 30px; }
  .werkstoffe__spalte { border-top: 0; border-left: 1px solid var(--linie); padding-block: 30px 26px; }
  .werkstoffe ul { display: block; }
  .werkstoffe li { font-size: 1rem; line-height: 1.9; }
  .werkstoffe__hinweis { grid-column: 2 / -1; border-left: 1px solid var(--linie); }
}

/* ---------- Bildbänder ---------- */

.band { border-top: 1px solid var(--linie); }
.band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.band--schmal img { aspect-ratio: 5 / 2; }
@media (min-width: 700px) {
  .band img { aspect-ratio: 21 / 9; }
  .band--schmal img { aspect-ratio: 5 / 1; }
}

/* ---------- Maschinenpark ---------- */

.tabelle {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--linie-stark);
  text-align: left;
}
.tabelle caption {
  padding: 14px var(--zelle);
  border-top: 1px solid var(--linie);
  text-align: left;
}
.tabelle th, .tabelle td { padding: 15px var(--zelle); vertical-align: baseline; }
.tabelle thead th { padding-block: 11px; background: var(--graphit-700); font-weight: 500; }
.tabelle tbody tr { border-top: 1px solid var(--linie); }
.tabelle tbody th[scope="row"] { font-weight: 500; line-height: 1.35; color: var(--hell); }
.tabelle td { color: var(--text); line-height: 1.4; }
.tabelle .mono { font-size: 0.875rem; color: var(--hell); }
.tabelle .zahl { font-size: 0.875rem; text-align: right; white-space: nowrap; }
.tabelle__gruppe th {
  padding-block: 28px 10px;
  font: 600 1.375rem/1 var(--schrift-titel);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hell);
}
.tabelle tbody tr.tabelle__gruppe { border-top: 1px solid var(--linie-stark); }
.tabelle tbody:first-of-type tr.tabelle__gruppe { border-top: 0; }

@media (min-width: 860px) {
  .tabelle tbody tr:not(.tabelle__gruppe):hover { background: var(--graphit-700); }
  .tabelle tbody th[scope="row"] { width: 27%; }
}

/* Am Handy wird jede Maschine zu einem Zeilenblock. */
@media (max-width: 859px) {
  .tabelle, .tabelle caption, .tabelle tbody, .tabelle tr, .tabelle th, .tabelle td { display: block; }
  .tabelle thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .tabelle th, .tabelle td { padding: 0; }
  .tabelle tbody tr:not(.tabelle__gruppe) { padding: 16px var(--zelle) 18px; }
  .tabelle tbody th[scope="row"] { margin-bottom: 10px; font-size: 1.0625rem; }
  .tabelle td {
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding-block: 3px;
  }
  .tabelle td::before { content: attr(data-label); }
  .tabelle .zahl { text-align: left; }
  .tabelle__gruppe th { padding: 26px var(--zelle) 12px; }
}

/* ---------- Messraum: Zeichnung mit Maßlinien ---------- */

.mass { border-top: 1px solid var(--linie); }

.mass__bild {
  position: sticky;
  top: var(--kopf-h);
  z-index: 5;
  background: var(--graphit-900);
  border-bottom: 1px solid var(--linie-stark);
}
.mass__bild svg { width: 100%; height: auto; padding: 14px 4px 6px; }

.z-mitte { fill: none; stroke: var(--stahl-dunkel); stroke-width: 1; stroke-dasharray: 22 5 3 5; }
.z-kontur path { fill: none; stroke: var(--hell); stroke-width: 1.7; stroke-linejoin: miter; }
.z-kontur path + path { stroke-width: 1.1; }
.z-mass path { fill: none; stroke: var(--gelb); stroke-width: 1.15; }
.z-mass .z-pfeil { fill: var(--gelb); stroke: none; }
.z-mass text {
  fill: var(--gelb);
  font: 500 21px var(--schrift-mass);
  font-stretch: 75%;
}
/* Am Handy ist die Zeichnung halb so groß: Linien dicker, Schrift bleibt lesbar. */
@media (max-width: 699px) {
  .z-mitte { stroke-width: 1.8; }
  .z-kontur path { stroke-width: 3; }
  .z-kontur path + path { stroke-width: 2; }
  .z-mass path { stroke-width: 2.2; }
}
@media (min-width: 700px) {
  .z-mass text { font-size: 14px; }
}

/* Ohne JavaScript und bei reduzierter Bewegung steht alles fertig da (--d fehlt, also 1). */
.mass.laeuft .z-mass path[pathLength] {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--d, 1));
}
.mass.laeuft .z-mass text,
.mass.laeuft .z-mass .z-pfeil { opacity: var(--t, 1); }

.mass__zeilen li { padding: 26px var(--zelle) 30px; border-top: 1px solid var(--linie); }
.mass__zeilen li:first-child { border-top: 0; }
.mass__zeilen h3 { display: flex; align-items: center; gap: 12px; }
.mass__zeilen h3::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--gelb);
  transform: scaleX(var(--d, 1));
  transform-origin: left;
}
.mass__wert {
  margin: 14px 0 10px;
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  line-height: 1.45;
  color: var(--hell);
}
.mass__wert span { font-size: 0.72em; color: var(--stahl); white-space: nowrap; }
.mass__zeilen p:last-child { max-width: 30em; }

@media (min-width: 900px) {
  .mass { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .mass__bild {
    grid-column: 1 / 8;
    align-self: start;
    top: calc(var(--kopf-h) + var(--kenn-h) + max(0px, (100vh - var(--kopf-h) - var(--kenn-h) - 430px) / 2));
    border-bottom: 0;
  }
  .mass__bild svg { padding: clamp(20px, 3vw, 44px) var(--zelle) 18px; }
  .mass__zeilen { grid-column: 8 / -1; border-left: 1px solid var(--linie); }
  .mass__zeilen li { min-height: 38vh; padding-block: 40px; }
  .mass__zeilen li:last-child { min-height: 0; padding-bottom: 56px; }
}

.pruefen { display: grid; border-top: 1px solid var(--linie-stark); }
.pruefen__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
.pruefen__mittel, .pruefen__papier { padding: 28px var(--zelle) 34px; border-top: 1px solid var(--linie); }
.pruefen h3 { margin-bottom: 18px; }
.pruefen__papier p { margin-top: 18px; font-size: 0.9375rem; color: var(--stahl); }

.strichliste li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--linie); }
.strichliste li:last-child { border-bottom: 1px solid var(--linie); }
.strichliste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3em;
  width: 14px;
  height: 2px;
  background: var(--gelb);
}

@media (min-width: 700px) and (max-width: 1099px) {
  .pruefen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pruefen__bild { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .pruefen__bild img { height: 100%; aspect-ratio: auto; }
  .pruefen__bild { grid-row: 1; grid-column: 1; }
  .pruefen__papier { grid-row: 1; grid-column: 2; border-top: 0; border-left: 1px solid var(--linie); }
  .pruefen__mittel { grid-row: 2; grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .pruefen { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pruefen__bild { grid-column: 1 / 4; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .pruefen__bild img { height: 100%; min-height: 300px; aspect-ratio: auto; }
  .pruefen__mittel { grid-column: 4 / 10; border-top: 0; border-left: 1px solid var(--linie); }
  .pruefen__papier { grid-column: 10 / -1; border-top: 0; border-left: 1px solid var(--linie); }
}

/* ---------- Branchen ---------- */

.branchen { display: grid; border-top: 1px solid var(--linie); }
.branchen__bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.branchen__liste article { display: grid; gap: 12px; padding: 26px var(--zelle) 28px; border-top: 1px solid var(--linie); }
.branchen__liste h3 { font-size: clamp(1.875rem, 2.9vw, 2.5rem); }
.branchen__liste p { max-width: 34em; }
.branchen__los { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 0.875rem; color: var(--hell); }

@media (min-width: 900px) {
  .branchen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branchen__bild { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .branchen__bild img { height: 100%; aspect-ratio: auto; }
  .branchen__liste { border-left: 1px solid var(--linie); }
  .branchen__liste article { padding-block: 34px 36px; }
  .branchen__liste article:first-child { border-top: 0; }
}

/* ---------- Ablauf ---------- */

.ablauf { display: grid; border-top: 1px solid var(--linie); }
.ablauf li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 6px 16px;
  padding: 22px var(--zelle) 24px;
}
.ablauf li + li { border-top: 1px solid var(--linie); }
.ablauf__nr {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gelb);
  border-radius: 50%;
  font: 500 0.9375rem/1 var(--schrift-mass);
  font-stretch: 75%;
  color: var(--gelb);
}
.ablauf h3 { align-self: center; }
.ablauf p { grid-column: 2; font-size: 0.9875rem; }

@media (min-width: 1000px) {
  .ablauf { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ablauf li {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 0;
    padding: 30px var(--zelle) 44px;
  }
  .ablauf li + li { border-top: 0; border-left: 1px solid var(--linie); }
  .ablauf__nr { grid-row: auto; margin-bottom: 26px; background: var(--graphit-900); position: relative; z-index: 1; }
  /* Maßlinie von Position zu Position */
  .ablauf li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(var(--zelle) + 40px);
    right: calc(-1 * var(--zelle));
    top: 50px;
    height: 1px;
    background: var(--linie-stark);
  }
  .ablauf h3 { margin-bottom: 10px; }
  .ablauf p { grid-column: auto; }
}

/* ---------- Ausbildung und Stellen ---------- */

.arbeiten { display: grid; border-top: 1px solid var(--linie); }
.arbeiten__bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.arbeiten__text { padding: 28px var(--zelle) 34px; border-top: 1px solid var(--linie); }
.arbeiten__text h3 { margin-bottom: 18px; }

@media (min-width: 900px) {
  .arbeiten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arbeiten__bild { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .arbeiten__bild img { height: 100%; aspect-ratio: auto; }
  .arbeiten__text { border-top: 0; border-left: 1px solid var(--linie); padding-block: 34px 40px; }
}

.stellen { border-top: 1px solid var(--linie-stark); }
.stellen > h3 { padding: 30px var(--zelle) 16px; }
.stellen__liste li { border-top: 1px solid var(--linie); }
.stellen__liste a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px var(--zelle) 18px;
  text-decoration: none;
  transition: background-color 0.15s;
}
.stellen__titel {
  grid-column: 1;
  font: 600 1.5rem/1.05 var(--schrift-titel);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hell);
}
.stellen__wo, .stellen__schicht, .stellen__ab { grid-column: 1; font-size: 0.9375rem; line-height: 1.35; color: var(--stahl); }
.stellen__ab { font-size: 0.8125rem; color: var(--hell); }
.stellen__liste .icon {
  grid-column: 2;
  grid-row: 1 / 5;
  font-size: 1.25rem;
  color: var(--gelb);
  transition: transform 0.25s var(--weich);
}
.stellen__liste a:hover { background: var(--graphit-700); }
.stellen__liste a:hover .icon { transform: translateX(4px); }
.stellen__liste a:focus-visible { outline-offset: -3px; }

@media (min-width: 900px) {
  .stellen__liste a {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--zelle);
    padding-block: 20px;
  }
  .stellen__titel { grid-column: 1 / 7; font-size: 1.75rem; }
  .stellen__wo { grid-column: 7 / 9; padding-left: 0; }
  .stellen__schicht { grid-column: 9 / 11; }
  .stellen__ab { grid-column: 11 / 12; white-space: nowrap; }
  .stellen__liste .icon { grid-column: 12; grid-row: 1; justify-self: end; }
  .stellen__wo, .stellen__schicht { font-size: 1rem; }
}

.azubi { display: grid; border-top: 1px solid var(--linie-stark); }
.azubi > div { padding: 30px var(--zelle) 40px; }
.azubi > div + div { border-top: 1px solid var(--linie); }
.azubi h3 { margin-bottom: 14px; }
.azubi p { max-width: 36em; }
.azubi .kontaktzeilen { margin-top: 18px; }
@media (min-width: 900px) {
  .azubi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .azubi > div { padding-block: 40px 56px; }
  .azubi > div + div { border-top: 0; border-left: 1px solid var(--linie); }
}

.kontaktzeilen div {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--linie);
}
.kontaktzeilen div:last-child { border-bottom: 1px solid var(--linie); }
.kontaktzeilen dd { font-size: 0.875rem; line-height: 1.5; color: var(--hell); overflow-wrap: anywhere; }

/* ---------- Anfrage ---------- */

.anfrage { display: grid; border-top: 1px solid var(--linie); }

.formular {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 28px var(--zelle) 40px;
}
@media (min-width: 560px) {
  .formular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feld--breit { grid-column: 1 / -1; }
}

.feld { display: grid; gap: 7px; align-content: start; }
.feld label { font-weight: 500; font-size: 1rem; line-height: 1.3; color: var(--hell); }
.feld__zusatz { margin-left: 6px; font-weight: 400; font-size: 0.875rem; color: var(--stahl); }

.feld input:not([type="file"]),
.feld textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--linie-stark);
  border-radius: 0;
  background: var(--graphit-800);
  color: var(--hell);
  font: 400 1rem/1.4 var(--schrift-text);
  transition: border-color 0.15s;
}
.feld textarea { resize: vertical; }
.feld input::placeholder { color: var(--stahl-dunkel); opacity: 1; }
.feld input:not([type="file"]):hover,
.feld textarea:hover { border-color: var(--stahl); }
.feld input:not([type="file"]):focus-visible,
.feld textarea:focus-visible { outline-offset: 1px; border-color: var(--gelb); }
.feld input[aria-invalid="true"] { border-color: var(--gelb); box-shadow: inset 0 -2px 0 var(--gelb); }
.feld__fehler { font-size: 0.9375rem; line-height: 1.4; color: var(--gelb); }
.feld__fehler[hidden] { display: none; }

.ablage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 40px 16px;
  border: 1px dashed var(--stahl-dunkel);
  background: var(--graphit-800);
  text-align: center;
  color: var(--stahl);
  transition: border-color 0.15s, background-color 0.15s;
}
.ablage input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ablage .icon { font-size: 1.6rem; color: var(--gelb); }
.ablage strong { font-weight: 500; color: var(--hell); }
.ablage:hover, .ablage.ist-ziel { border-color: var(--gelb); background: var(--graphit-700); }
.ablage:focus-within { outline: 2px solid var(--gelb); outline-offset: 3px; }

.ablage__liste:empty { display: none; }
.ablage__liste li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 6px 0 6px 2px;
  border-bottom: 1px solid var(--linie);
  font: 400 0.8125rem/1.4 var(--schrift-mass);
  font-stretch: 75%;
  color: var(--hell);
}
.ablage__liste span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ablage__liste span + span { color: var(--stahl); white-space: nowrap; }
.ablage__liste .zu-gross { color: var(--gelb); }
.ablage__liste button {
  min-width: 44px;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--linie-stark);
  background: none;
  color: var(--hell);
  font: 500 0.875rem/1 var(--schrift-titel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.ablage__liste button:hover { border-color: var(--gelb); color: var(--gelb); }

.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.formular__fuss p { font-size: 0.9375rem; color: var(--stahl); }
.formular__meldung {
  padding: 16px 18px;
  border: 1px solid var(--gelb);
  background: var(--graphit-800);
  color: var(--hell);
}
.formular__meldung[hidden] { display: none; }

.kontakt { border-top: 1px solid var(--linie); }
.kontakt figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.kontakt__block { padding: 26px var(--zelle) 30px; border-top: 1px solid var(--linie); }
.kontakt__block h3 { margin-bottom: 14px; }
.kontakt__block p { max-width: 34em; }
.kontakt__block p + dl, .kontakt__block address + p { margin-top: 14px; }
.kontakt__block address { color: var(--hell); }
.kontakt .kontaktzeilen div { grid-template-columns: minmax(0, 1fr); gap: 2px; }

@media (min-width: 1000px) {
  .anfrage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formular { padding: 34px calc(var(--zelle) + 6px) 56px var(--zelle); align-content: start; }
  .kontakt {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    border-top: 0;
    border-left: 1px solid var(--linie);
  }
  .kontakt figure, .kontakt__block:last-child { grid-column: 1 / -1; }
  .kontakt__block + .kontakt__block:not(:last-child) { border-left: 1px solid var(--linie); }
}

/* ---------- Fuß ---------- */

.fuss {
  display: grid;
  border-top: 1px solid var(--linie-stark);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.fuss > div { padding: 26px var(--zelle); }
.fuss > div + div { border-top: 1px solid var(--linie); }
.fuss h2 { margin-bottom: 10px; }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; color: var(--hell); }
.fuss li a { display: inline-block; padding: 3px 0; }
.marke--fuss { padding: 0; margin-bottom: 12px; }
.fuss__marke p + p { color: var(--stahl); }
.fuss__muster {
  padding: 20px var(--zelle) 26px;
  border-top: 1px solid var(--linie);
  font-size: 0.875rem;
  color: var(--stahl);
}
.fuss__muster a { color: var(--gelb); text-decoration: underline; white-space: nowrap; }

@media (min-width: 800px) {
  .fuss { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fuss > div { padding-block: 36px 40px; }
  .fuss > div + div { border-top: 0; border-left: 1px solid var(--linie); }
  .fuss__muster { grid-column: 1 / -1; }
}

/* ---------- Leiste unten (Handy und Tablet) ---------- */

.unten {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px max(var(--rand), 10px) calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--graphit-800);
  border-top: 1px solid var(--linie-stark);
  transition: transform 0.3s var(--weich);
}
.unten p { font-size: 0.6875rem; line-height: 1.5; color: var(--hell); white-space: nowrap; }
.unten span {
  display: inline-block;
  width: 3.1rem;
  font: 500 0.6875rem/1 var(--schrift-titel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stahl);
}
.unten .knopf { padding-inline: 18px; white-space: nowrap; }
.unten.ist-weg { transform: translateY(101%); }
@media (min-width: 1100px) {
  .unten { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
