/* =========================================================================
   PIP Adaptiv – Designsystem „Schichtlinie“
   Aufbau: Schriften · Tokens · Grundlagen · Layout · Komponenten · Seiten · Bewegung
   Farben/Schriften nur über die Tokens ändern.
   ========================================================================= */

/* ---------- Schriften (selbst gehostet, keine externen Server) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-next-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Industrial Luxury – harmonisiert mit der bisherigen Marke (Graphit statt Schwarz, Kupfer statt Markergelb).
     Kontraste geprüft: Fließtext ≥ 7:1, Nebentext ≥ 4.5:1, Kupfer nie als kleine Schrift auf Hell. */
  --carbon: #10151B;
  --gunmetal: #1B242D;
  --gunmetal-2: #25303A;
  --border-dark: #34414C;
  --titanium: #E9EDF0;
  --steel-light: #A4B0BA;
  --copper: #C87542;
  --copper-hover: #D68A5A;
  --copper-ink: #9C5426;
  --copper-pale: #F3E4D9;

  --paper: var(--titanium);
  --paper-2: #DCE2E7;
  --surface: #F5F7F9;
  --ink: var(--carbon);
  --ink-2: var(--gunmetal);
  --steel: #4E5B66;
  --rule: #C3CBD2;
  --marker: var(--copper);
  --ok: #1E6B45;
  --warn: #8A5A00;
  --err: #B3261E;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-text: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.6rem, 1.2rem + 1.6vw, 1.95rem);
  --step-4: clamp(1.9rem, 1.3rem + 2.4vw, 2.45rem);
  --step-5: clamp(2.3rem, 1.4rem + 3.6vw, 3.8rem);

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 3px;
  --layers: repeating-linear-gradient(0deg, transparent 0 4px, rgba(16, 21, 27, .14) 4px 5px);
  --focus: 0 0 0 2px var(--surface), 0 0 0 5px var(--copper);
  color-scheme: light;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-tap-highlight-color: rgba(200, 117, 66, .3);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; touch-action: manipulation; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 1px; }
main:focus { outline: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-stretch: 106%; }
h4 { font-size: var(--step-1); }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.2em; }
li + li { margin-top: .3em; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li + li { margin-top: 0; }
strong { font-weight: 700; }
small { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s-6) 0; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 50;
  background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4);
}
.skip:focus { top: var(--s-4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.wrap--narrow { max-width: 48rem; }
.section { padding-block: var(--s-8); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-3) var(--s-6); margin-bottom: var(--s-6); }
.section-head .h-section { margin: 0; }
.h-section { font-size: var(--step-4); max-width: 22ch; }
.lead { font-size: var(--step-1); line-height: 1.55; max-width: 38em; }
.split { display: grid; gap: var(--s-6); }
@media (min-width: 56rem) {
  .split { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; }
}
.page-head { padding-block: var(--s-8) var(--s-6); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: var(--s-4); }
.prose { max-width: 42rem; }
.prose h2 { font-size: var(--step-3); margin-top: var(--s-7); }
.prose h3 { font-size: var(--step-1); margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { font-weight: 600; }
.breadcrumbs { font-size: var(--step--1); color: var(--steel); margin-bottom: var(--s-4); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4em; }
.breadcrumbs li + li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4em; color: var(--rule); }

/* ---------- Kopf ---------- */
.preview-bar {
  background: var(--marker); color: var(--ink); font-size: var(--step--1);
  padding: .45rem var(--gutter); text-align: center; margin: 0;
}
.preview-bar--edit { background: var(--ink); color: var(--paper); }
.preview-bar--edit a { color: var(--paper); }
.site-head { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.site-head__util { display: none; justify-content: flex-end; gap: var(--s-5); font-size: var(--step--1); color: var(--steel); padding-block: .4rem 0; }
.site-head__util a { text-decoration: none; }
.site-head__util a:hover { text-decoration: underline; }
.site-head__bar { display: flex; align-items: center; gap: var(--s-4); min-height: 4.5rem; padding-block: var(--s-2); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 3rem; height: auto; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__pip { font-family: var(--f-display); font-weight: 800; font-stretch: 100%; font-size: 1.6rem; letter-spacing: .02em; }
.brand__sub { font-family: var(--f-text); font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--steel); margin-top: .25rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 .9rem;
  background: transparent; border: 1px solid var(--ink); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; }
.main-nav ul a { display: block; padding: .8rem 0; font-family: var(--f-display); font-weight: 650; font-stretch: 105%; font-size: var(--step-1); border-bottom: 1px solid var(--rule); }
.main-nav ul a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--marker); padding-left: .8rem; }
.main-nav__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; padding-top: var(--s-5); }

/* Mobil: Menü klappt unter dem Kopf auf (ohne JS: immer sichtbar) */
.js .main-nav { display: none; }
.js .main-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--ink);
  padding: var(--s-2) var(--gutter) var(--s-6); max-height: calc(100vh - 5rem); overflow-y: auto; overscroll-behavior: contain;
}
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-head__bar { flex-wrap: wrap; }
html:not(.js) .main-nav { flex-basis: 100%; }

@media (min-width: 64rem) {
  .site-head__util { display: flex; }
  .nav-toggle { display: none; }
  .js .main-nav, .main-nav { display: flex; align-items: center; gap: var(--s-5); position: static; padding: 0; border: 0; max-height: none; }
  .main-nav ul { display: flex; gap: .2rem; }
  .main-nav ul a { border: 0; padding: .55rem .6rem; font-size: 1rem; position: relative; }
  .main-nav ul a::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .25rem; height: 3px; background: var(--marker); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
  .main-nav ul a:hover::after, .main-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav ul a[aria-current="page"] { box-shadow: none; padding-left: .6rem; }
  .main-nav__mobile-only { display: none; }
  .main-nav__actions { padding: 0; flex-wrap: nowrap; }
}

