/* ==========================================================================
   EBEHAKO electronic – Entwurf 4 „Stromlaufplan“
   Die Website als technische Zeichnung: Blattrahmen mit Feldeinteilung, Schriftfeld,
   Abschnittsnummern (Blatt.Abschnitt), Datenblatt-Tabellen, Haarlinien statt Schatten.
   Aufbau:
   0. Schriften  1. Tokens  2. Basis  3. Blatt & Layout  4. Kopf/Navigation
   5. Komponenten  6. Schaltplan (Startseite)  7. Fuß/Schriftfeld  8. Hilfsklassen
   ========================================================================== */

/* 0. Schriften (selbst gehostet, aus @fontsource – siehe README) ------------- */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-greek-500-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-greek-600-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --paper: #fbfaf6;          /* Zeichenpapier */
  --paper-2: #f3f1ea;        /* abgesetzte Flächen */
  --plate: #ffffff;          /* Eingabefelder, Bildträger */
  --ink: #15181c;            /* Tusche */
  --ink-2: #3b4148;          /* Fließtext zweiter Ordnung */
  --muted: #666b72;          /* Beschriftung (≥ 4,9 : 1 auf Papier) */
  --line: #dad6cc;           /* Haarlinie */
  --line-2: #b5b1a6;         /* kräftigere Linie */
  --signal: #0e5fb3;         /* EINE Signalfarbe: Lichtpaus-Blau, abgeleitet vom Logo-Blau #1270c0 */
  --signal-strong: #0a4785;
  --signal-soft: #e3ecf6;
  --blueprint: #0c4b8c;      /* Fläche der Blaupause (Abschnitt „Im Fokus“) */
  --grid: rgba(14, 95, 179, .042);
  --grid-major: rgba(14, 95, 179, .085);

  --m: 22px;                 /* Blattrand oben / rechts / unten */
  --m-left: 46px;            /* Heftrand links – trägt die Abschnittsnummern */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Barlow Semi Condensed", "IBM Plex Sans", "Arial Narrow", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "IBM Plex Sans", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --mm: linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 8px 8px,
        linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 8px 8px;
}
/* Unterhalb der Desktop-Breite entfällt der Blattrand (das Blatt füllt den Bildschirm). */
@media (max-width: 1100px) { :root { --m: 0px; --m-left: 0px; --header-h: 64px; } }

/* 2. Basis ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 64px);
  background: var(--paper);
}

body {
  margin: 0;
  padding: 0 var(--m) 0 var(--m-left);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  counter-reset: blatt var(--blatt, 1);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--signal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--signal-strong); text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head); font-weight: 500; line-height: 1.08; margin: 0 0 .55em; color: var(--ink);
  letter-spacing: -.005em; hyphens: none; overflow-wrap: break-word;
}
/* Lange Komposita enthalten weiche Trennstellen (src/lib/text.ts). Auf breiten Bildschirmen bleiben Wörter ganz,
   erst auf schmalen Bildschirmen darf dort getrennt werden. */
@media (max-width: 640px) { h1, h2 { hyphens: manual; } }
/* h3/h4 stehen oft in schmalen Karten – dort dürfen die weichen Trennstellen bei jeder Breite greifen. */
h3, h4 { hyphens: manual; }
h1 { font-size: clamp(2.25rem, 1.35rem + 3.2vw, 3.75rem); line-height: 1.02; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.5rem); }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.15; letter-spacing: .005em; }
h4 { font-size: 1.05rem; font-weight: 600; }

p, ul, ol, dl, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .25em; }
strong { font-weight: 600; }
small { font-size: .875rem; }
sub { font-size: .7em; }
address { font-style: normal; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6em 1em; font-family: var(--font-mono); font-size: .875rem;
}
.skip-link:focus { left: 8px; top: 8px; }

/* 3. Blatt & Layout -------------------------------------------------------- */

/* Feldeinteilung 1 … 8 im oberen und unteren Blattrand */
.ruler {
  display: grid; grid-template-columns: repeat(8, 1fr);
  height: var(--m); max-width: 1640px; margin-inline: auto;
  font: 400 .625rem/1 var(--font-mono); color: var(--muted);
}
.ruler span { display: grid; place-items: center; }
.ruler span + span { border-left: 1px solid var(--line-2); }

/* Zeichnungsrahmen */
.sheet {
  position: relative; max-width: 1640px; margin-inline: auto;
  border: 1px solid var(--ink); background: var(--paper);
}
@media (max-width: 1100px) {
  .ruler { display: none; }
  .sheet { border: 0; }
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { display: block; counter-reset: sec; }

.section { padding-block: clamp(52px, 7vw, 104px); border-top: 1px solid var(--line); }
.section--soft { background: var(--mm); }
.section--tight { padding-block: clamp(36px, 4.5vw, 60px); }

/* Abschnittsnummer „Blatt.Abschnitt“: auf dem Desktop im Heftrand, sonst als kleine Fahne an der Abschnittslinie */
main > section.section { position: relative; counter-increment: sec; }
main > section.section::before {
  content: counter(blatt) "." counter(sec);
  position: absolute; top: -1px; left: calc(-1 * var(--m-left) - 1px); width: var(--m-left);
  border-top: 1px solid var(--ink); padding-top: 10px; text-align: center;
  font: 500 .6875rem/1 var(--font-mono); color: var(--ink); letter-spacing: .02em;
}
@media (max-width: 1100px) {
  main > section.section::before {
    left: var(--gutter); width: auto; padding: 5px 7px 6px;
    border: 1px solid var(--line-2); border-top: 0; background: var(--paper); color: var(--muted);
  }
}

.section-head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-bottom: .4em; }
.section-head p { color: var(--ink-2); font-size: 1.125rem; margin: 0; }

/* Beschriftungszeile über Überschriften */
.eyebrow {
  display: flex; align-items: center; gap: .75em;
  font: 500 .75rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; flex-shrink: 0; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); counter-reset: pos; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.split {
  display: grid; gap: clamp(28px, 5vw, 72px); align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.split--top { align-items: start; }
.split > * { min-width: 0; }

.prose { max-width: 70ch; }
/* Textseiten: Container bleibt linksbündig am Blattraster, nur die Textspalte wird begrenzt. */
.container.prose { max-width: calc(var(--container) + 2 * var(--gutter)); }
.container.prose > :not(.grid) { max-width: 72ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-bottom: .6em; }

/* 4. Kopf / Navigation ----------------------------------------------------- */
.topbar { border-bottom: 1px solid var(--line); font: 400 .75rem/1.4 var(--font-mono); color: var(--muted); }
.topbar .container { display: flex; justify-content: flex-end; gap: .25rem 1.5rem; flex-wrap: wrap; padding-block: .45rem; }
.topbar-doc { margin-right: auto; text-transform: uppercase; letter-spacing: .08em; }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar a:hover { color: var(--signal); text-decoration: underline; }
@media (max-width: 560px) { .topbar-doc span { display: none; } .topbar .container { gap: .25rem .9rem; } }
@media (max-width: 420px) { .topbar-doc { display: none; } .topbar .container { justify-content: space-between; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--ink);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); position: relative; }

