/* ============================================================
   Apollo – Designsystem
   ------------------------------------------------------------
   Hell, ruhig, große Grotesk-Typografie, Fotografie statt
   Schmuckelemente. Inspiriert von Palantir, eigenständig.
   Schriften: Host Grotesk (Text) + DM Mono (Auszeichnung),
   beide selbst gehostet, SIL Open Font License.
   ============================================================ */

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/host-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/host-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bindestrich aus Hanken Grotesk (Host Grotesk zeichnet ihn sehr lang) */
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+002D, U+2010-2011;
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #efefef;
  --bg-raised: #efefef;
  --bg-raised-2: #e6e6e6;
  --line: #dcdcdc;
  --line-strong: #b9b9b9;
  --text: #1e1f2b;
  --text-2: #66666b;
  --text-3: #8c8c91;
  --ink: #1e1f2b;
  --on-ink: #ffffff;
  --ink-hover: #343546;
  --header-bg: rgba(250, 250, 250, 0.78);
  --header-bg-solid: rgba(250, 250, 250, 0.96);
  --shadow: none;
  --placeholder-grid: rgba(0, 0, 0, 0.04);

  --font-sans: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius-lg: 0;
  --radius: 0;
  --radius-sm: 0;
  --container: 1440px;
  --gutter: clamp(1rem, 2.4vw, 2rem);
  --header-h: 80px;
}

html { scroll-padding-top: 96px; }
html:not(.intro-done) { overflow: visible; }
.intro { display: none !important; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--bg);
}
::selection { background: var(--ink); color: #fff; }
.theme-toggle { display: none !important; }

.mono,
.label,
.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Überschriften der Basis überschreiben */
.display, .h1, .h2 { font-weight: 400; color: var(--text); }
.h1 { font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.5rem); line-height: 1; letter-spacing: -0.05em; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.05; letter-spacing: -0.035em; }
.lead { color: var(--text-2); font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.45; }

/* ---------- Buttons ---------- */
.btn {
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-transform: none;
  gap: 10px;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); }
