/* Exploded — Designsystem
   Papier und Tinte, eine Signalfarbe, Haarlinien. Instrument Sans für Text, IBM Plex Mono nur für Metadaten.
   Schriften: SIL Open Font License, selbst ausgeliefert. */

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

:root {
  --paper: #eceae4;
  --paper-2: #e3e0d9;
  --ink: #141416;
  --ink-2: #3b3b3d;
  --ink-3: #76746f;
  --ink-4: #a6a49e;
  --line: rgba(20, 20, 22, 0.16);
  --line-2: rgba(20, 20, 22, 0.08);
  --signal: #c4461d;
  --sans: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(20px, 4.6vw, 84px);
  --col: min(38vw, 600px);           /* Textspalte neben dem Objekt (Desktop) */
  --top: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.6, 0, 0.2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  font-feature-settings: 'kern', 'liga', 'calt';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.9s var(--ease-io), color 0.9s var(--ease-io);
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }

/* Dunkler Raum (Klimax „43 Teile“ und Abspann der Geräteseite) */
body.is-dark {
  --paper: #121213;
  --paper-2: #1b1b1d;
  --ink: #eceae4;
  --ink-2: #c9c6bf;
  --ink-3: #8e8c86;
  --ink-4: #5f5e5a;
  --line: rgba(236, 234, 228, 0.18);
  --line-2: rgba(236, 234, 228, 0.08);
  --signal: #e2673c;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- Typografie */
.meta {
  font: 400 11px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.meta b { font-weight: 500; color: var(--ink); }
.display {
  margin: 0;
  font-weight: 500;
  font-stretch: 88%;
  font-size: clamp(60px, 8.6vw, 156px);
  line-height: 0.88;
  letter-spacing: -0.045em;
}
.headline {
  margin: 0;
  font-weight: 500;
  font-stretch: 92%;
  font-size: clamp(36px, 4.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }
.prose p { margin: 0 0 1em; max-width: 58ch; color: var(--ink-2); font-size: 17px; line-height: 1.6; text-wrap: pretty; }

/* Textlink: Linie läuft von links ein */
.link { position: relative; display: inline-flex; align-items: baseline; gap: 0.4em; padding-bottom: 2px; }
.link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.link .arr { display: inline-block; transition: transform 0.45s var(--ease); }
.link:hover .arr { transform: translateX(4px); }

/* ---------------------------------------------------------------- Kopfzeile */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--top);
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), color 0.9s var(--ease-io);
}
.bar.is-hidden { transform: translateY(-100%); opacity: 0; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; justify-self: start; }
.wordmark svg { width: 16px; height: 16px; overflow: visible; }
.wordmark svg path { stroke: currentColor; transition: transform 0.6s var(--ease); }
.wordmark:hover svg .l1 { transform: translate(-1px, -1.5px); }
.wordmark:hover svg .l3 { transform: translate(1px, 1.5px); }
.crumb { font: 400 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.crumb b { font-weight: 500; color: var(--ink); }
.nav { justify-self: end; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 13.5px; }
.nav a { position: relative; color: var(--ink-2); transition: color 0.3s; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); }
.nav .lang { font: 400 11px/1 var(--mono); letter-spacing: 0.12em; color: var(--ink-3); }

/* ---------------------------------------------------------------- Objekt-Bühne (Geräteseite) */
/* #objbox ist die einzige Quelle für die Lage des Objekts: CSS positioniert, Canvas und Standbild folgen */
#objbox {
  position: fixed;
  z-index: 1;
  top: var(--top);
  bottom: 3vh;
  left: calc(var(--gutter) + var(--col));
  right: var(--gutter);
  pointer-events: none;
}
#objbox .still {
  width: 100%;
  height: 100%;
  object-fit: contain;
  view-transition-name: device-object;
  transition: opacity 0.6s var(--ease);
}
body.seq-ready #objbox .still { opacity: 0; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); }
body.seq-ready #scene { opacity: 1; }
.load { position: fixed; z-index: 45; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; }
.load span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 0.4s var(--ease), opacity 0.8s 0.4s; }
.load.is-done span { opacity: 0; }

