/* RooX Technologies, Startseite. Fassung 2.
   Welt: technisches Datenblatt. Ein Akzent, Haarlinien statt Schatten, keine Cards. */

/* ---------- Schrift, lokal gehostet, kein externer Request ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sometype Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/sometype-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sometype Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/sometype-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Marken- und Systemwerte ---------- */
:root {
  --paper:       #F3F4F1;
  --paper-sunk:  #EAEBE7;
  --ink:         #14181D;
  --muted:       #5A6472;
  --rule:        #C2C8CF;
  --rule-strong: #6E7783;
  --deep:        #2A4A77;
  --accent:      #4D9BFF;   /* Marke und tiefe Bahn */
  --accent-mark: #1F6FE0;   /* dieselbe Farbe, Rendition fuer Marken auf Papier, 4,3:1 */
  --brand-x:     #4A90FF;   /* nur das X der Wortmarke, so im Briefing festgelegt */

  --on-deep:        #F4F7FB;
  --on-deep-muted:  #AFC2DC;
  --rule-on-deep:   #4A6A97;

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Sometype Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --page-pad: clamp(20px, 4vw, 56px);
  --measure: 68ch;
  --gap: clamp(20px, 2.2vw, 32px);
  --section-gap: clamp(56px, 6.4vw, 96px);

  --ease:        cubic-bezier(.22, 1, .36, 1);
  --ease-out:    cubic-bezier(.23, 1, .32, 1);    /* Ankunft, spuerbar sofort */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);   /* Bewegung auf dem Schirm */
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h, 68px) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  font-variation-settings: 'wdth' 100;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Browserflaechen, die sonst niemandem gehoeren ---------- */
::selection { background: var(--deep); color: var(--on-deep); }
:root { accent-color: var(--deep); caret-color: var(--deep); scrollbar-color: var(--rule-strong) var(--paper-sunk); }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-sunk); }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border: 3px solid var(--paper-sunk); }

img, svg { display: block; max-width: 100%; }
a { color: var(--deep); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
table { border-collapse: collapse; width: 100%; }
button, input { font: inherit; color: inherit; }

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Raster ---------- */
.sheet { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--page-pad); }
.grid  { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }

.rule       { border: 0; border-top: 1px solid var(--rule); }
.rule--firm { border-top-color: var(--rule-strong); }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-weight: 700; line-height: 1.04; text-wrap: balance; letter-spacing: -.025em; }

.display {
  font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.25rem);
  font-variation-settings: 'wdth' 112;
  letter-spacing: -.035em;
  line-height: .97;
  max-width: 26ch;
}
h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem);
  font-variation-settings: 'wdth' 106;
  letter-spacing: -.028em;
  max-width: 24ch;
}
h3 { font-size: 1.125rem; font-variation-settings: 'wdth' 104; letter-spacing: -.015em; }

p { max-width: var(--measure); }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); line-height: 1.55; }

.field-label {
  font-size: .6875rem;
  font-weight: 650;
  font-variation-settings: 'wdth' 96;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.data { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; letter-spacing: -.01em; }
.num  { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* ---------- Kopf, die Dokumentlinie ---------- */
.skip {
  position: fixed; top: 10px; left: var(--page-pad); z-index: 100;
  background: var(--deep); color: var(--on-deep); padding: 12px 18px;
  text-decoration: none; transform: translateY(-200%);
  transition: transform .18s var(--ease);
}
.skip:focus-visible { transform: translateY(0); }

.doc-head { border-bottom: 1px solid var(--rule-strong); position: sticky; top: 0; z-index: 40; background: var(--paper); }
.doc-head__in { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.4vw, 34px); min-height: 68px; }

.mark { display: inline-block; font-variation-settings: 'wdth' 118; font-weight: 700; font-size: 1.0625rem; letter-spacing: .02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.mark__x { color: var(--brand-x); font-size: 1.18em; letter-spacing: 0; margin-left: .02em; }

.doc-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); min-width: 0; }
.doc-nav a {
  color: var(--muted); text-decoration: none;
  font-size: .8125rem; font-weight: 600; font-variation-settings: 'wdth' 96;
  letter-spacing: .02em; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.doc-nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }

