/* Muth.motion – Website-Entwurf 2026
   Konzept: Die Seite liest sich wie ein technisches Zeichnungsblatt.
   Zeichenpapier, Graphit, Stahl – und RAL 2004 Reinorange als einziges Signal.
   Eine Schriftfamilie (Archivo) in drei Breiten: breit für Überschriften,
   normal für Text, schmal für Beschriftungen im Schriftfeld. */

/* Schrift lokal eingebunden (DSGVO: keine Verbindung zu Google) – Archivo, SIL OFL */
@font-face {
  font-family: "Archivo";
  font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../assets/fonts/archivo-wdth.woff2") format("woff2-variations"), url("../assets/fonts/archivo-wdth.woff2") format("woff2");
}

:root {
  --paper: #eef1f3;      /* Zeichenpapier, leicht kühl */
  --sheet: #ffffff;      /* Blattfläche */
  --ink: #1a1f24;        /* Graphit */
  --steel: #56626c;      /* Stahlgrau für Sekundärtext */
  --line: #d3d9de;       /* Zeichenlinie, fein */
  --rule: #8f9ba5;       /* Konturlinie für Rahmen */
  --grid: rgba(26, 31, 36, .035);
  --signal: #e75b12;     /* RAL 2004 Reinorange */
  --signal-ink: #b8440a; /* Signal für Text auf Papier (Kontrast) */
  --night: #161b20;      /* dunkle Bänder */
  --night-line: #2e373f;
  --night-fg: #e7ebee;
  --night-muted: #9aa6b0;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 108;
  --narrow: 72;

  --s-1: .8125rem;  /* 13 */
  --s0: 1.0625rem;  /* 17 */
  --s1: 1.25rem;    /* 20 */
  --s2: 1.625rem;   /* 26 */
  --s3: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --s4: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);

  --max: 1240px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--s0);
  line-height: 1.7;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--sheet);
}