/* Beschriftungen: technische Callouts mit Haarlinie */
#labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; color: var(--ink); transition: opacity 0.4s; }
#labels svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#labels path { fill: none; stroke: currentColor; stroke-width: 0.75; opacity: 0.55; transition: opacity 0.3s; }
#labels circle { fill: var(--paper); stroke: currentColor; stroke-width: 1; transition: fill 0.3s; }
#labels circle.on { fill: var(--signal); stroke: var(--signal); }
.lbl {
  position: absolute;
  left: 0; top: 0;
  display: none;
  pointer-events: auto;
  white-space: nowrap;
  padding: 10px 4px;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  will-change: transform, opacity;
}
/* Positionsnummer am Objekt; der Name erscheint nur bei Hover/Auswahl, nach außen vom Objekt weg */
.lbl .n { display: block; transition: color 0.3s; }
.lbl .t {
  position: absolute;
  top: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}
.lbl.r .t { left: 100%; transform: translate(-4px, -50%); padding-left: 8px; }
.lbl.l .t { right: 100%; transform: translate(4px, -50%); padding-right: 8px; }
.lbl:hover .t, .lbl.hl .t, .lbl.on .t { opacity: 1; transform: translate(0, -50%); }
.lbl:hover .n, .lbl.hl .n, .lbl.on .n { color: var(--signal); }
.lbl.on .t { color: var(--signal); }

/* Legende zum Kapitel: dieselben Nummern wie am Objekt */
.legend { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; max-width: 460px; }
.legend li { border-top: 1px solid var(--line-2); }
.legend button { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; width: 100%; padding: 8px 0 9px; text-align: left; font-size: 13.5px; color: var(--ink-2); transition: color 0.3s; }
.legend .n { font: 400 10.5px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-4); transition: color 0.3s; }
.legend .t { display: inline-block; transition: transform 0.35s var(--ease); }
.legend button:hover, .legend button.hl, .legend button[aria-pressed='true'] { color: var(--ink); }
.legend button:hover .t, .legend button.hl .t { transform: translateX(3px); }
.legend button:hover .n, .legend button.hl .n, .legend button[aria-pressed='true'] .n { color: var(--signal); }
.catalogue button.hl { color: var(--ink); }
.catalogue button.hl .n { color: var(--signal); }
.catalogue button.hl .t { transform: translateX(4px); }

/* ---------------------------------------------------------------- Geräteseite: Abschnitte */
#story { position: relative; z-index: 10; pointer-events: none; }
#story a, #story button { pointer-events: auto; }
.sec {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--top) + 4vh) var(--gutter) 8vh;
}
.sec > .inner { width: var(--col); max-width: 100%; }

/* gestaffeltes Einblenden, wenn ein Abschnitt aktiv wird (nur mit JavaScript) */
@media (scripting: enabled) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
  .is-active .rv { opacity: 1; transform: none; }
  .is-active .rv:nth-child(2) { transition-delay: 0.06s; }
  .is-active .rv:nth-child(3) { transition-delay: 0.12s; }
  .is-active .rv:nth-child(4) { transition-delay: 0.18s; }
  .is-active .rv:nth-child(5) { transition-delay: 0.24s; }
  .is-active .rv:nth-child(6) { transition-delay: 0.3s; }
}

/* Hero */
.sec.hero { justify-content: flex-end; padding-bottom: 12vh; }
.hero .meta.top { margin-bottom: 28px; display: flex; gap: 22px; flex-wrap: wrap; }
.hero .display { margin-bottom: 30px; }
.scrollcue { position: absolute; left: var(--gutter); bottom: 0; display: flex; align-items: flex-end; gap: 14px; height: 7vh; }
.scrollcue .bar-v { position: relative; width: 1px; height: 100%; background: var(--line); overflow: hidden; }
.scrollcue .bar-v::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ink); animation: cue 2.8s var(--ease-io) infinite; }
@keyframes cue { 0% { top: -40%; } 60%, 100% { top: 100%; } }
.scrollcue .meta { margin: 0 0 2px; }

