/* ==========================================================================
   DNA media GmbH – Relaunch 2026
   Aufbau: Fonts · Tokens · Basis · Layout · Komponenten · Sektionen · Utilities
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, kein externer Abruf) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

/* ---------- Design-Tokens ---------- */
:root {
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --brand: #4f97e8;
  --brand-strong: #2a6fd0;
  --cyan: #3fe0d0;
  --violet: #8f7bff;
  --grad: linear-gradient(120deg, #5aa5f7 0%, #3fe0d0 100%);
  --grad-ai: linear-gradient(120deg, #8f7bff 0%, #5aa5f7 50%, #3fe0d0 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060a13;
  --bg-2: #0a101d;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-solid: #0e1626;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .18);
  --text: #e9eefb;
  --muted: #98a6c3;
  --faint: #7f8ba6;
  --header-bg: rgba(6, 10, 19, .72);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --glow-1: rgba(47, 127, 224, .28);
  --glow-2: rgba(63, 224, 208, .14);
  --helix-a: 90, 165, 247;
  --helix-b: 63, 224, 208;
  --grid-line: rgba(255, 255, 255, .035);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fd;
  --bg-2: #eaf0fa;
  --surface: rgba(255, 255, 255, .8);
  --surface-2: #ffffff;
  --surface-solid: #ffffff;
  --border: rgba(13, 27, 52, .1);
  --border-strong: rgba(13, 27, 52, .22);
  --text: #0b1424;
  --muted: #4d5b75;
  --faint: #5f6b82;
  --header-bg: rgba(245, 248, 253, .8);
  --shadow: 0 24px 50px -28px rgba(20, 50, 100, .35);
  --glow-1: rgba(79, 151, 232, .22);
  --glow-2: rgba(63, 224, 208, .16);
  --helix-a: 47, 127, 224;
  --helix-b: 20, 170, 160;
  --grid-line: rgba(13, 27, 52, .045);
  --brand: #1f63c4;
  --cyan: #08766d;
  --violet: #6a55e8;
  --grad: linear-gradient(120deg, #2f7fe0 0%, #0fa89b 100%);
  --grad-ai: linear-gradient(120deg, #6a55e8 0%, #2f7fe0 50%, #0fa89b 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 600;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--brand); color: #fff; }

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand-strong);
  color: #fff;
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--bg-2); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section-head.center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text--ai { background-image: var(--grad-ai); }
/* helles Schema: dunklere Verläufe, damit Verlaufstext genug Kontrast hat */
:root[data-theme="light"] .grad-text { background-image: linear-gradient(120deg, #2468c9, #0b7d73); }
:root[data-theme="light"] .grad-text--ai { background-image: linear-gradient(120deg, #6a55e8, #2468c9 50%, #0b7d73); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--grad);
  color: #04121f;
  box-shadow: 0 10px 30px -10px rgba(79, 151, 232, .7);
}
.btn--primary:hover { box-shadow: 0 16px 36px -10px rgba(79, 151, 232, .9); }
.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--brand); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: var(--grad-ai);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none !important;
}
/* Originallogo als Bitmap (Originaltypografie); je Farbschema eine Variante */
.logo__img { height: 52px; width: auto; display: block; }
.logo__img--light { display: none; }
:root[data-theme="light"] .logo__img--dark { display: none; }
:root[data-theme="light"] .logo__img--light { display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 10px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.nav .nav__ai {
  color: var(--text);
}
.nav .nav__ai span {
  font-family: var(--font-mono);
  font-size: .62rem;
  padding: 2px 6px;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--grad-ai);
  color: #05101c;
  font-weight: 700;
  vertical-align: 2px;
}

.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s, transform .3s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); transform: rotate(12deg); }
.theme-toggle .icon--sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon--moon { display: none; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* feines Raster + Lichtkegel */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 78% 30%, var(--glow-1), transparent 65%),
    radial-gradient(700px 500px at 8% 90%, var(--glow-2), transparent 65%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero__content { max-width: 760px; }
.hero h1 { margin-bottom: 22px; }
.hero__typed {
  font-family: var(--font-mono);
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--muted);
  min-height: 1.8em;
  margin-bottom: 20px;
}
.hero__typed b { color: var(--text); font-weight: 500; }
.hero__typed .caret {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  margin-left: 3px;
  background: var(--cyan);
  vertical-align: -3px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero__lead {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--muted);
  font-size: .95rem;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: var(--cyan); }

.motion-toggle {
  position: absolute;
  left: max(24px, calc((100% - var(--wrap)) / 2));
  bottom: 18px;
}
.motion-toggle:hover { transform: none; }
.motion-off .marquee__track, .motion-off .caret, .motion-off .scroll-hint::after, .motion-off .typing i { animation-play-state: paused; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cyan);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Kunden-Laufband ---------- */
.clients {
  border-block: 1px solid var(--border);
  padding: 26px 0;
  background: var(--bg-2);
}
.clients__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  opacity: .8;
}
/* halbe Spur plus halber Abstand (gap 64px), damit die Schleife nahtlos ist */
@keyframes marquee { to { transform: translateX(calc(-50% - 32px)); } }

/* ---------- Karten / Bento ---------- */
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
  overflow: hidden;
}
.card::before {
  /* Spotlight folgt der Maus (per JS gesetzte --mx/--my) */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, -40%), rgba(90, 165, 247, .14), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--brand);
  background: linear-gradient(140deg, rgba(90, 165, 247, .18), rgba(63, 224, 208, .1));
  border: 1px solid var(--border);
}
.card__icon .icon { width: 24px; height: 24px; }
.card--ai .card__icon {
  color: var(--violet);
  background: linear-gradient(140deg, rgba(143, 123, 255, .2), rgba(63, 224, 208, .1));
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
}

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Kennzahlen ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}
.stat { background: var(--bg); padding: 28px 24px; }
.section--alt .stat { background: var(--bg-2); }
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label { color: var(--muted); font-size: .92rem; }

