

body {
    font-family:arial,sans-serif;
    /* font-family:Open Sans,arial,sans-serif; */
    font-family:Oxygen,arial,sans-serif;
    font-size:14px;
    line-height:20px;    
    padding: 10px;
    /* border:solid blue 1px; */
}

body.admin {
    background-color:#ddd;
}

div {
    box-sizing: border-box;
}

h1 {
    /* font-family: Anton, sans-serif; */
    text-align:left;
    font-size:2.5em;
    line-height: 1em;
    margin: 10px 0;
}

h2 {
    /* font-family: Anton, sans-serif; */
    text-align:left;
    font-size:1.5em;
    line-height: 1em;
    margin: 10px 0;
}


a {
    text-decoration:none;
    color:#000;
    cursor:pointer;
}

a.button,
input.button {
    display:inline-block;
    margin: 0 5px 0 0;
    padding:0px 10px;
    border-radius:3px;
    border:solid #888 1px;
    cursor:pointer;
    line-height: 20px;
    background-color:#ddd;
    /* background-color:yellow; */
}

a.button.active {
    /* background-color:yellow; */
    background-color:#fff;
}

a.button.disabled {
    background-color:#dedede;
    color:#888;
    cursor:default;    
}

a.button.important {
    /* background-color:yellow; */
}

.rightpos {
    position:absolute;
    z-index:100;
    right:10px;
    top:10px;
}


/* 
#form_login input[type=text],
#form_register input[type=text] {
    margin-bottom:5px;
}
 */
.form_register_login input[type=text],
.form_register_login input[type=password] {
    margin-bottom:5px;
}

/* input[name=user_amount] { */
#form_booking input.user_amount {
    width:40px;
    /* width:20px; */
    margin-top:2px;
    font-size: 18px;
    text-align:center;
}
#form_booking input[type=submit] {
    display:none;
    width:100px;
    margin-top:5px;
}

.slot .freeplaces {
/*     display:none; */
    /* display:block; */
    /* border:solid red 5px; */
    
}
.slot .freeplaces.error {
    color:red;
}
.slot.max_users .freeplaces.error {
    color:black;
}
.user_amount_wrap {
    /* border:solid red 5px; */
}

.past_slot .freeplaces,
.weekday_slot .freeplaces,
.past_slot .user_amount,
.weekday_slot .user_amount, 
.past_slot_already_booked .user_amount,
.past_slot_already_booked .user_amount_wrap
{
     visibility:hidden; 
   /*  border:solid red 5px; */
}

/****************************/

.hint_teilnehmer {
    display: block;
    /* border:solid red 2px; */
}


.slot.weekday_slot .hint_teilnehmer {
    display: none;
}


/****************************/

#calendarWrap  {
    position:relative;
    min-width:250px;
    max-width: 800px;
    /* width: fit-content; */
    /* text-align:center; */
    /* padding:10px 20px; */
    /* padding-top: 10px; */
    /* clear: both; */
    /* border:solid #ccc 10px; */
}

#naviButtons  {
    float:right;
    /* text-align:center; */
    /* margin:5px 0; */
    /* border:solid #ccc 1px; */
}


#naviButtons .today  {
    background-color:#fff;
}

#formWrap {
    /* display:inline-block; */
   /*  width: fit-content; */
    margin:10px 0;
    /* border:solid #ccc 1px; */  
}

.day {
    margin: 0 0 15px 0;
    /* padding:5px; */
    text-align: center;
    /* border:solid #ccc 1px;   */
    /* padding:5px 0 0 0; */
     /* border-top:solid #ccc 1px;  */
   /*  background-color:#dedede;  */
   /* font-weight: bold;  */
}

.day_display {
    font-weight:bold;
    margin:0 0 3px 0; 
    /* text-align: center; */
    text-align: left;
}

.day.today {
    /* background-color:#FFFFB5; */
    /* font-weight: bold; */
    /* color:#000; */
}

