/* ============================================================
   Flowcore Marketing-Site — geteiltes Design-System
   Eine Quelle für alle Seiten. Tokens + Komponenten.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #ffffff;
  --bg-soft:     #f6f7f9;
  --bg-card:     #ffffff;
  --fg:          #0b1221;
  --fg-muted:    #5b6472;
  --fg-subtle:   #8a93a3;
  --border:      #e6e8ec;
  --border-soft: #eef0f3;
  --primary:     #4f46e5;
  --primary-700: #4338ca;
  --cyan:        #22d3ee;
  --primary-dim: rgba(79, 70, 229, 0.08);
  --ring:        rgba(79, 70, 229, 0.35);
  --shadow:      0 1px 2px rgba(11,18,33,.04), 0 8px 24px rgba(11,18,33,.06);
  --shadow-lg:   0 2px 4px rgba(11,18,33,.04), 0 24px 48px rgba(11,18,33,.10);
  --grad:        linear-gradient(120deg, #4f46e5 0%, #22d3ee 100%);
}

html[data-theme="dark"] {
  --bg:          #070b14;
  --bg-soft:     #0c1320;
  --bg-card:     #0f1726;
  --fg:          #f3f5f9;
  --fg-muted:    #9aa6b8;
  --fg-subtle:   #6b7689;
  --border:      #1d273a;
  --border-soft: #161f2f;
  --primary:     #6f67f0;
  --primary-700: #5b54e0;
  --cyan:        #38dcf2;
  --primary-dim: rgba(111, 103, 240, 0.14);
  --ring:        rgba(111, 103, 240, 0.45);
  --shadow:      0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.4);
  --shadow-lg:   0 2px 6px rgba(0,0,0,.35), 0 28px 60px rgba(0,0,0,.55);
  --grad:        linear-gradient(120deg, #6f67f0 0%, #38dcf2 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11", "tnum";
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.3rem; border-radius: .6rem;
  font-weight: 600; font-size: .94rem; letter-spacing: -.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .18s ease, opacity .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff; background: var(--grad);
  box-shadow: 0 1px 2px rgba(79,70,229,.3), 0 10px 24px rgba(79,70,229,.28);
}
.btn-primary:hover { box-shadow: 0 1px 2px rgba(79,70,229,.3), 0 14px 30px rgba(79,70,229,.4); }
.btn-ghost { color: var(--fg); background: var(--bg-card); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--fg-subtle); }
.btn .arrow { display: inline-flex; transition: transform .15s ease; }
.btn .arrow svg { width: 1.05em; height: 1.05em; display: block; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { padding: .92rem 1.7rem; font-size: 1.02rem; }
.btn-white { background: #fff; color: var(--primary-700); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn-white:hover { box-shadow: 0 14px 36px rgba(0,0,0,.26); }
.btn-outline-white { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.2); }

/* ───────── Header ───────── */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand svg { width: 1.85rem; height: 1.85rem; border-radius: .5rem; display: block; }
.brand .core { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a.link { color: var(--fg-muted); font-size: .92rem; font-weight: 500; transition: color .15s ease; }
.nav-links a.link:hover, .nav-links a.link.is-active { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: .65rem; }
.theme-toggle {
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  border-radius: .55rem; border: 1px solid var(--border); background: var(--bg-card);
  cursor: pointer; color: var(--fg-muted); transition: color .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg-subtle); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (max-width: 920px) { .nav-links { display: none; } .nav-actions .hide-sm { display: none; } }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 5.5rem 0 4rem; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% 0 auto 0; height: 70%;
  background: radial-gradient(60% 80% at 50% 0%, var(--primary-dim), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner { max-width: 50rem; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .85rem; border-radius: 999px;
  background: var(--primary-dim); color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  font-size: .82rem; font-weight: 600; letter-spacing: .01em; margin-bottom: 1.6rem;
}
.badge .dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 var(--ring); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--ring); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

h1.hero-title { font-size: clamp(2.6rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
h1.hero-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--fg-muted); max-width: 40rem; line-height: 1.6; }
.hero-cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }
.hero-note { margin-top: 1.1rem; font-size: .85rem; color: var(--fg-subtle); }
.hero-note b { color: var(--fg-muted); font-weight: 600; }

