body, input {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

h1{
    display: none;
}

body {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
    --bodyBack: white;
    --progressbarLineActiveColor: var(--farbe1, white);
    --progressbarLineInactiveColor: rgba(255,255,255, 0.6);
    --progressbarDotActiveColor: var(--farbe1, white);
    --progressbarDotInactiveColor: rgba(255, 255, 255, 0.6);
    --progressbarDotCheckmarkColor: var(--farbe2, transparent);
}

.allowSelect {
    -webkit-touch-callout: unset; /* iOS Safari */
    -webkit-user-select: text; /* Safari */
    -khtml-user-select: text; /* Konqueror HTML */
    -moz-user-select: text; /* Firefox */
    -ms-user-select: text; /* Internet Explorer/Edge */
    user-select: text; /* Non-prefixed version, currently supported by Chrome and Opera */
}


footer {
    text-align:center;
}

hr {
    margin-top: 20px;
    margin-bottom: 8px;
    border: 0;
    border-top: 1px solid #eee;
}
a, .link {
    color: #337ab7;
    text-decoration: none;
}
a:hover,
a:focus {
    color: #23527c;
    text-decoration: underline;
}
.link:hover b {
    color: #23527c;
    text-decoration: underline;
}

#pageplaceholder {
    display: flex;
    flex-direction: column;
}

.suchdiv {
    margin-bottom: 3px;
    width: 100%;
    text-align: right;
}

#suchbox {
    border: solid 1px #DEDEDE;
    border-radius: 3px;
    max-width: 9999px;
    width: 100%;
    margin-right: 0px;
    background: no-repeat url(../../images/view16.png) left;
    background-position: 6px;
    padding-left: 25px;
}

.highlight {
    background-color: White;
    color: black;
}

.FilialeBox{
    background-color: #7ba7cc
}


#TerminTypGruppenList {
    list-style-type: none;
    margin: 0;
    padding: 0;
    margin-bottom: 17px;
    overflow: auto;
}

.TerminTypGruppeBox {
    float: left;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: center;
    border-radius: 3px;
    margin-right: 8px;
    overflow: hidden;
    transition: background-color 1s ease;
}


.FilialeBox,
.TerminTypBox {
    padding: 5px;
    text-align: left;
    border-radius: 3px;
    margin: 0px auto;
    margin-top: 5px;
    overflow: hidden;
    transition: background-color 1s ease;
}

.FilialeBox:hover,
.TerminTypBox:hover {
    background-color: lightsteelblue;
    cursor: pointer;
}

.FilialeBox img {
    max-height: 60px;
    float: left;
    margin-right: 4px;
}

#FilialAuswahlListe a {
    text-decoration: none;
}




.calSide-logo {
    border: solid 1px #dedede;
    border-radius: 3px;
}

/* Seitentext Logo Image */
.calSide-logo-image img {
    display: block;
    margin: 0 auto;
    margin-top: 6px;
    max-width: 90%;
}

/* Seitentext Logo Name */
.calSide-logo-name {
    margin-top: 12px;
    margin-left: 6px;
    font-size: 20px;
}

/* Seitentext Logo Adresse */
.calSide-logo-adresse {
    margin-top: 12px;
    margin-left: 6px;
    margin-right: 6px;
    margin-bottom: 4px;
    padding-top: 12px;
    border-top-style: solid;
    border-top-width: 1px;
}

/* Seitentext Extratext DIV */
.calSide-extra {
    border: solid 1px #dedede;
    border-radius: 3px;
    padding-bottom: 8px;
}

.calSide-extra-item {
    position: relative;
    font-size: 14px;
    width: 290px;
    margin-left: 8px;
    margin-bottom: 8px;
    top: 8px;
}

.calSide-extra-item i {
    top: 8px;
    left: 0;
    float: left;
    font-size: 1.6em;
    margin-right: 5px;
    margin-left: 0px;
}