.cart-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: 0 .3rem; font-weight: 600; }
.cart-link__count {
  min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 1rem;
  background: var(--marker); color: var(--ink); font-size: .8rem; font-weight: 700;
  display: inline-grid; place-items: center; font-variant-numeric: tabular-nums;
}
@media (min-width: 64rem) and (max-width: 74rem) { .cart-link__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.35rem;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  font-family: var(--f-display); font-weight: 680; font-stretch: 108%; font-size: 1.02rem; line-height: 1.15;
  text-decoration: none; cursor: pointer; position: relative;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--ink-2); box-shadow: inset 0 -4px 0 var(--marker); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 2.75rem; padding: .5rem 1rem; font-size: .95rem; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--surface); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover { background: #fff; }
.btn--line-paper { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn--line-paper:hover { background: rgba(255, 255, 255, .08); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .7; cursor: progress; }
.btn.is-busy::before {
  content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-block: var(--s-5) var(--s-3); }
.textlink { font-weight: 650; text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: .25em; }
.textlink:hover { text-decoration-color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: inherit; font: inherit; }
.tag { display: inline-block; font-size: var(--step--1); padding: .15rem .5rem; border: 1px solid currentColor; border-radius: var(--radius); }
.tag--warn { color: var(--warn); }
.tag--ok { color: var(--ok); }
.tag--err { color: var(--err); }

/* ---------- Schriftfeld (wie auf technischen Zeichnungen) ---------- */
.titleblock { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); border: 1.5px solid var(--ink); margin: 0; background: var(--surface); }
.titleblock > div { padding: .45rem .7rem .55rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-right: -1px; margin-bottom: -1px; min-width: 0; }
.titleblock dt { font-family: var(--f-display); font-stretch: 75%; font-weight: 560; font-size: .8rem; color: var(--steel); letter-spacing: .02em; }
.titleblock dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* ---------- Startseite: Hero ---------- */
.hero { padding-block: var(--s-7) var(--s-8); overflow: hidden; }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
.hero__title { font-size: var(--step-5); font-stretch: 118%; font-weight: 790; max-width: 14ch; }
.hero__lead { font-size: var(--step-1); max-width: 34em; }
.hero__note { color: var(--steel); font-size: var(--step--1); }
@media (min-width: 60rem) {
  .hero { padding-top: var(--s-8); }
  .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-8); }
}

.sheet { margin: 0; position: relative; }
.sheet__paper {
  position: relative; aspect-ratio: 480 / 420; background: var(--surface);
  border: 1px solid var(--rule); color: var(--steel);
  background-image: linear-gradient(var(--paper-2) 1px, transparent 1px), linear-gradient(90deg, var(--paper-2) 1px, transparent 1px);
  background-size: 24px 24px;
}
.sheet__drawing { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet__labels { font-family: var(--f-display); font-stretch: 75%; font-size: 13px; }
.sheet__print { position: absolute; left: 8.333%; top: 26.667%; width: 83.333%; height: 32.857%; }
.sheet__print svg { width: 100%; height: 100%; }
.sheet__head { position: absolute; left: 6%; top: 26.667%; width: 88%; height: 32.857%; opacity: 0; pointer-events: none; }
.sheet__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--marker); box-shadow: 0 0 0 1px rgba(27, 32, 30, .25); }
.sheet__paper { container-type: inline-size; }
.sheet__block { position: absolute; left: 4.2%; bottom: 4.8%; width: 54%; font-size: clamp(.5rem, 2.25cqi, .82rem); grid-template-columns: 1fr; background: var(--surface); border-width: 1px; }
.sheet__block > div { display: flex; justify-content: space-between; gap: .6em; padding: .18em .55em; }
.sheet__block dt { font-size: .92em; }
.sheet__block dd { font-size: 1em; text-align: right; }
.sheet__photo {
  position: relative; width: 38%; margin: -15% 1% 0 auto;
  border: 6px solid var(--surface); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -18px rgba(27, 32, 30, .45);
  background: var(--surface);
}
.sheet__photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.sheet__photo-tag { position: absolute; left: -6px; top: -6px; background: var(--marker); color: var(--ink); font-size: .8rem; font-weight: 700; padding: .2rem .55rem; }
.sheet figcaption { font-size: var(--step--1); color: var(--steel); margin-top: var(--s-3); max-width: 34em; }
@media (min-width: 60rem) {
  .sheet__photo { position: absolute; width: 36%; right: -4%; bottom: -1.5rem; margin: 0; }
  .sheet { margin-bottom: 2rem; }
  .sheet figcaption { max-width: 58%; }
}

/* Der eine Moment: Schicht für Schicht drucken, dann das echte Teil zeigen */
.motion .sheet .sheet__print { animation: print 2.6s steps(26, end) .35s both; }
.motion .sheet .sheet__head { animation: head 2.6s steps(26, end) .35s both; }
.motion .sheet .sheet__photo { animation: reveal .6s cubic-bezier(.2, .7, .2, 1) 3.1s both; }
@keyframes print { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes head { 0% { opacity: 1; transform: translateY(0); } 97% { opacity: 1; } 100% { opacity: 0; transform: translateY(-100%); } }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Startseite: Wege ---------- */
.paths__list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.paths__item { padding: var(--s-6) 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; align-items: flex-start; }
.paths__item p { max-width: 32em; flex: 1; }
.paths__item h3 { max-width: 16ch; }
.paths__item--lead { position: relative; }
.paths__item--lead::before { content: ""; position: absolute; top: -2px; left: 0; width: 5rem; height: 6px; background: var(--marker); }
@media (min-width: 56rem) {
  .paths__list { grid-template-columns: repeat(3, 1fr); }
  .paths__list--2 { grid-template-columns: repeat(2, 1fr); }
  .paths__item { padding: var(--s-6) var(--s-6) var(--s-5) 0; border-bottom: 0; }
  .paths__item + .paths__item { padding-left: var(--s-6); border-left: 1px solid var(--rule); }
}

/* ---------- Werkstatt ---------- */
.workshop__grid { display: grid; gap: var(--s-6); align-items: center; }
.workshop__photo { margin: 0; }
.workshop__photo img { width: 100%; max-height: 38rem; object-fit: cover; }
.workshop__photo figcaption { font-size: var(--step--1); color: var(--steel); margin-top: var(--s-2); }
@media (min-width: 56rem) { .workshop__grid { grid-template-columns: 5fr 6fr; gap: var(--s-8); } }
.mini-steps { list-style: none; padding: 0; margin: var(--s-5) 0; display: flex; flex-wrap: wrap; gap: 0; counter-reset: s; }
.mini-steps li { margin: 0; counter-increment: s; display: flex; align-items: center; }
.mini-steps li span { display: inline-flex; gap: .4rem; align-items: baseline; padding: .4rem .8rem .4rem 0; font-weight: 650; }
.mini-steps li span::before { content: counter(s); font-family: var(--f-display); font-stretch: 75%; color: var(--steel); font-weight: 600; }
.mini-steps li + li::before { content: ""; width: 1.6rem; height: 1px; background: var(--ink); margin-right: .8rem; }

/* ---------- Index-Liste (Leistungen) ---------- */
.index-list { border-top: 2px solid var(--ink); }
.index-list li { border-bottom: 1px solid var(--rule); }
.index-list__link { display: grid; gap: .3rem var(--s-6); padding: var(--s-5) 0; text-decoration: none; position: relative; }
.index-list__title { font-family: var(--f-display); font-weight: 740; font-stretch: 112%; font-size: var(--step-3); line-height: 1.1; }
.index-list__text { color: var(--steel); max-width: 34em; }
.index-list__link::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: var(--marker); transition: width .25s ease; }
.index-list__link:hover::after { width: 100%; }
@media (min-width: 56rem) { .index-list__link { grid-template-columns: 1fr 1fr; align-items: baseline; } }

