.clock {
  font-family: Arial, sans-serif;
  font-size: 24px;
  color: #333;

  display: flex;
  align-items: center; /* Vertikal zentrieren */
  padding-bottom: 0px;

}

.clock .hour,
.clock .minute,
.clock .second,
.colon {
  margin: 0 1px; /* Abstand zwischen den Elementen */
}

.clock .hour{
  background-color: gray;
  padding: 5px 5px;
  border-radius: 10px;
  border:1px solid grey;
  box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.3);
  color: white;
  font-weight: bold;
}
.clock .minute{
  background-color: gray;
  padding: 5px 5px;
  border-radius: 10px;
  border:1px solid grey; 
  box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.3);
  color: white;
  font-weight: bold;
}
.clock .second {
  background-image:radial-gradient(circle, white 10%, rgb(185, 185, 185) 90%);
  padding: 5px 5px;
  border-radius: 10px;
  border:1px solid grey; 
  box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.3);
  font-weight: bold;
  color: rgb(151, 151, 151);
}

.colon {
  font-size: 24px; /* Größe anpassen */
  color: #333; /* Farbe anpassen */
}

#date {
  font-family: Arial, sans-serif; /* Schriftart anpassen */
  font-size: 12px; /* Schriftgröße anpassen */
  color: #666; /* Textfarbe anpassen */
  padding-top: 5px;
  
}
  

.time-line {
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 0, 0, 0.3); /* Farbe der Linie mit 50% Transparenz */
  z-index: 100; /* Stellt sicher, dass die Linie über den anderen Elementen liegt */
}
body{
  width: 100%;
  background-image:radial-gradient(circle, white 30%, rgb(185, 185, 185) 90%);
  /* background: url(bilder/christmas-3735928_1920.jpg) no-repeat center center; */
  background-size: cover;
  margin: 0;
  padding: 0;
  margin-bottom: 1em;
}

#logo{
  width:15%;
}

#header-metropolis{
  margin-left: 12em;
  text-align: center;
  width: 35%;
}

#qrcode {
  width: 12%;
  
}
select option,
select option[selected] {
background-color: white;
}
.container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Horizontal zentrieren */
  height: 100vh; /* 100% der Viewport-Höhe verwenden */
  margin: 0; /* Entfernen Sie den Standardseitenrand */
  margin-top:1em;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  padding-bottom: 1em;
}

.header {
  display: flex;
  background: linear-gradient(113.5deg, rgb(248, 252, 191) 22.3%, rgb(201, 234, 211) 30.6%,rgb(150, 111, 51) 50%, rgb(255, 180, 189) 70.9%, rgb(196, 223, 255) 90.9%);
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin: 0 auto; /* Zentrieren des Headers */
  border-radius: 0px;
  border: 2px solid grey;
  box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.3);
 
}
.header img {
  max-width: 100%;
  height: auto; margin: 0 auto; /* Zentrieren des Headers */
  margin: 0;
}
.header h1 {
  margin: 0;
  text-align: center;
}

.dropdown{
  display: flex;
  justify-content: center;
   
}

h1 {
  text-align: center; /* Überschrift zentrieren */
  
}



p {
  margin: 0; /* Entfernen Sie den Standardabstand des Absatzes */
}


.wochentag {
display: flex;
justify-content: center;  /* horizontal zentrieren */
align-items: center;      /* vertikal zentrieren */
height: 100%;             /* volle Höhe der Zelle */
padding: 10px 20px 10px 20px; /* Top, right, bottom, left */
border: 2px solid rgb(0, 0, 0);
border-radius: 5px; /* Jetzt wirken die runden Ecken */
background: linear-gradient(
      113.5deg,
      rgb(255, 255, 255) 10%,
      rgb(230, 230, 230) 40%,
      rgb(200, 200, 200) 70%,
      rgb(185, 185, 185) 90%
  );
  width: fit-content;
  margin: auto;

}

#wochenplan.highlight-border {
  border: 4px solid red;

}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

#lockButton.pulse {
  animation: pulse-border 1.5s infinite;
}

table {

  border-collapse: collapse;
  margin-left: 1em;
  margin-right:1em;

}

th, td {
  border: 1px none; 
  padding: 10px;
  text-align: center;
  font-size:large;
  margin: 0 auto; /* Zentrieren des Headers */
  
}
.pause{
  padding: 0px;
  text-align: center;
  background-color: grey;
  color:white;
  font-weight: bold;
  font-size:12px ;
} 

/* Styling für das Dropdown-Menü */
.colorSelector {
  width: auto; /* Breite des Dropdown-Menüs */
  padding: 2px; /* Innenabstand des Dropdown-Menüs */
  border: 1px solid grey; /* Rand des Dropdown-Menüs */
  cursor: pointer; /* Zeiger ändern, wenn über dem Dropdown-Menü gehalten wird */
  font-weight: bold;
  /*font-size: 1em;*/
  box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.3);
  border-radius: 3px;
  text-align: center;
  margin:5px 6px 2px 0; /* oben, rechts, unten, links */

  
}

textarea {
  width: 100%;
  border: 2px solid grey;
  box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.3);
  border-radius: 10px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 18px;
  line-height: 20px; 
  text-align: left;
  padding: 5px;   
}

