/* ==========================================================
   on-ex – Landingpage
   Mobile-first.
   ========================================================== */

:root {
  --color-bg: #0B0E14;
  --color-bg-2: #10151E;
  --color-ink: #EDEFF3;
  --color-ink-muted: rgba(237, 239, 243, 0.7);
  --color-cyan: #00D4FF;
  --color-cyan-dim: rgba(0, 212, 255, 0.35);
  --color-spark: #FFC53D;
  --color-line: rgba(237, 239, 243, 0.12);

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: 640px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--color-cyan); color: #05131a; padding: 10px 16px;
  border-radius: 8px; z-index: 1000; transition: top 0.2s ease; font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-size: 1rem; transition: box-shadow 0.25s ease, transform 0.15s ease, background 0.2s ease;
}
.btn-primary { background: var(--color-cyan); color: #05131a; }
.btn-primary:hover { box-shadow: 0 0 0 6px var(--color-cyan-dim); transform: translateY(-1px); }
.btn-ghost { border-color: var(--color-line); color: var(--color-ink); }
.btn-ghost:hover { border-color: var(--color-cyan); }
.btn-outline { border-color: var(--color-cyan); color: var(--color-cyan); background: transparent; }
.btn-outline:hover { background: var(--color-cyan); color: #05131a; }
.btn-small { padding: 8px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
.logo { font-size: 1.4rem; text-decoration: none; color: var(--color-ink); font-weight: 800; }
.logo-spark { color: var(--color-cyan); }

.nav-toggle { background: none; border: 0; cursor: pointer; padding: 8px; display: inline-flex; }
.burger, .burger::before, .burger::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }

.primary-nav {
  position: fixed; inset: 64px 0 0 0;
  background: var(--color-bg);
  display: flex; flex-direction: column; gap: 4px; padding: 20px;
  transform: translateY(-100vh);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.primary-nav.is-open { transform: translateY(0); }
.primary-nav a { text-decoration: none; padding: 14px 4px; border-bottom: 1px solid var(--color-line); font-size: 1.1rem; }
.primary-nav .btn { text-align: center; margin-top: 10px; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; inset: auto; transform: none; flex-direction: row;
    align-items: center; padding: 0; background: transparent; gap: 24px;
  }
  .primary-nav a { border-bottom: 0; padding: 4px 0; font-size: 0.95rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  overflow: hidden; margin-top: -65px;
  background: radial-gradient(circle at 30% 20%, rgba(0,212,255,0.10), transparent 55%), var(--color-bg);
}
.hero-circuit { position: absolute; inset: 0; opacity: 0.5; }
.hero-circuit svg { width: 100%; height: 100%; }
.circuit-line {
  fill: none; stroke: var(--color-cyan); stroke-width: 1.5; opacity: 0.28;
  stroke-dasharray: 14 10; stroke-dashoffset: 0;
  animation: circuit-flow 6s linear infinite;
}
.circuit-line-2 { animation-duration: 8s; animation-direction: reverse; opacity: 0.2; }
.circuit-line-3 { animation-duration: 5s; opacity: 0.18; }
.circuit-node { fill: var(--color-cyan); opacity: 0.6; }
@keyframes circuit-flow { to { stroke-dashoffset: -240; } }
@media (prefers-reduced-motion: reduce) {
  .circuit-line { animation: none; }
}

.hero-content { position: relative; padding-block: 60px; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem;
  color: var(--color-cyan); font-weight: 700; margin-bottom: 14px;
}
.hero-content h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); max-width: 18ch; }
.hero-tagline { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--color-ink-muted); max-width: 42ch; margin-bottom: 1.6em; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections (generic) ---------- */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-dark { background: var(--color-bg-2); }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.section-lead { max-width: 56ch; color: var(--color-ink-muted); }
.section-note { font-size: 0.85rem; opacity: 0.65; }
.section-note-light { color: var(--color-ink-muted); }

/* ---------- Trust band ---------- */
.trust-band { padding-block: 28px; border-bottom: 1px solid var(--color-line); border-top: 1px solid var(--color-line); }
.trust-grid {
  display: grid; gap: 16px; text-align: center; font-size: 0.9rem; color: var(--color-ink-muted);
}
.trust-num { display: block; font-size: 1.2rem; font-weight: 800; color: var(--color-cyan); margin-bottom: 2px; }
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Services ---------- */
.services-grid {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 16px;
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  border: 1px solid var(--color-line); border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { border-color: var(--color-cyan); transform: translateY(-3px); }
}
.service-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; color: var(--color-ink-muted); margin: 0; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step { border-left: 2px solid var(--color-cyan); padding-left: 18px; }
.step-num { display: block; font-weight: 800; color: var(--color-cyan); font-size: 1.4rem; margin-bottom: 6px; }
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--color-ink-muted); margin: 0; }

/* ---------- Calendly / Contact ---------- */
.calendly-placeholder { text-align: center; padding: 32px 0; border: 1px dashed var(--color-line); border-radius: var(--radius); }
#calendlySlot iframe { width: 100%; min-height: 640px; border: 0; border-radius: var(--radius); }
.or-divider { text-align: center; color: var(--color-ink-muted); font-size: 0.85rem; margin: 24px 0; }

.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: 0.9rem; color: var(--color-ink-muted); }
.form-row input, .form-row textarea {
  font: inherit; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--color-line); background: rgba(237,239,243,0.04); color: inherit;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--color-cyan); }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-line); padding-block: 32px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner a { text-decoration: none; opacity: 0.8; }
.footer-inner a:hover { opacity: 1; }
