/* ============================================================
   AEOmedia — Answer Engine Optimization für den DACH-Raum
   v2 — Award-Level-Pass
   Palette:  paper #F4F5F2 · ink #0C1015 · accent #2233E0
   Type:     Archivo (display, wdth-Achse) · Instrument Sans · IBM Plex Mono
   Motion:   Kinetic hero, Marquee, Counter, Mask-Reveals, Magnetic CTAs,
             Custom Cursor, Aurora, Grain — alles reduced-motion-sicher
   ============================================================ */

:root {
  --paper: #F4F5F2;
  --card: #FFFFFF;
  --ink: #0C1015;
  --ink-soft: #4A5058;
  --ink-faint: #7A8088;
  --accent: #2233E0;
  --accent-deep: #1721A8;
  --accent-ink: #101563;
  --accent-glow: rgba(34, 51, 224, 0.55);
  --wash: #E9EBFB;
  --wash-strong: #D9DDF9;
  --line: #E2E4DF;
  --line-strong: #C9CCC5;
  --dark: #0E1116;
  --dark-2: #171B22;
  --dark-line: #262B34;
  --green: #0E8A4D;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

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

/* ---------- Grain overlay ---------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 300;
  pointer-events: none;
}

/* ---------- Custom cursor (nur pointer:fine) ---------- */

.cursor-dot, .cursor-ring {
  display: none;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 400;
  border-radius: 50%;
  will-change: transform;
}

@media (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
  .cursor-dot {
    width: 7px; height: 7px;
    background: var(--accent);
    transform: translate(-50%, -50%);
  }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1.5px solid var(--accent-glow);
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
                border-color 0.25s ease, background 0.25s ease;
  }
  .cursor-ring.hovering {
    width: 58px; height: 58px;
    background: rgba(34, 51, 224, 0.08);
    border-color: var(--accent);
  }
  .cursor-ring.on-dark { border-color: rgba(255,255,255,0.6); }
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.024em;
  color: var(--ink);
}

.h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 760;
  font-variation-settings: "wdth" 91;
}

.h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.85rem);
  font-weight: 730;
  font-variation-settings: "wdth" 93;
  max-width: 22ch;
}

.h3 {
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
  transform-origin: left;
}

.reveal.in .eyebrow::before,
.hero .eyebrow::before {
  animation: growline 0.7s var(--ease-out) both;
}
@keyframes growline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.lead {
  font-size: 1.16rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

.mark {
  background: linear-gradient(180deg, transparent 58%, var(--wash-strong) 58%);
  padding: 0 0.08em;
  border-radius: 2px;
}

/* Rotierendes Wort im Hero */
.flip {
  display: inline-grid;
  vertical-align: baseline;
  color: var(--accent);
  position: relative;
}
.flip > span {
  grid-area: 1 / 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.flip > span.on {
  opacity: 1;
  transform: translateY(0);
}
.flip > span.off {
  opacity: 0;
  transform: translateY(-0.55em);
}
.flip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.06em;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Layout primitives ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }

.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head .lead { margin-top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  padding: 0.98rem 1.75rem;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 22px rgba(34, 51, 224, 0.30);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.6s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(110%); }
.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 12px 30px rgba(34, 51, 224, 0.38);
}

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

.btn-light {
  background: #fff;
  color: var(--accent-deep);
}
.btn-light:hover { background: var(--wash); color: var(--accent-deep); }

.btn-arrow::after {
  content: "→";
  font-weight: 500;
  transition: transform 0.2s var(--ease-out);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 245, 242, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 8px 30px rgba(12, 16, 21, 0.06); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
}
.logo:hover { color: var(--ink); }
.logo em { font-style: normal; color: var(--accent); }
.logo-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-left: 3px;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav .btn { padding: 0.62rem 1.3rem; font-size: 0.94rem; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}

/* Aurora hinter dem Simulator */
.hero::before {
  content: "";
  position: absolute;
  top: 8%; right: -8%;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(34,51,224,0.16), rgba(34,51,224,0.05) 45%, transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  animation: aurora 9s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes aurora {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, 36px) scale(1.12); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero .h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2.1rem; }

/* Hero-Eingangssequenz */
.hero-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  animation: hero-in 0.85s var(--ease-out) forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.15s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.28s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.40s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.50s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

