* {
    box-sizing: border-box;
}

body {
    background-color: #f1f1f1;
}

.immo_slider {
    margin: 2rem auto;
    font-family: Raleway;
    width: 100%;
    min-height: 500px;
    min-width: 300px;
    position: relative;
    border-radius: 12px;
}
@media (min-width: 800px) {
    .immo_slider {
        margin: 2rem auto;
        font-family: Raleway;
        width: 70%;
        min-height: 500px;
        min-width: 300px;
        position: relative;
        border-radius: 12px;
    }
}
#module_port {
    background: #fff;
    padding:1.5rem 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
}

h1 {
    text-align: center;
}

input {
    padding: 10px;
    width: 100%;
    font-size: 17px;
    font-family: Raleway;
}

/* Mark input boxes that gets an error on validation: */
input.invalid {
    background-color: #ffdddd;
}

/* Hide all steps by default: */
.tab {
    display: none;
}

.nextBtn, .prevBtn {
    background-color: #2991D6;
    border: none;
    padding: 10px 40px;
    color: #fff;
    font-size: 13px;
    font-family: Raleway;
    cursor: pointer;
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: fit-content;
    z-index: 2;
    font-weight: 700;
    border-radius: 7px;
}

button:hover {
    opacity: 0.8;
}

.prevBtn {
    background-color: transparent;
    left: 5px;
    color: #d2d2d2;
    border-radius: 50%;
    padding: 10px;
    bottom: -1px;
}

/* Make circles that indicate the steps of the form: */
.step {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbbbbb;
    border: none;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

/* Mark the steps that are finished and valid: */
.step.finish {
    background-color: #4CAF50;
}


.module{
    text-align: center;
    /*display: none;*/
}
.module h3 {
    font-size: 26px;
}
.module-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    height: 100%;
    min-height: 300px;
}
.module_button {
    width: 100%;
    border: 0 solid #d2d2d2;
    transition: 0.1s all ease;
    position: relative;
}
.module-grid-2 {
    display: grid;
    width: 100%;
    grid-template-columns: 100%;
}
.module-grid-3 {
    display: grid;
    width: 100%;
    grid-template-columns: 100%;
}
.module-grid-4 {
    display: grid;
    width: 100%;
    grid-template-columns: 100%;
}
.module_range, .module_plz {
    width: 100%;
}
.module_form {
    width: 100%;
    max-width: 750px;
}
@media (min-width: 420px) {
    .module_button {
        width: 100%;
        border: 0 solid #d2d2d2;
        transition: 0.1s all ease;
        position: relative;
    }
    .module-grid-2 {
        display: grid;
        width: 100%;
        grid-template-columns: 50% 50%;
    }
    .module-grid-3 {
        display: grid;
        width: 100%;
        grid-template-columns: 50% 50%;
    }
    .module-grid-4 {
        display: grid;
        width: 100%;
        grid-template-columns: 50% 50%;
    }
}
@media (min-width: 800px) {
    .module-wrapper {
        display: flex;
        height: 100%;
        align-items: center;
        min-height: 300px;
    }
    .module_button {
        padding: 1rem;
        width: 33%;
        border: 0 solid #d2d2d2;
        margin: 0em auto 1em;
        transition: 0.1s all ease;
        position: relative;
    }
    .module-grid-4 {
        display: grid;
        width: 100%;
        grid-template-columns: 25% 25% 25% 25%;
    }
    .module-grid-3 {
        display: grid;
        width: 100%;
        grid-template-columns: 33% 33% 33%;
    }

}
.module_button_label:checked, .module_button_label:focus {
    border: 3px solid #2991D6;
    box-shadow: 7px 7px 8px #d3d3d3;
    transition: 0.5s all ease;
}
.module_button_activator {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    margin: 0 auto;
    width: 100%;
    height: 200px;
    margin-bottom: 1em;
    top: 0;
    left: 0;

}
.module_button_label {
    background: #FFF 0% 0% no-repeat padding-box;
    box-shadow: 0 3px 6px #00000029;
    width: 100%;
    height: 200px;
    border: 0 solid #d2d2d2;
    margin: 0em auto 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.1s all ease;
    cursor: pointer;
    border-radius: 12px;
}
.module_button_label p {
    margin-top: 1rem;
    color: #2991D6;
}
.module_range, .module_plz {
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 1rem;
    box-shadow: 0 3px 6px #00000029;
    justify-content: center;
    border-radius: 14px;
}
.module_range, .module_input, .module_plz {
    margin: 0 auto;
}

.module_input input {
    width: 100%;
}
.module_input input[type="checkbox"], .module_input input[type="radio"] {
    width: auto !important;
}

.module-grid-4 .module_button {
    width: 100%;
}

