/* only acf form */
.acf-form {
    z-index: 1;
}
.acf-form .acf-fields > .acf-field {
    padding:0;
    border-top:none;
    margin-bottom: 2rem;
    z-index: 1;
}
.acf-label label{
    font-weight: bold !important;
}
.acf-form input,
.acf-form textarea{
    border:2px solid #059E42 !important;
    font-size: 1rem !important;
}
.acf-checkbox-list,
.acf-radio-list {
    border:none !important;
}
.acf-checkbox-list label,
.acf-radio-list label,
.acf-true-false label{
    font-weight:normal !important;
    display: flex !important;
    margin-bottom: 1rem !important;
    font-size: 1rem !important;
    font-style:italic;
}
.acf-checkbox-list label input[type="checkbox"],
.acf-radio-list label input[type="radio"],
.acf-true-false label input[type="checkbox"]{
    display: block !important;
    margin-right: 12px !important;
    margin-top:1px !important;
    width: auto;
    color:#0D3858;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    width:1rem !important;
    height:1rem !important;
    padding:0 !important;
    flex:0 0 auto !important;
    border: 2px solid #0D3858;
    background-color: white;
}
.acf-radio-list label input[type="radio"] {
    border-radius: 9999px;
}
.acf-checkbox-list label input[type="checkbox"]:checked,
.acf-true-false label input[type="checkbox"]:checked {
    background-color:#0D3858;
    outline: 2px solid white !important;
    outline-offset: -4px;
}
.acf-radio-list label input[type="radio"]:checked {
    background-color:white;
    outline: 2px solid #059E42 !important;
    outline-offset: -4px;
    border: 2px solid white !important;
}
.acf-true-false .message {
    line-height: 1;
}
.select2-selection {
    border:2px solid #059E42 !important;
    border-radius: 0 !important;
    padding:1rem;
    font-family: var(--wp--preset--font-family--latolatin) !important;
    color:#0D3858 !important;
    height:58px !important;
}
.select2-selection .acf-selection {
    color:#0D3858 !important;
}
.select2-selection .select2-selection__arrow::after {
    width: 11px;
    height: 11px;
    border-bottom: 1.5px solid #059E42;
    border-right: 1.5px solid #059E42;
    content: "";
    position: absolute;
    right: 1em;
    transform: rotate(45deg);
    top: 20px;
}
.select2-container.select2-container--open .select2-selection__arrow::after {
    transform: rotate(-135deg);
    top: 25px;
}
.select2-selection .select2-selection__arrow b {
    display: none;
}
.select2-dropdown {
    border: 2px solid #059E42 !important;
    border-radius: 0 !important;
    -webkit-box-shadow: 0px 10px 30px -10px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 10px 30px -10px rgba(0,0,0,0.5);
    box-shadow: 0px 10px 30px -10px rgba(0,0,0,0.5);
}
.select2-container--open .select2-dropdown--below {
    border-top:none !important;
}
.select2-container--open .select2-dropdown--above {
    border-bottom:none !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color:#fafafb !important;
    color:#0D3858 !important;
}
.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color:#92de62 !important;
    color:#0D3858 !important;
}
.select2-container--default .show_searchfield .select2-search--dropdown {
    display: block !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #0D3858 !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline:none !important;
}
.select2-selection__placeholder .acf-selection {
    font-size: 0 !important;
}
.select2-selection__placeholder .acf-selection::after {
    content:'Bitte auswählen';
    font-size: 1.1rem !important;
    color:#bcbcbc !important;
    font-weight: bold;
}
.acf-form input::placeholder {
    font-size: 1.1rem !important;
    color:#bcbcbc !important;
    font-weight: bold;
}

 .acf-form .acf-radio-list li label {
     background-color: white;
     border:2px solid #059E42;
     padding:1rem;
     width: 100%;
     font-style: normal;
     font-weight: bold !important;
     cursor: pointer;
 }
 .acf-form .acf-radio-list li label {
     background-color: white;
     border:2px solid #059E42;
     padding:1rem;
     width: 100%;
 }
 .acf-form .acf-radio-list li label.selected {
     background-color:#059E42;
     color:white;
 }
 .acf-form .acf-radio-list li:last-child {
     margin-right: 0 !important;
 }
 .acf-form  .acf-radio-list label {
     margin-bottom: 0 !important;
 }
 .acf-form #message.updated {
     padding:1rem 2rem;
     color:#3AA685;
     border:2px solid #3AA685;
     font-size: 1.2rem;
     margin-bottom: 2rem;
     margin-top:1rem;
 }
 .acf-form #message.updated p,
 .acf-form .acf-notice.acf-error-message p{
     margin:0;
 }
 .acf-form .acf-notice.acf-error-message{
     padding:1rem 2rem;
     color:#ff006e;
     border:2px solid #ff006e;
     font-size: 1.2rem !important;
     margin-bottom: 2rem;
     margin-top:1rem;
     background-color:transparent;
 }
 .acf-form .acf-input .acf-notice.acf-error-message{
     padding:0 !important;
     color:#ff006e !important;
     border: none !important;
     margin-bottom: 0.5rem !important;
     margin-top: 0.5rem;
     background-color:transparent !important;
 }
 .acf-form .acf-notice.acf-error-message p,
 .acf-form .acf-notice.acf-error-message .acf-icon{
     font-size: 1.2rem !important;
 }
 .acf-form .acf-input .acf-notice.acf-error-message p{
     font-size: 1rem !important;
 }
 .acf-form .acf-field[data-name="sn_acceptance"] .acf-label{
     display: none;
 }

 .acf-form .acf-radio-list li {
    width: 100%;
    margin-right: 0px !important;
    margin-bottom: 16px !important;
 }

 .acf-form .acf-field-file .acf-file-uploader{
    border:2px dashed #059E42;
    cursor: pointer;
 }
 .acf-form .acf-field-file .acf-file-uploader::before{
    content:"PDF hochladen\A(Einfach klicken oder die Datei hier ins Feld ziehen)";
    position: absolute;
    line-height: 1.4;
    top:1rem;
    left:1rem;
    color:#bcbcbc;
    font-weight: bold;
    max-width: calc(100vw - 10% - 5rem);
    display: inline-block;
 }
 .acf-form .acf-field-file .acf-file-uploader[data-mime_types=".jpg"]::before{
    content:"JPG hochladen\A(Einfach klicken oder die Datei hier ins Feld ziehen)";
 }
 .acf-form .acf-field-file .acf-file-uploader[data-mime_types=".pdf"]::before{
    content:"PDF hochladen\A(Einfach klicken oder die Datei hier ins Feld ziehen)";
 }
 .acf-form .acf-field-file .acf-file-uploader[data-mime_types=".png"]::before{
    content:"PNG hochladen\A(Einfach klicken oder die Datei hier ins Feld ziehen)";
 }
 .acf-form .acf-field-file .acf-file-uploader[data-mime_types*=".jpg"][data-mime_types*=".png"]::before,
 .acf-form .acf-field-file .acf-file-uploader[data-mime_types^=".jpg"][data-mime_types*=".png"]::before{
    content:"JPG oder PNG hochladen\A(Einfach klicken oder die Datei hier ins Feld ziehen)";
 }
 .acf-form .acf-field-file .acf-file-uploader[data-mime_types*=".jpg"][data-mime_types*=".pdf"]::before,
 .acf-form .acf-field-file .acf-file-uploader[data-mime_types^=".jpg"][data-mime_types*=".pdf"]::before{
    content:"PDF oder JPG hochladen\A(Einfach klicken oder die Datei hier ins Feld ziehen)";
 }
 .acf-form .acf-field-file .acf-file-uploader[data-mime_types*=".png"][data-mime_types*=".pdf"]::before,
 .acf-form .acf-field-file .acf-file-uploader[data-mime_types^=".png"][data-mime_types*=".pdf"]::before{
    content:"PDF oder PNG hochladen\A(Einfach klicken oder die Datei hier ins Feld ziehen)";
 }
 .acf-form .acf-field-file .acf-file-uploader[data-mime_types*=".png"][data-mime_types*=".pdf"][data-mime_types*=".jpg"]::before,
 .acf-form .acf-field-file .acf-file-uploader[data-mime_types^=".png"][data-mime_types*=".pdf"][data-mime_types*=".jpg"]::before{
    content:"PDF, JPG oder PNG hochladen\A(Einfach klicken oder die Datei hier ins Feld ziehen)";
 }
 
 body .acf-form .acf-field-file .acf-input .acf-file-uploader[data-filename]::before {
    content:attr(data-filename) !important;
 }

 .acf-form .acf-field-file .acf-file-uploader::after{
    content:'';
    display: block;
    position: absolute;
    top:1rem;
    right:1rem;
    width:24px;
    height:24px;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Ebene_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 29.4 28.6' style='enable-background:new 0 0 29.4 28.6;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23059E42;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M26.2,18.1c-1,0-1.8,0.8-1.8,1.8v2h-9.6H5.1v-2c0-1-0.8-1.8-1.8-1.8c-1,0-1.8,0.8-1.8,1.8v2.2 c0,1.8,1.5,3.3,3.3,3.3h9.9h9.9c1.8,0,3.3-1.5,3.3-3.3v-2.2C28,18.9,27.2,18.1,26.2,18.1z'/%3E%3Cpath class='st0' d='M10.7,12.5l2-2v8.8c0,1.2,1,2.1,2.1,2.1s2.1-1,2.1-2.1v-8.8l2,2c0.8,0.8,2.2,0.8,3,0c0.7-0.7,0.7-2,0.1-2.8 l-5.7-5.8c-0.1-0.1-0.3-0.3-0.6-0.5c-0.4-0.2-0.7-0.2-0.9-0.2s-0.5,0-0.9,0.2l-0.2,0.1l-0.1,0.1c-0.1,0.1-0.2,0.2-0.3,0.3L7.7,9.5 C7.3,9.9,7,10.5,7,11s0.2,1.1,0.6,1.5C8.5,13.3,9.8,13.3,10.7,12.5z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    z-index: -1;
 }



 .acf-form .acf-field-file .acf-file-uploader input[type="file"]{
    opacity: 0;
    cursor: pointer;
    min-height: calc(50px + 2rem);
 }

 .acf-field[style*="width: 50%"],
 .acf-field[style^="width: 50%"]{
    width: 100% !important;
    margin-right:0 !important;
 }
