﻿/*form styles*/
#msform {
    text-align: center;
    position: relative;
    margin-top: 30px;
}

fieldset {
    text-align: center;
    background: white;
    border: 0 none;
    border-radius: 0px;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
    padding: 20px 30px;
    box-sizing: border-box;
    width: 80%;
    margin: 0 10%;
    /*stacking fieldsets above each other*/
    position: relative;
}

        /*Hide all except first fieldset*/
        fieldset:not(:first-of-type) {
            display: none;
        }

    /*inputs*/
    input, textarea, select {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 0px;
        margin-bottom: 1.5em;
        width: 100%;
        box-sizing: border-box;
        font-family: montserrat;
        line-height: normal !important;
    }

        input:focus, textarea:focus, select:focus {
            -moz-box-shadow: none !important;
            -webkit-box-shadow: none !important;
            box-shadow: none !important;
            border: 1px solid #2869B2;
            outline-width: 0;
            transition: All 0.5s ease-in;
            -webkit-transition: All 0.5s ease-in;
            -moz-transition: All 0.5s ease-in;
            -o-transition: All 0.5s ease-in;
        }

        input.invalid,
        select.invalid,
        div.invalid {
            padding: 8px;
            border: 3px solid red;
        }

        div.alignInputs,
        div.imgSelectOuterDiv {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            margin-bottom: 10px;
        }

        div.alignInputs *,
        div.imgSelectOuterDiv * {
            margin-right: 10px;
            margin-bottom: 0px;
        }

            div.imgSelectOuterDiv div.imgSelect {
                padding: 15px;
                margin: 30px 0px;
                display: inline-block;
                cursor: pointer;
                -webkit-transition-duration: .5s;
                transition-duration: .5s;
                -webkit-transition-property: -webkit-transform;
                transition-property: transform;
            }

                div.imgSelectOuterDiv div.imgSelect img {
                    width: 100%;
                }

                div.imgSelectOuterDiv div.imgSelect:hover {
                    -webkit-transform-origin: center center;
                    -moz-transform-origin: center center;
                    transform-origin: center center;
                    -webkit-transform: scale(1.05);
                    -moz-transform: scale(1.05);
                    transform: scale(1.05);
                    background-image: -moz-linear-gradient(#fff,#f1f1f1);
                    background-image: -o-linear-gradient(#fff,#f1f1f1);
                    background-image: linear-gradient(#fff,#f1f1f1);
                    -moz-box-shadow: 0 1px 3px rgba(0,0,0,.2);
                    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,.2);
                    box-shadow: 0 1px 3px rgba(0,0,0,.2);
                    border: 1px solid #ccc;
                }

                div.imgSelectOuterDiv div.imgSelect.selected {
                    background-image: -moz-linear-gradient(#dddddd,d1d1d1);
                    background-image: -o-linear-gradient(#dddddd,#d1d1d1);
                    background-image: linear-gradient(#dddddd,#d1d1d1);
                    -moz-box-shadow: 0 1px 3px rgba(0,0,0,.2);
                    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,.2);
                    box-shadow: 0 1px 3px rgba(0,0,0,.2);
                    border: 1px solid #000000;
                }

                div.imgSelectOuterDiv div.imgSelect label {
                    display: block;
                    width: 100%;
                    text-align: center;
                    margin-top: 10px;
                }

                fieldset ul,
                fieldset ol {
                    list-style-position: inside;
                }

/* TOGGLE STYLING */
.toggleRadiobuttons {
    margin: 0 0 1.5rem 0;
    box-sizing: border-box;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: stretch;
}

.toggleRadiobuttons input {
    width: 0;
    height: 0;
    position: absolute;
    left: -9999px;
}

.toggleRadiobuttons input + label {
    margin: 0;
    cursor: pointer;
    padding: .75rem 2rem;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    border: solid 1px #DDD;
    background-color: #FFF;
    line-height: 140%;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    transition: border-color .15s ease-out, color .25s ease-out, background-color .15s ease-out, box-shadow .15s ease-out;
    /* ADD THESE PROPERTIES TO SWITCH FROM AUTO WIDTH TO FULL WIDTH 
    flex: 0 0 50%; display: flex; justify-content: center; align-items: center;
    */
}

.toggleRadiobuttons input + label:first-of-type {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.toggleRadiobuttons input + label:last-of-type {
    border-radius: 0 25px 25px 0;
    border-left: none;
}

.toggleRadiobuttons input:hover + label {
    border-color: #cccccc;
    background-color: #DDDDDD;
}

.toggleRadiobuttons input:checked + label {
    background-color: #2869b2;
    border: 1px solid #2869b2;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(40, 105, 178, 0.5);
    z-index: 1;
}

.toggleRadiobuttons input:focus + label {
    outline: dotted 1px #CCC;
    outline-offset: .45rem;
}

        @media (max-width: 800px) {
            .toggleRadiobuttons input + label {
                padding: .75rem .25rem;
                flex: 0 0 50%;
                display: flex;
                justify-content: center;
                align-items: center;
            }
        }

        #msform div.alignInputs .narrow {
            width: 30%;
        }

        #msform div.alignInputs :last-child {
            margin-right: 0px;
        }

/*headings*/
.fs-title {
    font-size: 18px;
    text-transform: uppercase;
    color: #2C3E50;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-weight: bold;
    clear: both;
}

.fs-subtitle {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 20px;
    clear: both;
}

.fs-nextfieldtitle {
    font-size: 15px;
    font-weight: bold;
    margin: 20px 20px;
    clear: both;
}

.fs-nextfieldsubtitle {
    margin-top: -20px;
}

/*progressbar*/
#progressbar {
    padding: 0;
    overflow: hidden;
    /*CSS counters to number the steps*/
    counter-reset: step;
    width: 70%;
    margin: auto;
    margin-bottom: 30px;
}

    #progressbar li {
        list-style-type: none;
        text-transform: uppercase;
        font-size: 9px;
        width: 33.3%;
        float: left;
        position: relative;
        letter-spacing: 1px;
    }

        #progressbar li:before {
            content: counter(step);
            counter-increment: step;
            width: 24px;
            height: 24px;
            line-height: 26px;
            display: block;
            font-size: 12px;
            color: #333;
            background: #E9E9E9;
            border-radius: 25px;
            margin: 0 auto 10px auto;
        }

        /*progressbar connectors*/
        #progressbar li:after {
            content: '';
            width: 100%;
            height: 2px;
            background: #E9E9E9;
            position: absolute;
            left: -50%;
            top: 9px;
            z-index: -1; /*put it behind the numbers*/
        }

        #progressbar li:first-child:after {
            /*connector not needed before the first step*/
            content: none;
        }

        /*marking active/completed steps green*/
        /*The number of the step and the connector before it = green*/
        #progressbar li.active:before, #progressbar li.active:after {
            background: #2869B2;
            color: white;
        }

