/* Panoscopia – Onepager
   Welt: schwarz eloxierte optische Bank bei Nacht. Farbe nur dort, wo Bilddaten sind. */

@font-face {
  font-family: "Hubot Sans";
  src: url("../fonts/hubot-sans-latin-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/hubot-sans-latin-standard-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/mona-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../fonts/martian-mono-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/martian-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #080b0e;
  --ground-2: #0c1014;
  --ground-3: #11171c;
  --line: #1a2229;
  --line-2: #27313a;
  --line-3: #36424c;
  --ink: #e9edf0;
  --ink-2: #aab4bd;
  --ink-3: #8a96a1;
  --spec: #d6eaf2;
  --amber: #f4b23e;
  --amber-ink: #1d1203;
  --lut-0: #12081c;
  --lut-1: #3d0d57;
  --lut-2: #7e1c66;
  --lut-3: #bf3550;
  --lut-4: #e8692c;
  --lut-5: #f6ae33;
  --lut-6: #fff0c2;

  --font-display: "Hubot Sans", "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1360px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --sec-top: clamp(104px, 13vw, 184px);
  --sec-bottom: clamp(88px, 11vw, 152px);
  --bar-h: 64px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--ground);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ground);
  /* Lochraster einer optischen Bank, kaum sichtbar */
  background-image: radial-gradient(circle at 1px 1px, rgb(233 237 240 / .045) 1px, transparent 1.4px);
  background-size: 28px 28px;
  color: var(--ink-2);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: rgb(244 178 62 / .32); color: #fff; }

/* Scrollleisten im Ton der Seite */
html { scrollbar-color: var(--line-3) var(--ground); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 2px solid var(--ground); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }

img, svg, canvas { display: block; max-width: 100%; }
svg { overflow: visible; }

a { color: var(--ink); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--line-3); transition: text-decoration-color .25s var(--ease-out), color .25s var(--ease-out); }
a:hover { text-decoration-color: var(--amber); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 1px; }

h1, h2, h3, h4 {
  margin: 0;
  word-spacing: .08em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-stretch: 112%;
  letter-spacing: -.028em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.2rem + 3.9vw, 5.25rem); line-height: .98; letter-spacing: -.034em; }
h1 .ln { display: block; }
h2 { font-size: clamp(2rem, 1.15rem + 2.65vw, 3.55rem); line-height: 1.04; }
h3 { font-size: clamp(1.18rem, 1.02rem + .5vw, 1.45rem); line-height: 1.2; font-stretch: 106%; font-weight: 540; letter-spacing: -.012em; }

p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

.lead { font-size: clamp(1.12rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }

/* Messwerte und Einheiten: immer Martian Mono */
.m, .data {
  font-family: var(--font-data);
  font-size: .86em;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.label {
  font-family: var(--font-text);
  font-size: .72rem;
  line-height: 1.3;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 560;
}

sup.fn { font-family: var(--font-text); font-weight: 600; font-size: .66em; line-height: 0; margin-left: .1em; }
sup.fn a { text-decoration: none; color: var(--ink-2); }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--ink); color: var(--ground); padding: 10px 14px; font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip:focus-visible { top: 12px; }

/* ---------- Knöpfe ---------- */
.btn {
  --b-bg: transparent; --b-fg: var(--ink); --b-line: var(--line-3);
  display: inline-flex; align-items: center; gap: .65em;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--b-line); border-radius: var(--radius);
  background: var(--b-bg); color: var(--b-fg);
  font-family: var(--font-display); font-stretch: 108%; font-weight: 560; font-size: .98rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out), transform .12s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { --b-bg: var(--ink); --b-fg: var(--ground); --b-line: var(--ink); }