.lang { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 16px); }
.lang a {
  color: var(--muted); text-decoration: none;
  font-size: .8125rem; font-weight: 600; font-variation-settings: 'wdth' 96;
  letter-spacing: .02em; padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.lang a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.lang [aria-current="true"] { color: var(--ink); border-bottom-color: var(--deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 20px;
  font-size: .875rem; font-weight: 650; font-variation-settings: 'wdth' 98; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; background: transparent;
  color: var(--deep); border: 1px solid var(--deep);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--deep); color: var(--on-deep); }
.btn--solid { background: var(--deep); color: var(--on-deep); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btn--quiet { border-color: var(--rule-strong); color: var(--ink); }
.btn--quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.doc-head .btn { padding: 8px 16px; min-height: 40px; }

/* ---------- Abschnittsgeruest ---------- */
.section { padding-block: var(--section-gap); border-top: 1px solid var(--rule); }
.section--open { border-top: 0; }
.section__head { margin-bottom: clamp(22px, 2.4vw, 36px); }

/* ---------- 1. Hero ---------- */
.hero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(26px, 3vw, 40px); }
.hero__type { grid-column: span 9; }
.hero .lead { margin-top: clamp(20px, 2.2vw, 30px); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 38px); }

/* ---------- 2. Produktansicht ---------- */
.signals { grid-column: 1 / -1; }
.view { border: 1px solid var(--rule-strong); background: var(--paper); }
.view__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 13px 18px; border-bottom: 1px solid var(--rule-strong); background: var(--paper-sunk);
}
.view__title { font-size: .9375rem; font-weight: 700; font-variation-settings: 'wdth' 104; letter-spacing: -.012em; max-width: none; line-height: 1.3; }
.view__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .75rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--rule); padding: 4px 10px; white-space: nowrap;
}
.view__note { margin-left: auto; font-size: .6875rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.signals-table { font-size: .9375rem; }
.signals-table th, .signals-table td { text-align: left; padding: 13px 18px; vertical-align: middle; }
.signals-table thead th { border-bottom: 1px solid var(--rule-strong); padding-block: 10px; }
.signals-table tbody tr { border-bottom: 1px solid var(--rule); }
.signals-table tbody tr:last-child { border-bottom: 0; }
.signals-table td:first-child { font-weight: 600; }

.conf { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.conf__bars { display: inline-flex; gap: 3px; }
.conf__bars i { display: block; width: 13px; height: 10px; background: var(--rule); }
.conf__bars i.on { background: var(--accent-mark); }
.conf__word { font-size: .875rem; color: var(--muted); }

.legend { margin-top: 12px; font-size: .8125rem; color: var(--muted); max-width: 90ch; }

/* Ohne JavaScript gibt es kein Datum, also auch keine leere Spalte. */
html:not(.js) .signals-table th:nth-child(6), html:not(.js) .signals-table td:nth-child(6) { display: none; }

/* ---------- 3. Customer Journey ---------- */
.journey { grid-column: 1 / -1; margin-top: clamp(20px, 2.2vw, 30px); }
.phases { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); }
.phase { position: relative; padding: 24px 14px 0 0; }
.phase::before { content: ""; position: absolute; top: -1px; left: 0; width: 1px; height: 15px; background: var(--rule-strong); }
.phase__n { font-family: var(--mono); font-size: .6875rem; color: var(--muted); }
.phase__t { display: block; margin-top: 5px; font-weight: 650; font-size: 1rem; }
.phase__d { display: block; margin-top: 7px; font-size: .9375rem; color: var(--muted); line-height: 1.45; max-width: 26ch; }
/* Sichtbarkeit: die Flaeche traegt die Codierung, der Satz traegt die Aussage.
   So haengt die Information nie an der Farbe allein. */
.phase__vis { display: block; margin-top: 16px; padding: 9px 12px; font-size: .8125rem; font-weight: 600; line-height: 1.35; color: var(--ink); background: var(--vis-none); }
.phase--roox   { --vis-none: var(--accent); }
.phase--local  { --vis-none: #B9D6FF; }
.phase--market { --vis-none: #DDE1E5; }

/* ---------- 4. Anwendungen ---------- */
.uses { row-gap: clamp(40px, 4.5vw, 64px); }
.use-pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--gap); row-gap: 0; grid-template-rows: auto auto auto auto; }
.use { display: grid; grid-row: span 4; gap: 0; }
.use > h3 { padding-top: 16px; border-top: 2px solid var(--ink); }
.use > p { margin-top: 10px; }
.use dl { margin-top: 16px; border-top: 1px solid var(--rule); align-self: start; }
.use dl div { display: grid; grid-template-columns: 11em 1fr; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.use dd { font-size: .9375rem; }

/* ---------- Branchen, Teil der Anwendungen ---------- */
.industries { grid-column: 1 / -1; margin-top: clamp(34px, 3.6vw, 52px); }
.industries > h3 { padding-top: 14px; border-top: 1px solid var(--rule-strong); margin-bottom: clamp(16px, 1.8vw, 24px); font-size: 1rem; font-weight: 650; color: var(--muted); }
.industries ul { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--gap); row-gap: 0; border-top: 1px solid var(--rule-strong); }
.industry { position: relative; padding: 22px 12px 0 0; }
.industry::before { content: ""; position: absolute; top: -1px; left: 0; width: 1px; height: 15px; background: var(--rule-strong); }
.industry b { display: block; font-size: 1rem; font-weight: 650; letter-spacing: -.012em; }
.industry span { display: block; margin-top: 8px; font-size: .9375rem; color: var(--muted); line-height: 1.45; }

/* ---------- 5. So funktioniert es ---------- */
.steps { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); row-gap: 0; border-top: 1px solid var(--rule-strong); }
.step { position: relative; padding: 24px 12px 0 0; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 1px; height: 15px; background: var(--rule-strong); }
.step__n { font-family: var(--mono); font-size: .6875rem; color: var(--muted); }
.step__t { display: block; margin-top: 6px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.012em; }
.step__d { display: block; margin-top: 9px; font-size: .9375rem; color: var(--muted); line-height: 1.5; }

