/* Steuerberater-Ampel UI — Phase M (2026-05-30)
 * Wording-Korridor strikt: docs/features/steuerberater-ampel-wording.md
 * Kein app.html-Eingriff in diesem Sprint — Asset zur spaeteren Einbettung. */

.sa-ampel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 22px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: #0f172a;
  max-width: 720px;
}
.sa-ampel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.sa-ampel-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sa-ampel-refresh {
  font: inherit;
  font-size: 12.5px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  color: #475569;
}
.sa-ampel-refresh:hover { background: #f8fafc; }

.sa-ampel-status {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.sa-ampel-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.sa-ampel-dot::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.sa-ampel-dot.red    { color: #991b1b; }
.sa-ampel-dot.red::before    { background: #dc2626; }
.sa-ampel-dot.yellow { color: #854d0e; }
.sa-ampel-dot.yellow::before { background: #eab308; }
.sa-ampel-dot.green  { color: #166534; }
.sa-ampel-dot.green::before  { background: #16a34a; }
.sa-ampel-dot.muted  { color: #94a3b8; }
.sa-ampel-dot.muted::before  { background: #cbd5e1; }

.sa-ampel-section {
  margin-top: 14px;
}
.sa-ampel-section-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  margin: 0 0 6px;
}
.sa-ampel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sa-ampel-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.sa-ampel-item.red    { border-left: 3px solid #dc2626; }
.sa-ampel-item.yellow { border-left: 3px solid #eab308; }
.sa-ampel-item-body { flex: 1; }
.sa-ampel-link {
  font-size: 12px;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 600;
}
.sa-ampel-link:hover { background: #1d4ed8; }

.sa-ampel-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.sa-ampel-actions a, .sa-ampel-actions button {
  font: inherit;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid;
}
.sa-ampel-pdf {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
}
.sa-ampel-pdf:hover { background: #f8fafc; }

.sa-ampel-disclaimer {
  margin-top: 16px;
  padding: 11px 14px;
  background: #f1f5f9;
  border-left: 3px solid #64748b;
  border-radius: 6px;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.55;
}
.sa-ampel-disclaimer strong { color: #334155; }

.sa-ampel-summary {
  font-size: 12.5px;
  color: #475569;
  margin: 8px 0 0;
  font-style: italic;
}
.sa-ampel-summary.green { color: #166534; font-style: normal; }

@media (max-width: 600px) {
  .sa-ampel { padding: 16px; border-radius: 12px; }
  .sa-ampel-status { gap: 12px; }
  .sa-ampel-item { flex-direction: column; align-items: flex-start; }
  .sa-ampel-link { width: 100%; text-align: center; }
}