@media only screen and (min-width: 460px) {
    .acf-form .acf-field-file .acf-file-uploader::before{
        white-space:pre;
    }
}


 @media only screen and (min-width: 990px) {
    .acf-form .acf-radio-list li {
        width: calc(50% - 8px);
     }
     .acf-form .acf-radio-list li:nth-child(odd) {
        margin-right: 16px !important;
     }
  
     .acf-form .acf-radio-list.acf-bl li {
        width: 100%;
        margin-right: 0px !important;
     }
     
     .acf-field[style*="width: 50%"],
     .acf-field[style^="width: 50%"]{
        width: calc(50% - 8px) !important;
        margin-right: 16px !important;
     }
     .acf-field[style*="width: 50%"] + .acf-field[style*="width: 50%"],
     .acf-field[style^="width: 50%"] + .acf-field[style*="width: 50%"],
     .acf-field[style*="width: 50%"] + .acf-field[style^="width: 50%"],
     .acf-field[style^="width: 50%"] + .acf-field[style^="width: 50%"]{
        margin-right: 0 !important;
     }

     .acf-form input,
    .acf-form textarea{
        font-size: 1rem !important;
    }
    .acf-checkbox-list label,
    .acf-radio-list label,
    .acf-true-false label{
        font-size: 1.2rem !important;
    }
}