.btn-secondary { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--bg-alt); }
.btn .icon-arrow { display: none; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  transition: background-color 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.text-link { font-size: 0.9375rem; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ============================================================
   Header (schwebende Leiste) und Menü
   ============================================================ */
.site-header {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 60;
  background: var(--header-bg);
  /* Blur ist teuer bei jedem Scroll-Frame (ganze Seite wird gefiltert).
     Deshalb nur im Ruhezustand (Seitenanfang); beim Scrollen solide Fläche. */
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.06);
}
/* Beim Scrollen: kein backdrop-filter (Performance), leicht transparente
   Farbe statt Blur — wirkt gleich, kostet aber nur Compositing. */
.site-header.is-scrolled {
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: var(--header-bg-solid, rgba(255, 255, 255, 0.96));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.06);
}
html.menu-open .site-header { background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* Scroll-Progress-Leiste: dünne Linie direkt unter der fixen Kopfzeile.
   Unsichtbar am Seitenanfang, blendet beim Scrollen ein. Füllstand per
   transform: scaleX (nur Compositing, kein Layout im Scroll-Frame). */
/* Scroll-Progress-Leiste: absolute am unteren Rand der fixen Kopfzeile —
   gleidet beim Wegscrollen mit (statt über Text zu hängen). */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  z-index: 59;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.scroll-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--text);
  opacity: 0.25;
  transform: scaleX(0);
  transform-origin: 0 50%;
}
body.is-lesend .scroll-progress { opacity: 1; }
@media (max-height: 599px) { .scroll-progress { display: none; } }
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 10px 0 18px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.brand-mark { display: block; flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.brand-name {
  font-size: 1.1875rem;
  font-weight: 450;
  letter-spacing: -0.03em;
  text-transform: none;
}
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.hdr-cta {
  display: none;
  align-items: center;
  height: 36px;
  padding: 0 28px;
  background: #fff;
  border: 1px solid var(--ink);
  font-size: 0.9375rem;
  transition: background-color 0.2s, color 0.2s;
}
.hdr-cta:hover { background: var(--ink); color: #fff; }
@media (min-width: 640px) { .hdr-cta { display: inline-flex; } }
.nav-toggle {
  display: inline-flex !important;
  gap: 4px;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 1px solid var(--ink);
  background: #fff;
}
.nav-toggle-bar { width: 14px; height: 1px; background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  overflow-y: auto;
  padding: 120px var(--gutter) 64px;
  background: #fff;
}
.menu-inner {
  display: grid;
  gap: 40px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.menu-col .mono { margin-bottom: 18px; }
.menu-col li + li { margin-top: 6px; }
.menu-col a {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.15s;
}
.menu-col a:hover,
.menu-col a.is-active { color: var(--text-2); }
/* Soon-Produkt im Menü (z. B. KONTORA): gedimmt, Badge daneben, klickbar
   (öffnet das "In Entwicklung"-Overlay statt zu navigieren) */
.menu-soon {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.625rem);
  letter-spacing: -0.02em;
  color: var(--text-3);
  cursor: pointer;
}
.menu-soon:hover { color: var(--text-2); }
.menu-soon:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.menu-soon::after {
  content: "In Entwicklung";
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
@media (max-width: 899px) { .menu-soon::after { display: none; } }

/* ---------- Overlay "In Entwicklung" ----------
   Klick auf KONTORA im Menü: kurz laden, dann Hinweiskarte. */
.soon-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, #fff 78%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
}
.soon-overlay[hidden] { display: none; }
.soon-card {
  width: min(520px, 100%);
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}
.soon-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.soon-title { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; }
.soon-text { margin-top: 10px; max-width: 46ch; color: var(--text-2); line-height: 1.55; }
.soon-progress { position: relative; margin-top: 22px; height: 3px; border-radius: 999px; background: #ebebeb; overflow: hidden; }
.soon-progress i {
  display: block;
  height: 100%;
  width: 30%;
  border-radius: 999px;
  background: var(--text);
  animation: soon-load 1.1s var(--ease) infinite;
}
@keyframes soon-load { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.soon-card.is-done .soon-progress { opacity: 0.15; }
.soon-note { margin-top: 14px; font-size: 0.875rem; color: var(--text-3); }
.soon-actions { margin-top: 24px; display: flex; align-items: center; gap: 18px; }
.soon-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  transition: opacity 0.2s;
}
.soon-cta:hover { opacity: 0.85; }
.soon-close {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.soon-close:hover { color: var(--text); }
@media (max-width: 599px) {
  .soon-card { padding: 24px; }
  .soon-actions { flex-wrap: wrap; }
}
@media (min-width: 900px) { .menu-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ============================================================
   Startseite
   ============================================================ */
.hero-x {
  position: relative;
  display: grid;
  place-items: center;
  min-height: max(640px, 100svh);
  overflow: hidden;
  background: #0b0c0e;
  color: #fff;
}
.hero-x-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}
.hero-x::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.75));
}
.hero-x-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: 0 var(--gutter);
  margin-top: -18vh;
  text-align: center;
}
.hero-x-title {
  font-size: clamp(2.75rem, 1.2rem + 5.6vw, 6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero-x-sub {
  max-width: 44ch;
  margin: 24px auto 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.74);
}
.hero-x-note {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 0;
  right: 0;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 759px) {
  .hero-x-title { font-size: clamp(2.75rem, 2rem + 4vw, 4rem); }
}

/* ============================================================
   Trailer-Hero auf Leistungs-Unterseiten (z. B. Lokale KI-Rechner):
   Video als randloser Vollbild-Hintergrund, wie palantir.com.
   Abspann des Trailers schneidet main.js ab (Loop bei 21,8 s).
   ============================================================ */
.hero-x-page { display: block; }
.hero-x-page .hero-x-media {
  object-position: center;
  pointer-events: none;
  will-change: opacity;
}
/* Weicher Übergang zum Seiteninhalt: Der Trailer-Hero bleibt als Kulisse
   stehen (sticky), der Inhalt gleitet darüber. main.js setzt --fade (0…1)
   beim Scrollen; der Hero löst sich dabei weich auf statt hart zu enden.
   Ohne JS (/ von alten Browsern) bleibt das normale Scrollverhalten. */
@supports (position: sticky) {
  .hero-x-page {
    position: sticky;
    top: 0;
    z-index: 0;
    opacity: calc(1 - var(--fade, 0) * 0.9);
  }
  .hero-inhalt { position: relative; z-index: 1; }
}
.hero-x-page .hero-x-inner { transform: translateY(calc(var(--fade, 0) * -48px)); }
.hero-x-page .hero-x-media::-webkit-media-controls { display: none !important; }
.hero-x-page::after {
  background: linear-gradient(to top, rgba(10, 10, 14, 0.72), rgba(10, 10, 14, 0.1));
}
.hero-x-page .hero-x-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;
  max-width: none;
  margin: 0;
  padding: 0 var(--gutter);
  text-align: left;
}
.hero-x-page .hero-x-label {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}
.hero-x-page .hero-x-title {
  font-size: clamp(5rem, 16vw, 16.5rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-wrap: initial;
  color: #fff;
}
.hero-x-page .hero-x-sub {
  max-width: 30ch;
  margin: 24px 0 0;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}
.hero-x-page .hero-x-note {
  left: auto;
  right: var(--gutter);
  text-align: right;
}
@media (max-width: 759px) {
  .hero-x-page { min-height: 88svh; }
  .hero-x-page .hero-x-title { font-size: clamp(4rem, 24vw, 7.5rem); }
}

.statement { padding: clamp(6rem, 4rem + 8vw, 11rem) 0; }
.statement-text {
  max-width: 1180px;
  margin: 0 auto;
  font-size: clamp(1.875rem, 1.1rem + 3.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-align: center;
  text-wrap: balance;
}
.statement-accent { color: var(--text-3); }

.platforms { padding: 0 0 clamp(5rem, 3rem + 6vw, 9rem); }
.platforms-label { margin-bottom: 20px; }
.platform-list > li { border-top: 1px solid var(--line); }
.platform-list > li:last-child { border-bottom: 1px solid var(--line); }
.platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  padding: 22px 0 30px;
}
.platform-name {
  grid-column: 1;
  font-size: clamp(2.75rem, 1.2rem + 5.4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
  transition: color 0.2s;
}
.platform-text { grid-column: 1; font-size: 1.0625rem; color: var(--text-2); }
.platform-index { grid-column: 2; grid-row: 1; align-self: start; padding-top: 10px; }
.platform:hover .platform-name { color: var(--text-2); }

.ax-split { padding: clamp(3rem, 2rem + 4vw, 6rem) 0; background: var(--bg-alt); }
.ax-split-grid { display: grid; gap: 16px; }
.ax-split-media { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: #e7e6e2; }
.ax-split-media img { width: 100%; height: 100%; object-fit: cover; }
.ax-split-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: clamp(2.5rem, 1.5rem + 4vw, 6rem);
  background: #fff;
  text-align: center;
}
.ax-split-title { max-width: 14ch; font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.035em; }
.ax-split-text { max-width: 36ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); line-height: 1.4; }
@media (min-width: 900px) { .ax-split-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

.sectors { padding: clamp(5rem, 3rem + 6vw, 9rem) 0 clamp(3rem, 2rem + 3vw, 5rem); overflow: hidden; }
.sectors-title { max-width: 16ch; margin-bottom: 48px; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.035em; }
.sector-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 var(--gutter) 8px;
}
.sector-scroll::-webkit-scrollbar { display: none; }
.sector-track { display: flex; gap: 16px; max-width: none; }
@media (min-width: 1440px) { .sector-scroll { padding-left: calc((100vw - var(--container)) / 2 + var(--gutter)); } }
.sector {
  flex: 0 0 clamp(260px, 24vw, 340px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 24px;
  background: var(--bg-alt);
  scroll-snap-align: start;
}
.sector-name { color: var(--text); font-size: 0.8125rem; }
.sector-text { font-size: 1rem; line-height: 1.45; color: var(--text-2); }

.more { padding: 0 0 clamp(4rem, 3rem + 4vw, 7rem); }
.more-label { margin-bottom: 20px; }
.more-list > li { border-top: 1px solid var(--line); }
.more-list > li:last-child { border-bottom: 1px solid var(--line); }
.more-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 24px;
  align-items: center;
  padding: 22px 0;
}
.more-name { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); letter-spacing: -0.035em; line-height: 1.1; }
.more-text { grid-column: 1; color: var(--text-2); font-size: 1rem; }
.more-arrow { grid-column: 2; grid-row: 1 / span 2; transition: transform 0.2s; }
.more-list a:hover .more-arrow { transform: translateX(4px); }
@media (min-width: 900px) {
  .more-list a { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; }
  .more-text { grid-column: 2; }
  .more-arrow { grid-column: 3; grid-row: 1; }
}