/* Kennzahlen */
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 48px); margin: 0; }
.figures > div { border-top: 1px solid var(--line); padding: 18px 0 30px; }
.figures dt { font-weight: 450; font-stretch: 90%; font-size: clamp(48px, 5.6vw, 96px); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: proportional-nums; }
.figures dd { margin: 12px 0 0; }

/* Kapitel */
.chap .meta.idx { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.chap .meta.idx .rule { flex: 0 0 40px; height: 1px; background: var(--line); }
.chap .sub { margin: 0 0 14px; color: var(--ink-3); font-size: 15px; }
.chap .headline { margin-bottom: 26px; }
.chap .lead { margin-bottom: 34px; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; max-width: 460px; }
.specs > div { border-top: 1px solid var(--line); padding: 10px 0 16px; }
.specs dt { font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { margin: 6px 0 0; font: 400 13.5px/1.35 var(--mono); letter-spacing: 0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Kapitel-Anzeige */
.chapterbar {
  position: fixed;
  z-index: 30;
  right: var(--gutter);
  bottom: 3.4vh;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.chapterbar.is-on { opacity: 1; transform: none; }
.chapterbar .track { width: 88px; height: 1px; background: var(--line); }
.chapterbar .track span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 0.4s var(--ease); }

/* Klimax: 43 Teile */
.sec.all { justify-content: flex-start; padding-top: calc(var(--top) + 12vh); min-height: 220vh; }
.all .display { font-size: clamp(56px, 6.6vw, 124px); font-stretch: 84%; margin: 0 0 32px; white-space: pre-line; }
.all .lead { margin-bottom: 9vh; }
.catalogue { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.catalogue li { break-inside: avoid; border-top: 1px solid var(--line-2); }
.catalogue button {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: baseline;
  width: 100%;
  padding: 9px 0 10px;
  text-align: left;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.3s;
}
.catalogue .n { font: 400 10.5px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-4); transition: color 0.3s; }
.catalogue .t { display: inline-block; transition: transform 0.35s var(--ease); }
.catalogue button:hover, .catalogue button[aria-pressed='true'] { color: var(--ink); }
.catalogue button:hover .t { transform: translateX(4px); }
.catalogue button:hover .n, .catalogue button[aria-pressed='true'] .n { color: var(--signal); }

/* Detail-Ebene für ein Teil */
.panel {
  position: fixed;
  z-index: 50;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  padding: calc(var(--top) + 6vh) 40px 40px;
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(28px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), visibility 0s 0.5s, background-color 0.9s var(--ease-io);
}
.panel.is-open { transform: none; opacity: 1; visibility: visible; transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), visibility 0s, background-color 0.9s var(--ease-io); }
.panel .close { position: absolute; top: 26px; right: 40px; font: 400 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding: 8px 0; transition: color 0.3s; }
.panel .close:hover { color: var(--ink); }
.panel h3 { margin: 0; font-weight: 500; font-stretch: 92%; font-size: 38px; line-height: 1; letter-spacing: -0.03em; }
.panel p { margin: 0; }
.panel p:not(.meta) { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.panel .rule { height: 1px; background: var(--line); margin: 10px 0 0; }

/* Demontage-Film */
.film { position: relative; z-index: 12; background: var(--paper); transition: background-color 0.9s var(--ease-io); padding: 18vh var(--gutter) 14vh; }
.film .head { display: grid; grid-template-columns: var(--col) 1fr; gap: 0 4vw; align-items: end; margin-bottom: 7vh; }
.film .head .meta { margin-bottom: 22px; }
.film .body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 4vw; align-items: start; }
.film figure { margin: 0; position: relative; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b0b0c; cursor: pointer; }
.film figcaption { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.film .td-play { font: 400 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding: 6px 0; }
.film .td-play::before { content: attr(data-play); }
.film .td-play[aria-pressed='true']::before { content: attr(data-pause); }
.film .td-bar { height: 1px; background: var(--line); margin-top: 12px; }
.film .td-bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.td-steps { list-style: none; margin: 0; padding: 0; }
.td-steps li { border-top: 1px solid var(--line-2); }
.td-steps button { display: grid; grid-template-columns: 30px 1fr auto; align-items: baseline; width: 100%; padding: 9px 0; text-align: left; font-size: 14px; color: var(--ink-3); transition: color 0.3s; }
.td-steps .td-num, .td-steps .td-time { font: 400 10.5px/1 var(--mono); letter-spacing: 0.08em; }
.td-steps button:hover, .td-steps .done button { color: var(--ink-2); }
.td-steps .on button { color: var(--ink); }
.td-steps .on .td-num { color: var(--signal); }

/* ---------------------------------------------------------------- Abspann */
.coda { position: relative; z-index: 12; background: var(--paper); transition: background-color 0.9s var(--ease-io); padding: 16vh var(--gutter) 6vh; display: grid; grid-template-columns: var(--col) 1fr; gap: 6vh 4vw; }
.coda .mark { margin: 0; font-weight: 500; font-stretch: 90%; font-size: clamp(34px, 3.4vw, 54px); letter-spacing: -0.035em; line-height: 1; }
.coda .claim { margin: 0; font-size: 18px; line-height: 1.45; color: var(--ink-2); max-width: 30ch; align-self: end; }
.coda nav { display: flex; gap: 28px; font-size: 13.5px; color: var(--ink-2); }
.coda .fine { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.coda .fine p { margin: 0; max-width: 72ch; font-size: 12px; line-height: 1.55; color: var(--ink-3); }

/* ---------------------------------------------------------------- Startseite */
.home main { position: relative; }
.h-hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--top) + 6vh) var(--gutter) 12vh; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: end; gap: 4vw; }
.h-hero .display { font-size: clamp(56px, 7.4vw, 136px); max-width: 11ch; text-wrap: balance; }
.h-hero figure { margin: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; position: relative; min-height: 60vh; }
.h-hero figure img { width: 100%; max-height: 80vh; object-fit: contain; transform: scale(1.32); view-transition-name: device-object; }
.h-hero .h-fig { display: block; }
.h-hero figcaption { position: absolute; right: 0; bottom: -1vh; }
.h-intro { padding: 16vh var(--gutter); display: grid; grid-template-columns: var(--col) 1fr; gap: 4vw; }
.h-intro p:not(.meta) { margin: 0; font-size: clamp(22px, 2.1vw, 34px); line-height: 1.25; letter-spacing: -0.015em; max-width: 26ch; text-wrap: pretty; }
.h-intro .meta { margin: 0; padding-top: 0.9em; }
.collection { padding: 4vh var(--gutter) 16vh; }

/* ---------------------------------------------------------------- Geräte-Index (Menü + Startseite) */
.menu-btn { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--ink); padding: 6px 0; }
.menu-btn .mb-n { font: 400 10.5px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-3); transition: color 0.3s; }
.menu-btn:hover .mb-n, .menu-btn[aria-expanded='true'] .mb-n { color: var(--signal); }
.menu-btn .mb-t { position: relative; }
.menu-btn .mb-t::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.menu-btn:hover .mb-t::after, .menu-btn[aria-expanded='true'] .mb-t::after { transform: scaleX(1); transform-origin: left; }

