body {
	font-size: 1em;
	font-family: Arial;
    margin: 0;
    min-height: 100%;
    height:100%;
    display:-webkit-box;
    display:-moz-box;
    display:-ms-flexbox;
    display:-webkit-flex;
    display:flex;
    flex-direction:column;
}

html {
    height: 100%;
}

header {
    background-color: #003d69;
    position: fixed;
    font-size: 2em; 
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 0.25em;
    color: white;
    height: 1.5em;
    width: 96%;
    z-index: 100;
}

header img {
    top: 0.125em;
    height: 1.125em;
    width: auto;
}

header a {
    color: white;
    text-decoration: none;
}

header a:hover {
    color: white; 
}

.headerEhemaligen {
    float: left;
}

@media screen and (min-width: 700px) {
    #navbar {
        float: right;
    }

    .placeholder {
        display: none;
    }
}

#navbar a {
    font-size: 0.8em; 
    text-decoration: none;
    text-align: center;
    color: white;
    padding-left: 0.25em;
}

content {
    top: 2em;
    position: relative;
    background: white;
    color: black;
    margin-left: 1%;
    margin-right: 1%;
    margin-bottom: 8em;
    -ms-flex:1 1 auto;
    flex:1 1 auto;
}

@media screen and (max-width: 700px) {
    #navbar {
        justify-content: center;
    }
    
    content {
        top: 1.5em    }

    header {
                text-align: center;
    }

    #headerEhemaligen {
        display: none;
    }

    navbar{
                display: none;
            }}

content h1, h2, h3, h4, h5, h6 {
    color: #003d69;
    padding-left: 1%;
    padding-right: 1%;
}

content p {
    padding-left: 1%;
    padding-right: 1%;
}

content table {
    margin-left: 1%; 
    padding-right: 1%;
    width: 98%;
}

.grid-s-1, .grid-s-2, .grid-s-3, .grid-s-4, .grid-s-5, .grid-s-6, .grid-s-7, .grid-s-8, .grid-s-9, .grid-s-10, .grid-s-11, .grid-s-12, 
.grid-1, .grid-2, .grid-3, .grid-4, .grid-5, .grid-6, .grid-7, .grid-8, .grid-9, .grid-10, .grid-11, .grid-12, .grid-2-5, .grid-5-2, .grid-s-1-2 {
    float: left;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 10px;
}  

.row {
    clear: both;
    width: auto;
    min-height: 20px;
    float: none;
}

.row:after {
    content: ".";
    clear: both;
    display: block;
    visibility: hidden;
    height: 0px;
}

/* Standard-Werte */
.grid-1 {
    width:  8.333333333333%;
}

.grid-1-2 {
    width: 7.75%;
}

.grid-2 {
    width: 16.666666666666%;
}

.grid-2-5 {
    width: 20.83333333333%;
}

.grid-3 {
    width: 25%;
}

.grid-4 {
    width: 33.333333333333%;
}

.grid-5 {
    width: 41.666666666666%;
}

.grid-5-2 {
    width: 42.3%;
}

.grid-6 {
    width: 50%;
}

.grid-7 {
    width: 58.333333333333%;
}

.grid-8 {
    width: 66.666666666666%; 
}

.grid-9 {
    width: 75%;   
}

.grid-10 {
    width: 83.333333333333%;
}

.grid-11 {
    width: 91.666666666666%;
}

.grid-12 {
    width: 100%;
}

input, select, label, textarea, button {
    width:100%;
    padding:5px;
    min-height: 30px;
    font-size: 0.8em;
}

.buttonTest {
    background-color: #003d69;
    color: white;
    font-size: 1em;
}

.buttonTest:hover {
    background-color: white;
    color: #003d69;
}
  
input, select, textarea, label, .buttonTest {
    border: 1px solid #003d69
}
  
select {
    background-color: rgba(0,0,0,0.02);
    padding: 0.85em;
    float: right;
}
  
input:disabled, select:disabled, textarea:disabled {
    color: #999;
    border-color: #CCC;
}
  
input[type="checkbox"],
input[type="radio"] {
    width:auto;
    height:auto;
    padding:0;
    min-height: 16px;
}
  
.grid-1 input[type="checkbox"] {
    margin: 5px;
    display: inline-block;
}
  
/* special format for label element */
.label {
    padding: 0 5px;
}
  
.label label {
    display:block;
    background-color:#003d69;
    color: #fff;
    line-height: 1em;
    white-space:nowrap;
    overflow:hidden;
    font-size: 0.9em;
}
  
  .label.wrap label {
    white-space: normal;
}

@media screen and (max-width: 500px) {
    .label {
      width: 95%;
    }
    .grid-s-1 {
      width: 7.91666666666%;
    }
    .grid-s-1-2 {
        width: 21.25%;
    }

    .grid-s-2 {
      width: 15.8333333333%;
    }
    .grid-s-3 {
      width: 23.00%;
    }
    .grid-s-4 {
      width: 30.2666666666%;
    }
    .grid-s-5 {
      width: 39.5833333333%;
    }
    .grid-s-6 {
      width: 46.4%;
    }
    .grid-s-7 {
      width: 54.4166666666%;
    }
    .grid-s-8 {
      width: 62.3333333333%;
    }
    .grid-s-9 {
      width: 69.25%;
    }
    .grid-s-10 {
      width: 78.1666666666%;
    }
    .grid-s-11 {
      width: 86.0833333333%;
    }
    .grid-s-12 {
      width: 94.8%;
    }
}

.data table, th, td {
    border: 1px solid #003d69;
}

.data table {
    border-collapse: collapse;
}

.data tr:hover {
    background: #003d69;
    color: white;
}

footer {
    background: #003d69;
    color: white;
    width: 100%; 
    position: fixed;
    bottom: 0em;
    text-align: center;
}

footer a {
    text-decoration: none;
    color: white;
}

footer a:hover {
    text-decoration: underline;
}

/*     		Checkbox/ Einstellungen			*/
.toggle label {
	position: relative;
	display: inline-block;
	height: -1em;
	width: 1em;
}

.toggle input {
	display: none;
    width: 100%;
}

.toggle .slider {
	/* Grundfläche */
	
	position: absolute;
	cursor: pointer;
	top: 0.55em;
	width: 4em;
	height: 1.9em;
	background-color: #c32e04;
	/* red */
	
	transition: all .3s ease-in-out;
	border-radius: 1em;
}

.toggle .slider:before {
	/* verschiebbarer Button */
	
	position: absolute;
	content: "";
	height: 1.6em;
	width: 1.6em;
	left: 0.2em;
	bottom: 0.15em;
	background-color: white;
	border-radius: 50%;
	transition: all .3s ease-in-out;
}

.toggle input:checked + .slider {
	background-color: #5a9900;
	/* green */
}

.toggle input:focus + .slider {
	background-color: pink;
	box-shadow: 0 0 1px #5a9900;
}

.toggle input:checked + .slider:before {
	-webkit-transform: translateX(1.9em);
	/* Android 4 */
	-ms-transform: translateX(1.9em);
	/* IE9 */
	transform: translateX(1.9em);
}
