:root {
  --bg: #080a0e;
  --bg-2: #0e1218;
  --card: #12171f;
  --text: #f3f5f8;
  --muted: #9aa6b8;
  --accent: #3a9bff;
  --accent-2: #2b74c4;
  --glow: rgba(58, 155, 255, 0.22);
  --line: rgba(255,255,255,.09);
  --radius: 16px;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --focus: #8ec8ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
button:not(:disabled) { cursor: pointer; }

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

.skip {
  position: absolute; left: 12px; top: -40px; z-index: 400;
  background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 12px; }


.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.display { font-family: var(--display); }
.muted { color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); }
.center { text-align: center; }

.surface {
  background: var(--card);
  border: 1px solid var(--line);
}

#navbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent);
  display: grid; place-items: center;
}
.logo-mark svg { width: 20px; height: 20px; }
.nav-links { display: none; gap: 2px; }
.nav-links a {
  padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.05); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: none; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.lang-btn { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 5px 8px; font-size: 11px; font-weight: 700; }
.lang-btn.active { background: var(--accent); color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 650; font-size: 14px;
}
.btn-primary { background: var(--accent); color: #071018; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.burger { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; color: var(--text); font-size: 22px; }

#mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); z-index: 90;
  transform: translateX(105%); transition: transform .3s ease;
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  background: #0c1016; border-left: 1px solid var(--line);
}
#mobile-menu.open { transform: none; }
#mobile-menu a { font-size: 18px; font-weight: 600; padding: 8px 0; }
.mobile-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mobile-backdrop.show { opacity: 1; pointer-events: auto; }

@media (min-width: 1100px) {
  .nav-links, .lang-switch { display: flex; }
  .burger { display: none; }
}

#theme-toggle {
  position: fixed; right: 0; top: 46%; z-index: 70;
  writing-mode: vertical-rl; letter-spacing: .2em;
  border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px;
  background: #0c1016; color: var(--text); font-size: 11px; font-weight: 800; padding: 16px 10px;
}
body.themes-open #theme-toggle, body.rebuilding #theme-toggle { opacity: 0; pointer-events: none; }

#theme-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
#theme-backdrop.show { opacity: 1; pointer-events: auto; }
#theme-panel {
  position: fixed; z-index: 210; right: 0; top: 0; height: 100dvh;
  width: min(380px, 100vw);
  transform: translateX(110%);
  transition: transform .35s ease;
  padding: 18px 16px 28px; overflow: auto;
  background: #0b1018; border-left: 1px solid var(--line);
}
#theme-panel.open { transform: none; }
.theme-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
#close-themes {
  width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); color: #fff; font-size: 28px; flex-shrink: 0;
}
.theme-close-bar {
  position: sticky; bottom: 0; margin-top: 14px;
  width: 100%; border: 0; border-radius: 12px; padding: 14px;
  background: var(--accent); color: #071018; font-weight: 700;
}
.theme-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1px solid transparent; background: rgba(255,255,255,.03);
  color: var(--text); border-radius: 12px; padding: 11px; margin-bottom: 8px;
}
.theme-btn:hover, .theme-btn.active { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.theme-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; }

