/* bornatowicz.at – „Werkzeichnung“
   Zeichenpapier, Tusche, Prüfer-Rot. Zwei Strichstärken wie auf der Zeichnung. */

/* ---------- Schriften (selbst gehostet) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Grundwerte ---------- */
:root {
  --papier: #f2efe6;
  --unterlage: #e3dfd2;
  --tusche: #17181a;
  --grau: #54555a;
  --rot: #b3301c;
  --blech: #d5d3cb;

  --duenn: 1px;
  --breit: 2px;

  --f-kopf: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, "Courier New", monospace;

  --rand: clamp(1.1rem, 4vw, 3rem);
  --blattbreite: 76rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--unterlage);
  color: var(--tusche);
  font-family: var(--f-text);
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--f-kopf);
  font-stretch: 78%;
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; font-stretch: 85%; line-height: 1.15; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: var(--duenn); text-underline-offset: 0.2em; }
a:hover { color: var(--rot); }

:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
main:focus { outline: none; }

ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
dl, dd { margin: 0; }
address { font-style: normal; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 10;
  background: var(--tusche); color: var(--papier);
  padding: 0.6rem 1rem; font-family: var(--f-mono); font-size: 0.85rem;
}
.skip:focus { top: 0.5rem; color: var(--papier); }

/* Beschriftungen in Mono */
.label, .kennung, dt, .stueckliste thead th, .zonen {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kennung { margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6rem; }
.kennung::before { content: ""; width: 0.6rem; height: 0.6rem; background: var(--rot); flex: none; }
.kennung a { text-decoration: none; border-bottom: var(--duenn) solid; }

.lead { font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.5; max-width: 40em; }

/* ---------- Kopf ---------- */
.kopf__innen {
  max-width: var(--blattbreite);
  margin: 0 auto;
  padding: 1rem var(--rand);
  display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap;
}
.marke { text-decoration: none; display: grid; grid-template-columns: auto 1fr; column-gap: 0.7rem; align-items: center; line-height: 1; margin-right: auto; }
.marke__zeichen { grid-row: span 2; width: 2.5rem; height: 2.5rem; }
.marke:hover { color: inherit; }
.marke__name { font-family: var(--f-kopf); font-stretch: 70%; font-weight: 750; font-size: 1.9rem; letter-spacing: -0.01em; }
.marke__zusatz { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; color: var(--grau); }

.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.nav a, .kopf__tel {
  font-family: var(--f-kopf); font-stretch: 85%; font-weight: 600; font-size: 1.05rem;
  text-decoration: none; padding: 0.5rem 0; display: inline-block;
  border-bottom: var(--breit) solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rot); color: var(--tusche); }
.kopf__tel { border: var(--breit) solid var(--tusche); padding: 0.45rem 0.8rem; white-space: nowrap; }
.kopf__tel:hover { background: var(--tusche); color: var(--papier); }
.kopf__tel .label { margin-right: 0.3rem; }

/* Handy: Telefon steckt in der Leiste unten, Navigation in einer Zeile */
@media (max-width: 47.99rem) {
  .kopf__tel { display: none; }
  .kopf__innen { padding-bottom: 0.4rem; gap: 0.5rem; }
  .nav { width: 100%; }
  .nav ul { justify-content: space-between; gap: 0 0.5rem; }
  .nav a { font-size: 0.95rem; padding: 0.7rem 0; }
}

/* ---------- Das Blatt ---------- */
.blatt {
  max-width: var(--blattbreite);
  margin: 0 auto;
  background: var(--papier);
  border: var(--breit) solid var(--tusche);
}
.zonen {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-bottom: var(--duenn) solid var(--tusche);
  color: var(--grau);
}
.zonen span { text-align: center; padding: 0.15rem 0; border-right: var(--duenn) solid var(--tusche); }
.zonen span:last-child { border-right: 0; }

/* ---------- Startseite: Kopfbereich ---------- */
.held {
  display: grid; gap: 2.5rem var(--rand);
  padding: clamp(2rem, 6vw, 4.5rem) var(--rand);
  align-items: start;
}
.held__text .lead { margin-top: 1.5rem; }
.kontaktzeile { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; align-items: stretch; }
.hinweis { margin-top: 1rem; font-size: 0.98rem; color: var(--grau); max-width: 36em; }