/* Seitentext Extratext Überschrift */
.calSide-extra-item h4 {
    margin: 0px 0;
    margin-left: 20px;
    font-size: 18px;
}

/* Seitentext Extratext Erläuterung */
.calSide-extra-item div {
    margin-left: 20px;
}

.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    line-height: 20px;
    font-style: normal;
    font-weight: bold;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.glyphicon-ok:before {
    content: "\02714";
}



/* Seitentext Pfeil DIV */
.calSide-middle {
    margin-top: 22px;
    padding-left: 16px;
    padding-top: 4px;
    padding-bottom: 4px;
    margin-bottom: 22px;
    width: calc(100% - 18px);
    height: 70px;
    position: relative;
    box-sizing: border-box;
    display: grid;
    align-items: center;
}


.calSide-middle:before {
    content: "";
    position: absolute;
    right: -18px;
    bottom: 0;
    width: 0;
    height: 0;
    border-left-style: solid;
    border-left-width: 18px;
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;
}




body #TimeAuswahlWait.shown {
    display: block !important;
    position: absolute;
    z-index: 100;
    width: 100%;
    text-align: center;
    height: 75px;
}
body #TimeAuswahlWait.shown img {
    position: absolute;
    top: calc(50% - 31px);
    margin-left: -20px;
}


#TerminTypenList {
    list-style-type: none;
    margin: 0;
    padding: 0;
    clear: both;
}
#TerminTypenList li:active {
    transition: all, linear 0.1s;
    outline: none;
    webkit-box-shadow: inset 0px 0px 7px 3px rgba(255,0,0,0.5);
    -moz-box-shadow: inset 0px 0px 7px 3px rgba(255,0,0,0.5);
    box-shadow: inset 0px 0px 7px 3px rgba(255,0,0,0.5);
}

#TerminTypenList li .dauer {
    float: right;
    font-size: 75%;
    line-height: 200%;
}

#MonthInfo {
    width: 100%;
    text-align: center;
}

#MonthInfo input {
    /* Damit es mittiger wirkt*/
    padding-left: 25px;
    text-align: center;
}

#MonthInfo #prevMonth {
    float: left;
}

#MonthInfo #nextMonth {
    float: right;
}

#InfoBox {
    width: calc(100% - 19px);
}

.calendar {
    width: 100%;
    table-layout: fixed;
}

.calendar thead th {
    text-align: center;
}

.calendar {
    border-style: solid;
    border-width: 3px;
    border-collapse: collapse
}

.calendar #weeks td{
    border-style: dotted;
    border-width: 1px;
    text-align: center;
}


.calendar #weeks .closed {
    background-color: lightgray;
}

.calendar #weeks .loadingSlots {
    background-color: lightgoldenrodyellow;
    opacity: 0.5;
}
.calendar #weeks .loadingSlots:first-child {
    background-image: url('../../images/loading.gif');
    background-repeat: no-repeat;
    background-position: center;
}

.calendar #weeks .freeSlots {
    background-color: palegreen;
    cursor: pointer;
}

.calendar #weeks .noFreeSlots {
    background-color: #FF9999;
}

.calendar #weeks .freeSlots:hover,
.calendar #weeks .freeSlots.selected {
    transition: all,linear 0.1s;
    outline-style: solid;
    outline-color: red;
    opacity: 0.8;
}

.calendar #weeks .otherMonth{
    opacity: 0.5;
}

#NextFreeSlotInfoSearchOn {
    cursor: pointer;
}

#NextFreeSlotInfoSearchOn td {
    padding: 10px;
    padding-top: 26px;
    padding-bottom: 26px;
}

#TimeAuswahl .slot .time {
    background-color: white;
    border-style: solid;
    border-width: 1px;
    border-color: gray;
    border-radius: 2px;
    margin-top: 16px;
    padding: 8px;
    min-width: 77px;
    text-align: center;
    box-sizing: border-box;
}
#TimeAuswahl .slot .time:hover,
#TimeAuswahl .slot .time.selected {
    padding-top: 6px;
    padding-bottom: 6px;
    transition: all, linear 0.1s;
    border-style: solid;
    border-color: red;
    border-width: 3px;
    color: red;
    opacity: 0.8;
    cursor: pointer;
}

