/* Komponenten */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.9rem;
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.button-secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.button-secondary:hover {
  border-color: #bfdbfe;
  background: var(--primary-soft);
}

.button-white {
  background: #fff;
  color: var(--primary-dark);
}

.button-outline-white {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-light {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dashboard-window {
  padding: 22px;
  border: 1px solid rgba(191, 219, 254, 0.75);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

.dashboard-topbar,
.card-heading,
.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-topbar {
  margin-bottom: 20px;
}

.dashboard-topbar > div:first-child {
  display: flex;
  flex-direction: column;
}

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

.dashboard-user {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kpi-card,
.chart-card,
.activity-card {
  border: 1px solid #e8eef8;
  border-radius: 16px;
  background: #fff;
}

.kpi-card {
  padding: 16px;
}

.kpi-card span,
.kpi-card small {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.kpi-card strong {
  display: block;
  margin: 7px 0;
  font-size: 1.35rem;
}

.kpi-card small {
  color: var(--success);
  font-weight: 700;
}

.dashboard-content {
  display: grid;
  grid-template-columns: 1.55fr 0.8fr;
  gap: 14px;
  margin-top: 14px;
}

.chart-card,
.activity-card {
  min-height: 230px;
  padding: 18px;
}

.card-heading span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.chart-bars {
  display: flex;
  height: 160px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
}

.chart-bars span {
  flex: 1;
  min-width: 18px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.activity-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activity-item {
  justify-content: flex-start;
  gap: 10px;
}

.activity-item > div {
  display: flex;
  flex-direction: column;
}

.activity-item strong {
  font-size: 0.78rem;
}

.activity-item small {
  color: var(--text-muted);
  font-size: 0.67rem;
}

.activity-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 850;
}

.activity-icon.success {
  background: #dcfce7;
  color: #15803d;
}

.activity-icon.warning {
  background: #fef3c7;
  color: #b45309;
}

.activity-icon.info {
  background: #dbeafe;
  color: #1d4ed8;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-small);
  font-size: 0.78rem;
}

.floating-card span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 850;
}

.floating-card-pos {
  bottom: -18px;
  left: -24px;
}

.floating-card-stock {
  top: 35px;
  right: -28px;
}

.module-card {
  display: block;
  min-height: 290px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.035);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.module-card:hover {
  transform: translateY(-7px);
  border-color: #bfdbfe;
  box-shadow: 0 20px 46px rgba(37, 99, 235, 0.1);
}

.module-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 850;
}

.text-link {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 750;
}

.workflow-list > div {
  position: relative;
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.workflow-list > div:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 2;
  color: var(--primary);
  content: "→";
  font-weight: 900;
}

.workflow-list span {
  display: grid;
  width: 31px;
  height: 31px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}
