/* Alle Checkboxen als Toggle. Farbe im aktiven Zustand = Textfarbe (text-blue-600, text-red-600 ...) */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex-shrink: 0;
    width: 2.25rem;
    height: 1.25rem;
    border: 0;
    border-radius: 9999px;
    background: #cbd5e1;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color .2s;
}
input[type="checkbox"]:not([class*="text-"]) { color: #2563eb; }
input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / .25);
    transition: transform .2s;
}
input[type="checkbox"]:checked { background: currentColor; }
input[type="checkbox"]:checked::before { transform: translateX(1rem); }
input[type="checkbox"]:focus { outline: none; box-shadow: none; }
input[type="checkbox"]:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