img, video { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  font-variation-settings: "wdth" var(--wide);
  line-height: 1.08;
  letter-spacing: -.022em;
  text-wrap: balance;
  overflow-wrap: break-word;
  -webkit-hyphens: auto; hyphens: auto;
  hyphenate-limit-chars: 10 4 4;
}
h1 { font-size: var(--s4); }
h2 { font-size: var(--s3); }
h3 { font-size: var(--s1); line-height: 1.25; letter-spacing: -.005em; font-weight: 600; }
p { margin: 0; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* Beschriftung wie im Schriftfeld: schmal, klein, Satzschreibung */
.label {
  font-size: var(--s-1);
  font-variation-settings: "wdth" var(--narrow);
  font-weight: 500;
  color: var(--steel);
  letter-spacing: .03em;
}

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 2rem;
  min-height: 84px;
}
.brand { display: block; flex: none; }
.brand img { height: 60px; width: auto; }
.site-header .wrap { position: relative; }
.nav { display: flex; gap: 2rem; margin-left: auto; align-items: center; align-self: stretch; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .9375rem; letter-spacing: .01em;
  padding-block: .4rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover, .nav a[aria-current="page"], .nav a.is-current { border-bottom-color: var(--signal); }

/* Untermenü Leistungen */
.has-sub { display: flex; align-items: center; gap: .15rem; align-self: stretch; }
.sub-toggle {
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  background: none; border: 0; color: var(--ink); cursor: pointer; transition: transform .2s;
}
.has-sub.open .sub-toggle, .has-sub:hover .sub-toggle { transform: rotate(180deg); }
.subnav {
  position: absolute; top: 100%; left: var(--gutter); right: var(--gutter-r);
  background: var(--sheet); border: 1px solid var(--line); border-top: 2px solid var(--signal);
  box-shadow: 0 30px 50px -30px rgba(26, 31, 36, .35);
  padding: 1.75rem 1.75rem 1.25rem;
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav, .has-sub.open .subnav {
  visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s;
}
.subnav-inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.subnav-group { display: grid; gap: .35rem; align-content: start; padding-left: 1rem; border-left: 1px solid var(--line); }
.subnav-group:first-child { padding-left: 0; border-left: 0; }
.subnav-brand { font-weight: 600; font-size: .875rem; color: var(--signal-ink); letter-spacing: .02em; margin-bottom: .35rem; }
.subnav-brand span { display: block; font-weight: 500; color: var(--steel); font-variation-settings: "wdth" var(--narrow); font-size: .8125rem; }
.nav .subnav a { font-size: .9375rem; padding-block: .25rem; border-bottom: 0; line-height: 1.35; }
.nav .subnav a:hover, .nav .subnav a[aria-current="page"] { color: var(--signal-ink); }
.nav .subnav .subnav-all { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); width: 100%; font-weight: 600; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(8px + env(safe-area-inset-top, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem;
  font: inherit; font-weight: 600; font-size: .9375rem; letter-spacing: .01em;
  font-variation-settings: "wdth" 100;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--sheet);
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { background: #2c343b; border-color: #2c343b; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { background: transparent; border-color: var(--ink); }
/* Hauptaktion: Graphit mit feiner Signal-Kante */
.btn.signal { background: var(--ink); border-color: var(--ink); color: var(--sheet); box-shadow: inset 0 -3px 0 var(--signal); }
.btn.signal:hover { background: var(--signal); border-color: var(--signal); box-shadow: none; }
.site-header .btn { padding: .65rem 1.15rem; }

.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--rule); padding: .5rem .9rem;
  font: inherit; font-weight: 600; cursor: pointer; color: var(--ink);
}
@media (min-width: 961px) and (max-width: 1180px) {
  .subnav-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .subnav-group:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; gap: 0 1rem; min-height: 68px; }
  .nav, .site-header .header-cta { display: none; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    width: 100%; margin: 0; padding-block: .5rem 1rem;
  }
  .site-header.open .nav { max-height: calc(100vh - 68px - env(safe-area-inset-top, 0px)); overflow-y: auto; }
  .site-header.open .nav > a { padding-block: .75rem; width: 100%; border-bottom: 1px solid var(--line); }
  .site-header.open .nav > a.btn { margin-top: 1rem; width: auto; border-bottom: 1px solid var(--ink); justify-content: center; }
  .has-sub { flex-wrap: wrap; width: 100%; border-bottom: 1px solid var(--line); }
  .has-sub > a { flex: 1; padding-block: .75rem; border-bottom: 0 !important; }
  .sub-toggle { width: 44px; height: 44px; border-left: 1px solid var(--line); }
  .has-sub:hover .sub-toggle { transform: none; }
  .has-sub.open .sub-toggle { transform: rotate(180deg); }
  .subnav, .has-sub:hover .subnav, .has-sub:focus-within .subnav {
    position: static; display: none; visibility: visible; opacity: 1; transform: none;
    width: 100%; box-shadow: none; border: 0; padding: 0 0 .75rem; transition: none;
  }
  .has-sub.open .subnav { display: block; }
  .subnav-inner { grid-template-columns: 1fr; gap: .9rem; }
  .subnav-group { padding-left: 0; border-left: 0; }
  .subnav-brand { margin-bottom: 0; }
  .nav .subnav a { padding: .45rem 0 .45rem .9rem; border-left: 1px solid var(--line); }
  .nav .subnav .subnav-all { margin-top: .75rem; padding-left: 0; border-left: 0; }
  .brand img { height: 48px; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
}
.hero h1 { font-size: clamp(2.4rem, 1.3rem + 3.9vw, 4.75rem); }
.hero-copy { display: grid; gap: 2rem; min-width: 0; }
.hero-copy .lead { font-size: var(--s1); max-width: 34ch; color: var(--steel); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Abbildung im Zeichnungsrahmen mit Passermarken */
.figure-frame {
  position: relative; margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: 8px;
  min-width: 0;
  box-shadow: 0 30px 60px -40px rgba(26, 31, 36, .45);
}
.figure-frame::before, .figure-frame::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--signal); border-style: solid;
}
.figure-frame::before { top: -7px; left: -7px; border-width: 1px 0 0 1px; }
.figure-frame::after { bottom: -7px; right: -7px; border-width: 0 1px 1px 0; }
.figure-frame video, .figure-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--night); }

