.form-separator:has(.switch) {
    display: flex;
}

.switch {
    position: relative;
    display: flex;
    width: 50px;
    height: 25px;
    gap: 60px;
    margin-top: 0.4em;
}

.switch strong {
    white-space: nowrap; /* Verhindert den Zeilenumbruch */
}

/* Versteckt die eigentliche Checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch + span {
    padding: 0.5rem;
    margin-left: 20px;
}

/* Stil des Sliders (der bewegliche Schalter) */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 25px;
    border: 2px solid;
    min-width: 45px;
}

/* Der runde Knopf im Slider */
.slider::before {
    content: "";
    position: absolute;
    height: 21px;
    width: 22px;
    left: 0px;
    bottom: 0px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Farbe ändern, wenn die Checkbox aktiv ist */
input:checked + .slider {
    background-color: #fcc700;
}

/* Knopf nach rechts verschieben, wenn aktiviert */
input:checked + .slider::before {
    transform: translateX(24px);
}
