/* ==========================================================================
   moonorb — main.css
   Aufbau: Fonts · Tokens · Basis · Shell (Sidebar + Panel) · Komponenten ·
   Seiten · Effekte · Intro · Mobile · Reduced motion
   ========================================================================== */

/* ---------- Fonts (lokal gehostet, kein Google-Server → DSGVO-freundlich) */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}

/* ---------- Tokens */
:root {
  --bg: #000000;
  --bg-2: #0b0b0c;
  --fg: #ffffff;
  --fg-2: #c9c9c6;
  --muted: #8f8f8a;
  --line: rgba(255, 255, 255, 0.92);
  --line-soft: rgba(255, 255, 255, 0.22);
  --chip: #e9e9e6;
  --chip-ink: #000000;
  --accent: #ffe100;
  --accent-ink: #000000;
  --glow: rgba(255, 255, 255, 0.9);
  --pc-color: 1; /* 1 = helle Punkte, 0 = dunkle Punkte (wird von JS gelesen) */

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 4px;
  --radius-lg: 10px;

  /* Shell-Maße, abgeleitet vom 1920×1080 Screendesign */
  --side-x: clamp(24px, 5.2vw, 100px);
  --side-w: 176px;
  --gap-x: clamp(24px, 3.1vw, 60px);
  --edge-r: clamp(24px, 4.3vw, 82px);
  --edge-t: clamp(24px, 7.8vh, 84px);
  --edge-b: clamp(24px, 8.5vh, 92px);
  --pad: clamp(20px, 4.6vw, 88px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #ecece8;
  --bg-2: #e2e2dd;
  --fg: #0a0a0a;
  --fg-2: #2e2e2b;
  --muted: #5d5d57;
  --line: rgba(0, 0, 0, 0.88);
  --line-soft: rgba(0, 0, 0, 0.2);
  --chip: #0a0a0a;
  --chip-ink: #ffffff;
  --glow: rgba(0, 0, 0, 0.75);
  --pc-color: 0;
  color-scheme: light;
}

/* ---------- Basis */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px;
  border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Shell
   ========================================================================== */
.shell { position: fixed; inset: 0; }

/* ---------- Sidebar */
.sidebar {
  position: absolute;
  left: var(--side-x);
  top: var(--edge-t);
  bottom: var(--edge-b);
  width: var(--side-w);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: block;
  color: var(--fg);
  text-decoration: none;
  width: 176px;
  margin-bottom: clamp(40px, 9.8vh, 106px);
}
.brand svg { width: 100%; height: auto; fill: currentColor; overflow: visible; }

.nav { display: flex; flex-direction: column; gap: 8px; }
.nav-cta { margin-top: 41px; }

/* ---------- Buttons (Basis für Nav, CTA, Demo …) */
.btn {
  --b: var(--line);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 35px;
  padding: 0 16px;
  border: 1px solid var(--b);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  font-stretch: 100%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.5s var(--ease-out);
  will-change: transform;
}
.btn .btn-fill {
  position: absolute; inset: 0; z-index: -1;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease-io);
}
.btn:hover .btn-fill, .btn:focus-visible .btn-fill { transform: scaleX(1); transform-origin: left center; }
.btn:hover, .btn:focus-visible { color: var(--bg); }
.btn[aria-current="page"], .btn.is-active { background: var(--fg); color: var(--bg); }
.btn[aria-current="page"] .btn-fill, .btn.is-active .btn-fill { display: none; }

/* Sci-Fi-Ecken beim Hover */
.btn::before, .btn::after {
  content: ""; position: absolute; width: 6px; height: 6px;
  border-color: var(--accent); border-style: solid; opacity: 0;
  transition: opacity 0.25s, transform 0.4s var(--ease-out);
  pointer-events: none;
}
.btn::before { left: 3px; top: 3px; border-width: 1px 0 0 1px; transform: translate(4px, 4px); }
.btn::after { right: 3px; bottom: 3px; border-width: 0 1px 1px 0; transform: translate(-4px, -4px); }
.btn:hover::before, .btn:hover::after { opacity: 1; transform: none; }

.nav .btn { width: 100%; }