/* Schriftfeld unter der Abbildung */
.titleblock {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  border: 1px solid var(--rule); border-top: 0;
  background: var(--sheet);
}
.titleblock > div { padding: .55rem .8rem; border-left: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.titleblock > div:first-child { border-left: 0; }
.titleblock .label { display: block; line-height: 1.3; }
.titleblock strong { font-weight: 500; font-size: .9375rem; display: block; line-height: 1.35; }
.hero .titleblock { margin-inline: 8px; }
@media (max-width: 560px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .titleblock > div:nth-child(2) { border-left: 0; }
  .thesis-head figure { max-width: 280px; }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(3rem, 5.5vw, 5.25rem); }
.section-tight { padding-block: clamp(2.5rem, 4vw, 3.75rem); }
/* Flächenwechsel trennt die Bereiche */
.tone-paper { background: var(--paper); }
.tone-sheet { background: var(--sheet); }
.tone-sheet .field input, .tone-sheet .field select, .tone-sheet .field textarea { background: var(--paper); }
.section, .band, .cta-band { border-top: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: end;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.section-head p { color: var(--steel); max-width: 56ch; }
.section-head.solo { grid-template-columns: 1fr; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Leitgedanke: Skizze -> Maschine */
.thesis .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); }
.thesis h2 { font-size: var(--s4); }
.thesis-head { display: grid; gap: 1.75rem; align-content: start; }
.thesis-head figure { margin: 0; max-width: 400px; }
.thesis-head figcaption { margin-top: .5rem; }
.thesis-body { display: grid; gap: 1.25rem; max-width: 60ch; align-content: start; padding-top: .6rem; }
.thesis-body p:first-child { font-size: var(--s1); line-height: 1.5; }
.thesis-body p + p { color: var(--steel); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: 1rem; }
.facts div { padding: .9rem 1rem .9rem 0; }
.facts div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.facts strong { display: block; -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; font-weight: 600; font-variation-settings: "wdth" 100; line-height: 1.3; }
@media (max-width: 860px) {
  .thesis .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Leistungen */
.services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2.25rem);
}
.service {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none;
  min-width: 0;
}
.service-img { overflow: hidden; aspect-ratio: 3 / 2; }
.service-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform .8s cubic-bezier(.2, .7, .1, 1), filter .4s; }
.service:hover .service-img img { transform: scale(1.03); filter: saturate(1); }
.service-body { display: grid; gap: .55rem; padding: 1.25rem 0 0; align-content: start; border-top: 1px solid var(--rule); margin-top: 1rem; }
.service-body p { color: var(--steel); font-size: .9688rem; }
.service-more { margin-top: .5rem; font-weight: 600; font-size: .9375rem; display: inline-flex; gap: .5rem; align-items: center; }
.service-more svg { transition: transform .2s; }
.service:hover .service-more svg { transform: translateX(4px); }
.service:hover .service-more { color: var(--signal-ink); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Vorgehen – echte Abfolge, daher nummeriert */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.process li { position: relative; padding: 2.2rem 1.5rem 0 0; border-top: 1px solid var(--rule); counter-increment: step; display: grid; gap: .6rem; align-content: start; }
.process li::before {
  content: counter(step); position: absolute; top: -1.05rem; left: 0;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 50%;
  font-weight: 600; font-size: .8125rem;
}
.process li:last-child::before { background: var(--signal); border-color: var(--signal); color: #fff; }
.process p { color: var(--steel); font-size: .9688rem; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 2.75rem; }
}
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* Dunkles Band (Second.life) */
.band {
  background: var(--night); color: var(--night-fg);
}
.band .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.25rem); }
.band .label { color: var(--night-muted); }
.band p { color: var(--night-muted); }
.band .btn.ghost { color: var(--night-fg); border-color: #56626c; }
.band .btn.ghost:hover { border-color: var(--night-fg); }
.band-copy { display: grid; gap: 1.4rem; min-width: 0; }
.band-img { position: relative; min-width: 0; }
.band-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.spec-list { list-style: none; margin: .5rem 0 0; padding: 0; border-top: 1px solid var(--night-line); }
.spec-list li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--night-line); }
.spec-list strong { color: var(--night-fg); font-weight: 600; }
@media (max-width: 860px) {
  .band .wrap { grid-template-columns: 1fr; }
  .band-img { order: -1; }
}
@media (max-width: 520px) { .spec-list li { grid-template-columns: 1fr; gap: .2rem; } }

/* Gründe */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.reasons div { padding: 1.5rem 1.5rem 0 0; display: grid; gap: .5rem; align-content: start; }
.reasons div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.reasons p { color: var(--steel); font-size: .9688rem; }
@media (max-width: 860px) {
  .reasons { grid-template-columns: 1fr 1fr; }
  .reasons div:nth-child(3) { padding-left: 0; border-left: 0; }
  .reasons div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1.5rem; }
}
@media (max-width: 520px) {
  .reasons { grid-template-columns: 1fr; }
  .reasons div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1.5rem; }
}

