/* ============================================================
   groundzero | AI Operating Systems & Prozessautomatisierung
   Designsystem:
   - Theme: hell, gelockt (weißer Grund, fast-schwarze Schrift)
   - Ein Akzent: Kobaltblau, überall identisch eingesetzt
   - Radius-System: durchgehend scharf (0), editorialer Look
   - Schrift: Geist (variabel 400-700), lokal gehostet (DSGVO)
   ============================================================ */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/geist-mono-latin.woff2') format('woff2');
}

:root {
  --paper: #fdfdfd;
  --ink: #101014;
  --muted: #55555c;
  --line: #e8e8ea;
  --accent: #2b45c4;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --night: #0e0e10;
  --night-elevated: #16161a;
  --night-text: #f4f4f0;
  --night-muted: #a6a6ad;
  --night-line: #2a2a2f;
  --max: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Anker-Sprünge landen unterhalb der fixierten Navigation */
main section[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

a { color: inherit; }

/* Kein grauer Tap-Blitz auf Touch-Geräten */
a, button, summary { -webkit-tap-highlight-color: transparent; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ============ Buttons (ein Label pro Intent) ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-light {
  background: var(--night-text);
  color: var(--night);
}
.btn-light:hover { background: #fff; }
.btn-light[disabled] { opacity: 0.6; cursor: wait; }

/* Hero-CTA: Kobalt-Verlauf, Lichtkegel folgt dem Cursor (nur der eine Button im Hero).
   Die Gruppierung mit :hover hält den Verlauf auch im Hover-Zustand
   (überschreibt das einfarbige Hover von .btn-primary). */
.btn-spotlight,
.btn-spotlight:hover {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(122, 146, 255, 0.45);
  background: linear-gradient(135deg, #3a55d9 0%, #22349b 100%);
  color: #fff;
}
.btn-spotlight:hover { border-color: rgba(154, 173, 255, 0.75); }
.btn-spotlight::before {
  content: "";
  position: absolute;
  inset: -1px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  background: radial-gradient(
    110px circle at var(--spot-x, 50%) var(--spot-y, 45%),
    rgba(154, 173, 255, 0.5),
    transparent 72%
  );
  pointer-events: none;
}
.btn-spotlight:hover::before,
.btn-spotlight:focus-visible::before { opacity: 1; }
.btn-spotlight > span { position: relative; z-index: 1; }

/* ============ Navigation ============ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(253, 253, 251, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 68px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.btn-nav { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

#nav-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

/* ============ Hero (zentriert, Feld als Bühne dahinter) ============ */

.hero {
  position: relative;
  min-height: 100dvh;
  padding: 68px 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-field {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(43, 69, 196, 0.05), transparent 60%),
    var(--paper);
}

/* Weicher Kern, damit die Schrift über dem Feld ruhig steht */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 62% 58% at 50% 46%,
    var(--paper) 32%,
    rgba(253, 253, 253, 0.82) 58%,
    rgba(253, 253, 253, 0) 82%
  );
  pointer-events: none;
}

.hero-copy {
  position: relative;
  max-width: 780px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* Bewusster Zweizeiler auf Desktop: jede Zeile eine Sinneinheit,
   dritter Satz im Akzent. Auf Mobile bricht der Text natürlich. */
.hero h1 {
  font-size: clamp(2.3rem, 3.6vw, 3.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  max-width: 34ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Benefit-Pills unter den CTAs (rein informativ, nicht klickbar).
   Bewusste Radius-Ausnahme: weiche Form für emotionale Nutzen.
   Halbtransparente Akzentfläche über dem Feld. */
.hero-pills {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(43, 69, 196, 0.07);
  border: 1px solid rgba(43, 69, 196, 0.22);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
}
.hero-pills svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Heartbeat-Puls: alle drei Pills pulsieren gleichzeitig in regelmäßigem Abstand */
@keyframes pill-heartbeat {
  0% {
    box-shadow: 0 0 0 0 rgba(43, 69, 196, 0.28);
    transform: scale(1);
  }
  18% {
    box-shadow: 0 0 0 7px rgba(43, 69, 196, 0);
    transform: scale(1.03);
  }
  36%, 100% {
    box-shadow: 0 0 0 0 rgba(43, 69, 196, 0);
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-pills li { animation: pill-heartbeat 3.6s ease-out infinite; }
}

.field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

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

/* Verhindert hässliche Umbrüche in Bindestrich-Wörtern (DSGVO-konform) */
.nowrap { white-space: nowrap; }

/* Scroll-Hinweis am Hero-Ende: der Akzent fließt durch die Linie nach
   unten, gleiche Formensprache wie die Fortschrittslinie im Vorgehen.
   Nur auf großen Screens mit genug Höhe, sonst wird es eng. */
.hero-scroll {
  display: none;
  position: absolute;
  bottom: 2.25rem;
  left: calc(50% - 0.5px);
  width: 1px;
  height: 44px;
  background: var(--line);
  overflow: hidden;
}
@media (min-width: 901px) and (min-height: 760px) {
  .hero-scroll { display: block; }
}
.hero-scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(-101%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll::after { animation: scroll-cue 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
}
@keyframes scroll-cue {
  0% { transform: translateY(-101%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(101%); }
}

/* ============ Statement ============ */

.statement {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9rem 1.5rem 8rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}
.statement-line {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 26ch;
}
.statement-body {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
}

.statement-punch {
  margin-top: 1.75rem;
  font-size: 1.25rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.45;
  max-width: 52ch;
}

/* Kundenstimme neben dem Statement. Kompakte Typo, damit die Karte
   trotz langem Zitat komplett in einen Laptop-Viewport passt. */
.statement-card {
  margin: 0;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(43, 69, 196, 0.06), transparent 55%),
    var(--paper);
  padding: 2rem;
}
.card-marker {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  margin-bottom: 1.25rem;
}
.statement-card blockquote { margin: 0; }
.statement-card blockquote p {
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.statement-card figcaption {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.card-name { font-weight: 600; font-size: 0.95rem; }
.card-role { font-size: 0.85rem; color: var(--muted); }
.card-todo { color: var(--accent); }

/* Die Karte tritt kurz nach dem Text von rechts ein und pulsiert dann
   als Ganzes im selben Herzschlag wie die Hero-Pills (ein Bewegungsmotiv) */
@keyframes card-heartbeat {
  0% { box-shadow: 0 0 0 0 rgba(43, 69, 196, 0.16); }
  18% { box-shadow: 0 0 0 10px rgba(43, 69, 196, 0); }
  36%, 100% { box-shadow: 0 0 0 0 rgba(43, 69, 196, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .statement-card.reveal {
    /* 20px statt mehr: bleibt auch auf 375px-Viewports innerhalb des Bildschirms */
    transform: translateX(20px);
    transition-delay: 0.15s;
  }
  .statement-card.reveal.in { transform: none; }
  .statement-card { animation: card-heartbeat 3.6s ease-out infinite; }
}

/* Scroll-Scrubbing, wo der Browser es kann: die Karte fährt an den
   Scroll-Fortschritt gekoppelt von rechts ein (wie die Linie im
   Vorgehen den Fortschritt zeigt). Zurückscrollen fährt sie wieder
   raus. Browser ohne view()-Timeline behalten das Einblenden oben. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement { overflow-x: clip; }
    .statement-card.reveal {
      transition: none;
      transform: none;
      animation:
        card-slide-in linear both,
        card-heartbeat 3.6s ease-out infinite;
      animation-timeline: view(), auto;
      animation-range: entry 0% cover 40%, normal;
    }
  }
}
@keyframes card-slide-in {
  from {
    opacity: 0;
    transform: translateX(min(30vw, 320px));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Dezenter Text-CTA für den Seitenverlauf */
.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-weight: 550;
  color: var(--accent);
  text-decoration: none;
}
.text-cta::after {
  content: "\2192";
  transition: transform 0.25s var(--ease);
}
.text-cta:hover::after { transform: translateX(4px); }

/* ============ Leistungen ============ */

.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 9rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
}

.services-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.service h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.service p { color: var(--muted); }

/* Hauptleistung: dunkles Panel, Feld nur als leise Textur dahinter */
.service-featured {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 85% 0%, rgba(43, 69, 196, 0.2), transparent 55%),
    var(--night);
  color: var(--night-text);
}

.service-bg { position: absolute; inset: 0; }

.service-content {
  position: relative;
  padding: 2.5rem;
}
.service-content > p { color: var(--night-muted); max-width: 52ch; }

.service-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.service-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
  font-size: 0.98rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.75rem;
  height: 1px;
  background: #7a92ff; /* helle Akzentstufe, gleiche wie im dunklen Feld */
}

.service-secondary {
  background: #f4f4f2;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-secondary .glyph { margin-bottom: 1rem; }

/* Glyph: das Angebot in einer Zeile Geometrie (7 Tools -> 1 System) */
.glyph {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.glyph-cell {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(16, 16, 20, 0.35);
}
.service-featured .glyph-cell { border-color: rgba(244, 244, 240, 0.4); }
.glyph-cell-solid {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-color: transparent;
}
.service-featured .glyph-cell-solid { background: #7a92ff; }
.glyph-arrow {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--night-muted);
  margin: 0 0.25rem;
}

/* ============ Offer: Kostenlose Prozessanalyse ============ */

.offer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 9rem;
}

.offer-panel {
  border: 1px solid var(--line);
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(43, 69, 196, 0.05), transparent 55%),
    var(--paper);
  padding: 3.5rem;
}

.offer-intro {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 56ch;
}

.offer-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}

.offer-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.offer-item p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 44ch;
}

.offer-marker {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  margin-bottom: 1rem;
}

.offer-guarantee {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-weight: 500;
  max-width: 56ch;
}

.offer .btn { margin-top: 2rem; }

/* ============ FAQ ============ */

.faq {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.faq-list { margin-top: 3rem; }

.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.5rem 3rem 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

/* Sanftes Auf- und Zuklappen, wo der Browser es kann; sonst wie bisher sofort */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq-item { interpolate-size: allow-keywords; }
    .faq-item::details-content {
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition:
        block-size 0.35s var(--ease),
        opacity 0.3s var(--ease),
        content-visibility 0.35s allow-discrete;
    }
    .faq-item[open]::details-content {
      block-size: auto;
      opacity: 1;
    }
  }
}

.faq-item p {
  padding: 0 3rem 1.75rem 0;
  color: var(--muted);
  max-width: 68ch;
}

.faq-cta {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  color: var(--muted);
}
.faq-cta .text-cta { margin-top: 0; margin-left: 0.35rem; }

/* ============ Vorgehen ============ */

.process {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 9rem;
}

.process .section-title { max-width: 20ch; }

.process-steps {
  position: relative;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
}

/* Vertikale Fortschrittslinie zwischen Zahl und Text */
.process-steps::before,
.process-steps::after {
  content: "";
  position: absolute;
  left: 150px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
}
.process-steps::before { background: var(--line); }
.process-steps::after {
  background: var(--accent);
  transform: scaleY(var(--progress, 1));
  transform-origin: top;
}

.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 4.5rem;
  padding: 1.75rem 0;
}

.step-num {
  font-family: 'Geist', -apple-system, sans-serif;
  font-size: clamp(2.4rem, 3.2vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.step-body h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.step-body p { color: var(--muted); max-width: 58ch; }

/* Scroll-Pinning: Sektion bleibt stehen, bis die Linie durchgelaufen ist.
   Nur Desktop mit genug Fensterhöhe und ohne reduzierte Bewegung; sonst
   statisch komplett. Die Abstände skalieren mit der Viewport-Höhe, damit
   alle vier Schritte während des Pinnings vollständig im Bild stehen. */
@media (min-width: 901px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .process {
    height: 240vh;
    padding-bottom: 0;
    margin-bottom: 4rem;
  }
  .process-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 0 1rem;
  }
  .process .eyebrow { margin-bottom: 0.75rem; }
  .process .section-title { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
  .process-steps { margin-top: clamp(1.25rem, 4vh, 3.5rem); }
  .step { padding: clamp(0.75rem, 2.2vh, 1.6rem) 0; }
  .step-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
  .step-body p { font-size: 0.95rem; }
  .process-steps::after { transform: scaleY(var(--progress, 0)); }
  .step {
    opacity: 0.3;
    transition: opacity 0.45s var(--ease);
  }
  .step.active { opacity: 1; }
  .step-num {
    color: var(--muted);
    transition: color 0.45s var(--ease);
  }
  .step.active .step-num { color: var(--accent); }
}

/* ============ Prinzipien ============ */

.principles {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 10rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.principles-head { position: sticky; top: 108px; }
.principles-head p { margin-top: 1.25rem; color: var(--muted); max-width: 32ch; }

.principles-list { display: flex; flex-direction: column; }

.principle { padding: 2.25rem 0; }
.principle + .principle { border-top: 1px solid var(--line); }
.principle h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.principle p { color: var(--muted); max-width: 52ch; }

/* ============ Gründer ============ */

.founder {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 9rem;
}

.founder-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4.5rem;
  align-items: center;
}

/* Platzhalter-Rahmen; das echte Foto ersetzt den Inhalt als <img> */
.founder-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(43, 69, 196, 0.06), transparent 55%),
    #f4f4f2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo-note { font-size: 0.9rem; font-weight: 500; }

.founder-copy .section-title { max-width: 22ch; }
.founder-body { margin-top: 1.5rem; color: var(--muted); max-width: 56ch; }

.founder-sig {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.founder-name { font-weight: 600; font-size: 0.95rem; }
.founder-role { font-size: 0.85rem; color: var(--muted); }

/* ============ Kontakt (dunkler Schluss-Block, ein bewusster Themenwechsel) ============ */

/* Weicher Übergang FAQ -> Kontakt: opake, kühle Grautöne entlang einer
   Smoothstep-Kurve (kein Alpha-Weiß über Schwarz, das ergibt Matsch und
   Banding). Der Verlauf ist 260px hoch und endet exakt im Sektionston,
   darunter übernehmen Nachtgrund und Kobalt-Glow. */
/* Fokusring auf dunklem Grund: helle Akzentstufe statt Kobalt (Kontrast) */
.contact :focus-visible { outline-color: #7a92ff; }

.contact {
  position: relative;
  background:
    linear-gradient(
      to bottom,
      #fdfdfd 0%,
      #f2f2f3 12.5%,
      #d7d7d9 25%,
      #b0b0b4 37.5%,
      #848489 50%,
      #58585d 62.5%,
      #323236 75%,
      #17171a 87.5%,
      #0e0e10 100%
    ) top center / 100% 260px no-repeat,
    radial-gradient(100% 80% at 50% 100%, rgba(43, 69, 196, 0.14), transparent 60%),
    var(--night);
  color: var(--night-text);
  overflow: hidden;
}

.contact-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Punkte blenden erst unterhalb der hellen Zone ein */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0px, transparent 90px, #000 300px);
  mask-image: linear-gradient(to bottom, transparent 0px, transparent 90px, #000 300px);
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(260px + 2.5rem) 1.5rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
/* Grid-Kinder dürfen schrumpfen; sonst zwingt der nowrap-Submit-Button
   die Spalte auf schmalen Viewports breiter als den Bildschirm */
.contact-inner > * { min-width: 0; }

.contact-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.contact-copy > p {
  margin-top: 1.5rem;
  color: var(--night-muted);
  max-width: 46ch;
}
.contact-note {
  font-size: 0.95rem;
  color: var(--night-text);
}


/* Formular */

.lead-form {
  background: var(--night-elevated);
  border: 1px solid var(--night-line);
  padding: 2.5rem;
}

.field { margin-bottom: 1.5rem; }

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.optional { color: var(--night-muted); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  background: var(--night);
  border: 1px solid var(--night-line);
  color: var(--night-text);
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 110px; }

.field-error {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #ff9d9d;
}
.field.invalid .field-error { display: block; }
.field.invalid input { border-color: #c05a5a; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.lead-form .btn { width: 100%; padding: 1rem; font-size: 1rem; }

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status.success { color: #9be0a8; }
.form-status.error { color: #ff9d9d; }

.form-privacy {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--night-muted);
}
.form-privacy a { color: var(--night-text); }

/* ============ Footer ============ */

.footer { position: relative; border-top: 1px solid var(--night-line); }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.wordmark-footer { color: var(--night-text); }

.footer-links { display: flex; gap: 1.75rem; }
.footer-links a {
  font-size: 0.9rem;
  color: var(--night-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--night-text); }

.footer-copy {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--night-muted);
}

/* ============ Scroll-Reveal (Hierarchie: Inhalte treten der Reihe nach ein) ============ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ============ Mobile ============ */

@media (max-width: 900px) {
  .nav-links { display: none; }

  .nav-inner { padding: 0 1rem; gap: 1rem; }
  .wordmark { font-size: 1.05rem; }
  .btn-nav { padding: 0.7rem 0.9rem; font-size: 0.85rem; }

  /* Touch-Komfort: größere Trefferfläche für Text-CTAs */
  .text-cta { padding: 0.5rem 0; }

  .hero { padding: 68px 1.25rem 2rem; }
  .hero h1 .h1-break { display: none; }
  .hero-sub { margin-top: 1.25rem; font-size: 1.05rem; }

  /* Gestapelte CTAs in einheitlicher Breite statt zwei ungleicher Blöcke */
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; max-width: 22rem; }
  .hero-pills { margin-top: 1.75rem; gap: 0.5rem; }
  .hero-pills li { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
  .hero-scrim {
    background: radial-gradient(
      ellipse 90% 62% at 50% 46%,
      var(--paper) 30%,
      rgba(253, 253, 253, 0.85) 60%,
      rgba(253, 253, 253, 0) 85%
    );
  }

  .statement { padding: 6rem 1.5rem 5rem; grid-template-columns: 1fr; gap: 3rem; }
  .statement-card { padding: 1.75rem; }

  .services { padding-bottom: 6rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-content, .service-secondary { padding: 1.75rem; }

  .offer { padding-bottom: 6rem; }
  .offer-panel { padding: 1.75rem; }
  .offer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .faq { padding-bottom: 2.5rem; }
  .faq-item summary { padding-right: 2rem; }
  .faq-item p { padding-right: 0; }

  .process { padding-bottom: 6rem; }
  .process-steps::before, .process-steps::after { display: none; }
  .step { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.5rem 0; }
  .step-num { font-size: 2rem; }

  .principles {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 7rem;
  }
  .principles-head { position: static; }

  .founder { padding-bottom: 6rem; }
  .founder-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .founder-photo { max-width: 420px; }

  .contact {
    background:
      linear-gradient(
        to bottom,
        #fdfdfd 0%,
        #f2f2f3 12.5%,
        #d7d7d9 25%,
        #b0b0b4 37.5%,
        #848489 50%,
        #58585d 62.5%,
        #323236 75%,
        #17171a 87.5%,
        #0e0e10 100%
      ) top center / 100% 150px no-repeat,
      radial-gradient(100% 80% at 50% 100%, rgba(43, 69, 196, 0.14), transparent 60%),
      var(--night);
  }
  .contact-field {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0px, transparent 60px, #000 180px);
    mask-image: linear-gradient(to bottom, transparent 0px, transparent 60px, #000 180px);
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: calc(150px + 1.5rem) 1.5rem 4.5rem;
  }
  .lead-form { padding: 1.75rem; }
  /* Langer Submit-Text darf umbrechen statt die Spalte zu sprengen */
  .lead-form .btn { white-space: normal; }

  .footer-copy { margin-left: 0; }
}
