:root {
  --dayWidth: 69px;
  --dayFontSize: 16px;
  --dayFontSizeCap: 18px;
  --reservWidth: 70%;
  --reservPadding: 13px;
  --border-radius: 4px;
  --menuBackground: #848484;
  --menuBorder: #b5b5b5;
}


@media screen and (max-width: 600px) {  
  :root {  
    --dayWidth: 8vw;
    --dayFontSize: 11px;
    --dayFontSizeCap: 13px;
    --reservWidth: 100vw;
    --reservPadding: 0px;
    --border-radius: 4px
  }
}
body {
  font-family: Helvetica, Arial, Sans-Serif;
  color: #fff;
  padding: var(--reservPadding);
  margin: 0px;
  border: solid 1px gainsboro;
  border-top-color: gainsboro;
  border-top-color: white;
  background-color: #000;
  width: 94%;
  margin: 3rem auto 0 auto;
}

h1 {
  background: #7f1322;
  margin: 10px 0px 9px 4px;
  padding: 11px 8px;
  border-bottom: 2px solid #cecece;
  text-align: center;
  font-size: 21px;
  color: white;
}

.calendarContainer{
  width: 100%;
  background: rgb(48 48 48);
  border-radius: var(--border-radius);
  margin-top: 1rem;
}

.navigation{
  background-color: var(--menuBackground);
  border-bottom: 4px solid var(--menuBorder);
  padding: 8px;
}
nav ul {
  margin: 0px;
}



.loginStuff {
  vertical-align:top;
  float: right;
  display: flex;
  align-items: center;
}

.displayUsername p{
  display:inline;
  margin-right: 1rem;
}

.displayUsername .user{
  display:inline;
  font-size: 18px;
  
}

.menu {
  display: inline;
  padding: 0px;
  
}

.menu input{
  margin: 4px;
  
  width: 220px;
  
  font-size: 16px;
}

.dropdown {
  display:inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #b5b5b5;
  min-width: auto;
  box-shadow: 0px 10px 12px 0px rgb(0 0 0 / 20%);
  border-top-color: var(--menuBackground);
  z-index: 1;
}
.dropdown:hover .dropdown-content {
  display: block;
}

.subnav{
  border:none;
  padding: 4px;
  background-color: rgb(198,211,0,0.0);
  
  border-bottom: 3px solid rgb(255,255,10,0.0);
  
  font-size: 16px;
  padding: 5px 4px;
  margin-bottom: 0px;
}
.subnav:hover{
  color: white;
  border-bottom: 3px solid rgb(255,255,10);
}

:focus {
    outline: none;
  border-color: var(--menuBorder);
}

button{
  border:none;
  font-size: 1rem;
  width: 100%;
  text-align: center;
  padding: .6rem;
  margin: 0px 0px 4px 0px;
  color: #ffffff;
  background-color: #d6d6d6;
  transition: 0.3s;
  border-bottom: 2px solid #cecece;
  background-color: #696969;
  /* margin-top: 1rem; */
}
.fieldContent button{
  margin: 0;
}
.slotform button {
  background: #7f1322;
  margin-top: 3rem;
}
button:hover{
  cursor: pointer;
  color: black;
  background-color: #efeded;
  transition: 0.3s;
}

.navbtn {
  margin: 0px;
  border: solid 1px #e8eff1;
  width: auto;
}
.DD .navbtn,
.DD ~ .menu .navbtn{
  width: 100%;
}

.signUp {
    margin-top: 3rem;
    width: 100%;
}

.signUp input{
  margin: 6px;
  margin-left: 0;
  width: 25rem;
  font-size: 16px;
}

.signUp .SU-pwdContainer > input:last-of-type {
  margin-left: 3rem;
}

.SU-pwd {
  display: inline;
}

.custom-text{
  
}

.custom-checkbox{
  
}

.custom-number{
  width: 13%;
  padding: 3px;
  font-size: 1.1rem;
  text-align: end;
}

.custom-email{
  
}

.custom-time{
  
}

.wrapperMain p {
  /* font-size: 1.2rem; */
  margin: 0;
}

.Reservierung{
  width: var(--reservWidth);
  padding: 1rem 0 0 0;
  margin-top: 0px;
  border-top-color: white;
  background-color: #ff620403;
  margin: 0 auto;
}