/* ---------- Materialien ---------- */
.material-strip { display: grid; gap: 0; margin: 0; border: 1.5px solid var(--ink); background: var(--surface); }
.material-strip__item { padding: var(--s-5); border-bottom: 1px solid var(--rule); position: relative; }
.material-strip__item:last-child { border-bottom: 0; }
.material-strip__item dt { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: var(--step-3); }
.material-strip__item dd { margin: .2rem 0 0; }
.material-strip__item::before { content: ""; display: block; width: 100%; height: .5rem; margin-bottom: var(--s-3); background: var(--layers); }
@media (min-width: 40rem) {
  .material-strip { grid-template-columns: repeat(3, 1fr); }
  .material-strip__item { border-bottom: 0; border-right: 1px solid var(--rule); }
  .material-strip__item:last-child { border-right: 0; }
}

.material-table-wrap { overflow-x: auto; border: 1.5px solid var(--ink); background: var(--surface); }
.material-table { width: 100%; border-collapse: collapse; min-width: 40rem; }
.material-table th, .material-table td { text-align: left; vertical-align: top; padding: var(--s-4); border-bottom: 1px solid var(--rule); }
.material-table thead th { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: var(--step-2); border-bottom: 1.5px solid var(--ink); }
.material-table tbody th { font-weight: 650; width: 11rem; color: var(--steel); }
.material-table ul { padding-left: 1.1em; margin: 0; }
.material-table td.is-hit { background: var(--copper-pale); box-shadow: inset 0 3px 0 var(--marker); }