.module-grid-3 .module_button, .module-grid-2 .module_button{
    width: 100%;
}
input[type=radio]:checked + label {
    border: 3px solid #2991D6;
    transition: 0.5s all ease;
    box-shadow: 7px 7px 8px #33333363;
}
input[type=checkbox]:checked + label, input[type=radio]:checked + label {
    border: 3px solid #2991D6;
    border-top: 9px solid #2991D6;
    transition: 0.5s all ease;
    box-shadow: 7px 7px 8px #33333363;
}
.range-output {
    padding: 0.5rem;
    background: #ececec;
    margin: 1rem;
    border-bottom: 3px solid #2991D6;
}


input[type="range"] {
    -webkit-appearance: none;
    margin: 18px 0;
    height: 20px;
    width: 200px;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
    background: #3071a9;
    border-radius: 1.3px;
    border: 0.2px solid #010101;
}
input[type=range]::-webkit-slider-thumb {
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
    border: 1px solid #000000;
    height: 26px;
    width: 26px;
    border-radius: 100%;
    background: #ffffff;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -7px;
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #367ebd;
}
input[type=range]::-moz-range-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
    background: #3071a9;
    border-radius: 1.3px;
    border: 0.2px solid #010101;
}
input[type=range]::-moz-range-thumb {
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
    border: 1px solid #000000;
    height: 36px;
    width: 16px;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
}
input[type=range]::-ms-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    animate: 0.2s;
    background: transparent;
    border-color: transparent;
    border-width: 16px 0;
    color: transparent;
}
input[type=range]::-ms-fill-lower {
    background: #2a6495;
    border: 0.2px solid #010101;
    border-radius: 2.6px;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-fill-upper {
    background: #3071a9;
    border: 0.2px solid #010101;
    border-radius: 2.6px;
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
input[type=range]::-ms-thumb {
    box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
    border: 1px solid #000000;
    height: 36px;
    width: 16px;
    border-radius: 3px;
    background: #ffffff;
    cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
    background: #3071a9;
}
input[type=range]:focus::-ms-fill-upper {
    background: #367ebd;
}





.module_img {
    width: 100%;
}
.module_range_img {
    margin-bottom: 1rem;
}
.module_title {
    font-size: 18px;
    font-weight: 900;
    color: #2991D6;
}
.module_content {
    font-size: 14px;
    font-weight: 300;
    color: #333;
    margin: 1rem 0 !important;
}
.module_start {
    font-size: 14px;
    font-weight: 300;
    color: #2991D6;
}
.form_grid {
    display: grid;
    grid-template-columns: 49% 49%;
    grid-gap: 2%;
    margin-bottom: 1rem;
    row-gap: 14px;
}
.form_grid input {
    background: #F0F2F4;
    color: #14324F;
    padding: 0.5rem;
    border: none;
}
.anrede {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}
.anrede div {
    width: 20%;
    display: flex;
    justify-content: flex-start;
}
.finish_button {
    width: 100%;
    text-align: center;
    background: #F5BF09;
    color: #fff;
    font-size: 18px;
    padding: 0.5rem;
    border: none;
    box-shadow: none;
    border-radius: 8px;
    cursor: pointer;
}
.finish_button span{
    font-size: 14px;
}
.form_footer {
    background: #ececec;
    position: relative;
    bottom: 0px;
    width: 100%;
    height: 50px;
    border-radius: 0 0 12px 12px;
}
.progress_wrapper {
    height: 10px;
    width: 100%;
    background: #fff;
}
.progress_wrapper_bar {
    transition: 0.5s all ease;
    width: 0%;
    height: 100%;
}

#value-modernizr_2::before, #value-conditions::before {
    content: 'vor';
    display: block;
    visibility: visible;
    margin-right: 1rem;
}
#value-modernizr_2, #value-conditions {
    display: flex;
}
#value-modernizr_2::after, #value-conditions::after {
    margin-left: 1rem;
    content: 'Jahren';
    display: block;
    visibility: visible;
}
.anrede input {
    display: none;
}
.anrede label::before {
    width: 12px;
    height: 12px;
    content: '';
    background: #fff;
    border: 2px solid #333;
    display: inline-flex;
    margin-right: 1rem;
}
.anrede input[type=radio]:checked + label, .datenschutz input[type=checkbox]:checked + label{
    border: none;
    box-shadow: none;
}
.anrede input[type=radio]:checked + label::before {
    background: #333;
}
.immo_slider_usps img {
    max-width: 100%;
}
.immo_slider_usps {
    display: block;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin-top: 1rem;
}
@media (min-width: 800px) {
    .immo_slider_usps {
        display: flex;
        margin-top: 0;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
}
.slider-usp img {
    margin-right: 1rem;
}
.slider-usp {
    font-weight: 500;
    margin-right: 1rem;
}