.day.past {
    /* background-color:#ccc; */
    /* opacity:0.5; */
}
.day.past .slot {
    background-color:#ccc;
    color:#000;
    
}

.slot_wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content:space-between;
    /* border: solid red 1px;  */   
}

.slot {
    display:inline-block; 
    vertical-align:top; 
    
    padding:5px 5px;
    background-color:#B7FF7F;
    color:green;
    font-weight: bold;
    border-radius:8px; 
    /* border:solid #ccc 1px; */
    cursor:default;

    min-width: 30px;
    /* width: 14%; */
    min-height: 65px;
    user-select: none;
    border: solid transparent 5px;
}

.slot_display {
    /* font-family: Anton, sans-serif; */
    font-weight: bold;
    letter-spacing:0.05em;
    font-size:20px;
    /* font-weight: normal;  */   
}

.slot.max_users {
    /* color:#888; */
    background-color:#FF7171;
    color:red;
    color: #fff;
    /* border:solid red 1px; */
}

.slot.few_users {
    background-color:yellow;
}


.slot,
.slotDummy {

    /* filter: brightness(2); */

    /* background-size:contain; */
    background-size: 45%;
    background-size: 35px;
    background-size: 50px;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: 30px;
    
    background-position-x: 90%;    
    text-align: left;
    padding-left:10px;

}



.slot.already_booked  {    
/* .slot.slotDummy.already_booked { */
    background-image:url(../layout/okay.png); 
    border-color:transparent !important;
}

.slot.past_slot {
    background-color:#ccc !important;
    color:#fff;
    cursor:not-allowed !important;
    border-color:transparent !important;
}


.slot.past_slot.already_booked,
.slot.slotDummy.past_slot.already_booked {
    background-image:url(../layout/okay_past.png);
    border-color:transparent !important;
}

.slot.past_slot:hover {
    box-shadow:none;
}

.slot.weekday_slot {
    background-color:#ccc;
    color:#fff !important;
    cursor:not-allowed !important;
    border-color:transparent !important;
    background-image: none !important;
}
.slot.weekday_slot:hover {
    box-shadow:none !important;
    transform: none !important;
}

.past_slot_already_booked {
    background-color:#ccc !important;
    /* color:#fff; */
    cursor:not-allowed !important;
    border-color:transparent !important;
}
.past_slot_already_booked:hover {
    box-shadow:none !important;
    transform: none !important;
}

.slot.past_slot_already_booked.booked_slot {
    background-image:url(../layout/okay_past.png) !important;
}


/*******/

.slotDummy.disabled_by_already_booked {
/* .slot.disabled_by_already_booked { */
    cursor:not-allowed !important;
    border-color:blue;
    /* border-color:#FF5245; */
}
.slotDummy.disabled_by_already_booked:hover {
    box-shadow:none !important;
    transform: none !important;
}
/* 
.slot.disabled_by_already_booked input {
    border-color:#FF5245;
    border-color:yellow;
}
 */


#md5error {
    border:solid red 1px;
}

#refresh_timer {
    position:fixed;
    z-index:99999;
    bottom:5px;
    right:5px;
    padding:0px;
    /* width:32px; */
    background:#fff;
    border:solid #000 1px;
    cursor:default;
}
#refresh_timer div {
    height:8px;
    height:10px;
    width:1px;
    background:#000;
}
#refresh_timer span {
    position:absolute;
    top:0;
    left:-25px;
    text-align:right;
    /* color:red; */
    line-height:10px;
    display:inline-block;
    width:20px;
    /* border:solid red 1px;  */
}


/**************/

#formWrap form {
    margin-top:10px;
}

#formWrap input[type=submit] {
    width:100%;
}

#formWrap input[type=text].delSlot {
    width: 40px;
    display: block;
}


#checkTable {
    width:100%;
    margin-top:10px;
}
#checkTable tr:hover {
    background-color: #eee;
}

#checkTable th {
    padding-right:10px;
    text-align:left;
    font-weight:normal;
    font-style:italic;
    border-bottom:solid #ccc 1px;
}

