/* Any.Trade-Ökosystem · Layout: ein Kassenbon als Leitmotiv im Kopf, danach ruhige Spalten auf Papier; Kern-und-Satelliten-Diagramm als Mitte */
:root {
  --paper: #f3f2ec;
  --surface: #fbfaf6;
  --ink: #16211c;
  --muted: #56645d;
  --line: #d5d7cd;
  --forest: #1f4b3c;
  --forest-soft: #e2ebe5;
  --thermal: #fdfdf9;
  --ok: #2c7a4b;
  --wip: #a8650f;
  --plan: #50607e;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1512;
    --surface: #161e1a;
    --ink: #e6ebe7;
    --muted: #9aa8a0;
    --line: #2b3631;
    --forest: #86c9a8;
    --forest-soft: #1b2b24;
    --thermal: #1c2420;
    --ok: #6fc28f;
    --wip: #e2a85a;
    --plan: #9fb0d4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1512;
  --surface: #161e1a;
  --ink: #e6ebe7;
  --muted: #9aa8a0;
  --line: #2b3631;
  --forest: #86c9a8;
  --forest-soft: #1b2b24;
  --thermal: #1c2420;
  --ok: #6fc28f;
  --wip: #e2a85a;
  --plan: #9fb0d4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.08; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--forest); }
a:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.num { font-variant-numeric: tabular-nums; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 56px; overflow-x: auto; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; white-space: nowrap; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--forest); color: var(--paper); display: grid; place-items: center; font-size: 15px; }
.nav ul { list-style: none; display: flex; gap: 20px; margin: 0 0 0 auto; padding: 0; }
.nav li a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav li a:hover { color: var(--ink); }

/* Kopf */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; letter-spacing: -0.035em; margin: 18px 0 26px; }
.hero h1 em { font-style: normal; color: var(--forest); }
.lead { font-size: 20px; line-height: 1.55; max-width: 34em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 34px; font-size: 15px; color: var(--muted); }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }

