/**
 * Switch button
 */

#werbeuf-switchbox {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#werbeuf-switchbox .ftoc-switch {
    width: auto !important;
    max-width: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border: #3a8290;
    border-width: 1.5px;
    border-style: solid;
    border-radius: 50px;
    /*padding: 10px;*/
    flex-shrink: 0;
}

#werbeuf-switchbox .ftoc-switch input {
    position: absolute;
    visibility: hidden;
    z-index: -1;
    left: -9999px;
}

#werbeuf-switchbox .ftoc-switch label {
    display: inline-block;
    width: 55px;
    height: 31px;
   
    border: 2px solid #3a8390;
    padding: 1px;
    transition: border-color .3s;
    position: relative;
    border-radius: 25px;
}

#werbeuf-switchbox .ftoc-switch input:checked ~ label {
    /*border-color: #8bc2c3;*/
}

#werbeuf-switchbox .ftoc-switch label::before {
    content: '';
    display: block;
    width: 25px;
    height: 25px;
    background: #3a8390;
    position: absolute;
    left: 1px;
    top: 1px;
    transition-property: background, margin-left;
    transition-duration: .3s;
    border-radius: 50%;
}

#werbeuf-switchbox .ftoc-switch input:checked ~ label::before {
    /*background: #8bc2c3;*/
    margin-left: 25px;
}

#werbeuf-switchbox span {
    display: inline-block;
    font-weight: bold;
    font-size: 18px;
    padding: 20px;
}

#ftoc-onoff {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media screen and (max-width: 980px) {
    #werbeuf-switchbox span {
        font-size: 17px;
    }

}

@media screen and (max-width: 767px) {
    #werbeuf-switchbox span {
        font-size: 16px;
    }
}

@media (max-width: 450px) {
    #werbeuf-switchbox .ftoc-switch {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
            border-radius: 30px;
    }

    #werbeuf-switchbox span {
    padding: 25px;
    }

    #werbeuf-switchbox .ftoc-switch input:checked ~ label::before {
        margin-left: 0px;
        margin-top: 25px;
    }

    #werbeuf-switchbox .ftoc-switch label {
        width: 28px;
        height: 52px;
    }

    #werbeuf-switchbox .ftoc-switch label::before {
        width: 22px;
        height: 22px;
        transition-property: background, margin-top;
    }
}