.btn--solid:hover { --b-bg: #fff; --b-line: #fff; }
.btn--ghost:hover { --b-line: var(--ink-2); --b-bg: rgb(233 237 240 / .04); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px;
  font-family: var(--font-display); font-stretch: 108%; font-weight: 520; font-size: .98rem;
  color: var(--ink); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.link-arrow span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; text-decoration-color: var(--line-3); transition: text-decoration-color .25s var(--ease-out); }
.link-arrow:hover span { text-decoration-color: var(--amber); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Kopfleiste ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out);
}
.bar.is-scrolled { border-bottom-color: var(--line); }
.bar__in { display: flex; align-items: center; gap: 28px; height: var(--bar-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__word { font-family: var(--font-display); font-stretch: 122%; font-weight: 560; font-size: 1.12rem; letter-spacing: .005em; }
.nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 450;
  transition: color .2s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.bar__end { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font-family: var(--font-text); font-weight: 600; font-size: .8rem; letter-spacing: .06em; color: var(--ink-2); text-decoration: none;
}
.lang:hover { color: var(--ink); }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  background: none; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink);
  font-family: var(--font-text); font-size: .9rem; cursor: pointer;
}
.menu-toggle svg { width: 16px; height: 16px; }
.menu { border-top: 1px solid var(--line); background: var(--ground); }
.menu ul { list-style: none; margin: 0 auto; padding-top: 8px; padding-bottom: 16px; }
.cta-short { display: none; }
.menu__lang a { font-family: var(--font-text); font-size: 1rem; color: var(--ink-2); }
.menu a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-stretch: 110%; font-size: 1.25rem; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(72px, 9vw, 128px); }
.hero__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
}
.hero__text { grid-column: 1 / span 5; position: relative; z-index: 1; padding-block: 24px; }
.hero__text h1 { margin-bottom: 28px; max-width: 10.5em; }
.hero__text .lead { max-width: 33em; margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__ref { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-3); max-width: 34em; }
.hero__ref .label { display: block; margin-bottom: 6px; }

/* Das Instrument */
.scope { grid-column: 6 / -1; margin: 0; margin-right: calc(-1 * var(--gutter)); position: relative; }
.scope__frame {
  position: relative; aspect-ratio: 1.36; width: 100%;
  background: #040608;
  border: 1px solid var(--line-2); border-right: 0;
  overflow: hidden;
}
.scope__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope__tick { position: absolute; width: 14px; height: 14px; border-color: var(--line-3); border-style: solid; border-width: 0; pointer-events: none; }
.scope__tick--tl { left: 10px; top: 10px; border-left-width: 1px; border-top-width: 1px; }
.scope__tick--tr { right: 10px; top: 10px; border-right-width: 1px; border-top-width: 1px; }
.scope__tick--bl { left: 10px; bottom: 10px; border-left-width: 1px; border-bottom-width: 1px; }
.scope__tick--br { right: 10px; bottom: 10px; border-right-width: 1px; border-bottom-width: 1px; }
.scope__tag { position: absolute; left: 34px; top: 16px; color: var(--ink-3); pointer-events: none; }
.scope__scale { position: absolute; left: 34px; bottom: 20px; display: flex; flex-direction: column; gap: 7px; pointer-events: none; }
.scope__scalebar { display: block; height: 3px; width: 80px; background: var(--ink); }
.scope__scale .data { font-size: .6875rem; color: var(--ink); }

.scope__status {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-2); border-top: 0; border-right: 0;
}
.seg { display: flex; align-items: center; gap: 10px; padding: 11px 16px; min-height: 46px; background: var(--ground-2); min-width: 0; }
.seg .label { color: var(--ink-3); }
.seg .data { font-size: .75rem; }
.seg--state { grid-column: 1 / span 3; }
.seg--state .data { color: var(--ink); white-space: normal; font-family: var(--font-text); font-weight: 520; font-size: .84rem; letter-spacing: 0; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; transition: background-color .3s var(--ease-out); }
.led.is-busy { background: var(--amber); }
.led.is-done { background: var(--spec); }
.seg--focus { justify-content: space-between; }
.focuscurve { width: 100%; max-width: 132px; height: 26px; }

.scope__controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 0 0; padding-right: var(--gutter); }
.scope__cap { color: var(--ink-3); font-size: .82rem; }
.scope__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px 0 10px;
  background: transparent; border: 1px solid var(--line-3); border-radius: var(--radius); color: var(--ink);
  font-family: var(--font-display); font-stretch: 106%; font-weight: 520; font-size: .88rem; cursor: pointer;
  transition: border-color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.toggle__sw { position: relative; width: 28px; height: 16px; border-radius: 8px; background: var(--line-2); transition: background-color .3s var(--ease-out); flex: none; }