#TimeAuswahl .slot{
    position: relative;
}

#TimeAuswahl .slot .ma {
    position: absolute;
    white-space: nowrap;
    background-color: white;
    padding-top: 8px;
    padding-left: 8px;
    padding-bottom: 4px;
    padding-right: 8px;
    border-style: solid;
    border-color: black;
    border-width: 1px;
    border-radius: 2px;
    color: gray;
    z-index: 1000;
}
#TimeAuswahl .slot .ma ul {
    margin: 0px;
    padding: 0px;
}
#TimeAuswahl .slot .ma ul li {
    margin: 8px;
    list-style: none;
}

#TimeAuswahl .slot .ma [uid] {
    color: black;
    display: block;
}
#TimeAuswahl .slot .ma [uid]:hover {
    color: darkslateblue;
    cursor: pointer;
}

#MonthInfo {
    height: 20px;
    margin-bottom: 5px
}
#MonthInfo span input {
    height: 100%;
    font-size: 100%;
}
#MonthInfo button {
    height: 100%;
    border-style: solid;
}



#InfoBox {
    border-style: solid;
    border-width: 1px;
    border-radius: 4px;
    padding: 8px;
    margin-top: 16px;
    background-color: white;
}
#TerminBooking input[type="submit"],
#TerminBooking button,
#InfoBox button,
#btnCancel {
    height: 32px;
    transition: all, linear, 0.2s;
    outline: none;
    box-sizing: border-box;
    min-width: 80px;
    line-height:7px;
    cursor: pointer;
}

#btnNew {
    color: white;
    background-color: orange;
    border: 1px solid orange;
    height: 32px;
    transition: all, linear, 0.2s;
    outline: none;
    box-sizing: border-box;
    min-width: 80px;
    line-height: 7px;
    cursor: pointer;
}

#btnCancel,
#btnNew{
    border-radius: 3px;
}

#btnCancel:active,
#TerminBooking button:active,
#InfoBox button:active,
#btnNew:active {
    -webkit-box-shadow: inset 7px 6px 32px -8px rgba(0,0,0,0.75);
    -moz-box-shadow: inset 7px 6px 32px -8px rgba(0,0,0,0.75);
    box-shadow: inset 7px 6px 32px -8px rgba(0,0,0,0.75);
    padding-left: 7px;
    padding-top: 3px;
}

#TerminBooking input[type="submit"]:active {
    -webkit-box-shadow: inset 7px 6px 32px -8px rgba(0,0,0,0.75);
    -moz-box-shadow: inset 7px 6px 32px -8px rgba(0,0,0,0.75);
    box-shadow: inset 7px 6px 32px -8px rgba(0,0,0,0.75);
    padding-left: 12px;
    padding-top: 12px;
}

#TerminBooking input[type="submit"][disabled],
#TerminBooking button[disabled],
#InfoBox button[disabled] {
    opacity: 0.5;
}

#InfoBox {
    margin-top: 16px;
    float: left !important;
    position: unset;
}


#InfoBox h2 {
    margin-top: 0px;
}

body[page="TerminBooking"] #pageplaceholder {
    width: 100%;
}

#TerminBooking form {
    display: flex;
    flex-flow: row wrap;
    flex-direction: column;
    align-items: stretch;
    max-width: 600px;
}
#TerminBooking form label {
    margin: 5px 10px 5px 0;
}

#TerminBooking form label[required]:after{
    color: red;
    content: ' *'
}


#TerminBooking form select,
#TerminBooking form input,
#TerminBooking form textarea {
    vertical-align: middle;
    margin: 0px 10px 5px 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
}
#TerminBooking form input:focus::placeholder,
#TerminBooking form textarea:focus::placeholder{
    color: transparent;
}