/* Kontakt */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); }
.contact h2 { font-size: var(--s4); }
.contact-info { display: grid; gap: 1.75rem; align-content: start; }
.contact-info dl { margin: 0; display: grid; gap: 1.1rem; border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.contact-info dt { font-size: var(--s-1); font-variation-settings: "wdth" var(--narrow); font-weight: 600; color: var(--steel); }
.contact-info dd { margin: 0; font-size: var(--s1); font-weight: 500; overflow-wrap: anywhere; }
.contact-info dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-info dd a:hover { border-color: var(--signal); }

.form { background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 30px 60px -45px rgba(26, 31, 36, .35); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; min-width: 0; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field label { font-size: var(--s-1); font-weight: 600; font-variation-settings: "wdth" var(--narrow); color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid transparent; border-bottom: 1px solid var(--rule);
  padding: .7rem .8rem; border-radius: 0; width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--line); border-bottom-color: var(--signal); background: var(--sheet); box-shadow: inset 0 -1px 0 var(--signal); }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; color: var(--steel); }
.form .check input { margin-top: .25rem; accent-color: var(--signal); }
.form-note { font-size: .875rem; color: var(--steel); }
.form-note[data-state="ok"] { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- Fußzeile als Schriftfeld ---------- */
.site-footer { background: var(--sheet); border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.footer-top img { height: 64px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-nav a { text-decoration: none; font-weight: 500; font-size: .9375rem; }
.footer-nav a:hover { color: var(--signal-ink); }
.schriftfeld {
  display: grid; grid-template-columns: 2fr 2fr 1.4fr 1.4fr;
  border: 1px solid var(--rule);
}
.schriftfeld > div { padding: .65rem .85rem; border-left: 1px solid var(--line); border-top: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.schriftfeld > div:nth-child(-n+4) { border-top: 0; }
.schriftfeld > div:nth-child(4n+1) { border-left: 0; }
.schriftfeld .label { display: block; line-height: 1.3; }
.schriftfeld strong, .schriftfeld span.v { display: block; font-weight: 500; font-size: .9375rem; line-height: 1.4; }
.schriftfeld a { text-decoration: none; }
.schriftfeld .accent { background: var(--ink); color: var(--sheet); }
.schriftfeld .accent .label { color: var(--night-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; margin-top: 1.25rem; font-size: .8125rem; color: var(--steel); }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }
@media (max-width: 860px) {
  .schriftfeld { grid-template-columns: 1fr 1fr; }
  .schriftfeld > div { border-top: 1px solid var(--line) !important; border-left: 1px solid var(--line) !important; }
  .schriftfeld > div:nth-child(-n+2) { border-top: 0 !important; }
  .schriftfeld > div:nth-child(2n+1) { border-left: 0 !important; }
}
@media (max-width: 480px) {
  .schriftfeld { grid-template-columns: 1fr; }
  .schriftfeld > div { border-left: 0 !important; }
  .schriftfeld > div:nth-child(2) { border-top: 1px solid var(--line) !important; }
}

/* ---------- Unterseiten ---------- */
.page-hero { border-bottom: 1px solid var(--line); background: var(--paper); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.25rem, 5vw, 4.25rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--s-1); color: var(--steel); font-variation-settings: "wdth" var(--narrow); font-weight: 600; margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--signal-ink); }
.crumbs span[aria-hidden] { color: var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); }
.page-hero .brandline span { color: var(--steel); }
.page-hero .brandline { display: block; margin: 0 0 1rem; color: var(--signal-ink); font-weight: 600; letter-spacing: .03em; font-variation-settings: "wdth" var(--narrow); font-size: .9375rem; }
.page-hero .lead { font-size: var(--s1); line-height: 1.5; color: var(--steel); max-width: 52ch; }
.page-hero-copy { min-width: 0; display: grid; gap: 1.5rem; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); }
.split > * { min-width: 0; }
.lead-text { font-size: var(--s1); line-height: 1.55; max-width: 56ch; }
.split .sticky { position: sticky; top: 110px; align-self: start; display: grid; gap: 1rem; }
.split .sticky p { color: var(--steel); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .sticky { position: static; } }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 500; font-variation-settings: "wdth" var(--wide); color: var(--signal-ink); font-size: 1rem; line-height: 1.6; font-variant-numeric: tabular-nums; }
.steps.plain li { grid-template-columns: 1fr; }
.steps.plain li::before { content: none; }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--steel); }

.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.benefits div { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .4rem; align-content: start; }
.benefits div:nth-child(2n) { padding-left: 1.5rem; padding-right: 0; border-left: 1px solid var(--line); }
.benefits p { color: var(--steel); }
@media (max-width: 600px) {
  .benefits { grid-template-columns: 1fr; }
  .benefits div:nth-child(2n) { padding-left: 0; border-left: 0; }
}

