
.kontakt {
    position: relative;
    display: inline-block;
    flex: none;
    box-sizing: border-box;
    width: 44px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: #cbd5e1;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color .3s, box-shadow .2s;
}

.kontakt::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    transition: transform .3s;
}

input.kontakt {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

:checked + .kontakt,
input.kontakt:checked,
[role="switch"][aria-checked="true"] .kontakt {
    background-color: #6C63FF;
}

:checked + .kontakt::after,
input.kontakt:checked::after,
[role="switch"][aria-checked="true"] .kontakt::after {
    transform: translateX(20px);
}

:focus-visible + .kontakt,
input.kontakt:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, .3);
}

:disabled + .kontakt,
input.kontakt:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    .kontakt,
    .kontakt::after {
        transition: none;
    }
}
