:root {
  --bg: #020e32;
  --raise: #07153f;
  --ink: #f4f7ff;
  --muted: #b7c3e0;
  --cyan: #01dbff;
  --indigo: #2528ab;
  --violet: #6131e7;
  --line: rgba(1, 219, 255, 0.22);
  --sans: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(97, 49, 231, 0.28), transparent 60%),
    radial-gradient(700px 380px at 0% 20%, rgba(1, 219, 255, 0.12), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

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

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cyan);
  color: #041018;
  padding: 0.45rem 0.75rem;
  z-index: 5;
}
.skip:focus { top: 1rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(2, 14, 50, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.6rem;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
  overflow: hidden;
}
.brand img { height: 46px; width: auto; }

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.8rem 1.4rem;
}

.section-nav,
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.section-nav a,
.langs a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
.section-nav a:hover,
.section-nav a[aria-current="page"],
.langs a:hover,
.langs a[aria-current="true"] {
  color: var(--ink);
}
.section-nav a[aria-current="page"] {
  color: var(--cyan);
}
.langs a[aria-current="true"] {
  color: var(--cyan);
}

.hero { padding: 4.2rem 0 1.2rem; }
.kicker {
  margin: 0 0 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 650;
}
h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-cta {
  margin: 1.4rem 0 0;
}

.btn {
  display: inline-block;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 4px;
  padding: 0.55rem 1rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: transparent;
}
.btn:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: rgba(1, 219, 255, 0.08);
}

.manual {
  padding: 1.2rem 0 2.4rem;
}
.manual > section {
  padding-top: 2.8rem;
}
.manual > section:first-child {
  padding-top: 1.2rem;
}
.manual h2 {
  margin: 0 0 0.9rem;
  color: var(--ink);
}
.manual p {
  max-width: 46rem;
  color: var(--muted);
}
.manual ul {
  max-width: 46rem;
  margin: 0.8rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}
.manual li {
  margin: 0.35rem 0;
}
.manual pre {
  margin: 1rem 0 1.4rem;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: var(--raise);
  border: 1px solid rgba(183, 195, 224, 0.14);
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}
.manual pre code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  white-space: pre;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: end;
  margin-bottom: 0.9rem;
}
.section-head p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 21, 63, 0.4), rgba(2, 14, 50, 0.2)),
    #04102a;
  overflow: hidden;
}
#route-canvas {
  display: block;
  width: 100%;
  height: min(68vh, 620px);
  min-height: 440px;
}
.route-status {
  min-height: 1.4em;
  margin: 0.7rem 0 0;
  color: var(--cyan);
  font-size: 0.92rem;
}

.table-scroll { overflow-x: auto; margin-top: 1rem; }
.routes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.routes th,
.routes td {
  text-align: left;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid rgba(183, 195, 224, 0.16);
}
.routes th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.routes tr.is-live td {
  background: rgba(1, 219, 255, 0.08);
  color: var(--ink);
}
.routes tr.is-live td:first-child { box-shadow: inset 3px 0 0 var(--cyan); }

#regeln,
#ablauf { padding-top: 4.2rem; }

.rules,
.lanes,
.flow {
  display: grid;
  gap: 1rem;
}
.rules { grid-template-columns: repeat(3, 1fr); }
.lanes { grid-template-columns: repeat(4, 1fr); padding-top: 1.2rem; }

.rules article,
.lane,
.flow li {
  margin: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  background: rgba(7, 21, 63, 0.72);
  border: 1px solid rgba(183, 195, 224, 0.14);
  border-radius: 16px;
}
.index {
  margin: 0 0 0.45rem;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.rules p,
.lane p,
.flow p { margin: 0; color: var(--muted); }

.lane-cyan { border-top: 3px solid var(--cyan); }
.lane-indigo { border-top: 3px solid #7a82f5; }
.lane-violet { border-top: 3px solid #a78bfa; }

.flow {
  list-style: none;
  padding: 0;
  counter-reset: step;
  grid-template-columns: repeat(3, 1fr);
}
.flow li { counter-increment: step; }
.flow h3::before {
  content: counter(step, decimal-leading-zero) "  ";
  color: var(--cyan);
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0 2.4rem;
  color: var(--muted);
}
.site-footer img { width: 72px; height: auto; }
.site-footer .footer-copy { flex: 1; }
.site-footer .footer-copy > p { margin: 0 0 0.35rem; }
.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.site-footer .footer-legal a {
  color: var(--cyan);
  text-decoration: none;
}
.site-footer .footer-legal a:hover { text-decoration: underline; }

.legal-facts .legal-phones {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-facts .legal-phones li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.5rem;
}
.legal-facts .legal-region {
  min-width: 2.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.legal-facts a { color: var(--cyan); }

@media (max-width: 900px) {
  .rules,
  .lanes,
  .flow { grid-template-columns: 1fr 1fr; }
  .section-head { display: block; }
}

@media (max-width: 680px) {
  .header-bar { align-items: flex-start; padding: 0.8rem 0; }
  .brand img { height: 36px; }
  .hero { padding-top: 2.4rem; }
  #route-canvas { height: 70vh; min-height: 460px; }
  .routes thead { display: none; }
  .routes,
  .routes tbody,
  .routes tr,
  .routes td { display: block; width: 100%; }
  .routes tr {
    padding: 0.35rem 0 0.7rem;
    border-bottom: 1px solid rgba(183, 195, 224, 0.16);
  }
  .routes td {
    border: 0;
    padding: 0.2rem 0.8rem;
  }
  .routes td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.1rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .routes tr.is-live td:first-child { box-shadow: none; }
  .routes tr.is-live { box-shadow: inset 3px 0 0 var(--cyan); }
  .rules,
  .lanes,
  .flow { grid-template-columns: 1fr; }
  #regeln,
  #ablauf { padding-top: 2.8rem; }
}

.pricing-table code {
  font-size: 0.85em;
}

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