.wide-figure { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.wide-figure img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.wide-figure figcaption { margin-top: .6rem; }

/* Werkstofftabelle */
.table-scroll { overflow-x: auto; border-top: 1px solid var(--rule); -webkit-overflow-scrolling: touch; }
.materials { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .9375rem; }
.materials th { text-align: left; font-size: var(--s-1); font-variation-settings: "wdth" var(--narrow); font-weight: 600; color: var(--steel); padding: .7rem 1rem .7rem 0; border-bottom: 1px solid var(--rule); }
.materials td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.materials td:first-child { font-weight: 600; font-variation-settings: "wdth" var(--wide); white-space: nowrap; }
.materials td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.materials td span { display: block; color: var(--steel); font-size: .875rem; }

.other-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; border-top: 1px solid var(--rule); }
.other-services a { display: grid; gap: .25rem; padding: 1.2rem 1.2rem 1.2rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.other-services a:hover strong { color: var(--signal-ink); }
.other-services strong { font-weight: 600; font-variation-settings: "wdth" 105; }
@media (max-width: 860px) { .other-services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .other-services { grid-template-columns: 1fr; } }

.cta-band { background: var(--ink); color: var(--sheet); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-band h2 { font-size: var(--s3); max-width: 22ch; }
.cta-band p { color: var(--night-muted); margin-top: .6rem; }

.prose { max-width: 70ch; display: grid; gap: 1rem; min-width: 0; overflow-wrap: break-word; }
.prose h2 { font-size: var(--s2); margin-top: 1.5rem; }
.prose p, .prose li { color: var(--ink); }
.notice { border-left: 3px solid var(--signal); padding: .8rem 1rem; background: var(--sheet); font-size: .9375rem; }

/* Entwurfshinweis */
.draft-flag {
  position: fixed; z-index: 70;
  right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--sheet);
  font-size: .75rem; font-weight: 600; font-variation-settings: "wdth" var(--narrow);
  padding: .4rem .7rem;
}
.draft-flag b { color: var(--signal); }

/* Einmaliger Ladeeffekt im Hero: Überschrift zieht wie ein Vorschub ein */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: feed .9s cubic-bezier(.2, .7, .1, 1) both; }
  .hero .figure-frame { animation: feed .9s .12s cubic-bezier(.2, .7, .1, 1) both; }
  @keyframes feed { from { transform: translateX(-24px); opacity: .001; } to { transform: none; opacity: 1; } }
}

/* Rechtstexte */
.prose h1 { font-size: var(--s3); margin-bottom: .5rem; }
.prose h3 { font-size: var(--s0); margin-top: .75rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.prose .emph { font-weight: 600; }
.prose a { color: var(--signal-ink); }
.legal-toc { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 1rem 0; border-block: 1px solid var(--line); font-size: .9375rem; }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--signal-ink); }
.prose .crumbs a { color: inherit; }

/* Leistungsübersicht */
.svc-rows { display: grid; }
.svc-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(1.75rem, 3.5vw, 2.75rem); border-top: 1px solid var(--line); align-items: center; }
.svc-row:first-child { border-top: 0; padding-top: 0; }
.svc-row:last-child { padding-bottom: 0; }
.svc-row-img { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.svc-row-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.svc-row:hover .svc-row-img img { transform: scale(1.03); }
.svc-row-body { display: grid; gap: .6rem; min-width: 0; justify-items: start; }
.svc-row-body .label { color: var(--signal-ink); }
.svc-row-body .label span { color: var(--steel); }
.svc-row-body h2 { font-size: var(--s2); }
.svc-row-body h2 a { text-decoration: none; }
.svc-row-body h2 a:hover { color: var(--signal-ink); }
.svc-row-body > p { color: var(--steel); max-width: 60ch; }
.svc-points { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.svc-points li { font-size: .8125rem; padding: .25rem .6rem; border: 1px solid var(--line); color: var(--ink); line-height: 1.4; }
.svc-row .service-more { text-decoration: none; }
.svc-row .service-more:hover { color: var(--signal-ink); }
@media (max-width: 760px) { .svc-row { grid-template-columns: 1fr; } }

/* Spam-Schutzfeld, für Menschen unsichtbar */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-note[data-state="error"] { color: #b3261e; font-weight: 600; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-hint { font-size: .875rem; color: var(--steel); line-height: 1.55; }
.form-hint a { color: var(--ink); }