/* ---------- 6. Datenbasis, die eine tiefe Bahn ---------- */
.deep { background: var(--deep); color: var(--on-deep); padding-block: var(--section-gap); }
.deep h2 { color: var(--on-deep); }
.deep .field-label { color: var(--on-deep-muted); }

.figures { grid-column: 1 / -1; border-top: 1px solid var(--rule-on-deep); display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); row-gap: 0; }
.figure { padding-top: 20px; border-top: 2px solid var(--on-deep); margin-top: -1px; }
.figure b { display: block; font-size: clamp(1.6rem, 1rem + 2.1vw, 2.8rem); font-weight: 700; font-variation-settings: 'wdth' 108; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.figure span { display: block; margin-top: 10px; font-size: .875rem; color: var(--on-deep-muted); line-height: 1.4; }

.proof { grid-column: span 6; }
.stat b { display: block; font-size: clamp(3rem, 1.6rem + 4.6vw, 5rem); font-weight: 700; font-variation-settings: 'wdth' 108; letter-spacing: -.035em; line-height: .95; font-variant-numeric: tabular-nums; }
.stat .stat__label { display: block; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule-on-deep); font-size: .9375rem; font-weight: 600; color: var(--on-deep); max-width: 30ch; }
.stat p { margin-top: 18px; color: var(--on-deep); }
.bars { grid-column: 7 / span 6; align-self: end; }
.bar { margin-bottom: 20px; }
.bar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; font-size: .875rem; }
.bar__top .field-label { text-transform: none; letter-spacing: .005em; font-size: .875rem; font-weight: 500; }
.bar__v { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bar__track { height: 12px; background: var(--rule-on-deep); }
.bar__fill { height: 100%; background: var(--accent); }
.bar--low .bar__fill { background: var(--on-deep-muted); }


/* ---------- 7. Sicherheit und Compliance ---------- */
.sec-cols { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 4vw, 64px); row-gap: 0; grid-template-rows: auto auto auto; }
.sec-col { display: grid; grid-row: span 3; }
.sec-col > h3 { padding-top: 16px; border-top: 2px solid var(--ink); }
.sec-col > p { margin-top: 8px; margin-bottom: 14px; }
.checks { list-style: none; border-top: 1px solid var(--rule-strong); }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; align-items: start; }
.checks svg { width: 13px; height: 13px; margin-top: .45em; stroke: var(--deep); stroke-width: 2; fill: none; }