.btn--accent { --b: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--accent .btn-fill { background: var(--fg); }
.btn--accent::before, .btn--accent::after { border-color: var(--accent-ink); }
:root[data-theme="light"] .btn--accent::before,
:root[data-theme="light"] .btn--accent::after { border-color: var(--accent); }
.btn--accent:hover, .btn--accent:focus-visible { color: var(--bg); }

.btn--lg { min-height: 48px; padding: 0 24px; font-size: 13px; }
.btn[disabled], .btn[aria-disabled="true"] {
  cursor: not-allowed; opacity: 0.55;
}
.btn[disabled]:hover, .btn[aria-disabled="true"]:hover { color: var(--fg); }
.btn[disabled] .btn-fill, .btn[aria-disabled="true"] .btn-fill { display: none; }

.btn .arrow { display: inline-block; transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Einstellungen (unten in der Sidebar) */
.settings { margin-top: auto; position: relative; }
.settings-panel {
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 16px 16px 14px;
  display: grid;
  gap: 10px;
  transform-origin: bottom center;
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s linear 0s;
}
.settings:not(.is-open) .settings-panel {
  opacity: 0; transform: translateY(12px) scaleY(0.92); visibility: hidden;
  transition: opacity 0.25s, transform 0.3s, visibility 0s linear 0.3s;
}
.setting {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em;
  min-height: 24px;
}
.setting-label { white-space: nowrap; }

.switch {
  appearance: none; -webkit-appearance: none;
  width: 30px; height: 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  position: relative; margin: 0; flex: none;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--fg);
  transition: transform 0.35s var(--ease-out), background-color 0.3s;
}
.switch:checked::after { transform: translateX(14px); }
.switch:checked { background: var(--fg); }
.switch:checked::after { background: var(--bg); }

.lang { display: inline-flex; align-items: center; gap: 4px; }
.lang button {
  width: 24px; height: 24px; border: 0; padding: 0; background: none;
  display: grid; place-items: center;
}
.lang svg { width: 11px; height: 12px; fill: none; stroke: var(--fg); stroke-width: 1.2; }
.lang-value { font-family: var(--mono); font-size: 12px; min-width: 22px; text-align: center; }

.settings-toggle {
  width: 100%;
  min-height: 35px;
  border: 1px solid var(--chip);
  background: var(--chip);
  color: var(--chip-ink);
  border-radius: var(--radius);
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-radius 0.3s;
}
.settings.is-open .settings-toggle { border-radius: 0 0 var(--radius) var(--radius); }
.settings-toggle svg { width: 10px; height: 10px; transition: transform 0.4s var(--ease-out); stroke: currentColor; fill: none; stroke-width: 1.5; }
.settings.is-open .settings-toggle svg { transform: rotate(180deg); }

/* ---------- Panel (Inhaltsbereich, eigener Scroll-Container wie eine App) */
.panel {
  position: absolute;
  left: calc(var(--side-x) + var(--side-w) + var(--gap-x));
  right: var(--edge-r);
  top: var(--edge-t);
  bottom: var(--edge-b);
  z-index: 10;
}
.panel-scroll {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
  border-radius: var(--radius-lg);
  /* weiche Ausblendung oben/unten wie im Screendesign */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 64px), transparent 100%);
}
.panel-scroll::-webkit-scrollbar { display: none; }
.panel-scroll.at-top { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 64px), transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 64px), transparent 100%); }

.scrollbar {
  position: absolute; right: -2px; top: 12px; bottom: 22px; width: 7px;
  border-radius: 999px; background: var(--line-soft); z-index: 30;
  opacity: 0.9;
}
.scrollbar-thumb {
  position: absolute; left: 0; right: 0; top: 0; height: 48px;
  border-radius: 999px; background: var(--fg);
  cursor: grab; touch-action: none;
}
.scrollbar-thumb:active { cursor: grabbing; }

.page { position: relative; }

/* ==========================================================================
   Sektionen / Typo
   ========================================================================== */