.rebuild-overlay {
  position: fixed; inset: 0; z-index: 300; background: #05070d;
  display: none; flex-direction: column; padding: 10px;
}
.rebuild-overlay.active { display: flex; }
.rebuild-skip {
  align-self: flex-end; margin: 4px 6px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); background: transparent; color: #cbd5e1; padding: 8px 14px;
}
.rebuild-stage {
  flex: 1; width: min(1200px, 100%); margin: 0 auto; min-height: 0;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px;
}
@media (max-width: 860px) { .rebuild-stage { grid-template-columns: 1fr; } }
.rebuild-ide, .rebuild-preview {
  background: #0a0f18; border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column; min-height: 220px;
}
.rebuild-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--mono); font-size: 11px; color: #94a3b8;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dots i:nth-child(1){background:#ef4444}
.dots i:nth-child(2){background:#f59e0b}
.dots i:nth-child(3){background:#22c55e}
.rebuild-code {
  margin: 0; padding: 14px; flex: 1; overflow: auto; min-height: 180px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: #dbe7f3; white-space: pre-wrap;
}
.t { color: #7dd3fc; } .a { color: #fcd34d; } .s { color: #86efac; } .c { color: #64748b; }
.cursor { display: inline-block; width: 7px; height: 1em; background: var(--accent); vertical-align: text-bottom; animation: blink .7s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.wire { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wire-b {
  border-radius: 8px; min-height: 28px; opacity: 0; transform: translateY(8px);
  border: 1px dashed rgba(255,255,255,.18); background: rgba(255,255,255,.03);
  transition: .3s ease;
}
.wire-b.on { opacity: 1; transform: none; border-style: solid; background: color-mix(in srgb, var(--accent) 18%, #0b1018); }
.wire-hero { flex: 1; min-height: 80px; }
.wire-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; min-height: 56px; border: 0; background: transparent; opacity: 1; transform: none; }
.wire-card { min-height: 56px; }

.hero { padding: 64px 0 28px; }
.kicker {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 5px 11px; border-radius: 999px; font-size: 12px; letter-spacing: .04em;
  border: 1px solid var(--line); color: var(--muted); margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3dd68c; }
h1 { font-family: var(--display); font-size: clamp(34px, 6.4vw, 68px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 650; max-width: 16ch; }
.lead { font-size: 17px; color: var(--muted); max-width: 620px; line-height: 1.65; margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trustline { margin-top: 22px; font-size: 13px; color: var(--muted); letter-spacing: .01em; }

.trustbar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.trustbar div { background: var(--bg); padding: 16px 14px; }
.trustbar b { display: block; font-family: var(--display); font-size: 18px; }
.trustbar span { color: var(--muted); font-size: 12px; }
@media (min-width: 800px) { .trustbar { grid-template-columns: repeat(4, 1fr); } }

section { padding: 72px 0; }
h2 { font-family: var(--display); font-size: clamp(26px, 3.6vw, 42px); margin: 0 0 10px; letter-spacing: -.03em; line-height: 1.12; max-width: 22ch; }
.sec-lead { color: var(--muted); max-width: 640px; margin: 0 0 28px; }

.problem-grid, .cards { display: grid; gap: 12px; }
@media (min-width: 800px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-2 { grid-template-columns: 1fr 1fr; }
}
.p-item, .card, .svc, .case, .step {
  padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
}
.p-item strong { display: block; margin-bottom: 6px; font-size: 15px; }
.p-item p { margin: 0; color: var(--muted); font-size: 14px; }
.card h3, .svc h3 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; }
.card:hover, .svc:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.sys {
  margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 16px;
}
.sys-row { display: grid; gap: 8px; }
@media (min-width: 800px) { .sys-row { grid-template-columns: repeat(4, 1fr); align-items: center; } }
.sys-n {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; font-size: 13px; font-weight: 650;
}
.sys-n small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; }

.svc { display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.svc .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .12em; }
.svc .who { color: var(--muted); font-size: 14px; margin: 0; }
.svc .result { font-size: 14px; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; color: var(--muted); }
.svc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.svc-foot b { font-family: var(--display); }

.steps { display: grid; gap: 12px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step .n { font-family: var(--mono); color: var(--accent); font-size: 12px; letter-spacing: .14em; }
.step h3 { margin: 8px 0 4px; font-size: 20px; }
.step .time { font-size: 13px; color: var(--text); font-weight: 650; }
.note { margin-top: 18px; color: var(--muted); font-size: 14px; }

.case .eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.case dl { display: grid; gap: 8px; margin: 14px 0 0; }
.case dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case dd { margin: 0; }
.kpi-empty {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px;
}
.kpi-empty span {
  border: 1px dashed var(--line); border-radius: 10px; padding: 10px; font-size: 12px; color: var(--muted);
}

.page-hero { padding: 80px 0 20px; }
.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; }
.check { width: 22px; height: 22px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }

.price-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { padding: 26px; border-radius: 18px; position: relative; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.price-card.featured { border-color: var(--accent); }
.tag { position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 800; letter-spacing: .1em; background: var(--accent); color: #071018; border-radius: 999px; padding: 4px 8px; }
.price { font-family: var(--display); font-size: 34px; margin: 4px 0; }
.price small { font-size: 14px; color: var(--muted); }
.price-card ul { padding-left: 18px; color: var(--muted); line-height: 1.7; margin: 8px 0 16px; }
.price-card .btn { margin-top: auto; }
.excl { font-size: 13px; color: var(--muted); }
.excl b { color: var(--text); }

.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.compare td:first-child, .compare th:first-child { position: sticky; left: 0; background: var(--bg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: transparent; color: var(--text);
  border-radius: 999px; padding: 8px 12px; font-size: 13px;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }

form { display: grid; gap: 14px; }
label { font-size: 13px; font-weight: 600; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--text); font: inherit;
}
textarea { min-height: 96px; resize: vertical; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { color: var(--muted); margin: 8px 0 0; }

footer { border-top: 1px solid var(--line); padding: 36px 0 24px; color: var(--muted); font-size: 13px; }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid a { display: block; padding: 3px 0; color: var(--muted); }
.foot-grid a:hover { color: var(--text); }
.foot-copy { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.mobile-cta {
  display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  padding: 8px; border-radius: 999px; background: #0c1016; border: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; }
body.themes-open .mobile-cta, body.rebuilding .mobile-cta { display: none; }

#live-stage { min-height: 70vh; padding: 12px 16px 40px; }
.preview-chip {
  position: sticky; top: 68px; z-index: 40; margin: 12px auto 0; width: min(1120px, calc(100% - 32px));
  display: none; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
}

body.theme-ecommerce { --accent:#10b981; --accent-2:#059669; --glow:rgba(16,185,129,.32); --display:"Space Grotesk",sans-serif; --radius: 20px; --bg:#06110c; --bg-2:#0b1a14; --card:#0f221a; }
body.theme-auto { --accent:#f59e0b; --accent-2:#b45309; --glow:rgba(245,158,11,.32); --display:"Oswald", Impact, sans-serif; --radius: 6px; --bg:#0c0a07; --bg-2:#16110a; --card:#1a140c; }
body.theme-photo { --accent:#ec4899; --accent-2:#9d174d; --glow:rgba(236,72,153,.32); --display:"Playfair Display", Georgia, serif; --radius: 2px; --bg:#12060d; --bg-2:#1a0b13; --card:#221018; }
body.theme-restaurant { --accent:#ef4444; --accent-2:#991b1b; --glow:rgba(239,68,68,.28); --display:"Playfair Display", serif; --radius: 4px; --bg:#140808; --bg-2:#1c0e0e; --card:#241212; }
body.theme-medical { --accent:#06b6d4; --accent-2:#0e7490; --glow:rgba(6,182,212,.3); --display:Inter,sans-serif; --radius: 16px; --bg:#061216; --bg-2:#0b1b21; --card:#102428; }
body.theme-realestate { --accent:#8b5cf6; --accent-2:#5b21b6; --glow:rgba(139,92,246,.3); --display:"Space Grotesk",sans-serif; --radius: 10px; --bg:#0c0916; --bg-2:#140f22; --card:#1a152c; }
body.theme-fitness { --accent:#22c55e; --accent-2:#15803d; --glow:rgba(34,197,94,.3); --display:Oswald,sans-serif; --radius: 0; --bg:#06140b; --bg-2:#0b1c12; --card:#102418; }
body.theme-law { --accent:#94a3b8; --accent-2:#475569; --glow:rgba(148,163,184,.25); --display:"Playfair Display",serif; --radius: 2px; --bg:#0b0d11; --bg-2:#14171d; --card:#1a1e26; }
body.theme-beauty { --accent:#d946ef; --accent-2:#a21caf; --glow:rgba(217,70,239,.3); --display:"Playfair Display",serif; --radius: 28px; --bg:#140816; --bg-2:#1d0d22; --card:#261428; }
body.theme-finance { --accent:#0ea5e9; --accent-2:#0369a1; --glow:rgba(14,165,233,.3); --display:Inter,sans-serif; --radius: 12px; --bg:#061018; --bg-2:#0b1822; --card:#102230; }

@media (max-width: 720px) {
  #theme-panel { width: 100vw; }
  .nav-right .btn-primary { display: none; }
  section { padding: 56px 0; }
  h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wire-b { opacity: 1; transform: none; }
}

#leistungen, #showcase, #ablauf, #problem, #cases { scroll-margin-top: 72px; }
h1 { max-width: 18ch; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-sys { position: relative; }
.hero-sys .layer {
  border: 1px solid var(--line); background: var(--card); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 10px;
  transform: translateX(calc(var(--s, 0) * 12px));
}
.hero-sys .layer b { display: block; font-family: var(--display); }
.hero-sys .layer span { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero-sys .l1 { --s: 0; } .hero-sys .l2 { --s: 1; } .hero-sys .l3 { --s: 2; } .hero-sys .l4 { --s: 3; }
#navbar.scrolled .nav-inner { padding: 8px 0; }

#to-top {
  position: fixed; right: 16px; bottom: 76px; z-index: 55;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  opacity: 0; pointer-events: none;
}
#to-top.show { opacity: 1; pointer-events: auto; }
@media (min-width: 800px) { #to-top { bottom: 24px; } }

.foot-mark {
  font-family: var(--display); font-size: clamp(72px, 14vw, 140px);
  line-height: .8; letter-spacing: -.06em; color: var(--text); opacity: .08;
  margin-bottom: 8px;
}
.foot-mark span { color: var(--accent); opacity: 1; }
.foot-grid strong { display: block; color: var(--text); margin-bottom: 8px; }
body.demo-full .mobile-cta { display: none; }