.toggle__sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); transition: transform .3s var(--ease-out), background-color .3s var(--ease-out); }
.toggle[aria-pressed="true"] { border-color: var(--amber); }
.toggle[aria-pressed="true"] .toggle__sw { background: var(--amber); }
.toggle[aria-pressed="true"] .toggle__sw::after { transform: translateX(12px); background: var(--ground); }
.toggle:hover:not([disabled]) { background: rgb(233 237 240 / .04); }
.toggle[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Abschnitte ---------- */
.sec { padding-top: var(--sec-top); padding-bottom: var(--sec-bottom); border-top: 1px solid var(--line); position: relative; }
.sec__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); margin-bottom: clamp(48px, 6vw, 88px); }
.sec__head h2 { grid-column: 1 / span 8; }
.sec__head p { grid-column: 1 / span 7; margin-top: 26px; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* Warum */
.why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.why__h { grid-column: 1 / span 9; margin-bottom: clamp(32px, 4vw, 48px); }
.why__body { grid-column: 1 / span 6; }
.why__punch { grid-column: 8 / -1; align-self: end; margin: 0; padding-left: 24px; border-left: 1px solid var(--line-3); }
.why__fig { grid-column: 1 / -1; margin: clamp(56px, 7vw, 96px) 0 0; }
.why__fig svg { width: 100%; height: auto; }
.why__tall { display: none; }
.punch { font-family: var(--font-display); font-stretch: 108%; font-weight: 500; font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); line-height: 1.32; color: var(--ink); letter-spacing: -.015em; word-spacing: .08em; max-width: 26em; }
.fig-cap { margin-top: 18px; font-size: .82rem; color: var(--ink-3); }

