/* ============================================================================
   SupportFlowAI — Marketing-/Info-Website (wwwroot/*.html)
   Eigenständiges Stylesheet, unabhängig von app.css (das echte Anwendungs-UI
   mit seinen zehn wählbaren Admin-Themes). Eigene Design-Sprache: ruhige,
   "weiche" SaaS-Optik mit Glow-Schatten statt harter Offset-Schatten, Cyan/
   Koralle als Markenfarben (Wasser-/Flow-Metapher zu "SupportFlow"), reine
   Sans-Serif-Typografie (kein Serif-Header-Look). Strukturell an der
   TeamPilotAI-Marketingseite orientiert (gleiche Bausteine: Hero, Kernvorteile,
   Ablaufschritte, Feature-Kacheln, CTA, Rechts-/Doku-Seiten), visuell bewusst
   eigenständig.
   ========================================================================= */

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

:root {
  --ink: #071019;
  --surface: #0D1C27;
  --surface2: #123244;
  --border: #1E3D4D;
  --cyan: #2DD4E0;
  --cyan-h: #5CE1EA;
  --coral: #FF8A5B;
  --coral-h: #FFA57D;
  --paper: #EAF7F6;
  --muted: #7FA6B0;
  --ok: #34D399;
  --warn: #FBBF24;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(45,212,224,.10), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(255,138,91,.07), transparent 55%);
  background-repeat: no-repeat;
}

a { color: var(--cyan); text-decoration: none; }
strong { color: var(--paper); }

/* ── NAV ─────────────────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, 5vw);
  height: 64px;
  background: rgba(7,16,25,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30,61,77,.7);
  gap: 24px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--paper);
  flex-shrink: 0;
}
.nav-logo a { display: inline-flex; align-items: baseline; }
.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  overflow-x: auto;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a.is-current { color: var(--paper); }
.nav-links a.is-current { position: relative; }
.nav-links a.is-current::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -21px;
  height: 2px;
  background: var(--cyan);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04222A;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: filter .15s, transform .15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); color: #04222A; }

/* ── HERO ────────────────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 128px max(24px, 5vw) 88px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 26px;
  padding: 6px 14px;
  border: 1px solid rgba(255,138,91,.3);
  background: rgba(255,138,91,.07);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--paper);
  text-wrap: balance;
  max-width: 840px;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 580px;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04222A;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.005em;
  box-shadow: 0 10px 30px -8px rgba(45,212,224,.5);
  transition: filter .15s, transform .15s;
}
.cta-primary:hover { filter: brightness(1.08); transform: translateY(-2px); color: #04222A; }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--paper);
  font-size: .95rem;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.cta-secondary:hover { border-color: var(--cyan); background: rgba(45,212,224,.06); }

.hero-note {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
}
.hero-note strong { color: var(--paper); }

/* Kompakte Hero-Variante für Doku-/Rechtsseiten */
.doc-hero {
  min-height: auto;
  padding: 144px max(24px, 5vw) 64px;
}
.doc-hero .hero-sub { margin-bottom: 0; }

.doc-breadcrumb {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.doc-breadcrumb a { color: var(--cyan); }

/* ── MAIL-FLOW-PIPELINE (Hero-Visual) ───────────────────────────────────────
   Eigenständiges Kernstück statt eines Chat-/Feed-Mockups: zeigt den
   tatsächlichen SupportFlowAI-Verarbeitungsweg einer E-Mail als horizontale
   Kette. JS (landing.js) hebt die Schritte nacheinander hervor, ohne JS
   bleibt die Kette vollständig lesbar (kein Funktionsverlust). */

.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 8px auto 0;
  max-width: 900px;
  width: 100%;
  overflow-x: auto;
  padding: 4px 4px 14px;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.pipeline-node {
  width: 104px;
  padding: 14px 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  transition: border-color .3s, box-shadow .3s, background .3s, transform .3s;
}
.pipeline-node-icon {
  font-size: 1.35rem;
  margin-bottom: 6px;
  display: block;
  filter: grayscale(1) opacity(.45);
  transition: filter .3s;
}
.pipeline-node-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  transition: color .3s;
}