.index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.index li { border-top: 1px solid var(--line); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 28px;
  grid-template-rows: auto auto;
  align-items: baseline;
  gap: 12px 0;
  padding: 26px 0 24px;
  color: var(--ink);
}
.row .r-n { grid-column: 1; grid-row: 1; font: 400 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-3); transition: color 0.35s; }
.row .r-name { grid-column: 2; grid-row: 1; font-weight: 500; font-stretch: 90%; font-size: clamp(30px, 3.2vw, 52px); line-height: 1; letter-spacing: -0.035em; white-space: nowrap; transition: transform 0.5s var(--ease), color 0.35s; }
.row .r-sub { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 4px 22px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); transition: transform 0.5s var(--ease); }
.row .r-go { grid-column: 3; grid-row: 1; justify-self: end; font-size: 20px; transition: transform 0.5s var(--ease), color 0.35s; }
.row .r-thumb { display: none; }
a.row::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
a.row:hover::before, a.row:focus-visible::before { transform: scaleX(1); }
a.row:hover .r-name, a.row:focus-visible .r-name, a.row:hover .r-sub, a.row:focus-visible .r-sub { transform: translateX(10px); }
a.row:hover .r-n, a.row:focus-visible .r-n, a.row:hover .r-go { color: var(--signal); }
a.row:hover .r-go { transform: translateX(6px); }
.index.is-large .row { padding: 30px 0 28px; }
.index.is-large .r-name { font-size: clamp(40px, 5vw, 88px); }
.index.has-hover a.row:not(:hover):not(:focus-visible) .r-name { color: var(--ink-3); }

