/* ── Pipeline-Strip (Dashboard) ────────────────────────── */
.pipeline-strip {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s;
  min-width: 90px;
}
.pipeline-step:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.pipeline-count { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.pipeline-label { font-size: .78rem; color: var(--color-muted); margin-top: .25rem; }
.pipeline-arrow { color: var(--color-muted); font-size: 1.2rem; }

.pipeline-step.lead     .pipeline-count { color: #7c3aed; }
.pipeline-step.proposal .pipeline-count { color: #d97706; }
.pipeline-step.customer .pipeline-count { color: var(--color-success); }
.pipeline-step.inactive .pipeline-count { color: var(--color-muted); }

/* ── Pipeline-Badges ───────────────────────────────────── */
.badge.pipeline-lead     { background: #ede9fe; color: #5b21b6; }
.badge.pipeline-proposal { background: #fef3c7; color: #92400e; }
.badge.pipeline-customer { background: #d1fae5; color: #065f46; }
.badge.pipeline-inactive { background: #f1f5f9; color: #475569; }

/* ── Detail-Grid (Kunden-Detail) ───────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 1rem;
  font-size: .9rem;
}
.detail-list dt {
  font-weight: 600;
  color: var(--color-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  align-self: center;
}
.detail-list dd { margin: 0; }

/* ── Page-Header mit Aktions-Buttons ───────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}
.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}
.page-subtitle {
  color: var(--color-muted);
  margin: .2rem 0 0;
  font-size: .9rem;
}
.header-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ── Filter-Form ───────────────────────────────────────── */
.filter-form {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  padding-bottom: .25rem;
}
.filter-input {
  flex: 1;
  min-width: 180px;
  padding: .5rem .75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .9rem;
}

/* ── Notizen ───────────────────────────────────────────── */
.notes-text {
  font-size: .9rem;
  line-height: 1.75;
  white-space: pre-line;
  color: var(--color-text);
}

/* ── Danger Zone ───────────────────────────────────────── */
.danger-zone {
  border-color: #fecaca;
  background: #fff5f5;
}
.danger-zone h2 { color: #991b1b; }
.danger-zone p  { font-size: .9rem; color: #6b7280; margin-bottom: 1rem; }
.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
}
.btn-danger:hover { background: #b91c1c; }

/* ── Variablen-Chip (Vorlagen) ─────────────────────────── */
.variables-preview { margin-top: 1rem; font-size: .85rem; }
.var-chip {
  display: inline-block;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: .15rem .4rem;
  margin: .2rem .2rem 0 0;
  font-size: .8rem;
  font-family: monospace;
}

/* ── Inaktive Tabellenzeile ────────────────────────────── */
.row-inactive td { opacity: .55; }

/* ── URL-Copy Input ────────────────────────────────────── */
.url-copy {
  width: 100%;
  font-size: .8rem;
  padding: .3rem .5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg);
  font-family: monospace;
  cursor: copy;
}

/* ── btn-full ──────────────────────────────────────────── */
.btn-full { width: 100%; text-align: center; display: block; }

/* ── Login-Page ────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}
.login-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
}
.login-card h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}