.pipeline-step.is-active .pipeline-node {
  border-color: var(--cyan);
  background: rgba(45,212,224,.09);
  box-shadow: 0 0 28px rgba(45,212,224,.22);
  transform: translateY(-3px);
}
.pipeline-step.is-active .pipeline-node-icon { filter: none; }
.pipeline-step.is-active .pipeline-node-label { color: var(--paper); }

.pipeline-step.is-done .pipeline-node {
  border-color: var(--coral);
  background: rgba(255,138,91,.08);
  box-shadow: 0 0 24px rgba(255,138,91,.18);
}
.pipeline-step.is-done .pipeline-node-icon { filter: none; }
.pipeline-step.is-done .pipeline-node-label { color: var(--coral); }

.pipeline-arrow {
  width: 26px;
  height: 2px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background .4s;
}
.pipeline-arrow::after {
  content: '';
  position: absolute;
  right: -4px; top: -3px;
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--border);
  transition: border-left-color .4s;
}
.pipeline-arrow.is-active { background: var(--cyan); }
.pipeline-arrow.is-active::after { border-left-color: var(--cyan); }

/* ── SECTION SHARED ──────────────────────────────────────────────────────── */

section { padding: 104px max(24px, 5vw); }

.section-eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.18;
  text-wrap: balance;
  color: var(--paper);
  margin-bottom: 20px;
}

.section-intro {
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 60px;
}

/* ── KERNVORTEILE / CAP-GRID ─────────────────────────────────────────────── */

.capabilities { background: var(--surface); }

.cap-inner { max-width: 1120px; margin: 0 auto; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.cap-card {
  background: var(--ink);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 16px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, transform .18s, box-shadow .18s, background .2s;
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(45,212,224,.35);
  background: var(--surface2);
}

.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(45,212,224,.1);
  font-size: 1.25rem;
  line-height: 1;
}

.cap-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -.01em;
}

.cap-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.cap-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cap-tag {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .05em;
  color: var(--cyan);
  background: rgba(45,212,224,.1);
  border: 1px solid rgba(45,212,224,.22);
  border-radius: 999px;
  padding: 4px 11px;
}

/* ── ABLAUF / NUMMERIERTE SCHRITTE (Timeline) ───────────────────────────────
   Vertikale Linie mit runden Nummern-Markern statt riesiger Eckziffer — klar
   anderes Motiv als das Vorbild, funktional gleichwertig (jeder Schritt
   trägt seine Nummer sichtbar). */

.how-inner { max-width: 1120px; margin: 0 auto; }

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px 32px;
  counter-reset: steps;
}

.how-steps.single-column {
  grid-template-columns: 1fr;
  max-width: 740px;
  gap: 0;
  border-left: 2px solid var(--border);
  margin-left: 20px;
}

.how-step {
  counter-increment: steps;
  position: relative;
  padding-top: 4px;
}

.how-steps.single-column .how-step {
  padding: 0 0 40px 40px;
}
.how-steps.single-column .how-step:last-child { padding-bottom: 4px; }

.how-step::before {
  content: counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
}

.how-steps.single-column .how-step::before {
  position: absolute;
  left: -21px; top: 0;
  margin-bottom: 0;
  background: var(--ink);
}

.how-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.how-step-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

.how-step-desc code, .cap-desc code, .callout code, .feature-desc code, .doc-prose code {
  font-family: var(--mono);
  font-size: .85em;
  color: var(--paper);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ── FEATURE-REIHEN (abwechselnd) ────────────────────────────────────────── */

.features { background: var(--surface); }
.features-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.features-inner .feature-row:last-child { border-bottom: none; }
.feature-row.is-reverse .feature-copy { order: 2; }
.feature-row.is-reverse .feature-visual { order: 1; }

.feature-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--paper);
  margin-bottom: 12px;
}

.feature-desc { font-size: .95rem; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }

