/* ============================================================
   KI Sprint – Bausteine / Marketing-Seite Styles
   Namespace: .bs-  (kollisionsfrei zum Theme-CSS)
   Nutzt die globalen Theme-Variablen aus main.css (--ink, --accent ...)
   ============================================================ */

.bs-wrap {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
.bs-wrap *, .bs-wrap *::before, .bs-wrap *::after { box-sizing: border-box; }

.bs-wrap .bs-tag {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.bs-wrap .bs-tag::before { content: ''; width: 22px; height: 2px; background: var(--accent); }

.bs-wrap h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.bs-wrap h2 em { font-style: italic; color: var(--accent); }


/* ── PAGE HERO ───────────────────────────────────────── */
.bs-page-hero {
  padding: 5rem 8vw 3rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.bs-breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.6rem;
  letter-spacing: 0.02em;
}
.bs-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.bs-breadcrumb a:hover { color: var(--accent); }
.bs-breadcrumb .sep { opacity: 0.5; }
.bs-breadcrumb .current { color: var(--ink); font-weight: 500; }

.bs-page-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: end;
}
.bs-page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
}
.bs-page-hero h1 em { font-style: italic; color: var(--accent); }
.bs-page-hero-right p {
  color: #555; font-weight: 300; line-height: 1.8;
  font-size: 1.05rem;
  margin: 0;
}


/* ── BAUSTEINE GRID ──────────────────────────────────── */
.bs-modules {
  padding: 5rem 8vw 4rem;
}
.bs-modules-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: end;
  margin-bottom: 5rem;
}
.bs-modules-intro-right p {
  color: #555; font-weight: 300; line-height: 1.85; font-size: 1.05rem;
}
.bs-modules-intro-right p + p { margin-top: 1.1rem; }

.bs-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bs-module {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 2rem 1.8rem 1.8rem;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex; flex-direction: column;
  min-height: 220px;
}
.bs-module:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.15);
}
.bs-module.featured {
  background: var(--accent2);
  color: #fff;
  border-color: var(--accent2);
}
.bs-module.featured:hover {
  box-shadow: 0 12px 30px rgba(45,74,62,0.25);
}
.bs-module.featured .bs-module-num { color: var(--accent); }
.bs-module.featured h3 { color: #fff; }
.bs-module.featured p { color: rgba(255,255,255,0.65); }

.bs-module-num {
  font-family: monospace;
  font-size: 0.72rem; font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.bs-module-icon {
  width: 28px; height: 28px;
  margin-bottom: 1.2rem;
  color: var(--accent);
}
.bs-module.featured .bs-module-icon { color: var(--accent); }
.bs-module-icon svg {
  width: 100%; height: 100%;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.bs-module h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.bs-module p {
  font-size: 0.9rem;
  color: #5a5045;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.bs-module-spotlight {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  position: absolute; top: 1.2rem; right: 1.2rem;
}
.bs-module-spotlight::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; animation: bs-pulse 2s infinite;
}
@keyframes bs-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}
.bs-module-link {
  margin-top: auto;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 1rem;
  transition: gap 0.2s;
  background: none; border-left: none; border-right: none; border-bottom: none;
  cursor: pointer;
  font-family: inherit;
}
.bs-module.featured .bs-module-link { border-top-color: rgba(255,255,255,0.12); }
.bs-module-link:hover { gap: 0.8rem; }
.bs-module-link svg { width: 14px; height: 14px; }


/* ── SPOTLIGHT ───────────────────────────────────────── */
.bs-spotlight {
  padding: 6rem 8vw 8rem;
}
.bs-spotlight-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
  margin-bottom: 4rem;
}
.bs-spotlight-header h2 { margin-bottom: 0; }
.bs-spotlight-header-right p {
  color: #555; font-weight: 300; line-height: 1.85;
  font-size: 1.05rem;
}