/* ---------- 10. Kontakt ---------- */
.ref-line { font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem); font-weight: 700; font-variation-settings: 'wdth' 104; letter-spacing: -.018em; line-height: 1.32; color: var(--accent-mark); margin-bottom: 18px; max-width: 22ch; }
.close__type { grid-column: span 6; }
.close__form { grid-column: 8 / span 5; align-self: start; }
.f-row { border-top: 1px solid var(--rule-strong); padding-top: 14px; }
.f-row label { display: block; margin-bottom: 8px; }
.f-row input {
  width: 100%; padding: 13px 0; min-height: 48px;
  background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong);
  font-size: 1.0625rem;
}
.f-row input::placeholder { color: var(--muted); opacity: 1; }
.f-row input:focus-visible { outline: 0; border-bottom: 2px solid var(--deep); }
.close__form .btn { margin-top: 20px; width: 100%; }
.privacy-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--muted); }
.form-msg { margin-top: 14px; font-size: .9375rem; min-height: 1.5em; }
.form-msg[data-state="ok"]  { color: var(--deep); font-weight: 600; }
.form-msg[data-state="err"] { color: #9B2226; font-weight: 600; }
.form-msg a { color: inherit; }

/* ---------- Fuss ---------- */
.colophon { border-top: 1px solid var(--rule-strong); padding-block: 40px 56px; }
.colophon__in { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: baseline; font-size: .8125rem; color: var(--muted); }
.colophon a { color: var(--muted); text-decoration: none; text-underline-offset: 3px; padding-block: 4px; margin-block: -4px; }
.colophon a:hover { color: var(--ink); text-decoration: underline; }
.colophon .lang { margin-left: auto; }

/* ---------- Rechtsseite ----------
   Dieselbe Welt wie die Startseite: Haarlinien, Masskette, Mono fuer Nummern.
   Nummerierte Ziffern sind hier verdient, weil ein Rechtstext danach zitiert wird. */
.legal-head { grid-column: 1 / -1; margin-bottom: clamp(36px, 4vw, 56px); }
.legal-head .display { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); max-width: 18ch; }
.legal-head .stand { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule-strong); font-size: .9375rem; color: var(--muted); }
.legal-head .stand b { font-weight: 650; color: var(--ink); font-family: var(--mono); font-size: .875rem; }