#checkTable td {
    padding-right:5px;
    padding-left: 3px;
    line-height:22px;
    border-top:solid #A7A7A7 1px;      
}
#checkTable td.small {
    width:30px; 
}
#checkTable td.right {
    text-align:right;
}

#checkTable td.user {
    font-weight:bold;
    /* width:100%; */
}

#checkTable tr.edit_user_mark {
    background-color:#fff;
    background-color:#F9FAB7;
    /* color:red; */
}

#checkTable td.button {
    /* font-size:20px; */
    /* text-align:right; */
    /* padding-right:0; */
    width: 30px;
    padding: 0;
    text-align: center;
   /*  border: solid #888 1px; */
    padding:0px 3px;
    border-radius:3px;
    border:solid #A7A7A7 1px;
}
#checkTable td.button a {
    /* color:red; */
}
#checkTable .del_button,
#checkTable .del_button_users {
    /* color:red; */
    cursor:pointer;
    font-size: 28px;
    line-height: 18px;
}

#checkTable .del_button:hover,
#checkTable .del_button_users:hover {
    color:red;
}

#checkTable tr.del_line {
    background-color:#888;
    color:#fff;
    /* background-color:magenta; */
}

#checkTable .edit_button {
    /* color:green; */
    cursor:pointer;

}

#checkTable tr.blocktime td {
    padding:15px 0 0 0;
    border-top:solid red 10px;
    border:0;
}
#checkTable tr.blocktime:hover {
    background-color:inherit;
}

#checkTable tr.blocktime.past_slot span.blocktime {
    color:#888;
}



#checkTable span.blocktime {
    display:inline-block;
    width: 100%;
    /* font-family: Anton, sans-serif; */
    font-weight:bold;
    font-size:1.5em;
    padding:5px 0px 5px 5px;
    color:#888;
    color:#B7FF7F;
    color:green;
    background-color: #ccc;
    

}
#checkTable span.blockcount {
    display:inline-block;
    padding:0px 3px;
    /* border:solid red 3px; */
}

#checkTable tr.max_users span.blocktime {
    color:red;
    color:#FF7171;
    color:#FF5245
}

#checkTable tr.few_users span.blocktime {
    color:yellow;
    /* color:#FFFC8E; */
}

#checkTable td {
    vertical-align:top;
    
}

#checkTable td.password {
    white-space:nowrap;
    /* border:solid red 1px; */
}
#checkTable td.password span.pw {
    display:none;
}
#checkTable td.password span.pw_dummy {
}

#checkTable table.bookings4user td {
    /* line-height:18px; */
    padding:0;
    padding-right:10px;
    border-top: solid #A7A7A7 1px;
    /* border:0; */
    /* border:solid red 1px; */
    font-weight:normal;
    white-space:nowrap;
}
#checkTable table.bookings4user tr.past {
    color:#888;
    /* display:none; */
}


/***********************/

#user_display {
    font-weight:bold;
    margin:20px 0;
    /* font-family: Anton, sans-serif; */
    text-align:left;
    font-size:1.8em;
    /* color:#888; */
/*     border:solid #ccc 1px; */
}


.error_req {
    padding-left:5px;
    color:red;
}

.error {
    color:red;
}

/************************/

#info {
    /* position: relative; */
    position: absolute;
    z-index: 1000;
    top:0px;
    left:0px;

    width:100%;
    display:none;
    padding:20px 15px;
    /* margin:10px 0; */
    background-color:#eee;
    background-color: #FAFAB2;
    background-color: #fff;
    
    /* border-radius: 10px; */
    box-shadow: 0px 0px 10px #555;    

}

#info #info_closer {
    position: absolute;
    top:10px;
    right:10px;
    font-size:44px;
    cursor:pointer;
    /* border:solid red 1px; */
}


/******************************************/
/* TEST */
/* 
Moderneres Layout (Radios werden nicht angezeigt)
Siehe: JS und CSS !!
Suchen: slotDummy
 */