/* Startseite: Vorschau des Geräts neben dem Index */
.collection { position: relative; display: grid; grid-template-columns: var(--col) minmax(0, 1fr); gap: 0 4vw; align-items: start; }
.collection .c-head { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-bottom: 5vh; border-top: 1px solid var(--line); padding-top: 16px; }
.collection .index { grid-column: 1; }
.c-preview, .m-preview { margin: 0; pointer-events: none; }
.c-preview { grid-column: 2; aspect-ratio: 1; width: 100%; max-width: 760px; justify-self: end; margin-top: -8vh; }
.c-preview img, .m-preview img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(10px) scale(0.985); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }
.c-preview.is-on img, .m-preview.is-on img { opacity: 1; transform: none; }

/* Menü-Overlay */
body.menu-open { overflow: hidden; }
.menu {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: var(--paper);
  padding: calc(var(--top) + 6vh) var(--gutter) 5vh;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.menu[hidden] { display: block; visibility: hidden; pointer-events: none; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu .m-inner { position: relative; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 0 4vw; }
.menu .m-head { grid-column: 1; display: flex; justify-content: space-between; margin: 0 0 3vh; }
.menu .index { grid-column: 1; align-self: start; }
.menu .m-preview { grid-column: 2; grid-row: 1 / 4; align-self: center; aspect-ratio: 1; width: 100%; max-height: 74vh; }
.menu .m-foot { grid-column: 1; display: flex; gap: 28px; margin: 6vh 0 0; font-size: 13.5px; color: var(--ink-2); }
.menu .index li { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }
.menu.is-open .index li { opacity: 1; transform: none; }
.menu.is-open .index li:nth-child(2) { transition-delay: 0.06s; }
.menu.is-open .index li:nth-child(3) { transition-delay: 0.12s; }
.menu.is-open .index li:nth-child(4) { transition-delay: 0.18s; }
.bar { z-index: 40; }
body.menu-open .bar { transform: none !important; opacity: 1 !important; }
body.menu-open .crumb { opacity: 0; }

/* Schritt-Kennzeichnung */
.chap .meta.idx .of { margin-left: auto; color: var(--ink-4); }
.chap .meta.idx { max-width: 460px; }

/* Über/Quellen */
.page { padding: calc(var(--top) + 14vh) var(--gutter) 10vh; }
.page .display { font-size: clamp(56px, 7vw, 124px); margin-bottom: 12vh; }
.page section { display: grid; grid-template-columns: var(--col) 1fr; gap: 4vw; border-top: 1px solid var(--line); padding: 18px 0 9vh; }
.page ol, .page ul { margin: 0; padding: 0; list-style: none; }
.page li { margin: 0 0 0.9em; font-size: 17px; color: var(--ink-2); }
.page li .meta { display: block; margin-top: 4px; }

/* Fehlerseite / ohne Skript */
.notfound { min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) 12vh; }
.notfound .display { margin: 18px 0 30px; }

/* Seitenübergang (View Transitions, das Objekt bleibt im Zentrum) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; animation-timing-function: var(--ease); }
::view-transition-group(device-object) { animation-duration: 0.7s; animation-timing-function: var(--ease); }

/* niedrige Querformat-Fenster (Laptops): Kapitel passen vollständig in den Bildschirm */
@media (min-width: 900px) and (min-aspect-ratio: 23/20) and (max-height: 860px) {
  .sec { padding: calc(var(--top) + 1vh) var(--gutter) 3vh; }
  .chap .meta.idx { margin-bottom: 14px; }
  .chap .sub { margin-bottom: 8px; font-size: 14px; }
  .headline { font-size: clamp(32px, 3.5vw, 58px); }
  .chap .headline { margin-bottom: 16px; }
  .chap .lead { font-size: 16px; margin-bottom: 20px; max-width: 40ch; }
  .specs > div { padding: 7px 0 10px; }
  .specs dd { font-size: 12.5px; margin-top: 4px; }
  .legend { margin-top: 16px; }
  .legend button { padding: 6px 0 7px; font-size: 13px; }
  .figures dt { font-size: clamp(44px, 4.8vw, 80px); }
}

/* ---------------------------------------------------------------- Hochformat / Telefon */
@media (max-width: 899px), (max-aspect-ratio: 23/20) {
  :root { --top: 60px; --col: 100%; }
  .bar { grid-template-columns: 1fr auto; }
  .crumb { display: none; }
  .nav { gap: 18px; }
  .nav a.opt { display: none; }
  #objbox { left: 0; right: 0; top: var(--top); bottom: auto; height: 50svh; }
  .sec { justify-content: flex-end; padding: calc(var(--top) + 50svh) var(--gutter) 6vh; }
  .sec > .inner { position: relative; }
  /* ruhige Papierfläche hinter dem Text, falls er beim Scrollen ins Objekt läuft */
  .sec > .inner::before { content: ''; position: absolute; inset: -28px calc(-1 * var(--gutter)) -6vh; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--paper) 28px); }
  .sec.hero { padding-bottom: 8vh; }
  .display { font-size: clamp(54px, 15vw, 88px); }
  .headline { font-size: clamp(32px, 8.6vw, 46px); }
  .lead { font-size: 16.5px; }
  .figures dt { font-size: clamp(40px, 12vw, 60px); }
  .specs { max-width: none; }
  .scrollcue { display: none; }
  .chapterbar { display: none; }
  .sec.all { padding-top: calc(var(--top) + 50svh); min-height: auto; }
  .all .display { font-size: clamp(48px, 13vw, 72px); }
  .catalogue { columns: 1; }
  .catalogue button { padding: 12px 0; font-size: 15px; }
  .lbl { font-size: 10.5px; padding: 12px 6px; }
  .legend { max-width: none; }
  .panel { top: auto; left: 0; width: 100%; max-height: 66svh; padding: 34px var(--gutter) calc(30px + env(safe-area-inset-bottom)); border-left: 0; border-top: 1px solid var(--line); transform: translateY(24px); }
  .panel .close { top: 18px; right: var(--gutter); }
  .panel h3 { font-size: 30px; }
  .film { padding: 12vh var(--gutter) 10vh; }
  .film .head, .film .body { grid-template-columns: 1fr; }
  .coda { grid-template-columns: 1fr; padding-top: 12vh; }
  .coda .fine { flex-direction: column; }
  .h-hero { grid-template-columns: 1fr; align-items: start; gap: 2vh; padding-top: calc(var(--top) + 4vh); }
  .h-hero figure { min-height: 0; order: -1; }
  .h-hero figure img { max-height: 52svh; transform: scale(1.2); }
  .h-hero figcaption { position: static; margin-top: 8px; }
  .h-intro, .page section { grid-template-columns: 1fr; gap: 3vh; }
  .collection { grid-template-columns: 1fr; }
  .c-preview, .m-preview { display: none; }
  .row { grid-template-columns: 64px minmax(0, 1fr) 20px; gap: 8px 16px; padding: 18px 0; align-items: center; }
  .row .r-thumb { display: block; grid-row: 1 / 3; grid-column: 1; width: 64px; height: 64px; }
  .row .r-thumb img { width: 100%; height: 100%; object-fit: contain; }
  .row .r-n { display: none; }
  .row .r-name { font-size: 30px; white-space: normal; }
  .row .r-sub { gap: 2px 14px; font-size: 10px; }
  .row .r-go { grid-row: 1 / 3; align-self: center; }
  .index.is-large .r-name { font-size: 36px; }
  .menu { padding-top: calc(var(--top) + 3vh); }
  .menu .m-inner { grid-template-columns: 1fr; }
  .chap .meta.idx .of { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
