/* pipeline.css — Vertrieb Pipeline-Board (4. View, 2026-07-19)
   Die 5 VK-Phasen als Spalten; Karten = VkCard-SSOT (card.css), hier nur Board-
   Layout + Spalten-Chrome. Phasen-Farbskala früh→spät über data-pipe-stage
   (kühles Grau-Blau → Brand-Türkis), damit „wie weit im Trichter" auf einen
   Blick lesbar ist. Konsumiert von vt-section-pipeline.js.

   Breakpoints (Pflicht-Vierklang): Desktop ≥1400 volle 5 Spalten · Notebook
   1000–1399 schmalere Spalten · Tablet 600–999 horizontales Scroll-Board ·
   Mobile <600 ebenfalls Scroll-Board (Drag ist dort ohnehin deaktiviert). */

.vt-pipe-scroll { overflow-x: auto; }
/* Pipeline-View: Phasen-Filter der Workspace-Toolbar ausblenden — die Phase IST hier
   die Spalte, ein Filter-Klick wäre ein verwirrender No-Op (Board bleibt unverändert).
   Klasse setzt vertrieb.js switchVtView; Suche/Filter/Sort bleiben wirksam. */
.lod-section.vt-view-pipeline > [data-vt-toolbar] .app-segmented-wrap:has([data-toolbar-state-segmented="set-state"]) { display: none; }
/* Ebenso den Scope-Switcher (Verkaufschancen/Leads/Alle) ausblenden: das Board zeigt
   den vollen Trichter (Lead-Spalte + VK-Phasen), ein Scope-Wechsel wäre hier wirkungslos. */
.lod-section.vt-view-pipeline > [data-vt-toolbar] .app-segmented-wrap:has([data-toolbar-state-segmented="set-state-right"]) { display: none; }
.vt-pipe-board {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  min-height: 60vh;
  padding-bottom: var(--space-4);
}
.vt-pipe-col {
  flex: 1 1 0;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
}
/* Vor-Lead-Stufen (gestrichelte Kontur = „noch nicht in der eigentlichen Pipeline"):
   Kaltakquise (kühles Grau — „kalt", Trichter-Anfang) → Lead (Amber, Eingang). Karte
   nach rechts ziehen = eine Stufe weiter. Border-Farbe bleibt token-basiert (dark-mode-sicher). */
.vt-pipe-col--kaltakquise { --pipe-c: var(--lod-gray-400); border-style: dashed; }
.vt-pipe-col--lead { --pipe-c: var(--lod-amber-600); border-style: dashed; }
/* Phasen-Farbskala früh→spät: Dot + Kopf-Akzent je Spalten-Index. */
.vt-pipe-col[data-pipe-stage="0"] { --pipe-c: var(--lod-gray-500); }
.vt-pipe-col[data-pipe-stage="1"] { --pipe-c: var(--lod-darkblue-300); }
.vt-pipe-col[data-pipe-stage="2"] { --pipe-c: var(--lod-darkblue); }
.vt-pipe-col[data-pipe-stage="3"] { --pipe-c: var(--lod-violet); }
.vt-pipe-col[data-pipe-stage="4"] { --pipe-c: var(--lod-turquoise); }
.vt-pipe-col-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2-5) var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
  position: sticky;
  top: 0;
  background: inherit;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.vt-pipe-col-dot {
  width: 8px; height: 8px; flex: 0 0 auto;
  border-radius: var(--radius-circular);
  background: var(--pipe-c, var(--lod-gray-500));
}
.vt-pipe-col-title {
  flex: 1 1 auto; min-width: 0;
  font-size: var(--font-size-sm); font-weight: 600; color: var(--color-text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vt-pipe-col-count {
  font-family: var(--lod-font-mono); font-size: var(--font-size-xs); font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-surface); border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-pill); padding: 0 var(--space-1-5); line-height: 1.6;
}
.vt-pipe-col-sum {
  font-family: var(--lod-font-mono); font-size: var(--font-size-xs); font-weight: 700;
  color: var(--pipe-c, var(--color-text-secondary)); white-space: nowrap;
}
.vt-pipe-col-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2);
  min-height: 120px; /* leere Spalte bleibt Drop-Ziel */
  flex: 1 1 auto;
}
/* Kompakte VkCards im Board: volle Breite der Spalte. */
.vt-pipe-col-list .card-v2 { width: 100%; }
.vt-pipe-col-list .card-v2.is-pending { opacity: .55; pointer-events: none; }
/* Prospect-Karten (Kaltakquise-Spalte) füllen die Spalte wie die Card-v2. */
.vt-pipe-col-list .vt-prospect-card { width: 100%; }

@media (max-width: 1399px) {
  .vt-pipe-col { min-width: 230px; }
}
@media (max-width: 999px) {
  /* Board scrollt horizontal — Spaltenbreite fix, sonst quetschen 5 Spalten den Inhalt. */
  .vt-pipe-col { flex: 0 0 260px; min-width: 260px; }
}
@media (max-width: 599px) {
  .vt-pipe-col { flex: 0 0 82vw; min-width: 0; }
  .vt-pipe-board { gap: var(--space-2); }
}
