:root {
  --bg: #0b1020;
  --card: #141b35;
  --card-2: #1a2244;
  --border: #28315a;
  --text: #e8ebf5;
  --muted: #9aa3c4;
  --brand: #818cf8;
  --brand-2: #a78bfa;
  --grad: linear-gradient(135deg, #6366f1, #8b5cf6);
  color-scheme: dark;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 80% -10%, #1b2350 0%, transparent 55%),
    radial-gradient(1000px 600px at -10% 110%, #241a4d 0%, transparent 50%), var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: var(--brand);
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 420px;
  height: 420px;
  background: #6366f1;
  top: -120px;
  right: -80px;
}
.orb-2 {
  width: 360px;
  height: 360px;
  background: #8b5cf6;
  bottom: -140px;
  left: -100px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
}
.brand .mark {
  width: 30px;
  height: 30px;
}
.brand.small {
  font-size: 1.05rem;
}
.accent {
  color: var(--brand);
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-block;
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 0.98rem;
  transition:
    transform 0.08s,
    filter 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(124, 92, 246, 0.8);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: var(--brand);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1.02;
  margin: 1.4rem 0 1rem;
}
.lead {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto;
}
.cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.cta.center {
  margin-top: 2rem;
}
.trust {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.notice {
  display: inline-block;
  margin: 1.4rem 0 0;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-size: 0.9rem;
}
.btn-disabled {
  background: #20294f;
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
}
.btn-disabled:hover {
  filter: none;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-align: center;
  margin: 0 0 2rem;
}

/* SVG-Icons */
.ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 18px 40px -22px rgba(99, 102, 241, 0.6);
}
.card .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid var(--border);
}
.card h3 {
  font-size: 1.05rem;
  margin: 0.9rem 0 0.5rem;
}
.card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* Steps */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 18px 40px -22px rgba(99, 102, 241, 0.6);
}
.step .num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
}
.step h3 {
  margin: 0.9rem 0 0.5rem;
  font-size: 1.1rem;
}
.step p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}
.step-arrow {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 1.5rem;
}

/* FAQ */
#faq h2 {
  margin-bottom: 0.8rem;
}
.faq-lead {
  text-align: center;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.faq {
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  align-items: start;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.2rem 1.1rem;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.faq details:hover {
  border-color: var(--brand);
}
.faq details[open] {
  background: var(--card-2);
  border-color: var(--brand);
}
.faq summary {
  cursor: pointer;
  padding: 0.85rem 0;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 1.15rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '–';
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}
.faq p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 0.9rem;
}
.faq-cta {
  max-width: 940px;
  margin: 1.8rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

/* two-column cards (z. B. Scannen) */
.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

/* Highlight-Band (virtueller Drucker, Open Source) */
.band {
  background: linear-gradient(135deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.6rem;
  align-items: center;
}
.band h2 {
  text-align: left;
  margin: 0.7rem 0 0.8rem;
}
.band p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 0.8rem;
}
.band .small {
  font-size: 0.85rem;
}
.band .visual {
  display: grid;
  place-items: center;
  gap: 0.8rem;
  text-align: center;
}
.keys {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}
.kbd {
  font:
    600 1.5rem ui-monospace,
    'SF Mono',
    Menlo,
    monospace;
  background: #0e1430;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  min-width: 3rem;
}

/* Plattform-Kacheln */
.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.plat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.plat:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 18px 40px -22px rgba(99, 102, 241, 0.6);
}
.plat .ic {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid var(--border);
  margin: 0 auto 0.2rem;
}
.plat .icon {
  width: 30px;
  height: 30px;
}
.plat h3 {
  font-size: 1.02rem;
  margin: 0.7rem 0 0.35rem;
}
.plat p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

/* Stack-Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
}

/* Hero-Mock (Druckwarteschlange) */
.hero-mock {
  max-width: 460px;
  margin: 2.6rem auto 0;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 35px 70px -35px rgba(0, 0, 0, 0.75);
}
.hm-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
}
.hm-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hm-bar i:nth-child(1) {
  background: #ff5f57;
}
.hm-bar i:nth-child(2) {
  background: #febc2e;
}
.hm-bar i:nth-child(3) {
  background: #28c840;
}
.hm-bar span {
  margin-left: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.hm-body {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hm-job {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.hm-fi {
  width: 26px;
  height: 26px;
  flex: none;
}
.hm-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.hm-meta strong {
  font-size: 0.9rem;
}
.hm-meta span {
  color: var(--muted);
  font-size: 0.74rem;
}
.hm-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
}
.hm-status.done {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
}
.hm-status.active {
  color: #fff;
  background: var(--grad);
  animation: pulse 1.5s ease-in-out infinite;
}
.hm-status.queued {
  color: var(--muted);
  background: rgba(154, 163, 196, 0.12);
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* Mobile-Menue-Button (Desktop: versteckt) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* Animierter Gradient-Text */
.grad {
  background-size: 220% 220%;
  animation: gradShift 7s ease infinite;
}
@keyframes gradShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Scroll-Reveal (nur wenn JS aktiv, sonst alles sichtbar) */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .grad,
  .hm-status.active {
    animation: none;
  }
  .card,
  .plat,
  .step {
    transition: none;
  }
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.foot-grid {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}
.foot-grid h4 {
  font-size: 0.95rem;
  margin: 0 0 0.8rem;
}
.foot-grid a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.2rem 0;
}
.foot-grid a:hover {
  color: var(--text);
}
.foot-grid .muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.6rem 0 0;
  max-width: 22rem;
}
.foot-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-arrow {
    display: none;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .band {
    grid-template-columns: 1fr;
  }
  .band h2 {
    margin-top: 0.3rem;
  }
  .platforms {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq {
    grid-template-columns: 1fr;
  }

  /* Mobile-Menue: Hamburger einblenden, Links als Dropdown */
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    margin-top: 0.4rem;
    z-index: 6;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.5rem;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.85);
  }
  .nav.open .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    color: var(--text);
  }
  .nav-links a:hover {
    background: var(--card-2);
  }
  .nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .cards.two {
    grid-template-columns: 1fr;
  }
  .platforms {
    grid-template-columns: 1fr;
  }
}

/* --- Rechtliche Seiten (AGB/Datenschutz/Impressum) --- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
}
.legal .back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted, #9aa3c4);
  text-decoration: none;
}
.legal h1 {
  font-size: 2rem;
  margin: 0 0 0.4rem;
}
.legal .updated {
  color: var(--muted, #9aa3c4);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.legal h2 {
  margin-top: 2.2rem;
  font-size: 1.25rem;
}
.legal p,
.legal li {
  line-height: 1.7;
  color: #cdd3ea;
}
.legal a {
  color: #a5b4fc;
}
.legal .note {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid #28315a;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  color: var(--muted, #9aa3c4);
}
