/*GLOBAL VARIABLES*/
:root {
  --navheight: 78px;
  --scrollareaheightdifference: 165px;
}
/* Responsive layout on small screens */
@media (max-width: 620px) {
  :root {
    --navheight: 124px;
    --scrollareaheightdifference: 211px;
  }
}



/* GENERAL STYLE DEFINITIONS */
* {
  box-sizing: border-box;
}


/* STYLE GENERAL PAGE BODY */
body {
  margin: 0px;
  padding: 8px;
  background-color: white;
  font-family: Arial, Helvetica, sans-serif;
}

/* Responsive layout - uses smaller fonts in tables on small screens */
/*@media (max-width: 620px) {
  body {
    font-size: 13px;
  }
}*/


h1 {
  color: black;
  text-align: left;
}


  /* Style the header */
header {
  height: 33px;
  background-color: #666;
  padding: 5px;
  text-align: center;
  font-size: 20px;
  color: white;
}


  /* Style the nav bar */
nav {
  height: var(--navheight);
  width: 100%;
  background: #ccc;
  padding: 16px;
}

  /* Style the list inside the nav bar */
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #333;
}
nav li {
  float: left;
}
nav li a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}
nav li a:hover {
  background-color: #45a049;
}
.active {
  background-color: #4CAF50;
}



/* Style the message window */
.mitteilungsfenster-hintergrund {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.3);
}
.mitteilungsfenster-anzeigebereich {
  width: 70%;
  height: auto;
  margin: 15% auto;
  padding: 50px;
  border-radius: 16px;
  border: 1px solid white;
  background-color: #666;
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}


/* Style separate scroll area with fixed header and footer */
.scroll-main {
  height: calc(100vh - var(--scrollareaheightdifference));
}
.single-scroll-area {
  height: calc(100vh - var(--scrollareaheightdifference));
  overflow: auto;
}


/* Style fixed header in tables when scrolling */
thead th {
    position: sticky;
    top: 0;
}


/* Style the footer */
footer {
  height: 38px;
  width: 100%;  
  background-color: #666;
  padding: 10px;
  text-align: center;
  color: white;
}

footer a {
  color: white;
}



/* STYLE INDIVIDUAL ELEMENTS OF THE PAGE */

/* STYLE TABLES */
table {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}
table th, table td {
  border: 1px solid #ddd;
  padding: 8px;
}
table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #4CAF50;
  color: white;
}
table tr:nth-child(even){
  background-color: #f2f2f2;
}
table tr:hover {
  background-color: #ddd;
}
.nowrap {
  white-space: nowrap;
}

/* Responsive layout - uses smaller fonts in tables on small screens */
@media (max-width: 550px) {
  table {
    font-size: 13px;
  }
  table th, table td {
    padding: 4px;
  }
}
@media (max-width: 475px) {
  table {
    font-size: 13px;
  }
  table th, table td {
    padding: 2px;
  }
}
@media (max-width: 400px) {
  table {
    font-size: 10px;
  }
  table th, table td {
    padding: 2px;
  }
}


/* STYLE INPUT FORMS */
input {
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 8px;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
input[type=radio], input[type=checkbox] {
  width: 20px;
}
input[type=submit] {
  width: 100%;
  background-color: #4CAF50;
  color: white;
  padding: 14px;
  margin-bottom: 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
input[type=submit].neu_registrieren {
  background-color: #777;
}
input[type=submit]:hover {
  background-color: #45a049;
}


/* Style links in black letters */
.black-links a {
  color:black;
}
