/* ============================================================
   KanbanPage — Kanban-Board mit Drag & Drop
   ============================================================ */

.page {
  padding: 1.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pipelineSelect {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--color-bg-card);
  color: var(--color-text);
  outline: none;
  cursor: pointer;
}

.pipelineSelect:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.toggleBtn {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.toggleBtn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.toggleBtnActive {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.toggleBtnActive:hover {
  opacity: 0.9;
  color: white;
}

/* ── Board (horizontales Scroll-Layout) ── */

.board {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  overflow-x: auto;
  flex: 1;
  padding-bottom: 1rem;
}

/* ── Spalte ── */

.column {
  flex: 0 0 280px;
  background: var(--color-bg-subtle, var(--color-bg-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, var(--radius-sm));
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.columnOver {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

.columnHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.columnHeaderLeft {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.columnDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.columnName {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.columnCount {
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0 0.4rem;
  line-height: 1.4;
  color: var(--color-text-secondary);
}

.columnValue {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.columnBody {
  padding: 0.75rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 80px;
}

.columnEmpty {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 1.5rem 0;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
}

/* ── Deal-Karte ── */

.dealCard {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  cursor: grab;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: box-shadow 0.15s, border-color 0.15s;
  user-select: none;
}

.dealCard:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.dealCard:active {
  cursor: grabbing;
}

.dealCardOverlay {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  cursor: grabbing;
  transform: rotate(2deg);
  opacity: 0.95;
}

.dealCardTitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  line-height: 1.3;
}

.dealCardTitle:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.dealCardMeta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.dealCardFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.dealCardValue {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.dealCardStatus {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.4rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