/* SVG-Zeichnungen */
.draw { color: var(--ink-2); }
.draw .ln { fill: none; stroke: var(--line-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.draw .ln-2 { fill: none; stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.draw .ln-ink { fill: none; stroke: var(--ink-2); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.draw .ln-amber { fill: none; stroke: var(--amber); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.draw .fill-amber { fill: var(--amber); }
.draw .fill-spec { fill: var(--spec); }
.draw .fill-tissue { fill: rgb(214 234 242 / .1); stroke: rgb(214 234 242 / .45); stroke-width: 1; vector-effect: non-scaling-stroke; }
.draw .fill-ground { fill: var(--ground-3); }
.draw .grid-ln { fill: none; stroke: rgb(214 234 242 / .16); stroke-width: .6; vector-effect: non-scaling-stroke; }
.draw .dash { stroke-dasharray: 4 4; }
.draw text { font-family: var(--font-text); font-weight: 520; font-size: 11.5px; fill: var(--ink-2); letter-spacing: .01em; }
.draw text.t-m { font-family: var(--font-data); font-weight: 400; font-size: 11px; letter-spacing: .02em; }
.draw text.t-ink { fill: var(--ink); }
.draw text.t-amber { fill: var(--amber); }
.draw text.t-dim { fill: var(--ink-3); }
.draw .hatch { fill: url(#hatch); }

/* Verfahren */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.step { padding: 28px clamp(16px, 2vw, 28px) 8px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.step + .step { padding-left: clamp(16px, 2vw, 28px); }
.step:last-child { border-right: 0; }
.step__num { color: var(--ink-3); margin-right: .45em; font-weight: 500; }
.step svg { width: 100%; height: 172px; margin-bottom: 26px; }
.step h3 { margin-bottom: 12px; }
.step p { font-size: .98rem; }

/* Technik */
.tech { align-items: start; }
.tech__fig { grid-column: 1 / span 6; position: sticky; top: calc(var(--bar-h) + 40px); }
.tech__fig svg { width: 100%; height: auto; }
.tech__fig text { font-size: 12px; }
.tech__list { grid-column: 8 / -1; margin: 0; }
.tech__item { padding: 26px 0; border-top: 1px solid var(--line); }
.tech__item:first-child { border-top: 0; padding-top: 0; }
.tech__item h3 { margin-bottom: 10px; }
.tech__item p { font-size: 1rem; }

.sheet { margin-top: clamp(72px, 9vw, 128px); }
.sheet__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); padding-bottom: 16px; }
.sheet__head h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); }
table.spec { width: 100%; border-collapse: collapse; font-size: .98rem; }
table.spec th, table.spec td { text-align: left; vertical-align: top; padding: 15px 0; border-bottom: 1px solid var(--line); }
table.spec th { width: 32%; padding-right: 24px; font-family: var(--font-text); font-weight: 560; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding-top: 17px; }
table.spec td { color: var(--ink); }
table.spec td .sub { display: block; color: var(--ink-3); font-size: .9rem; margin-top: 2px; }

/* KI */
.ai { align-items: start; }
.ai__text { grid-column: 1 / span 5; }
.ai__text h2 { margin-bottom: 32px; }
.ai__fig { grid-column: 7 / -1; margin: 0; }
.ai__frame { position: relative; aspect-ratio: 1.18; background: #040608; border: 1px solid var(--line-2); overflow: hidden; }
.ai__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai__legend { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.lut { height: 8px; width: 180px; background: linear-gradient(90deg, #6a1862, var(--lut-3) 35%, var(--lut-4) 66%, var(--lut-5)); }
.ai__legend .label { color: var(--ink-3); }
.warn {
  margin-top: 34px; padding: 20px 22px; border: 1px solid var(--line-3);
  background: var(--ground-2); color: var(--ink);
}
.warn .label { color: var(--ink); display: block; margin-bottom: 8px; }
.warn p { font-size: 1rem; color: var(--ink); font-weight: 500; }
.ai__text .actions { margin-top: 32px; }

/* Für wen */
.who { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.who__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.who__row h3 { grid-column: 1 / span 5; font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); line-height: 1.12; letter-spacing: -.022em; }
.who__row > div { grid-column: 6 / span 5; }
.who__row > div p { font-size: 1rem; }
.who__row .link-arrow { grid-column: 11 / -1; justify-self: end; font-size: .9rem; min-height: 40px; }

/* Ausblick */
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.road__col { border-top: 1px solid var(--line-2); padding-top: 24px; }
.road__col h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.road__col h3 .led { width: 8px; height: 8px; }
.road__col:first-child h3 .led { background: var(--spec); }
.road__col:nth-child(2) h3 .led { background: var(--ink); }
.road__col ul { margin: 0; padding: 0; list-style: none; }
.road__col li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.road__col li:first-child { border-top: 0; padding-top: 0; }
.road__note { font-size: .95rem; color: var(--ink-3); }

/* Kontakt */
.contact { padding-bottom: clamp(96px, 12vw, 168px); }
.contact h2 { font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.6rem); line-height: 1; max-width: 12em; margin-bottom: 30px; }
.contact .lead { max-width: 34em; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.contact__mail { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 18px; }
.contact__mail > div { grid-column: span 4; }
.contact__mail .label { display: block; margin-bottom: 8px; }
.contact__mail a { font-family: var(--font-text); font-weight: 520; font-size: 1.02rem; }
.copy { margin-left: 10px; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink-2); font-family: var(--font-text); font-weight: 600; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; cursor: pointer; vertical-align: 2px; min-height: 28px; }
.copy:hover { color: var(--ink); border-color: var(--line-3); }
.copy.is-done { color: var(--amber); border-color: var(--amber); }

/* Fuß */
.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: .88rem; color: var(--ink-3); }
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 28px; }
.foot__brand { grid-column: 1 / span 4; }
.foot__brand .brand { margin-bottom: 10px; }
.foot__nav { grid-column: 5 / span 3; }
.foot__nav ul { list-style: none; margin: 0; padding: 0; }
.foot__nav a { color: var(--ink-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.foot__nav a:hover { color: var(--ink); }
.foot__notes { grid-column: 8 / -1; }
.foot__notes p { font-size: .82rem; color: var(--ink-3); }
.foot__notes a { color: var(--ink-2); }

/* Rechtstexte */
.legal { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(88px, 10vw, 140px); }
.legal h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); margin-bottom: 48px; }
.legal h2 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); font-stretch: 106%; margin: 44px 0 12px; letter-spacing: -.01em; }
.legal__body { max-width: 46rem; }
.legal__body p, .legal__body li { color: var(--ink-2); }
.legal address { font-style: normal; color: var(--ink); line-height: 1.7; }

/* ---------- Zeiger über dem Lochraster (field.js): leises Aufleuchten und Fadenkreuz ---------- */
.field { position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }
.probe { position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; opacity: 0; color: var(--ink); will-change: transform, opacity; }
.probe svg { position: absolute; left: -24px; top: -20px; width: 48px; height: 40px; max-width: none; overflow: visible; }
.probe__frame { fill: none; stroke: currentColor; stroke-width: 1; }
.probe__cross { fill: none; stroke: var(--amber); stroke-width: 1; }
.probe__xy {
  position: absolute; left: 26px; top: 18px; display: flex; align-items: baseline; gap: 5px;
  padding: 3px 7px 4px; background: rgb(8 11 14 / .82); border: 1px solid var(--line-2); white-space: nowrap;
  transition: opacity .2s var(--ease-out);
}
.probe__xy i { font-style: normal; font-family: var(--font-text); font-weight: 600; font-size: .6rem; letter-spacing: .06em; color: var(--ink-3); }
.probe__v + i { margin-left: 5px; }
.probe__v, .probe__u { font-family: var(--font-data); font-size: .64rem; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.probe__u { color: var(--ink-2); }
.probe.is-small .probe__xy, .probe.is-idle .probe__xy { opacity: 0; }
@media (hover: none), (pointer: coarse) { .probe { display: none; } }

/* ---------- Scanlinie unter der Kopfleiste (motion.js) ---------- */
.scanline { position: absolute; left: 0; right: 0; top: var(--bar-h); height: 1px; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease-out); }
.bar.is-scrolled .scanline { opacity: 1; }
.scanline__fill { position: absolute; inset: 0; background: var(--ink-3); transform-origin: 0 50%; transform: scaleX(0); }
.scanline__head { position: absolute; left: -7px; top: -1px; width: 14px; height: 3px; background: var(--amber); }
.scanline__tick { position: absolute; left: 0; top: 1px; width: 1px; height: 5px; background: var(--line-3); transition: background-color .4s var(--ease-out); }
.scanline__tick.is-passed { background: var(--ink-2); }

/* Marke unter dem aktuellen Abschnitt */
.nav { position: relative; }
.nav__ind { position: absolute; left: 0; top: 0; width: 100px; height: 1px; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; pointer-events: none; }
.nav__ind.is-on { opacity: 1; }
.nav__ind.is-ready { transition: transform .55s var(--ease-out), opacity .3s var(--ease-out); }

/* ---------- Auftauchen beim Scrollen (motion.js) ----------
   Fokus: Überschriften stellen sich in drei Stufen scharf (grob, fein, ultrafein) wie der Autofokus.
   Nur Elemente unterhalb des ersten Bildschirms warten; ohne JavaScript bleibt alles sichtbar. */
@keyframes focusin {
  0%   { filter: blur(16px); opacity: .1; animation-timing-function: cubic-bezier(.3, .7, .3, 1); }
  36%  { filter: blur(2.5px); opacity: .9; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  48%  { filter: blur(5.5px); opacity: .95; animation-timing-function: cubic-bezier(.3, .7, .3, 1); }
  68%  { filter: blur(.6px); opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  80%  { filter: blur(1.6px); opacity: 1; animation-timing-function: cubic-bezier(.3, .7, .3, 1); }
  100% { filter: blur(0); opacity: 1; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); opacity: .5; } to { clip-path: inset(0 0 0 0); opacity: 1; } }

.rv.rv--focus { opacity: .1; filter: blur(16px); }
.rv.rv--fade, .rv.rv--row, .rv.rv--plot { opacity: 0; }
.rv.rv--wipe { clip-path: inset(0 100% 0 0); }
.rv-go.rv--focus { animation: focusin 1.45s linear both; will-change: filter, opacity; }
.rv-go.rv--fade { animation: rise .95s var(--ease-out) both; }
.rv-go.rv--row { animation: fadein .5s var(--ease-out) both; }
.rv-go.rv--wipe { animation: wipe 1.05s var(--ease-out) both; }

/* Datenblatt: Scanlinie fährt über die Tabelle */
.sheet { position: relative; }
.sweep { position: absolute; left: 0; right: 0; height: 1px; background: rgb(214 234 242 / .6); pointer-events: none; }
.sweep::before { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 44px; background: linear-gradient(to top, rgb(214 234 242 / .07), rgb(214 234 242 / 0)); }

/* Objektträger: Sichtfeld unter dem Cursor und Spur der erfassten Kacheln */
.why-cur { fill: none; stroke: var(--amber); stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .15s var(--ease-out); pointer-events: none; }
.why-cur.is-on { opacity: 1; }
.why-trail rect { fill: rgb(214 234 242 / .26); pointer-events: none; }
.why__wide[data-field-off] { cursor: crosshair; }

/* ---------- Erster Bildschirm: Überschrift stellt sich scharf, das Instrument fährt hoch ---------- */
@keyframes lock { from { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)); } to { opacity: 1; transform: none; } }
@keyframes boot {
  0% { opacity: 0; } 30% { opacity: .85; } 42% { opacity: .25; } 60% { opacity: 1; } 100% { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .ln { animation: focusin 1.6s linear both; }
  .hero h1 .ln + .ln { animation-delay: .16s; }
  .hero .lead { animation: rise 1s var(--ease-out) .5s both; }
  .hero .actions { animation: rise 1s var(--ease-out) .62s both; }
  .hero__ref { animation: rise 1s var(--ease-out) .74s both; }
  .scope__tick { animation: lock 1s var(--ease-out) .25s both; }
  .scope__tick--tl { --tx: -12px; --ty: -12px; }
  .scope__tick--tr { --tx: 12px; --ty: -12px; }
  .scope__tick--bl { --tx: -12px; --ty: 12px; }
  .scope__tick--br { --tx: 12px; --ty: 12px; }
  .scope__tag, .scope__scale { animation: fadein .8s var(--ease-out) .55s both; }
  .scope__status .seg { animation: boot .7s steps(6, end) both; }
  .scope__status .seg:nth-child(1) { animation-delay: .35s; }
  .scope__status .seg:nth-child(2) { animation-delay: .43s; }
  .scope__status .seg:nth-child(3) { animation-delay: .51s; }
  .scope__status .seg:nth-child(4) { animation-delay: .59s; }
  .scope__status .seg:nth-child(5) { animation-delay: .67s; }
  .scope__status .seg:nth-child(6) { animation-delay: .75s; }
  .scope__controls { animation: fadein .8s var(--ease-out) .9s both; }
}

/* ---------- Lupe über dem Präparat, Messsonde in der KI-Abbildung (specimen.js) ---------- */
.scope__loupe { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.scope__frame.has-loupe, .ai__frame.has-probe { cursor: none; }

/* ---------- Knöpfe: Fadenkreuz-Ecken rasten beim Zeigen ein ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn { position: relative; }
  .btn::after {
    content: ""; position: absolute; inset: -11px; pointer-events: none;
    background:
      linear-gradient(var(--amber), var(--amber)) left top / 7px 1px no-repeat,
      linear-gradient(var(--amber), var(--amber)) left top / 1px 7px no-repeat,
      linear-gradient(var(--amber), var(--amber)) right top / 7px 1px no-repeat,
      linear-gradient(var(--amber), var(--amber)) right top / 1px 7px no-repeat,
      linear-gradient(var(--amber), var(--amber)) left bottom / 7px 1px no-repeat,
      linear-gradient(var(--amber), var(--amber)) left bottom / 1px 7px no-repeat,
      linear-gradient(var(--amber), var(--amber)) right bottom / 7px 1px no-repeat,
      linear-gradient(var(--amber), var(--amber)) right bottom / 1px 7px no-repeat;
    opacity: 0;
    transition: opacity .18s var(--ease-out), inset .45s var(--ease-out);
  }
  .btn:hover:not([disabled])::after { opacity: 1; inset: -6px; }

  /* Für wen: die Zeile wird beim Zeigen eingelesen */
  .who__row { position: relative; z-index: 0; }
  .who__row::before {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: -1px; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    background: linear-gradient(90deg, rgb(233 237 240 / .045), rgb(233 237 240 / .015) 60%, rgb(233 237 240 / 0));
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); pointer-events: none;
  }
  .who__row::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink-3);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease-out); pointer-events: none;
  }
  .who__row:hover::before, .who__row:hover::after { transform: none; }
  .who__row h3 { transition: transform .6s var(--ease-out); }
  .who__row:hover h3 { transform: translateX(10px); }
}