#TerminBooking #Zusammenfassung label {
    margin-right: 4px;
    min-width: 81px;
    display: inline-block;
}
#TerminBooking #Zusammenfassung p {
    margin-top: 0;
    margin-bottom: 4px;
}


#Termin #status > div {
    display: flex;
    flex-direction: row;
    margin-bottom: 8px;
    width: 100%;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

#Termin #status > div > img {
    height: 100%;
    margin-right: 4px;
}




#progressbar {
    display: flex;
    justify-content: space-between;
    position: relative;
    /*background-image: linear-gradient(180deg, transparent calc(10px - 1px), var(--progressbarLineColor, var(--farbe1, gray)) 10px, transparent calc(10px + 2px));*/
    margin-bottom: 8px;
    --posFirst: 0px;
    --posActive: 0px;

    background-image: linear-gradient(90deg, var(--progressbarLineInactiveColor) var(--posFirst),var(--progressbarLineInactiveColor), transparent 0px, transparent var(--posActive), transparent 0px, var(--progressbarLineInactiveColor), var(--progressbarLineInactiveColor) 0px), linear-gradient(90deg, var(--progressbarLineActiveColor, var(--bodyBack)), var(--progressbarLineActiveColor, var(--bodyBack)));
    background-position-y: 9px;
    background-size: 100% 3px;
    background-repeat: no-repeat;
    /*margin-left: 128px;
    margin-right: 128px;*/
}
/* Linie vor ersten / nach letze, Ausblenden?
#progressbar > div:first-child {
    background-image: linear-gradient(90deg, var(--bodyBack) 50%, var(--bodyBack) 50%, transparent 1px);
}
#progressbar > div:last-child {
    background-image: linear-gradient(90deg, transparent 50%, var(--bodyBack) 50%, var(--bodyBack) 1px);
}
*/
/*  Wenn der Punkt gleich sein soll , statt der text 
#progressbar > div label {
    min-width: 83px;
}*/
#progressbar > div.disabled:not(.currentProgressPage) > .circle {
    /*background-color: var(--farbe1);*/
    box-shadow: inset 0 0 20px 20px var(--progressbarDotInactiveColor);
}

#progressbar > div:not(.disabled, .currentProgressPage) * {
    cursor: pointer;
}
#progressbar > div:not(.disabled, .currentProgressPage) .circle:after {
    content: '✔';
    width: 100%;
    display: block;
    text-align: center;
    font-weight: 600;
    color: var(--progressbarDotCheckmarkColor);
}

#progressbar > div.currentProgressPage label {
    font-weight: 600;
}
#progressbar > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#progressbar .circle {
    height: 21px;
    width: 21px;
    border-radius: 24px;
    background-color: var(--progressbarDotActiveColor);
    outline-style: solid;
    outline-width: 4px;
    outline-color: var(--bodyBack);
}





.flexContainer {
    display: flex;
    margin-left: -16px;
    margin-top: -16px;
}
.flexContainer > div {
    margin-top: 16px;
    margin-left: 16px;
}

.errorMessage {
    /* wird per Code eingefadet*/
        display: none;
        padding-left: 40px;
        padding-top: 15px;
        padding-bottom: 15px;
        margin-bottom: 10px;
        border-radius: 4px;
        border-style: solid;
        border-width: 1px;
        border-color: darkred;
        background-position-x: 2px;
        background-position-y: 50%;
        background-repeat: no-repeat;
        z-index: 9999;
    }

.errorMessage {
    color: white;
    background-color: red;
    background-image: url('../../images/error_white.png');
}
.errorMessage.ontop {
    position: fixed;
    top: 0;
    width: 100%;
}

.errorMessage > .failcodes:before{
    content: var(--textErrFailCode, 'code: ');
}
.errorMessage > .failcodes {
    display: inline-block;
    margin-left: 8px;
    font-size: 10px;
    opacity: 0.6;
    color: white;
    font-family: monospace;
}


