/* Vertriebs-CRM – nur Komposition und Mockups, die es so nur auf dieser Seite gibt (Komponenten stehen in site.css) */

/* ---------- Hero: links H1, rechts Unterzeile + CTA, darunter das Lead-Board in voller Breite ---------- */
.crm-hero-grid { display: grid; gap: var(--sp-5); }
.crm-hero .h1 { max-width: 15ch; }
.crm-hero-side { gap: 22px; }
.crm-hero-board { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 68.75em) {
  .crm-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .crm-hero-side { padding-top: 4px; }
}

/* ---------- Zeilen: Abschnitts-H2 in der Textspalte ---------- */
.crm-row .h2 { max-width: 16ch; }
.crm-row .row-x + .row-x { margin-top: calc(var(--sp-2) * -1); }
.crm-row .footnote { max-width: 34rem; }
/* Langer Pfeil-Link: bricht er um, steht der Pfeil am letzten Wort und jede Zeile ist unterstrichen (statt Pfeil am rechten Rand).
   svg ist in site.css display:block – hier als Inline-Icon. Wird .link-arrow zentral umgebaut, crm-la entfernen. */
.link-arrow.crm-la { display: inline-block; background: none; padding-block: 9px; line-height: 1.5; text-wrap: balance; }
.crm-la > span { padding-bottom: 4px; background: linear-gradient(var(--line-3), var(--line-3)) left bottom / 100% 1px no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.crm-la .ico { display: inline-block; margin-left: 10px; vertical-align: -3px; }
.link-arrow.crm-la:hover { background: none; }
.crm-la:hover > span { background-image: var(--grad); }
@media (min-width: 56.25em) { .crm-row .row-copy { align-self: center; } }
/* 900–1099 px: Textspalte schmal – Zeilen-H2 etwas kleiner, damit sie in 2–3 Zeilen ohne einzelne Wörter umbricht */
@media (min-width: 56.25em) and (max-width: 68.74em) { .crm-row .h2 { font-size: clamp(1.75rem, 3.3vw, 2.125rem); max-width: none; } }

/* ---------- 9 Vertriebsstufen als Bauzeitenplan (M27 bleibt echte <ol>) ---------- */
.crm-stages .stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.crm-stages .stages li {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 0 10px 26px 0; border: 0; border-radius: 0; background: none;
  font: 500 .9375rem/1.25 var(--ff-display); letter-spacing: -.005em; color: var(--text); hyphens: auto; -webkit-hyphens: auto;
}
.crm-stages .stages li::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: var(--line-3); }
.crm-stages .stages li:nth-child(3n+1)::before { left: 17px; }
.crm-stages .stages li:nth-child(3n)::before { right: auto; width: 17px; }
.crm-stages .stages-n { position: relative; width: 34px; height: 34px; font-size: .8125rem; font-weight: 600; box-shadow: 0 0 0 6px var(--bg); }
.crm-stages .stages li:last-child .stages-n { box-shadow: 0 0 0 6px var(--bg), 0 0 22px rgba(139, 92, 246, .55); }
@media (min-width: 80em) {
  .crm-stages .stages { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .crm-stages .stages li { font-size: clamp(.875rem, .75rem + .3vw, 1rem); padding-right: 14px; padding-bottom: 0; }
  .crm-stages .stages li::before, .crm-stages .stages li:nth-child(3n+1)::before, .crm-stages .stages li:nth-child(3n)::before { left: 0; right: 0; width: auto; }
  .crm-stages .stages li:first-child::before { left: 17px; }
  .crm-stages .stages li:last-child::before { right: auto; width: 17px; }
  .crm-stages .stages li::after { content: ""; position: absolute; left: 0; top: 17px; height: 1px; width: 100%; background: var(--grad); opacity: .55; }
  .crm-stages .stages li:first-child::after { left: 17px; width: calc(100% - 17px); }
  .crm-stages .stages li:last-child::after { display: none; }
}
.crm-stages-after { display: grid; gap: var(--sp-6); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.crm-note .od-mark { width: 44px; height: 44px; }
.crm-note .crm-note-k { font: 500 var(--fs-xs)/1.2 var(--ff-display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
@media (min-width: 56.25em) {
  .crm-stages-after { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--sp-8); align-items: center; }
  .crm-note { justify-self: end; }
}

/* ---------- Premium-Lead: Karte nicht zu breit ---------- */
.crm-lead .ui-lead { max-width: 34rem; }
@media (min-width: 56.25em) { .crm-lead { justify-self: start; width: 100%; max-width: 34rem; } }

/* ---------- Aufgaben + Verlauf ---------- */
.crm-tasks { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 56.25em) {
  .crm-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-6); }
  .crm-tasks-copy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--sp-8); align-items: start; }
  .crm-tasks-copy .ticks { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 68.75em) {
  .crm-tasks { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); }
  .crm-tasks-copy { grid-column: auto; display: flex; }
}

/* Baustein-Navigation: gemeinsamer Baustein partials/baustein-nav.html, Stile .bnav in site.css (keine seitenlokalen Stile mehr). */