.legende {
  
  display: flex;
  align-items: center;     /* vertikal zentrieren */
  justify-content: center; /* optional: auch horizontal zentrieren */
  height: 20px;            /* feste Höhe für saubere Ausrichtung (anpassbar) */
  margin-top: 5px;
}
.legendentext {
  height: 15px;            /* feste Höhe für saubere Ausrichtung (anpassbar) */
  font-size: 13px;
  font-weight: bold;
  margin: 10px 10px 2px 2px;/*margin: top right bottom left*/
}
.unterricht_cell {
  
  height: 15px;            /* feste Höhe für saubere Ausrichtung (anpassbar) */
  box-shadow: 1px 2px 3px 0 rgba(50,50,50,0.75);
  padding: 2px 5px;
  font-size: 11px;
  color: black;
  margin: 10px 5px 2px 2px;/*margin: top right bottom left*/
  border-radius: 3px;
}

#updateStatus {
  align-self: center;           /* vertikal mittig */
  margin: 10px 5px 2px 20px; /*margin: top right bottom left*/
  padding: 4px 8px;
  font-size: 12px;
  background-color: rgba(255,255,255,0.9);
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
}
















/****************************************************************************************************************************
**************************Tablets *******************************************************************************************
****************************************************************************************************************************/
@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape) {
    /* CSS-Stile für Tablets hier definieren */
  
    
    body{
        width: 100%;
        
    }
    .colorSelector{
    color: black;
    width: 50px;
    font-size: 7px;
    outline: none;
    text-align: center;
    }
    #wochenplan tbody tr td {font-size: 0.5em; } /*Text Zeitangaben kleiner*/
    textarea {
        width: 100%;
        border: 2px solid rgb(155, 155, 155);
        border-radius: 10px;
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        font-size: 9px;
        line-height: 10px; 
        text-align: left;
        padding: 5px;  
    }
    table {
        width: 97%;
        border-collapse: collapse;  

    }
    table tr th {
        
       margin-left: 2em; 
    
    }
    table tr th img{
    
        max-width: 40%;    
    }
    
   
    #qrcode{
        
        width:100%;
        margin-left: 5em;
        
    }
    
    #header-metropolis {
        width: 300%;
        
        
    }
    #logo {
        width: 150%;
    }
    .clock {
        font-size: 12px;
        margin-right: 2em;
        
      }

      .clock .hour,
      .clock .minute,
      .clock .second {
        border-radius: 5px;
      }

      #date{
        padding-top: 5px;
        font-size: 10px;
      }
      .colon {
        font-size: 8px;
      }
      .pause{
        font-size:9px ;
    } 

    .unterricht_cell {
        
      font-size: 7px;
    }
  }
  
 
  @supports (-webkit-touch-callout: none) {
    /* CSS specific to iOS devices */ 
    
        body{
          width: 100%;
          
      }
      .colorSelector{
      color: black;
      width: 50px;
      font-size: 7px;
      outline: none;
      text-align: center;
      }
      #wochenplan tbody tr td {font-size: 0.5em; } /*Text Zeitangaben kleiner*/
      textarea {
          width: 100%;
          border: 2px solid rgb(155, 155, 155);
          border-radius: 10px;
          font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
          font-size: 9px;
          line-height: 10px; 
          text-align: left;
          padding: 5px;  
      }
      table {
          width: 97%;
          border-collapse: collapse;  
  
      }
      table tr th {
          
         margin-left: 2em; 
      
      }
      table tr th img{
      
          max-width: 40%;    
      }
      
     
      #qrcode{
          
          width:100%;
          margin-left: 5em;
          
      }
      
      #header-metropolis {
          width: 300%;
          
          
      }
      #logo {
          width: 150%;
      }
      .clock {
          font-size: 12px;
          margin-right: 2em;
          
        }
  
        .clock .hour,
        .clock .minute,
        .clock .second {
          border-radius: 5px;
        }
  
        #date{
          padding-top: 5px;
          font-size: 10px;
        }
        .colon {
          font-size: 8px;
        }
        .pause{
          font-size:9px ;
      } 
  
      .unterricht_cell {
          
        font-size: 7px;
      }
  }
  
/****************************************************************************************************************************
************************** Smartphones **************************************************************************************
****************************************************************************************************************************/
  @media only screen 
and (min-device-width : 414px) 
and (max-device-width : 500px) {
    /* CSS-Stile für Tablets hier definieren */

  
    body{
        width: 150%;
        /*background: url(bilder/christmas-3735928_1920.jpg) no-repeat center center;
        background-size: 200%;*/
    }
    .time-line {
    width: 150%;
    }
 
    #wochenplan tbody tr td {
        font-size: 0.2em; } /*Text Zeitangaben kleiner*/
    
    #logo{
        width: 120%;
        }

    #header-metropolis{
        margin-left: 8em;
        width:300%;
        
    }

    #qrcode{
        margin-left: 3em;
        width: 75%;
    }
    .clock {
        font-size: 8px;
        margin-left: 0.5em;
        }
    
        .clock .hour,
      .clock .minute,
      .clock .second {
        border-radius: 5px;
      }
    
        #date{
            padding-top: 5px;
            font-size: 8px;
          }
        .colon {
        font-size: 8px;
        }

    .colorSelector {
    color: black;
    width: 40px;
    font-size: 5px;
    text-align: center;
    }

    textarea {
        
        border: 2px solid rgb(155, 155, 155);
        border-radius: 10px;
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        
        font-size: 9px;
        line-height: 10px; 
        text-align: left;
        padding: 5px;
    }
    table {
        
        margin: 0em;
        border-collapse: collapse;  
    }
    table tr th {
        font-size: 1em;
    }
    table tr th img{
        
        max-width: 40%;
    }
    .header {
        font-size: 0.8em;
    }
    .unterricht_cell {
        
        font-size: 4px;
       
      }

   
    
    .pause{
       
        font-size:8px ;
    } 
  }