/* ---------- KI-Sektion ---------- */
.ai {
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(143, 123, 255, .13), transparent 65%),
    radial-gradient(700px 500px at 0% 100%, rgba(63, 224, 208, .09), transparent 65%),
    var(--bg-2);
}
.ai__intro {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: 64px;
}
.ai__intro .section-head { margin-bottom: 28px; }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: step; }
.pipeline li {
  position: relative;
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .9rem;
  color: var(--muted);
  counter-increment: step;
}
.pipeline li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--cyan);
  margin-bottom: 6px;
}
.pipeline li b { display: block; color: var(--text); font-family: var(--font-head); font-size: 1rem; }

/* Demo-Fenster (Wissensassistent) */
.demo {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow), 0 0 0 1px rgba(143, 123, 255, .08), 0 0 80px -20px rgba(143, 123, 255, .35);
  overflow: hidden;
  font-size: .95rem;
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--faint);
}
.demo__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.demo__bar span { margin-left: auto; }
.demo__body { padding: 20px; display: grid; gap: 14px; height: 350px; overflow: hidden; align-content: start; }
.msg {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s, transform .4s var(--ease);
}
.msg.is-in { opacity: 1; transform: none; }
.msg--user {
  justify-self: end;
  background: var(--brand-strong);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg--bot {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg--bot ul { margin: 8px 0 0; display: grid; gap: 4px; }
.msg--bot li { display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-mono); font-size: .82rem; }
.msg--bot li span:last-child { color: var(--cyan); }
.msg__src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.msg__src span {
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(143, 123, 255, .14);
  color: var(--violet);
}
.demo__note {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: .76rem;
  color: var(--faint);
  text-align: center;
}
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Use-Case-Finder */
.finder {
  margin-top: 64px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    var(--grad-ai) border-box;
  border-color: transparent;
}
.finder__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 26px; }
.finder__head h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 6px; }
.finder__head p { color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--brand); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.finder__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.finder__area-title { display: none; margin: 28px 0 -12px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.finder__area:focus-visible { outline-offset: 6px; }
.usecase {
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  animation: rise .5s var(--ease) both;
}
.usecase:nth-child(2) { animation-delay: .07s; }
.usecase:nth-child(3) { animation-delay: .14s; }
.usecase h4 { font-size: 1.08rem; margin-bottom: 8px; }
.usecase p { color: var(--muted); font-size: .94rem; margin: 0; }
.usecase small {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--violet);
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- SEO & GEO ---------- */
.seo__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: 56px;
}
.seo__intro p { color: var(--muted); }
.seo__intro p b { color: var(--text); font-weight: 600; }
.defs { display: grid; gap: 18px; margin: 0 0 24px; }
.defs div { padding-left: 18px; border-left: 2px solid var(--brand); }
.defs div + div { border-color: var(--violet); }
.defs dt { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; margin-bottom: 4px; }
.defs dt span { color: var(--muted); font-weight: 400; }
.defs dd { margin: 0; color: var(--muted); font-size: .98rem; }