/* ───────── Subpage-Hero (kleiner) ───────── */
.subhero { position: relative; padding: 3.6rem 0 2.4rem; overflow: hidden; }
.subhero .wrap { position: relative; z-index: 1; }
.subhero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 22ch; }
.subhero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subhero p { margin-top: 1.1rem; font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--fg-muted); max-width: 42rem; line-height: 1.6; }

/* ───────── Breadcrumb ───────── */
.crumbs { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--fg-subtle); margin-bottom: 1.4rem; }
.crumbs a { color: var(--fg-muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs .sep { opacity: .5; }

/* ───────── Trust strip ───────── */
.trust { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--bg-soft); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; align-items: center; justify-content: center; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.trust span { display: inline-flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 600; color: var(--fg-muted); }
.trust svg { width: 1.05rem; height: 1.05rem; color: var(--primary); }

/* ───────── Sections ───────── */
section.block { padding: 5.5rem 0; }
section.block.tight { padding: 3.5rem 0; }
section.block.alt { background: var(--bg-soft); }
.sec-head { max-width: 42rem; margin-bottom: 3rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: .8rem; }
h2.sec-title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
h3.sub-title { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; letter-spacing: -.02em; }
.sec-lead { margin-top: 1rem; font-size: 1.1rem; color: var(--fg-muted); line-height: 1.6; }

/* ───────── Feature-Grid ───────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid, .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 1.6rem; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.card .ico { width: 2.7rem; height: 2.7rem; border-radius: .7rem; display: grid; place-items: center; background: var(--primary-dim); color: var(--primary); margin-bottom: 1.1rem; }
.card .ico svg { width: 1.4rem; height: 1.4rem; }
.card h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .45rem; }
.card p { font-size: .94rem; color: var(--fg-muted); line-height: 1.55; }
.card .tag { display: inline-block; margin-top: .9rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); background: var(--primary-dim); padding: .2rem .55rem; border-radius: 999px; }

/* ───────── Domänen-Block (Funktionen) ───────── */
.domain { margin-top: 3.2rem; }
.domain:first-of-type { margin-top: 0; }
.domain-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.domain-head .d-ico { width: 2.4rem; height: 2.4rem; border-radius: .6rem; display: grid; place-items: center; background: var(--primary-dim); color: var(--primary); flex: none; }
.domain-head .d-ico svg { width: 1.3rem; height: 1.3rem; }
.domain-head h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.domain-head .count { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--fg-subtle); }

/* ───────── Split-Feature ───────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 2.2rem; } }
.split.reverse .visual { order: -1; }
@media (max-width: 880px) { .split.reverse .visual { order: 0; } }
.feat-list { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .9rem; }
.feat-list li { list-style: none; display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; color: var(--fg-muted); }
.feat-list .check { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--primary-dim); color: var(--primary); display: grid; place-items: center; margin-top: .1rem; }
.feat-list .check svg { width: .8rem; height: .8rem; }
.feat-list b { color: var(--fg); font-weight: 600; }

.visual { position: relative; border-radius: 1.25rem; border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow-lg); overflow: hidden; min-height: 18rem; }
.visual-grad { background: var(--grad); }
.mock { padding: 1.4rem; }
.mock-bar { display: flex; gap: .4rem; margin-bottom: 1rem; }
.mock-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255,255,255,.5); display: block; }
.chat-line { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: .8rem; padding: .7rem .9rem; font-size: .9rem; margin-bottom: .7rem; max-width: 88%; }
.chat-line.me { background: rgba(255,255,255,.9); color: var(--primary-700); margin-left: auto; }
.chat-line.ai { backdrop-filter: blur(4px); }

.tap-card { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center; text-align: center; color: #fff; min-height: 18rem; }
.tap-ring { width: 6rem; height: 6rem; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); display: grid; place-items: center; position: relative; }
.tap-ring::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); animation: ripple 2.2s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }
.tap-ring svg { width: 2.6rem; height: 2.6rem; }
.tap-name { font-weight: 700; font-size: 1.15rem; }
.tap-meta { font-size: .85rem; opacity: .85; }

/* ───────── Hardware-Hub-Diagramm ───────── */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 760px) { .hub { grid-template-columns: 1fr 1fr; } }
.hub-center {
  grid-column: 2; display: flex; flex-direction: column; gap: .6rem; align-items: center; justify-content: center; text-align: center;
  background: var(--grad); color: #fff; border-radius: 1rem; padding: 1.6rem; box-shadow: var(--shadow-lg); min-height: 9rem;
}
@media (max-width: 760px) { .hub-center { grid-column: 1 / -1; } }
.hub-center svg { width: 2.2rem; height: 2.2rem; }
.hub-center .t { font-weight: 700; font-size: 1.05rem; }
.hub-center .s { font-size: .82rem; opacity: .9; }
.hub-node { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: .9rem; background: var(--bg-card); box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.hub-node:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.hub-node .n-ico { width: 2.2rem; height: 2.2rem; border-radius: .55rem; background: var(--primary-dim); color: var(--primary); display: grid; place-items: center; }
.hub-node .n-ico svg { width: 1.25rem; height: 1.25rem; }
.hub-node .n-t { font-weight: 700; font-size: .98rem; }
.hub-node .n-s { font-size: .85rem; color: var(--fg-muted); line-height: 1.5; }

/* ───────── Chips / Branchen ───────── */
.branchen { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.chip { padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); font-size: .9rem; font-weight: 600; color: var(--fg-muted); transition: color .15s, border-color .15s, transform .15s; }
.chip:hover { color: var(--fg); border-color: var(--primary); transform: translateY(-2px); }

/* ───────── Module-Pills ───────── */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
@media (max-width: 760px) { .modules { grid-template-columns: repeat(2, 1fr); } }
.module { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: .7rem; background: var(--bg-card); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); }
.module .m-ico { width: 1.7rem; height: 1.7rem; border-radius: .45rem; background: var(--primary-dim); color: var(--primary); display: grid; place-items: center; flex: none; }
.module .m-ico svg { width: 1rem; height: 1rem; }