@media only screen and (max-height: 400px), screen and (max-width: 400px) {
    #MonthInfo {
        min-height: 32px;
    }
    #MonthInfo button {
        min-width: 32px;
    }
}

@media only screen and (min-width: 492px) {
    /* Computer / Tablet / Smartphone quer mit mindestens 492 px sichtbar*/

    #Termin #status > div {
        padding: 16px;
    }
}

@media only screen and (orientation: landscape) and (min-width: 741px){
    .landscapeRow {
        flex-direction: row;
    }
}

@media only screen and (orientation: portrait) and (max-width: 740px) {
    .portraitColumn {
        flex-direction: column;
    }
}


#TimeAuswahl .slot .ma:not(.openLeft) {
    position: absolute;
    left: 0;
}
#TimeAuswahl .slot .ma.openLeft {
    position: absolute;
    right: 0;
}

#TimeAuswahl .slot {
    float: left;
    margin-right: 16px;
}

#Mitarbeiter {
    margin-bottom: 12px;
}
#Mitarbeiter label {
    margin-top: 4px;
}

#MitarbeiterAuswahl .selElem {
    cursor: pointer;
    padding: 4px;
    border-color: black;
    border-style: solid;
    border-width: 1px;
    min-width: 170px;
    box-sizing: border-box;
}

#MitarbeiterAuswahl .selElem:after { /* Little arrow */
    content: "";
    float: right;
    margin-top: 6px;
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: dimgray transparent;
}


#MitarbeiterAuswahl #selList {
    position: absolute;
    background-color: white;
    border-style: solid;
    border-width: 1px;
    top: auto;
    margin-top: 0;
    padding-left: 8px;
    padding-right: 8px;
    z-index: 1000;
    min-width: 170px;
    box-sizing: border-box;
}

#MitarbeiterAuswahl #selList li {
    list-style: none;
    margin: 8px;
}
#MitarbeiterAuswahl #selList li:hover {
    color: darkslateblue;
    cursor: pointer;
 }

html[user-agent="firefox"] #MonthInfo input[type="month"]{
    display: none;
}
html[user-agent="firefox"] #MonthInfo label.currentMonthName {
    display: inline-block !important;
}



@media only screen and (max-width: 740px) {
    /* Kleine Geräte*/
    #InfoBox #btnWeiter {
        width: 100%;
    }

    #TimeAuswahl {
        margin-right: -16px;
    }


    #Mitarbeiter {
        width: 100%;
        margin-bottom: 0px;
    }

    #MitarbeiterAuswahl {
        width: 100%;
        height: 40px;
        margin-bottom: 8px;
    }

    #MitarbeiterAuswahl .selElem {
        font-size: large;
    }
    #MitarbeiterAuswahl #selList {
        left: auto;
        width: 100%;
    }

    #MitarbeiterAuswahl #selList li {
        margin-top: 12px;
        margin-bottom: 12px;
        font-size: large;
    }
        #MitarbeiterAuswahl .selElem:after { /* Little arrow */
            margin-top: 9px;
        }

    #TerminBooking #Zusammenfassung button {
        float: left;
    }

    #TerminBooking #Zusammenfassung h2 {
        margin-top: 2px;
        float: left;
        margin-left: 8px;
    }

    .calSide-logo-image img {
        float: left;
        margin: 8px;
        max-height: 20%;
        max-width: 30%;
    }

    .calSide-logo-name {
        padding: 0px;
        font-size: 3.3vw;
    }

    .calSide-logo-adresse {
        padding: 0px;
        margin-top: 2px;
        border-top: none;
        font-size: 3.3vw;
    }

    .calSide-middle,
    .calSide-extra {
        display: none;
    }
}


@media print {
    #btnCancel, #addCal, #footer, #btnPrint {
        display: none;
    }
    #status div[status] {
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        background-color: transparent;
    }

    #pageplaceholder {
        width: 100%;
    }

    body > .flexContainer {
        display: block !important;
        height: 100% !important;
    }
}