.visi { display: grid; }
.visi__panel {
  margin-right: 9%;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.visi__panel--ai {
  position: relative;
  margin: -14px 0 0 9%;
  border-color: transparent;
  background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad-ai) border-box;
  box-shadow: var(--shadow), 0 0 70px -24px rgba(143, 123, 255, .5);
}
.visi__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .86rem;
  color: var(--muted);
}
.visi__bar .icon { color: var(--cyan); }
.visi__panel--ai .visi__bar .icon { color: var(--violet); }
.visi__bar em {
  margin-left: auto;
  padding-left: 12px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.visi__body { padding: 16px 18px 20px; display: grid; gap: 14px; font-size: .92rem; }
.serp small { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--cyan); margin-bottom: 2px; }
.serp b { display: block; color: var(--brand); font-weight: 600; font-size: 1.02rem; line-height: 1.35; }
.serp p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.skel { display: grid; gap: 7px; padding-bottom: 14px; }
.skel i { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); }
.skel i:nth-child(1) { width: 36%; }
.skel i:nth-child(2) { width: 84%; }
.skel i:nth-child(3) { width: 62%; }
.answer p { margin: 0; line-height: 1.6; color: var(--text); }
.answer mark { background: rgba(143, 123, 255, .24); color: inherit; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.answer sup { color: var(--violet); font-family: var(--font-mono); font-size: .68rem; margin-left: 1px; }
.answer .msg__src { margin-top: 0; }
.visi__note { margin: 12px 0 0; text-align: center; font-size: .76rem; color: var(--faint); }

.bots { margin-top: 64px; }
.bots h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 8px; }
.bots > p { color: var(--muted); max-width: 780px; margin-bottom: 24px; }
.bots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bots__col { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.bots__col h4 { display: flex; align-items: center; gap: 10px; font-size: 1.06rem; margin-bottom: 8px; }
.bots__col h4 i { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(63, 224, 208, .16); }
.bots__col--user h4 i { background: var(--brand); box-shadow: 0 0 0 4px rgba(79, 151, 232, .18); }
.bots__col--train h4 i { background: var(--violet); box-shadow: 0 0 0 4px rgba(143, 123, 255, .18); }
.bots__col p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.bots .bots__foot { margin: 14px 0 0; font-size: .8rem; color: var(--faint); max-width: none; }

/* ---------- Über uns ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about__media img + img {
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: 52%;
  border: 6px solid var(--bg);
}
.section--alt .about__media img + img { border-color: var(--bg-2); }
.about__text p { color: var(--muted); }
.checks { display: grid; gap: 14px; margin-top: 24px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .icon {
  margin-top: 3px;
  padding: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  color: #04121f;
  background: var(--grad);
  stroke-width: 2.6;
}
.checks b { display: block; font-family: var(--font-head); }
.checks span { color: var(--muted); font-size: .96rem; }

/* ---------- Vorgehen ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: p; position: relative; }
.process::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 23px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cyan) 60%, var(--violet));
  opacity: .45;
}
.process li { position: relative; padding: 0 20px 0 0; counter-increment: p; }
.process li::before {
  content: counter(p);
  position: relative;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  background: var(--bg-2);
  border: 2px solid var(--brand);
  color: var(--text);
  box-shadow: 0 0 0 6px var(--bg-2);
}
.section:not(.section--alt) .process li::before { background: var(--bg); box-shadow: 0 0 0 6px var(--bg); }
.process h3 { font-size: 1.12rem; }
.process p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Referenzen ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* gefiltert: keine breiten Kacheln, sonst entstehen Lücken im Raster */
.refs.is-filtered .ref--wide { grid-column: auto; }
.refs.is-filtered .ref--wide .ref__img { aspect-ratio: 16 / 10; }
.ref {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .3s;
}
.ref:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ref.is-hidden { display: none; }
.ref--wide { grid-column: span 2; }
.ref__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  flex: 1 1 auto;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.ref__img:focus-visible { outline-offset: -4px; }
.ref__body { width: 100%; }
.ref--wide .ref__img { aspect-ratio: 32 / 14; }
.ref__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .4s;
  filter: saturate(.85);
}
.ref:hover .ref__img img { transform: scale(1.05); filter: none; }
.ref__body { padding: 18px 20px 20px; }
.ref__cat {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.ref__body h3 { margin: 6px 0 4px; font-size: 1.12rem; }
.ref__body p { margin: 0; color: var(--muted); font-size: .92rem; }
.refs__note {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}
.refs__note b { color: var(--text); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 12, .9);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; }
.lightbox img { width: auto; max-width: 100%; max-height: 80svh; margin-inline: auto; border-radius: var(--radius); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: #cdd6ea; text-align: center; margin-top: 14px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--prev .icon { rotate: 180deg; }
.lightbox__nav--next { right: 20px; }
.lightbox .icon-btn:hover { transform: none; }

/* ---------- Technologien ---------- */
.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech__group {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.tech__group--ai { grid-column: span 2; border-color: transparent; background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad-ai) border-box; }
.tech__group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 16px; }
.tech__group h3 .icon { color: var(--cyan); }
.tech__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tech__list li {
  font-family: var(--font-mono);
  font-size: .82rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: border-color .2s, color .2s, transform .2s;
}
.tech__list li:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.codeband {
  margin-top: 56px;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  padding: clamp(36px, 6vw, 72px);
  color: #eaf2ff;
  border: 1px solid var(--border);
}
.codeband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.codeband::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 10, 19, .92) 20%, rgba(6, 10, 19, .45)); }
.codeband h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 620px; }
.codeband p { color: #b9c6e0; max-width: 560px; margin-bottom: 24px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--cyan); transition: rotate .3s var(--ease); }
.faq details[open] summary .icon { rotate: 180deg; }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact__info h2 { margin-bottom: 18px; }
.contact__info > p { color: var(--muted); }
.contact__list { display: grid; gap: 14px; margin: 30px 0; }
.contact__list a, .contact__list address {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-style: normal;
  text-decoration: none;
  transition: border-color .2s, transform .25s var(--ease);
}
.contact__list a:hover { border-color: var(--brand); transform: translateX(4px); }
.contact__list .icon { width: 22px; height: 22px; color: var(--cyan); }
.contact__list small { display: block; color: var(--faint); font-size: .78rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.contact__links { display: flex; flex-wrap: wrap; gap: 10px; }

.form {
  padding: clamp(22px, 3.5vw, 40px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}
.form__steps { display: flex; gap: 8px; margin-bottom: 28px; }
.form__steps li {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
  position: relative;
}
.form__steps li::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.form__steps li.is-done::after { transform: scaleX(1); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form fieldset[hidden] { display: none; }
.form legend { font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.form .hint { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }
.form .chips { margin-bottom: 8px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79, 151, 232, .2);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.consent { font-size: .9rem; color: var(--muted); margin: 6px 0 4px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.form__error { color: #ff8a8a; font-size: .9rem; min-height: 1.4em; margin: 8px 0 0; }
:root[data-theme="light"] .form__error { color: #c62828; }
.form__done { text-align: center; padding: 24px 0; }
.form__done .icon { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--grad); color: #04121f; margin: 0 auto 18px; stroke-width: 2.4; }
.form__done p { color: var(--muted); }
.form__done textarea { width: 100%; margin-top: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); font-size: .9rem; text-align: left; }
.form__done:focus { outline: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer p { color: var(--muted); font-size: .94rem; max-width: 320px; margin-top: 16px; }
.footer h2 { font-size: .8rem; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; font-weight: 500; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--muted); font-size: .95rem; }
.footer li a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: .88rem;
}
.footer__bottom a { color: var(--muted); margin-left: 18px; }

/* ---------- Floating: nach oben + Assistent ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s, border-color .2s;
  background: var(--surface-solid);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

.bot-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #04121f;
  background: var(--grad-ai);
  box-shadow: 0 14px 34px -8px rgba(90, 120, 255, .7);
  transition: transform .3s var(--ease);
}
.bot-toggle:hover { transform: scale(1.08); }
.bot-toggle .icon { width: 26px; height: 26px; }
.bot-toggle .icon--close { display: none; }
.bot-toggle[aria-expanded="true"] .icon--open { display: none; }
.bot-toggle[aria-expanded="true"] .icon--close { display: block; }

.bot {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 96;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100svh - 120px));
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.97);
  transform-origin: 100% 100%;
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .25s;
}
.bot.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.bot__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--grad-ai); color: #04121f; }
.bot__head b { display: block; font-family: var(--font-head); line-height: 1.2; }
.bot__head small { font-size: .76rem; }
/* helles Schema: heller Verlauf hinter dunkler Schrift */
:root[data-theme="light"] .bot__head,
:root[data-theme="light"] .nav .nav__ai span { background: linear-gradient(120deg, #8f7bff 0%, #5aa5f7 50%, #3fe0d0 100%); }
.bot__log { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; font-size: .93rem; }
.bot__log .msg { opacity: 1; transform: none; max-width: 92%; padding: 10px 14px; }
.bot__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.bot__quick .chip { font-size: .8rem; padding: 6px 12px; }
.bot__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.bot__form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
}
.bot__form input:focus { outline: none; border-color: var(--brand); }
.bot__form button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--brand-strong);
  color: #fff;
}

/* ---------- Rechtstexte ---------- */
.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal address { font-style: normal; color: var(--muted); margin-bottom: 1em; }
.legal a { overflow-wrap: anywhere; }
.legal .box { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .menu-toggle, .no-js .theme-toggle, .no-js .motion-toggle, .no-js .bot-toggle, .no-js .demo,
.no-js #finderTabs, .no-js #refFilter, .no-js #projectForm { display: none; }
.no-js .finder__area-title { display: block; }
.no-js .ref__img { cursor: default; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .tech { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; gap: 28px; }
  .process::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand), var(--cyan) 60%, var(--violet)); }
  .process li { padding: 0 0 0 72px; }
  .process li::before { position: absolute; left: 0; top: -4px; margin: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1280px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 24px 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav a { padding: 14px 12px; font-size: 1.1rem; border-radius: 12px; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--surface-2); }
  .header:has(.nav.is-open) { background: var(--bg); }
}

@media (max-width: 920px) {
  .ai__intro, .about, .contact, .seo__intro, .bots__grid { grid-template-columns: 1fr; }
  .about__media { margin-bottom: 8%; max-width: 560px; }
  .grid--3, .refs, .finder__results { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero__canvas { opacity: .55; }
  .ref--wide { grid-column: auto; }
  .ref--wide .ref__img { aspect-ratio: 16 / 10; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .grid--4, .grid--3, .grid--2, .refs, .finder__results, .tech, .pipeline { grid-template-columns: 1fr; }
  .ref--wide, .tech__group--ai { grid-column: auto; }
  .ref--wide .ref__img { aspect-ratio: 16 / 10; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .header__cta { display: none; }
  .logo__img { height: 36px; }
  .header__actions { gap: 8px; }
  .hero__cta .btn { width: 100%; }
  .lightbox__nav { top: auto; bottom: 20px; translate: none; }
  .scroll-hint { display: none; }
  .footer__bottom a { margin: 0 18px 0 0; }
  .demo__body { height: 410px; }
  .hero__typed { min-height: 3.3em; }
  .about__media img + img { right: 0; }
  .finder__head .btn { white-space: normal; line-height: 1.3; }
  .motion-toggle { left: 16px; }
  .visi__panel { margin-right: 0; }
  .visi__panel--ai { margin: 12px 0 0; }
  .to-top { display: none; }
}

@media (max-width: 380px) {
  h2 { hyphens: auto; }
  .logo__img { height: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 16px 40px; }
  .marquee__track span[aria-hidden="true"] { display: none; }
}

@media print {
  :root[data-theme] { --text: #000; --muted: #333; --faint: #555; }
  .header, .bot, .bot-toggle, .to-top, .hero__canvas, .scroll-progress, .motion-toggle, .scroll-hint { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .grad-text { background: none; color: inherit; }
  .logo__img--dark { display: none !important; }
  .logo__img--light { display: block !important; }
}