/* ── DEMO MOCKUP ─────────────────────────────────────── */
.bs-demo-wrap {
  background: var(--accent2);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.bs-demo-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232,76,30,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(232,76,30,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.bs-demo-label {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.bs-demo-label-left {
  display: flex; align-items: center; gap: 0.7rem;
  color: rgba(255,255,255,0.55);
  font-family: monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bs-demo-label-left::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: bs-pulse-green 2s infinite;
}
@keyframes bs-pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.bs-demo-dots { display: flex; gap: 0.4rem; }
.bs-demo-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.bs-demo-app {
  position: relative; z-index: 2;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
  font-family: system-ui, -apple-system, sans-serif;
}

/* App-Header */
.bs-demo-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.7rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.bs-demo-brand { display: flex; align-items: center; gap: 0.6rem; }
.bs-demo-brand-mark {
  width: 26px; height: 26px;
  background: #2563eb; border-radius: 5px;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 0.78rem;
}
.bs-demo-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.bs-demo-brand-title { font-size: 0.74rem; font-weight: 600; color: #0f172a; }
.bs-demo-brand-sub { font-size: 0.62rem; color: #64748b; }
.bs-demo-header-right { display: flex; align-items: center; gap: 0.8rem; }
.bs-demo-sync {
  font-size: 0.62rem; color: #64748b;
  display: flex; align-items: center; gap: 0.35rem;
}
.bs-demo-sync-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a;
  animation: bs-pulse-green 2s infinite;
}
.bs-demo-sync-btn {
  background: #fff; border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.62rem; font-weight: 500;
  padding: 0.3rem 0.6rem; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.bs-demo-sync-btn svg { width: 9px; height: 9px; }

/* App-Tabs */
.bs-demo-tabs {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 1rem;
  display: flex; gap: 0.25rem;
}
.bs-demo-tab {
  padding: 0.55rem 0.8rem;
  font-size: 0.68rem; font-weight: 500;
  color: #64748b;
  border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.bs-demo-tab.active { color: #2563eb; border-bottom-color: #2563eb; }
.bs-demo-tab svg { width: 11px; height: 11px; }
.bs-demo-tab-count {
  background: #f1f5f9; color: #64748b;
  font-size: 0.55rem; font-weight: 600;
  padding: 0.05rem 0.4rem; border-radius: 6px;
}
.bs-demo-tab.active .bs-demo-tab-count { background: #eff6ff; color: #2563eb; }

/* Split-Body */
.bs-demo-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  min-height: 480px;
}
.bs-demo-panel {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.bs-demo-panel-head {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfcfd;
}
.bs-demo-panel-title { font-size: 0.7rem; font-weight: 600; color: #0f172a; }
.bs-demo-panel-sub { font-size: 0.6rem; color: #64748b; margin-top: 0.05rem; }

/* Mail list */
.bs-demo-list { flex: 1; overflow: hidden; }
.bs-demo-mail {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
  transition: background 0.15s;
}
.bs-demo-mail.active { background: #eff6ff; }
.bs-demo-mail.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: #2563eb;
}
.bs-demo-mail.unread::after {
  content: ''; position: absolute; right: 0.5rem; top: 1rem;
  width: 6px; height: 6px; border-radius: 50%; background: #2563eb;
}
.bs-demo-mail.unread .bs-demo-mail-row1 .bs-demo-time { padding-right: 0.7rem; }
.bs-demo-mail-row1 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.4rem;
}
.bs-demo-from { font-size: 0.72rem; font-weight: 600; color: #0f172a; }
.bs-demo-mail.unread .bs-demo-from { font-weight: 700; }
.bs-demo-time { font-size: 0.6rem; color: #94a3b8; }
.bs-demo-subj {
  font-size: 0.68rem; color: #334155;
  margin: 0.15rem 0 0.35rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bs-demo-meta {
  display: flex; align-items: center; gap: 0.35rem;
  flex-wrap: wrap;
}
.bs-demo-badge {
  font-size: 0.55rem; font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  line-height: 1.4;
}
.bs-demo-badge.termin       { background: #dbeafe; color: #1d4ed8; }
.bs-demo-badge.rezept       { background: #dcfce7; color: #15803d; }
.bs-demo-badge.befund       { background: #f3e8ff; color: #7c3aed; }
.bs-demo-badge.verschiebung { background: #fef3c7; color: #b45309; }
.bs-demo-badge.au           { background: #ffedd5; color: #c2410c; }
.bs-demo-badge.unklar       { background: #fee2e2; color: #b91c1c; }
.bs-demo-assign {
  font-size: 0.58rem; color: #64748b;
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.bs-demo-assign-dot { width: 5px; height: 5px; border-radius: 50%; background: #16a34a; }
.bs-demo-status {
  font-size: 0.55rem; font-weight: 500;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  border: 1px solid;
}
.bs-demo-status.entwurf { background: #ecfdf5; color: #16a34a; border-color: #bbf7d0; }
.bs-demo-status.neu     { background: #fff;    color: #2563eb; border-color: #bfdbfe; }
.bs-demo-status.pruefen { background: #fffbeb; color: #d97706; border-color: #fde68a; }

/* Detail */
.bs-demo-detail { padding: 1rem 1.1rem; overflow: hidden; }
.bs-demo-detail-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.4rem;
}
.bs-demo-detail-from { font-size: 0.78rem; font-weight: 600; color: #0f172a; }
.bs-demo-detail-from-mail { font-size: 0.6rem; color: #64748b; word-break: break-all; }
.bs-demo-detail-subj {
  font-size: 0.95rem; font-weight: 600; color: #0f172a;
  margin-bottom: 0.55rem;
}
.bs-demo-orig {
  background: #fbfcfd; border: 1px solid #e2e8f0; border-radius: 5px;
  padding: 0.6rem 0.75rem;
  font-size: 0.68rem; color: #334155; line-height: 1.6;
  margin-bottom: 0.85rem;
}
.bs-demo-assignment {
  border: 1px solid #e2e8f0;
  border-left: 3px solid #16a34a;
  border-radius: 5px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.65rem;
  flex-wrap: wrap;
}
.bs-demo-assign-icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: #eff6ff; color: #2563eb;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.62rem;
}
.bs-demo-assign-text { flex: 1; }
.bs-demo-assign-label {
  font-size: 0.55rem; color: #64748b; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.05rem;
}
.bs-demo-assign-value { font-size: 0.68rem; color: #0f172a; font-weight: 500; }
.bs-demo-assign-detail { font-size: 0.6rem; color: #64748b; margin-top: 0.05rem; }

.bs-demo-ai-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.6rem; font-weight: 600;
  color: #64748b;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.bs-demo-ai-label::before {
  content: '';
  width: 11px; height: 11px;
  background: linear-gradient(135deg, #6366f1, #2563eb);
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.08);
}
.bs-demo-ai-label .conf {
  margin-left: auto;
  background: #f1f5f9;
  padding: 0.1rem 0.5rem; border-radius: 8px;
  color: #475569; font-weight: 500;
  text-transform: none; letter-spacing: 0;
}
.bs-demo-draft {
  width: 100%;
  border: 1px solid #cbd5e1; border-radius: 5px;
  padding: 0.65rem 0.8rem;
  font-size: 0.68rem; color: #1e293b; line-height: 1.6;
  background: #fff; margin-bottom: 0.65rem;
}
.bs-demo-actions {
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
  display: flex; align-items: center; gap: 0.35rem;
  flex-wrap: wrap;
}
.bs-demo-actions .bs-spacer { flex: 1; }
.bs-demo-btn {
  font-size: 0.6rem; font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff; color: #334155;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.bs-demo-btn svg { width: 9px; height: 9px; }
.bs-demo-btn.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.bs-demo-btn.ghost { background: transparent; border-color: transparent; color: #94a3b8; }

/* Spotlight features */
.bs-features {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 3rem;
}
.bs-feature {
  border-left: 2px solid var(--accent);
  padding-left: 1.4rem;
}
.bs-feature h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem; line-height: 1.25;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}
.bs-feature p {
  font-size: 0.88rem; color: #5a5045;
  font-weight: 300; line-height: 1.6;
}


/* ── WORKFLOW (6 Schritte) ───────────────────────────── */
.bs-workflow {
  padding: 6rem 8vw 7rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.bs-workflow::before {
  content: '';
  position: absolute;
  top: 0; right: -15%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,76,30,0.07), transparent 65%);
  pointer-events: none;
}
.bs-workflow-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: end;
  margin-bottom: 4rem;
  position: relative; z-index: 2;
}
.bs-workflow-header h2 { margin-bottom: 0; }
.bs-workflow-header-right p {
  color: #555; font-weight: 300; line-height: 1.85;
  font-size: 1.05rem;
}
.bs-case-line {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-left: 3px solid var(--accent);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: #5a5045;
  border-radius: 2px;
  margin-top: 1.2rem;
}
.bs-case-line strong { color: var(--ink); font-weight: 600; }

.bs-flow {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  gap: 1.2rem;
}
.bs-step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  position: relative;
}
.bs-step::after {
  content: '';
  position: absolute;
  left: 39px; top: 80px; bottom: -20px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--accent) 70%, transparent 100%);
  opacity: 0.35;
}
.bs-step:last-child::after { display: none; }

.bs-step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem; color: var(--ink);
  position: relative; z-index: 2;
}
.bs-step.highlight .bs-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(232,76,30,0.12);
}
.bs-step.system .bs-step-num {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff;
}
.bs-step-content { padding: 0.4rem 0; }
.bs-step-actor {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.bs-step.system .bs-step-actor { color: var(--accent2); }
.bs-step.customer .bs-step-actor { color: #2563eb; }
.bs-step-actor svg { width: 13px; height: 13px; }

.bs-step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.55rem;
  color: var(--ink);
}
.bs-step-desc {
  font-size: 0.92rem; color: #5a5045;
  font-weight: 300; line-height: 1.65;
}

/* Step detail-cards (rechts) */
.bs-step-detail {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 1.2rem 1.4rem;
  font-size: 0.85rem;
  line-height: 1.55;
  align-self: center;
}
.bs-step-detail-label {
  font-family: monospace;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.bs-step-detail-body { color: #3a3a3a; }
.bs-step-detail-body strong { color: var(--ink); font-weight: 600; }

/* Variant: analysis (mono terminal) */
.bs-step-detail.analysis {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
  font-family: monospace;
  font-size: 0.78rem; line-height: 1.7;
}
.bs-step-detail.analysis .bs-step-detail-label { color: rgba(255,255,255,0.5); }
.bs-step-detail.analysis .bs-step-detail-body { color: rgba(255,255,255,0.9); }
.bs-step-detail.analysis .bs-step-detail-body div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.bs-step-detail.analysis .bs-step-detail-body div:last-child { border-bottom: none; }
.bs-step-detail.analysis .bs-step-detail-body div span:first-child {
  color: rgba(255,255,255,0.65);
}
.bs-step-detail.analysis .accent {
  color: var(--accent); white-space: nowrap; flex-shrink: 0;
}

/* Variant: mail */
.bs-step-detail.mail { padding: 1rem 1.2rem; font-size: 0.8rem; }
.bs-step-detail.mail .bs-mail-subj {
  font-weight: 600; color: var(--ink);
  margin-bottom: 0.3rem; font-size: 0.85rem;
}
.bs-step-detail.mail .bs-mail-text {
  color: #5a5045; font-weight: 300;
  line-height: 1.55; margin-bottom: 0.7rem;
}
.bs-step-detail.mail .bs-mail-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #2563eb; color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-size: 0.75rem; font-weight: 600;
}
.bs-step-detail.mail .bs-mail-btn::before {
  content: ''; width: 14px; height: 14px;
  background: rgba(255,255,255,0.9);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bs-step-detail.mail .bs-mail-hint {
  font-size: 0.7rem; color: var(--muted);
  margin-top: 0.6rem; font-style: italic;
}

/* Variant: calendar */
.bs-step-detail.calendar { padding: 1rem 1.2rem; }
.bs-step-detail.calendar .bs-cal-slot {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.7rem;
  background: #f5f5f5;
  border-radius: 3px;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
  color: #5a5045;
}
.bs-step-detail.calendar .bs-cal-slot.proposed {
  background: rgba(232,76,30,0.08);
  border: 1px solid rgba(232,76,30,0.25);
  color: var(--ink); font-weight: 500;
}
.bs-step-detail.calendar .bs-cal-slot .bs-cal-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
}
.bs-step-detail.calendar .bs-cal-slot.proposed .bs-cal-dot { background: var(--accent); }
.bs-step-detail.calendar .bs-cal-slot .bs-cal-time {
  margin-left: auto;
  font-family: monospace;
  font-size: 0.72rem; color: var(--muted);
}
.bs-step-detail.calendar .bs-cal-slot.proposed .bs-cal-time { color: var(--accent); font-weight: 500; }

/* Variant: confirmation (dark green) */
.bs-step-detail.confirmation {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff;
}
.bs-step-detail.confirmation .bs-step-detail-label { color: rgba(255,255,255,0.55); }
.bs-step-detail.confirmation .bs-step-detail-body { color: rgba(255,255,255,0.92); }
.bs-step-detail.confirmation .bs-check {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.3rem 0; font-size: 0.82rem;
}
.bs-step-detail.confirmation .bs-check::before {
  content: '';
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: contain;
}

/* Variant: sms */
.bs-step-detail.sms {
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, #2d4a3e 0%, #1a3a2e 100%);
  color: #fff;
  border-color: var(--accent2);
}
.bs-step-detail.sms .bs-step-detail-label { color: rgba(255,255,255,0.55); }
.bs-step-detail.sms .bs-sms-head {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
}
.bs-step-detail.sms .bs-sms-bubble {
  background: rgba(255,255,255,0.1);
  border-radius: 12px 12px 12px 3px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem; line-height: 1.5;
  color: rgba(255,255,255,0.95);
}


/* ── ROI BAND ────────────────────────────────────────── */
.bs-roi {
  background: var(--ink);
  color: #fff;
  padding: 5rem 8vw;
  position: relative;
  overflow: hidden;
}
.bs-roi::before {
  content: '';
  position: absolute;
  bottom: -40%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,76,30,0.18), transparent 65%);
}
.bs-roi-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: center;
}
.bs-roi h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
}
.bs-roi h3 em { font-style: italic; color: var(--accent); }
.bs-roi-intro {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem; font-weight: 300;
  margin-top: 1rem;
  max-width: 36ch;
  line-height: 1.7;
}
.bs-roi-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.bs-roi-item {
  background: var(--ink);
  padding: 2rem 1.8rem;
}
.bs-roi-num {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
}
.bs-roi-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.3rem;
}
.bs-roi-detail {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  line-height: 1.5;
}


/* ── PARTNER CTA ─────────────────────────────────────── */
.bs-partner {
  padding: 7rem 8vw;
  background: var(--cream);
}
.bs-partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.bs-partner-left h2 { margin-bottom: 1.5rem; }
.bs-partner-left .lead {
  color: #555; font-weight: 300; line-height: 1.8;
  font-size: 1.05rem; margin-bottom: 2rem;
  max-width: 48ch;
}
.bs-partner-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.bs-btn-primary {
  background: var(--accent); color: #fff;
  padding: 1rem 2.2rem;
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: none; cursor: pointer;
  font-family: inherit;
}
.bs-btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.bs-btn-secondary {
  border: 1.5px solid var(--ink); color: var(--ink);
  padding: 1rem 2.2rem;
  font-size: 0.92rem; font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.bs-btn-secondary:hover { background: var(--ink); color: var(--paper); }

.bs-partner-right {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 2.5rem;
  position: relative;
}
.bs-partner-right::before {
  content: '⌗';
  position: absolute; top: 1rem; right: 1.4rem;
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.5;
}
.bs-partner-right h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}
.bs-checklist { list-style: none; padding: 0; margin: 0; }
.bs-checklist li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex; align-items: flex-start; gap: 0.85rem;
  font-size: 0.95rem;
  color: #3a3a3a;
}
.bs-checklist li:last-child { border-bottom: none; }
.bs-checklist li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: contain;
}


/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .bs-module-grid { grid-template-columns: repeat(2, 1fr); }
  .bs-features { grid-template-columns: repeat(2, 1fr); }
  .bs-modules-intro, .bs-spotlight-header, .bs-workflow-header {
    grid-template-columns: 1fr; gap: 2rem;
  }
  .bs-step { grid-template-columns: 64px 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 800px) {
  .bs-page-hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .bs-page-hero { padding: 3rem 8vw 2rem; }
  .bs-modules-intro, .bs-spotlight-header, .bs-roi-grid, .bs-partner-grid, .bs-workflow-header {
    grid-template-columns: 1fr; gap: 2.5rem;
  }
  .bs-module-grid { grid-template-columns: 1fr; }
  .bs-features { grid-template-columns: 1fr; }
  .bs-roi-numbers { grid-template-columns: 1fr; }

  /* Demo mockup mobile */
  .bs-demo-wrap { padding: 1.2rem; }
  .bs-demo-body { grid-template-columns: 1fr; min-height: auto; padding: 0.6rem; gap: 0.6rem; }
  .bs-demo-header {
    flex-direction: column; gap: 0.6rem; align-items: flex-start;
    padding: 0.7rem 0.85rem;
  }
  .bs-demo-header-right { width: 100%; justify-content: space-between; }
  .bs-demo-detail { padding: 0.85rem; }

  /* Workflow flow */
  .bs-step { grid-template-columns: 56px 1fr; gap: 1.2rem; }
  .bs-step .bs-step-detail { grid-column: 1 / -1; margin-top: 0.5rem; }
  .bs-step::after { left: 27px; top: 60px; }
  .bs-step-num { width: 48px; height: 48px; font-size: 1.2rem; }

  .bs-case-line { flex-wrap: wrap; }
}


/* ============================================================
   PIPELINE-MOCKUP  (Bestell-Pipeline auf der Rechnungs-Seite)
   Namespace: .bs-pipe-
   Nutzt die gleiche .bs-demo-wrap/.bs-demo-label/.bs-demo-header
   wie der E-Mail-Mockup für konsistenten Frame.
   ============================================================ */

.bs-pipe-app {
  background: #f1f5f9;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
}
.bs-pipe-app *, .bs-pipe-app *::before, .bs-pipe-app *::after { box-sizing: border-box; }

/* Stats im Header */
.bs-pipe-stats {
  display: inline-flex; gap: 12px;
  margin-right: 14px;
  padding-right: 14px;
  border-right: 1px solid #e2e8f0;
}
.bs-pipe-stat {
  font-size: 11.5px; color: #64748b;
  display: inline-flex; flex-direction: column;
  line-height: 1.1;
}
.bs-pipe-stat strong {
  font-size: 16px; color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bs-pipe-stat.warn strong { color: #d97706; }

/* Filter-Bar */
.bs-pipe-filters {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 22px;
  display: flex; gap: 6px; align-items: center;
  flex-wrap: wrap;
}
.bs-pipe-filter-label {
  font-size: 10.5px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  margin-right: 4px;
}
.bs-pipe-chip {
  font-size: 11.5px; font-weight: 500;
  padding: 4px 11px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  display: inline-flex; align-items: center; gap: 5px;
}
.bs-pipe-chip.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.bs-pipe-chip-num {
  background: rgba(255,255,255,0.25);
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
}
.bs-pipe-chip:not(.active) .bs-pipe-chip-num {
  background: #f1f5f9;
  color: #64748b;
}

/* Kanban Board */
.bs-pipe-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 16px;
  min-height: 560px;
}

.bs-pipe-col {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.bs-pipe-col-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #fbfcfd;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600;
  color: #0f172a;
}
.bs-pipe-col-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.bs-pipe-col-title { flex: 1; }
.bs-pipe-col-count {
  background: #f1f5f9; color: #64748b;
  font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 9px;
}

/* Spaltenfarben */
.col-eingang    .bs-pipe-col-dot { background: #3b82f6; }
.col-eingang    .bs-pipe-col-count { background: #dbeafe; color: #1d4ed8; }
.col-pruefung   .bs-pipe-col-dot { background: #f59e0b; animation: pipe-pulse-amber 1.6s infinite; }
.col-pruefung   .bs-pipe-col-count { background: #fef3c7; color: #b45309; }
.col-bestaetigt .bs-pipe-col-dot { background: #16a34a; }
.col-bestaetigt .bs-pipe-col-count { background: #dcfce7; color: #15803d; }
.col-versand    .bs-pipe-col-dot { background: #7c3aed; }
.col-versand    .bs-pipe-col-count { background: #f3e8ff; color: #6d28d9; }
.col-rechnung   .bs-pipe-col-dot { background: #0d9488; }
.col-rechnung   .bs-pipe-col-count { background: #ccfbf1; color: #0f766e; }

@keyframes pipe-pulse-amber {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.bs-pipe-col-body {
  padding: 8px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}

/* Karten */
.bs-pipe-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 11px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bs-pipe-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.bs-pipe-card.processing {
  background: linear-gradient(90deg, #fff, #fffbeb);
  border-color: #fed7aa;
}
.bs-pipe-card.processing::before {
  content: '';
  position: absolute; top: 0; left: 0;
  height: 2px; width: 50%;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
  animation: pipe-scan 1.6s linear infinite;
}
@keyframes pipe-scan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(220%); }
}

.bs-pipe-card-row1 {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.bs-pipe-card-num {
  font-size: 10.5px;
  font-family: ui-monospace, monospace;
  color: #94a3b8;
  font-weight: 500;
}
.bs-pipe-card-channel {
  font-size: 9.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 3px;
}
.bs-pipe-card-cust {
  font-size: 12.5px; font-weight: 600; color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.25;
}
.bs-pipe-pill {
  font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
  margin-left: 2px;
  letter-spacing: 0.04em;
  display: inline-block;
  vertical-align: middle;
}
.bs-pipe-pill.b2b { background: #e0f2fe; color: #0369a1; }
.bs-pipe-pill.b2c { background: #fef3c7; color: #92400e; }

.bs-pipe-card-info { font-size: 11.5px; color: #475569; }
.bs-pipe-card-info strong { color: #0f172a; font-weight: 700; }

.bs-pipe-card-processing {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: #b45309;
  margin-top: 6px;
}
.bs-pipe-spinner {
  width: 9px; height: 9px;
  border: 2px solid #d97706;
  border-top-color: transparent;
  border-radius: 50%;
  animation: pipe-spin 0.8s linear infinite;
}
@keyframes pipe-spin { to { transform: rotate(360deg); } }

.bs-pipe-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed #e2e8f0;
  font-size: 10px;
}
.bs-pipe-time {
  color: #94a3b8;
  font-family: ui-monospace, monospace;
}

.bs-pipe-tag {
  font-size: 9.5px; font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.bs-pipe-tag.erstkunde { background: #dbeafe; color: #1d4ed8; }
.bs-pipe-tag.gross     { background: #f3e8ff; color: #6d28d9; }
.bs-pipe-tag.adresse   { background: #fee2e2; color: #b91c1c; }
.bs-pipe-tag.eilig     { background: #fee2e2; color: #b91c1c; }

.bs-pipe-card.compact .bs-pipe-card-row1 { margin-bottom: 4px; }
.bs-pipe-card.compact .bs-pipe-card-num { display: block; margin-bottom: 4px; }
.bs-pipe-card.compact .bs-pipe-card-foot { display: none; }

.bs-pipe-card-more {
  text-align: center;
  font-size: 11px; color: #94a3b8;
  padding: 8px 0;
  font-style: italic;
}

@media (max-width: 1200px) {
  .bs-pipe-board {
    grid-template-columns: repeat(5, 220px);
    overflow-x: auto;
  }
}
@media (max-width: 700px) {
  .bs-pipe-stats { display: none; }
  .bs-pipe-filters { padding: 8px 16px; gap: 4px; }
  .bs-pipe-filter-label { display: none; }
  .bs-pipe-board { padding: 12px; grid-template-columns: repeat(5, 200px); }
}