select#select-Uhrzeit_h,
select#select-Uhrzeit_m {
  width: 3.5rem;
}
.frontNotice{
  white-space: pre-wrap;
  border-bottom: solid;
  border-bottom-color: currentcolor;
  border-color: var(--c, #efefef);
  padding: 0px 6px 15px 6px;
  font-size: var(--dayFontSizeCap);
  color: white;
}

.weekWrapper {
  margin-bottom: 0px;
  /* background: rgba(230, 230, 230, 0.69); */
  padding: 5px 5px 0px 5px;
  width: -moz-fit-content;
  width: 99%;
}

.weekTitle {
  background-color: #dadada;
  box-shadow: 0px 6px 8px #adadad;
  font-size: 18px;
  text-align: center;
  margin: 10px auto;
  width: 300px;
  padding: 8px 0px;
}


.dayDesc{
  width: 69.5px;
  margin: 10px 0px 9px 4px;
  padding: 8px 8px;
  border-bottom: 2px solid #cecece;
  text-align: center;
  font-size: var(--dayFontSizeCap);
  /* box-shadow: inset -13px -18px 34px #eaeaea; */
  display: inline-block;
  border-radius: var(--border-radius);
  color: white;
}

.weekdays {
  margin: auto;
  padding: 0px;
}

.weekdays .center {text-align: center;}

.dayWrap {
  display: inline-block;
  margin: 0px;
  list-style-type: none;
  font-size: var(--dayFontSize);
  width: max-content;
}

.weekdays .day {  
  width: 50px;
  width: var(--dayWidth);
    text-align: center;
    padding: 8px 8px;
    margin: 0px 0px 4px 0px;
    
  color: #0f352e;
    /*background-color: #cfcfce;*/
  background-color: #cbe3ce;
  
  -moz-box-shadow:    inset 0 0 10px #adadad;
  -webkit-box-shadow: inset 0 0 10px #adadad;
  box-shadow:         inset 0 0 10px #adadad;
  border-radius: var(--border-radius);
}

.weekdays .day:hover {
  cursor: pointer;
  color: black;
  background-color: #b4f3bb;
  
}

.weekdays .day:active {
  cursor: pointer;
  color: black;
  background-color: #b4f3bb;
}

.weekdays .dayNA {
  width: 50px;
  width: var(--dayWidth);
  text-align: center;
  padding: 8px 8px;
  margin: 0px 0px 4px 0px;
  color: #6c6c6c;
  background-color: #d6d6d6;
  -moz-box-shadow:    inset 0 0 10px #adadad;
  -webkit-box-shadow: inset 0 0 10px #adadad;
  box-shadow:         inset 0 0 10px #adadad;
  border-radius: var(--border-radius);
}

.weekdays .dayNA:hover {
  cursor: not-allowed;
  background-color: #d6d0d0;
}

.weekdays .dayNS {
  width: 50px;
  width: var(--dayWidth);
    text-align: center;
    padding: 8px 8px;
    margin: 0px 0px 4px 0px;
    
  color: #6c6c6c;
    background-color: #d6d6d6;
  
  -moz-box-shadow:    inset 0 0 10px #adadad;
  -webkit-box-shadow: inset 0 0 10px #adadad;
  box-shadow:         inset 0 0 10px #adadad;
  border-radius: var(--border-radius);
}

.weekdays .dayNS:hover {
  cursor: cursor: pointer;
  background-color: #cbe3ce;
}

.hovernote {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.day:hover .hovernote {
  visibility: visible;
}

.day .hovernote:hover{
  margin-left: 30px;
}

.dayNA:hover .hovernote {
  visibility: visible;
}

.dayNA .hovernote:hover{
  margin-left: 30px;
}


.timeslots {
  border-top: 3px solid rgb(100,0,0);
  padding: 0px;
}

.timeslots li {
  list-style-type: none;

}

.reservFeld {
  margin: 3px;
}

/*scroll through weeks button*/
.scrollBox{
  display: flex;
  justify-content: center;
  margin: 1vw;
}

.scrollNext {
  text-decoration: none;
  color: white;
  padding: 10px;
  background-color: #7f1322;
  display: inline-block;
  text-align: center;
  width: 100px;
  border-bottom: 2px solid #cecece;
  margin-top: 1rem;
  transition: box-shadow 0.6s;
}

.scrollNext:link {
  
}

.scrollNext:visited {
  
}

.scrollNext:hover {
  border-bottom: 2px solid #cecece;
  box-shadow: inset 150px 0px 9px #f8bc7b;
}

.scrollNext:active {
  border-bottom: 2px solid #cecece;
  box-shadow: inset 150px 0px 9px #f8bc7b;
}

.scrollBack {
  text-decoration: none;
  color: white;
  padding: 10px;
  background-color: #7d7d7d;
  display: inline-block;
  text-align: center;
  width: 100px;
  border-bottom: 2px solid #cecece;
  margin-top: 1rem;
  transition: box-shadow 0.6s;
  margin-right: 1.5rem;
}

.scrollBack:link {
  
}

.scrollBack:visited {
  
}

.scrollBack:hover {
  border: 1px solid white;
  box-shadow: inset -150px 0px 9px #ebebeb;
}

.scrollBack:active {
  border: 1px solid white;
  box-shadow: inset -150px 0px 9px #ebebeb;
}

.slotform {
  
}

.slotbtn {
  background-color: rgb(205,220,10);
  margin:auto;
  margin-top: 5px;
  margin-bottom: 1px;
  width: 70%;
  padding: 10px 15px;
  border: none;
  border-bottom: 4px solid rgb(0,0,10);
}

.slotbtn:hover {
  border-bottom: 4px solid rgb(240,240,240);
  color: white;
}

.selectedMain {
  width: 40%;
  margin: auto;
}

.selectedMain form{

  display: inline;
}

.selectedMain form button{
  border:none;
  padding: 4px;
  background-color: rgb(205,220,0,1.0);
  
  border-bottom: 3px solid rgb(255,255,10,0.0);
  
  font-size: 16px;
  padding: 5px 4px;
  margin: 5px;
}
.selectedMain form button:hover{
  color: white;
  border-bottom: 3px solid rgb(255,255,10);
}

.loginLink {
    margin-top: 2rem;
    text-align: right;
}

.loginLink form{
  float: right;
}

.loginLink a {
  color: white;
  text-decoration: none;
}

.login p {
  margin: 3rem 0 2.5rem 0;
  padding-left: 3rem;
  font-size: 1.5rem;
  font-weight: 600;
}

input{
  padding: 10px 0;
  margin: 1.3rem 0;
  background: none;
  outline: none;
  border-bottom: 2px solid #cecece;
  border-right: none;
  width: 100%;
  font-size: 1rem;
  color: white;
  font-family: Helvetica, Arial, Sans-Serif;
}
.addField input {
  width: 20%;
}
input[type="time"]::-webkit-calendar-picker-indicator{
  filter: invert(100%);
}
input:focus {
  border: none;
  border-bottom: 2px solid #cecece;
  margin-left: 2px;
}

select{
  border-radius: var(--border-radius);
  border-color: var(--menuBackground);
  padding: 1px;
  width: auto;
}
/*------admin.php------*/
.admWeekdays{
  margin: 6px;
}

.admWeekdays div p {
  display: flex;
}

.admWeekdays div input {
  width: 9%;
}

.srDayOption{
  display: none;
}

#Kopfnotiz{
  vertical-align: top;
  border-radius: var(--border-radius);
  padding: 7px 11px;
  background: none;
  color: white;
  font-size: 1rem;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.3;
}

/*------calendar.php------*/
.dayTitle{
  width: 50px;
  width: -webkit-fit-content;
  width: fit-content;
  margin: 0px 4px 8px 0px;
  padding: 8px 8px;
  border-bottom: 2px solid #cecece;
  background: grey;
  text-align: center;
  width: 16.55%;
  font-size: 21px;
  /* box-shadow: inset -13px -18px 34px #eaeaea; */
}

.wideTitle{padding: 0.5rem 2rem;}


.field{
  display: inline-grid;
  
  margin: 0px 5px 0px 0px;
  width: 10%;
}

.fieldContent{
  display: inline-block;
  list-style-type: none;
  margin: 0 16px 0 0;
  border-left: 1px solid #888888;
  width: 14%;
  padding: 1rem 0 1rem 1rem;
}
.fieldContent:first-of-type {
  width: 7%;
  border-left: none;
}

.fields {
  color: #fff;
  /* padding: var(--reservPadding); */
  margin-top: 6rem;
}
.fields:first-of-type  {
  margin-top: 2rem;
}
.fields .fieldsRow {
  border-bottom: 1px solid #888888;
  margin: 0;
  display: flex;
}
.fields .fieldsRow:first-of-type {
  border-bottom: 4px solid #888888;
}
.fields .fieldsRow:last-child {
  border-bottom: none;
}

.fieldName {
  
  padding: 5px 6px;
  margin: 0px;
  margin: 0px 5px 15px 0px;
  font-size: 18px;
}

.fieldsRow {
    border-bottom: 2px solid #e3e3e3;
    /* margin: 10px; */
}

.fieldEntry {
  font-size: 19px;
  display: table-cell;
  height: 40px;
  vertical-align:middle;
  padding: 0;
}

input#pflicht {
    display: inline;
    width: 2rem;
}