.day_display {
    /* font-family: Anton, sans-serif; */
    font-size:18px;
    color:#A5A5A5;
    padding-bottom:2px; 
}

.day.today .day_display {
    color:#000;
    /* border: solid green 3px; */
}

.slot.slotDummy {
    cursor:pointer;
    /* font-family: Anton, sans-serif; */
    font-weight: bold;
    letter-spacing:0.05em;
    font-size:20px;
    height:70px;
    margin:0;
    padding: 5px;
    /* border-right:solid #fff 5px;  */
    border-radius:8px;
    
    /* margin-right:3px; */
}


.day.past .slot.slotDummy {
    cursor:not-allowed;
    /* border: solid magenta 20px; */
}

.slot.max_users {
    cursor:not-allowed;
    /* cursor:crosshair; */
    /* opacity:0.5; */ 
    background-color:#FF5245;
}

.slot.max_users * {
     /* opacity:0.7; */
}

.slot.slotDummy.already_booked {
   /* border: solid green 3px; */
}

.slot.max_users.already_booked {
    cursor:pointer;
    /* opacity:1; */
    /* background-color:red; */
    /* background-color:orange; */
    /* border: solid green 3px; */
}

.slot.max_users.already_booked * {
     /* opacity:1; */
}


.slot.slotDummy:hover {
    box-shadow: 0px 0px 10px #555;
    transform: scale(1.1);
}
.slot.slotDummy.max_users:hover {
    box-shadow: none;
    transform: none;
}
.slot.slotDummy.max_users.already_booked:hover {
    box-shadow: 0px 0px 10px #555;
    transform: scale(1.1);
}
.day.past .slot.slotDummy:hover {
   box-shadow: none;
   transform: none;
}

.slot.slotDummy.past_slot {
    background-color:#ccc;
    color:#fff;
    opacity:1;
    /* border:solid #000 5px; */
}
.slot.slotDummy.past_slot:hover {
    box-shadow:none !important;
    transform: none !important;
   /*  border-right:solid #fff 3px !important; */
    /* border:solid #000 5px; */
}

.slot.nodisplay {
    display:none;
     /* opacity:0.5; */
}

/************/

/*
#formWrap input[type=radio].checked {
    opacity: 0.4;
    zoom:1.5;
}
*/

/************/

.CONTROL {

    position:absolute;
    z-index: 10;
    /* top:0px; */
    /* right:0px; */
    bottom:0px;
    left:0px;
    margin:0px 0;
    padding:10px;
    width: fit-content;
    background-color:#fff;
    background-color: #ddd;
    background-color: #FCFFB5;

    max-height: 250px;
    overflow: auto;

   /*  border: solid #ccc 1px; */
}

.CONTROL .autofill {
    cursor:pointer;
    /* width: fit-content; */
    /* margin:2px 0; */
    /* padding:2px 5px; */
    /* background-color:yellow; */
    /* background-color:#ddd; */
    
    /* border:solid red 1px; */
}
.CONTROL .autofill:hover {
    /* color:red; */
    color:blue;
}



/************/
.hint_adminMODE {
    color:blue;
    color:#888;
    /* font-weight:bold; */
    /* float: right; */
}



/****************************/
/* Admin */

.showday {
    font-weight:normal;
/*     margin:20px 0; */
    /* font-family: Anton, sans-serif; */
    text-align:left;
    font-size:2em;
    font-size:1.5em;
    line-height:1em;
    font-weight:bold;
    color:#888;
    margin:20px 0 10px 0;
/*     border:solid #ccc 1px; */
}

.showday.today {
    color:#000;
}

.delete_control {
    color:red;
    font-weight:bold;
}

/****************************/
#loading_icon  {
    /* display:none; */
    position:fixed;
    z-index:999;
    top:50px;
    right:15px;
    /* right:50%; */
    /* top:50%; */
    
}

#loading_mask  {
    display:none;
    position:fixed;
    z-index:999;
    top:0px;
    left:0px;
    
    width: 100%;
    height: 100%;
    background-color:#fff;
    background-color:rgba(250,250,250,0.7);
    
    background-image:url(../layout/loading1.gif);

    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;

}