/* Kassenbon */
.printer { position: relative; padding-top: 14px; }
.printer::before { content: ""; position: absolute; top: 0; left: -14px; right: -14px; height: 18px; background: var(--ink); border-radius: 9px; opacity: 0.9; z-index: 2; }
.receipt-clip { overflow: hidden; position: relative; z-index: 1; margin-top: -4px; }
.receipt {
  background: var(--thermal);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.55;
  padding: 26px 24px 30px;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.35);
  animation: print 1.6s cubic-bezier(.3,.7,.25,1) both;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
}
@keyframes print { from { transform: translateY(-62%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .receipt { animation: none; } }
.receipt .c { text-align: center; }
.receipt .big { font-weight: 500; font-size: 16px; letter-spacing: 0.08em; }
.receipt hr { border: 0; border-top: 1.5px dashed var(--muted); margin: 12px 0; opacity: 0.6; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .row span:last-child { text-align: right; white-space: nowrap; }
.receipt .sub { color: var(--muted); font-size: 12px; padding-left: 2ch; }
.receipt .sum { font-weight: 500; font-size: 15px; }
.receipt .qr { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; margin-top: 4px; }
.receipt .qr svg { width: 64px; height: 64px; }
.receipt .qr p { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* Abschnitte */
section.block { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin-bottom: 48px; }
.section-head .eyebrow { padding-top: 12px; }
.section-head p { margin-top: 18px; max-width: 40em; color: var(--muted); font-size: 18px; }

/* Ausgangslage */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.problem { padding: 24px 28px 8px 0; }
.problem + .problem { padding-left: 28px; border-left: 1px solid var(--line); }
.problem h3 { font-size: 19px; margin-bottom: 10px; }
.problem p { color: var(--muted); font-size: 16px; }

/* Diagramm */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 720px; height: auto; }
.diagram .box { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.diagram .core { fill: var(--forest); stroke: var(--forest); }
.diagram .plan { stroke-dasharray: 6 5; stroke: var(--plan); }
.diagram .shared { fill: var(--forest-soft); stroke: var(--forest); stroke-width: 1.4; }
.diagram .t1 { font-family: var(--font-display); font-weight: 700; font-size: 21px; fill: var(--ink); }
.diagram .t2 { font-family: var(--font-body); font-size: 13.5px; fill: var(--muted); }
.diagram .core-t1 { fill: var(--paper); }
.diagram .core-t2 { fill: var(--paper); opacity: 0.82; }
.diagram .link { stroke: var(--ink); stroke-width: 1.6; fill: none; }
.diagram .link-plan { stroke: var(--plan); stroke-width: 1.6; fill: none; stroke-dasharray: 6 5; }
.diagram .label { font-family: var(--font-mono); font-size: 11.5px; fill: var(--ink); }
.diagram .label-bg { fill: var(--surface); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 28px; height: 0; border-top: 2px solid var(--ink); }
.legend i.dash { border-top: 2px dashed var(--plan); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.principles h3 { font-size: 18px; margin-bottom: 8px; }
.principles p { font-size: 16px; color: var(--muted); }

/* Produkte */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.product header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.product .kind { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product h3 { font-size: 28px; letter-spacing: -0.02em; }
.product p { color: var(--muted); font-size: 16px; }
.product ul { margin: 0; padding-left: 18px; font-size: 15.5px; display: grid; gap: 4px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); }
.pill.wip { color: var(--wip); }
.pill.plan { color: var(--plan); }
.pill.plan::before { background: transparent; border: 1.5px solid currentColor; width: 5px; height: 5px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Module */
.modmap { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.modrow { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.modrow h3 { font-size: 22px; }
.modrow h3 small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.chip.base { background: var(--forest); border-color: var(--forest); color: var(--paper); font-weight: 600; }
.chip.base::before { background: var(--paper); }
.chip.plan { border-style: dashed; color: var(--muted); }
.chip.plan::before { background: transparent; border: 1.5px solid var(--plan); width: 6px; height: 6px; }
.modkey { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.modkey span { display: inline-flex; align-items: center; gap: 8px; }
.modkey i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.modkey i.p { background: transparent; border: 1.5px solid var(--plan); width: 6px; height: 6px; }

.split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.split > div { border-top: 3px solid var(--forest); padding-top: 18px; }
.split h3 { font-size: 20px; margin-bottom: 8px; }
.split p { font-size: 16px; color: var(--muted); }

.extend { margin-top: 56px; padding: 32px; border-radius: 14px; background: var(--forest-soft); display: grid; gap: 24px; }
.extend-head { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; }
.extend-head h3 { font-size: 26px; }
.extend-head p { font-size: 16.5px; max-width: 46em; }
.extend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.extend-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.extend-grid strong { font-family: var(--font-display); font-size: 17px; }
.extend-grid span { font-size: 14.5px; color: var(--muted); }

/* Recht */
.law-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.law-item { padding: 20px 0; border-top: 1px solid var(--line); }
.law-item h3 { font-size: 18px; margin-bottom: 6px; }
.law-item p { font-size: 15.5px; color: var(--muted); }

/* Markt */
.markets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.market { border-top: 3px solid var(--forest); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.market h3 { font-size: 20px; }
.market p { font-size: 15.5px; color: var(--muted); }
.market .pill { align-self: flex-start; }

/* Modell */
.model { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.model ul { list-style: none; padding: 0; margin: 0; }
.model li { padding: 16px 0; border-top: 1px solid var(--line); }
.model li strong { display: block; font-size: 17px; }
.model li span { color: var(--muted); font-size: 15.5px; }
.callout { background: var(--forest); color: var(--paper); border-radius: 12px; padding: 28px 30px; align-self: start; }
.callout h3 { font-size: 22px; margin-bottom: 10px; }
.callout p { opacity: 0.88; font-size: 16px; }
.callout p + p { margin-top: 12px; }

/* Fahrplan */
.roadmap { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.roadmap li { counter-increment: step; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.roadmap li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 15px; color: var(--muted); }
.roadmap h3 { font-size: 20px; margin-bottom: 4px; }
.roadmap p { color: var(--muted); font-size: 15.5px; }

footer { padding: 48px 0 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .printer { max-width: 440px; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles, .split, .model, .extend-head { grid-template-columns: 1fr; }
  .extend-head { gap: 10px; }
  .extend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modrow { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 56px; }
  section.block { padding: 60px 0; }
  .problems, .products, .law-grid, .shots, .markets, .extend-grid { grid-template-columns: 1fr; }
  .problem + .problem { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .extend { padding: 22px; }
  .roadmap li { grid-template-columns: 40px minmax(0, 1fr); }
  .roadmap li .pill { grid-column: 2; justify-self: start; }
  .nav ul { gap: 14px; }
}
.section-head { align-items: baseline; margin-bottom: 40px; }
.section-head .eyebrow { padding-top: 0; }
.extend-grid div { padding: 14px 18px; }

/* Unterseiten Impressum und Datenschutz */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.todo { background: color-mix(in srgb, var(--wip) 18%, transparent); padding: 0 4px; border-radius: 3px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* KI-Auswertungen */
.ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ai-demo { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 26px 28px; display: grid; gap: 16px; }
.ai-tag { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.7; }
.ai-q { justify-self: end; max-width: 85%; background: color-mix(in srgb, var(--paper) 14%, transparent); border-radius: 12px 12px 2px 12px; padding: 12px 16px; font-size: 16px; }
.ai-a { max-width: 90%; background: var(--paper); color: var(--ink); border-radius: 12px 12px 12px 2px; padding: 16px; display: grid; gap: 12px; }
.ai-a svg { width: 100%; height: 64px; overflow: visible; }
.ai-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.ai-prev { stroke: var(--muted); stroke-width: 2; fill: none; stroke-dasharray: 4 4; }
.ai-now { stroke: var(--forest); stroke-width: 2.5; fill: none; }

.ai-a p { font-size: 15px; }
.ai-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.ai-points div { border-top: 3px solid var(--forest); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.ai-points strong { font-family: var(--font-display); font-size: 19px; }
.ai-points span { font-size: 15px; color: var(--muted); }
.ai-note { grid-column: 1 / -1; font-size: 15px; color: var(--muted); padding: 12px 16px; border: 1.5px dashed var(--line); border-radius: 10px; }
@media (max-width: 960px) { .ai { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .ai-points { grid-template-columns: 1fr; } .ai-q, .ai-a { max-width: 100%; } }

.ai-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.ai-mode { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.ai-mode-kind { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--forest); }
.ai-mode h3 { font-size: 21px; }
.ai-mode p { font-size: 15.5px; color: var(--muted); }
.ai-mode .ai-cost { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: var(--wip); font-weight: 600; }
.ai-foot { margin-top: 16px; font-size: 15px; color: var(--muted); }
@media (max-width: 720px) { .ai-modes { grid-template-columns: 1fr; } }