.section { padding: clamp(72px, 12vh, 140px) var(--pad); position: relative; }
.section--tight { padding-top: clamp(40px, 7vh, 80px); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 24px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.h-display {
  margin: 0;
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.h-xl { font-size: clamp(44px, 4.6vw, 96px); }
.h-lg { font-size: clamp(34px, 3.4vw, 64px); }
.h-md { font-size: clamp(26px, 2.2vw, 40px); }
.light { font-weight: 300; }

.lead {
  font-size: clamp(18px, 1.46vw, 28px);
  line-height: 1.22;
  font-weight: 400;
  max-width: 34ch;
  margin: 0;
}
.body-l { font-size: clamp(16px, 1.05vw, 19px); line-height: 1.55; color: var(--fg-2); max-width: 54ch; }

/* ---------- Hero (Startseite) */
.hero {
  position: relative;
  height: calc(100vh - var(--edge-t) - var(--edge-b));
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vh, 48px) var(--pad) clamp(40px, 8vh, 80px);
}
.hero-canvas, .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-poster {
  object-fit: cover; object-position: 60% 60%;
  opacity: 0.85;
  transition: opacity 1.2s var(--ease-out);
}
:root[data-theme="light"] .hero-poster { filter: invert(1); opacity: 0.7; }
.hero.has-webgl .hero-poster { opacity: 0; }
.hero-canvas { z-index: 0; }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 60%);
}
.hero-top, .hero-title, .hero-bottom { position: relative; z-index: 2; }
.hero-top {
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2);
}
.hero-title { margin-top: auto; margin-bottom: auto; }
.hero-title .h-display { font-size: clamp(42px, 4.4vw, 92px); }
.hero-title .line-2 { font-weight: 300; font-stretch: 100%; display: block; margin-top: 0.08em; font-size: 0.68em; letter-spacing: 0; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.scroll-cue {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2);
}
.scroll-cue i {
  width: 1px; height: 40px; background: var(--line-soft); position: relative; overflow: hidden; display: block;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--fg);
  animation: cue 1.8s var(--ease-io) infinite;
}
@keyframes cue { to { top: 100%; } }
@keyframes drift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.14) translateY(-2%); } }

/* ---------- Leistungs-Liste (Startseite) */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1.25fr) minmax(0, 0.85fr) 32px;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3.4vh, 36px) 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--fg);
  overflow: hidden;
}
.service-row::before {
  content: ""; position: absolute; inset: 0; background: var(--fg); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.55s var(--ease-io);
}
.service-row:hover::before, .service-row:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.service-row:hover, .service-row:focus-visible { color: var(--bg); }
.service-row { isolation: isolate; transition: color 0.4s var(--ease-out), padding 0.55s var(--ease-io); }
.service-row:hover { padding-left: 20px; padding-right: 20px; }
.service-row .idx { font-family: var(--mono); font-size: 12px; opacity: 0.7; }
.service-row h3 { margin: 0; font-size: clamp(22px, 2.15vw, 42px); font-weight: 700; font-stretch: 110%; text-transform: uppercase; line-height: 1; }
.service-row p { margin: 0; font-size: 15px; line-height: 1.5; opacity: 0.8; }
.service-row .go { font-size: 20px; justify-self: end; transition: transform 0.5s var(--ease-out); }
.service-row:hover .go { transform: translateX(-4px) rotate(-45deg); }

/* ---------- Showcase-Karten (Leistungen) */
.showcase { display: grid; gap: 22px; }
.demo-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 265px) minmax(0, 1fr);
  min-height: clamp(260px, 32vh, 345px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.demo-info {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 12px;
  padding: 34px 20px 18px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}
.demo-info h3 { margin: 0; font-size: 18px; font-weight: 600; text-transform: uppercase; line-height: 1.2; }
.demo-info p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.demo-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.demo-info .btn { margin-top: auto; align-self: flex-start; }
.demo-visual { position: relative; overflow: hidden; }
.demo-visual img {
  position: absolute; inset: -8% -4%; width: 108%; height: 116%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s;
  will-change: transform;
}
:root[data-theme="light"] .demo-visual img { filter: invert(1) contrast(0.92); }
.demo-card:hover .demo-visual img { transform: scale(1.04); }
.demo-visual .demo-num {
  position: absolute; right: 22px; bottom: 10px; z-index: 2;
  font-weight: 800; font-stretch: 125%; font-size: clamp(64px, 7vw, 132px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-soft);
  pointer-events: none;
}

/* ---------- Leistungen Detail */
.service-detail {
  display: grid;
  grid-template-columns: 100px minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  padding: clamp(36px, 6vh, 64px) 0;
  border-top: 1px solid var(--line-soft);
}
.service-detail .idx { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 10px; }
.service-detail h3 { margin: 0 0 12px; font-size: clamp(24px, 2.1vw, 40px); font-weight: 800; font-stretch: 112%; text-transform: uppercase; line-height: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; align-content: flex-start; }
.tags li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line-soft); border-radius: 999px; padding: 8px 12px; }