/* Kontakt-Kacheln (alle Seiten) */
.cta-tiles { padding: clamp(3rem, 2rem + 3vw, 5rem) 0 16px; border-top: 1px solid var(--line); }
.cta-tiles-text { max-width: 48ch; margin-bottom: 28px; color: var(--text-2); font-size: 1.0625rem; }
.cta-tiles-grid { display: grid; gap: 12px; }
.cta-tile {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: clamp(140px, 10vw + 60px, 200px);
  padding: 22px 22px;
  background: #d9d9d9;
  color: var(--text);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: background-color 0.2s;
}
.cta-tile:hover { background: #cdcdcd; }
.cta-tile-dark { background: var(--ink); color: #fff; }
.cta-tile-dark:hover { background: var(--ink-hover); }
.cta-tile-arrow { width: clamp(24px, 2.4vw, 34px); height: auto; stroke-width: 1.2; transition: transform 0.2s; }
.cta-tile:hover .cta-tile-arrow { transform: translateX(4px); }
@media (min-width: 900px) { .cta-tiles-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { padding-top: clamp(3rem, 2rem + 3vw, 5rem); border-top: 0; background: #fff; font-size: 0.9375rem; }
.site-footer .brand-name { font-size: 1.125rem; }
.footer-line { color: var(--text-2); }
.site-footer .label { margin-bottom: 14px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--text-2); }
.footer-bottom { border-top: 1px solid var(--line); font-size: 0.875rem; }

/* ============================================================
   Unterseiten
   ============================================================ */
main > :first-child:not(.hero-x) { padding-top: calc(var(--header-h) + clamp(4rem, 3rem + 4vw, 7rem)); }
.page-header { padding-bottom: clamp(3rem, 2rem + 3vw, 5rem); border-bottom: 1px solid var(--line); }
.page-header-main { max-width: none; margin: 0; text-align: left; }
.page-header-main .icon-tile-lg { display: none; }
.page-header-main .h1 { max-width: 15ch; margin-top: 16px; }
.page-header-intro { max-width: 52ch; margin: 28px 0 0; }
.page-header-main .actions { justify-content: flex-start; margin-top: 36px; }

.section { padding-block: clamp(4rem, 3rem + 4vw, 7.5rem); background: var(--bg); }
.section-alt { background: var(--bg-alt); border: 0; }
.section-flush { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.section-head { display: block; max-width: none; margin: 0 0 clamp(2.5rem, 2rem + 2vw, 4rem); text-align: left; }
.section-head-main { margin: 0; max-width: none; }
.section-head .h2 { max-width: 20ch; margin: 14px 0 0; }
.section-intro { max-width: 56ch; margin: 20px 0 0; font-size: 1.125rem; color: var(--text-2); }
.section-link { margin-top: 20px; }

/* Karten: flach, grau, ohne Symbole */
.card { background: var(--bg-alt); border: 0; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.section-alt .card { background: #fff; }
.card .icon-tile { display: none; }
.card-title { font-size: 1.5rem; font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; }
.card-text { margin-top: 12px; font-size: 1rem; color: var(--text-2); }
.card-grid { gap: 12px; }

/* "Was enthalten ist": Zeilen statt Kästen */
.included-grid { gap: 0 32px; }
.card.included-item { padding: 20px 0; background: transparent; border-top: 1px solid var(--line); }
.included-text { font-size: 1.1875rem; letter-spacing: -0.015em; }

/* Leistungsübersicht */
.service-col-title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.05; }
.service-col-text { color: var(--text-2); }
.feature-num { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; }
.feature-title { font-size: 1.375rem; font-weight: 400; letter-spacing: -0.02em; }
.feature-text { color: var(--text-2); }
.timeline-dot { background: var(--ink); border-radius: 0; }

/* Fragen */
.nexis-faq { max-width: none; }
.nexis-faq-item { margin-top: 0; background: transparent; border: 0; border-top: 1px solid var(--line); }
.nexis-faq-item:last-child { border-bottom: 1px solid var(--line); }
.nexis-faq-item summary { padding: 22px 0; font-size: 1.25rem; font-weight: 400; letter-spacing: -0.02em; }
.nexis-faq-answer { padding: 0 0 24px; max-width: 64ch; color: var(--text-2); }

/* Ausführungen / Pakete */
.ap-tiers { display: grid; gap: 12px; }
@media (min-width: 1000px) { .ap-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ap-tier { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--bg-alt); }
.ap-tier.is-featured { background: var(--ink); color: #fff; }
.ap-tier.is-featured .ph,
.ap-tier.is-featured .ap-tier-desc,
.ap-tier.is-featured .ap-tier-specs li,
.ap-tier.is-featured .ap-tier-tag { color: rgba(255, 255, 255, 0.62); }
.ap-tier.is-featured .ap-tier-specs li { border-color: rgba(255, 255, 255, 0.16); }
.ap-tier.is-featured .btn-primary { background: #fff; color: var(--ink); }
.ap-tier-tag { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.ap-tier-name { margin-top: 28px; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.ap-tier-price { font-size: 1.25rem; letter-spacing: -0.02em; }
.ap-tier-media { margin: 4px 0 0; border-radius: 10px; overflow: hidden; }
.ap-tier-media img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.ap-tier-desc { color: var(--text-2); }
.ap-tier-specs { margin: 12px 0 20px; }
.ap-tier-specs li { padding: 10px 0; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); }
.ap-tier .btn { margin-top: auto; align-self: flex-start; }

/* Sonstiges */
.compare-col ul { gap: 12px; }
.tool-demo { background: var(--bg-alt); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea { border-radius: 0; background: #fff; border-color: #cfcfcf; }
.field:not(.field-check) > label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; }
.media, .media-placeholder { border-radius: 0; }
.row-badge { border-radius: 0; font-family: var(--font-mono); font-weight: 400; }
.cookie-banner-inner { border-radius: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12); }
.apollo-launcher { border-radius: 0 !important; font-family: var(--font-sans); }

/* Korrekturen Abschnittsköpfe und Leistungsraster */
.section-head-main { display: block !important; }
.section-head .section-intro { margin: 20px 0 0 !important; grid-column: auto !important; }
.service-cols { gap: 0 24px; }
.service-cols > li { border-top: 1px solid var(--line); }
.service-col { padding: 22px 0 28px; border: 0; }
.service-col-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); margin-top: 8px; }
.service-col-text { margin-top: 8px; }
@media (min-width: 900px) {
  .service-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sector-scroll { padding: 0 0 8px !important; }
.sector-track { padding: 0 var(--gutter); }
@media (min-width: 1440px) { .sector-track { padding-left: calc((100vw - var(--container)) / 2 + var(--gutter)); } }
.ax-split-media.apollo-3d { position: relative; }
.apollo-3d.is-3d img { display: none; }
.apollo-3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.apollo-3d.is-dragging .apollo-3d-canvas { cursor: grabbing; }
.apollo-3d-hint { position: absolute; left: 0; right: 0; bottom: 20px; margin: 0; text-align: center; font-family: "DM Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(30, 31, 43, 0.55); pointer-events: none; transition: opacity 0.4s; }
.apollo-3d:not(.is-3d) .apollo-3d-hint, .apollo-3d.was-dragged .apollo-3d-hint { opacity: 0; }

/* ---------- Live-Animation: KI-Agenten (Startseite) ---------- */
.ax-agents { padding: clamp(5rem, 3rem + 6vw, 9rem) 0; background: #fff; }
/* Text (links) und Animation (rechts) gleich hoch: die Grid-Zeile bestimmt die Höhe,
   der Text sitzt darin vertikal zentriert, die Bühne füllt die volle Zeilenhöhe */
.ax-agents-grid { display: grid; gap: 40px; align-items: stretch; }
.ax-agents-text { display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 900px) { .ax-agents-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.ax-agents-label { font-family: "DM Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-2); }
.ax-agents-title { margin-top: 16px; max-width: 16ch; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 400; line-height: 1.04; letter-spacing: -0.035em; }
.ax-agents-copy { margin-top: 24px; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.45; color: var(--text-2); }
/* Animation etwas kleiner zeichnen, damit Protokoll (oben) und Statuszeile (unten)
   die Kugel nicht überlappen; der weiße Canvas-Hintergrund läuft nahtlos weiter */
.ax-agents-media .agent-stage { margin: 0; border-radius: 0; width: 100%; max-width: none; height: 100%; min-height: 0; }
.ax-agents-media .agent-stage canvas { transform: scale(0.88); transform-origin: 50% 50%; }
/* Nur eine Protokollzeile, damit die Meldung die Animation nicht überlappt */
.ax-agents-media .agent-stage .agent-log li:nth-child(n+2) { display: none; }
@media (max-width: 899px) {
  .ax-agents-media .agent-stage canvas { transform: scale(0.8); }
}

/* ============================================================
   Motion (motion.js) – weiche Bewegung im Palantir-Stil
   Kurve: cubic-bezier(0.2, 0.7, 0.2, 1). Nur transform/opacity.
   Startzustände nur mit html.has-motion → ohne JS alles sichtbar.
   ============================================================ */
/* 1. Lenis: html bekommt bei aktivem Lenis ein Attribut */
html[data-lenis] { }

/* 2. Reveal beim Scrollen */
.has-motion .m-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.has-motion .m-reveal.m-in { opacity: 1; transform: none; }

/* 3. Zeilen-Maske für große Überschriften */
.m-zeile-mask { display: block; overflow: hidden; }
.m-zeile { display: block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.m-zeilen-in .m-zeile { transform: none; }

/* 4. Statement Wort für Wort */
.statement-text .m-wort { color: #c4c4c8; transition: color 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
.statement-text .m-wort.m-wort-akt { color: var(--text); }
.statement-text .m-wort.m-wort-akt.m-wort-accent-ab { color: var(--accent, #2d4ef5); }
.statement-text .m-wort[aria-hidden="true"] { }

/* 5. Header */
.has-motion #site-header { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.25s; }
.has-motion #site-header.m-header-weg { transform: translateY(-100%); }
#site-header.m-header-weg { will-change: transform; }

/* Menü-Overlay */
.mobile-menu.m-menu-offen .menu-inner { animation: m-menu-runter 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes m-menu-runter { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.mobile-menu.m-menu-offen a, .mobile-menu.m-menu-offen .menu-col p { opacity: 0; transform: translateY(8px); animation: m-menu-item 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes m-menu-item { to { opacity: 1; transform: none; } }

/* Burger → X */
.nav-toggle { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-toggle-bar { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.2s; transform-origin: center; }

/* 6. Hover-Effekte (nur Maus-Geräte) */
@media (hover: hover) {
  .btn, .cta-tile, .btn-outline, .btn-primary, .btn-secondary { position: relative; overflow: hidden; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .btn > *, .btn .icon, .cta-tile > *, .cta-tile .icon { position: relative; z-index: 1; }
  .btn::before, .cta-tile::before {
    content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0.12;
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .btn:hover::before, .cta-tile:hover::before { transform: scaleX(1); }
  .btn .icon-arrow, .cta-tile-arrow { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .btn:hover .icon-arrow, .cta-tile:hover .cta-tile-arrow { transform: translateX(4px); }

  .platform, .service-col, .more-list li { transition: background 0.3s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .platform:hover, .service-col:hover, .more-list li:hover { background: #efefef; }
  .platform-name, .service-col .name, .more-name { transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); display: inline-block; }
  .platform:hover .platform-name, .service-col:hover .name, .more-list li:hover .more-name { transform: translateX(8px); }
  .more-arrow { opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .more-list li:hover .more-arrow { opacity: 1; transform: none; }

  .project-card, .sector, .price, .tier { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s; }
  .project-card:hover, .sector:hover, .price:hover, .tier:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); }
  .project-card .media img, .sector img, .tier img { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .project-card:hover .media img, .sector:hover img, .tier:hover img { transform: scale(1.04); }

  .text-link { position: relative; }
  .text-link > span:last-child, .text-link span { transition: transform 0.3s; }
  .text-link::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .text-link:hover::after { transform: scaleX(1); }
}

/* 6b. Sektoren-Scroller: Ziehen + Pfeil-Buttons */
.sector-nav { position: absolute; top: -54px; right: 0; display: flex; gap: 8px; z-index: 2; }
.sector-nav button {
  width: 44px; height: 44px; border: 1px solid var(--line); background: var(--bg);
  display: grid; place-items: center; cursor: pointer; transition: background 0.25s, border-color 0.25s;
}
.sector-nav button:hover { background: var(--bg-alt); border-color: var(--text); }
.sector-nav svg { stroke: currentColor; }
.sector-scroll.is-drag { cursor: grabbing; scroll-behavior: auto; user-select: none; }
@media (hover: none) { .sector-nav { display: none; } }

/* 7. Parallax + weiche Bilder */
.m-parallax { will-change: transform; transition: none; }
figure, .ax-split-media, .media, .platform-media { overflow: hidden; }
.m-bild, .m-bild:not(.m-bild-in) img { transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.has-motion img.m-bild:not(.m-bild-in) { opacity: 0; }
img.m-bild-in { opacity: 1; }

/* 8a. Feature-Nummern */
.m-num-in { opacity: 1; transform: none; }
.feature-num { transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.has-motion .feature-num:not(.m-num-in) { opacity: 0.35; }

/* 8b. FAQ */
details .icon-chevron { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
details[open] > summary .icon-chevron, details.m-faq-offen .icon-chevron { transform: rotate(180deg); }
details { scroll-margin-top: 90px; }

/* 8c. Seitenwechsel */
.m-seite-laeuft main, .m-seite-laeuft .site-header, .m-seite-laeuft .site-footer { transition: opacity 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.has-motion:not(.m-seite-in) main { opacity: 0; }
html.m-seite-in main { opacity: 1; }

/* 8d. Formularfelder */
.field input:focus, .field textarea:focus { border-color: rgba(11, 12, 14, 0.45); transition: border-color 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
.field label { transition: color 0.3s; }
.field:focus-within label { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .has-motion .m-reveal, .has-motion img.m-bild, .m-zeile, #site-header, .statement-text .m-wort { transition: none !important; transform: none !important; opacity: 1 !important; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { transition: none; }
}

/* ============================================================
   Scramble (scramble.js) – Hero-Headline Decode-Effekt
   ============================================================ */
[data-scramble] .scr-word { display: inline-block; white-space: nowrap; }
[data-scramble] .scr-ch { display: inline-block; text-align: center; transition: color 0.2s; }
[data-scramble].scr-run .scr-ch:not(.is-set) { color: rgba(255, 255, 255, 0.55); }
.js [data-scramble]:not(.scr-run):not(.scr-done) { opacity: 0; }
.scr-after { transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .hero-x:has([data-scramble]:not(.scr-done)) .scr-after { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { .scr-after { transition: none; } }