.brand { flex-shrink: 0; display: block; }
.brand img { height: 56px; width: auto; }

.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav-list > li { position: relative; margin: 0; }

.nav-link {
  position: relative; display: flex; align-items: center; gap: .4em;
  height: var(--header-h); padding: 0 .85rem;
  font: 600 .9375rem/1 var(--font-head); letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -1px; height: 3px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-link:hover, .nav-list > li:focus-within > .nav-link { color: var(--signal); }
.nav-link:hover::after, .nav-list > li:focus-within > .nav-link::after { transform: scaleX(1); }
.nav-link .chev { width: 9px; height: 9px; transition: transform .15s; }

/* aktiver Bereich – über data-section am <body> */
body[data-section="kompensation"]  .nav-link[data-nav="kompensation"],
body[data-section="messtechnik"]   .nav-link[data-nav="messtechnik"],
body[data-section="baugruppen"]    .nav-link[data-nav="baugruppen"],
body[data-section="service"]       .nav-link[data-nav="service"],
body[data-section="unternehmen"]   .nav-link[data-nav="unternehmen"] { color: var(--signal); }
body[data-section="kompensation"]  .nav-link[data-nav="kompensation"]::after,
body[data-section="messtechnik"]   .nav-link[data-nav="messtechnik"]::after,
body[data-section="baugruppen"]    .nav-link[data-nav="baugruppen"]::after,
body[data-section="service"]       .nav-link[data-nav="service"]::after,
body[data-section="unternehmen"]   .nav-link[data-nav="unternehmen"]::after { transform: scaleX(1); }

.subnav {
  list-style: none; margin: 0; padding: 0;
  position: absolute; top: 100%; left: 0; min-width: 310px;
  background: var(--paper); border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(21, 24, 28, .08);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  counter-reset: sub;
}
.nav-list > li:hover > .subnav,
.nav-list > li:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
.nav-list > li:hover .chev,
.nav-list > li:focus-within .chev { transform: rotate(180deg); }
.nav-list > li:nth-last-child(-n + 3) > .subnav { left: auto; right: 0; }

.subnav li { margin: 0; counter-increment: sub; }
.subnav li + li { border-top: 1px solid var(--line); }
.subnav a {
  display: grid; grid-template-columns: 1.6rem 1fr; padding: .65rem .9rem .7rem;
  color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; line-height: 1.35;
}
.subnav a::before { content: counter(sub, decimal-leading-zero); font: 400 .6875rem/1.9 var(--font-mono); color: var(--muted); }
.subnav a span { grid-column: 2; display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.subnav a:hover { background: var(--paper-2); color: var(--signal); }
.subnav a:hover::before { color: var(--signal); }

.nav-cta { margin-left: .9rem; }

.nav-toggle {
  display: none; margin-left: auto;
  border: 1.5px solid var(--ink); background: var(--paper); border-radius: 0;
  padding: .5rem .75rem; font: 600 .9375rem/1 var(--font-head); letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink); cursor: pointer; align-items: center; gap: .5rem;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 0 var(--gutter) 1.25rem; margin: 0;
  }
  .site-header.is-open .nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li { border-bottom: 1px solid var(--line); padding-block: .2rem .5rem; }
  .nav-link { height: auto; padding: .8rem 0 .4rem; }
  .nav-link::after { display: none; }
  .nav-link .chev { display: none; }
  .subnav, .nav-list > li:nth-last-child(-n + 3) > .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; min-width: 0; background: none;
  }
  .subnav li + li { border-top: 0; }
  .subnav a { padding: .4rem 0; grid-template-columns: 2rem 1fr; }
  .subnav a span { display: none; }
  .nav-cta { margin: 1rem 0 0; border-bottom: 0 !important; }
  .brand img { height: 48px; }
}

/* 5. Komponenten ----------------------------------------------------------- */

/* Schaltflächen: rechteckig wie Klemmen-/Kabelschilder, mit Anschlusspunkt */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .72em 1.2em .72em 1em; border-radius: 0;
  font: 600 1rem/1.15 var(--font-head); letter-spacing: .03em;
  text-decoration: none; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink);
  transition: background .15s, border-color .15s, color .15s;
}
.btn::before { content: ""; width: .5em; height: .5em; border: 1.5px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.btn:has(> svg:first-child)::before { display: none; }
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; transition: transform .15s; }
.btn:hover svg:last-child { transform: translateX(3px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn--light { background: #fff; color: var(--blueprint); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--small { padding: .5em .9em .5em .7em; font-size: .9rem; gap: .5em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn .text-muted { font: 400 .75rem/1 var(--font-mono); letter-spacing: 0; }

/* Startseite: Kopf */
.hero { position: relative; border-bottom: 1px solid var(--ink); }
/* Millimeterpapier, das nach rechts hin „aufzieht“ – Text steht auf ruhigem Papier */
.hero::before, .page-head::before {
  content: ""; position: absolute; inset: 0; background: var(--mm); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 82%); mask-image: linear-gradient(90deg, transparent 38%, #000 82%);
}
.hero > *, .page-head > * { position: relative; }
.product-head::before { -webkit-mask-image: linear-gradient(270deg, transparent 48%, #000 88%); mask-image: linear-gradient(270deg, transparent 48%, #000 88%); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-block: clamp(44px, 7vw, 104px);
}
.hero h1 { font-size: clamp(2.3rem, 4.9vw, 4.25rem); margin-bottom: .45em; max-width: 14em; }
.hero .lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--ink-2); max-width: 44ch; margin-bottom: 2rem; }
.hero-figure { display: block; justify-self: end; width: 100%; max-width: 380px; color: inherit; text-decoration: none; }
.hero-figure:hover { color: inherit; }
.hero-figure:hover .dim-note { color: var(--signal); }
@media (max-width: 860px) {
  .hero h1 { font-size: clamp(2.3rem, 7vw, 3.4rem); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; max-width: 300px; }
}

.facts {
  list-style: none; padding: 1.1rem 0 0; margin: 2.25rem 0 0; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: .4rem 1.75rem;
  font: 400 .75rem/1.5 var(--font-mono); letter-spacing: .02em; color: var(--ink-2);
}
.facts li { margin: 0; display: flex; align-items: center; gap: .55em; }
.facts li::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--signal); border-radius: 50%; }

