/* Layout: klares Modulraster nach der Bildmarke. Text links, Werkstück rechts; das 2×2-Modul ordnet Abschnitte, Schritte und Gruppen. */
:root {
  /* Markenfarben */
  --navy: #1E2A38;         /* Primär */
  --orange: #F2762E;       /* einziger Akzent: Flächen, Punkte, CTA */
  --grey: #6B7683;         /* Sekundärtext */
  /* Hellmodus, neutral */
  --bg: #FFFFFF;
  --band: #F2F4F7;         /* Flächen für Bänder, Formular, Tabellenköpfe */
  --ink: #1E2A38;
  --muted: #6B7683;
  --muted-band: #5A6572;   /* Grau auf --band, abgedunkelt für AA */
  --rule: #D9DEE5;
  --grid: rgba(30, 42, 56, .045);
  --logo-ink: #1E2A38;     /* dunkle Module und Wortmarke */
  --inverse-bg: #1E2A38;   /* dunkle Box im Hellmodus */
  --inverse-ink: #FFFFFF;
  --inverse-muted: #C3CAD3;
  --focus: #1E2A38;
  --orange-soft: rgba(242, 118, 46, .16);
  --photo-ink: #1E2A38;    /* Beschriftung auf Fotos, themenunabhängig */
  --photo-paper: #FFFFFF;

  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", "Nimbus Sans", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.25rem + 1.5vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.35rem + 3.3vw, 3.75rem);
  --wrap: 72rem;
  --r: .22em;              /* Radius-Verhältnis der Module: 28/130 */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121A24; --band: #18222E; --ink: #EDF0F3; --muted: #A3ADB8; --muted-band: #A3ADB8;
    --rule: #2C3A4B; --grid: rgba(237, 240, 243, .035); --logo-ink: #FFFFFF;
    --inverse-bg: #1E2A38; --inverse-ink: #FFFFFF; --inverse-muted: #B9C2CC;
    --focus: #F2762E; --orange-soft: rgba(242, 118, 46, .2);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121A24; --band: #18222E; --ink: #EDF0F3; --muted: #A3ADB8; --muted-band: #A3ADB8;
  --rule: #2C3A4B; --grid: rgba(237, 240, 243, .035); --logo-ink: #FFFFFF;
  --inverse-bg: #1E2A38; --inverse-ink: #FFFFFF; --inverse-muted: #B9C2CC;
  --focus: #F2762E; --orange-soft: rgba(242, 118, 46, .2);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.6; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #FFFFFF; padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.band { background: var(--band); --muted: var(--muted-band); }
.section-head { display: grid; gap: .6rem; max-width: 40rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head p { color: var(--muted); }
/* Modulmarke vor jeder Abschnittsüberschrift: 2×2, oben rechts orange */
.mod {
  display: inline-block; width: 10px; height: 10px; border-radius: 2.2px; margin: 0 1.6rem .55rem 0;
  background: var(--logo-ink);
  box-shadow: 11.5px 0 0 var(--orange), 0 11.5px 0 var(--logo-ink), 11.5px 11.5px 0 var(--logo-ink);
}
.tech { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }
.dot { /* Satzpunkt aus der Wortmarke */
  display: inline-block; width: .2em; height: .2em; border-radius: 22%; background: var(--orange);
  margin-left: .06em; vertical-align: baseline;
}

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--bg); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: .9rem; }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; }
.brand svg { height: 58px; width: auto; display: block; }
.brand .lk { fill: var(--logo-ink); }
.brand .lo { fill: #F2762E; }
.brand .lt { fill: var(--muted); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem clamp(.85rem, 2vw, 1.6rem); }
.site-nav a { text-decoration: none; font-weight: 700; font-size: clamp(.95rem, .9rem + .3vw, 1.0625rem); padding-block: .35rem; display: inline-block; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--orange); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .7rem 1.3rem; border-radius: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Hero */
.hero {
  padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px; background-position: -1px -1px;
}
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-text { display: grid; gap: 1.4rem; max-width: 36rem; min-width: 0; }
.hero h1 { font-size: var(--step-3); letter-spacing: -.025em; line-height: 1.04; }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 33rem; }
.note-fit {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start;
  background: var(--band); border-radius: 8px; padding: .9rem 1rem; color: var(--muted-band); font-size: .98rem; max-width: 33rem;
}
.note-fit strong { color: var(--ink); }
.note-fit svg { width: 20px; height: 20px; margin-top: .15rem; color: var(--ink); }
.hero-figure { margin: 0; justify-self: center; width: 100%; max-width: 34rem; min-width: 0; }
.photo { position: relative; border-radius: 12px; overflow: hidden; background: var(--band); }
.photo img { width: 100%; }
.photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cap { margin-top: .8rem; font-family: var(--mono); font-size: var(--step--1); color: var(--muted); display: flex; gap: .6rem; align-items: baseline; }
.cap b { color: var(--ink); font-weight: 700; }
.cap::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: translateY(-1px); }

