@import url('variables.css');
@import url('reset.css');
@import url('layout.css');
@import url('components.css');
@import url('forms.css');
@import url('tables.css');
@import url('scanner.css');
@import url('responsive.css');

/* ── Auth-Layout ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(37,99,235,.05) 0%, transparent 50%);
  padding: var(--space-6);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.auth-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-brand);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.5px;
}

.auth-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* ── Detail-Panels ────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.detail-cell {
  background: var(--color-surface);
  padding: var(--space-4) var(--space-5);
}

.detail-cell-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.detail-cell-value {
  font-size: var(--text-sm);
  color: var(--text-primary);
  word-break: break-word;
}

/* ── Zeitleiste ───────────────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.timeline-phase {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
}

.timeline-phase-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}

.timeline-phase-dates {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* ── Gewichts-Balken ──────────────────────────────────── */
.weight-bar { margin-top: var(--space-2); }

.weight-bar-track {
  height: 6px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.weight-bar-fill {
  height: 100%;
  background: var(--color-brand);
  border-radius: var(--radius-full);
  transition: width .3s ease, background .3s ease;
}

.weight-bar-fill.over { background: var(--color-danger); }
.weight-bar-fill.warn { background: var(--color-warning); }

/* ── Projektstatus-Farbe am linken Rand ───────────────── */
.project-row-inquiry     td:first-child { border-left: 3px solid var(--color-info); }
.project-row-offer       td:first-child { border-left: 3px solid var(--color-warning); }
.project-row-confirmed   td:first-child { border-left: 3px solid var(--color-success); }
.project-row-in_progress td:first-child { border-left: 3px solid var(--color-brand); }
.project-row-completed   td:first-child { border-left: 3px solid var(--color-success); }
.project-row-cancelled   td:first-child { border-left: 3px solid var(--color-danger); }

/* ── Hilfsmittel ──────────────────────────────────────── */
.text-muted   { color: var(--text-muted); }
.text-danger  { color: var(--color-danger); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-brand   { color: var(--color-brand-l); }
.text-sm      { font-size: var(--text-sm); }
.text-xs      { font-size: var(--text-xs); }
.font-mono    { font-family: var(--font-mono); }
.font-semibold { font-weight: var(--font-semibold); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.gap-3 { gap: var(--space-3); }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
