/* ==================================================
   KJELLBERG FINSTERWALDE
   Individuelle CSS-Anpassungen
   ================================================== */


/* ==================================================
   01 | ETRACKER – SCHIEBEREGLER
   ================================================== */


/* Grundgestaltung */

label.et-switch {
    position: relative !important;
    display: inline-block !important;
    width: 56px !important;
    height: 28px !important;
    font-family: inherit !important;
    font-size: 18px !important;
    color: #54585A !important;
    vertical-align: middle;
    cursor: pointer;
}


/* Schieberegler – inaktiver Zustand */

input#et-toggle-opt-out + span.et-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 56px !important;
    height: 28px !important;
    padding: 0 !important;
    background-color: #54585A !important;
    border: none !important;
    border-radius: 28px !important;
    box-sizing: border-box !important;
    transition: background-color 0.3s ease !important;
}


/* Schieberegler – aktiver Zustand */

input#et-toggle-opt-out:checked + span.et-slider {
    background-color: #FFB81C !important;
}


/* Weißer Schiebeknopf */

input#et-toggle-opt-out + span.et-slider::before {
    content: "" !important;
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    top: 4px !important;
    left: 4px !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #FFFFFF !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    transform: none !important;
    transition: left 0.3s ease !important;
}


/* Position des Schiebeknopfes – aktiv */

input#et-toggle-opt-out:checked + span.et-slider::before {
    left: 32px !important;
    background-color: #FFFFFF !important;
    border: none !important;
    transform: none !important;
}


/* Statustext neben dem Schieberegler */

input#et-toggle-opt-out + span.et-slider::after {
    position: absolute !important;
    left: 68px !important;
    top: 50% !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #54585A !important;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
    transform: translateY(-50%) !important;
}


/* Sichtbarer Tastaturfokus */

input#et-toggle-opt-out:focus-visible + span.et-slider {
    outline: 2px solid #54585A !important;
    outline-offset: 4px !important;
}


/* Mobile Darstellung */

@media screen and (max-width: 767px) {

    label.et-switch {
        display: block !important;
        margin-bottom: 65px !important;
    }

    input#et-toggle-opt-out + span.et-slider::after {
        top: 38px !important;
        left: 0 !important;
        width: min(280px, 75vw) !important;
        font-size: 16px !important;
        white-space: normal !important;
        transform: none !important;
    }

}


/* ==================================================
   02 | DATENSCHUTZEINSTELLUNGEN – BUTTON
   ================================================== */


/* Standarddarstellung */

#ppms_cm_privacy_settings_button {
    display: inline-block;
    background-color: #FFB81C;
    color: #54585A;
    border: none;
    border-radius: 0;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
    transition: background-color 0.2s ease,
                color 0.2s ease;
}


/* Mouseover */

#ppms_cm_privacy_settings_button:hover {
    background-color: #54585A;
    color: #FFFFFF;
}


/* Sichtbarer Tastaturfokus */

#ppms_cm_privacy_settings_button:focus-visible {
    outline: 2px solid #54585A;
    outline-offset: 4px;
}


/* Mobile Darstellung */

@media screen and (max-width: 767px) {

    #ppms_cm_privacy_settings_button {
        max-width: 100%;
        font-size: 16px;
        white-space: normal;
    }

}