/* Schriften selbst gehostet: keine Anfrage an Dritte */
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

/* Layout: dunkles „UV“-Band als Hero mit dem Agentennetz, danach ruhige Abschnitte
   auf der App-Fläche; Violett ist die Maschine, Amber ist der Mensch. */
:root {
  --bg: oklch(98.2% 0.006 294);
  --surface: oklch(99.5% 0.006 294);
  --line: oklch(89% 0.006 294);
  --fg: oklch(23% 0.006 294);
  --muted: oklch(49% 0.006 294);
  --violet: oklch(55% 0.19 294);
  --violet-hover: oklch(50% 0.19 294);
  --violet-soft: oklch(95.5% 0.024 294);
  --violet-line: oklch(86% 0.076 294);
  --violet-text: oklch(47% 0.18 294);
  --amber: oklch(74% 0.154 80);
  --amber-soft: oklch(95.5% 0.041 80);
  --amber-line: oklch(86% 0.122 80);
  --amber-text: oklch(47% 0.098 80);
  --green: oklch(60% 0.14 150);
  --on-violet: oklch(99.5% 0.006 294);
  /* Hero-Band: in beiden Modi gleich dunkel */
  --night: oklch(16% 0.035 294);
  --night-2: oklch(21% 0.06 294);
  --night-line: oklch(42% 0.12 294);
  --night-fg: oklch(95% 0.03 294);
  --night-muted: oklch(78% 0.07 294);
  --glow: oklch(55% 0.19 294 / 0.35);

  --font-display: "Manrope", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(17% 0.01 294);
    --surface: oklch(20.5% 0.01 294);
    --line: oklch(35.5% 0.01 294);
    --fg: oklch(94.5% 0.01 294);
    --muted: oklch(77.5% 0.01 294);
    --violet-hover: oklch(61% 0.19 294);
    --violet-soft: oklch(25% 0.076 294);
    --violet-line: oklch(42% 0.152 294);
    --violet-text: oklch(80% 0.112 294);
    --amber-soft: oklch(26% 0.05 80);
    --amber-line: oklch(45% 0.09 80);
    --amber-text: oklch(82% 0.13 80);
    --night: oklch(13% 0.035 294);
    --night-2: oklch(18% 0.06 294);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: oklch(17% 0.01 294);
  --surface: oklch(20.5% 0.01 294);
  --line: oklch(35.5% 0.01 294);
  --fg: oklch(94.5% 0.01 294);
  --muted: oklch(77.5% 0.01 294);
  --violet-hover: oklch(61% 0.19 294);
  --violet-soft: oklch(25% 0.076 294);
  --violet-line: oklch(42% 0.152 294);
  --violet-text: oklch(80% 0.112 294);
  --amber-soft: oklch(26% 0.05 80);
  --amber-line: oklch(45% 0.09 80);
  --amber-text: oklch(82% 0.13 80);
  --night: oklch(13% 0.035 294);
  --night-2: oklch(18% 0.06 294);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.mono { font-family: var(--font-mono); font-size: 0.8125em; letter-spacing: 0; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 15px/1 var(--font-body);
  padding: 12px 18px; border-radius: 6px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--violet); color: var(--on-violet); }
.btn-primary:hover { background: var(--violet-hover); }
.btn-ghost-night { color: var(--night-fg); border-color: var(--night-line); }
.btn-ghost-night:hover { border-color: var(--night-muted); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60% 70% at 78% 40%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--night), var(--night-2));
  color: var(--night-fg);
  overflow: hidden;
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night-fg); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .wordmark { height: 18px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a { color: var(--night-muted); text-decoration: none; }
.nav-links a:hover { color: var(--night-fg); }
.nav-links .btn { padding: 9px 14px; font-size: 14px; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px; align-items: center;
  padding-block: 56px 72px;
}
.eyebrow {
  font: 500 12px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
}
.hero .eyebrow { color: var(--night-muted); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.98; letter-spacing: -0.035em;
  margin-top: 20px;
}
.hero h1 .light { font-weight: 300; display: block; }
.hero h1 .bold { font-weight: 800; display: block; }
.hero h1 .bold em { font-style: normal; color: var(--amber); }
.hero .lede {
  margin-top: 28px; max-width: 34em;
  font-size: 18px; line-height: 1.6; color: var(--night-muted);
}
.hero .lede strong { color: var(--night-fg); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 40px; padding: 0; list-style: none;
  font-size: 13px; color: var(--night-muted);
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); flex: none; }
.dot.amber { background: var(--amber); }
.dot.green { background: var(--green); }