.knopf {
  display: inline-grid; gap: 0.15rem;
  border: var(--breit) solid var(--tusche);
  padding: 0.7rem 1.1rem 0.75rem;
  font-family: var(--f-kopf); font-stretch: 88%; font-weight: 650; font-size: 1.2rem; line-height: 1.2;
  text-decoration: none; overflow-wrap: anywhere;
}
.knopf--voll { background: var(--tusche); color: var(--papier); }
.knopf:hover { background: var(--rot); border-color: var(--rot); color: #fff; }

.kopieren {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: none; color: inherit; border: var(--duenn) dashed currentColor;
  padding: 0.5rem 0.7rem; cursor: pointer; align-self: center;
}
.kopieren:hover { border-style: solid; }
.kopieren[data-ok] { border-style: solid; border-color: var(--rot); color: var(--rot); }
.kontaktplatte .kopieren[data-ok] { border-color: #fff; color: #fff; }

/* ---------- Typenschild ---------- */
.typenschild {
  margin: 0;
  background-color: var(--blech);
  /* vier Nieten in den Ecken */
  background-image:
    radial-gradient(circle at 0.95rem 0.95rem, var(--tusche) 0 0.2rem, transparent 0.24rem),
    radial-gradient(circle at calc(100% - 0.95rem) 0.95rem, var(--tusche) 0 0.2rem, transparent 0.24rem),
    radial-gradient(circle at 0.95rem calc(100% - 0.95rem), var(--tusche) 0 0.2rem, transparent 0.24rem),
    radial-gradient(circle at calc(100% - 0.95rem) calc(100% - 0.95rem), var(--tusche) 0 0.2rem, transparent 0.24rem);
  border: var(--breit) solid var(--tusche);
  border-radius: 0.5rem;
  padding: 1.6rem 2rem 1.5rem;
}
.typenschild__kopf {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.6rem;
  border-bottom: var(--breit) solid var(--tusche);
  padding-bottom: 0.7rem; margin-bottom: 0.9rem;
}
.typenschild__marke { font-family: var(--f-kopf); font-stretch: 66%; font-weight: 800; font-size: 2.2rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.typenschild__typ { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.typenschild__daten { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.typenschild__daten > div { grid-column: span 2; }
.typenschild__daten > div:nth-child(2), .typenschild__daten > div:nth-child(3) { grid-column: span 1; }
.typenschild dt { font-size: 0.62rem; margin-bottom: 0.15rem; }
.typenschild dd {
  background: var(--papier);
  border: var(--duenn) solid var(--tusche);
  padding: 0.35rem 0.6rem;
  font-family: var(--f-kopf); font-stretch: 86%; font-weight: 600; font-size: 1.02rem; line-height: 1.3;
}
.typenschild__fuss { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0.9rem 0 0; text-align: center; }

/* ---------- Maßlinie 1997 → heute ---------- */
.masslinie {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 1.6rem var(--rand) 1.4rem;
  border-top: var(--duenn) solid var(--tusche);
  font-family: var(--f-mono); font-size: 0.85rem; font-weight: 500;
}
.masslinie__ende { position: relative; padding: 0.6rem 0; }
.masslinie__strecke {
  flex: 1; position: relative; height: 2.6rem;
  border-left: var(--duenn) solid var(--tusche); border-right: var(--duenn) solid var(--tusche);
  display: grid; place-items: center;
}
.masslinie__strecke::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: var(--duenn) solid var(--tusche);
}
/* Maßpfeile */
.masslinie__strecke::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 0.25rem); height: 0.5rem;
  background:
    linear-gradient(to bottom right, transparent 49%, var(--tusche) 50%) left top / 0.8rem 50% no-repeat,
    linear-gradient(to top right, transparent 49%, var(--tusche) 50%) left bottom / 0.8rem 50% no-repeat,
    linear-gradient(to bottom left, transparent 49%, var(--tusche) 50%) right top / 0.8rem 50% no-repeat,
    linear-gradient(to top left, transparent 49%, var(--tusche) 50%) right bottom / 0.8rem 50% no-repeat;
}
.masslinie__wert { position: relative; z-index: 1; background: var(--papier); padding: 0 0.7rem; text-align: center; }

/* ---------- Abschnitte ---------- */
.abschnitt {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--rand);
  border-top: var(--duenn) solid var(--tusche);
}
.abschnitt__kopf { margin-bottom: 2rem; max-width: 46rem; }
.abschnitt__kopf h2 + p { margin-top: 1rem; }
.fliesstext { max-width: 40rem; }
.weiter { margin-top: 1.5rem; }
.weiter a { font-family: var(--f-kopf); font-stretch: 85%; font-weight: 650; font-size: 1.1rem; text-decoration: none; border-bottom: var(--breit) solid var(--rot); padding-bottom: 0.1rem; }
.weiter a::after { content: " \2192"; font-family: Arial, sans-serif; }

.seitenkopf { padding: clamp(2.5rem, 7vw, 5rem) var(--rand) clamp(2rem, 5vw, 3.5rem); }
.seitenkopf h1 { max-width: 14em; }
.seitenkopf .lead { margin-top: 1.5rem; }
.entwurf { color: var(--rot); font-family: var(--f-mono); font-size: 0.9rem; }

/* ---------- Signalweg ---------- */
.signalweg { list-style: none; display: flex; flex-direction: column; margin-top: 2.5rem; max-width: 36rem; }
.station {
  position: relative;
  border: var(--breit) solid var(--tusche);
  padding: 1.2rem 3.6rem 1.2rem 1.1rem;
  background: var(--papier);
}
.station p { font-size: 0.98rem; line-height: 1.4; color: var(--grau); margin-top: 0.35rem; }

.leitung {
  position: relative; height: 3.4rem; margin-left: 2rem;
  display: flex; align-items: center; padding-left: 1.1rem;
  /* laufender Strich zeigt die Richtung der Daten */
  background: linear-gradient(to bottom, var(--tusche) 0 6px, transparent 6px) left top / 2px 12px repeat-y;
  animation: fluss-v 0.9s linear infinite;
}
.leitung span { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.3; }
@keyframes fluss-v { to { background-position: 0 12px; } }
@keyframes fluss-h { to { background-position: 12px 50%; } }

.ballon {
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  border: var(--breit) solid var(--tusche); background: var(--papier); color: var(--tusche);
  font-family: var(--f-mono); font-weight: 500; font-size: 0.95rem; text-decoration: none; line-height: 1;
}
.station .ballon { position: absolute; top: -1.15rem; right: 0.9rem; }
a.ballon:hover, a.ballon:focus-visible { background: var(--rot); border-color: var(--rot); color: #fff; }
.ballon--klein { width: 1.9rem; height: 1.9rem; font-size: 0.8rem; border-width: var(--duenn); }

/* ---------- Stückliste ---------- */
.stueckliste { width: 100%; border-collapse: collapse; border: var(--breit) solid var(--tusche); }
.stueckliste thead { display: none; }
.stueckliste tbody tr { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.1rem 0.6rem; padding: 0.8rem 0.9rem; border-top: var(--duenn) solid var(--tusche); scroll-margin-top: 5rem; }
.stueckliste tbody tr:first-child { border-top: 0; }
.stueckliste td, .stueckliste th { padding: 0; text-align: left; vertical-align: middle; }
.stueckliste tbody th[scope="row"] { font-family: var(--f-kopf); font-stretch: 86%; font-weight: 650; font-size: 1.15rem; line-height: 1.25; align-self: center; }
.stueckliste td:first-child { grid-row: span 2; }
.stueckliste td:last-child { grid-column: 2; font-family: var(--f-mono); font-size: 0.78rem; color: var(--grau); }
.stueckliste .gruppe { display: block; background: var(--tusche); color: var(--papier); padding: 0.55rem 0.9rem; }
.stueckliste .gruppe th { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

/* Angesprungene Position hervorheben */
.stueckliste tr:target, .positionen li:target { background: var(--blech); box-shadow: inset 0.35rem 0 0 var(--rot); }
.stueckliste tr:target .ballon, .positionen li:target .ballon { background: var(--rot); border-color: var(--rot); color: #fff; }

/* ---------- Referenzen ---------- */
.referenzen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); border-top: var(--breit) solid var(--tusche); border-left: var(--duenn) solid var(--tusche); }
.referenzen li { border-right: var(--duenn) solid var(--tusche); border-bottom: var(--duenn) solid var(--tusche); padding: 1.1rem 1rem 1.2rem; display: grid; gap: 0.2rem; }
.referenzen__name { font-family: var(--f-kopf); font-stretch: 78%; font-weight: 650; font-size: 1.55rem; line-height: 1.1; }
.referenzen__bereich { font-family: var(--f-mono); font-size: 0.75rem; color: var(--grau); }

/* ---------- Kontaktplatte ---------- */
.kontaktplatte { background: var(--tusche); color: var(--papier); padding: clamp(2.5rem, 7vw, 5rem) var(--rand); }
.kontaktplatte h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 16em; margin-bottom: 1rem; }
.kontaktplatte a:hover { color: #fff; text-decoration-thickness: var(--breit); }
.kontaktplatte :focus-visible { outline-color: #fff; }
.kontaktplatte__daten { display: grid; gap: 1.5rem 2rem; margin-top: 2.2rem; border-top: var(--duenn) solid var(--papier); padding-top: 1.5rem; }
.kontaktplatte__daten dt { margin-bottom: 0.3rem; color: #c9c5b8; }
.kontaktplatte__daten dd { font-family: var(--f-kopf); font-stretch: 85%; font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; overflow-wrap: anywhere; }
.kontaktplatte__daten .kopieren { margin-left: 0.4rem; vertical-align: middle; }

/* ---------- Schriftfeld ---------- */
.schriftfeld { border-top: var(--breit) solid var(--tusche); }
.schriftfeld dl { display: grid; grid-template-columns: 1fr 1fr; }
.sf { padding: 0.5rem 0.8rem 0.6rem; border-right: var(--duenn) solid var(--tusche); border-bottom: var(--duenn) solid var(--tusche); min-width: 0; }
.sf dt { font-size: 0.6rem; color: var(--grau); margin-bottom: 0.1rem; }
.sf dd { font-family: var(--f-kopf); font-stretch: 85%; font-weight: 650; font-size: 1.05rem; line-height: 1.25; }
.sf--benennung, .sf--stand, .sf--hinweis { grid-column: 1 / -1; border-right: 0; }
.sf--blatt, .sf--gepr { border-right: 0; }
.sf--hinweis { border-bottom: 0; }
.sf--hinweis dd { font-family: var(--f-text); font-weight: 400; font-size: 0.95rem; }
.sf--benennung dd { font-size: 1.3rem; font-stretch: 78%; }
.pruefzeichen {
  display: inline-block; color: var(--rot);
  border: var(--breit) solid var(--rot); border-radius: 50%;
  padding: 0.05rem 0.5rem; transform: rotate(-7deg); line-height: 1.2;
}

/* ---------- Fuß ---------- */
.fuss {
  max-width: var(--blattbreite); margin: 0 auto;
  padding: 1.4rem var(--rand) 5.5rem;
  font-family: var(--f-mono); font-size: 0.75rem; line-height: 1.6;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between;
}
.fuss ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.fuss a { display: inline-block; padding: 0.3rem 0; }

/* ---------- Schnellkontakt (nur Handy) ---------- */
.schnellkontakt {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr 1.25fr;
  background: var(--tusche); color: var(--papier);
  border-top: var(--breit) solid var(--papier);
  padding-bottom: env(safe-area-inset-bottom);
}
.schnellkontakt a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.2rem; text-decoration: none;
  font-family: var(--f-kopf); font-stretch: 88%; font-weight: 650; font-size: 1.05rem;
}
.schnellkontakt a + a { border-left: var(--duenn) solid var(--papier); }
.schnellkontakt a:hover { color: #fff; }
.schnellkontakt .label { color: #c9c5b8; font-size: 0.62rem; }
.schnellkontakt :focus-visible { outline-color: #fff; outline-offset: -4px; }

/* ---------- Leistungen ---------- */
.positionen li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.6rem; align-items: center; padding: 0.85rem 0.6rem; border-bottom: var(--duenn) solid var(--tusche); scroll-margin-top: 5rem; }
.positionen { border-top: var(--breit) solid var(--tusche); margin-top: 1.5rem; }
.positionen__text { display: grid; gap: 0.1rem; }
.positionen__text strong { font-family: var(--f-kopf); font-stretch: 86%; font-weight: 650; font-size: 1.2rem; line-height: 1.25; }
.positionen__technik { font-family: var(--f-mono); font-size: 0.78rem; color: var(--grau); }

.technik, .projektdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); border-top: var(--breit) solid var(--tusche); border-left: var(--duenn) solid var(--tusche); }
.technik > div, .projektdaten > div { padding: 1rem; border-right: var(--duenn) solid var(--tusche); border-bottom: var(--duenn) solid var(--tusche); }
.technik dt, .projektdaten dt { color: var(--grau); margin-bottom: 0.6rem; }
.technik li, .projektdaten dd { font-family: var(--f-kopf); font-stretch: 86%; font-weight: 600; font-size: 1.15rem; line-height: 1.5; }
.projektdaten { margin: 0 var(--rand); }
.projektbild { margin: 2rem var(--rand) 0; }
.projektbild img { display: block; max-width: 100%; height: auto; border: var(--breit) solid var(--tusche); }
.projektbild figcaption { font-family: var(--f-mono); font-size: 0.75rem; margin-top: 0.5rem; color: var(--grau); }

/* ---------- Arbeitsweise ---------- */
.werdegang { border-left: var(--breit) solid var(--tusche); margin-bottom: 1.8rem; }
.werdegang li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 0.8rem; padding: 0.6rem 0 0.6rem 1rem; position: relative; line-height: 1.4; }
.werdegang li::before { content: ""; position: absolute; left: -0.45rem; top: 1.05rem; width: 0.7rem; height: 0.7rem; background: var(--papier); border: var(--breit) solid var(--tusche); border-radius: 50%; }
.werdegang__marke { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.2rem; }

.anforderungen { display: grid; gap: 0 var(--rand); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); counter-reset: anf; }
.anforderungen li { counter-increment: anf; border-top: var(--breit) solid var(--tusche); padding: 0.9rem 0 2rem; }
.anforderungen li::before { content: "3." counter(anf); font-family: var(--f-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; color: var(--rot); }
.anforderungen h3 { margin: 0.4rem 0 0.5rem; }
.anforderungen p { font-size: 1.02rem; }

.pruefliste { margin: 1.4rem 0; border-top: var(--duenn) solid var(--tusche); }
.pruefliste li { position: relative; padding: 0.7rem 0 0.7rem 2.2rem; border-bottom: var(--duenn) solid var(--tusche); line-height: 1.4; }
/* Prüfhaken in Rot */
.pruefliste li::before {
  content: ""; position: absolute; left: 0.35rem; top: 0.95rem;
  width: 0.5rem; height: 0.95rem;
  border: solid var(--rot); border-width: 0 var(--breit) var(--breit) 0;
  transform: rotate(40deg); transform-origin: center;
}

/* ---------- Kontaktseite ---------- */
.kontaktkarte { display: grid; border-top: var(--breit) solid var(--tusche); }
.kontaktkarte__feld { display: grid; gap: 0.5rem; align-content: start; padding: 1.4rem var(--rand) 1.6rem; border-bottom: var(--duenn) solid var(--tusche); text-decoration: none; }
a.kontaktkarte__feld:hover { background: var(--tusche); color: var(--papier); }
.kontaktkarte__wert { font-family: var(--f-kopf); font-stretch: 80%; font-weight: 650; font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.15; overflow-wrap: anywhere; }
address.kontaktkarte__wert, .kontaktkarte__wert--klein { font-size: 1.25rem; font-stretch: 86%; font-weight: 600; line-height: 1.4; }

/* ---------- Rechtstexte / Projekttexte ---------- */
.rechtstext { padding: 0 var(--rand) clamp(2.5rem, 6vw, 4rem); max-width: calc(44rem + 2 * var(--rand)); }
.rechtstext h2 { font-size: 1.7rem; margin: 2.4rem 0 0.8rem; padding-top: 1rem; border-top: var(--duenn) solid var(--tusche); scroll-margin-top: 2rem; }
.rechtstext h3 { margin: 1.6rem 0 0.5rem; }
.rechtstext p { font-size: 1.05rem; }
.projekttext { padding-top: 1rem; }

.projektliste { display: grid; border-top: var(--breit) solid var(--tusche); }
.projektliste a { display: grid; gap: 0.2rem; padding: 1rem 0; border-bottom: var(--duenn) solid var(--tusche); text-decoration: none; }
.projektliste strong { font-family: var(--f-kopf); font-stretch: 82%; font-size: 1.5rem; line-height: 1.15; }
.projektliste__nr { font-family: var(--f-mono); font-size: 0.72rem; color: var(--rot); }

/* ==========================================================
   Ab Tablet
   ========================================================== */
@media (min-width: 48rem) {
  .schnellkontakt { display: none; }
  .fuss { padding-bottom: 2.5rem; }
  body { padding: 0 1rem; }

  .stueckliste thead { display: table-header-group; }
  .stueckliste thead th { padding: 0.6rem 0.9rem; border-bottom: var(--breit) solid var(--tusche); color: var(--grau); }
  .stueckliste tbody tr { display: table-row; }
  .stueckliste td, .stueckliste tbody th { padding: 0.8rem 0.9rem; }
  .stueckliste td:first-child { width: 4.2rem; }
  .stueckliste td:last-child { font-size: 0.82rem; width: 40%; }
  .stueckliste .gruppe { display: table-row; }
  .stueckliste .gruppe th { padding: 0.55rem 0.9rem; }

  .kontaktplatte__daten { grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .kontaktkarte { grid-template-columns: 1fr 1fr; }
  .kontaktkarte__feld:nth-child(odd) { border-right: var(--duenn) solid var(--tusche); }

  /* Schriftfeld sitzt wie auf der Zeichnung rechts unten */
  .schriftfeld { display: flex; justify-content: flex-end; }
  .schriftfeld dl { width: min(100%, 46rem); grid-template-columns: repeat(6, 1fr); border-left: var(--breit) solid var(--tusche); }
  .sf { border-right: var(--duenn) solid var(--tusche); }
  .sf--benennung { grid-column: span 4; border-right: var(--duenn) solid var(--tusche); }
  .sf--nr { grid-column: span 2; border-right: 0; }
  .sf--gez, .sf--gepr { grid-column: span 1; border-right: var(--duenn) solid var(--tusche); }
  .sf--stand { grid-column: span 2; grid-row: 2; border-right: var(--duenn) solid var(--tusche); }
  .sf--blatt { grid-column: span 2; grid-row: 2; border-right: 0; }
  .sf--gez { grid-row: 2; grid-column: 1; }
  .sf--gepr { grid-row: 2; grid-column: 2; }
  .sf--stand { grid-column: 3 / span 2; }
  .sf--blatt { grid-column: 5 / span 2; }
  .sf--hinweis { grid-column: 1 / -1; }
}

/* ==========================================================
   Ab Desktop
   ========================================================== */
@media (min-width: 62rem) {
  .held { grid-template-columns: minmax(0, 1.3fr) minmax(19rem, 0.8fr); }
  .typenschild { margin-top: 2.4rem; }

  .abschnitt--zweispaltig { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--rand); }
  .abschnitt--zweispaltig .abschnitt__kopf { margin-bottom: 0; }
}

@media (min-width: 70rem) {
  /* Signalweg waagrecht */
  .signalweg { flex-direction: row; align-items: stretch; max-width: none; }
  .station { flex: 1 1 0; min-width: 0; padding: 1.3rem 1.1rem 1.2rem; }
  .leitung {
    flex: 0 0 10.5rem; height: auto; margin: 0; padding: 0 0.5rem 1.6rem;
    justify-content: center; text-align: center;
    background: linear-gradient(to right, var(--tusche) 0 6px, transparent 6px) 0 50% / 12px 2px repeat-x;
    animation-name: fluss-h;
  }
  .leitung span { background: var(--papier); padding: 0 0.3rem; transform: translateY(-1.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .leitung { animation: none; }
}

@media print {
  .schnellkontakt, .skip, .nav, .kopieren { display: none; }
  body { background: #fff; }
  .blatt { border: 0; }
}

/* Technikliste: Werte nebeneinander, getrennt durch die rote Prüfmarke */
.technik ul { display: flex; flex-wrap: wrap; gap: 0.15rem 0; }
.technik li { white-space: nowrap; display: inline-flex; align-items: center; }
.technik li:not(:last-child)::after {
  content: ""; width: 0.32em; height: 0.32em; background: var(--rot);
  margin: 0 0.6em; flex: none;
}
.technik { grid-template-columns: 1fr; }
@media (min-width: 48rem) { .technik { grid-template-columns: 1fr 1fr; } }