.legal { grid-column: 1 / span 8; }
.legal > section { margin-top: clamp(32px, 3.6vw, 48px); padding-top: clamp(24px, 2.6vw, 34px); border-top: 1px solid var(--rule); }
.legal > section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h2 {
  display: grid; grid-template-columns: 3.2em 1fr; gap: .2em; align-items: baseline;
  font-size: clamp(1.25rem, 1rem + .75vw, 1.625rem); max-width: none;
}
.legal__n { font-family: var(--mono); font-size: .8125rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.legal h2 + * { margin-top: 18px; }
.legal p { margin-top: 14px; }
.legal a { text-decoration: underline; }

.legal__addr { margin-top: 18px; font-style: normal; line-height: 1.6; }
.legal__addr b { font-weight: 650; }
.legal__list { list-style: none; margin-top: 18px; border-top: 1px solid var(--rule); }
.legal__list li { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.legal__list b { font-weight: 650; }
.legal__note { grid-column: 1 / span 8; margin-top: clamp(32px, 3.6vw, 48px); padding-top: 16px; border-top: 1px solid var(--rule-strong); font-size: .875rem; color: var(--muted); }

@media (max-width: 1000px) { .legal, .legal__note { grid-column: 1 / -1; } }
@media (max-width: 780px) {
  .legal h2 { grid-template-columns: 1fr; gap: 6px; }
  .legal__n { display: block; }
}



/* ---------- Mittlere Breiten ---------- */
@media (max-width: 1080px) {
  .signals-table th, .signals-table td { padding-inline: 14px; }
  .signals-table { font-size: .875rem; }
}
@media (max-width: 1000px) {
  .hero__type, .use, .close__type, .close__form, .proof, .bars {
    grid-column: 1 / -1;
  }
  .use-pair { grid-template-columns: 1fr; row-gap: clamp(36px, 4.5vw, 56px); }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .bars { margin-top: 34px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; grid-template-rows: none; }
  .step { display: block; grid-row: auto; }
  .industries ul { grid-template-columns: repeat(2, 1fr); row-gap: 28px; grid-template-rows: none; }
  .industry { display: block; grid-row: auto; }
  .sec-cols { grid-template-columns: 1fr; row-gap: clamp(30px, 3.6vw, 44px); grid-template-rows: none; }
  .sec-col { display: block; grid-row: auto; }
}

/* ---------- Schmale Schirme ---------- */
@media (max-width: 780px) {
  .doc-head { position: static; }
  .doc-head__in { min-height: 0; padding-block: 12px; gap: 10px 16px; }
  .doc-head__in > .lang { order: 2; margin-left: auto; }
  .doc-head__in > .btn { order: 3; }
  .doc-nav { order: 4; flex-basis: 100%; width: 100%; margin-left: 0; flex-wrap: wrap; overflow: visible; column-gap: 16px; row-gap: 2px; }
  .doc-nav a { font-size: .78125rem; }

  .phases, .steps, .industries ul { grid-template-columns: 1fr; }
  .phase, .step, .industry { padding: 16px 0 16px 14px; border-bottom: 1px solid var(--rule); }
  .phase::before, .step::before, .industry::before { top: 18px; height: 24px; }
  .use dl div { grid-template-columns: 1fr; gap: 4px; }

  /* Die Produktansicht klappt in Karteikarten, eine je Objekt, ohne Querlauf. */
  .view__bar { padding: 12px 14px; }
  .signals-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .signals-table tbody tr { display: block; padding: 14px; }
  .signals-table tbody td { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; padding: 5px 0; align-items: baseline; }
  .signals-table tbody td::before { content: attr(data-h); color: var(--muted); font-size: .6875rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
  .signals-table td:first-child { font-size: 1rem; }
}


/* ---------- Ausrichtung paralleler Bloecke ----------
   Jede Reihe gleichartiger Bloecke teilt ihre Zeilen mit dem Elternraster,
   damit Titel, Text und Fussteil auf gleicher Hoehe beginnen, unabhaengig
   davon, wie lang der Text darueber umbricht. */
@supports (grid-template-rows: subgrid) {
  .use-pair { grid-template-rows: auto auto auto auto; }
  .sec-cols { grid-template-rows: auto auto auto; }
  .use, .sec-col { grid-template-rows: subgrid; }
  .use dl { display: grid; grid-row: span 2; grid-template-rows: subgrid; }

  .industries ul { grid-auto-rows: auto; grid-template-rows: auto auto; }
  .industry      { display: grid; grid-row: span 2; grid-template-rows: subgrid; }

  .phases { grid-template-rows: auto auto auto auto; }
  .phase  { display: grid; grid-row: span 4; grid-template-rows: subgrid; }

  .steps { grid-template-rows: auto auto auto; }
  .step  { display: grid; grid-row: span 3; grid-template-rows: subgrid; }

  .figures { grid-template-rows: auto auto; }
  .figure  { display: grid; grid-row: span 2; grid-template-rows: subgrid; }

  /* Die Sichtbarkeitszeile sitzt am Fuss ihrer Zeile, damit die Flaechen
     eine durchgehende Bank bilden statt einer Treppe. */
  .phase__vis { align-self: stretch; width: 100%; }
}

@media (max-width: 780px) {
  @supports (grid-template-rows: subgrid) {
    .use-pair, .sec-cols, .industries ul, .phases, .steps { grid-template-rows: none; }
    .use, .sec-col, .industry, .phase, .step { display: block; grid-row: auto; }
    .figures { grid-template-rows: none; }
    .figure { display: block; grid-row: auto; }
  }
}


/* ==========================================================================
   Bewegung
   Ein gestalteter Moment: die Produktansicht. Alles andere erklaert Zustand,
   Reihenfolge oder Fortschritt. Nichts laeuft in einer Schleife, nichts
   laeuft zweimal. Der Ruhezustand ist sichtbar: die Startwerte gelten erst,
   wenn JavaScript die Klasse .motion setzt, und das tut es nur, wenn der
   Besucher keine reduzierte Bewegung verlangt.
   ========================================================================== */

/* ---------- Gemeinsames Eintreffen ---------- */
.motion [data-anim] { opacity: 0; transform: translateY(8px); }

.motion [data-anim].in {
  opacity: 1; transform: none;
  transition: opacity .42s var(--ease-out), transform .42s var(--ease-out);
  transition-delay: var(--d, 0s);
}

/* ---------- Produktansicht, der gestaltete Moment ---------- */
.motion .signals-table tbody tr[data-anim] { transform: translateY(6px); }
.signals-table tbody tr { transition: background-color .14s ease; }
.signals-table tbody tr:hover { background: var(--paper-sunk); }

/* Die Balken zaehlen die Stufe aus, einer nach dem anderen. */
.motion .conf__bars i.on { transform: scaleX(0); transform-origin: left center; }
.motion .conf__bars.in i.on {
  transform: scaleX(1);
  transition: transform .44s var(--ease-out);
}
.motion .conf__bars.in i:nth-child(1) { transition-delay: 0ms; }
.motion .conf__bars.in i:nth-child(2) { transition-delay: 130ms; }
.motion .conf__bars.in i:nth-child(3) { transition-delay: 260ms; }
.motion .conf__bars.in i:nth-child(4) { transition-delay: 390ms; }

/* ---------- Zeitleiste: die Linie laeuft von Phase 1 bis 4 ---------- */
.phases { position: relative; }
.phases::after {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--ink); transform-origin: left center;
}
.motion .phases::after { transform: scaleX(0); }
.motion .phases.in::after { transform: scaleX(1); transition: transform .7s var(--ease-in-out); }

/* Die Sichtbarkeit faerbt sich der Reihe nach ein, Phase 1 zuerst. */
.motion .phase__vis { background: var(--paper-sunk); }
.motion .phases.in .phase__vis {
  background: var(--vis-none);
  transition: background-color .55s var(--ease-out);
}
.motion .phases.in .phase:nth-child(1) .phase__vis { transition-delay: .32s; }
.motion .phases.in .phase:nth-child(2) .phase__vis { transition-delay: .56s; }
.motion .phases.in .phase:nth-child(3) .phase__vis { transition-delay: .80s; }
.motion .phases.in .phase:nth-child(4) .phase__vis { transition-delay: 1.04s; }

/* ---------- So funktioniert es: dieselbe Linie, dieselbe Aussage ---------- */
.steps { position: relative; }
.steps::after {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--ink); transform-origin: left center;
}
.motion .steps::after { transform: scaleX(0); }
.motion .steps::after { transition: transform .5s var(--ease-in-out); }
.motion .steps[data-fortschritt="1"]::after { transform: scaleX(.25); }
.motion .steps[data-fortschritt="2"]::after { transform: scaleX(.5); }
.motion .steps[data-fortschritt="3"]::after { transform: scaleX(.75); }
.motion .steps[data-fortschritt="4"]::after { transform: scaleX(1); }
/* Nur die vier Nummern erscheinen der Reihe nach, langsam und im Dreivierteltakt.
   Text, Titel und Linienanschlag stehen vom ersten Bild an. */
.motion .step .step__n { opacity: 0; }
.motion .step.erreicht .step__n {
  opacity: 1; color: var(--accent-mark); font-weight: 700;
  transition: opacity .6s var(--ease-out), color .6s var(--ease-out);
}

/* ---------- Datenbasis: Balken fuellen sich ---------- */
.bar__fill { transform-origin: left center; }
.motion .bar__fill { transform: scaleX(0); }
.motion .bars.in .bar__fill {
  transform: scaleX(1);
  transition: transform .7s var(--ease-out);
}
.motion .bars.in .bar:nth-child(1) .bar__fill { transition-delay: .12s; }
.motion .bars.in .bar:nth-child(2) .bar__fill { transition-delay: .74s; }

/* ---------- Navigation: die Unterstreichung folgt dem Abschnitt ---------- */
.doc-nav { position: relative; }
.doc-nav__bar {
  position: absolute; bottom: 0; left: 0; height: 2px; width: 1px;
  background: var(--deep); transform-origin: left center;
  transform: translateX(0) scaleX(0); opacity: 0;
  pointer-events: none;
}
.doc-nav__bar.on { opacity: 1; }
.motion .doc-nav__bar { transition: transform .32s var(--ease-in-out), opacity .2s ease; }

/* ---------- Feedback: Druck, Fokus, Erfolg ---------- */
.btn { transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .1s var(--ease-out); }
.btn:active { transform: scale(.975); }
.f-row input { transition: border-color .16s ease; }
.form-msg { transition: opacity .24s var(--ease-out), transform .24s var(--ease-out); }
.motion .form-msg:not([data-state]) { opacity: 0; transform: translateY(-3px); }
.motion .form-msg[data-state] { opacity: 1; transform: none; }

/* ---------- Reduzierte Bewegung ----------
   Kein Weg durch den Raum, aber Feedback bleibt lesbar: Hover, Fokus und
   der Druck auf eine Schaltflaeche bestaetigen weiterhin. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
  *, *::before, *::after { animation: none !important; }
}