.feature-list { display: flex; flex-direction: column; gap: 9px; }
.feature-list li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.55;
}
.feature-list li::before {
  content: '✓';
  color: var(--ok);
  font-weight: 800;
  flex-shrink: 0;
}

.feature-visual {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
}
.mock-row strong { color: var(--paper); font-size: .8rem; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mock-dot.ok { background: var(--ok); }
.mock-dot.warn { background: var(--warn); }
.mock-dot.cyan { background: var(--cyan); }
.mock-dot.coral { background: var(--coral); }

.mock-bar-track { flex: 1; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.mock-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--coral)); }

/* ── PREISE ──────────────────────────────────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.price-card {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.price-card.is-highlight {
  border-color: var(--cyan);
  background: linear-gradient(160deg, rgba(45,212,224,.09), var(--ink) 55%);
  box-shadow: 0 20px 50px -22px rgba(45,212,224,.4);
}

.price-card-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 999px;
  padding: 4px 12px;
}

.price-card-title { font-size: 1.05rem; font-weight: 700; color: var(--paper); }
.price-card-value { font-size: 2.1rem; font-weight: 800; color: var(--paper); letter-spacing: -.02em; }
.price-card-value small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price-card-desc { font-size: .88rem; color: var(--muted); line-height: 1.6; flex: 1; }

/* ── CALLOUTS, CODE, DOKU-PROSA ──────────────────────────────────────────── */

.doc-section-inner { max-width: 760px; margin: 0 auto; }
.doc-section-inner.wide { max-width: 1120px; }

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 28px 0;
}
.callout-icon { font-size: 1.2rem; flex-shrink: 0; }
.callout p { font-size: .9rem; color: var(--muted); line-height: 1.65; }
.callout strong { color: var(--paper); }

.callout.tip  { border-color: rgba(45,212,224,.35);  background: rgba(45,212,224,.06); }
.callout.warn { border-color: rgba(251,191,36,.35);  background: rgba(251,191,36,.06); }
.callout.info { border-color: rgba(127,166,176,.35); background: rgba(127,166,176,.06); }

.doc-prose h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: -.01em;
  margin: 44px 0 16px;
}
.doc-prose h3:first-child { margin-top: 0; }
.doc-prose p { font-size: .95rem; color: var(--muted); line-height: 1.75; margin-bottom: 16px; }
.doc-prose ul, .doc-prose ol {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
  margin: 0 0 16px;
  padding-left: 1.4em;
}
.doc-prose li { margin-bottom: 6px; }
.doc-prose li strong { color: var(--paper); }
.doc-prose a { text-decoration: underline; text-decoration-color: rgba(45,212,224,.4); }

.doc-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.doc-nav-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color .2s, transform .15s;
}
.doc-nav-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.doc-nav-card-label { font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); margin-bottom: 8px; display: block; }
.doc-nav-card-title { font-size: 1.05rem; font-weight: 700; color: var(--paper); margin-bottom: 6px; }
.doc-nav-card-desc { font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* Kompakte Tabellen für Rollen-/Vergleichsübersichten */
.doc-table-wrap { overflow-x: auto; margin: 28px 0; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.doc-table th, .doc-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.doc-table th { color: var(--paper); font-weight: 700; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.doc-table td { color: var(--muted); }
.doc-table td strong { color: var(--paper); }

/* ── CTA-SECTION ─────────────────────────────────────────────────────────── */

.cta-section { text-align: center; padding: 120px max(24px, 5vw); }
.cta-section .section-title { margin: 0 auto 20px; max-width: 620px; }
.cta-section .section-intro { margin: 0 auto 44px; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 36px max(24px, 5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-logo { font-size: .95rem; font-weight: 800; color: var(--paper); }
.footer-logo span { color: var(--cyan); }
.footer-copy { font-size: .8rem; color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--paper); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.is-reverse .feature-copy,
  .feature-row.is-reverse .feature-visual { order: unset; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 2.1rem; }
  .pipeline-node { width: 86px; padding: 10px 6px; }
  .pipeline-arrow { width: 16px; }
  section { padding: 72px 20px; }
  .hero { padding: 112px 20px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