.client_logo {
    
    /* float:right; */
    position: absolute;
    z-index: 1;
    bottom: 15px;
    right: 15px;
    text-align: right;
    /* width: 100%; */
    
    /* border:solid red 1px; */
}
.client_logo img {
    width:100%;
    width:110px;
}
.client_logo span {
    display: block;
    /* display: inline-block; */
    /* vertical-align: top; */
    /* padding: 5px; */
    /* border:solid red 1px; */
}

/******************************************/

.show_password {
    display:inline-block;
    vertical-align: middle;
    width:30px;
    height:20px;
    background: url(../layout/auge.png);
    background-size:80%;
    /* background-size: contain; */
 
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center; 
    
    opacity:0.3;
    
    cursor:pointer;
    /* border:solid red 1px; */
}

.show_password.active {
    opacity:0.7;
}


/**************/
.infoslotwrap {
    /* display:table-cell; */
    /* vertical-align:middle; */
    margin:8px 0px;
    /* border:solid #ccc 1px; */
}


.infoslot {
    display:inline-block;
    vertical-align: top;
    width:40px;
    height:25px;
    margin-right:10px;
    margin-top: -4px;
    border-radius:6px;
    background-color:#B7FF7F;
    border:solid transparent 3px;

    background-size: 45%;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;

}

.infoslot.disabled {
    background-color:#ccc;
}
.infoslot.max_users {
    background-color:#FF5245;
}

.infoslot.already_booked {
    background-image:url(../layout/okay.png);
    /* background-color:#FF5245; */
    /* background-color:transparent; */
}
.infoslot.disabled_by_already_booked {
    border-color:#FF5245;
}

.margin {
    height:10px;
}

/***********/
.fixedfont {
    font-family:courier;
}


/******************************************/
@media (max-width: 680px) { 
/* @media (max-width: 480px) {  */
    
    #calendarWrap {
        width:100%;
    }
     
    #formWrap {
        width:100%;
    }

    .day {
        margin: 0 0 10px 0;
    }


.slot_wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* border: solid red 1px; */
}
/*
    .slot,
    .slot.slotDummy {
        zoom:0.5;
        border:solid red 1px;
    }
 */
 
    .slot, .slot.slotDummy {
        display:block;
        width:100% !important;
        
        min-height: 1px;
        margin-bottom:5px;
        height: auto;
        text-align: left;

        box-shadow:none !important;
        transform: none !important;
        
        border:0;
        clear:both;

    }

    .slot, .slot.slotDummy {
        display:inline-block;
        /* width:32% !important; */

        min-height: 1px;
        margin-bottom:5px;
        
        padding:10px;
        
        height: auto;
        /* text-align: center; */

        box-shadow:none !important;
        transform: none !important;

        /* border:solid #fff 2px; */      
        clear:both;
    }


    .slot.already_booked,
    .slot.past_slot.already_booked {

        background-size: 24px;
        background-size: 28px;
        background-position-x: 98%;
        background-position-x: 90%;
        background-position-x: center;
        background-position-x: 25%;
        background-position-y: center;
    }


    /* nur bei zeilenweiser Darstellung ausblenden (wenn viele Slots nicht in eine Reihe passen)!!! */
    .slot.past_slot {
        /* display:none; */
    }
    .slot.weekday_slot {
        /* display:none;  */
    }

    .slot.max_users {
        /* display:none; */
    }

    .slotDummy.max_users.already_booked {
        /* display:block; */
        display:inline-block;
    }


    .slot .freeplaces {
        
        display: inline-block;
/*         display:none; */
        margin-right:10px;
    }

    .user_amount_wrap {
        float:right;
    }

    
    #form_booking input.user_amount {
        margin-top: 0px;
        font-size: inherit;
    }

    /*********************/

    .hint_teilnehmer {
        display: inline-block;
        margin-right:5px;
        /* border:solid red 2px; */
    }


}

