/* Einheitliche, klar erkennbare Zustände für noch nicht verfügbare Aktionen. */
button:disabled,
.button[aria-disabled="true"] {
  background: #8b9690 !important;
  color: #fff !important;
  cursor: not-allowed;
  opacity: .72;
}

/* Beim Senden oder Auswerten bleibt ausschließlich der kreisende Fortschritt sichtbar. */
button.is-loading {
  background: var(--green) !important;
  color: transparent !important;
  opacity: .76;
  cursor: wait;
}

button.is-loading::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff8c;
  border-top-color: #fff;
  border-radius: 50%;
  animation: action-spinner .75s linear infinite;
}

/* Farbige Buttonvarianten dürfen beim Hover nicht auf das allgemeine Grün
   zurückfallen. Diese Regeln gelten zentral auf öffentlichen und Admin-Seiten. */
button.danger:hover:not(:disabled),
.button.danger:hover:not([aria-disabled="true"]),
button.danger:active:not(:disabled),
.button.danger:active:not([aria-disabled="true"]) {
  background: #6f171a !important;
  border-color: #6f171a !important;
}

.filter-drawer > summary.filter-active:hover,
.filter-drawer > summary.filter-active:active {
  background: #b45309 !important;
  border-color: #b45309 !important;
}

button.text:hover:not(:disabled),
.button.text:hover:not([aria-disabled="true"]),
button.text:active:not(:disabled),
.button.text:active:not([aria-disabled="true"]) {
  background: transparent !important;
  color: var(--green-dark) !important;
}

@keyframes action-spinner {
  to { transform: rotate(360deg); }
}