/* ───────── Steps (nummeriert) ───────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.5rem; border: 1px solid var(--border); border-radius: 1rem; background: var(--bg-card); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: var(--grad); color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: .9rem; }
.step h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.step p { font-size: .92rem; color: var(--fg-muted); line-height: 1.55; }

/* ───────── FAQ ───────── */
.faq { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.faq details { border: 1px solid var(--border); border-radius: .8rem; background: var(--bg-card); padding: .2rem .3rem; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.1rem; font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 1.2rem; height: 1.2rem; color: var(--primary); transition: transform .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.1rem 1.1rem; color: var(--fg-muted); font-size: .96rem; line-height: 1.6; }

/* ───────── Vergleichstabelle ───────── */
.compare { width: 100%; border-collapse: collapse; font-size: .94rem; }
.compare th, .compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-subtle); }
.compare td.yes { color: var(--primary); font-weight: 600; }
.compare tbody tr:hover { background: var(--bg-soft); }

/* ───────── Stats ───────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }
.stat .big { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { margin-top: .3rem; font-size: .9rem; color: var(--fg-muted); }

/* ───────── Prose ───────── */
.prose { max-width: 44rem; }
.prose p { color: var(--fg-muted); font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.1rem; }
.prose h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; margin: 1.8rem 0 .7rem; }
.prose b { color: var(--fg); font-weight: 600; }

/* ───────── CTA ───────── */
.cta-band { position: relative; border-radius: 1.5rem; overflow: hidden; background: var(--grad); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 80% 0%, rgba(255,255,255,.22), transparent 60%); pointer-events: none; }
.cta-band h2 { position: relative; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.cta-band p { position: relative; margin-top: .9rem; font-size: 1.1rem; opacity: .92; max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta-band .cta-actions { position: relative; margin-top: 2rem; display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
.cta-note { position: relative; margin-top: 1.3rem; font-size: .85rem; opacity: .85; }

/* ───────── Footer ───────── */
footer.site { border-top: 1px solid var(--border-soft); background: var(--bg-soft); padding: 3rem 0 2.5rem; }
.foot { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot .brand { margin-bottom: .7rem; }
.foot-tag { font-size: .9rem; color: var(--fg-muted); max-width: 22rem; line-height: 1.55; }
.foot-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.foot-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-subtle); margin-bottom: .9rem; }
.foot-col a { display: block; font-size: .92rem; color: var(--fg-muted); margin-bottom: .55rem; transition: color .15s; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .84rem; color: var(--fg-subtle); }
.foot-bottom .sep { margin: 0 .5rem; opacity: .5; }

/* ───────── Reveal-Animation ───────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge .dot, .tap-ring::after { animation: none; }
  html { scroll-behavior: auto; }
}
