/* gooddeploy.de v2 – bewusst dunkles Design (Entwickler-Werkzeug), Tokens aus brand/tokens.css abgeleitet.
   System-Schriften, keine externen Ressourcen. Animationen: app.js (Motion), abgeschaltet bei prefers-reduced-motion. */
:root {
  --bg: #07100D;
  --surface: #0C1814;
  --card: #0F1D18;
  --card-hi: #132621;
  --border: #1D2E28;
  --border-hi: #2B443B;
  --fg: #E8F0ED;
  --muted: #9AAEA7;
  --faint: #6F857E;
  --live: #3FCF9B;
  --live-deep: #0B7A5A;
  --preview: #8AAAFF;
  --warn: #F2C14E;
  --on-live: #06110D;
  --term-bg: #050B09;
  --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  color-scheme: dark;
}

* { 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(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--live); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--preview); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: 0.88em; background: rgba(138,170,255,0.09); border: 1px solid rgba(138,170,255,0.16); border-radius: 6px; padding: 1px 6px; color: #C9D6FF; }

.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Hintergrund: Raster + zwei weiche Lichter */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(232,240,237,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(232,240,237,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.glow-a { width: 620px; height: 620px; left: -160px; top: -220px; background: radial-gradient(circle, rgba(138,170,255,0.35), transparent 65%); }
.glow-b { width: 680px; height: 680px; right: -200px; top: 120px; background: radial-gradient(circle, rgba(63,207,155,0.28), transparent 65%); }

/* Kopf */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); background: rgba(7,16,13,0.72); border-bottom: 1px solid rgba(29,46,40,0.7); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.word { font-size: 1.22rem; letter-spacing: -0.03em; }
.word span { font-weight: 500; }
.word b { font-weight: 750; color: var(--live); }
.top nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--muted); font-size: 0.94rem; padding: 6px 10px; border-radius: 8px; transition: color .2s, background .2s; }
.top nav a:hover { color: var(--fg); background: rgba(232,240,237,0.06); text-decoration: none; }
.top nav a[aria-current="true"]:not(.nav-cta) { color: var(--live); }
.top nav .nav-cta { color: var(--on-live); background: var(--live); font-weight: 650; }
.top nav .nav-cta:hover { background: #63E0B2; color: var(--on-live); }
@media (max-width: 640px) { .top nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 88px 56px; }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 56px 32px; } }
.pill { display: inline-flex; align-items: center; gap: 9px; font-size: 0.86rem; color: var(--fg); border: 1px solid var(--border-hi); background: rgba(15,29,24,0.8); border-radius: 999px; padding: 6px 14px 6px 10px; }
.pill:hover { text-decoration: none; border-color: var(--live); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(63,207,155,0.18); }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 760; margin: 22px 0 20px; text-wrap: balance; }
.g-preview { background: linear-gradient(120deg, #B9CAFF, var(--preview)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-live { background: linear-gradient(120deg, #9BF2D0, var(--live)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 36rem; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 650; font-size: 1rem; border-radius: 10px; padding: 12px 20px; border: 1px solid transparent; transition: transform .15s ease, background .2s, border-color .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--live); color: var(--on-live); box-shadow: 0 8px 30px -8px rgba(63,207,155,0.55); }
.btn-primary:hover { background: #63E0B2; }
.btn-ghost { color: var(--fg); border-color: var(--border-hi); background: rgba(15,29,24,0.6); }
.btn-ghost:hover { border-color: var(--muted); }
button.btn { font-family: inherit; cursor: pointer; }
.oneliner { display: flex; align-items: center; gap: 8px; max-width: 100%; background: rgba(5,11,9,0.85); border: 1px solid var(--border); border-radius: 10px; padding: 6px 6px 6px 14px; }
.oneliner code { background: none; border: 0; padding: 0; color: var(--fg); white-space: nowrap; overflow-x: auto; min-width: 0; flex: 1; font-size: 0.86rem; }
.copy { font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--fg); background: var(--card-hi); border: 1px solid var(--border-hi); border-radius: 8px; padding: 6px 10px; cursor: pointer; flex: none; }
.copy:hover { border-color: var(--live); }

/* Terminal */
.term { margin: 0; min-width: 0; background: linear-gradient(180deg, rgba(19,38,33,0.9), rgba(5,11,9,0.95)); border: 1px solid var(--border-hi); border-radius: var(--radius); box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(63,207,155,0.06), 0 0 80px -20px rgba(63,207,155,0.18); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2B3A35; }
.term-bar b { margin-left: 10px; font-family: var(--mono); font-weight: 500; font-size: 0.78rem; color: var(--faint); }
.term pre { margin: 0; padding: 18px 18px 22px; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; color: #D6E3DE; white-space: pre; overflow-x: auto; min-height: 31em; }
@media (max-width: 520px) { .term pre { font-size: 0.72rem; min-height: 30em; } }
.t-p { color: var(--live); font-weight: 700; }
.t-ok { color: var(--live); }
.t-m { color: var(--faint); }
.t-q { color: var(--warn); }
.t-pv { color: var(--preview); }
.t-live { color: var(--live); font-weight: 650; }
.t-run { color: var(--preview); }
.caret { display: inline-block; width: 0.55em; height: 1.1em; vertical-align: -0.2em; background: var(--live); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Messwerte */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-block: 8px 24px; }
.stat { background: rgba(15,29,24,0.75); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 4px; }
.stat strong { font-size: 2rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.95rem; }
.stat-note { grid-column: 1 / -1; margin: 2px 0 0; color: var(--faint); font-size: 0.82rem; }
@media (max-width: 760px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* Abschnitte */
.section { padding-block: 88px 0; }
.section-head { max-width: 46rem; margin-bottom: 36px; }
.kicker { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--live); margin-bottom: 10px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 740; margin: 0 0 14px; text-wrap: balance; }
.section-head p, .why p, .install p, .pilot p { color: var(--muted); margin: 0 0 14px; max-width: 65ch; }
h3 { font-size: 1.12rem; letter-spacing: -0.015em; margin: 0 0 8px; }

/* Ablauf */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.flow::before { content: ""; position: absolute; top: 25px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--preview), var(--live)); opacity: 0.35; transform-origin: left; transform: scaleX(var(--flow, 1)); }
.flow-step { position: relative; background: rgba(15,29,24,0.75); border: 1px solid var(--border); border-radius: var(--radius); padding: 64px 22px 22px; }
.flow-step p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.flow-node { position: absolute; top: 8px; left: 22px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 750; font-family: var(--mono); color: var(--bg); background: var(--preview); box-shadow: 0 0 0 6px var(--bg); }
.flow-node.is-live { background: var(--live); }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow::before { display: none; } }