/* ---------- Mockup: Lead-Eingang ---------- */
.inb { display: grid; gap: 12px; padding: 16px; }
.inb-src { display: flex; flex-wrap: wrap; gap: 6px; }
.ui .inb-s { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill); border: 1px solid var(--line-2); font-size: var(--fs-micro); line-height: 1.4; color: var(--text-2); white-space: nowrap; background: rgba(255, 255, 255, .015); }
.ui .inb-s .ico { width: 13px; height: 13px; color: var(--accent); }
.ui .inb-s.is-on { border-color: rgba(34, 211, 238, .55); color: var(--text); background: rgba(34, 211, 238, .08); }
.inb-flow { width: 1px; height: 22px; margin-inline: auto; background: var(--grad); }
.inb-lines { display: none; }
.inb-out { display: grid; gap: 8px; min-width: 0; }
.inb-lead { padding: 12px; border-radius: 12px; background: #1a2030; border: 1px solid rgba(34, 211, 238, .5); box-shadow: 0 0 0 3px rgba(34, 211, 238, .08), 0 14px 30px -18px rgba(34, 211, 238, .45); }
.inb-lh { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ui .inb-lh .lead-name { font-size: .9375rem; }
.inb-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.inb-checks { display: grid; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.ui .inb-checks > span { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--text-2); }
.inb-ok { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(134, 239, 172, .12); color: var(--ok); flex: none; }
.ui .inb-ok .ico { width: 11px; height: 11px; stroke-width: 2.2; }
.inb-alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.ui .inb-muted { color: var(--text-3); }
@media (min-width: 30em) {
  .inb { grid-template-columns: minmax(0, 10.5rem) 36px minmax(0, 1fr); align-items: stretch; gap: 12px 6px; }
  .inb-src { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: space-around; gap: 8px; }
  .inb-flow { width: 100%; height: auto; min-height: 120px; background: none; }
  .inb-lines { display: block; width: 100%; height: 100%; }
}

/* ---------- Mockup: Kosten pro Lead je Kanal ---------- */
.cost-origin { display: grid; gap: 8px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(99, 102, 241, .07), rgba(99, 102, 241, 0)); }
.cost-o-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .8125rem; color: var(--text); }
.ui .cost-o-row .av-xs { margin-right: 0; }
.ui .cost-o-arrow { width: 14px; height: 14px; color: var(--accent); }
.cost-list { display: grid; padding: 4px 16px 6px; }
/* Handy: je Kanal Name + Zahl, darunter beide Ränge nebeneinander (Etikett aus data-l); ab 30em echte Spalten mit Kopfzeile */
.cost-h { display: none; }
.cost-r { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cost-h + .cost-r { border-top: 0; }
.cost-n { font-size: .8125rem; color: var(--text); line-height: 1.3; }
.ui .cost-test { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); font-size: var(--fs-micro); color: var(--text-3); }
.cost-c { justify-self: end; display: inline-flex; align-items: baseline; gap: 8px; font: 300 1.375rem/1 var(--ff-display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.ui .cost-q { font: 400 var(--fs-micro)/1.3 var(--ff-text); letter-spacing: 0; color: var(--text-3); white-space: nowrap; }
.cost-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; }
.cost-b::before { content: attr(data-l); grid-column: 1 / -1; font-size: var(--fs-micro); line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ui .cost-b .rk-t { white-space: nowrap; }
.ui .cost-b.is-best .rk-t { color: var(--accent); font-weight: 500; }
.cost-r.is-test .cost-c { color: var(--text-2); }
@media (min-width: 30em) {
  .cost-h, .cost-r { grid-template-columns: minmax(0, 1.2fr) 4.5rem minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .cost-h { display: grid; align-items: end; padding: 10px 0 8px; font-size: var(--fs-micro); line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
  .cost-h-s { display: block; letter-spacing: .04em; text-transform: none; }
  .cost-h + .cost-r { border-top: 1px solid var(--line); }
  .cost-c { justify-self: start; display: grid; gap: 5px; }
  .cost-b::before { display: none; }
}
.cost-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px 16px; border-top: 1px solid var(--line); font-size: var(--fs-micro); color: var(--text-3); }

/* ---------- Mockup: Rollen & Rechte ---------- */
.roles { display: grid; padding: 4px 16px 8px; }
.roles-row { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-align: center; }
.roles-head { border-top: 0; padding-top: 12px; font-size: var(--fs-micro); line-height: 1.3; color: var(--text-3); hyphens: manual; }
.ui .roles-l { text-align: left; font-size: .8125rem; line-height: 1.35; color: var(--text); }
.ui .roles-head .roles-l { font-size: var(--fs-micro); color: var(--text-3); }
.r-yes, .r-no { display: grid; place-items: center; }
.ui .r-yes .ico { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: rgba(134, 239, 172, .12); color: var(--ok); stroke-width: 2.2; }
.ui .r-no { color: var(--text-3); font-size: .875rem; }
.ui .r-no .ico { width: 16px; height: 16px; color: var(--text-3); }
.roles-foot { display: grid; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid var(--line); background: rgba(10, 13, 20, .35); }
.roles-prof { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.roles-log { padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); }
@media (min-width: 30em) { .roles-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; } }

/* ---------- Mockup: Import ---------- */
.imp-list { display: grid; padding: 4px 16px; }
.imp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.imp:last-child { border-bottom: 0; }
.ui .imp-file { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: .75rem; color: var(--text-2); max-width: 100%; overflow-wrap: anywhere; }
.ui .imp-file .ico { width: 13px; height: 13px; color: var(--accent); }
.ui .imp-arrow { display: none; }
.ui .imp-to { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.imp-t { font: 500 .875rem/1.3 var(--ff-display); color: var(--text); }
.ui .imp-d { font-size: var(--fs-micro); color: var(--text-3); margin-top: 2px; }
.ui .imp .tag { grid-column: 2; grid-row: 1; }
.imp-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--text-2); }
.ui .imp-foot .ico { width: 14px; height: 14px; color: var(--ok); }
@media (min-width: 30em) {
  .imp { grid-template-columns: minmax(0, 11rem) auto minmax(0, 1fr) auto; gap: 10px 12px; }
  .ui .imp-to, .ui .imp .tag { grid-column: auto; grid-row: auto; }
  .ui .imp-arrow { display: block; width: 14px; height: 14px; color: var(--text-3); }
}