.page-head { padding: clamp(40px, 8vh, 96px) var(--pad) clamp(24px, 4vh, 48px); position: relative; overflow: hidden; }
.page-head .giant {
  font-weight: 800; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(52px, 6.6vw, 150px); line-height: 0.86; margin: 0 0 clamp(20px, 3vh, 36px);
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--fg) 30%, color-mix(in srgb, var(--fg) 10%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head .lead { max-width: 30ch; }
.orb-canvas {
  position: absolute; right: 0; top: 0; width: min(46%, 640px); height: 100%; z-index: -1;
  pointer-events: none;
}

/* ---------- FAQ */
.faq { max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: clamp(17px, 1.3vw, 22px); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 14px; height: 14px; position: relative; flex: none; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 14px; height: 1px; background: currentColor; transition: transform 0.4s var(--ease-out); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq .answer { padding: 0 0 24px; max-width: 64ch; color: var(--fg-2); line-height: 1.6; }

/* ---------- Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { border-top: 1px solid var(--line); padding-top: 18px; }
.steps .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.steps h3 { margin: 10px 0 8px; font-size: 20px; font-weight: 600; }
.steps p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.5; }

/* ---------- Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.member {
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  transition: border-color 0.4s;
}
.member:hover { border-color: var(--line); }
.member .stage { aspect-ratio: 4 / 5; position: relative; background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--fg) 8%, transparent), transparent 62%); }
.member canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.member .info { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; border-top: 1px solid var(--line-soft); }
.member h3 { margin: 0; font-size: 22px; font-weight: 700; font-stretch: 112%; text-transform: uppercase; }
.member .wip { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- CTA-Block */
.cta-block {
  margin: 0 var(--pad) clamp(56px, 10vh, 120px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 7vh, 80px) clamp(24px, 4vw, 64px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  position: relative; overflow: hidden;
}
.cta-block .h-display { max-width: 16ch; }

/* ---------- Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); padding: 0; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent;
  padding: 10px 0 12px; font-size: 18px; border-radius: 0;
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-soft); border-radius: 999px; font-size: 14px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-family: var(--mono); font-size: 13px; min-height: 20px; }
.form-status.ok { color: var(--accent); }
:root[data-theme="light"] .form-status.ok { color: #6b5d00; }
.form-status.err { color: #ff6b5a; }
:root[data-theme="light"] .form-status.err { color: #b3261e; }

.contact-card { border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 18px; }
.contact-card .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mail-big { font-size: clamp(22px, 1.9vw, 32px); font-weight: 600; text-decoration: none; word-break: break-all; }
.mail-big:hover { text-decoration: underline; text-underline-offset: 6px; }
.copy-btn { justify-self: start; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.next-steps li { display: flex; gap: 12px; font-size: 15px; }
.next-steps li span { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }

/* ---------- Rechtstexte */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; font-weight: 700; }
.legal h3 { font-size: 17px; margin: 28px 0 8px; font-weight: 600; }
.legal p, .legal li { color: var(--fg-2); line-height: 1.65; }
.legal a { text-underline-offset: 3px; }
.todo { background: var(--accent); color: var(--accent-ink); padding: 0 4px; border-radius: 2px; }

/* ---------- Footer */
.footer {
  margin: 0 var(--pad);
  padding: 28px 0 56px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--fg-2);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Effekte
   ========================================================================== */

/* Text-Reveal: Zeilen/Wörter fahren aus einer Maske */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.split.is-in .w > span { transform: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Shell-Aufbau nach dem Intro */
.boot .brand, .boot .nav > *, .boot .nav-cta, .boot .settings, .boot .panel, .boot .scrollbar { opacity: 0; }
.from-intro .nav > *, .from-intro .nav-cta, .from-intro .settings { animation: build-in 0.7s var(--ease-out) both; }
.from-intro .nav > *:nth-child(1) { animation-delay: 0.05s; }
.from-intro .nav > *:nth-child(2) { animation-delay: 0.1s; }
.from-intro .nav > *:nth-child(3) { animation-delay: 0.15s; }
.from-intro .nav > *:nth-child(4) { animation-delay: 0.2s; }
.from-intro .nav-cta { animation-delay: 0.3s; }
.from-intro .settings { animation-delay: 0.4s; }
.built .panel { animation: panel-in 1.1s var(--ease-out) 0.1s both; }
@keyframes build-in { from { opacity: 0; transform: translateX(-14px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes panel-in { from { opacity: 0; clip-path: inset(0 0 100% 0 round 10px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 10px); } }

/* Seitenwechsel */
.leaving .panel { animation: panel-out 0.45s var(--ease-io) both; }
@keyframes panel-out { to { opacity: 0; transform: translateY(-16px); filter: blur(6px); } }

.loader {
  position: fixed; z-index: 60; pointer-events: none;
  left: calc(var(--side-x) + var(--side-w) + var(--gap-x));
  right: var(--edge-r); top: var(--edge-t); bottom: var(--edge-b);
  display: grid; place-items: center; opacity: 0; transition: opacity 0.25s;
}
.leaving .loader { opacity: 1; }
.loader svg { width: 120px; height: 60px; overflow: visible; }
.loader .ring { fill: none; stroke: var(--fg); stroke-width: 2; }
.loader .disc { fill: var(--fg); animation: eclipse-pass 0.9s var(--ease-io) infinite; }
@keyframes eclipse-pass { from { transform: translateX(-60px); } to { transform: translateX(60px); } }

/* Klick-Impuls */
.ping {
  position: fixed; z-index: 120; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  border: 1px solid var(--accent);
  animation: ping 0.7s var(--ease-out) forwards;
}
@keyframes ping { to { transform: scale(7); opacity: 0; } }

/* ---------- Cursor */
.cursor, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 200; opacity: 0; transition: opacity 0.3s; }
.has-cursor .cursor, .has-cursor .cursor-ring { opacity: 1; }
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 50%;
  mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), margin 0.4s var(--ease-out), background-color 0.3s, opacity 0.3s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, 1); }
.cursor-ring.is-label { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: #fff; }
.cursor-ring .cursor-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: #000; opacity: 0; transition: opacity 0.2s; text-transform: uppercase; }
.cursor-ring.is-label .cursor-label { opacity: 1; mix-blend-mode: normal; }
.cursor-ring.is-down { transform: scale(0.8); }
.cursor-coords {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: #fff; mix-blend-mode: difference;
  opacity: 0; transition: opacity 0.3s; white-space: nowrap;
}
.has-cursor .cursor-coords { opacity: 0.55; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary, .has-cursor input[type="checkbox"], .has-cursor input[type="radio"] { cursor: none; }
.has-cursor input[type="text"], .has-cursor input[type="email"], .has-cursor textarea { cursor: text; }

/* ==========================================================================
   Intro: Mondfinsternis
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 500; background: var(--bg);
  display: grid; place-items: center;
}
.intro[hidden] { display: none; }
.with-intro .intro[hidden] { display: grid; }
.with-intro .intro .logo .letter { opacity: 0; }
.intro-stage { width: min(72vw, 760px); position: relative; color: var(--fg); }
.intro-stage svg { width: 100%; height: auto; overflow: visible; fill: currentColor; }
.intro .letter { opacity: 0; }
.intro .flare {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 24px 10px rgba(255, 255, 255, 0.9), 0 0 80px 30px rgba(255, 255, 255, 0.35);
  opacity: 0; pointer-events: none;
}
.intro .flare::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46vw; height: 1px; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
}
:root[data-theme="light"] .intro .flare { background: #000; box-shadow: 0 0 24px 10px rgba(0,0,0,.6), 0 0 80px 30px rgba(0,0,0,.2); }
:root[data-theme="light"] .intro .flare::after { background: linear-gradient(90deg, transparent, rgba(0,0,0,.7), transparent); }
.intro-meta {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 6vh, 64px);
  display: flex; justify-content: center; gap: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.intro-skip {
  position: absolute; right: 24px; top: 24px; background: none; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 8px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted);
}

/* ==========================================================================
   Mobile / Tablet  (< 1024px): normale Seite mit Kopfzeile + Menü
   ========================================================================== */
.topbar, .menu-toggle { display: none; }

@media (max-width: 1023px) {
  body { overflow: auto; }
  .shell { position: static; }
  .sidebar { display: none; }
  .topbar {
    display: flex; position: sticky; top: 0; z-index: 50;
    align-items: center; justify-content: space-between;
    padding: 14px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
  }
  .topbar .brand { width: 128px; margin: 0; }
  .menu-toggle { display: inline-flex; }
  .panel { position: static; margin: 12px 12px 0; }
  .panel-scroll { position: static; overflow: visible; -webkit-mask-image: none; mask-image: none; border-radius: 0; }
  .scrollbar { display: none; }
  .loader { left: 0; right: 0; }
  .hero { height: calc(100svh - 86px); min-height: 480px; }
  .hero-title .h-display { font-size: clamp(30px, 8.4vw, 64px); }
  .hero-poster { animation: drift 24s ease-in-out infinite alternate; }
  .orb-canvas { width: 100%; opacity: 0.5; }
  .service-row { grid-template-columns: 40px minmax(0, 1fr) 24px; }
  .service-row p { grid-column: 2 / 3; }
  .service-row .go { grid-row: 1; grid-column: 3; }
  .demo-card { grid-template-columns: minmax(0, 1fr); }
  .demo-info { border-right: 0; border-bottom: 1px solid var(--line); order: 2; }
  .demo-visual { min-height: 220px; order: 1; }
  .service-detail { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .boot .panel { opacity: 0; }

  /* Mobiles Menü */
  .mobile-menu {
    position: fixed; inset: 0; z-index: 80; background: var(--bg);
    display: flex; flex-direction: column; gap: 10px;
    padding: 84px 16px 24px; overflow-y: auto;
    clip-path: circle(0% at calc(100% - 40px) 30px);
    transition: clip-path 0.7s var(--ease-io), visibility 0s linear 0.7s;
    visibility: hidden;
  }
  .menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 30px); visibility: visible; transition: clip-path 0.7s var(--ease-io); }
  .mobile-menu .btn { min-height: 52px; font-size: 15px; width: 100%; }
  .mobile-menu .settings { margin-top: 24px; }
  .mobile-menu .settings-panel { display: grid; }
  .menu-open .topbar { z-index: 90; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (min-width: 1024px) { .mobile-menu { display: none; } }

@media (max-width: 640px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: minmax(0, 1fr); }
  .member .stage { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .service-row p { display: none; }
  .hero-top span:last-child { display: none; }
  .cta-block { margin-left: 0; margin-right: 0; }
  .footer { margin: 0 4px; }
  .section { padding-left: 4px; padding-right: 4px; }
  .page-head { padding-left: 4px; padding-right: 4px; }
  .hero { padding-left: 20px; padding-right: 20px; }
}

/* Kurze Desktop-Fenster: Abstände der Sidebar stauchen */
@media (min-width: 1024px) and (max-height: 760px) {
  .brand { margin-bottom: 32px; }
  .nav-cta { margin-top: 20px; }
}

/* ==========================================================================
   Weniger Bewegung (System-Einstellung oder Schalter "Effekte")
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.fx-off *, .fx-off *::before, .fx-off *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
.fx-off .split .w > span, .fx-off .reveal { transform: none !important; opacity: 1 !important; transition: none !important; }
