/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #131316;
  --bg-alt:    #17171B;
  --line:      #2A2A31;
  --line-2:    #3A3A43;
  --line-3:    #33333C;

  --white:     #FFFFFF;
  --text:      #EDEDF1;
  --fact:      #C9C9D3;
  --nav:       #A0A0AC;
  --badge:     #A8A8B4;
  --muted:     #9A9AA6;
  --dim:       #6E6E7A;
  --dimmer:    #55555F;

  --cyan:      #24C8FD;
  --cyan-lit:  #6FD9FE;
  --violet:    #903FF6;
  --mid-1:     #4F9BFB;
  --mid-2:     #6D6CF8;

  --grad: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 100%);

  --sans: 'Ubuntu', 'Trebuchet MS', system-ui, -apple-system, sans-serif;
  --mono: 'Ubuntu Mono', 'DejaVu Sans Mono', ui-monospace, monospace;

  --pad:   clamp(20px, 5vw, 80px);
  --sect:  clamp(72px, 9vw, 130px);
  --maxw:  1280px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-lit); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

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

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { max-width: var(--maxw); margin: 0 auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--white); color: var(--bg); padding: 12px 20px; font-size: 15px;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 80px; padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-name {
  font-size: clamp(19px, 2.4vw, 21px); font-weight: 500;
  letter-spacing: -0.012em; color: var(--white);
}
.nav-right {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); font-size: 15px;
}
.nav-right > a { color: var(--nav); }
.nav-right > a:hover { color: var(--white); }

.lang {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em;
}
.lang .on { color: var(--white); font-weight: 700; }
.lang .sep { color: #45454F; }
.lang a { color: var(--nav); }
.lang a:hover { color: var(--white); }

.btn-ghost {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px;
  border: 1px solid var(--line-2); color: var(--white);
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.btn-ghost:hover { color: var(--white); border-color: var(--muted); }

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

/* Below ~400px the nav would wrap to two lines: brand + language switch +
   contact button do not fit side by side otherwise. */
@media (max-width: 420px) {
  .nav { gap: 12px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 18px; }
  .nav-right { gap: 14px; }
  .btn-ghost { height: 40px; padding: 0 14px; font-size: 14px; }
  .badge { padding: 8px 12px; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 11vw, 140px) var(--pad) clamp(72px, 10vw, 130px);
}
.hero .glow-a,
.hero .glow-b,
.hero .grid { position: absolute; pointer-events: none; }
.hero .glow-a {
  top: -420px; left: 50%; transform: translateX(-50%);
  width: 1500px; height: 1000px;
  background: radial-gradient(ellipse at center, rgba(36,200,253,0.16) 0%, rgba(36,200,253,0) 62%);
}
.hero .glow-b {
  top: -300px; left: 26%; width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(144,63,246,0.22) 0%, rgba(144,63,246,0) 64%);
}
.hero .grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero-inner {
  position: relative; display: flex; flex-direction: column;
  align-items: center; text-align: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 18px; border: 1px solid var(--line-3);
  background: rgba(255,255,255,0.03); margin-bottom: clamp(28px, 4vw, 44px);
}
.badge .dot {
  width: 7px; height: 7px; flex: none;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}
.badge span {
  font-family: var(--mono); font-size: clamp(10.5px, 2.9vw, 12.5px);
  letter-spacing: clamp(0.06em, 1vw, 0.13em);
  text-transform: uppercase; color: var(--badge);
}

h1 {
  margin: 0; max-width: 1020px;
  font-size: clamp(30px, 6.4vw, 86px);
  line-height: 1.09; font-weight: 700; letter-spacing: -0.038em;
  color: var(--white); text-wrap: balance;
}

/* German compounds ("Softwareentwicklung", "HFT-Systemarchitektur") are longer
   than a 360px screen at display sizes. <html lang> is set on every page, so the
   browser can hyphenate them properly instead of letting them run off the edge. */
h1, h2, h3, .lede, .cta h2 {
  -webkit-hyphens: auto; hyphens: auto;
  overflow-wrap: break-word;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.hero-sub {
  margin: clamp(24px, 3vw, 36px) 0 0; max-width: 640px;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.66;
  font-weight: 300; color: var(--muted);
}

.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin-top: clamp(34px, 4.5vw, 52px);
}
.btn-grad {
  display: inline-flex; align-items: center; height: 58px; padding: 0 clamp(22px, 3vw, 34px);
  background: var(--grad); color: var(--bg);
  font-family: var(--mono); font-size: clamp(14px, 1.8vw, 16px); font-weight: 700;
  white-space: nowrap;
}
.btn-grad:hover { color: var(--bg); filter: brightness(1.08); }
.btn-line {
  display: inline-flex; align-items: center; height: 58px; padding: 0 clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-2); color: var(--white);
  font-size: 16px; font-weight: 500; white-space: nowrap;
}
.btn-line:hover { color: var(--white); border-color: var(--muted); }

