/* ILVARUM · Startseite
   Aufbau: eine schmale Leiste links, daneben abgerundete Paneele auf fast
   schwarzem Grund. Chrom ist das Material, Minze der einzige Farbton. */

@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/lexend-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: 'Lexend Exa';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/lexend-exa-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: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/geist-mono-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;
}

:root {
  --bg: #0A0A0B;
  --panel: #141416;
  --raised: #1E1E21;
  --glass: rgba(22, 22, 25, 0.72);
  --line: #26262B;
  --line-strong: #3A3A41;
  --ink: #F4F4F5;
  --muted: #A1A1AA;
  --accent: #8EF0BE;
  --accent-soft: rgba(142, 240, 190, 0.16);
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #D9DBDF 17%, #7B7F86 25%, #F1F2F4 32%, #A9ADB3 50%, #FFFFFF 50%, #D9DBDF 67%, #7B7F86 75%, #F1F2F4 82%, #A9ADB3 100%);
  --stage: radial-gradient(ellipse 80% 70% at 55% 35%, #232327 0%, #151517 55%, #0F0F11 100%);

  --display: 'Lexend Exa', 'Lexend', system-ui, sans-serif;
  --body: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gap: 12px;
  --r: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  --sheen: 0%;

  color-scheme: dark;
}

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

html {
  background: var(--bg);
  scrollbar-color: #3A3A41 var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Deckt den Streifen unter der Statusleiste ab, wenn die Seite bis an den Rand reicht. */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 30;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #0A0A0B; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 16px; top: 16px; z-index: 50;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #0A0A0B; font-size: 15px; font-weight: 500; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Zeichen ---------- */

.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-s { width: 18px; height: 18px; }
.i-xs { width: 16px; height: 16px; }

.chrome-text {
  background-image: var(--chrome);
  background-size: 100% 200%;
  background-position: 50% var(--sheen);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  transition: background-position 0.9s var(--ease);
}

.eyebrow, .tag, .proj-foot, .foot-copy, .ring-unit, .seq-label, .bars-axis, .facts-k {
  font-family: var(--mono); font-size: 11px; line-height: 1.4; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Gerüst ---------- */

.page {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: var(--gap);
  max-width: 1760px;
  margin-inline: auto;
  padding-block: 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.col, main { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

.panel {
  position: relative;
  isolation: isolate;
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* Lichtreflex: ein weicher Schein und eine helle Kante folgen dem Zeiger. */
.panel::before, .panel::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.panel::before {
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, 0.06), transparent 62%);
}
.panel::after {
  z-index: 3;
  padding: 1px;
  background: radial-gradient(340px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1) 45%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.lit .panel::before, .lit .panel::after { opacity: 1; }

/* ---------- Leiste ---------- */

.rail {
  position: sticky; top: 16px; z-index: 20;
  align-self: start;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  min-height: 420px; max-height: 1100px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 0;
  border-radius: var(--r);
  background: var(--panel);
}

.rail-logo {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 16px;
  background: var(--raised); text-decoration: none;
  font-family: var(--display); font-size: 24px; line-height: 1; font-weight: 600;
  transition: background-color 0.3s ease;
}
.rail-logo:hover { background: #26262A; }

.rail-div { display: block; width: 24px; height: 1px; margin: 6px 0; background: var(--line); }

.rail-link {
  position: relative; z-index: 1;
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  color: var(--muted); text-decoration: none;
  transition: color 0.35s ease, background-color 0.35s ease;
}
.rail-link:hover { color: var(--ink); }
.rail-link.is-active { background: var(--ink); color: #0A0A0B; }
.rail-end { margin-top: auto; }

/* Mit Skript wandert eine helle Scheibe von Zeichen zu Zeichen. */
.rail-thumb {
  display: none;
  position: absolute; left: 0; top: 0; z-index: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
  transition: transform 0.6s var(--ease);
}
.has-thumb .rail-thumb { display: block; }
.has-thumb .rail-link.is-active { background: transparent; }

.rail-link::after {
  content: attr(data-label);
  position: absolute; left: calc(100% + 18px); top: 50%;
  padding: 7px 12px; border-radius: 999px;
  background: var(--raised); color: var(--ink);
  font-size: 13px; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translate(-6px, -50%); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s var(--ease);
}
.rail-link:hover::after, .rail-link:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

/* ---------- Kopf ---------- */

.row-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 380px);
  gap: var(--gap);
}

.hero {
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: clamp(560px, calc(100vh - 32px), 860px);
  padding: 18px;
  border-radius: 32px;
  background: var(--stage);
}

.hero-band {
  position: absolute; inset: 0; z-index: 0;
  container-type: inline-size;
  pointer-events: none;
  --unit: calc(clamp(480px, 100vw, 1300px) / 1000);
}
@supports (width: 1cqw) {
  .hero-band { --unit: calc(clamp(480px, 100cqw, 1300px) / 1000); }
}
.hero-band canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.no-gl .hero-band canvas { display: none; }

/* Stehendes Bild des Bands für Geräte ohne WebGL oder ohne Skript. */
.hero-still {
  position: absolute; left: 50%;
  top: calc(clamp(52px, min(9vw, 32vh - 150px), 140px) - 40 * var(--unit));
  width: calc(1300 * var(--unit));
  aspect-ratio: 1300 / 640;
  transform: translateX(-50%);
  background: url('../img/chromband.webp') center / 100% 100% no-repeat;
}
.js .hero-still { display: none; }
.js.no-gl .hero-still { display: block; }

.notch {
  position: absolute; z-index: 2; top: 0; left: 50%;
  width: 216px; height: 50px;
  transform: translateX(-50%);
  display: grid; place-items: center;
  border-radius: 0 0 22px 22px;
  background: var(--bg);
}
.notch-l, .notch-r { position: absolute; top: 0; width: 16px; height: 16px; }
.notch-l { left: -16px; background: radial-gradient(circle at 0 100%, transparent 15.5px, var(--bg) 16px); }
.notch-r { right: -16px; background: radial-gradient(circle at 100% 100%, transparent 15.5px, var(--bg) 16px); }
.wordmark {
  font-family: var(--display); font-size: 15px; line-height: 1; font-weight: 500;
  letter-spacing: 0.32em; padding-left: 0.32em;
}

.hero-top { position: relative; z-index: 1; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pills { display: flex; gap: 8px; }
.hero-gap { flex: 1 0 auto; min-height: clamp(150px, min(30vw, 100vh - 560px), 330px); }

.glass {
  position: relative; z-index: 1;
  width: min(100%, 640px);
  padding: clamp(20px, 2vw, 28px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

h1 {
  margin-top: 14px;
  font-family: var(--display); font-size: clamp(26px, 3.2vw, 46px); line-height: 1.08; font-weight: 400;
  letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance;
}
.w { display: inline-block; }

.lead { margin-top: 16px; max-width: 36em; font-size: 16px; line-height: 1.6; color: var(--muted); }

.cta-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Knöpfe ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink);
  font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.6s var(--spring);
}
.pill:hover { border-color: #6B6B74; background: rgba(255, 255, 255, 0.05); }
.pill-s { min-height: 40px; padding: 0 16px; font-size: 13px; }

.cta {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: var(--ink); color: #0A0A0B;
  font-size: 15px; line-height: 1.2; font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transition: box-shadow 0.4s ease, transform 0.6s var(--spring);
}
.cta:hover { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12), 0 12px 32px -8px rgba(255, 255, 255, 0.28); }
.cta-dot {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #0A0A0B; color: var(--ink);
  transition: transform 0.6s var(--spring);
}
.cta:hover .cta-dot .i { animation: nudge 0.5s var(--ease); }
@keyframes nudge { 0% { transform: none; } 45% { transform: translateX(5px); opacity: 0; } 55% { transform: translateX(-5px); opacity: 0; } 100% { transform: none; } }

.icon-btn {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, transform 0.6s var(--spring);
}
.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: #0A0A0B; }

/* Magnetische Knöpfe: solange der Zeiger darauf liegt, folgen sie ihm fast ohne Verzögerung. */
.is-pulled, .is-pulled .cta-dot { transition-duration: 0.14s; transition-timing-function: ease-out; }

/* ---------- Karten rechts ---------- */

.side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

.card { flex: 1 1 auto; display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.card-title, .proj-title {
  font-family: var(--display); font-size: 18px; line-height: 1.25; font-weight: 500;
  letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance;
}
.card-text { font-size: 15px; line-height: 1.6; color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--raised); color: var(--ink);
  font-family: var(--mono); font-size: 11px; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}
.chip-live::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.more {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-top: auto; padding: 6px 0;
  font-size: 14px; color: var(--ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.more:hover { background-size: 100% 1px; }

/* Drehregler aus Chrom */
.ring { position: relative; flex: none; width: 150px; height: 150px; margin: 2px auto 0; }
.ring-metal {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from calc(200deg + var(--ang, 0deg)), #FFFFFF, #8E9299 12%, #1D1E21 24%, #D7DADE 38%, #FFFFFF 46%, #5D6168 60%, #F0F1F3 72%, #2A2C30 86%, #FFFFFF);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.12));
}
.ring-core { position: absolute; inset: 14px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1F1F23 0%, #121214 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; }
.ring-num { font-family: var(--display); font-size: 46px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.ring-unit { margin-top: 6px; font-size: 10px; letter-spacing: 0.16em; }

.tile {
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  padding: 16px; border-radius: 18px;
  background: var(--raised); color: var(--ink); text-decoration: none;
  transition: background-color 0.3s ease, transform 0.5s var(--ease);
}
.tile:hover { background: #26262A; }
.tile:hover .i { transform: translateY(3px); }
.tile .i { color: var(--muted); transition: transform 0.4s var(--ease); }
.tile-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-name { font-size: 15px; line-height: 1.3; }

/* ---------- Grafik: Abfolge (Praxis-Automatisierung) ---------- */

.seq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.seq > span { height: 26px; border-radius: 6px; background: #2A2A2F; }
.seq > .on { background: linear-gradient(180deg, #E9EAEC 0%, #8A8E95 46%, #3A3C41 54%, #B9BCC2 100%); }
.seq-mini > span { height: 20px; border-radius: 5px; }

.seq-board {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 16px;
  align-content: center;
  padding: 22px 18px; border-radius: 18px; background: var(--raised);
}
.seq-label { font-size: 10px; }

/* ---------- Grafik: Verteilung (Forschungswerkzeuge) ---------- */

.bars { width: 100%; height: auto; overflow: visible; }
.bars rect { transform-box: fill-box; transform-origin: 50% 50%; }
.bars-mini { height: auto; }
.bars-board { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px; border-radius: 18px; background: var(--raised); }
.bars-axis { display: flex; justify-content: space-between; font-size: 10px; }
.bars-mean { color: var(--accent); }

/* ---------- Abschnitte ---------- */

.block { display: flex; flex-direction: column; gap: var(--gap); scroll-margin-top: 16px; }

.block-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px;
  padding: clamp(22px, 2.4vw, 32px);
}
.block-head > div { min-width: 0; }
.block-head > p { max-width: 30em; font-size: 16px; color: var(--muted); }
h2 {
  font-family: var(--display); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.12; font-weight: 400;
  letter-spacing: -0.02em; text-transform: uppercase; text-wrap: balance;
}
.block-head h2 { margin-top: 12px; }
h2.eyebrow { font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: 0.14em; }

/* Ordinum */
.showcase {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(22px, 3vw, 40px);
  overflow: hidden;
  scroll-margin-top: 16px;
}
.showcase-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.proj-title { font-size: clamp(20px, 2vw, 28px); }
.proj-text { max-width: 34em; font-size: 16px; line-height: 1.6; color: var(--muted); }
.showcase .cta-row { margin-top: 6px; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.facts li { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--raised); min-width: 0; }
.facts-k { font-size: 10px; }
.facts-v { font-size: 14px; line-height: 1.35; }

.devices {
  position: relative; min-width: 0;
  padding: 0 7% 7% 0;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.7s var(--ease);
}
.screen {
  overflow: hidden; border-radius: 16px;
  border: 1px solid var(--line-strong); background: #0D0D0F;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.screen-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #17171A; border-bottom: 1px solid var(--line); }
.screen-bar span { width: 7px; height: 7px; border-radius: 50%; background: #3A3A41; }
.screen img { width: 100%; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 23%;
  overflow: hidden; border-radius: clamp(14px, 1.8vw, 26px);
  border: clamp(3px, 0.4vw, 6px) solid #1E1E21; background: #0D0D0F;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line-strong);
}
.phone img { width: 100%; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.proj { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2.4vw, 32px); scroll-margin-top: 16px; }
.proj .proj-title { font-size: clamp(18px, 1.6vw, 22px); margin-top: 4px; }
.proj-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
/* Kopf, Grafik, Titel, Text und Fußzeile beider Karten stehen auf gemeinsamen Linien. */
@supports (grid-template-rows: subgrid) {
  .proj { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 16px; }
  .proj > * { min-width: 0; }
}

/* Grundsätze */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.rule { display: flex; flex-direction: column; gap: 12px; min-height: clamp(200px, 17vw, 250px); padding: 24px; }
.rule-num { align-self: flex-start; font-family: var(--display); font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.rule h3 { margin-top: 18px; font-size: 18px; line-height: 1.3; font-weight: 500; }
.rule p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Über und Kontakt */
.row-end { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 25vw, 380px); gap: var(--gap); }
.about { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 40px); scroll-margin-top: 16px; }
.about-text { max-width: 34em; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; font-weight: 300; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; }
.about-note { font-size: 14px; color: var(--muted); }
.about-note a { color: var(--ink); text-underline-offset: 3px; }

.contact { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2.4vw, 28px); scroll-margin-top: 16px; }
.mail {
  align-self: flex-start; max-width: 100%;
  font-size: clamp(20px, 1.7vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; overflow-wrap: anywhere;
}
.contact-row { margin-top: auto; padding-top: 8px; }
.copy .copy-ok { display: none; color: var(--accent); }
.copy.is-done .copy-ok { display: block; }
.copy.is-done .copy-i { display: none; }

/* Fuß */
.foot {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 24px;
  padding: 10px 10px 10px 24px; border-radius: 24px;
}
.foot-note { max-width: 62em; font-size: 13px; line-height: 1.5; color: var(--muted); }
.foot-note a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Rechtliche Seiten und 404 ---------- */

.sub .rail { animation: none; }
.doc-head {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: clamp(260px, 30vw, 380px);
  padding: clamp(18px, 2.6vw, 36px);
  border-radius: 32px;
  background: var(--stage);
}
.doc-band {
  position: absolute; z-index: -1;
  top: -18%; right: -14%; width: min(1100px, 92%); aspect-ratio: 1300 / 640;
  background: url('../img/chromband.webp') no-repeat 0 0 / 100% auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  opacity: 0.9;
}
.doc-back { align-self: flex-start; gap: 8px; background: rgba(10, 10, 11, 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.doc-title { max-width: 40em; }
.doc-title h1 { font-size: clamp(30px, 4.4vw, 60px); }
.doc-note { margin-top: 14px; max-width: 32em; font-size: 16px; line-height: 1.6; color: var(--muted); }

.doc { display: flex; flex-direction: column; gap: 28px; padding: clamp(22px, 3vw, 48px); }
.doc-h {
  font-family: var(--mono); font-size: 11px; line-height: 1.4; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.doc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: -12px 0 0; }
.doc-fact { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px 20px; border-radius: 18px; background: var(--raised); }
.doc-fact dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.doc-fact dd { margin: 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.doc-fact a, .doc-text a, .doc-addr a { color: var(--ink); text-underline-offset: 3px; }

.doc-lead { max-width: 44em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; font-weight: 300; }
.doc-text { display: flex; flex-direction: column; gap: 14px; max-width: 44em; }
.doc-text p { font-size: 16px; line-height: 1.7; color: #C9C9CF; }
.doc-text .doc-h { margin-top: 18px; }
.doc-text > .doc-h:first-child { margin-top: 0; }
.doc-list { counter-reset: abschnitt; gap: 0; padding: 0; }
.doc-list > li { counter-increment: abschnitt; display: flex; flex-direction: column; gap: 12px; padding: 26px 0; border-top: 1px solid var(--line); }
.doc-list > li:first-child { padding-top: 0; border-top: 0; }
.doc-list .doc-h { margin-top: 0; }
.doc-list .doc-h::before { content: counter(abschnitt, decimal-leading-zero) "  "; color: var(--accent); }
.doc-addr { font-size: 17px; line-height: 1.6; color: var(--ink) !important; }
.doc-strong { color: var(--ink) !important; }
.doc-date { font-family: var(--mono); font-size: 12px !important; letter-spacing: 0.06em; color: var(--muted) !important; }

.enc { display: inline; }
.enc-svg { display: inline-block; vertical-align: -0.27em; fill: currentColor; max-width: 100%; }

.doc-404 { align-items: flex-start; }
.doc-big { font-family: var(--display); font-size: clamp(96px, 18vw, 220px); line-height: 0.9; font-weight: 500; letter-spacing: -0.04em; }
.doc-text-l { max-width: 30em; font-size: 18px; line-height: 1.6; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .doc-head { animation: fade 1s ease 0.05s backwards; }
  .doc-title { animation: rise 1s var(--ease) 0.25s backwards; }
  .doc { animation: rise 1s var(--ease) 0.4s backwards; }
}

@media (max-width: 900px) {
  .doc-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .doc-text p { -webkit-hyphens: auto; hyphens: auto; }
  .doc-head { min-height: 300px; border-radius: 28px; }
  .doc-band { top: 6%; right: -40%; width: 150%; }
}

/* ---------- Bewegung ---------- */

@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { opacity: 0; transform: translate3d(-16px, 0, 0); } }
@keyframes drop { from { transform: translate3d(-50%, -100%, 0); } }
@keyframes word { from { opacity: 0; transform: translate3d(0, 0.55em, 0); filter: blur(10px); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); } 50% { box-shadow: 0 0 0 7px rgba(142, 240, 190, 0.05); } }
@keyframes tick { 0%, 14%, 100% { filter: brightness(1); } 3% { filter: brightness(1.9); } }
@keyframes hit { 0%, 22%, 100% { filter: brightness(1); box-shadow: 0 0 0 rgba(142, 240, 190, 0); } 3% { filter: brightness(1.7); box-shadow: 0 0 14px rgba(142, 240, 190, 0.75); } }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.86); } }

@media (prefers-reduced-motion: no-preference) {
  /* Auftritt beim Laden */
  .rail { animation: slide 0.9s var(--ease) backwards; }
  .hero { animation: fade 1.1s ease 0.05s backwards; }
  .notch { animation: drop 0.9s var(--ease) 0.35s backwards; }
  .pills { animation: fade 0.9s ease 0.6s backwards; }
  .glass { animation: rise 1.1s var(--ease) 0.55s backwards; }
  .glass .eyebrow { animation: fade 0.9s ease 0.85s backwards; }
  .w { animation: word 0.95s var(--ease) backwards; }
  .w:nth-child(1) { animation-delay: 0.85s; }
  .w:nth-child(2) { animation-delay: 0.93s; }
  .w:nth-child(3) { animation-delay: 1.01s; }
  .w:nth-child(4) { animation-delay: 1.09s; }
  .w:nth-child(5) { animation-delay: 1.17s; }
  .lead { animation: fade 1s ease 1.3s backwards; }
  .glass .cta-row { animation: rise 0.9s var(--ease) 1.4s backwards; }
  .side .card:nth-of-type(1) { animation: rise 1s var(--ease) 0.4s backwards; }
  .side .card:nth-of-type(2) { animation: rise 1s var(--ease) 0.52s backwards; }

  /* Dauerbewegung */
  .ring-metal { animation: turn 28s linear infinite; }
  .chip-live::before { animation: pulse 2.6s ease-in-out infinite; }
  .seq > span { animation: tick 4.2s linear infinite; }
  .seq > .on { animation-name: hit; }
  .seq > span:nth-child(1) { animation-delay: 0s; }
  .seq > span:nth-child(2) { animation-delay: 0.35s; }
  .seq > span:nth-child(3) { animation-delay: 0.7s; }
  .seq > span:nth-child(4) { animation-delay: 1.05s; }
  .seq > span:nth-child(5) { animation-delay: 1.4s; }
  .seq > span:nth-child(6) { animation-delay: 1.75s; }
  .seq > span:nth-child(7) { animation-delay: 2.1s; }
  .seq > span:nth-child(8) { animation-delay: 2.45s; }
  .seq > span:nth-child(9) { animation-delay: 2.8s; }
  .seq > span:nth-child(10) { animation-delay: 3.15s; }
  .seq > span:nth-child(11) { animation-delay: 3.5s; }
  .seq > span:nth-child(12) { animation-delay: 3.85s; }
  .bars rect { animation: breathe 5.2s ease-in-out infinite; animation-delay: calc(var(--b, 0) * -0.31s); }

  /* Einblenden beim Scrollen (nur mit Skript) */
  .pre { opacity: 0; transform: translate3d(0, 28px, 0); }
  .pre.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .pre .bars g { transform-box: fill-box; transform-origin: 50% 50%; transform: scaleY(0.04); }
  .pre.in .bars g { transform: none; transition: transform 1.2s var(--ease) 0.3s; }
}

.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
.calm { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Schmalere Bildschirme ---------- */

@media (max-width: 1180px) {
  .row-top, .row-end { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: clamp(560px, 62vw, 760px); }
  .side { flex-direction: row; }
  .side .card { flex: 1 1 0; min-width: 0; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr) auto; }
  .foot-note { grid-column: 1 / -1; grid-row: 2; padding-bottom: 8px; }
}

/* Flache Fenster: Der Kopf füllt allein den ersten Bildschirm, die Karten folgen darunter. */
@media (min-width: 1181px) and (max-height: 779px) {
  .row-top { grid-template-columns: minmax(0, 1fr); }
  .side { flex-direction: row; }
  .side .card { flex: 1 1 0; min-width: 0; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .block, .showcase, .proj, .about, .contact { scroll-margin-top: 84px; }
  .page { grid-template-columns: minmax(0, 1fr); padding-block: 8px 16px; }
  .rail {
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    height: auto; min-height: 0; max-height: none;
    flex-direction: row; justify-content: space-between;
    padding: 8px 10px; border-radius: 24px;
    background: rgba(20, 20, 22, 0.78);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  .rail-div { display: none; }
  .rail-end { margin-top: 0; }
  .rail-link::after { display: none; }
  .pills { display: none; }
  .hero { min-height: 0; padding: 14px; border-radius: 28px; }
  .hero-gap { min-height: 168px; }
  .side { flex-direction: column; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .seq-board { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .seq-board .seq { margin-bottom: 8px; }
}

@media (max-width: 520px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
  .rule { min-height: 0; }
  .rule h3 { margin-top: 8px; }
  .foot { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .foot-note { grid-row: auto; padding-bottom: 0; }
  .devices { padding: 0 9% 12% 0; }
  .phone { width: 30%; }
}

@media print {
  .rail, .hero-band, .skip, .doc-band, .doc-back { display: none; }
  .page { display: block; }
}