/* Vorteile */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .25s, transform .25s; }
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(63,207,155,0.13), transparent 70%); opacity: 0; transition: opacity .25s; pointer-events: none; }
.feature:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.feature:hover::before { opacity: 1; }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; color: var(--live); background: rgba(63,207,155,0.1); border: 1px solid rgba(63,207,155,0.22); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.note { color: var(--faint); font-size: 0.88rem; margin: 22px 0 0; }

/* Loslegen */
.install { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; background: linear-gradient(135deg, rgba(19,38,33,0.85), rgba(12,24,20,0.85)); border: 1px solid var(--border); border-radius: 20px; padding: 36px; }
@media (max-width: 860px) { .install { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; } }
.code { margin: 0; min-width: 0; overflow-x: auto; background: var(--term-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; font-family: var(--mono); font-size: 0.86rem; line-height: 1.75; color: var(--fg); }
.code .c { color: var(--faint); }

/* Warum */
.why { max-width: 52rem; }
.why a { color: var(--live); }

/* Pakete */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 34rem; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px 22px; transition: border-color .25s, transform .25s; }
.plan:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.plan-hi { border-color: rgba(63,207,155,0.55); background: radial-gradient(420px 220px at 50% 0%, rgba(63,207,155,0.13), transparent 70%), var(--card); box-shadow: 0 18px 50px -24px rgba(63,207,155,0.45); }
.plan-hi:hover { border-color: var(--live); }
.plan-badge { position: absolute; top: -12px; left: 22px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; color: var(--on-live); background: var(--live); border-radius: 999px; padding: 3px 12px; }
.plan h3 { margin: 0 0 4px; font-size: 1.3rem; }
.plan-for { color: var(--muted); margin: 0 0 14px; font-size: 0.95rem; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); font-weight: 650; }
.plan-price .amount { font-size: 2.2rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.plan-price .plan-sub { flex-basis: 100%; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan li { padding-left: 24px; position: relative; font-size: 0.96rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--live); font-weight: 700; }
.soon { display: inline-block; font-size: 0.72rem; font-weight: 650; color: var(--muted); border: 1px solid var(--border-hi); border-radius: 999px; padding: 0 8px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.plan-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.plan-actions .btn { padding-inline: 12px; font-size: 0.95rem; }
.btn-disabled, .btn-disabled:hover { color: var(--faint); background: transparent; border-color: var(--border); border-style: dashed; cursor: not-allowed; transform: none; }

/* Pilot */
.pilot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; background: radial-gradient(600px 300px at 90% 0%, rgba(63,207,155,0.14), transparent 70%), var(--card); border: 1px solid var(--border-hi); border-radius: 20px; padding: 36px; }
@media (max-width: 860px) { .pilot { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; } }
.pilot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pilot li { padding-left: 26px; position: relative; color: var(--fg); }
.pilot li::before { content: "✓"; position: absolute; left: 0; color: var(--live); font-weight: 700; }
.contact { display: grid; gap: 10px; justify-items: start; background: rgba(5,11,9,0.6); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.contact .addr { font-family: var(--mono); font-size: 1.05rem; user-select: all; overflow-wrap: anywhere; }
.contact small { color: var(--muted); font-size: 0.85rem; }

/* Anfrage (Dialog, nur mit JS) */
.ask { width: min(36rem, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0; color: var(--fg); background: var(--card); border: 1px solid var(--border-hi); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.ask::backdrop { background: rgba(3,8,6,0.72); backdrop-filter: blur(3px); }
.ask[open] { animation: ask-in .22s ease-out; }
@keyframes ask-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ask form { padding: 24px; }
.ask-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ask-head h2 { margin: 0; font-size: 1.35rem; }
.ask-close { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ask-close:hover { color: var(--fg); border-color: var(--border-hi); }
.ask-lead { color: var(--muted); margin: 6px 0 18px; font-size: 0.95rem; }
.ask-fields { display: grid; gap: 6px; }
.ask-fields > label { font-size: 0.88rem; font-weight: 600; margin-top: 8px; }
.ask-fields > label span { color: var(--live); }
.ask input[type=text], .ask input[type=email], .ask select, .ask textarea { width: 100%; font: inherit; font-size: 0.97rem; color: var(--fg); background: rgba(5,11,9,0.7); border: 1px solid var(--border-hi); border-radius: 10px; padding: 10px 12px; }
.ask textarea { resize: vertical; min-height: 6em; }
.ask input:focus-visible, .ask select:focus-visible, .ask textarea:focus-visible { outline: 2px solid var(--live); outline-offset: 1px; border-color: transparent; }
.ask [aria-invalid="true"] { border-color: var(--warn); }
.ask .consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 14px; font-size: 0.88rem; color: var(--muted); }
.ask .consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--live); }
.ask .consent a { color: var(--live); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ask-state { min-height: 1.4em; margin: 14px 0 0; font-size: 0.93rem; }
.ask-state.ok { color: var(--live); }
.ask-state.err { color: var(--warn); }
.ask-state a { color: inherit; }
.ask-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ask-actions .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Fuß */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 72px 40px; color: var(--faint); font-size: 0.88rem; }
.foot nav { display: flex; gap: 16px; }
.foot a { color: var(--muted); }

/* Einblenden (nur mit JS, siehe app.js) */
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js.no-motion [data-reveal], .js.reveal-all [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .caret { animation: none; }
  .feature, .btn, .plan { transition: none; }
  .ask[open] { animation: none; }
}
