/* Gilt für alle: Massangaben gelten incl. Rahmen usw. */
* {
  box-sizing: border-box;
}
/* Grundeinstellungen für das html Gerüst */
html, body{
  padding-right: 15px;
  padding-left:15px;
  margin: 0;
  font-family: arial, sans-serif;
  font-size: 18px;
  width: 100%;
  height: 100%;
  background-color: #868686;
}
/* DIV Container für das Hauptlayout */
.grid-container {
    background-color: #ffffff;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}
/* Das header logo soll sich mit der Fenstergröße verschieben und immer zu sehen sein */
  
  .image:hover{
    opacity: 0.4;
  }
  
/* ============== Das css Grundgerüst - Die DIV Einstellungen =======================*/
.header {
  grid-column: 1/-1;
  height: 180px;
  background-image: url(bilder/head.jpg);
  background-repeat: no-repeat;
}
/* damit das Eingabefeld immer in der Mitte angezeigt wird, gibt es links und rechts ein div um es zu "stabilisieren" */

.links{
  grid-column: 1/3;
  padding: 15px;
  border-right: solid 4px #c2c2c2;
}
/* Eingabe der Inventarnummer */
.eingabe{
  border-bottom: 2px solid #D8D8D8;
  text-align: center;
  grid-column: 2 / 6;
  padding: 10px 20px 10px 20px;
  background-color: #F3F3EA;
 }
 .rechts{
  grid-column: 6 / 7;
  background-color: #F3F3EA;
  border-bottom: 2px solid #D8D8D8;
 }
/* Standard DIV für Standardinhalt gesamte Breite*/
.menuli{
  padding-left:20px;
  padding-top: 10px;
  height:50px; 
  color:white;
  background-color: #4d524c; 
  grid-column: 1 / 4;
}
.menure{
  text-align: right;
  padding-top: 10px;
  padding-right: 20px;;
  height:50px; 
  background-color: #4d524c; 
  grid-column: 4 / -1;
}
.artikel{
  grid-column: 1 / -1;
  padding: 10px 20px 10px 20px;
  background-color: #ffffff;
}
.artikelIndex {
  grid-column: 3/-1;
  padding-left: 20px;
  padding-right: 20px;
  background-color: #ffffff;
}
/* Container für die kleineren Kacheln, wie Dashboard etc. */
.kachelcontainer{
  grid-column: 1 / -1;
  background-color: #ffffff;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
  grid-column-gap: 3px;
  grid-row-gap: 3px;
}
.kachel{
    border-radius: 4px;
    text-align: center;
    padding:15px;
    /*min-height: 11em;*/
}
.kachel:nth-child(even) {
    background-color: #c0c0c0;
}
.kachel:nth-child(odd) {
    background-color: #e4e4e4;
}
.kachel:hover{
  background-color: #B06C2C;
  color:white;
  cursor: pointer;
}
/* Formular Container, damit die Formularinhalte sich auch responsiv verhalten */
.formular-container {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
 }
 
 /*Trenner in weiß */
.spacer{
  grid-column: 1 / -1;
  background-color: #ffffff;
  height:50px;
}
/* Trenner in orange */
.spacer_orange{
  grid-column: 1 / -1;
  height:50px; 
  background-color: #e28b39; 
}
.spacer_darkgrey{
  font-size: 16px;
  padding-left:10px;
  color:white;
  grid-column: 1 / -1;
  height:50px; 
  background-color: #4d524c; 
}
/* Fußzeile */
.footer {
  color: #ffffff;
  grid-column: 1 / -1;
  background-color: #4d524c;
  padding: 10px;
  text-align: center;
}
/* Versionsanzeige am Ende jeder Seite */
.version {
  grid-column: 1 / -1;
  /* unten die schriftfarbe für den link mitändern!! a.versionlink*/
  color:#acaaaa;
  background-color: #868686;
  padding: 10px;
/*die Version wird aus der Datenbank geholt und eingefügt*/
}
/* ========================== Beginn der Definition der Elemente ==========================*/
/* FORM ELEMENTE */
input{
  margin-top: 15px;
}
.label{
  
  padding:5px;
  width:40%;
  word-wrap: break-word;
  display: inline-block;
  border-radius: 5px;
  vertical-align: top;
}
.textboxDis,
.textboxPf,
 .textbox{
  padding:4px;
  width:40%;
  display: inline-block;
  border: 2px solid #BDBDBD;
  border-radius: 5px;
  margin:4px;
}
.textboxDis{
    background-color: #a0a0a0;
    color:white;
}
.textboxPf::placeholder{
 color:red;
}
.textboxPf{
  color:white;
  background-color: #f3d8d8;
}
.textbox {
  background-color: #FAFAFA;
}
.textbox:focus {
  outline: solid 2px #087996;
  border-radius: solid 2px #087996;
  background-color: #ffffff;
}
textarea{
  padding:4px;
  width:40%;
  height: 8em; 
  display: inline-block;
  border: 2px solid #BDBDBD;
  border-radius: 5px;
  margin:4px;
}
textarea:focus{
  outline: solid 2px #087996;
  border-radius: solid 2px #087996;
  background-color: #ffffff;
}
select{
  padding:4px;
  width:40%;
  display: inline-block;
  border: 2px solid #BDBDBD;
  border-radius: 5px;
  background-color: #FAFAFA;
  margin:4px;
}
input[type="radio"]:checked+label{ 
  font-weight: bold; 
  background-color: #F2F2F2; 
  border:2px solid #087996;
}  
input[type="checkbox"]:checked+label{ 
  font-weight: bold; 
  background-color: #F2F2F2; 
  border:2px solid #087996;
} 
fieldset{
  margin: 5px;
  border-radius: 5px;
  border:2px solid #BDBDBD;
}
legend{
  
  font-weight: bold;
}
.btngreen,
.btnred, 
.btnblue, 
.btndefault,
.btnorange  {
  text-align: center;
  width:160px;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius:8px;
  padding: 8px 25px;
  margin: 2px;
  cursor: pointer;
}

.btngreen {
  color: white;
  background-color: #04B45F;
}
.btngreen:hover {
  background-color: #0B6121;
  border: none;
  color: white;
}
.btnred {
  color: white;
  background-color: #FE2E2E;
}
.btnred:hover {
  background-color: #aa0000;
  border: none;
  color: white;
}
.btnblue {
  color: white;
  background-color: #389CFA;
}
.btnblue:hover {
  background-color: #084B8A;
  border: none;
  color: white;
}
.btndefault {
  color: white;
  background-color: #A4A4A4;
}
.btndefault:hover {
  background-color: #777777;
  border: none;
  color: white;
}
.btnorange {
  color: white;
  background-color: #e28b39;
}
.btnorange:hover {
  background-color: #92551c;
  border: none;
  color: white;
}
.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.button_reiter_aktiv {
  margin-right: 2px;
  margin-left: 2px;
  border:none;
  font-size: 18px;
  font-weight: bold;
  height:35px;
  border-top-left-radius:6px;
  border-top-right-radius: 6px;
  color:black;
  background-color: #ffffff;
}
.button_reiter {
  margin-right: 2px;
  margin-left: 2px;
  border:none;
  font-size: 18px;
  font-weight: bold;
  height:35px;
  border-top-left-radius:6px;
  border-top-right-radius: 6px;
  color:white;
  background-color: #e28b39;
}
.button_reiter:hover {
  border:none;
  background-color: #F7BE81;
  
}
/* HR Klasse für den Querstrich */
.hrgrey{
width:98%;
border-top: 2px solid #BDBDBD;
}
/* ANDERE ELEMENTE */
a.white:link{
  color:#ffffff;
}
a.white:visited{
  color:#ffffff;
}
a.white:active{
  color:#ffffff;
}
a.white:hover{
  color:#e2cba8;
}
a.versionlink{
  color:#acaaaa;
}
/* Infoboxen in gelb und rot */
p.info{
  padding: 10px;
  background-color: #d3caaf;
  border: 2px solid #535353;
}
p.infoY{
    padding: 10px;
  	background-color: #F7D358;
    border-style: dashed;
}
p.infoR{
    font-weight: bold;
    padding: 10px;
    color:#ffffff;
  	background-color: #FA5858;
    border-color: #B40404;
    border-style: dotted;
}
/* ================= Tabellen Formatierung ==============================*/
table{
  border-spacing:1;
  border-collapse: separate;
  width:100%;
  margin: 4px;
}
th{
  padding:10px;
}
td{
  padding: 5px 5px 5px 10px;
}
table.time {
border-collapse:collapse;
  width:100%;
}
td.time {
  margin: 0;
  padding: 0;
  vertical-align: top;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}
tr.kopf {
  font-weight: bold;
  background-color: #087996; 
  color:#ffffff;
  padding:20px;
}
th.kopfHover {
  font-weight: bold;
  text-decoration: underline;
  background-color: #087996; 
  color:#ffffff;
  padding:20px;
  cursor: pointer;
}
th.kopfHover:hover {
  background-color: #044e61; 
  }
/*Abgerundete Ecken oben und unten */
table tr:first-child th:first-child {
  border-top-left-radius: 6px;
}
table tr:first-child th:last-child {
  border-top-right-radius: 6px;
}
table tr:last-child td:first-child {
border-bottom-left-radius: 6px;
}
table tr:last-child td:last-child {
border-bottom-right-radius: 6px;
}
tr.default:nth-child(even) {
    background-color: #c0c0c0;
}
tr.default:nth-child(odd) {
  background-color: #f0f0f0;
}
tr.default:hover {
  color:#ffffff;
  background-color: #97591f;
  cursor:pointer;
}
tr.orange{
  color:#ffffff;
  background-color: #e28b39;
}
tr.orange:hover{
  color:#ffffff;
  background-color: #c06714;
}
tr.red{
  color:#ffffff;
  background-color: #975050;
}
tr.red:hover{
  color:#ffffff;
  background-color: #5e1f1f;
}
/* =================================== Unter einer Breite von ... Pixeln ändere folgende Eigenschaften.: =====================================*/ 
@media (max-width: 1000px) {
  html, body{
    padding:0;
    margin:0;
  }
  div{
    grid-column: 1 / -1;
  }
  .eingabe{
    grid-column: 1 / -1;
 }
.links{
  grid-column: 1 / -1;
}
.artikelIndex {
  grid-column: 1 / -1;
}
.kachelcontainer{
  grid-column: 1 / -1;
}
.kachel{
  grid-column: 1 / -1;
}
.rechts{
  grid-column: 1 / -1;
}
.menuli{
  text-align: center;
  grid-column: 1 / -1;
}
.menure{
  text-align: center;
  grid-column: 1 / -1;
}
.label{
    width:80%
}
.textbox, 
.textboxDis,
.textboxPf, 
select, 
textarea{
    width:90%;
}
input[type="radio"]:checked+label{ 
    width:80%;
}  
input[type="checkbox"]:checked+label{ 
    width:80%;
} 
.reiter {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    padding: 5px;
    height: auto;
}
/* Tabellen werden in der Mob anwendung umgestellt */
table, tr, td{
  padding: 0;
  border: 1px solid black;
}
table {
  border:none;
}
thead{
  display:none;
}
tr{
  float:left;
  width:100%;
  margin-bottom:2em;
}
td {
  text-align: center;
  word-break: break-word;
  float:left;
  width: 100%;
}
td::before{
  content:attr(data-label);
  background-color: #087996; 
  color:white;
  border-right:2px solid black;
  width: 20%;
  float:left;
  padding:3em 1em 3em 1em;
  font-weight:bold;
}

}
  
