:root {
  --bg: #07090d;
  --bg-elev: #0e1218;
  --bg-soft: #131822;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eaeefb;
  --text-dim: #a3acc2;
  --text-mute: #6a7388;
  --accent: #8ab4ff;
  --accent-2: #5468ff;
  --accent-3: #4338ca;
  --accent-grad: linear-gradient(135deg, #8ab4ff 0%, #5468ff 60%, #4338ca 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "new-science", "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-family: "new-science", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(2.4rem, 5vw + 0.5rem, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.8rem, 3vw + 0.4rem, 2.8rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--text-dim);
}

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: "new-science", "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1.2rem;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: #0b0d10;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 13, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.scrolled {
  background: rgba(7, 9, 13, 0.7);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "new-science", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent-grad);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 8px 24px -10px rgba(84, 104, 255, 0.6);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--bg);
  border-radius: 3px;
}
.logo-mark.small {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.logo-mark.small::after {
  inset: 3px;
  border-radius: 2px;
}

.nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.nav-list a:hover {
  color: var(--text);
}
.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav-list li:not(:last-child) {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 160px) 0 clamp(60px, 10vw, 120px);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 980px;
}
.hero-title {
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.3rem);
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero-stats > div dt {
  font-family: "new-science", "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.hero-stats > div dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-mute);
}
@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 70% 20%,
    #000 20%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 70% 20%,
    #000 20%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 1;
}

/* Aurora background — fixed across the whole viewport */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  filter: blur(100px) saturate(130%);
  opacity: 0.7;
}
.aurora .blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
.aurora .blob-1 {
  width: clamp(520px, 65vw, 1500px);
  height: clamp(520px, 65vw, 1500px);
  top: -15vh;
  left: -10vw;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(84, 104, 255, 0.7),
    rgba(84, 104, 255, 0) 75%
  );
  animation: aurora-1 30s ease-in-out infinite,
    blob-pulse 14s ease-in-out infinite;
}
.aurora .blob-2 {
  width: clamp(460px, 60vw, 1400px);
  height: clamp(460px, 60vw, 1400px);
  top: 5vh;
  right: -15vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(138, 180, 255, 0.65),
    rgba(138, 180, 255, 0) 75%
  );
  animation: aurora-2 36s ease-in-out infinite,
    blob-pulse 20s ease-in-out infinite;
  animation-delay: 0s, -3s;
}
.aurora .blob-3 {
  width: clamp(420px, 55vw, 1300px);
  height: clamp(420px, 55vw, 1300px);
  bottom: -20vh;
  left: 20vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(67, 56, 202, 0.7),
    rgba(67, 56, 202, 0) 75%
  );
  animation: aurora-3 32s ease-in-out infinite,
    blob-pulse 16s ease-in-out infinite;
  animation-delay: 0s, -5s;
}
.aurora .blob-4 {
  width: clamp(380px, 50vw, 1200px);
  height: clamp(380px, 50vw, 1200px);
  top: 30vh;
  left: 38vw;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(124, 58, 237, 0.55),
    rgba(124, 58, 237, 0) 75%
  );
  animation: aurora-4 40s ease-in-out infinite,
    blob-pulse 22s ease-in-out infinite;
  animation-delay: 0s, -2s;
}

@keyframes blob-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.95; }
}

@keyframes aurora-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 80px) scale(1.15); }
}
@keyframes aurora-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 40px) scale(1.1); }
}
@keyframes aurora-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.2); }
}
@keyframes aurora-4 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-50px, -40px) scale(1.1) rotate(20deg); }
}

.hero {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(67, 56, 202, 0.18), transparent 60%);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.mission-text p {
  font-size: 1.05rem;
}

/* ---------- Service cards ---------- */
.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
.card {
  position: relative;
  padding: 32px 28px 30px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 0%),
    rgba(138, 180, 255, 0.16),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.card:hover::before {
  opacity: 1;
}
.card-index {
  font-family: "new-science", "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.card p {
  color: var(--text-dim);
  margin-bottom: 18px;
}
/* ---------- Contact ---------- */
.contact-lede {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 460px;
}
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-mute);
  margin-top: 24px;
}
.contact-meta a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.contact-meta a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Wizard contact form ---------- */
.wizard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wizard-progress .progress-label {
  font-family: "new-science", "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}
.wizard-progress .bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.wizard-progress .bar-fill {
  display: block;
  height: 100%;
  width: 33.3333%;
  background: var(--accent-grad);
  transition: width 0.4s var(--ease);
}

.wizard-step {
  display: none;
  flex-direction: column;
  gap: 20px;
}
.wizard-step.active {
  display: flex;
  animation: wizard-step-in 0.35s var(--ease);
}
@keyframes wizard-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-step h3 {
  font-size: clamp(1.4rem, 1.5vw + 0.5rem, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.wizard-step .step-lede {
  margin: 0 0 4px;
  color: var(--text-dim);
  max-width: 520px;
}
.wizard-step .step-error {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: #ff7a7a;
}

.wizard-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.wizard-actions [data-action="next"],
.wizard-actions button[type="submit"] {
  margin-left: auto;
}

/* Schritt 4 — Danke-Screen */
.wizard-step-thanks {
  align-items: center;
  text-align: center;
  padding: 12px 0;
  gap: 14px;
}
.thanks-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 32px -16px rgba(84, 104, 255, 0.6);
}
.thanks-mark::after {
  content: "";
  display: block;
  width: 18px;
  height: 9px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -2px);
}
.wizard-step-thanks .step-lede {
  margin: 0 auto;
  max-width: 360px;
}
.wizard.wizard--complete .wizard-progress {
  display: none;
}

/* Chip-Gruppe (Schritt 1) */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  position: relative;
  cursor: pointer;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.95rem;
  user-select: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.15s var(--ease);
}
.chip:hover {
  border-color: var(--accent);
  background: rgba(138, 180, 255, 0.07);
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  inset: 0;
}
.chip:has(input:checked) {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.chip:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Visually hidden helper */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: "new-science", "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field .optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-mute);
  opacity: 0.7;
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  resize: vertical;
}
.field input:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 4px rgba(138, 180, 255, 0.12);
}
.form-note {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--text-mute);
}
.form-note.success {
  color: var(--accent);
}
.form-note.error {
  color: #ff7a7a;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "new-science", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.footer-claim {
  color: var(--text-mute);
  font-size: 0.88rem;
  margin: 0;
}
.footer-meta {
  color: var(--text-mute);
  font-size: 0.88rem;
  margin: 0;
}
.footer-meta a {
  color: var(--text-dim);
  margin-left: 8px;
}
.footer-meta a:hover {
  color: var(--text);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Focus ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