.sim-entrance {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: sim-in 1s var(--ease-out) 0.35s forwards;
}
@keyframes sim-in { to { opacity: 1; transform: none; } }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-note span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
  padding: 0.9rem 0;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 90;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee-item::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.marquee-item.alt { color: var(--accent); }

/* ---------- Answer simulator (Signature) ---------- */

.sim {
  background: var(--dark);
  border-radius: var(--radius);
  border: 1px solid var(--dark-line);
  box-shadow: 0 40px 90px rgba(12, 16, 21, 0.28), 0 0 0 1px rgba(34,51,224,0.10);
  overflow: hidden;
  color: #E8EAEE;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.3s var(--ease-out);
}

.sim-tabs {
  display: flex;
  border-bottom: 1px solid var(--dark-line);
  background: var(--dark-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.sim-tabs::-webkit-scrollbar { display: none; }

.sim-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.78rem 1.1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8B929C;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.sim-tab:hover { color: #E8EAEE; }
.sim-tab.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.sim-body {
  padding: 1.5rem 1.5rem 1.6rem;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sim-q {
  align-self: flex-end;
  max-width: 88%;
  background: #232936;
  border-radius: 14px 14px 4px 14px;
  padding: 0.7rem 1rem;
  font-size: 0.94rem;
  line-height: 1.5;
}

.sim-a { display: flex; gap: 0.8rem; max-width: 100%; }

.sim-avatar {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
  box-shadow: 0 0 18px rgba(34,51,224,0.5);
}

.sim-a-text {
  font-size: 0.94rem;
  line-height: 1.62;
  color: #C9CDD4;
}
.sim-a-text strong { color: #fff; font-weight: 650; }

.sim-cursor {
  display: inline-block;
  width: 8px; height: 1.05em;
  background: #E8EAEE;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.sim-cite {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  background: rgba(34, 51, 224, 0.28);
  color: #AEB6F5;
  border-radius: 5px;
  padding: 0.06rem 0.4rem;
  margin: 0 0.15rem;
  vertical-align: 0.12em;
  border: 1px solid rgba(34, 51, 224, 0.5);
}

.sim-foot {
  border-top: 1px solid var(--dark-line);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sim-foot-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #6B727C;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sim-replay {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: none;
  border: 1px solid var(--dark-line);
  color: #AEB2BA;
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.sim-replay:hover { border-color: #AEB2BA; color: #fff; }

/* ---------- Stat strip ---------- */

.stats { background: var(--card); border-bottom: 1px solid var(--line); }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }

.stat {
  padding: 2.3rem 2rem;
  border-left: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stat:first-child { border-left: none; }
.stat::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}
.stat.in::before { transform: scaleX(1); }

.stat-num {
  font-family: var(--font-display);
  font-weight: 790;
  font-variation-settings: "wdth" 87;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-num em { font-style: normal; color: var(--accent); }

.stat-label {
  margin-top: 0.55rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ---------- Problem / Warum jetzt ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split-sticky { position: sticky; top: 100px; }

.prob-list { display: flex; flex-direction: column; gap: 1rem; }

.prob-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.prob-card:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: -6px 10px 30px rgba(12,16,21,0.06);
}
.prob-card .h3 { margin-bottom: 0.5rem; }
.prob-card p { color: var(--ink-soft); font-size: 0.99rem; }

/* ---------- Definition block ---------- */

.definition {
  background: var(--wash);
  border: 1px solid var(--wash-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  position: relative;
  overflow: hidden;
}
.definition::after {
  content: "„";
  position: absolute;
  top: -0.35em; right: 0.05em;
  font-family: var(--font-display);
  font-size: 11rem;
  font-weight: 800;
  color: rgba(34, 51, 224, 0.08);
  line-height: 1;
  pointer-events: none;
}

.definition-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.9rem;
  display: block;
}

.definition p {
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--accent-ink);
  max-width: 72ch;
  position: relative;
}
.definition p + p { margin-top: 0.8rem; }
.definition strong { font-weight: 650; }

/* ---------- Comparison table ---------- */

.compare {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.99rem;
}

.compare th, .compare td {
  padding: 1.05rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: none; }

.compare tbody tr { transition: background 0.15s ease; }
.compare tbody tr:hover { background: var(--paper); }

.compare thead th {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.02rem;
  background: var(--paper);
}

.compare thead th.col-aeo { background: var(--accent); color: #fff; }

.compare tbody th {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-family: var(--font-mono);
  width: 26%;
}

.compare td.col-aeo {
  background: var(--wash);
  font-weight: 600;
  color: var(--accent-ink);
}
.compare tbody tr:hover td.col-aeo { background: var(--wash-strong); }

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.step:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(12,16,21,0.08);
}
.step::after {
  content: attr(data-big);
  position: absolute;
  right: 0.4rem; bottom: -1.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 7rem;
  line-height: 1;
  color: rgba(34, 51, 224, 0.06);
  letter-spacing: -0.05em;
  pointer-events: none;
  transition: color 0.25s ease, transform 0.4s var(--ease-out);
}
.step:hover::after { color: rgba(34, 51, 224, 0.13); transform: translateY(-6px); }

.step-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.step .h3 { margin-bottom: 0.6rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; position: relative; }

.step-when {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.service {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  position: relative;
}
.service::before {
  content: "";
  position: absolute;
  top: 0; left: 1.6rem; right: 1.6rem;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0);
  transition: transform 0.35s var(--ease-out);
}
.service:hover::before { transform: scaleX(1); }
.service:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(12, 16, 21, 0.09);
}

.service .h3 { margin-bottom: 0.9rem; }

.service ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.service li {
  font-size: 0.94rem;
  color: var(--ink-soft);
  padding-left: 1.25rem;
  position: relative;
}
.service li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

/* ---------- Case studies ---------- */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.case {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.case:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(12,16,21,0.10);
}

.case-head {
  padding: 1.4rem 1.6rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.45rem;
}

.case-head .h3 { font-size: 1.12rem; }

.case-body { padding: 1.4rem 1.6rem 1.6rem; flex: 1; display: flex; flex-direction: column; }

.case-delta {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.case-delta-num {
  font-family: var(--font-display);
  font-weight: 790;
  font-variation-settings: "wdth" 87;
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.case-delta-label {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.case-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
}
.case-meta b { color: var(--ink); font-weight: 600; }

.case-quote {
  margin-top: auto;
  font-size: 0.94rem;
  color: var(--ink-soft);
  font-style: italic;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

/* ---------- Risk calculator ---------- */

.risk {
  background: var(--dark);
  border-radius: var(--radius);
  color: #E8EAEE;
  padding: clamp(2rem, 5vw, 3.2rem);
  position: relative;
  overflow: hidden;
}
.risk::before {
  content: "";
  position: absolute;
  top: -180px; right: -180px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,51,224,0.35), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
  animation: aurora 8s ease-in-out infinite alternate;
}

.risk .eyebrow { color: #AEB6F5; }
.risk .eyebrow::before { background: #AEB6F5; }
.risk .h2 { color: #fff; }
.risk .lead { color: #A6ACB5; }

.risk-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-top: 2.2rem;
  position: relative;
}

.risk-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #A6ACB5;
  margin-bottom: 0.8rem;
}
.risk-slider-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 100px;
  background: #2B313C;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 3px 14px rgba(34,51,224,0.6);
  cursor: grab;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  cursor: grab;
}

.risk-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: #8B929C;
  max-width: 42ch;
}

.risk-outputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.risk-out {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  transition: border-color 0.2s ease;
}
.risk-out:hover { border-color: rgba(34,51,224,0.6); }
.risk-out.wide { grid-column: 1 / -1; border-color: rgba(34,51,224,0.55); background: rgba(34,51,224,0.13); }

.risk-out-num {
  font-family: var(--font-display);
  font-weight: 790;
  font-variation-settings: "wdth" 87;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.risk-out.wide .risk-out-num { color: #C3C9F8; }

.risk-out-label { margin-top: 0.4rem; font-size: 0.86rem; color: #A6ACB5; }

.risk-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; position: relative; }

/* ---------- Testimonials ---------- */

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: border-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.quote:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(12,16,21,0.07);
}

.quote p { font-size: 0.99rem; color: var(--ink); line-height: 1.6; }
.quote p::before { content: "„"; color: var(--accent); font-weight: 700; }
.quote p::after { content: "“"; color: var(--accent); font-weight: 700; }

.quote-who { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }

.quote-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.quote-name { font-weight: 600; font-size: 0.93rem; line-height: 1.25; }
.quote-role { font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- About ---------- */

.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}

.about-facts { display: flex; flex-direction: column; gap: 1.1rem; }

.about-fact {
  border-left: 3px solid var(--wash-strong);
  padding-left: 1.1rem;
  transition: border-color 0.2s ease;
}
.about-fact:hover { border-color: var(--accent); }
.about-fact b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  display: block;
}
.about-fact span { font-size: 0.9rem; color: var(--ink-soft); }

.press-line {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
}
.press-line a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.press-line a:hover { color: var(--accent); }

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover, .faq-item[open] { border-color: var(--accent); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.25s var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-a {
  padding: 0 1.5rem 1.4rem;
  color: var(--ink-soft);
  font-size: 0.99rem;
  max-width: 68ch;
}
.faq-item .faq-a p + p { margin-top: 0.7rem; }

/* ---------- Final CTA / Calendly ---------- */

.cta-final {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
  overflow: hidden;
  position: relative;
}

.cta-final::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
  animation: aurora 10s ease-in-out infinite alternate;
}
.cta-final::after {
  content: "";
  position: absolute;
  left: -80px; bottom: -140px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.cta-final .h2 { color: #fff; max-width: 18ch; }
.cta-final p { color: rgba(255,255,255,0.88); margin-top: 0.9rem; max-width: 46ch; }

.cta-final-actions { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; position: relative; z-index: 1; }
.cta-final-mail { font-family: var(--font-mono); font-size: 0.85rem; color: rgba(255,255,255,0.8); }
.cta-final-mail a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.calendly-inline {
  margin-top: 2.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 700px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 0;
  background: var(--card);
  overflow: hidden;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

.footer-links { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col b {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.footer-col a { font-size: 0.92rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent); }

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* Riesiges Footer-Wortzeichen */
.footer-wordmark {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 86;
  font-size: clamp(4rem, 14vw, 12.5rem);
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  user-select: none;
  white-space: nowrap;
  transform: translateY(0.12em);
  transition: -webkit-text-stroke-color 0.4s ease;
}
.footer-wordmark:hover { -webkit-text-stroke-color: var(--accent); }
.footer-wordmark em { font-style: normal; -webkit-text-stroke: 0; color: var(--wash-strong); transition: color 0.4s ease; }
.footer-wordmark:hover em { color: var(--accent); }

/* ---------- Sticky mobile CTA ---------- */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  background: rgba(244, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { width: 100%; }

/* ---------- Legal pages ---------- */

.legal-page { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.legal-page h1 { font-size: 2.2rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.3rem; margin: 2.2rem 0 0.8rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0.7rem; }
.legal-page ul { padding-left: 1.3rem; }
.legal-placeholder {
  background: var(--wash);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-ink);
  margin: 1rem 0;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* Überschriften: Mask-Rise */
.rise {
  clip-path: inset(0 0 100% 0);
  transform: translateY(24%);
  transition: clip-path 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.rise.in {
  clip-path: inset(0 0 -8% 0);
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .rise { opacity: 1; transform: none; transition: none; clip-path: none; }
  .hero-stagger > *, .sim-entrance { opacity: 1; transform: none; animation: none; }
  .marquee-track { animation: none; }
  .logo-dot { animation: none; }
  .hero::before, .risk::before, .cta-final::before { animation: none; }
  .btn, .service, .step, .case, .quote, .prob-card { transition: none; }
  .sim-cursor { animation: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .eyebrow::before { animation: none !important; }
  .stat::before { transition: none; transform: scaleX(1); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero::before { right: -30%; top: 30%; }
  /* Contain the decorative aurora so it can't push horizontal overflow on mobile
     (its -30% offset otherwise extends 30% of the viewport past the right edge,
     which body{overflow-x:hidden} then clips — cutting off the final CTA card). */
  .hero { overflow-x: clip; }
  /* Final CTA card: let the single grid column shrink to the card width instead of
     the nowrap button's min-content width, and let that long button wrap — otherwise
     the paragraph and white button/arrow get clipped by the card's overflow:hidden. */
  .cta-final > div,
  .cta-final-actions { min-width: 0; }
  .cta-final-actions .btn { white-space: normal; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .split-sticky { position: static; }
  .steps, .services-grid, .cases-grid, .quotes-grid { grid-template-columns: 1fr 1fr; }
  .about-card { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr; }
  .cta-final { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.8rem 1.5rem; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-burger { display: flex; }
  .nav .btn-primary { display: none; }
  .steps, .services-grid, .cases-grid, .quotes-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .risk-outputs { grid-template-columns: 1fr; }
  .compare { overflow-x: auto; }
  .compare table { min-width: 560px; }
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
  .footer-wordmark { -webkit-text-stroke-width: 1px; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