.hero-note {
  margin: clamp(34px, 4.5vw, 54px) 0 0; max-width: 660px;
  font-family: var(--mono); font-size: clamp(13px, 1.6vw, 14.5px);
  line-height: 1.93; color: var(--dim); letter-spacing: 0.02em;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: var(--sect) var(--pad); }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: clamp(40px, 5.5vw, 66px);
}
h2 {
  margin: 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.22;
  font-weight: 500; letter-spacing: -0.03em; color: var(--white);
}
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim);
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.cards {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); padding-bottom: 42px;
}
.card .bar { height: 4px; }
.card:nth-child(1) .bar { background: linear-gradient(90deg, var(--cyan) 0%, var(--mid-1) 100%); }
.card:nth-child(2) .bar { background: linear-gradient(90deg, var(--mid-1) 0%, var(--mid-2) 100%); }
.card:nth-child(3) .bar { background: linear-gradient(90deg, var(--mid-2) 0%, var(--violet) 100%); }
.card-body { padding: 40px clamp(24px, 3vw, 36px) 0; display: flex; flex-direction: column; gap: 20px; }
h3 {
  margin: 0; font-size: clamp(22px, 2.6vw, 27px); line-height: 1.3;
  font-weight: 500; letter-spacing: -0.018em; color: var(--white);
}
.card p { margin: 0; font-size: 16px; line-height: 1.81; color: var(--muted); font-weight: 300; }

/* ── Background block ───────────────────────────────────────────────────── */
.split { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 4fr 8fr; } }
.split-title { display: flex; flex-direction: column; gap: 20px; }
.rule-short { height: 4px; width: 72px; background: var(--grad); }
.split-body { display: flex; flex-direction: column; gap: 36px; }
.lede {
  margin: 0; font-size: clamp(20px, 2.5vw, 27px); line-height: 1.66;
  font-weight: 300; color: var(--text);
}
.hr { height: 1px; background: var(--line); }
.facts { display: flex; flex-direction: column; gap: 22px; }
.fact { display: flex; gap: clamp(14px, 2vw, 26px); align-items: baseline; flex-wrap: wrap; }
.fact dt {
  flex: none; width: 104px; margin: 0;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim);
}
.fact dd {
  margin: 0; flex: 1 1 240px;
  font-size: 18px; line-height: 1.72; font-weight: 300; color: var(--fact);
}
.aside {
  margin: 0; max-width: 620px;
  font-size: 16px; line-height: 1.88; font-weight: 300; color: #7A7A88;
}

/* ── CTA band ───────────────────────────────────────────────────────────── */
.cta {
  margin: 0 var(--pad); padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 72px);
  background: linear-gradient(105deg, var(--cyan) 0%, var(--violet) 100%);
  display: flex; justify-content: space-between; align-items: center;
  gap: clamp(28px, 4vw, 48px); flex-wrap: wrap;
}
.cta h2 {
  color: var(--bg); font-weight: 700; letter-spacing: -0.032em;
  font-size: clamp(28px, 4.4vw, 48px); line-height: 1.2;
}
.cta p { margin: 16px 0 0; font-size: clamp(16px, 1.9vw, 18px); line-height: 1.67; color: rgba(19,19,22,0.72); }
.cta-btn {
  display: inline-flex; align-items: center; height: 64px; padding: 0 clamp(24px, 3.4vw, 40px);
  background: var(--bg); color: var(--white);
  font-family: var(--mono); font-size: clamp(14px, 1.9vw, 17px); font-weight: 700;
  white-space: nowrap;
}
.cta-btn:hover { color: var(--white); background: #1D1D22; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  display: grid; gap: clamp(32px, 4vw, 48px);
  grid-template-columns: 1fr;
  padding: clamp(60px, 8vw, 96px) var(--pad) 40px;
}
@media (min-width: 760px) { .footer { grid-template-columns: 5fr 3fr 4fr; } }
.brand-name--sm { font-size: 19px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand p { margin: 0; max-width: 330px; font-size: 14.5px; line-height: 1.79; color: var(--dim); font-weight: 300; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col .eyebrow { font-size: 12px; color: var(--dimmer); margin-bottom: 4px; }
.footer-col a { font-size: 14.5px; color: var(--nav); }
.footer-col a:hover { color: var(--white); }
.footer-col a.mail { font-family: var(--mono); font-size: 14px; color: var(--cyan); }
.footer-col a.mail:hover { color: var(--cyan-lit); }

.bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 26px var(--pad) 44px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; color: var(--dimmer); letter-spacing: 0.04em;
}

/* ── Legal pages ────────────────────────────────────────────────────────── */
.doc { padding: clamp(56px, 7vw, 96px) var(--pad) clamp(60px, 8vw, 110px); }
.doc-inner { max-width: 760px; margin: 0 auto; }
.doc h1 {
  font-size: clamp(32px, 5vw, 56px); text-align: left; max-width: none;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.doc h2 {
  font-size: clamp(20px, 2.6vw, 25px); margin: clamp(40px, 5vw, 56px) 0 16px;
  font-weight: 500; letter-spacing: -0.02em;
}
.doc h3 {
  font-size: 17px; margin: 30px 0 10px; font-weight: 500; color: var(--fact);
  letter-spacing: 0;
}
.doc p, .doc li {
  font-size: 16px; line-height: 1.81; color: var(--muted); font-weight: 300;
}
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); font-weight: 500; }
.doc address { font-style: normal; color: var(--text); line-height: 1.81; font-size: 16px; }
.doc .updated {
  margin-top: clamp(44px, 6vw, 64px); padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; color: var(--dimmer); letter-spacing: 0.04em;
}
.doc .lead-rule { height: 4px; width: 72px; background: var(--grad); margin-bottom: 30px; }

/* Placeholder that must not survive to production. */
.todo {
  display: block; border: 1px dashed #C2410C; background: rgba(194,65,12,0.12);
  color: #FDBA74; padding: 14px 18px; margin: 0 0 16px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7;
}