/* Maßbild: Bild mit Maßlinien (Breite unten, Höhe rechts) */
.dim { display: grid; grid-template-columns: minmax(0, 1fr) 34px; grid-template-rows: auto 34px auto; }
.dim-img { grid-area: 1 / 1; }
.dim-img img { width: 100%; mix-blend-mode: multiply; }
.dim-v, .dim-h { position: relative; display: grid; place-items: center; font: 500 .75rem/1 var(--font-mono); color: var(--ink); }
.dim-h { grid-area: 2 / 1; margin-top: 8px; border-inline: 1px solid var(--ink); }
.dim-v { grid-area: 1 / 2; margin-left: 8px; border-block: 1px solid var(--ink); }
.dim-h::before, .dim-v::before { content: ""; position: absolute; background-repeat: no-repeat; }
.dim-h::before {
  left: 0; right: 0; top: 50%; height: 7px; margin-top: -3.5px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 3.5L12 0v7z' fill='%2315181c'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M12 3.5L0 0v7z' fill='%2315181c'/%3E%3C/svg%3E"),
    linear-gradient(var(--ink), var(--ink));
  background-position: left center, right center, center;
  background-size: 12px 7px, 12px 7px, 100% 1px;
}
.dim-v::before {
  top: 0; bottom: 0; left: 50%; width: 7px; margin-left: -3.5px;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12'%3E%3Cpath d='M3.5 0L0 12h7z' fill='%2315181c'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12'%3E%3Cpath d='M3.5 12L0 0h7z' fill='%2315181c'/%3E%3C/svg%3E"),
    linear-gradient(var(--ink), var(--ink));
  background-position: center top, center bottom, center;
  background-size: 7px 12px, 7px 12px, 1px 100%;
}
.dim-h span, .dim-v span { position: relative; background: var(--paper); padding: .25em .5em; }
.dim-v span { writing-mode: vertical-rl; transform: rotate(180deg); padding: .5em .25em; }
.dim-note { grid-area: 3 / 1 / 4 / 3; margin: .9rem 0 0; font: 400 .6875rem/1.5 var(--font-mono); color: var(--muted); }
.hero .dim-h span, .hero .dim-v span { background: var(--paper); }

/* Seitenkopf (Unterseiten) */
.page-head { position: relative; padding-block: clamp(24px, 3vw, 36px) clamp(36px, 5vw, 64px); }
.page-head .container { position: relative; }
.page-head h1 { margin-bottom: .35em; max-width: 18em; }
.page-head .lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 66ch; margin: 0; }
/* Blattnummer als große Konturziffer im Seitenkopf */
.page-no {
  position: absolute; right: var(--gutter); bottom: -.06em; pointer-events: none; user-select: none;
  font: 500 clamp(7rem, 15vw, 13rem)/.8 var(--font-head); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
}
.product-head .page-no { display: none; }
@media (min-width: 861px) { .page-head:not(.product-head) h1 { max-width: min(18em, 100% - clamp(170px, 19vw, 260px)); } }
@media (max-width: 860px) { .page-no { display: none; } }

/* Brotkrumen als Dokumentpfad */
.breadcrumb { font: 400 .75rem/1.5 var(--font-mono); color: var(--muted); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .1em .55em; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .55em; color: var(--line-2); }
.breadcrumb li[aria-current] { color: var(--ink); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--signal); text-decoration: underline; }

/* Karten: Datenblatt-Kacheln mit Positionsnummer */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-2);
  color: inherit; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
a.card:hover { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); color: inherit; }
.grid > .card, .grid > .tile { counter-increment: pos; }
.grid > .card::before, .grid > .tile::before {
  content: counter(pos); position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 1.5rem; height: 1.5rem; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 50%; background: var(--paper);
  font: 500 .6875rem/1 var(--font-mono); color: var(--ink);
}
a.card:hover::before, a.tile:hover::before { background: var(--signal); border-color: var(--signal); color: #fff; }
.card-media { --pad: 1.5rem; position: relative; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line); }
.card-media img {
  position: absolute; inset: var(--pad); width: calc(100% - 2 * var(--pad)); height: calc(100% - 2 * var(--pad));
  object-fit: contain; mix-blend-mode: multiply;
}
.card-body { padding: 1.25rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3, .card-body h2 { margin: 0; }
.card-body h2 { font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.card-body p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.card-body > .badge { align-self: flex-start; }
.card-meta { font: 400 .75rem/1.5 var(--font-mono) !important; color: var(--muted) !important; }
.card-kind { font: 400 .6875rem/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-specs { margin: .25rem 0 0; border-top: 1px solid var(--line); }
.card-specs > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.card-specs dt { font: 400 .6875rem/1.6 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.card-specs dd { margin: 0; font: 400 .78rem/1.45 var(--font-mono); color: var(--ink); }
.card-more {
  margin-top: auto; padding-top: .6rem;
  font: 600 1rem/1.2 var(--font-head); letter-spacing: .03em; color: var(--signal);
  display: inline-flex; align-items: center; gap: .45em; text-decoration: none;
}
.card-more svg { width: 1em; height: 1em; transition: transform .15s; }
a.card:hover .card-more svg, a.tile:hover .card-more svg, a.card-more:hover svg, .feature-card--link:hover .card-more { transform: translateX(4px); }
.card--highlight { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--signal); }
.card-media--cover { --pad: 0px; aspect-ratio: 16 / 9; }
.card-media--cover img { object-fit: cover; mix-blend-mode: normal; }
.card-media--small { --pad: 1rem; aspect-ratio: 16 / 9; }
.card--compact .card-body p { font-size: .95rem; }
.link-list { list-style: none; padding: 0; margin: .25rem 0 0; font-size: .9rem; }
.link-list li { margin: .2rem 0; }

/* Bereichs-Kacheln */
.tile {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 1.25rem; align-items: center;
  padding: 1.5rem 3.25rem 1.5rem 1.5rem; border: 1px solid var(--line-2); background: var(--paper);
  color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.tile:hover { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); color: inherit; }
.tile > div { min-width: 0; padding-right: .5rem; }
.tile h3 { margin: 0 0 .4rem; padding-right: 1.5rem; }
.tile p { margin: 0 0 .75rem; color: var(--ink-2); font-size: .98rem; }
.tile img { width: 132px; height: 132px; object-fit: contain; mix-blend-mode: multiply; }
.tile .card-more { padding: 0; }
@media (max-width: 480px) { .tile { grid-template-columns: minmax(0, 1fr) 84px; gap: .75rem; padding: 1.1rem 2.6rem 1.1rem 1.1rem; } .tile img { width: 84px; height: 84px; } }

/* Merkmalslisten: kurzer Strich statt Haken */
.features { list-style: none; padding: 0; display: grid; gap: .55rem; }
.features li { margin: 0; padding-left: 1.5rem; position: relative; color: var(--ink-2); }
.features li::before { content: ""; position: absolute; left: 0; top: calc(.8em - 1px); width: 12px; height: 2px; background: var(--signal); }
.features--2col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 2.5rem; }

/* Kennwerte */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); border-left: 1px solid var(--line); background: var(--paper);
}
.stat { padding: 1.1rem 1.25rem 1.25rem; box-shadow: 1px 0 0 var(--line), 0 -1px 0 var(--line); }
.stat strong { display: block; font: 500 clamp(1.6rem, 1.2rem + 1vw, 2.1rem)/1.1 var(--font-head); color: var(--ink); margin-bottom: .3rem; }
.stat span { color: var(--ink-2); font-size: .9rem; line-height: 1.45; display: block; }