/* Wartende Blöcke, in die der Tastaturfokus springt, sind sofort sichtbar */
.rv:focus-within { opacity: 1; filter: none; clip-path: none; }

/* Bewegung reduzieren: Zustände wechseln ohne Gleiten und Wischen */
@media (prefers-reduced-motion: reduce) {
  .nav__ind.is-ready, .btn::after, .who__row::before, .who__row::after, .who__row h3, .scanline, .scanline__tick, .probe__xy { transition: none; }
  .who__row:hover h3 { transform: none; }
}

@media print {
  .rv { opacity: 1 !important; filter: none !important; clip-path: none !important; }
  .field, .probe, .scanline { display: none !important; }
}

/* ---------- Anpassung ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 0 9px; font-size: .9rem; }
  .bar__in { gap: 18px; }
  .hero__text { grid-column: 1 / span 6; }
  .scope { grid-column: 7 / -1; }
  .tech__fig { grid-column: 1 / span 6; }
  .tech__list { grid-column: 7 / -1; }
}
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero__grid { row-gap: 0; }
  .hero__text { display: contents; }
  .hero__text > *, .scope { grid-column: 1 / -1; }
  .hero__text h1 { max-width: 11em; order: 1; margin: 8px 0 32px; }
  .scope { order: 2; margin-bottom: 40px; }
  .hero__text .lead { order: 3; }
  .hero__text .actions { order: 4; }
  .hero__text .hero__ref { order: 5; }
  .scope { grid-column: 1 / -1; margin-left: calc(-1 * var(--gutter)); }
  .scope__frame { border-left: 0; }
  .scope__status { border-left: 0; }
  .scope__controls { padding-left: var(--gutter); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(3) { padding-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 32px; }
  .why__h { grid-column: 1 / -1; }
  .why__body { grid-column: 1 / span 7; }
  .why__punch { grid-column: 8 / -1; }
  .tech__fig { grid-column: 1 / -1; position: static; margin-bottom: 48px; max-width: 620px; }
  .tech__list { grid-column: 1 / -1; }
  .ai__text { grid-column: 1 / -1; }
  .ai__fig { grid-column: 1 / -1; margin-top: 48px; }
  .who__row h3 { grid-column: 1 / span 5; }
  .who__row > div { grid-column: 6 / -1; }
  .who__row .link-arrow { grid-column: 6 / -1; justify-self: start; margin-top: 8px; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .sec__head h2, .sec__head p { grid-column: 1 / -1; }
  .why__h, .why__body, .why__punch { grid-column: 1 / -1; }
  .why__punch { margin-top: 32px; }
  .why__wide { display: none; }
  .why__tall { display: block; max-width: 440px; margin-inline: auto; }
  .why__tall text { font-size: 12.5px; }
  .tech__fig text { font-size: 17px; }
  .tech__fig text.t-m { font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0 8px; border-right: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step svg { max-width: 360px; }
  .who__row { grid-template-columns: 1fr; row-gap: 12px; }
  .who__row h3, .who__row > div, .who__row .link-arrow { grid-column: 1 / -1; }
  .road { grid-template-columns: 1fr; row-gap: 40px; }
  table.spec th { width: 38%; }
  .contact__mail > div { grid-column: 1 / -1; }
  .foot__brand, .foot__nav, .foot__notes { grid-column: 1 / -1; }
  .scope__status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg { padding: 9px 12px; min-height: 40px; }
  .seg--state { grid-column: 1 / -1; }
  .seg--focus { display: none; }
  .scope__frame { aspect-ratio: 1.12; }
  .scope__tag { left: 30px; }
  .brand__word { font-size: 1.04rem; }
  .bar__in { gap: 12px; }
  .bar__end { gap: 8px; }
  .bar__cta { padding: 0 14px; }
  .bar__cta .cta-long { display: none; }
  .bar__cta .cta-short { display: inline; }
}
@media (max-width: 420px) {
  .menu-toggle { padding: 0; width: 44px; justify-content: center; }
  .menu-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .actions .btn { width: 100%; justify-content: center; }
  table.spec th, table.spec td { display: block; width: 100%; padding: 0; border: 0; }
  table.spec th { padding-top: 16px; padding-bottom: 4px; }
  table.spec td { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
}

.sr-copy { position: fixed; left: -9999px; top: 0; opacity: 0; }

@media (max-width: 360px) {
  .bar__end .lang { display: none; }
}