/* Gesamtvergleich aller Werkstoffe */
.matrix { min-width: 52rem; }
.matrix th, .matrix td { padding: var(--s-3) var(--s-4); vertical-align: middle; }
.matrix thead th { font-family: var(--f-text); font-stretch: 100%; font-weight: 650; font-size: var(--step--1); color: var(--steel); white-space: nowrap; }
.matrix thead th:first-child, .matrix tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.matrix tbody th[scope="row"] { width: 8.5rem; color: var(--ink); font-family: var(--f-display); font-weight: 760; font-stretch: 112%; white-space: nowrap; }
.matrix td:last-child { color: var(--steel); min-width: 17rem; }
.matrix .matrix__group th { background: var(--ink); color: #fff; font-size: var(--step--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding-top: var(--s-2); padding-bottom: var(--s-2); }
.matrix .is-crit { background: var(--copper-pale); }
.matrix thead th.is-crit { color: var(--ink); box-shadow: inset 0 -3px 0 var(--marker); }
.matrix tr.is-match th[scope="row"] { background: var(--copper-pale); box-shadow: inset 4px 0 0 var(--marker); }
.matrix tr.is-match td.is-crit { background: #EBCFBC; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: .8rem; height: .8rem; border: 1.5px solid var(--ink); }
.dots[data-v="1"] i:nth-child(-n+1), .dots[data-v="2"] i:nth-child(-n+2), .dots[data-v="3"] i { background: var(--ink); }
.dots__open { color: var(--steel); font-size: var(--step--1); }
.matrix__swipe { display: none; margin: 0 0 var(--s-2); font-size: var(--step--1); color: var(--steel); }
@media (max-width: 52rem) { .matrix__swipe { display: block; } }
.matrix__note { margin-top: var(--s-4); font-size: var(--step--1); color: var(--steel); max-width: 48rem; }

.finder { border: 1.5px solid var(--ink); padding: var(--s-5); background: var(--surface); }
.finder fieldset { border: 0; padding: 0; margin: 0; }
.finder legend { font-family: var(--f-display); font-weight: 720; font-stretch: 110%; font-size: var(--step-2); margin-bottom: var(--s-2); }
.finder__opts { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: var(--s-4); }
.finder__result { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--rule); min-height: 3.2rem; }
.finder__result strong { font-family: var(--f-display); font-stretch: 112%; font-size: var(--step-1); }

/* ---------- Extras ---------- */
.extras .h-section { margin: 0; }
.extra-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.extra-list > div { padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.extra-list h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.extra-list p { margin: 0; color: var(--steel); }
@media (min-width: 48rem) { .extra-list { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }

/* ---------- Abschluss-Band ---------- */
.cta-band { background: var(--ink); color: var(--paper); padding-block: var(--s-8); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: min(40%, 26rem); background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(238, 240, 236, .09) 6px 7px); pointer-events: none; }
.cta-band__grid { display: grid; gap: var(--s-5); position: relative; }
.cta-band__title { font-size: var(--step-5); font-stretch: 118%; max-width: 16ch; }
.cta-band__text { font-size: var(--step-1); max-width: 30em; color: #D3D8D3; }
@media (min-width: 56rem) { .cta-band__grid { grid-template-columns: 7fr 5fr; align-items: end; } }

/* ---------- Fuß ---------- */
.site-foot { background: var(--ink-2); color: #DCE0DB; padding-top: var(--s-8); }
.site-foot a { color: #fff; }
.site-foot__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); padding-bottom: var(--s-7); }
.site-foot__brand img { width: 4rem; margin-bottom: var(--s-4); }
.site-foot__tag { color: #fff; }
.site-foot__b2b { font-size: var(--step--1); }
.site-foot__h { font-size: var(--step-0); font-stretch: 100%; font-weight: 700; color: #fff; margin-bottom: var(--s-3); }
.site-foot ul li { padding: .2rem 0; }
.site-foot__base { border-top: 1px solid rgba(255, 255, 255, .15); padding-block: var(--s-4) max(var(--s-4), env(safe-area-inset-bottom)); font-size: var(--step--1); }
.site-foot :focus-visible { box-shadow: 0 0 0 3px var(--marker); }

/* ---------- Seiten: Leistungen ---------- */
.service-hero { display: grid; gap: var(--s-6); }
.examples { border-left: 4px solid var(--marker); padding: var(--s-2) 0 var(--s-2) var(--s-5); }
.examples h2 { font-size: var(--step-2); }
.examples ul { padding-left: 1.1em; }
@media (min-width: 56rem) { .service-hero { grid-template-columns: 7fr 5fr; align-items: start; gap: var(--s-8); } }

.service-cards { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.service-cards article { padding: var(--s-6) 0; border-bottom: 1px solid var(--rule); display: grid; gap: var(--s-3); }
.service-cards h2 { font-size: var(--step-3); margin: 0; }
.service-cards ul { margin: 0; padding-left: 1.1em; color: var(--steel); }
@media (min-width: 56rem) { .service-cards article { grid-template-columns: 4fr 5fr 3fr; gap: var(--s-6); align-items: start; } }

/* ---------- Ablauf ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; border-left: 2px solid var(--ink); }
.steps > li { counter-increment: step; position: relative; padding: 0 0 var(--s-6) var(--s-6); margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: -1.05rem; top: -.1rem; width: 2rem; height: 2rem;
  display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink);
  font-family: var(--f-display); font-weight: 760; font-size: .95rem;
}
.steps > li:last-child { padding-bottom: 0; }
.steps h3 { font-size: var(--step-2); margin-bottom: .35rem; }
.steps p { max-width: 36em; margin: 0; }
.two-ways { display: grid; gap: var(--s-8); }
@media (min-width: 60rem) { .two-ways { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.two-ways h2 { font-size: var(--step-3); margin-bottom: var(--s-5); }

/* ---------- Projekte / Team ---------- */
.project { display: grid; gap: var(--s-5); padding-block: var(--s-6); border-top: 2px solid var(--ink); }
.project figure { margin: 0; }
.project img { width: 100%; max-height: 34rem; object-fit: cover; }
.project__meta { font-size: var(--step--1); color: var(--steel); }
@media (min-width: 56rem) { .project { grid-template-columns: 5fr 6fr; gap: var(--s-7); align-items: start; } }
.team { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.person { border-top: 2px solid var(--ink); padding-top: var(--s-4); }
.person__img { aspect-ratio: 4 / 5; background: var(--paper-2); margin-bottom: var(--s-4); overflow: hidden; }
.person__img img { width: 100%; height: 100%; object-fit: cover; }
.person__role { color: var(--steel); font-weight: 600; }
.placeholder-hatch { display: block; width: 100%; height: 100%; min-height: 8rem; background: var(--layers), var(--paper-2); }
.person__img .placeholder-hatch { display: grid; place-items: center; color: var(--steel); font-size: var(--step--1); }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s-5) 2.5rem var(--s-5) 0; position: relative;
  font-family: var(--f-display); font-weight: 680; font-stretch: 106%; font-size: var(--step-1); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: .75rem; height: .75rem; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq__answer { padding: 0 0 var(--s-5); max-width: 42em; }

/* ---------- Formulare ---------- */
.form { max-width: 46rem; }
.field { margin-bottom: var(--s-5); }
.field > label, .field > .label, legend.label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { display: block; color: var(--steel); font-size: var(--step--1); margin: -.15rem 0 .45rem; }
.optional { font-weight: 400; color: var(--steel); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; min-height: 3rem; padding: .65rem .8rem;
  background: #fff; color: var(--ink); border: 1.5px solid #7D8A95; border-radius: var(--radius);
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink); box-shadow: var(--focus); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 50%, calc(100% - .85rem) 50%; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.4rem; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--err); border-width: 2px; }
.error-text { color: var(--err); font-weight: 650; font-size: var(--step--1); margin: .35rem 0 0; display: flex; gap: .4rem; }
.error-text::before { content: "!"; display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--err); color: #fff; font-size: .75rem; flex: none; margin-top: .15rem; }
.form-error { border: 2px solid var(--err); background: #FBEDEC; padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); }
.form-error:focus { outline: none; box-shadow: var(--focus); }
.form-ok { border: 2px solid var(--ok); background: #E7F2EC; padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); }
.grid-2 { display: grid; gap: 0 var(--s-5); }
@media (min-width: 40rem) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2--zip { grid-template-columns: 9rem 1fr; } }

.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .8rem; border: 1.5px solid var(--rule); border-radius: var(--radius); background: #fff; cursor: pointer; margin-bottom: .5rem; line-height: 1.35; }
.choice:hover { border-color: var(--ink); }
.choice input { width: 1.25rem; height: 1.25rem; margin: .05rem 0 0; accent-color: var(--ink); flex: none; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--marker); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice small { display: block; color: var(--steel); }
.choices { display: grid; gap: 0 .6rem; }
@media (min-width: 40rem) { .choices--2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s-5); min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Mehrstufiges Formular (ohne JS: alles untereinander) */
.stepper { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: flex; gap: 0; border-bottom: 1.5px solid var(--ink); overflow-x: auto; }
.stepper li { margin: 0; flex: 1 0 auto; }
.stepper button { width: 100%; background: none; border: 0; padding: .7rem .8rem .7rem 0; text-align: left; cursor: pointer; color: var(--steel); font-weight: 650; display: flex; gap: .45rem; align-items: baseline; white-space: nowrap; }
.stepper button span { font-family: var(--f-display); font-stretch: 75%; }
.stepper button[aria-current="step"] { color: var(--ink); box-shadow: inset 0 -4px 0 var(--marker); }
.stepper button:disabled { cursor: default; opacity: .6; }
html:not(.js) .stepper { display: none; }
.js .form-step:not(.is-active) { display: none; }
.form-step > h2 { font-size: var(--step-3); }
.form-nav { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--rule); }
html:not(.js) .form-nav [data-step-next], html:not(.js) .form-nav [data-step-prev] { display: none; }

.dropzone { border: 2px dashed #7D8A95; border-radius: var(--radius); padding: var(--s-6) var(--s-5); background: #fff; text-align: center; position: relative; }
.dropzone.is-over { border-color: var(--ink); background: var(--copper-pale); }
.dropzone input[type="file"] { width: 100%; }
.js .dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__label { font-weight: 700; display: block; }
.dropzone:focus-within { box-shadow: var(--focus); }
.file-list { list-style: none; padding: 0; margin: var(--s-4) 0 0; }
.file-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: var(--step--1); }
.file-list .file-list__name { overflow-wrap: anywhere; min-width: 0; }
.file-list .file-list__err { color: var(--err); font-weight: 650; }
.file-sum { font-size: var(--step--1); color: var(--steel); margin-top: .4rem; }

/* ---------- Shop ---------- */
.product-list { border-top: 2px solid var(--ink); }
.product-row { border-bottom: 1px solid var(--rule); }
.product-row__link { display: grid; grid-template-columns: 6rem 1fr; gap: var(--s-4); padding: var(--s-5) 0; text-decoration: none; align-items: center; }
.product-row__media { width: 6rem; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; display: block; }
.product-row__media img { width: 100%; height: 100%; object-fit: cover; }
.product-row__name { display: block; font-family: var(--f-display); font-weight: 720; font-stretch: 108%; font-size: var(--step-1); line-height: 1.2; }
.product-row__summary { display: block; color: var(--steel); margin-top: .2rem; }
.product-row__price { grid-column: 2; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-row__from, .product-row__net { font-weight: 400; color: var(--steel); font-size: var(--step--1); }
.product-row__link:hover .product-row__name { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; }
@media (min-width: 48rem) {
  .product-row__link { grid-template-columns: 9rem 1fr 12rem; gap: var(--s-6); }
  .product-row__media { width: 9rem; }
  .product-row__price { grid-column: auto; text-align: right; font-size: var(--step-1); }
  .product-row__net { display: block; }
}

.product { display: grid; gap: var(--s-6); padding-block: var(--s-6) var(--s-8); }
@media (min-width: 60rem) {
  .product { grid-template-columns: 6fr 5fr; grid-template-areas: "media buy" "details buy"; column-gap: var(--s-8); row-gap: 0; align-items: start; }
  .product__media { grid-area: media; } .product__details { grid-area: details; }
  .product__buy { grid-area: buy; position: sticky; top: var(--s-5); }
}
.gallery__main { background: var(--paper-2); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--rule); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: var(--s-2); margin-top: var(--s-2); flex-wrap: wrap; }
.gallery__thumbs button { width: 4.5rem; height: 4.5rem; padding: 0; border: 2px solid transparent; background: var(--paper-2); cursor: pointer; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__empty { color: var(--steel); text-align: center; padding: var(--s-6); width: 100%; height: 100%; display: grid; place-items: center; background: var(--layers), var(--paper-2); }

.buybox { border: 1.5px solid var(--ink); background: var(--surface); padding: var(--s-5); }
.buybox h1 { font-size: var(--step-4); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: var(--s-4) 0 var(--s-2); }
.price__value { font-family: var(--f-display); font-weight: 800; font-stretch: 110%; font-size: var(--step-4); font-variant-numeric: tabular-nums; }
.price__note { color: var(--steel); font-size: var(--step--1); }
.price__total { font-size: var(--step--1); color: var(--steel); margin: 0 0 var(--s-4); font-variant-numeric: tabular-nums; min-height: 1.6em; }
.tiers { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin: var(--s-3) 0 var(--s-4); font-variant-numeric: tabular-nums; }
.tiers th, .tiers td { padding: .35rem .2rem; border-bottom: 1px solid var(--rule); text-align: left; }
.tiers td:last-child, .tiers th:last-child { text-align: right; }
.tiers tr.is-active td { font-weight: 700; background: var(--copper-pale); }
.qty { display: inline-flex; align-items: stretch; border: 1.5px solid #7D8A95; border-radius: var(--radius); background: #fff; }
.qty button { width: 3rem; border: 0; background: none; font-size: 1.3rem; cursor: pointer; }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 5rem; text-align: center; border: 0; border-inline: 1px solid var(--rule); border-radius: 0; min-height: 3rem; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.spec { margin-top: var(--s-6); }
.spec .titleblock { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }

/* Warenkorb / Kasse */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: var(--step--1); color: var(--steel); font-weight: 600; border-bottom: 1.5px solid var(--ink); padding: .5rem .3rem; }
.cart-table td { border-bottom: 1px solid var(--rule); padding: var(--s-4) .3rem; vertical-align: top; }
.cart-table .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-table__name { font-weight: 700; }
.cart-table__opts { color: var(--steel); font-size: var(--step--1); }
@media (max-width: 40rem) {
  .cart-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
  .cart-table td { border: 0; padding: .2rem 0; }
  .cart-table td[data-label]::before { content: attr(data-label) ": "; color: var(--steel); font-size: var(--step--1); }
  .cart-table td.cart-table__item { grid-column: 1 / -1; }
}
.totals { margin: 0; border: 1.5px solid var(--ink); background: var(--surface); padding: var(--s-4) var(--s-5); font-variant-numeric: tabular-nums; }
.totals > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: .3rem 0; }
.totals dt { color: var(--steel); }
.totals dd { margin: 0; text-align: right; }
.totals .totals__sum { border-top: 1.5px solid var(--ink); margin-top: .4rem; padding-top: .6rem; font-weight: 800; font-size: var(--step-1); }
.totals .totals__sum dt { color: var(--ink); }
.totals__note { font-size: var(--step--1); color: var(--steel); margin: .5rem 0 0; }
.checkout { display: grid; gap: var(--s-7); padding-block: var(--s-5) var(--s-8); }
@media (min-width: 60rem) { .checkout { grid-template-columns: 7fr 4fr; align-items: start; } .checkout__aside { position: sticky; top: var(--s-5); } }
.checkout-steps { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: var(--step--1); counter-reset: c; }
.checkout-steps li { margin: 0; counter-increment: c; color: var(--steel); }
.checkout-steps li::before { content: counter(c) " "; font-family: var(--f-display); font-stretch: 75%; }
.checkout-steps li[aria-current="step"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--marker); }
.review-block { border-top: 2px solid var(--ink); padding: var(--s-5) 0; }
.review-block h2 { font-size: var(--step-2); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); }
.review-block h2 a { font-family: var(--f-text); font-size: var(--step--1); font-weight: 600; }
.mini-items { list-style: none; padding: 0; margin: 0 0 var(--s-4); font-size: var(--step--1); }
.mini-items li { display: flex; justify-content: space-between; gap: var(--s-4); padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.mini-items li + li { margin: 0; }

/* Status */
.status-line { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-4); }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .65rem; border-radius: 2rem; font-weight: 700; font-size: var(--step--1); background: var(--paper-2); }
.badge::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.badge--ok { color: var(--ok); background: #E1EFE7; }
.badge--warn { color: var(--warn); background: #F7EDD5; }
.badge--err { color: var(--err); background: #F8E3E1; }
.badge--neutral { color: var(--steel); }
.notice { border-left: 6px solid var(--marker); background: var(--surface); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); }
.notice--ok { border-color: var(--ok); }
.notice--err { border-color: var(--err); }
.notice h2 { font-size: var(--step-2); margin-bottom: .4rem; }
.notice p:last-child { margin-bottom: 0; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: var(--step--1); }
.timeline li { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--s-3); padding: .4rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.timeline time { color: var(--steel); font-variant-numeric: tabular-nums; }

/* Fehlerseiten */
.error-page { padding-block: var(--s-8); }
.error-page__code { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: clamp(4rem, 3rem + 8vw, 9rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--ink); margin-bottom: var(--s-4); background: var(--layers); -webkit-background-clip: text; background-clip: text; }
.error-page__links { columns: 2 12rem; margin-top: var(--s-5); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .btn.is-busy::before { animation: none; border-right-color: currentColor; opacity: .6; }
}

/* ---------- Hilfsklassen ---------- */
.section--flush { padding-top: 0; }
.page-head--tight { padding-block: var(--s-6) var(--s-5); }
.page-head--crumbs { padding-top: var(--s-5); margin-bottom: 0; }
.h-small { font-size: var(--step-1); font-stretch: 106%; margin-top: var(--s-6); }
.checkout h2:not(.h-small):not(.h-section) { font-size: var(--step-2); margin-top: var(--s-6); }
.checkout form > h2:first-of-type { margin-top: 0; }
.subform { border-left: 3px solid var(--rule); padding-left: var(--s-4); margin: var(--s-3) 0 var(--s-5); }
.product__desc { margin-top: var(--s-6); }
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.form > h2 { font-size: var(--step-2); }
.main-nav li + li, .stepper li + li, .checkout-steps li + li, .paths__list li + li, .index-list li + li, .product-list li + li { margin-top: 0; }
.spec h2 { font-size: var(--step-2); }
.mini-steps li + li::before { width: 1.2rem; margin-right: .6rem; }

/* =========================================================================
   INDUSTRIAL LUXURY – Gestaltungsschicht (22.10.2026)
   Dunkle Flächen = Bühne, Kopf, Seitenköpfe, Fuß. Lesestrecken bleiben hell (Titan).
   Kupfer nur für Handlungen, aktive Zustände und Licht.
   ========================================================================= */

/* ---------- Kopf ---------- */
.site-head { background: var(--carbon); border-bottom: 1px solid var(--border-dark); color: var(--titanium); }
.site-head__util { color: var(--steel-light); }
.site-head a { color: inherit; }
.brand__sub { color: var(--steel-light); }
.nav-toggle { border-color: var(--border-dark); color: var(--titanium); }
.js .main-nav.is-open { background: var(--carbon); border-bottom-color: var(--border-dark); }
.main-nav ul a { border-bottom-color: var(--border-dark); }
.main-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--copper); }
.main-nav ul a::after { background: var(--copper); height: 2px; }
.cart-link__count { background: var(--copper); color: var(--carbon); }
.site-head :focus-visible, .site-foot :focus-visible, .story :focus-visible, .page-head :focus-visible, .section--dark :focus-visible, .cta-band :focus-visible, .consent :focus-visible {
  box-shadow: 0 0 0 2px var(--carbon), 0 0 0 5px var(--copper);
}
.preview-bar { background: var(--copper); color: var(--carbon); }

/* ---------- Buttons ---------- */
.btn { background: var(--copper); color: var(--carbon); border-color: var(--copper); letter-spacing: .01em; }
.btn:hover { background: var(--copper-hover); border-color: var(--copper-hover); box-shadow: none; }
.btn--line { background: transparent; color: var(--carbon); border-color: var(--carbon); }
.btn--line:hover { background: var(--carbon); color: var(--titanium); border-color: var(--carbon); }
.btn--line-light, .btn--line-paper { background: transparent; color: var(--titanium); border-color: rgba(233, 237, 240, .55); }
.btn--line-light:hover, .btn--line-paper:hover { background: rgba(233, 237, 240, .08); border-color: var(--titanium); color: var(--titanium); }
.btn--paper { background: var(--copper); color: var(--carbon); border-color: var(--copper); }
.btn--paper:hover { background: var(--copper-hover); border-color: var(--copper-hover); }
.btn--danger { background: var(--err); border-color: var(--err); color: #fff; }
.textlink { text-decoration-color: var(--copper); text-decoration-thickness: 2px; }
.textlink:hover { text-decoration-color: currentColor; }
.prose a { color: var(--copper-ink); }

/* ---------- Seitenköpfe als dunkles Band mit feinem Konstruktionsraster ---------- */
.page-head {
  background:
    linear-gradient(rgba(52, 65, 76, .35) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(52, 65, 76, .35) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse at 80% 0%, var(--gunmetal-2), var(--carbon) 65%);
  color: var(--titanium);
  border-bottom: 1px solid var(--border-dark);
  padding-block: var(--s-8);
  margin-bottom: var(--s-7);
}
.page-head h1 { font-stretch: 118%; letter-spacing: -.01em; }
.page-head .lead, .page-head p { color: #C9D1D8; }
.page-head .breadcrumbs, .page-head .breadcrumbs a { color: var(--steel-light); }
.page-head .breadcrumbs li + li::before { color: var(--border-dark); }
.page-head .notice, .page-head .notice p, .page-head .titleblock, .page-head .form-error { color: var(--ink); }
.page-head .checkout-steps li { color: var(--steel-light); }
.page-head .checkout-steps li[aria-current="step"] { color: var(--titanium); box-shadow: inset 0 -2px 0 var(--copper); }
.page-head--crumbs { background: none; color: inherit; border: 0; padding-block: var(--s-5) 0; margin-bottom: 0; }
.page-head--crumbs .breadcrumbs, .page-head--crumbs .breadcrumbs a { color: var(--steel); }
.page-head--tight { padding-block: var(--s-6) var(--s-5); }
.page-head .examples { border-left-color: var(--copper); }
.page-head .examples h2 { color: var(--titanium); }
.page-head .examples li { color: #C9D1D8; }
.page-head .btn--line { color: var(--titanium); border-color: rgba(233, 237, 240, .55); }
.page-head .btn--line:hover { background: rgba(233, 237, 240, .08); color: var(--titanium); }
.page-head .hero__note { color: var(--steel-light); }
.page-head .textlink { color: var(--titanium); }

/* ---------- Dunkle Bänder, Fuß ---------- */
.section--dark { background: var(--gunmetal); color: var(--titanium); border-top-color: var(--border-dark) !important; }
.section--dark .lead, .section--dark p { color: #C9D1D8; }
.section--dark figcaption { color: var(--steel-light); }
.section--dark .mini-steps li span::before { color: var(--steel-light); }
.section--dark .mini-steps li + li::before { background: var(--border-dark); }
.cta-band { background: var(--carbon); border-top: 1px solid var(--border-dark); }
.cta-band::before { background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(200, 117, 66, .10) 6px 7px); }
.cta-band__text { color: #C9D1D8; }
.site-foot { background: var(--carbon); color: #C9D1D8; border-top: 1px solid var(--border-dark); }
.site-foot__base { border-top-color: var(--border-dark); color: var(--steel-light); }

/* ---------- Komponenten feinjustiert ---------- */
.paths__item--lead::before { background: var(--copper); height: 3px; }
.index-list { border-top-color: var(--carbon); }
.index-list__link::after { background: var(--copper); height: 2px; }
.material-strip, .titleblock { border-color: var(--carbon); }
.choice:has(input:checked) { box-shadow: inset 3px 0 0 var(--copper); }
.workshop__photo img, .project img { filter: saturate(.92) contrast(1.04); }

/* =========================================================================
   BÜHNE DER STARTSEITE (3D-Scroll-Story)
   Grundzustand = ruhige, statische Fassung (ohne JS, „Bewegung reduzieren“, ohne WebGL).
   html.story-live = Kino-Fassung, gesteuert von story.bundle.js.
   ========================================================================= */
.story {
  --story-text: #C9D1D8;
  position: relative;
  color: var(--titanium);
  background:
    radial-gradient(ellipse 60% 70% at 72% 48%, #222D37 0%, rgba(16, 21, 27, 0) 70%),
    linear-gradient(180deg, var(--carbon) 0%, #0D1116 100%);
  overflow: hidden;
}
.story__canvas, .story__leaders, .story__labels, .story__dots, .story__scroll { display: none; }
.story__title {
  font-size: clamp(2.6rem, 1rem + 4.4vw, 5.2rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.005em;
  text-transform: uppercase;
  max-width: 13ch;
  margin-bottom: var(--s-5);
}
.story__lead { font-size: var(--step-1); line-height: 1.55; color: var(--story-text); max-width: 34em; }
.story .actions { margin-top: var(--s-6); }
.story__meta { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); margin: var(--s-7) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--border-dark); max-width: 46rem; }
.story__meta div { min-width: 8rem; }
.story__meta dt { font-family: var(--f-display); font-stretch: 75%; font-size: .78rem; color: var(--steel-light); letter-spacing: .04em; }
.story__meta dd { margin: .15rem 0 0; font-weight: 650; color: var(--titanium); }
.story__step { font-family: var(--f-display); font-stretch: 80%; font-size: .85rem; letter-spacing: .08em; color: var(--steel-light); margin-bottom: var(--s-3); }
.story__step span { color: var(--copper); margin-right: .4em; }
.story__chapter-title { font-size: clamp(2rem, 1rem + 3.4vw, 4rem); font-stretch: 125%; font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -.005em; margin-bottom: var(--s-4); }
.story__chapter p:not(.story__step) { color: var(--story-text); max-width: 30em; }
.story__card { margin: 0; }
.story__card figcaption { font-family: var(--f-display); font-stretch: 80%; font-size: .82rem; letter-spacing: .04em; color: var(--steel-light); margin-top: var(--s-3); display: flex; gap: .5rem; align-items: center; }
.story__card figcaption::before { content: ""; width: 1.2rem; height: 1px; background: var(--copper); }
.story__slot, .story__photo { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--border-dark); background: radial-gradient(ellipse at 50% 60%, #26313B, #141A21 75%); overflow: hidden; }
.story__slot img, .story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__slot img { object-fit: contain; }
.story__photo img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.story__photo:hover img { transform: scale(1.03); }
.story__note { font-size: .82rem; color: var(--steel-light); }
.story__note a { color: var(--titanium); }
.story__handoff h2 { font-size: clamp(2rem, 1.1rem + 2.6vw, 3.4rem); font-stretch: 122%; font-weight: 800; text-transform: uppercase; line-height: 1; }
.story__handoff p { color: var(--story-text); }

/* --- Ruhige Fassung --- */
.story__stage { display: grid; gap: var(--s-6); padding: var(--s-8) max(var(--gutter), env(safe-area-inset-left)) var(--s-7); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; grid-template-areas: "hero" "poster" "chapters" "handoff" "note"; }
.story__stage .wrap { padding-inline: 0; max-width: none; }
.story__hero { grid-area: hero; }
.story__poster { grid-area: poster; width: 100%; height: auto; max-width: 44rem; justify-self: center; }
.story__chapters { grid-area: chapters; list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-6) var(--s-6); }
.story__chapters li { margin: 0; border-top: 1px solid var(--border-dark); padding-top: var(--s-5); }
.story__still { width: 100%; max-width: 32rem; height: auto; margin-top: var(--s-4); }
.story__handoff { grid-area: handoff; margin-top: 0; border-top: 1px solid var(--border-dark); padding-top: var(--s-7); }
.story__handoff-grid { display: grid; gap: var(--s-6); align-items: end; }
.story__note { grid-area: note; }
@media (min-width: 900px) {
  .story__stage { grid-template-columns: 6fr 5fr; grid-template-areas: "hero poster" "chapters chapters" "handoff handoff" "note note"; align-items: center; }
  .story__chapters { grid-template-columns: 1fr 1fr; }
  .story__handoff-grid { grid-template-columns: 5fr 4fr 3fr; }
}

/* --- Kino-Fassung --- */
.story-live .story__stage { display: block; position: relative; height: 100vh; height: 100svh; min-height: 560px; padding: 0; max-width: none; margin: 0; }
.story-live .story__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; }
.story-live .story__poster { position: absolute; right: 2vw; top: 50%; width: min(56vw, 58rem); max-width: none; transform: translateY(-50%); transition: opacity .7s ease; pointer-events: none; }
.story-live .story--ready .story__poster { opacity: 0; }
.story-live .story__hero { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.story-live .story__hero-inner { pointer-events: auto; width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
.story-live .story__hero-inner > * { max-width: min(48%, 40rem); }
.story-live .story__chapters { position: absolute; inset: 0; margin: 0; pointer-events: none; display: block; }
.story-live .story__chapter { position: absolute; left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); top: 50%; width: min(36rem, 40vw); margin-top: -7rem; border: 0; padding: 0; opacity: 0; }
.story-live .story__still { display: none; }
.story-live .story__labels { display: block; position: absolute; inset: 0; pointer-events: none; }
.story-live .story__label { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--f-display); font-stretch: 80%; font-size: .8rem; letter-spacing: .05em; color: var(--titanium); padding: .3rem .55rem; border: 1px solid var(--border-dark); background: rgba(16, 21, 27, .72); opacity: 0; }
.story-live .story__leaders { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; stroke: var(--copper); stroke-width: 1; fill: var(--copper); opacity: 0; }
.story-live .story__dots { display: flex; flex-direction: column; gap: .55rem; position: absolute; right: max(var(--gutter), env(safe-area-inset-right)); bottom: 2.2rem; list-style: none; margin: 0; padding: 0; font-family: var(--f-display); font-stretch: 80%; font-size: .74rem; letter-spacing: .08em; color: var(--steel-light); }
.story-live .story__dots li { margin: 0; display: flex; gap: .5rem; align-items: center; justify-content: flex-end; transition: color .3s ease; }
.story-live .story__dots li::after { content: ""; width: 1.4rem; height: 1px; background: currentColor; transition: width .3s ease, background-color .3s ease; }
.story-live .story__dots li.is-active { color: var(--titanium); }
.story-live .story__dots li.is-active::after { width: 2.6rem; background: var(--copper); }
.story-live .story__dots span { color: var(--copper); }
.story-live .story__scroll { display: flex; position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); flex-direction: column; align-items: center; gap: .5rem; font-family: var(--f-display); font-stretch: 80%; font-size: .72rem; letter-spacing: .14em; color: var(--steel-light); }
.story-live .story__scroll i { width: 1px; height: 2.6rem; background: linear-gradient(var(--copper), transparent); }
.motion.story-live .story__scroll i { animation: scrollcue 2.2s ease-in-out 4; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.story-live .story__handoff { position: absolute; inset: 0; margin: 0; border: 0; padding: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; }
.story-live .story__handoff-grid { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
.story-live .story--ready .story__slot img { visibility: hidden; }
/* Platz für das Bauteil: durchsichtig (die 3D-Fläche liegt darunter) mit Konstruktionsrahmen */
.story-live .story__slot {
  background:
    linear-gradient(var(--copper), var(--copper)) 0 0 / 14px 1px no-repeat,
    linear-gradient(var(--copper), var(--copper)) 0 0 / 1px 14px no-repeat,
    linear-gradient(var(--copper), var(--copper)) 100% 100% / 14px 1px no-repeat,
    linear-gradient(var(--copper), var(--copper)) 100% 100% / 1px 14px no-repeat;
  border-color: rgba(52, 65, 76, .8);
}
.story-live .story__note { position: absolute; left: max(var(--gutter), env(safe-area-inset-left)); bottom: 1.4rem; margin: 0; max-width: 40%; }

@media (max-width: 899px) {
  .story-live .story__hero { justify-content: flex-start; padding-top: clamp(2rem, 7vh, 4rem); }
  .story-live .story__hero-inner > * { max-width: 100%; }
  .story-live .story__title { font-size: clamp(2.3rem, 1rem + 7vw, 3.6rem); }
  .story-live .story__meta { display: none; }
  .story-live .story__poster { width: 92vw; right: 4vw; top: auto; bottom: 6vh; transform: none; }
  .story-live .story__chapter { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 4.8rem; margin: 0; }
  .story-live .story__chapter-title { font-size: clamp(1.8rem, 1rem + 5vw, 2.6rem); }
  .story-live .story__chapter p:not(.story__step) { font-size: 1rem; }
  .story-live .story__dots, .story-live .story__scroll { display: none; }
  .story-live .story__note { max-width: none; right: var(--gutter); bottom: .8rem; }
  .story-live .story__handoff { align-items: flex-start; padding-top: clamp(1.5rem, 5vh, 3rem); }
  .story-live .story__handoff-grid { gap: var(--s-4); }
  .story-live .story__handoff h2 { font-size: clamp(1.7rem, 1rem + 4vw, 2.4rem); }
  .story-live .story__card--photo { display: none; }
  .story-live .story__card--slot { max-width: 30rem; }
}
@media (min-width: 900px) {
  .story-live .story__handoff-grid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: var(--s-6); align-items: end; }
}
@media (max-height: 640px) and (min-width: 900px) {
  .story-live .story__meta { display: none; }
}

/* Feinschliff */
@media (min-width: 64rem) { .main-nav ul a[aria-current="page"] { box-shadow: none; } }
.page-head + .section { padding-top: var(--s-6); }

/* ---------- Hinweis Werbemessung (erscheint nur nach Anzeigen-Klick) ---------- */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: var(--gunmetal); color: var(--titanium);
  border-top: 2px solid var(--copper); box-shadow: 0 -12px 32px rgba(0, 0, 0, .35);
  padding-block: var(--s-4) max(var(--s-4), env(safe-area-inset-bottom));
}
.consent[hidden] { display: none; }
.consent__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); }
.consent__text { flex: 1 1 32rem; min-width: 0; }
.consent__title { font-size: var(--step-1); margin: 0 0 var(--s-2); color: var(--titanium); }
.consent p { margin: 0; font-size: var(--step--1); max-width: 62rem; }
.consent a { color: var(--titanium); }
.consent__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.consent__actions .btn { min-width: 9rem; }
.site-foot__base .linkish { margin-left: var(--s-5); }