/* Werkstatt-Beispiele */
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.ref { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.ref .img { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--band); max-width: 100%; }
.ref .img img { width: 100%; height: 100%; object-fit: cover; }
.ref h3 { font-size: 1.15rem; }
.ref p { color: var(--muted); }
.ref .tech { color: var(--muted); }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; display: grid; gap: .5rem;
  padding: 1.4rem 0 1.6rem 3.5rem; border-top: 1px solid var(--rule); min-width: 0;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1.25rem;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem; border-radius: .53rem; /* 28/130 */
  background: var(--logo-ink); color: var(--bg);
}
.steps li:last-child::before { background: var(--orange); color: var(--navy); }
.steps p { color: var(--muted); }

/* Materialien */
.mat-groups { display: grid; gap: 1.25rem; }
.mat-group { border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem 1.25rem 1.1rem; display: grid; gap: 1rem; align-content: start; min-width: 0; background: var(--bg); }
.mat-group header { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: center; }
.mat-group h3 { font-size: 1.15rem; }
.mat-group header p { grid-column: 2; color: var(--muted); font-size: .92rem; margin-top: -.6rem; }
.level { display: grid; grid-template-columns: repeat(2, 11px); gap: 2px; }
.level i { width: 11px; height: 11px; border-radius: 2.4px; background: var(--rule); }
.level i.on { background: var(--logo-ink); }
.level i.hi { background: var(--orange); }
.mat-list { margin: 0; display: grid; gap: 0; }
.mat-list div { padding: .7rem 0; border-top: 1px solid var(--rule); display: grid; gap: .15rem; }
.mat-list dt { font-family: var(--mono); font-weight: 700; font-size: .95rem; }
.mat-list dd { margin: 0; color: var(--muted); font-size: .97rem; }
.multi {
  margin-top: 1.25rem; background: var(--inverse-bg); color: var(--inverse-ink); border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 1rem; align-items: center;
}
.multi h3 { font-size: 1.2rem; }
.multi p { color: var(--inverse-muted); }
.multi a { color: var(--inverse-ink); font-weight: 700; }
.multi .swatches { display: grid; grid-template-columns: repeat(4, 18px); gap: 4px; }
.multi .swatches i { width: 18px; height: 18px; border-radius: 4px; background: #FFFFFF; }
.multi .swatches i:nth-child(2) { background: #F2762E; }
.multi .swatches i:nth-child(3) { background: #6B7683; }
.multi .swatches i:nth-child(4) { background: transparent; border: 2px solid #FFFFFF; }
.mat-foot { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; color: var(--muted); }
.mat-foot strong { color: var(--ink); }

/* Was wir nicht drucken */
.nogo-grid { display: grid; gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: start; }
.nogo-grid .section-head { align-content: start; height: auto; }
.nogo-grid > * { min-width: 0; }
.nogo { list-style: none; margin: 0; padding: 0; display: grid; }
.nogo li { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; padding: .85rem 0; border-top: 1px solid var(--rule); }
.nogo li:last-child { border-bottom: 1px solid var(--rule); }
.nogo svg { width: 1.2rem; height: 1.2rem; margin-top: .25rem; color: var(--ink); }
.nogo span b { display: block; }
.nogo span small { display: block; color: var(--muted); font-size: .95rem; }
.small-note { margin-top: 1rem; color: var(--muted); }

/* Eigene Designs */
.designs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
  min-height: 40px; padding: .35rem 1rem; border-radius: 8px;
  border: 1.5px solid var(--rule); background: var(--bg); color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--logo-ink); border-color: var(--logo-ink); color: var(--bg); }
.chip .n { font-family: var(--mono); font-weight: 400; opacity: .75; margin-left: .35rem; }
.products { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.product { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.product .img { aspect-ratio: 5 / 4; overflow: hidden; background: var(--bg); border-radius: 10px; max-width: 100%; }
.product .img img { width: 100%; height: 100%; object-fit: cover; }
.product .img img.sq { object-position: 50% 0; }
.product .body { display: grid; grid-template-rows: auto 1fr auto; gap: .45rem; padding-top: .85rem; }
.product .meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.badge { font-family: var(--mono); font-size: .78rem; font-weight: 700; padding: .2rem .55rem; border-radius: 4px; white-space: nowrap; }
.badge.print { background: var(--orange); color: var(--navy); }
.badge.stl { border: 1.5px solid var(--ink); color: var(--ink); padding: .1rem .5rem; }
.price { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.product h3 { font-size: 1.05rem; line-height: 1.3; letter-spacing: 0; }
.product .more { font-weight: 700; font-size: .95rem; justify-self: start; }
.designs-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.designs-foot p { color: var(--muted); font-size: .95rem; }

/* Kontakt */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.contact-grid > * { min-width: 0; }
.direct { display: grid; gap: 1.2rem; align-content: start; }
.mailbox { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.mail-addr { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; user-select: all; }
.copy { font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; padding: .35rem .8rem; min-height: 36px; border-radius: 8px; border: 1.5px solid var(--rule); background: var(--bg); color: var(--ink); }
.copy:hover { border-color: var(--ink); }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; }
.facts dt { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); padding-top: .2rem; }
.facts dd { margin: 0; }
form.request { background: var(--band); border-radius: 12px; padding: clamp(1.1rem, 3vw, 2rem); display: grid; gap: 1.1rem; --muted: var(--muted-band); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; }
.field .hint { font-size: .9rem; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--rule); border-radius: 8px; padding: .7rem .8rem; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.field textarea { min-height: 8.5rem; resize: vertical; }
.attach-note { display: grid; grid-template-columns: auto 1fr; gap: .6rem; font-size: .95rem; color: var(--muted); padding: .75rem .9rem; border: 1.5px dashed var(--rule); border-radius: 8px; }
.attach-note svg { width: 1.2rem; height: 1.2rem; color: var(--ink); margin-top: .15rem; }
.form-status { font-size: .95rem; color: var(--muted); min-height: 1.5em; }
.form-status a { font-weight: 700; color: var(--ink); }

/* Footer + Rechtliches */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2rem; font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-foot nav { display: flex; gap: 1.25rem; }
.site-foot p { color: var(--muted); }
.legal { border-top: 1px solid var(--rule); }
.legal .wrap { display: grid; gap: 3rem; }
.legal article { display: grid; gap: 1rem; max-width: 44rem; min-width: 0; align-content: start; }
.legal .wrap { align-items: start; }
.legal h2 { font-size: var(--step-1); }
.legal h3 { font-size: 1rem; margin-top: .5rem; }
.legal ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal p, .legal li { color: var(--muted); font-size: .98rem; }
.draft { font-family: var(--mono); font-size: var(--step--1); color: var(--ink); border-left: 6px solid var(--orange); background: var(--orange-soft); padding: .55rem .8rem; border-radius: 4px; }
.ph { font-family: var(--mono); font-size: .9em; color: var(--ink); background: var(--orange-soft); padding: 0 .25rem; border-radius: 3px; }
.legal address { font-style: normal; color: var(--ink); line-height: 1.7; }

/* Werkstatt-Technik: dunkles Geräte-Panel, in beiden Themes gleich */
.technik {
  background: #1E2A38;
  --bg: #17212D; --band: #253446; --ink: #EDF0F3; --muted: #B9C2CC; --muted-band: #B9C2CC;
  --rule: #3A4A5E; --logo-ink: #FFFFFF; --focus: #F2762E;
  color: var(--ink); color-scheme: dark;
}
.technik .section-head p { color: var(--muted); }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.tab {
  font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; text-align: left;
  min-height: 48px; padding: .55rem .9rem; border-radius: 8px;
  border: 1.5px solid var(--rule); background: transparent; color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: .05rem; min-width: 0;
  transition: background-color .15s, border-color .15s, color .15s;
}
.tab small { font-family: var(--mono); font-weight: 400; font-size: .75rem; color: var(--muted); }
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: #F2762E; border-color: #F2762E; color: #1E2A38; }
.tab[aria-selected="true"] small { color: #1E2A38; }
.tabpanel { border: 1.5px solid var(--rule); border-radius: 12px; padding: clamp(1rem, 3vw, 1.75rem); }
.tabpanel:focus-visible { outline-offset: 4px; }
.device { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.device > * { min-width: 0; }
.device-photo { margin: 0; position: relative; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--band); }
.device-photo img { width: 100%; height: 100%; object-fit: cover; }
.device-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); pointer-events: none; }
.device-photo figcaption {
  position: absolute; left: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .45rem;
  background: #1E2A38; color: #FFFFFF; font-family: var(--mono); font-size: .78rem; font-weight: 700;
  padding: .3rem .6rem; border-radius: 6px;
}
.device-photo.label-top figcaption { top: .75rem; bottom: auto; left: auto; right: .75rem; } /* Scanner: Balken liegt unten im Bild */
.device-photo figcaption span { width: 8px; height: 8px; border-radius: 2px; background: #F2762E; }
.device h3 { font-size: var(--step-1); }
.device .kind { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); margin-bottom: .35rem; }
.spec-list { margin: 1rem 0 0; display: grid; }
.spec-list > div { display: grid; grid-template-columns: minmax(7.5rem, auto) 1fr; gap: .2rem 1rem; padding: .65rem 0; border-top: 1px solid var(--rule); }
.spec-list dt { font-family: var(--mono); font-size: .85rem; color: var(--muted); padding-top: .15rem; }
.spec-list dd { margin: 0; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); white-space: nowrap; }
.mode { display: grid; gap: .1rem; }
.mode + .mode { margin-top: .6rem; }
.mode b { font-weight: 700; }
.mode span { color: var(--muted); font-size: .95rem; }
.use { margin-top: 1.1rem; padding: .9rem 1rem; background: var(--band); border-radius: 8px; display: grid; gap: .3rem; }
.use h4 { margin: 0; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }
.use h4::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #F2762E; }
.use p { color: var(--muted); }
.fineprint { margin-top: .9rem; font-size: .9rem; color: var(--muted); }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; counter-reset: ch; }
.chain li { counter-increment: ch; position: relative; display: grid; grid-template-columns: 2.2rem 1fr; gap: .2rem .8rem; padding: .7rem .9rem; border-radius: 8px; background: var(--band); min-width: 0; }
.chain li::before { content: counter(ch); grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: .48rem; display: grid; place-items: center; background: #FFFFFF; color: #1E2A38; font-weight: 700; }
.chain li:last-child::before { background: #F2762E; }
.chain b { display: block; }
.chain span { color: var(--muted); font-size: .93rem; }
.combos { margin-top: 1.5rem; display: grid; gap: .75rem; }
.combos h4 { margin: 0 0 .25rem; font-size: 1rem; }
.combo { display: grid; gap: .2rem; align-content: start; padding: .8rem 0; border-top: 1px solid var(--rule); }
.combo b { font-weight: 700; }
.combo span { color: var(--muted); }
.combo a { color: var(--ink); font-weight: 700; }

/* Rechner */
.fit { margin-top: clamp(2rem, 4vw, 3rem); border: 1.5px solid var(--rule); border-radius: 12px; padding: clamp(1rem, 3vw, 1.75rem); display: grid; gap: 1.25rem; }
.fit-grid { display: grid; gap: 1.25rem; }
.fit-grid > * { min-width: 0; }
.fit h3 { font-size: var(--step-1); }
.fit .lead { color: var(--muted); margin-top: .35rem; }
.dims { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; }
.dim { display: grid; gap: .3rem; flex: 1 1 4.5rem; min-width: 0; }
.dim label { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.dim input {
  font: inherit; font-family: var(--mono); font-size: 1.1rem; font-variant-numeric: tabular-nums; width: 100%;
  color: var(--ink); background: var(--bg); border: 1.5px solid var(--rule); border-radius: 8px; padding: .6rem .7rem;
}
.dim input:focus { outline: none; border-color: #F2762E; box-shadow: 0 0 0 1px #F2762E; }
.dim input[aria-invalid="true"] { border-color: #F2762E; border-style: dashed; }
.times { font-family: var(--mono); color: var(--muted); padding-bottom: .7rem; }
.unit { font-family: var(--mono); color: var(--muted); padding-bottom: .7rem; }
.result { display: grid; gap: .75rem; align-content: start; }
.result .row { display: grid; gap: .35rem; padding: .8rem 1rem; background: var(--band); border-radius: 8px; }
.result .label { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.result .val { font-weight: 700; }
.result .val small { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.verdicts { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.verdicts li { display: flex; align-items: center; gap: .55rem; }
.verdicts .mark { flex: none; width: 1.35rem; height: 1.35rem; border-radius: 5px; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.verdicts .yes .mark { background: #F2762E; color: #1E2A38; }
.verdicts .no .mark { border: 1.5px solid var(--rule); color: var(--muted); }
.verdicts .no { color: var(--muted); }
.result .hint-msg { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (min-width: 46rem) {
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 52rem) {
  .device { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .fit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .combos { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; }
  .combos h4 { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .chain { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chain li { grid-template-columns: 1fr; align-content: start; }
  .chain li::before { grid-row: auto; margin-bottom: .4rem; }
}

@media (max-width: 30rem) {
  .brand svg { height: 48px; }
  .brand .tag { display: none; }
  /* Navigation: eine Zeile, bei Bedarf seitlich wischbar */
  .site-nav { width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { flex-wrap: nowrap; white-space: nowrap; }
  .spec-list > div { grid-template-columns: 1fr; }
  .site-nav .nav-long { display: none; }
  .site-nav ul { gap: .25rem .9rem; }
}
@media (max-width: 25rem) {
  .site-nav a { font-size: .875rem; }
  .site-nav ul { gap: .25rem .7rem; }
}
@media (min-width: 46rem) {
  .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .multi { grid-template-columns: auto 1fr auto; }
}
@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
  .steps li { padding: 3.7rem 0 0; border-top: 0; }
  .steps li::before { top: 0; }
  .steps li::after { content: ""; position: absolute; top: 1.2rem; left: 3.1rem; right: -1rem; border-top: 2px dotted var(--rule); }
  .steps li:last-child::after { display: none; }
  .mat-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nogo-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .legal .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 60rem) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Runde 5: Mehrseitig, kompakte Startseite ---- */
.site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.band .note-fit { background: var(--bg); color: var(--muted); }
.steps-note { margin-top: 1.75rem; max-width: 46rem; }

/* Über mich */
.about { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.about > * { min-width: 0; }
.about-photo {
  margin: 0; position: relative; aspect-ratio: 1 / 1; max-width: 22rem; width: 100%;
  border-radius: 12px; border: 1.5px dashed var(--rule); background: var(--band);
  display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: .9rem;
}
.about-text { display: grid; gap: .9rem; max-width: 38rem; }
.about-text .kind { font-family: var(--mono); font-size: var(--step--1); color: var(--muted); }
p.ph {
  display: block; font-size: .95rem; line-height: 1.55; padding: .9rem 1rem;
  border: 2px dashed var(--orange); border-radius: 8px; background: var(--orange-soft); color: var(--ink);
}

/* Materialien kompakt */
.mat-cards { display: grid; gap: 1rem; }
.mat-card { border: 1px solid var(--rule); border-radius: 12px; padding: 1.1rem 1.2rem; background: var(--bg); display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; align-items: start; min-width: 0; }
.mat-card .level { grid-row: span 3; margin-top: .3rem; }
.mat-card h3 { font-size: 1.1rem; }
.mat-card p { color: var(--muted); }
.mat-card .abbr { font-family: var(--mono); font-size: .82rem; color: var(--muted); }

/* Aufklapper */
details.more { margin-top: 1.25rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); }
details.more > summary {
  cursor: pointer; list-style: none; padding: .85rem 1.1rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; min-height: 48px;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before {
  content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s;
}
details.more[open] > summary::before { transform: rotate(45deg); }
details.more > .more-body { padding: 0 1.1rem 1.1rem; }
.mat-detail { display: grid; gap: 1.25rem; }
.mat-detail h4 { margin: 0 0 .25rem; font-size: 1rem; }
.technik details.more { background: transparent; margin-top: 1rem; }
.technik details.more .spec-list { margin-top: 0; }

/* Geräte-Kernaussagen */
.keypoints { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.keypoints li { display: grid; grid-template-columns: 10px 1fr; gap: .75rem; align-items: baseline; font-size: 1.05rem; }
.keypoints li::before { content: ""; width: 10px; height: 10px; border-radius: 2.2px; background: #F2762E; transform: translateY(-1px); }

/* Designs-Teaser und Designs-Seite */
.teaser-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; }
.teaser-foot p { color: var(--muted); font-size: .95rem; }
.page-head { padding-block: clamp(2.25rem, 5vw, 4rem) 0; }
.page-head h1 { font-size: var(--step-3); letter-spacing: -.025em; line-height: 1.05; }
.page-head p { color: var(--muted); max-width: 40rem; margin-top: .9rem; font-size: 1.1rem; }

/* Rechtsseiten */
.legal-page .wrap { grid-template-columns: minmax(0, 1fr) !important; }
.legal-page h1 { font-size: var(--step-2); }
.legal-page { border-top: 0; }

/* Hilfsklassen statt Inline-Styles */
.mb-0 { margin-bottom: 0 !important; }

@media (min-width: 52rem) {
  .about { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
  .mat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mat-detail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Verbesserungsrunde: kompaktere Startseite */
section { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.ref .img { aspect-ratio: 4 / 3; }
.about-photo { max-width: 15rem; }
@media (min-width: 52rem) {
  .about { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
}

/* Mitwandernder Header mit Positionsanzeige */
.site-head { position: sticky; top: 0; z-index: 50; transition: box-shadow .2s ease; }
.site-head.is-scrolled { box-shadow: 0 2px 12px rgba(30, 42, 56, .12); }
html { scroll-padding-top: var(--head-h, 5rem); }
.site-nav a.is-active { border-bottom-color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .site-head { transition: none; } }

/* Hinweis: eigene Druckdatei */
.stl-service { margin-top: 1.75rem; }
.stl-service .file-icon { display: block; width: 40px; color: var(--orange); }
.stl-service .file-icon svg { width: 100%; height: auto; display: block; }
.stl-service .stl-license { font-size: .9rem; margin-top: .5rem; }