/* Kennzeichnungen (Bauteil-Schildchen) */
.badge {
  display: inline-block; padding: .22em .55em .2em; border-radius: 2px;
  font: 500 .6875rem/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink); white-space: nowrap;
}
.badge--muted { border-color: var(--line-2); color: var(--muted); }
.badge--warn {
  border-style: dashed; text-transform: none; letter-spacing: 0;
  background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(21, 24, 28, .09) 4px 5px) var(--paper);
}
.badge-row { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Tabellen im Datenblatt-Stil */
.table-wrap { overflow-x: auto; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.table { width: 100%; border-collapse: collapse; margin: 0; font-size: .9375rem; }
.table th, .table td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .table th, .table td { min-width: 8.5em; } }
.table th + th, .table th + td, .table td + td { border-left: 1px solid var(--line); }
.table thead th {
  font: 500 .6875rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink); border-bottom: 1px solid var(--ink); white-space: nowrap; vertical-align: bottom;
}
.table thead th sub { text-transform: none; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: var(--paper-2); }
.table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.table th[scope="row"] small { font-weight: 400; }
.table th[scope="row"] a { text-decoration: none; }
.table th[scope="row"] a:hover { text-decoration: underline; }
.table .is-discontinued { color: var(--muted); }
.table .num { white-space: nowrap; font: 400 .8125rem/1.7 var(--font-mono); }

/* Technische Daten (Schlüssel/Wert) */
.specs { display: grid; gap: 2rem clamp(24px, 4vw, 56px); }
.spec-group h3 {
  font: 500 .75rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
  margin: 0; padding-bottom: .6rem; border-bottom: 1.5px solid var(--ink);
}
.spec-list { margin: 0; }
.spec-list > div { display: grid; grid-template-columns: minmax(130px, 36%) minmax(0, 1fr); gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-size: .9rem; }
.spec-list dd { margin: 0; font: 400 .8125rem/1.65 var(--font-mono); color: var(--ink); }
.spec-list dd ul { margin: 0; padding-left: 1.1em; }
.spec-list dd a { word-break: break-word; }
@media (max-width: 560px) { .spec-list > div { grid-template-columns: 1fr; gap: .1rem; } }
.prose .spec-list { border-top: 1.5px solid var(--ink); }

/* Produktkopf */
.product-head .split { align-items: center; }
.product-gallery { display: grid; gap: 1rem; }
.product-gallery .main { display: grid; place-items: center; padding: clamp(8px, 2vw, 24px); }
.product-gallery .main > img { max-height: 440px; width: auto; mix-blend-mode: multiply; }
.product-gallery .main .dim { width: min(100%, 400px); }
.product-gallery .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.product-gallery .thumbs figure { margin: 0; border: 1px solid var(--line-2); background: var(--plate); padding: .4rem; }
.product-gallery .thumbs figcaption { font: 400 .6875rem/1.4 var(--font-mono); color: var(--muted); padding: .4rem .1rem 0; }
.section .product-gallery .main { border: 1px solid var(--line-2); background: var(--paper); }

.key-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.75rem 0;
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.key-facts div { padding: .8rem 1rem .9rem 0; border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.key-facts div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.key-facts strong { display: block; font: 500 1.5rem/1.15 var(--font-head); color: var(--ink); margin-bottom: .15rem; }
.key-facts span { font-size: .85rem; line-height: 1.4; display: block; color: var(--muted); }
@media (max-width: 420px) { .key-facts strong { font-size: 1.3rem; } }

/* Sprungmarken („Inhalt“) */
.toc {
  position: sticky; top: var(--header-h); z-index: 10;
  background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: -1px;
}
.toc .container { display: flex; align-items: center; gap: 1.25rem; }
.toc-label { font: 400 .6875rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; counter-reset: toc; min-width: 0; }
.toc ul::-webkit-scrollbar { display: none; }
.toc li { margin: 0; flex-shrink: 0; counter-increment: toc; }
.toc a {
  display: flex; align-items: baseline; gap: .5em; padding: .85rem .9rem .8rem;
  font: 600 .9375rem/1.2 var(--font-head); letter-spacing: .03em; color: var(--ink); text-decoration: none;
  box-shadow: inset 0 0 0 var(--signal); transition: box-shadow .15s, color .15s;
}
.toc a::before { content: counter(blatt) "." counter(toc); font: 400 .6875rem/1 var(--font-mono); color: var(--muted); letter-spacing: 0; }
.toc a:hover { color: var(--signal); box-shadow: inset 0 -3px 0 var(--signal); }
.toc li:first-child a { padding-left: 0; }
@media (max-width: 640px) { .toc-label { display: none; } }

/* Dokumentenregister (Downloads) */
.register { --reg-cols: 2rem 3.2rem minmax(0, 1fr) 3.2rem 4.75rem; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.register-head {
  display: grid; grid-template-columns: var(--reg-cols); gap: .9rem; padding: .5rem .6rem;
  font: 500 .6875rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.register-head span:last-child { text-align: right; }
.downloads { --reg-cols: 2rem 3.2rem minmax(0, 1fr) 3.2rem 4.75rem; list-style: none; padding: 0; margin: 0; counter-reset: doc; }
.downloads li { margin: 0; counter-increment: doc; }
.downloads li + li { border-top: 1px solid var(--line); }
.downloads a {
  display: grid; grid-template-columns: var(--reg-cols); gap: .9rem; align-items: baseline; padding: .65rem .6rem;
  color: var(--ink); text-decoration: none; transition: background .12s;
}
.downloads a::before { content: counter(doc, decimal-leading-zero); font: 400 .75rem/1.6 var(--font-mono); color: var(--muted); }
.downloads a:hover { background: var(--paper-2); color: var(--ink); }
.downloads a:hover .dl-title { color: var(--signal); text-decoration: underline; text-underline-offset: .2em; }
.downloads a:hover .ftype { background: var(--signal); border-color: var(--signal); color: #fff; }
.downloads .ftype {
  justify-self: start; padding: .1em .4em; border: 1px solid var(--ink); border-radius: 2px;
  font: 500 .6875rem/1.5 var(--font-mono); letter-spacing: .04em; color: var(--ink); background: var(--paper);
}
.downloads .ftype--link { border-style: dashed; }
.downloads .dl-main { min-width: 0; }
.downloads .dl-title { font-weight: 500; display: block; }
.downloads .dl-note { display: block; font-size: .85rem; color: var(--muted); }
.downloads .dl-lang, .downloads .dl-size { font: 400 .75rem/1.6 var(--font-mono); color: var(--muted); white-space: nowrap; }
.downloads .dl-size { text-align: right; }
.downloads--links { --reg-cols: 2rem 3.4rem minmax(0, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); }
@media (max-width: 600px) {
  .register-head { display: none; }
  .downloads:not(.downloads--links) a { grid-template-columns: 1.9rem auto auto minmax(0, 1fr); gap: .15rem .7rem; }
  .downloads:not(.downloads--links) .dl-main { grid-column: 2 / -1; grid-row: 1; }
  .downloads:not(.downloads--links) a::before { grid-row: 1; }
  .downloads:not(.downloads--links) .ftype { grid-column: 2; grid-row: 2; }
  .downloads:not(.downloads--links) .dl-lang { grid-column: 3; grid-row: 2; }
  .downloads:not(.downloads--links) .dl-size { grid-column: 4; grid-row: 2; }
}

/* Hinweis */
.note { padding: 1rem 1.25rem; border: 1px solid var(--ink); border-left: 4px solid var(--signal); background: var(--paper); color: var(--ink-2); }
.note--warn { border-left-color: var(--ink); }
.note strong { color: var(--ink); }

/* Ablauf / Systemaufbau */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; margin: 0; padding: 1.1rem 0 0; position: relative; border-top: 1.5px solid var(--ink); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: .7rem;
  font: 500 .6875rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--signal);
}
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; max-width: 70ch; }
.steps--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.5rem; }
.steps--row li::after {
  content: ""; position: absolute; right: -1px; top: -5px; width: 9px; height: 9px;
  border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); background: transparent;
}

