@font-face {
  font-family: Inter;
  src: url('../assets/inter-v12-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('../assets/inter-v12-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('../assets/inter-v12-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('../assets/poppins-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: NexusLogo;
  src: url('../assets/noto-logo.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: NexusInitial;
  src: url('../assets/orbitron-logo.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #070d19;
  --surface: #0d1729;
  --surface-elevated: #122038;
  --ink: #eff5ff;
  --copy: #c4d2e6;
  --muted: #93a6c1;
  --accent: #fd9c67;
  --accent-strong: #ffb78b;
  --blue-accent: #6ea8fe;
  --line: rgba(154, 182, 219, 0.16);
  --line-strong: rgba(253, 156, 103, 0.42);
  --pad: clamp(24px, 5.4vw, 96px);
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --copy-size: 17px;
  --intro-size: 18px;
  --meta-size: 13px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

/* Automatische Fokuskorrekturen dürfen die explizite Stationsfahrt nicht überholen. */
html:has(body.nexus) {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

a,
button,
summary {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.04;
  color: var(--ink);
}

h1 {
  font-size: clamp(48px, 5.8vw, 98px);
}

h2 {
  font-size: clamp(36px, 4.3vw, 68px);
}

h3 {
  font-size: clamp(24px, 2.1vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.14;
}

em {
  font-style: normal;
  background: linear-gradient(95deg, #ffc49f 0%, #ff8b5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  color: var(--copy);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.skip {
  position: fixed;
  top: -120px;
  left: 20px;
  z-index: 100;
  background: var(--accent);
  color: #09111f;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
}

.skip:focus {
  top: 14px;
}

/* Header & Navigation */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 78px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  z-index: 40;
  background: rgba(7, 13, 25, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.header[data-scrolled] {
  background: rgba(7, 13, 25, 0.92);
  border-bottom-color: rgba(154, 182, 219, 0.16);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.nexus-logo {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.nexus-wordmark {
  font-family: NexusLogo, Inter, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.nexus-wordmark .initial {
  font-family: NexusInitial, Inter, sans-serif;
  font-size: 1.1em;
}

.nexus-wordmark b {
  color: #f5a574;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
  color: var(--copy);
  margin-left: auto;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: right 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-nav a:hover::after {
  right: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(253, 156, 103, 0.14);
  border: 1px solid rgba(253, 156, 103, 0.42);
  color: #ffd0b0;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.header-contact:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b1322;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(15, 26, 46, 0.8);
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  background: rgba(11, 20, 36, 0.97);
  border: 1px solid rgba(154, 182, 219, 0.24);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 20px;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 6px;
}

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: rgba(253, 156, 103, 0.14);
  color: var(--accent-strong);
}

/* Buttons & Links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 999px;
  padding: 15px 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s, border-color 0.22s;
}

.button:hover {
  transform: translateY(-2px);
}

.button span {
  font-size: 18px;
  line-height: 1;
}

.primary {
  background: linear-gradient(135deg, #ffb485 0%, #f38d58 100%);
  color: #0b1322;
  box-shadow: 0 10px 28px rgba(253, 156, 103, 0.24);
}

.primary:hover {
  box-shadow: 0 14px 34px rgba(253, 156, 103, 0.36);
}

.secondary-button {
  background: rgba(18, 32, 56, 0.85);
  color: var(--ink);
  border: 1px solid rgba(154, 182, 219, 0.28);
}

.secondary-button:hover {
  border-color: var(--accent-strong);
  background: rgba(25, 43, 73, 0.95);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #d8e5f8;
  padding: 10px 4px;
  transition: color 0.2s, transform 0.2s;
}

.text-link:hover {
  color: var(--accent-strong);
}

/* 3D Experience & Stage */
.experience {
  position: relative;
}

.world-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  margin-bottom: -100svh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.scene-fallback {
  position: absolute;
  width: 52vw;
  height: 52vw;
  right: 0;
  top: 10%;
  background: radial-gradient(ellipse, rgba(55, 104, 185, 0.45) 0%, transparent 65%);
  border-radius: 50%;
}

.scene[data-ready] .scene-fallback {
  display: none;
}

/* Unified HUD Dock (.flight-ui) */
/* Wie in der Live-Fassung oben unter dem Header: Unten lief der Kapiteltext ungedeckt unter der Leiste durch,
   oben blendet ihn der Verlauf aus. */
.flight-ui {
  position: sticky;
  top: 78px;
  height: 72px;
  margin-bottom: -72px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s;
}

.flight-ui[data-visible="true"] {
  visibility: visible;
  opacity: 1;
}

.flight-ui::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--paper) 55%, rgba(7, 13, 25, 0.9) 78%, rgba(7, 13, 25, 0) 100%);
  pointer-events: none;
}

.flight-dock {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(9, 17, 31, 0.84);
  border: 1px solid rgba(154, 182, 219, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
}

.flight-toggle {
  display: none;
}

.flight-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.flight-controls button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--copy);
  transition: background 0.2s, color 0.2s;
}

.flight-controls button span {
  font: 10px/1 monospace;
  color: var(--muted);
}

.flight-controls button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.flight-controls button[aria-pressed="true"] {
  background: linear-gradient(135deg, #ffb485 0%, #f08c55 100%);
  color: #0b1322;
}

.flight-controls button[aria-pressed="true"] span {
  color: #462614;
}

.node-detail.flight-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 8px;
  border-left: 1px solid rgba(154, 182, 219, 0.18);
  margin: 0;
  background: none;
}

.flight-detail .eyebrow {
  display: none;
}

.flight-detail h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}

.flight-detail p {
  display: none;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(154, 182, 219, 0.2);
  background: rgba(17, 30, 52, 0.75);
  font: 11px/1 var(--font);
  font-weight: 700;
  color: var(--copy);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.motion-toggle:hover {
  border-color: var(--accent-strong);
  color: var(--ink);
}

.motion-toggle span {
  font-size: 13px;
  color: var(--accent-strong);
}

/* Hero & 3D Chapters */
.hero,
.network-journey {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero a,
.hero button,
.network-journey a,
.network-journey button {
  pointer-events: auto;
}

.hero {
  min-height: 100svh;
  padding: clamp(112px, 15vh, 160px) var(--pad) 108px;
  display: flex;
  align-items: center;
}

.hero-copy,
.device-copy {
  position: relative;
  max-width: 530px;
  padding: 36px 38px;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(12, 22, 40, 0.84) 0%, rgba(7, 13, 25, 0.76) 100%);
  border: 1px solid rgba(154, 182, 219, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.signal {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(253, 156, 103, 0.18), 0 0 14px var(--accent);
}

.hero h1 {
  font-size: clamp(44px, 5vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-intro {
  font-size: var(--intro-size);
  line-height: 1.68;
  max-width: 440px;
  margin-top: 22px;
  color: var(--copy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(154, 182, 219, 0.14);
  font-size: 12px;
  color: var(--muted);
}

.origin {
  font-weight: 700;
  color: #b7c8df;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-weight: 700;
}

.network-journey {
  display: block;
  padding: 0;
}

.device-chapter {
  min-height: 105svh;
  display: flex;
  align-items: center;
  padding: 90px var(--pad);
}

.device-chapter:last-of-type {
  min-height: 96svh;
}

.device-copy h2 {
  font-size: clamp(38px, 4.1vw, 64px);
  margin: 16px 0 20px;
  line-height: 1.04;
}

.device-copy > p:not(.eyebrow) {
  font-size: var(--intro-size);
  line-height: 1.68;
  max-width: 420px;
}

.tech {
  display: inline-block;
  font: 600 var(--meta-size)/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #b8cae2;
  background: rgba(20, 35, 60, 0.72);
  border: 1px solid rgba(154, 182, 219, 0.18);
  padding: 6px 13px;
  border-radius: 999px;
  overflow-wrap: anywhere;
}

.device-copy .tech {
  margin-top: 22px;
}

.flight-next {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-strong);
  transition: transform 0.2s;
}

.flight-next:hover {
  transform: translateY(2px);
}

/* Main Content Body */
.content-body {
  position: relative;
  background: var(--paper);
  z-index: 4;
}

/* Client Trust Strip */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 23, 41, 0.75) 0%, rgba(7, 13, 25, 0.95) 100%);
  padding: 56px var(--pad);
  display: flex;
  align-items: center;
  gap: 44px;
}

.trust-intro {
  min-width: 210px;
}

.trust-intro .eyebrow {
  display: block;
  font-size: 10px;
  margin-bottom: 8px;
}

.trust-intro p {
  font-size: 16px;
  line-height: 1.45;
  color: var(--copy);
}

.trust-intro b {
  color: var(--ink);
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.client-logo {
  height: 78px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #111d31;
  border: 1px solid rgba(154, 182, 219, 0.14);
  transition: border-color 0.25s, transform 0.25s;
}

.client-logo:hover {
  border-color: rgba(253, 156, 103, 0.4);
  transform: translateY(-2px);
}

.client-logo img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 36px;
  object-fit: contain;
}

.client-logo--edicos img,
.client-logo--quest img {
  max-height: 44px;
}

.client-logo--quest {
  background: #f4f6fa;
  border-color: #dce2ec;
}

/* Sections */
.section {
  padding: 112px var(--pad);
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading .eyebrow {
  margin-bottom: 18px;
}

.section-heading > p:last-child:not(.eyebrow) {
  max-width: 520px;
  margin-top: 20px;
  font-size: var(--copy-size);
  line-height: 1.72;
}

/* Services Grid */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px;
  border-radius: 22px;
  border: 1px solid rgba(154, 182, 219, 0.18);
  background: linear-gradient(145deg, #132138 0%, #0b1424 85%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: rgba(253, 156, 103, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.service-top {
  height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
}

.service-art {
  width: 92px;
  height: 92px;
  position: absolute;
  right: -6px;
  top: -6px;
  transform: scale(0.64) rotate(-12deg);
  transform-origin: top right;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card:hover .service-art {
  transform: scale(0.64) rotate(6deg) translateY(-4px);
}

.service-art i {
  position: absolute;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, rgba(253, 156, 103, 0.16), rgba(35, 60, 97, 0.75));
  box-shadow: 8px 9px 0 rgba(82, 142, 255, 0.08);
}

.art-web i { width: 70px; height: 52px; border-radius: 4px; left: 0; top: 25px; }
.art-web i:nth-child(2) { left: 10px; top: 15px; }
.art-web i:nth-child(3) { left: 20px; top: 5px; }
.art-mobile i { width: 42px; height: 72px; border-radius: 10px; left: 25px; top: 8px; }
.art-mobile i:nth-child(2) { left: 10px; top: 18px; }
.art-mobile i:nth-child(3) { width: 23px; height: 4px; top: 79px; left: 20px; background: var(--accent); }
.art-api i { width: 37px; height: 37px; left: 0; top: 25px; border-radius: 50%; }
.art-api i:nth-child(2) { left: 28px; top: 0; }
.art-api i:nth-child(3) { left: 55px; top: 28px; }
.art-ai i { width: 65px; height: 65px; left: 15px; top: 15px; transform: rotate(45deg); border-radius: 20px; }
.art-ai i:nth-child(2) { transform: rotate(75deg); }
.art-ai i:nth-child(3) { transform: rotate(105deg); }

.service-preview {
  height: 208px;
  margin: 10px 0 26px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(154, 182, 219, 0.14);
  background: radial-gradient(ellipse at 70% 60%, rgba(56, 86, 119, 0.38), transparent 70%), #091221;
  color: #eaf1ff;
  pointer-events: none;
  user-select: none;
  flex-shrink: 0;
}

.service-preview small {
  font: 8px/1.4 monospace;
  letter-spacing: 0.1em;
}

.preview-chrome {
  height: 29px;
  border-bottom: 1px solid rgba(83, 98, 121, 0.35);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
}

.preview-chrome i {
  width: 5px;
  height: 5px;
  background: #748599;
  border-radius: 50%;
}

.preview-chrome span {
  margin-left: 12px;
  font: 8px monospace;
  letter-spacing: 0.12em;
  color: #9daec4;
}

.preview-web-body {
  display: flex;
  justify-content: space-between;
  padding: 24px 24px 0;
  gap: 18px;
}

.preview-web-body b {
  display: block;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 8px 0 14px;
}

.preview-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f3aa83;
  color: #142033;
  display: inline-block;
}

.preview-orbit {
  position: relative;
  width: 150px;
  flex-shrink: 0;
}

.preview-orbit i {
  position: absolute;
  border: 1px solid rgba(168, 201, 237, 0.6);
  border-radius: 50%;
  height: 122px;
  width: 96px;
  top: 0;
  left: 24px;
  transform: rotate(-30deg);
  background: linear-gradient(120deg, rgba(92, 152, 211, 0.1), rgba(154, 186, 226, 0.14));
}

.preview-orbit i:nth-child(2) { transform: rotate(30deg); }
.preview-orbit i:nth-child(3) { transform: rotate(90deg); border-color: rgba(243, 174, 134, 0.58); }

.preview-app {
  display: grid;
  place-items: center;
  padding: 14px;
}

.preview-app-card {
  position: relative;
  width: 82%;
  max-width: 360px;
  padding: 20px 22px;
  border: 1px solid rgba(139, 167, 198, 0.34);
  background: linear-gradient(130deg, #273b53, #142237);
  border-radius: 15px;
  transform: rotate(-2deg);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.3);
}

.preview-app-card > small { color: #b7c8dc; }
.preview-app-card > b {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 8px 0 12px;
}
.preview-app-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 21px;
  color: #ffb68e;
}
.preview-app-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #6c7f95;
  padding-top: 9px;
  font-size: 10px;
  color: #c4d1e1;
}
.preview-app-ticket strong {
  font-size: 20px;
  line-height: 1;
  color: #f0b190;
}

.preview-data {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
}

.data-endpoints {
  display: grid;
  gap: 16px;
}

.data-endpoints span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 38px;
  background: #1c2f47;
  border: 1px solid #68809d;
  border-radius: 8px;
  font: 700 11px monospace;
  color: #e9f2ff;
}

.data-connector {
  height: 2px;
  flex: 1;
  max-width: 64px;
  min-width: 16px;
  background: linear-gradient(90deg, #5d82a6, #f9bd92);
  position: relative;
}

.data-connector::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 52%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffbe92;
  box-shadow: 0 0 14px #ffc397;
}

.data-core {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 1px solid #f8b788;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(135, 100, 73, 0.42), #20344d);
  box-shadow: 0 0 28px rgba(255, 192, 144, 0.14);
  font-size: 24px;
  font-weight: 800;
}

.data-core small {
  font-size: 7px;
  color: #f0cfb4;
}

.preview-ai {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ai-input {
  font-size: 11px;
  color: #d0dff2;
  border: 1px solid rgba(113, 135, 160, 0.45);
  border-radius: 20px;
  padding: 7px 16px;
  background: #1a2b42;
}

.ai-input > span {
  color: #ffbd93;
  margin-right: 8px;
}

.ai-path {
  width: 1px;
  height: 15px;
  background: #ceaa8e;
  flex-shrink: 0;
}

.ai-output {
  width: 88%;
  max-width: 340px;
  border: 1px solid #a17b61;
  border-radius: 12px;
  background: linear-gradient(135deg, #433737, #1b2b41);
  padding: 13px 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.ai-output small { color: #f0ba96; font-size: 7px; }
.ai-output b { display: block; font-size: 16px; line-height: 1.25; margin-top: 5px; }
.ai-output > span {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  margin-top: 7px;
  color: #bfd0e6;
}
.ai-output i { font-style: normal; color: #ffd1b0; }

.service-card h3 {
  font-size: clamp(24px, 2.1vw, 32px);
  max-width: 440px;
}

.service-card > p {
  font-size: var(--copy-size);
  line-height: 1.72;
  margin: 14px 0 22px;
  max-width: 520px;
}

.service-card > .tech {
  margin-top: auto;
  align-self: flex-start;
}

.service-card > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  transition: color 0.2s;
}

.service-card > a:hover {
  color: var(--accent-strong);
}

.service-card > a span {
  color: var(--accent-strong);
  font-size: 18px;
}

/* Cases / Projects Section */
.cases-section {
  background: linear-gradient(180deg, #0b1425 0%, #0e192d 50%, #08101e 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cases {
  display: grid;
  gap: 88px;
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
  gap: 5%;
  align-items: center;
}

.case-visual {
  position: relative;
  aspect-ratio: 1.5;
  border-radius: 22px;
  border: 1px solid rgba(154, 182, 219, 0.22);
  background: #101b2a;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}

.project-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Studio-Kontrastverlauf rechts hinter dem 3D-Modell für klare Lesbarkeit */
.project-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 13, 24, 0.04) 0%, rgba(8, 13, 24, 0.16) 46%, rgba(8, 13, 24, 0.64) 100%);
  z-index: 0;
  pointer-events: none;
}

.project-scene > img.project-backdrop,
.project-scene[data-ready="true"] > img.project-backdrop {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.project-scene:not([data-ready="true"]) .device-html-layer,
.project-scene[data-fallback="true"] .device-html-layer {
  visibility: hidden;
}

.case-number,
.case-visual-label {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.case-number {
  top: 18px;
  left: 20px;
  color: #fff3e8;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(9, 17, 31, 0.72);
  font: 700 10px monospace;
  backdrop-filter: blur(8px);
}

.case-visual-label {
  bottom: 16px;
  left: 20px;
  color: #e5ecf8;
  background: rgba(9, 17, 31, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: 6px;
  font: 700 8px monospace;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.case-copy {
  padding: 12px 0;
}

.case-copy h3 {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
  margin: 16px 0 18px;
}

.case-copy > p:not(.eyebrow) {
  font-size: var(--copy-size);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 24px;
}

/* Process Section */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.process-list li {
  position: relative;
  padding: 28px 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(18, 32, 56, 0.65) 0%, rgba(10, 18, 33, 0.85) 100%);
  transition: border-color 0.25s, transform 0.25s;
}

.process-list li:hover {
  border-color: rgba(253, 156, 103, 0.42);
  transform: translateY(-3px);
}

.process-list li > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(253, 156, 103, 0.14);
  border: 1px solid rgba(253, 156, 103, 0.35);
  font: 700 13px monospace;
  color: var(--accent-strong);
}

.process-list h3 {
  font-size: 23px;
  margin: 22px 0 12px;
}

.process-list p {
  font-size: 15px;
  line-height: 1.72;
}

/* About Section */
.about-card {
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid rgba(154, 182, 219, 0.18);
  background:
    radial-gradient(ellipse at 90% 15%, rgba(253, 156, 103, 0.12), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(92, 148, 238, 0.12), transparent 55%),
    linear-gradient(155deg, #111e35 0%, #091221 100%);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.35);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 7%;
  margin: 22px 0 48px;
  align-items: center;
}

.large-copy {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.65;
  color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.facts > div {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(154, 182, 219, 0.16);
  background: rgba(8, 15, 28, 0.6);
  display: grid;
  gap: 6px;
}

.facts strong {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--accent-strong);
}

.facts span {
  font-size: 13px;
  color: var(--copy);
}

.stack-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stack-line span {
  font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #d4e2f6;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(19, 34, 58, 0.78);
  border: 1px solid rgba(154, 182, 219, 0.18);
}

/* FAQ Section */
.faq-section {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 7%;
  border-top: 1px solid var(--line);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 23, 41, 0.65);
  padding: 0 24px;
  transition: border-color 0.2s, background 0.2s;
}

details[open] {
  border-color: rgba(253, 156, 103, 0.38);
  background: rgba(16, 28, 49, 0.9);
}

summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  font-size: 22px;
  color: var(--accent-strong);
  transition: transform 0.25s;
  flex-shrink: 0;
}

details[open] summary span {
  transform: rotate(45deg);
}

details p {
  padding: 0 16px 24px 0;
  font-size: 16px;
  line-height: 1.75;
}

/* Footer & Reading Progress */
.footer {
  position: relative;
  z-index: 4;
  padding: 48px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  background: #050a14;
  border-top: 1px solid var(--line);
}

.footer p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.reading-progress {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue-accent));
  width: 100%;
  transform: scaleX(var(--read, 0));
  transform-origin: left;
  z-index: 50;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .client-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .case {
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 1fr);
    gap: 4%;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 18px;
    --copy-size: 15px;
    --intro-size: 15px;
    --meta-size: 12px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .header {
    height: 64px;
    padding: 0 16px;
    gap: 12px;
  }

  .nexus-logo {
    width: 34px;
    height: 34px;
  }

  .nexus-wordmark {
    font-size: 17px;
  }

  .main-nav,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  /* Auf Mobilgeräten erhält die obere 3D-Bühne eine sanfte Decke, damit hochscrollender Text nicht mit den 3D-Modellen kollidiert */
  .world-stage {
    z-index: 3;
    min-height: 0;
  }

  .world-stage::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 43svh;
    background: linear-gradient(180deg, #070d19 0%, rgba(7, 13, 25, 0.92) 74%, rgba(7, 13, 25, 0) 100%);
    z-index: 0;
    pointer-events: none;
  }

  .scene {
    z-index: 1;
  }

  /* Kompakte Stationsleiste oben direkt unter dem Header */
  .flight-ui {
    top: 70px;
    height: 40px;
    margin-bottom: -40px;
    padding: 0 12px;
  }

  /* Mobil deckt die Bühnendecke den Text schon ab. */
  .flight-ui::before {
    content: none;
  }

  .flight-dock {
    width: 100%;
    max-width: 400px;
    justify-content: space-between;
    padding: 4px 5px;
    gap: 4px;
  }

  .flight-controls {
    flex: 1;
    gap: 2px;
  }

  .flight-controls button {
    flex: 1;
    justify-content: center;
    padding: 7px 6px;
    font-size: 11px;
    gap: 4px;
  }

  .flight-controls button span {
    font-size: 9px;
  }

  .node-detail.flight-detail {
    display: none;
  }

  .motion-toggle {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
    flex-shrink: 0;
  }

  .motion-toggle span {
    font-size: 13px;
  }

  .hero {
    min-height: 100svh;
    padding: 43svh 16px 28px;
    align-items: flex-start;
  }

  .hero-copy,
  .device-copy {
    max-width: 100%;
    width: 100%;
    padding: 22px 20px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(13, 24, 43, 0.94) 0%, rgba(7, 13, 25, 0.92) 100%);
  }

  .hero .eyebrow {
    font-size: 10px;
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(32px, 9.2vw, 44px);
    line-height: 1.04;
  }

  .hero-intro {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 18px;
    gap: 12px;
  }

  .hero-actions .button {
    padding: 13px 18px;
    font-size: 13px;
    gap: 12px;
  }

  .hero-actions .text-link {
    font-size: 13px;
  }

  .hero-meta {
    margin-top: 16px;
    padding-top: 14px;
    font-size: 11px;
    gap: 8px;
  }

  .scroll-cue {
    display: none;
  }

  .device-chapter,
  .device-chapter:last-of-type {
    min-height: 98svh;
    padding: 45svh 16px 36px;
    align-items: flex-start;
  }

  .device-copy h2 {
    font-size: clamp(30px, 8.8vw, 42px);
    margin: 12px 0 14px;
  }

  .device-copy > p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.62;
  }

  .device-copy .tech {
    margin-top: 16px;
  }

  .trust-strip {
    padding: 40px 16px;
  }

  .client-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .client-logo {
    height: 72px;
    padding: 14px 12px;
  }

  .section {
    padding: 72px 16px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card {
    padding: 22px 20px;
  }

  .service-preview {
    height: 186px;
    margin-bottom: 20px;
  }

  .preview-web-body {
    padding: 20px 16px 0;
    gap: 10px;
  }

  .preview-web-body b {
    font-size: 21px;
  }

  .preview-orbit {
    width: 86px;
  }

  .preview-orbit i {
    width: 72px;
    height: 100px;
    left: 4px;
  }

  .preview-data {
    padding: 16px 12px;
  }

  .data-endpoints span {
    width: 56px;
    font-size: 10px;
  }

  .data-core {
    width: 74px;
    height: 74px;
    font-size: 20px;
  }

  .cases {
    gap: 56px;
  }

  .case {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .case-visual {
    aspect-ratio: 1.14;
    border-radius: 16px;
  }

  .project-scene > img.project-backdrop {
    object-position: 34% center;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 16px;
  }

  details {
    padding: 0 18px;
  }

  summary {
    font-size: 15px;
    padding: 18px 0;
  }

  details p {
    font-size: 14px;
    padding-right: 0;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 16px;
    gap: 20px;
  }
}

@media (max-width: 380px) {
  .preview-web-body b { font-size: 18px; }
  .preview-orbit { width: 56px; }
  .preview-orbit i { width: 54px; height: 82px; }
  .data-endpoints span { width: 46px; font-size: 9px; }
  .data-core { width: 64px; height: 64px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .service-card:hover,
  .service-card:hover .service-art,
  .client-logo:hover,
  .process-list li:hover,
  .button:hover {
    transform: none;
  }
}
