/* nunito-regular - latin */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/nunito-v24-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
    url('../fonts/nunito-v24-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/nunito-v24-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
    url('../fonts/nunito-v24-latin-regular.woff') format('woff'), /* Modern Browsers */
    url('../fonts/nunito-v24-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
    url('../fonts/nunito-v24-latin-regular.svg#Nunito') format('svg'); /* Legacy iOS */
}

* {
    margin: 0;
    padding: 0;
}

body{
    background-color: #fff;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.header {
    box-shadow: 0 0 7px rgb(0 0 0 / 20%);
    border: none;
    width: 100%;
    display: block;
}

.header .img {
    padding: 1rem;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    max-width: 800px;
    padding: 1.25rem 0 0;
    width: 80%;
}

.content {
    padding: 1rem 0;
    text-align: center;
}

h1 {
    margin-bottom: 0.5rem;
}

.contact {
    margin: 1.5rem 0;
    text-align: center;
}

.contact .font-margin {
    font-size: 0.98rem;
    line-height: 1.19rem;
    margin-top: 0.5rem;
}

.form {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    padding-bottom: 2rem;
    width: 100%;
}

h2 {
    margin-bottom: 1rem;
}

.input-div {
    padding: 0.75rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    position: relative;
}
.two-col {
    padding: 0;
}

.input-col {
    display: flex;
    flex-direction: row;
    width: 50%;
    position: relative;
    padding: 0.75rem 0;
}

.input-col .alert {
    bottom: -5px;
}

/* label */
.label-text {
    font-size: 1rem;
    line-height: 1.25rem;
    padding-right: 1rem;
}

input {
    border: none;
    border-bottom: 1px solid black;
    padding: 0 0 0.2rem 0;
    font-family: 'Nunito', sans-serif;;
    margin-bottom: 0.3rem;
}

input:focus {
    outline: none;
}

.input-customer {
    width: 70%;
    font-size: 1rem;
}

select {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.3rem;
    padding: 0.3rem 0.3rem 0.3rem 0;
    width: 70%;
}

.input-col input {
    flex: 1 0 auto;
    font-size: 1rem;
}

.captcha {
    margin-left: auto;
}

button {
    font-size: 1rem;
    border-radius: 0.125rem;
    line-height: 1.59375rem;
    transition-duration: .4s;
    transition-property: box-shadow,background;
    background: 0 0;
    padding: 0.5rem 0.75rem;
    box-shadow: none;
    margin: 0;
    border: 2px solid #009be1;
    color: #009be1;
}

button:hover {
    box-shadow: inset #009be1 300px 0 0;
    background: 0 0;
    color: #fff;
    text-decoration: none;
}

.alert {
    display: block;
    color: red;
    font-size: 0.8rem;
    padding-top: 0.3rem;
    position: absolute;
    bottom: 0;
    right: 0;
}

.captcha + .alert {
    bottom: -5px;
}

.customer-number {
    justify-content: space-between;
}

.submit-div {
    float: right;
    margin-top:2%;
}

.red-color {
    color: red
}

.font-margin {
    font-size: 1.2rem;
    margin-top:1rem;
}

.strasse-label {
    padding-right: 0.8rem;
}

.hausnummer-label {
    padding: 0 0.8rem;
    margin-left: 1rem;
}

.text-center {
    text-align: center;
    margin: 0.2rem 0;
}
 .msg {
    text-align: center;
    margin: 0 auto;
 }

.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 50px;
    height: 50px;
    -webkit-animation: spin 2s linear infinite;
    /* Safari */
    animation: spin 2s linear infinite;
}

.alert-success {
    padding: 1rem;
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-fail {
    padding: 1rem;
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
    margin: 1rem 0;
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader {
    display: none;
}


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

    main {
        width: 100%;
        overflow: hidden;
    }

    .content, .msg, .form {
        padding: 0 1rem;
    }

    h1 {
        margin-top: 1rem;
    }

    .contact {
        text-align: left;
    }

    .input-div {
        padding: 0.5rem 0 1rem;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: column;
    }

    input {
        margin-bottom: 0;
        padding: 0.5rem 0.5rem 0.2rem 0;
    }

    select {
        margin-top: 0.5rem;
        width: 93%;
    }

    .input-customer {
        font-size: 1rem;
        width: 90%;
    }

    .input-div.two-col {
        flex-direction: column;
    }

    .input-col {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .input-col label {
        width: 100%;
    }
    .input-col .input-customer {
        width: 90%;
    }

    .input-col:last-child {
        padding: 1.5rem 0 0;
    }

    .hausnummer-label {
        margin: 0;
        padding: 0;
    }

    .input-customer-hausnummer {
        width: 45%;
    }

    .input-customer-strasse {
        width: 90%;
    }

    .alert {
        position: relative;
    }

    .captcha + .alert {
        margin-left: auto;
    }
}