.net-frame { position: relative; min-width: 0; }
.net-status {
  position: absolute; top: 0; left: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--night-fg);
  padding: 6px 10px; border-radius: 999px; background: oklch(25% 0.08 294 / 0.8);
  border: 1px solid var(--night-line);
}
.pulse { position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--violet); opacity: 0;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
.net { width: 100%; height: auto; display: block; }
.net text { font-family: var(--font-body); }
.net .lbl { fill: var(--night-fg); font-size: 13px; font-weight: 500; }
.net .sub { fill: var(--night-muted); font-size: 11px; font-family: var(--font-mono); }
.net .edge { fill: none; stroke: var(--night-line); stroke-width: 1.5; }
.net .edge.ask { stroke: var(--amber); stroke-opacity: 0.45; stroke-dasharray: 3 5; }
.net .edge.future { stroke-dasharray: 4 6; }
.net .node { fill: var(--night-2); stroke: var(--violet); stroke-width: 2; }
.net .node.core { fill: var(--violet); stroke: oklch(80% 0.112 294); }
.net .node.you { fill: var(--amber); stroke: oklch(86% 0.122 80); }
.net .node.future { stroke-dasharray: 4 5; stroke: var(--night-muted); fill: transparent; }
.net .packet { fill: oklch(86% 0.076 294); }
.net .packet.ask { fill: var(--amber); }
.net .ring { fill: none; stroke: var(--violet); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- Abschnitte ---------- */
section.block { padding-block: 96px; border-bottom: 1px solid var(--line); }
.block-head { max-width: 640px; }
.block-head .eyebrow { color: var(--violet-text); }
.block-head.amber .eyebrow { color: var(--amber-text); }
.block-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.025em;
  margin-top: 14px;
}
.block-head h2 .light { font-weight: 300; }
.block-head p { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 36em; }

/* Netzwerk: die Agenten */
.agents {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin-top: 48px;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.agent { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.agent-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.agent h3 { font: 600 16px/1.3 var(--font-body); }
.agent p { font-size: 15px; color: var(--muted); }
.agent .scope {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--violet-text);
  background: var(--violet-soft); padding: 3px 7px; border-radius: 999px; white-space: nowrap;
}
.agent .scope.firm { color: var(--muted); background: var(--bg); border: 1px solid var(--line); }

.handover {
  margin-top: 40px; padding: 0; list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.handover li {
  counter-increment: step; position: relative; min-width: 0;
  padding-top: 34px; font-size: 14px; color: var(--muted);
}
.handover li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  font: 500 12px/1 var(--font-mono); color: var(--violet-text); background: var(--violet-soft);
  border: 1px solid var(--violet-line);
}
.handover li.you::before { color: var(--amber-text); background: var(--amber-soft); border-color: var(--amber-line); }
.handover li::after {
  content: ""; position: absolute; top: 12px; left: 32px; right: -4px; height: 1px; background: var(--violet-line);
}
.handover li:last-child::after { display: none; }
.handover b { display: block; color: var(--fg); font-weight: 600; margin-bottom: 4px; }

/* Selbstlernend: Workflows */
.learn-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start;
  margin-top: 48px;
}
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; }
.steps .n {
  font: 300 30px/1 var(--font-display); color: var(--violet-text);
}
.steps h3 { font: 600 17px/1.3 var(--font-body); }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.proof {
  margin-top: 36px; padding: 18px 20px; border-radius: 12px;
  background: var(--violet-soft); border: 1px solid var(--violet-line); font-size: 15px;
}
.proof b { font-weight: 600; }