#divMap {
    margin-top: 20px;
    margin-bottom: 20px;
    height: 300px;
}

.loadingDiv {
    height: 400px;
    background-image: url("/fonts/loading.gif");
    background-position: center center;
    background-repeat: no-repeat;
}

.resultDiv,
.infoDiv{
    display: none;
}

.infoDiv {
    text-align: justify;
    flex: 1 1 auto;
    padding: 10px;
    border: 1px solid #ccc;
    margin-right: 0px !important;
    line-height: normal !important
}

.errorDiv {
    border: 3px solid red;
    font-weight: bold;
}

table.Gelaendekategorie,
table.BauanschlussTable {
    width: 100%;
    border-spacing: 0;
    margin-bottom: 12px;
}

table.Gelaendekategorie tr.selected {
    border: 1px solid black;
}

    table.Gelaendekategorie td {
        padding: 10px;
        text-align: left;
        vertical-align: middle;
    }

.Gelaendekategorie tr.Kat1 td {
    background-color: #EEEEEE;
}

.Gelaendekategorie tr.Kat2 td {
    background-color: #DDDDDD;
}

.Gelaendekategorie tr.Kat3 td {
    background-color: #CCCCCC;
}

.Gelaendekategorie td.FirstCol {
    white-space: nowrap;
    font-weight: bold;
}

table.BauanschlussTable td,
table.BauanschlussTable th {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

table.BauanschlussTable th {
    border-bottom: 1px solid #CCCCCC;
}

#tableFensterelemente td:first-of-type {
    width: 1px;
    white-space: nowrap;
}

#tableFensterelementeSchallberechnung input[type=number] {
    width: 100px;
    margin-right: 5px;
}

#tableFensterelementeSchallberechnung td:last-of-type {
    width: 300px;
}