/* ==========================================================================
   tecWa – Stylesheet v2
   Leitidee: Aufbereiten · Beraten · Bewegen.
   Der rote Faden (.thread) läuft wie der Produktstrom im Fließbild vom
   Hero durch alle Kapitel bis zum Kontakt.
   ========================================================================== */

@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0d2236;
  --ink-2: #46566a;
  --ink-3: #758396;
  --line: #d3dbe3;
  --paper: #ffffff;
  --tint: #eff3f6;
  --red: #c1272d;
  --teal: #23a3a6;
  --on-dark: #cfdae4;
  --on-dark-2: #8fa3b6;

  --sans: "Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --tpad: clamp(32px, 6vw, 88px);      /* Abstand Inhalt ↔ roter Faden */
  --node-bg: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; font-weight: 400; }
h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 300; letter-spacing: -0.025em; }
h3 { font-size: 21px; font-weight: 500; line-height: 1.3; }
h1 strong, h2 strong { font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }

/* Kleine Überzeile in Rot mit Strich – greift den roten Faden auf */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--red); letter-spacing: .01em; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; flex: none; }

.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; font-weight: 300; max-width: 40em; }

.link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link:hover { color: var(--red); }

/* --- Header ------------------------------------------------------------- */

.site-header { background: var(--paper); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { flex: none; }
.brand img { width: 128px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 14px; font-size: 15.5px; font-weight: 500; text-decoration: none; }
.nav a[aria-current] { color: var(--red); }
.nav .nav-cta a { background: var(--ink); color: #fff; margin-left: 14px; padding: 11px 20px; }
.nav .nav-cta a:hover, .nav .nav-cta a[aria-current] { background: var(--red); color: #fff; }

.nav-toggle { display: none; border: 1px solid var(--ink); background: none; font: 500 14px/1 var(--sans); padding: 11px 14px; cursor: pointer; color: var(--ink); }

@media (max-width: 960px) {
  .site-header .wrap { min-height: 72px; flex-wrap: wrap; }
  .brand img { width: 112px; }
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; padding-bottom: 20px; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta a { margin: 18px 0 0; padding: 15px 18px; border: 0; }
}

/* --- Buttons ------------------------------------------------------------ */

.btn { display: inline-block; padding: 16px 26px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red { background: var(--red); border-color: var(--red); }
.btn-red:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.on-dark .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.on-dark .btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* --- Hero (Startseite) -------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: clamp(72px, 10vw, 148px); padding-bottom: clamp(88px, 11vw, 168px); }
.hero-text { max-width: 620px; }
.hero .eyebrow { color: #e8565b; }
.hero h1 { margin-top: 28px; }
.hero .lead { margin-top: 32px; color: var(--on-dark); max-width: 30em; }
.hero-scene { position: absolute; inset: 0; pointer-events: none; opacity: .62; }
.hero-scene svg { width: 100%; height: 100%; }

/* Der rote Faden tritt unten aus dem Hero aus */
.thread-out { position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; height: 0; }
.thread-out .wrap { position: relative; }
.thread-out .wrap::before { content: ""; position: absolute; left: var(--gutter); bottom: 0; width: 2px; height: clamp(56px, 7vw, 96px); background: var(--red); }

@media (min-width: 900px) {
  .hero { min-height: 680px; justify-content: center; }
  .hero-scene::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 28%, rgba(13,34,54,.7) 42%, rgba(13,34,54,0) 58%); }
}
@media (max-width: 899px) {
  .hero-inner { padding-bottom: 8px; }
  .hero-scene { position: relative; order: 2; height: 300px; }
}

/* --- Seitenkopf (Unterseiten) -------------------------------------------- */

.page-head { position: relative; background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 112px) 0 clamp(72px, 9vw, 120px); }
.page-head h1 { max-width: 16em; margin-top: 24px; font-size: clamp(36px, 4.6vw, 60px); }
.page-head .lead { margin-top: 28px; color: var(--on-dark); }
.page-head .eyebrow { color: #e8565b; }
.page-head .eyebrow a { text-decoration: none; }
.page-head .eyebrow a:hover { color: #fff; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 32px; font-size: 15px; color: var(--on-dark-2); }

/* --- Sektionen & roter Faden ---------------------------------------------- */

.section { padding: var(--section) 0; position: relative; }
.section-tint { background: var(--tint); --node-bg: var(--tint); }

.thread > .wrap { position: relative; padding-left: calc(var(--gutter) + var(--tpad)); }
.thread > .wrap::before { content: ""; position: absolute; left: var(--gutter); top: calc(-1 * var(--section)); bottom: calc(-1 * var(--section)); width: 2px; background: var(--red); }

/* Knotenpunkt auf dem Faden */
.node { position: absolute; width: 16px; height: 16px; border: 2px solid var(--red); background: var(--node-bg); border-radius: 50%; left: calc(-1 * var(--tpad) - 7px); top: 4px; }

.chapter-head { position: relative; margin-bottom: clamp(48px, 6vw, 80px); }
.chapter-head h2 { max-width: 18em; }
.chapter-head h2 { margin-top: 18px; }
.chapter-head p { margin: 24px 0 0; color: var(--ink-2); font-size: 18px; max-width: 40em; }

/* --- Claim: Aufbereiten · Beraten · Bewegen -------------------------------- */

.claim { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3em; margin: 28px 0 0; padding: 0; list-style: none; font-size: clamp(34px, 4.6vw, 60px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.12; }
.claim li { display: flex; align-items: baseline; gap: .3em; }
.claim li:not(:last-child)::after { content: "·"; color: var(--red); }
.claim a { text-decoration: none; }
.claim a:hover { color: var(--red); }

/* --- Leistungsbereich (Kapitel) ------------------------------------------ */

.bereich { display: grid; grid-template-columns: 1fr; gap: 40px clamp(40px, 6vw, 96px); scroll-margin-top: 24px; }
.bereich + .bereich { margin-top: var(--section); }
.bereich-intro { position: relative; }
.bereich-intro .node { top: clamp(18px, 2.4vw, 34px); }
.bereich-word { font-size: clamp(44px, 5vw, 68px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.bereich-word span { color: var(--red); }
.bereich-claim { font-size: clamp(20px, 1.9vw, 24px); font-weight: 500; margin: 28px 0 0; line-height: 1.35; letter-spacing: -0.01em; }
.bereich-text { color: var(--ink-2); margin: 16px 0 0; max-width: 32em; }
.bereich-art { margin-top: 44px; max-width: 340px; }

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); align-self: start; }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list a { display: block; padding: 28px 0 26px; text-decoration: none; }
.service-list h3 { font-size: clamp(21px, 1.9vw, 26px); font-weight: 400; letter-spacing: -0.015em; }
.service-list p { margin: 10px 0 0; color: var(--ink-2); font-size: 16.5px; max-width: 34em; }
.service-list .go { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.service-list a:hover h3 { color: var(--red); }

@media (min-width: 960px) {
  .bereich { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .bereich-intro { position: sticky; top: 32px; align-self: start; }
}

/* --- Technische Zeichnungen (Kapitelillustrationen) ---------------------------- */

.art .a-line { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.art .a-thin { fill: none; stroke: var(--ink-3); stroke-width: .8; }
.art .a-center { fill: none; stroke: var(--ink-3); stroke-width: .8; stroke-dasharray: 12 3 2 3; }
.art .a-red { fill: none; stroke: var(--red); stroke-width: 2; }
.art .a-red-fill { fill: var(--red); }
.art .a-teal { fill: none; stroke: var(--teal); stroke-width: 1.6; }
.art .a-dash { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 5 5; }
.art .a-fill { fill: var(--node-bg); stroke: var(--ink); stroke-width: 1.4; }
.art .a-hatch { stroke: var(--ink-3); stroke-width: .6; }
.art .a-dot { fill: var(--ink); }
.art text { font-family: var(--mono); font-size: 10px; fill: var(--ink-3); letter-spacing: .04em; }

/* --- Erfahrung / Person ------------------------------------------------ */

.person { display: grid; grid-template-columns: 1fr; gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.person-media { max-width: 400px; position: relative; }
.person-caption { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.person-caption strong { display: block; color: var(--ink); font-size: 18px; font-weight: 500; }
.person .prose { margin-top: 28px; }
.facts-row { display: grid; grid-template-columns: 1fr; margin: 44px 0 0; border-top: 1px solid var(--ink); }
.facts-row div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts-row dt { font-size: 14px; color: var(--ink-3); margin-bottom: 4px; }
.facts-row dd { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.4; }
@media (min-width: 700px) { .facts-row { grid-template-columns: repeat(3, 1fr); column-gap: 32px; } }
@media (min-width: 960px) { .person { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .person-media { position: sticky; top: 32px; } }

.portrait { background: #dde5ec; aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { font: 300 96px/1 var(--sans); color: var(--ink-3); letter-spacing: -0.04em; }

/* --- Stoffströme / Fachgebiete ------------------------------------------ */

.materials { display: grid; grid-template-columns: 1fr; gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.materials li { border-top: 1px solid var(--ink); }
.materials a { display: block; padding: 24px 0 32px; text-decoration: none; }
.materials h3 { font-size: 20px; }
.materials p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }
.materials a:hover h3 { color: var(--red); }
@media (min-width: 700px) { .materials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .materials { grid-template-columns: repeat(3, 1fr); } }

/* --- Zusammenarbeit: Schritte auf dem Faden ------------------------------ */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 36px; position: relative; }
.steps li { position: relative; padding-left: 36px; }
.steps li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--red); background: var(--node-bg); }
.steps .step-n { display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16.5px; margin: 0; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; padding-top: 44px; }
  .steps::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--red); }
  .steps li { padding-left: 0; }
  .steps li::before { top: -44px; }
}

/* --- Artikel-Liste ------------------------------------------------------ */

.articles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.articles li { border-bottom: 1px solid var(--line); }
.articles a { display: grid; grid-template-columns: 1fr; gap: 6px 48px; padding: 28px 0; text-decoration: none; }
.articles time { font-size: 15px; color: var(--ink-3); }
.articles h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.articles p { margin: 8px 0 0; color: var(--ink-2); max-width: 44em; font-size: 16.5px; }
.articles a:hover h3 { color: var(--red); }
@media (min-width: 900px) {
  .articles a { grid-template-columns: 2fr 9fr; }
  .articles time { padding-top: 4px; }
}

/* --- Inhalte / Blöcke --------------------------------------------------- */

.split { display: grid; grid-template-columns: 1fr; gap: 56px clamp(40px, 6vw, 96px); }
@media (min-width: 960px) {
  .split { grid-template-columns: 8fr 4fr; }
  .split-left { grid-template-columns: 4fr 8fr; }
  .sticky { position: sticky; top: 32px; align-self: start; }
}

.prose { max-width: 42em; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 400; margin: 0 0 18px; letter-spacing: -0.015em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose strong { font-weight: 600; }
.prose p:last-child { margin-bottom: 0; }

.block { padding: 0 0 56px; }
.block:last-child { padding-bottom: 0; }
.block-title { font-size: clamp(24px, 2.4vw, 30px); font-weight: 400; margin: 0 0 20px; letter-spacing: -0.015em; max-width: 42em; }
.block .eyebrow { margin-bottom: 18px; }

.checklist { list-style: none; margin: 0; padding: 0; max-width: 42em; border-top: 1px solid var(--ink); }
.checklist li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 25px; width: 14px; height: 2px; background: var(--red); }

.note { border-left: 2px solid var(--red); background: var(--tint); padding: 24px 28px; max-width: 42em; }
.note .eyebrow { margin-bottom: 10px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; max-width: 42em; }
.facts strong { display: block; font-size: 40px; font-weight: 300; line-height: 1.1; color: var(--teal); letter-spacing: -0.02em; }
.facts span { font-size: 15px; color: var(--ink-2); }

.figure { margin: 0; }
.figure figcaption { padding-top: 12px; font-size: 14px; color: var(--ink-3); }

/* --- Seitenleiste ------------------------------------------------------- */

.aside-group + .aside-group { margin-top: 48px; }
.aside-title { display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.aside-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.aside-list li { border-bottom: 1px solid var(--line); }
.aside-list a { display: block; padding: 12px 0 12px 24px; position: relative; text-decoration: none; font-size: 16px; line-height: 1.4; }
.aside-list a[aria-current] { color: var(--red); font-weight: 500; }
.aside-list a[aria-current]::before { content: ""; position: absolute; left: 0; top: 21px; width: 14px; height: 2px; background: var(--red); }
.aside-list .group { display: block; padding: 16px 0 6px; font-size: 14px; color: var(--ink-3); border-bottom: 0; }
.aside-cta { background: var(--ink); color: #fff; padding: 30px 28px; }
.aside-cta h3 { font-size: 21px; font-weight: 400; letter-spacing: -0.01em; }
.aside-cta p { color: var(--on-dark); font-size: 15.5px; margin: 10px 0 22px; }
.aside-cta .btn { background: var(--red); border-color: var(--red); }
.aside-cta .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; border: 1px solid var(--line); padding: 7px 14px; font-size: 15px; text-decoration: none; }
.tags a:hover { border-color: var(--ink); color: var(--ink); }

/* --- Profil ------------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: 42em; }
.timeline li { display: grid; grid-template-columns: 1fr; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline .when { font-size: 15px; font-weight: 500; color: var(--red); padding-top: 2px; }
.timeline h3 { font-size: 19px; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (min-width: 700px) { .timeline li { grid-template-columns: 110px 1fr; } }

/* --- CTA (Ziel des roten Fadens) ---------------------------------------- */

.cta { position: relative; background: var(--ink); color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.cta .wrap { position: relative; display: grid; gap: 36px; align-items: end; }
.cta.thread-target .wrap { padding-left: calc(var(--gutter) + var(--tpad)); }
.cta.thread-target .wrap::before { content: ""; position: absolute; left: var(--gutter); top: calc(-1 * clamp(72px, 9vw, 120px)); height: calc(clamp(72px, 9vw, 120px) + 20px); width: 2px; background: var(--red); }
.cta.thread-target .wrap::after { content: ""; position: absolute; left: calc(var(--gutter) - 7px); top: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); }
.cta h2 { max-width: 16em; }
.cta p { color: var(--on-dark); max-width: 34em; margin: 20px 0 0; font-size: 18px; }
.cta .btn { background: var(--red); border-color: var(--red); justify-self: start; }
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (min-width: 960px) { .cta .wrap { grid-template-columns: 8fr 4fr; } .cta .btn { justify-self: end; } }

/* --- Formular ----------------------------------------------------------- */

.form { display: grid; gap: 22px; max-width: 42em; }
.form .row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.field input, .field textarea { width: 100%; border: 1px solid #b7c3cf; border-radius: 0; background: var(--paper); padding: 14px 15px; font: 400 16px/1.4 var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field textarea { min-height: 190px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: var(--red); }
.field .error, .form-error { color: var(--red); font-size: 14px; margin-top: 6px; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 15px; color: var(--ink-2); align-items: start; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.flash { border-left: 2px solid var(--red); background: var(--tint); padding: 16px 20px; margin-bottom: 24px; max-width: 42em; }

.contact-list { margin: 0; }
.contact-list div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list div:first-child { border-top: 1px solid var(--ink); }
.contact-list dt { font-size: 14px; color: var(--ink-3); }
.contact-list dd { margin: 2px 0 0; font-size: 17px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--red); }

.missing { color: var(--red); font-family: var(--mono); font-size: 13px; }

/* --- Referenzen --------------------------------------------------------- */

.ref-grid { display: grid; grid-template-columns: 1fr; gap: 40px 32px; }
@media (min-width: 700px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ref-grid { grid-template-columns: repeat(3, 1fr); } }
.ref-card { display: flex; flex-direction: column; text-decoration: none; }
.ref-media { aspect-ratio: 16 / 10; background: var(--ink); display: flex; align-items: flex-end; overflow: hidden; }
.ref-media img { width: 100%; height: 100%; object-fit: cover; }
.ref-media-empty { padding: 20px; font-size: 14px; color: var(--on-dark-2); }
.ref-body { padding: 20px 0 0; }
.ref-meta { display: block; font-size: 14px; font-weight: 500; color: var(--red); margin-bottom: 8px; }
.ref-body h3 { margin-bottom: 8px; }
.ref-body p { color: var(--ink-2); font-size: 16px; margin: 0; }
.ref-card:hover h3 { color: var(--red); }

/* --- Footer ------------------------------------------------------------- */

.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 7vw, 88px) 0 40px; font-size: 15.5px; }
.cta + .site-footer { padding-top: 0; }
.cta + .site-footer .footer-cols { padding-top: clamp(48px, 6vw, 72px); }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 40px; }
.footer-cols .ft { display: block; margin-bottom: 14px; color: var(--on-dark-2); font-size: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-cols a { text-decoration: none; color: var(--on-dark); }
.footer-cols a:hover { color: #fff; }
.footer-cols address { font-style: normal; line-height: 1.75; }
.footer-brand img { width: 128px; }
.footer-brand p { margin: 20px 0 0; color: var(--on-dark-2); max-width: 22em; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(48px, 6vw, 72px); font-size: 13.5px; color: #6b8094; }
@media (min-width: 900px) { .footer-cols { grid-template-columns: 4fr 3fr 3fr 2fr; } }

/* --- Animierte Prozess-Szene (Hero) ------------------------------------- */

.scene text { font-family: var(--mono); }
.scene .s-ground { stroke: rgba(255,255,255,.18); stroke-width: 1; }
.scene .s-tick { stroke: rgba(255,255,255,.3); stroke-width: 1; }
.scene .s-label { font-size: 12px; letter-spacing: .08em; fill: rgba(255,255,255,.42); }
.scene .s-unit { fill: var(--ink); stroke: rgba(255,255,255,.55); stroke-width: 1.5; }
.scene .s-unit-line { stroke: rgba(255,255,255,.55); stroke-width: 1.5; }
.scene .s-detail, .scene .s-hatch { stroke: rgba(255,255,255,.3); stroke-width: 1; fill: none; }
.scene .s-pipe { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 3; }
.scene .s-flow { fill: none; stroke-width: 2; stroke-dasharray: 4 12; animation: s-flow 1.4s linear infinite; }
.scene .s-flow-main { stroke: var(--red); }
.scene .s-flow-rej { stroke: rgba(255,255,255,.5); animation-duration: 2.2s; }
.scene .s-flow-gas { stroke: rgba(35,163,166,.8); animation-duration: 1.8s; }
.scene .s-flow-water { stroke: rgba(35,163,166,.7); stroke-dasharray: 2 10; animation-duration: 3.6s; }
.scene .s-spiral { stroke-width: 1.25; }
.scene .s-belt { stroke: rgba(255,255,255,.7); stroke-width: 1.5; stroke-dasharray: 2 10; animation: s-flow-rev 1s linear infinite; }
.scene .s-liquid { fill: none; stroke: var(--teal); stroke-width: 1.5; }
.scene .s-swirl { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 1; stroke-dasharray: 6 8; }
.scene .s-screen { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1.5; stroke-dasharray: 3 5; }
.scene .s-rotor { stroke: rgba(255,255,255,.75); stroke-width: 2; }
.scene .s-hub { fill: rgba(255,255,255,.8); }
.scene .s-chunk { fill: rgba(255,255,255,.75); }
.scene .s-dot { fill: var(--red); }
.scene .s-reject { fill: rgba(255,255,255,.6); }
.scene .s-bubble { fill: none; stroke: var(--teal); stroke-width: 1; }
.scene .s-paddle { transform-box: fill-box; transform-origin: center; animation: s-paddle 2.6s ease-in-out infinite; }
.scene .s-led { fill: var(--red); animation: s-blink 2.4s steps(1) infinite; }
.scene .s-spin { transform-box: fill-box; transform-origin: center; animation: s-spin 6s linear infinite; }
.scene .s-spin-fast { animation-duration: 1.6s; }
.scene .s-spin-slow { animation-duration: 12s; }
.scene .s-spin-rev { animation-duration: 8s; animation-direction: reverse; }

@keyframes s-flow { to { stroke-dashoffset: -32; } }
@keyframes s-flow-rev { to { stroke-dashoffset: 24; } }
@keyframes s-spin { to { transform: rotate(360deg); } }
@keyframes s-paddle { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.12); } }
@keyframes s-blink { 50% { opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  .scene * { animation: none !important; }
  .scene .s-moving { display: none; }
}

/* --- Druck -------------------------------------------------------------- */

@media print {
  body { font-size: 11pt; }
  .nav, .nav-toggle, .cta, .actions, .form, .hero-scene, .thread-out { display: none !important; }
  .page-head, .hero, .site-footer { background: none; color: #000; }
  .thread > .wrap::before, .node { display: none; }
  a { text-decoration: none; }
}