.window {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 2px oklch(20% 0.02 294 / 0.06), 0 12px 32px -12px oklch(20% 0.05 294 / 0.18);
  overflow: hidden; min-width: 0;
}
.window-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.window-head .title { font-weight: 600; }
.window-head .meta { color: var(--muted); font-size: 12px; }
.chat { padding: 20px; display: grid; gap: 16px; font-size: 14.5px; line-height: 1.55; }
.msg-me {
  justify-self: end; max-width: 85%;
  background: var(--violet-soft); padding: 10px 14px; border-radius: 8px;
}
.msg-agent { max-width: 92%; }
.msg-agent .steps-line { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.msg-agent code { font-family: var(--font-mono); font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.versions { border-top: 1px solid var(--line); }
.versions-head { padding: 12px 20px 4px; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.version {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
  padding: 10px 20px; font-size: 14px; border-top: 1px solid var(--line);
}
.version:first-of-type { border-top: 0; }
.version .v { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.version.new .v { color: var(--violet-text); font-weight: 500; }
.version .who { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.example-tag { font-size: 11.5px; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }

/* Kontrolle: Entscheidungskarte */
.decision {
  margin-top: 48px;
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.decision > div { padding: 22px; min-width: 0; }
.d-kind { background: var(--amber-soft); border-right: 1px solid var(--amber-line); display: flex; flex-direction: column; gap: 6px; }
.d-kind .k { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--amber-text); font-size: 14px; }
.d-kind .t { font-size: 12px; color: var(--amber-text); opacity: 0.85; }
.d-main h3 { font: 600 17px/1.35 var(--font-body); }
.d-origin { margin-top: 4px; font-size: 13px; color: var(--muted); }
.d-will { margin-top: 16px; font-size: 14.5px; }
.d-will b { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--bg); overflow-wrap: anywhere;
}
.d-actions { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); }
.d-actions .btn { justify-content: center; font-size: 14px; padding: 10px 14px; }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { color: oklch(55% 0.2 25); }

.guarantees {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 48px;
}
.guarantees h3 { font: 600 15px/1.35 var(--font-body); display: flex; align-items: center; gap: 8px; }
.guarantees p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* Alltag */
.days {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin-top: 48px;
}
.day { border-top: 1px solid var(--line); padding-top: 18px; min-width: 0; }
.day h3 { font: 600 16px/1.3 var(--font-body); }
.day p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.day .ex { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--violet-text); }

/* Sicherheit */
.security {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 48px;
  background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.security > div { background: var(--surface); padding: 26px; min-width: 0; }
.security h3 { font: 600 16px/1.3 var(--font-body); }
.security p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* Abschluss */
.closing { padding-block: 104px; text-align: left; }
.closing h2 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.03em; max-width: 14em;
}
.closing h2 .light { font-weight: 300; }
.closing h2 .bold { font-weight: 800; }
.closing p { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 34em; }
.closing .btn { margin-top: 32px; }
footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Schmal ---------- */
@media (max-width: 960px) {
  .hero-grid, .learn-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-block: 32px 56px; }
  .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handover { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .handover li { padding-top: 0; padding-left: 40px; }
  .handover li::after { display: none; }
  .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision { grid-template-columns: minmax(0, 1fr); }
  .d-kind { border-right: 0; border-bottom: 1px solid var(--amber-line); flex-direction: row; justify-content: space-between; align-items: center; }
  .d-actions { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  section.block { padding-block: 64px; }
  .agents, .guarantees, .days, .security { grid-template-columns: minmax(0, 1fr); }
  .hero .lede, .block-head p, .closing p { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse::after, .net .ring { animation: none; }
  .btn { transition: none; }
}

/* ---------- Fußzeile und Rechtstexte ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current="page"] { color: var(--fg); }

.legal-hero { background: linear-gradient(180deg, var(--night), var(--night-2)); color: var(--night-fg); }
.legal-hero .nav-links a { color: var(--night-muted); }
.legal-hero .nav-links a:hover { color: var(--night-fg); }
.legal-hero .title-row { padding-block: 32px 48px; }
.legal-hero .eyebrow { color: var(--night-muted); }
.legal-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; margin-top: 12px;
}
.legal { max-width: 46rem; padding-block: 56px 96px; }
.legal h2 {
  font: 600 20px/1.3 var(--font-body); margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font: 600 16px/1.35 var(--font-body); margin-top: 28px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.65; }
.legal p { margin-top: 12px; }
.legal ul, .legal ol { margin: 12px 0 0; padding-left: 1.3em; display: grid; gap: 4px; }
.legal a { color: var(--violet-text); overflow-wrap: anywhere; }
.legal .num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-right: 8px; }
.legal address { font-style: normal; margin-top: 12px; line-height: 1.65; }
.facts { margin: 16px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; font-size: 15.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.legal .note {
  margin-top: 20px; padding: 14px 16px; border-radius: 8px;
  background: var(--violet-soft); border: 1px solid var(--violet-line); font-size: 15px;
}
.legal .stand { margin-top: 48px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}