/* Kontaktband */
.cta-band { background: var(--ink); color: #c9cdd2; border-top: 1px solid var(--ink); }
.cta-band .container { display: grid; gap: 2.5rem clamp(32px, 6vw, 96px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; padding-block: clamp(48px, 6.5vw, 88px); }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { margin: 0; max-width: 52ch; }
.cta-band .eyebrow { color: #8fbdf0; }
.contact-lines { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, .55); }
.contact-lines li { margin: 0; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.contact-lines .term { font: 400 .6875rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #9aa1a9; }
.contact-lines a { color: #fff; font: 500 clamp(1.25rem, 1.1rem + .6vw, 1.6rem)/1.2 var(--font-head); letter-spacing: .01em; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { color: #8fbdf0; text-decoration: underline; text-decoration-thickness: 1px; }
.contact-lines .who { font-size: .95rem; color: #c9cdd2; }
.cta-band :focus-visible { outline-color: #8fbdf0; }

/* Kontaktseite: Telefon und E-Mail groß */
.contact-big { display: grid; gap: .1rem; }
.contact-big span { font: 400 .6875rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-big a { font: 500 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.2 var(--font-head); letter-spacing: .01em; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-big a:hover { color: var(--signal); text-decoration: underline; text-decoration-thickness: 1px; }

/* Platzhalter-Seite */
.placeholder { text-align: center; max-width: 620px; margin-inline: auto; }

/* Bilder */
.framed { border: 1px solid var(--ink); background: var(--plate); }
figure.media { margin: 0; }
figure.media figcaption { margin-top: .6rem; font: 400 .75rem/1.5 var(--font-mono); color: var(--muted); }
figure.media figcaption small { font-size: inherit; }
.img-tall { max-height: 520px; margin-inline: auto; }
.gallery-pair { display: flex; gap: 1.5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.gallery-pair img { max-height: 280px; width: auto; mix-blend-mode: multiply; }

.lead-sm { font-size: 1.125rem; color: var(--ink-2); }
.text-soft { color: #b9d2ee; }
.stack { display: grid; gap: 1rem; }

/* Blaupause: Abschnitt „Im Fokus“ – weiße Linien auf Lichtpaus-Blau */
.section--dark {
  --bp-grid: rgba(255, 255, 255, .055); --bp-grid-major: rgba(255, 255, 255, .1);
  background:
    linear-gradient(var(--bp-grid-major) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--bp-grid-major) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(var(--bp-grid) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px) 0 0 / 8px 8px,
    var(--blueprint);
  color: #dbe7f4; border-top-color: var(--blueprint);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: #a9cdf3; }
.section--dark .lead-sm, .section--dark .features li { color: #dbe7f4; }
.section--dark .features li::before { background: #fff; }
.section--dark .framed { border-color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .0); }
.section--dark figure.media figcaption { color: #b9d2ee; }
.section--dark :focus-visible { outline-color: #fff; }
.screens { display: grid; gap: 1.5rem; }

/* Hervorgehobenes Hauptprodukt */
.feature-card {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(20px, 4vw, 56px); align-items: center;
  border: 1px solid var(--ink); background: var(--paper); padding: clamp(20px, 3.5vw, 48px);
}
@media (max-width: 760px) { .feature-card { grid-template-columns: 1fr; } }
.feature-card__media { display: grid; place-items: center; }
.feature-card__media img { max-height: 360px; width: auto; mix-blend-mode: multiply; }
.feature-card__body h2 { margin: .6rem 0 .4rem; }
.feature-card--link { color: inherit; text-decoration: none; transition: box-shadow .15s; }
.feature-card--link:hover { box-shadow: 0 0 0 1px var(--ink); color: inherit; }
.feature-card--link .feature-card__media img { mix-blend-mode: normal; border: 1px solid var(--ink); }
.feature-card--link .card-more { transition: transform .15s; }
.variant-list { list-style: none; padding: 0; margin: 1.5rem 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); }
.variant-list li { margin: 0; padding: .7rem 0 .75rem 1rem; display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: .15rem 1rem; box-shadow: inset 3px 0 0 var(--line); }
.variant-list li + li { border-top: 1px solid var(--line); }
.variant-list li strong { font: 600 1.05rem/1.4 var(--font-head); letter-spacing: .01em; }
.variant-list li span { color: var(--ink-2); font-size: .95rem; }
.variant-list li.is-highlight { box-shadow: inset 3px 0 0 var(--signal); }
.variant-list li.is-highlight strong { color: var(--signal); }
@media (max-width: 520px) { .variant-list li { grid-template-columns: 1fr; } }

/* Auswahlhilfe */
.guide { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.guide li { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; padding: .85rem .25rem .85rem 0; }
.guide li + li { border-top: 1px solid var(--line); }
.guide span { color: var(--ink-2); }
.guide a { font: 600 1.05rem/1.3 var(--font-head); letter-spacing: .02em; white-space: nowrap; text-decoration: none; padding-right: 1.4em; position: relative; }
.guide a::after { content: ""; position: absolute; right: .25em; top: 50%; width: .5em; height: .5em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.guide a:hover { text-decoration: underline; }
@media (max-width: 520px) { .guide li { flex-direction: column; align-items: flex-start; gap: .2rem; } }

/* Zubehör-Einträge */
.item {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px);
  padding: 1.5rem; border: 1px solid var(--line-2); background: var(--paper); scroll-margin-top: calc(var(--header-h) + 72px);
}
.item:target { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.item-media { display: grid; place-items: center; min-height: 120px; }
.item-media img { max-height: 180px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.item-body h3 { margin-bottom: .7rem; font-size: 1.45rem; }
.item-title { display: block; font: 400 .95rem/1.4 var(--font); letter-spacing: 0; color: var(--muted); margin-top: .2rem; }
p.item-title { margin: -.3rem 0 1rem; }
.item-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font: 400 .75rem/1.6 var(--font-mono); color: var(--muted); margin: .9rem 0; }
.item .features { gap: .35rem; }
.item .features li { font-size: .98rem; }
@media (max-width: 600px) { .item { grid-template-columns: 1fr; padding: 1.1rem; } .item-media { min-height: 0; justify-items: start; } .item-media img { max-height: 140px; } }

/* Formel */
.formula {
  font: 400 1.15rem/1.5 var(--font-mono); padding: .9rem 1.1rem; color: var(--ink);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper);
}
.formula sub { font-size: .65em; }

.article > figure.media img { max-width: 100%; }
.article h2 { margin-top: 2.25rem; font-size: 1.6rem; }
.article h2:first-child { margin-top: 0; }
.article figure { margin: 1.75rem 0; }

/* Formulare */
input, select, button { font: inherit; }
input[type="search"], input[type="number"], select {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--ink); border-radius: 0;
  background-color: var(--plate); color: var(--ink); min-height: 2.6rem;
  font: 400 .9375rem/1.3 var(--font-mono);
}
input::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus { outline: 2px solid var(--signal); outline-offset: 1px; border-color: var(--signal); }

/* Rechner als Messgerät */
.calc { border: 1.5px solid var(--ink); background: var(--paper); display: grid; gap: 0; }
.calc h3 {
  margin: 0; padding: .7rem 1.1rem; border-bottom: 1px solid var(--ink);
  font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
}
.calc label { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; gap: 1rem; align-items: center; padding: .7rem 1.1rem; border-bottom: 1px solid var(--line); font-weight: 500; font-size: .95rem; }
.calc label input { text-align: right; font-size: 1rem; }
.calc-label span { display: block; font-weight: 400; font-size: .8125rem; color: var(--muted); }
.calc-result { background: var(--ink); color: #c9cdd2; padding: 1.1rem 1.1rem 1.2rem; display: grid; gap: .3rem; }
.calc-result > span { font: 400 .6875rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #9aa1a9; }
.calc-result strong { font: 500 clamp(2.2rem, 1.6rem + 2vw, 3rem)/1.05 var(--font-mono); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.calc-result small { font: 400 .75rem/1.5 var(--font-mono); color: #c9cdd2; }
.calc-scale { position: relative; height: 34px; margin-top: .9rem; }
.calc-scale::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  border-bottom: 1px solid #c9cdd2;
  background: repeating-linear-gradient(90deg, #c9cdd2 0 1px, transparent 1px 10%) 0 100% / 100% 12px no-repeat,
              repeating-linear-gradient(90deg, #7d848c 0 1px, transparent 1px 2%) 0 100% / 100% 6px no-repeat;
  border-right: 1px solid #c9cdd2;
}
.calc-scale i { position: absolute; top: 0; left: var(--pos, 0%); width: 0; height: 12px; border-left: 2px solid #fff; font-style: normal; }
.calc-scale i::after { content: attr(data-label); position: absolute; top: 16px; left: 0; transform: translateX(-50%); font: 400 .625rem/1 var(--font-mono); color: #fff; white-space: nowrap; }
.calc-scale i.is-ziel { border-left-color: #8fbdf0; }
.calc-scale i.is-ziel::after { color: #8fbdf0; }
.calc-scale-ends { display: flex; justify-content: space-between; font: 400 .625rem/1 var(--font-mono); color: #9aa1a9; margin-top: .1rem; }
.calc-note { margin: 0; padding: .7rem 1.1rem; color: var(--muted); }
.calc:not(.is-enhanced) .calc-result { display: none; }
@media (max-width: 420px) { .calc label { grid-template-columns: minmax(0, 1fr) 6.5rem; } }

.doc-teaser { display: flex; gap: clamp(20px, 4vw, 56px); align-items: center; border: 1px solid var(--ink); padding: clamp(20px, 3.5vw, 40px); background: var(--mm); flex-wrap: wrap; }
.doc-teaser img { width: 150px; border: 1px solid var(--ink); box-shadow: 6px 6px 0 rgba(21, 24, 28, .1); }
.doc-teaser > div { flex: 1 1 320px; }

/* Filterleiste (Parameterfeld) */
.filter-bar {
  display: grid; gap: 1rem 1.1rem; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  padding: 1.25rem; border: 1px solid var(--ink); background: var(--paper);
}
.filter-bar label { display: grid; gap: .35rem; }
.filter-bar label > span:first-child { font: 500 .6875rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filter-search { grid-column: 1 / -1; }
.filter-status { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font: 400 .8125rem/1.4 var(--font-mono); color: var(--ink-2); padding-top: .9rem; border-top: 1px solid var(--line); }
.filter-status strong { font-weight: 500; color: var(--signal); }
.filter-bar--stacked { grid-template-columns: 1fr; }
[data-filter-root]:not(.is-enhanced) .filter-bar { display: none; }
.input-unit { position: relative; display: block; }
.input-unit input { padding-right: 3.2rem; }
.input-unit > span { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); font: 400 .8125rem/1 var(--font-mono); pointer-events: none; }

/* Kondensatorkarten */
.cap-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.cap { border: 1px solid var(--line-2); background: var(--paper); padding: 1.25rem; display: grid; gap: .9rem; scroll-margin-top: calc(var(--header-h) + 72px); }
.cap:target { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.cap-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .75rem; align-items: baseline; }
.cap-head h3 { margin: 0; grid-column: 1; grid-row: 1; font-size: 1.45rem; }
.cap-brand {
  grid-column: 2; grid-row: 1; justify-self: end;
  font: 500 .6875rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: .2em .55em;
  border-radius: 2px; color: var(--paper); background: var(--ink);
}
.cap-code { grid-column: 1 / -1; font: 400 .75rem/1.5 var(--font-mono); color: var(--muted); }
.cap-use { margin: 0; color: var(--ink-2); font-size: .95rem; }
.cap-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); }
.cap-facts div { padding: .5rem .75rem .55rem 0; }
.cap-facts div:nth-child(even) { padding-left: .75rem; border-left: 1px solid var(--line); }
.cap-facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
.cap-facts dt { font: 400 .625rem/1.5 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cap-facts dd { margin: 0; font: 500 .8125rem/1.5 var(--font-mono); }
.cap-more summary { cursor: pointer; font: 600 1rem/1.3 var(--font-head); letter-spacing: .02em; color: var(--signal); }
.cap-more[open] summary { margin-bottom: .6rem; }
.cap-more .spec-list { border-top: 1px solid var(--ink); }
.cap-more .spec-list > div { grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); }
.cap-actions { margin-top: .1rem; gap: .5rem; }

/* Downloads (Register mit Seitenleiste) */
.downloads-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .downloads-layout { grid-template-columns: 1fr; } }
.downloads-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.5rem; }
@media (max-width: 900px) { .downloads-side { position: static; } .side-nav { display: none; } }
.side-nav ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); counter-reset: side; }
.side-nav li { margin: 0; border-bottom: 1px solid var(--line); counter-increment: side; }
.side-nav a { display: grid; grid-template-columns: 2rem 1fr; padding: .5rem 0; color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.side-nav a::before { content: counter(side, decimal-leading-zero); font: 400 .6875rem/2 var(--font-mono); color: var(--muted); }
.side-nav a:hover { color: var(--signal); }
.dl-category { scroll-margin-top: calc(var(--header-h) + 20px); padding-bottom: 2.5rem; margin-bottom: 2.5rem; }
.dl-category:last-of-type { margin-bottom: 0; }
.dl-category > h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: .35em; }
.dl-group { margin-top: 1.5rem; }
.dl-group h3 { font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: .6rem; }

/* Zeitachse (Reglergenerationen) */
.timeline { --axis: 5.5rem; list-style: none; padding: 0 0 2.5rem; margin: 0; display: grid; gap: 1.25rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: var(--axis); top: 0; bottom: 0; width: 9px; margin-left: -8px;
  border-right: 1.5px solid var(--ink);
  background: repeating-linear-gradient(180deg, var(--line-2) 0 1px, transparent 1px 8px) right top / 5px 100% no-repeat;
}
.timeline::after {
  content: "t"; position: absolute; left: var(--axis); bottom: -.2rem; transform: translateX(-50%);
  width: 0; height: 0; border: 5px solid transparent; border-top: 11px solid var(--ink); border-bottom: 0;
  font: 400 .75rem/1 var(--font-mono); text-indent: 12px; color: var(--ink); white-space: nowrap; line-height: 0;
}
.timeline li { margin: 0; display: grid; grid-template-columns: var(--axis) minmax(0, 1fr); align-items: start; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(var(--axis) - 14px); top: 1.55rem; width: 28px; height: 1.5px; background: var(--ink); }
.timeline-year { font: 500 .875rem/1 var(--font-mono); color: var(--ink); padding: 1.2rem 22px 0 0; text-align: right; }
.timeline-card { display: flex; gap: 1.5rem; align-items: center; border: 1px solid var(--line-2); padding: 1.1rem 1.25rem; background: var(--paper); margin-left: 1.75rem; }
.timeline-card img { width: 104px; height: 104px; object-fit: contain; flex-shrink: 0; mix-blend-mode: multiply; }
.timeline-card h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
.timeline-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 560px) {
  .timeline { --axis: 4.1rem; }
  .timeline-year { font-size: .75rem; padding-right: 16px; }
  .timeline li::before { left: calc(var(--axis) - 10px); width: 20px; }
  .timeline-card { flex-direction: column; align-items: flex-start; gap: .75rem; margin-left: 1rem; padding: 1rem; }
  .timeline-card img { width: 80px; height: 80px; }
}

.chronik { margin: 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.chronik > div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: .75rem 0; }
.chronik > div + div { border-top: 1px solid var(--line); }
.chronik dt { font: 500 .875rem/1.9 var(--font-mono); color: var(--ink); padding-left: .25rem; }
.chronik dd { margin: 0; }
.chronik ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); }

/* 6. Schaltplan (Startseite) ----------------------------------------------- */
.plan { margin: 0; border: 1px solid var(--ink); background: var(--mm), var(--paper); }
.plan-scroll { overflow-x: auto; }
.plan-svg { display: block; width: 100%; height: auto; min-width: 940px; font-family: var(--font-mono); }
.plan-svg text { fill: var(--ink); }
.plan-svg .w { fill: none; stroke: var(--dev-stroke, var(--ink)); stroke-width: 1.6; }
.plan-svg .w--thin { stroke-width: 1.1; }
.plan-svg .bus { fill: none; stroke: var(--ink); stroke-width: 4.5; }
.plan-svg .m { fill: none; stroke: var(--ink); stroke-width: 1; }
.plan-svg .ctl { fill: none; stroke: var(--dev-stroke, var(--ink)); stroke-width: 1; stroke-dasharray: 5 4; }
.plan-svg .box { fill: none; stroke: #8f8b81; stroke-width: 1; stroke-dasharray: 14 4 2 4; }
.plan-svg .sym { fill: var(--dev-fill, var(--paper)); stroke: var(--dev-stroke, var(--ink)); stroke-width: 1.6; transition: fill .15s, stroke .15s; }
.plan-svg .sym--open, .plan-svg .sym--plate { fill: none; }
.plan-svg .sym--thin { stroke-width: 1.1; }
.plan-svg .sym--main { stroke-width: 2.2; }
.plan-svg .sym--plate { stroke-width: 2.6; }
.plan-svg .dot, .plan-svg .fill { fill: var(--dev-stroke, var(--ink)); }
.plan-svg .dots circle { fill: var(--muted); }
.plan-svg .ref { font-size: 13px; font-weight: 500; fill: var(--dev-stroke, var(--ink)); }
.plan-svg .ref--s { font-size: 10.5px; font-weight: 400; fill: var(--dev-stroke, var(--muted)); }
.plan-svg .ref--l { font-size: 15px; }
.plan-svg .lbl { font-size: 11px; fill: var(--muted); }
.plan-svg .lbl--s { font-size: 10px; }
.plan-svg .lbl--head { letter-spacing: .1em; text-transform: uppercase; }
.plan-svg .rows text { text-anchor: end; }
.plan-svg .lnk { font-size: 11.5px; font-weight: 500; fill: var(--signal); }
.plan-svg .lnk--l { font-size: 15px; }
.plan-svg .glyph { font: 600 16px var(--font-head); fill: var(--dev-stroke, var(--ink)); }
.plan-svg .glyph--s { font: 400 9px var(--font-mono); }
.plan-svg .glyph--m { font: 500 11px var(--font-mono); }
.plan-svg .hit { fill: transparent; stroke: none; pointer-events: all; }

.plan-svg .dev { cursor: pointer; outline: none; }
.plan-svg .flow {
  fill: none; stroke: var(--signal); stroke-width: 3.5; stroke-dasharray: 8 7; opacity: var(--dev-flow, 0);
  transition: opacity .2s; pointer-events: none;
  animation: plan-flow .9s linear infinite; animation-play-state: var(--dev-play, paused);
}
@keyframes plan-flow { to { stroke-dashoffset: -15; } }
.plan-svg .dev:hover .lnk, .plan-svg .dev:focus-visible .lnk { text-decoration: underline; }
.plan-svg .dev:focus-visible .hit { stroke: var(--signal); stroke-width: 2; }

/* aktiv: Zeiger/Fokus auf dem Element im Plan – oder auf der zugehörigen Zeile der Geräteliste (:has) */
.plan-svg .dev:hover, .plan-svg .dev:focus-visible,
.section--plan:has(.bom [data-dev="a1"]:is(:hover, :focus-visible)) .dev[data-dev="a1"],
.section--plan:has(.bom [data-dev="x1"]:is(:hover, :focus-visible)) .dev[data-dev="x1"],
.section--plan:has(.bom [data-dev="a2"]:is(:hover, :focus-visible)) .dev[data-dev="a2"],
.section--plan:has(.bom [data-dev="v1"]:is(:hover, :focus-visible)) .dev[data-dev="v1"],
.section--plan:has(.bom [data-dev="c"]:is(:hover, :focus-visible)) .dev[data-dev="c"],
.section--plan:has(.bom [data-dev="p1"]:is(:hover, :focus-visible)) .dev[data-dev="p1"],
.section--plan:has(.bom [data-dev="t2"]:is(:hover, :focus-visible)) .dev[data-dev="t2"],
.section--plan:has(.bom [data-dev="m"]:is(:hover, :focus-visible)) .dev[data-dev="m"] {
  --dev-stroke: var(--signal); --dev-fill: var(--signal-soft); --dev-flow: 1; --dev-play: running;
}

/* Einschalten: einmaliger Durchlauf über Einspeisung, Sammelschiene und Abgänge – danach blendet die Spur aus.
   Der Plan selbst ist immer vollständig sichtbar; die Spur liegt nur darüber. */
.plan-svg .traces { animation: plan-fade .9s ease 3.2s 1 both; pointer-events: none; }
.plan-svg .trace {
  fill: none; stroke: var(--signal); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: plan-draw .45s ease-out 1 both;
}
@keyframes plan-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes plan-fade { from { opacity: .9; } to { opacity: 0; } }

.plan-caption {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; border-top: 1px solid var(--ink); background: var(--paper);
  font: 400 .75rem/1.5 var(--font-mono); color: var(--ink);
}
.plan-caption span { padding: .55rem .9rem; }
.plan-caption span + span { border-left: 1px solid var(--ink); }
.plan-caption span:first-child { font-weight: 500; }
.plan-hint { color: var(--muted); }
@media (max-width: 960px) {
  .plan-hint { font-size: 0; }
  .plan-hint::after { content: "↔ verschieben"; font-size: .75rem; }
}
@media (max-width: 560px) {
  .plan-caption { grid-template-columns: auto minmax(0, 1fr); }
  .plan-hint { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--ink); }
}

/* Geräteliste */
.bom { --bom-cols: 5.5rem minmax(0, 1fr) minmax(0, 1.25fr) 3rem; margin-top: clamp(24px, 3vw, 40px); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); }
.bom-head {
  display: grid; grid-template-columns: var(--bom-cols); gap: 1rem; padding: .5rem .6rem;
  font: 500 .6875rem/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--ink);
}
.bom-head span:last-child { text-align: right; }
.bom ul { list-style: none; margin: 0; padding: 0; }
.bom li { margin: 0; }
.bom li + li { border-top: 1px solid var(--line); }
.bom a { display: grid; grid-template-columns: var(--bom-cols); gap: 1rem; align-items: baseline; padding: .6rem .6rem .65rem; color: var(--ink); text-decoration: none; transition: background .12s; }
.bom a:hover { background: var(--paper-2); }
.bom-ref { font: 500 .8125rem/1.5 var(--font-mono); color: var(--signal); }
.bom-name { font: 600 1.1rem/1.3 var(--font-head); letter-spacing: .01em; }
.bom a:hover .bom-name { color: var(--signal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.bom-typen { font: 400 .78rem/1.6 var(--font-mono); color: var(--muted); }
.bom-blatt { font: 400 .78rem/1.6 var(--font-mono); color: var(--ink); text-align: right; }
@media (max-width: 760px) {
  .bom { --bom-cols: 4.4rem minmax(0, 1fr) 2rem; }
  .bom-head span:nth-child(3) { display: none; }
  .bom a { gap: .1rem .75rem; }
  .bom-typen { grid-column: 2 / 3; grid-row: 2; }
  .bom-blatt { grid-column: 3; grid-row: 1; }
}

/* 7. Fuß / Schriftfeld ----------------------------------------------------- */
.site-footer { border-top: 1px solid var(--ink); font-size: .9375rem; color: var(--ink-2); }
.cta-band + .site-footer { border-top: 0; }
.footer-grid {
  display: grid; gap: 2rem clamp(24px, 4vw, 56px); padding-block: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 48px);
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 440px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 {
  font: 500 .6875rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink);
  margin: 0 0 .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--ink);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .4rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--signal); text-decoration: underline; }
.site-footer address { line-height: 1.7; }
.footer-company { font-weight: 600; color: var(--ink); }

.titleblock {
  margin: 0; display: grid; grid-template-columns: minmax(230px, 1.3fr) minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); background: var(--paper);
}
.tb { min-width: 0; padding: .5rem .8rem .7rem; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.tb--benennung, .tb--bereich, .tb--pfad, .tb--stand { border-right-width: 1px; }
.tb--benennung, .tb--bereich, .tb--blatt { border-bottom-width: 1px; }
.tb dt { font: 400 .625rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.tb dd { margin: 0; font: 400 .8125rem/1.45 var(--font-mono); color: var(--ink); overflow-wrap: anywhere; }
.tb--firma { grid-row: span 2; }
.tb--firma img { height: 50px; width: auto; margin: .15rem 0 .5rem 0; }
.tb--firma dd span { display: block; font-size: .6875rem; color: var(--muted); }
.tb--benennung dd { font: 500 1.4rem/1.15 var(--font-head); letter-spacing: 0; hyphens: manual; }
.tb--blatt dd strong { font: 500 1.4rem/1.15 var(--font-head); margin-right: .15em; }
@media (max-width: 820px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .tb--firma { grid-row: auto; }
  .tb--firma, .tb--benennung, .tb--pfad { grid-column: 1 / -1; border-right-width: 1.5px; }
  .tb--blatt, .tb--firma, .tb--pfad { border-bottom-width: 1px; }
  .tb--stand, .tb--qm { border-bottom-width: 1.5px; }
}

.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.1rem 1.3rem; font: 400 .75rem/1.5 var(--font-mono); color: var(--muted); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-bottom li { margin: 0; }

/* 8. Hilfsklassen ---------------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3.5rem; }
.text-muted { color: var(--muted); }
.center { text-align: center; }
.btn-row--center { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .plan-svg .traces { display: none; }
}

@media print {
  body { padding: 0; }
  .ruler, .nav, .nav-toggle, .toc, .skip-link { display: none !important; }
  .site-header { position: static; }
  .sheet { border: 0; }
  .section--dark, .cta-band { background: none !important; color: var(--ink); }
  .section--dark h2, .cta-band h2, .contact-lines a { color: var(--ink) !important; }
}