.adminPage form {
    /* display: inline-flex; */
    /* width: 11%; */
    /* word-break: break-word; */
}

.adminPage .addField form {
    display: block;
}

.adminPage {
    margin: 1rem 0 0 0;
}

.KopfnotizWrap label,
.reservAdmin label,
.reservAdmin ~ .fieldDropdown label,
.fieldDropdown ~ .selector p label {
  margin-right: 1rem;
  font-size: 1.2rem;
  color: #f9bd7d;
}

.reservAdmin{
  margin: 3rem 0;
}

.fieldDropdown ~ .selector {
  margin: 4rem 0;
}

.admWeekdays input[type="checkbox"] {
  display: inline-flex;
  width: 1rem;
  margin-right: 1rem;
  margin-top: 3rem;
}

.admWeekdays input#mo {
  margin-top: 0;
}

@media only screen and (max-width: 50.062rem) {
  .wrapperMain {
    overflow: hidden;
    position: relative;
  }
  nav ul {
    padding: 0;
  }
  .navbtn {
      width: 100%;
  }
  form.menu ~ .dropdown {
      display: block;
  }
  .loginStuff {
      float: none;
      margin-top: 1rem;
      justify-content: center;
  }
  .Reservierung {
      width: 95%;
  }
  .dayDesc {
      width: 22.5px;
  }
  .weekdays .dayNA,
  .weekdays .day {
    width: 39px;
    padding: 15px 0;
  }
  .custom-number {
      width: 42%;
      text-align: center;
  }
  .loginLink {
    padding: 0 0.5rem 0.5rem 0  
  }
  .dayTitle {
    width: 100%;
    padding: 0.5rem 0
  }
  .fieldEntry {
    font-size: 16px;
    word-wrap: break-word;
  }
  .fieldsRow {
    padding: 0;
  }
    table.test tbody tr:first-of-type {
        display: none;
    }
    .fieldsRow {
        display: block;
        width: 100%;
    }
    .fields .fieldsRow:first-of-type {
      display: none;
    }
    .fieldContent:nth-of-type(1):before { content: "Uhrzeit"; }
    .fieldContent:nth-of-type(2):before { content: "Name"; }
    .fieldContent:nth-of-type(3):before { content: "Notiz"; }
    .fieldContent:nth-of-type(4):before { content: "E-Mail"; }
    .fieldContent:nth-of-type(5):before { content: "Anzahl Personen"; }
    .fieldContent:nth-of-type(6):before { content: "Reservierung löschen"; }
    .fieldContent:nth-of-type(5) {
        padding-left: 10rem;
    }
    .fieldContent:nth-of-type(6) {
        padding-left: 13rem;
    }
    .fieldContent {
        padding-bottom: 0;
        border: none;
        padding-left: 5rem;
        position: relative;
    }
    .fieldContent:last-of-type {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    .fieldContent:before {
        left: 0;
        position: absolute;
        font-weight: bold;
        top: 0.7rem;
    }
    .fieldContent,
    .fieldContent:first-of-type {
      width: 70%;
      padding: 0 0 0 5rem;
    }
    .fieldContent:first-of-type {
      width: 100%;
      margin: 2rem 0 0 0;
    }
    .fields .fieldsRow {
      padding-bottom: 2rem;
      padding-left: 0.7rem;
      display: block;
    }
    .fields .fieldsRow:last-child {
      border-bottom: none;
      padding-bottom: 0;
      display: block;
    }
    .addField input {
      width: 93%;
      margin-left: 0.6rem;
    }
    .fieldDropdown,
    .signUp input,
    .SU-pwdContainer ~ .selector,
    .Reservierung ~ p {
      margin-left: 0.6rem;
    }
    input#SU-username {
      margin-top: 3rem;
    }
    .signUp input {
      width: 94%;
    }
    .signUp h1 {
      margin: 0;
    }
    .signUp .SU-pwdContainer > input:last-of-type {
      margin-left:0.6rem;
      margin-top: 1rem;
    }
    #Kopfnotiz {
      width: 89%;
      margin: .5rem .5rem 0 .5rem;
    }
    .KopfnotizWrap label, .reservAdmin label, .reservAdmin ~ .fieldDropdown label, .fieldDropdown ~ .selector p label {
      margin-right: 0;
      margin-left: 0.6rem;
    }
    .reservAdmin .custom-number {
      margin-left: 0.6rem;
      width: 92%;
    }
    .fieldDropdown #fieldSelect {
      display: block;
      margin-top: 0.3rem;
      width: 94%;
    }
    #deleteLvl{
      display: block;
      margin-left: 0.6rem;
      margin-top: 0.3rem;
      width: 94%;
    }
    .admWeekdays div p {
      display: block;
    }
    .admWeekdays div input {
      width: 25%;
      margin: 0;
    }
    .admWeekdays input[type="checkbox"] {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    .admWeekdays {
      margin: 6px 6px 6px 11px;
    }
    .timeSo {
      margin-bottom: 2rem;
    }
    .weekdays .dayNS {
      width: 38px;
      padding: 15px 0;
    }
    .login p {
      padding-left: 0.6rem;
    }
}
@media only screen and (min-width: 40.063rem) and (max-width: 50.062rem) {
    .custom-number {
      width: 23%;
    }
    .dayDesc {
      width: 22.5px;
    }
    .weekdays .dayNA,
    .weekdays .day {
      width: 39px;
      padding: 15px 0;
    }
    .dayDesc {
        width: 60.5px;
    }
    .weekdays .dayNA,
    .weekdays .day,
    .weekdays .dayNS {
        width: 76px;
        padding: 15px 0;
    }
    #Kopfnotiz {
      width: 95%;
    }
    select#select-Uhrzeit_h, select#select-Uhrzeit_m {
      width: 4.5rem;
    }
    .reservAdmin .custom-number {
        width: 97%;
    }
    .fieldDropdown #fieldSelect, #deleteLvl {
      width: 98%;
    }
}
@media only screen and (min-width: 50.063rem) and (max-width: 64.062rem) {
    .custom-number {
        width: 22%;
        text-align: center;
    }
    .dayTitle {
      width: 25%;
      margin-bottom: 1rem !important;
    }
    .fields .fieldsRow {
       padding-left: 0;
       display: flex;
    }
    .fieldContent p {
      font-size: 14px;
    }
    .fieldContent:first-of-type {
      width: 7%;
      margin: 0px 11px 0px 0;
    }
    .fieldContent:nth-of-type(2) {
      width: 17%;
    }
    .fieldContent:nth-of-type(3) {
      width: 19%;
    }
    .fieldContent:nth-of-type(4) {
      width:25%;
    }
    .fieldContent:nth-of-type(5) {
      width: 9%;
    }
    .fieldContent:last-of-type {
      width: 10%;
    }
}
@media only screen and (min-width: 64.062rem) {
    .fieldContent:first-of-type {
      width: 5%;
    }
    .fieldContent:nth-of-type(2) {
      width: 17%;
    }
    .fieldContent:nth-of-type(3) {
      width: 19%;
    }
    .fieldContent:nth-of-type(4) {
      width: 30%;
    }
    .fieldContent:nth-of-type(5) {
      width: 10%;
    }
    .fieldContent:last-of-type {
      width: 16%;
    }
}