body {margin:0;
/*    margin: 10px auto;
    padding: 5px;*/
    background-color: white;
	/*
	    width: 1050px;
	border: solid 4px black;
	*/
}

#container{
	/*
    margin: 10px auto;
    padding: 20px;
	*/
	margin-left: auto;
	margin-right:auto;
	padding: 20px;
    background-color: #E31F2D;
	    width: 1000px;
	border: solid 4px black;	
	
}

header {
/*    position: relative;
    top: 0px;
    left: 0px; */
    margin: 10px auto;
    width: 980px;
    height: 160px; 
	background-color: white;
}

header h1 { font-family: Verdana,Arial,"Trebuchet MS",Tahoma,sans-serif;
  font-style: normal;
  font-size: 26px;
  font-weight: bold;
  color: black;
	text-align: center;
	padding-top:45px;
/*	padding-left:190px;*/
	margin-top:0px;	
  }

header h2 { font-family: Verdana,Arial,"Trebuchet MS",Tahoma,sans-serif;
  font-style: normal;
  font-size: 22px;
  font-weight: bold;
  color: black;
	text-align: center;
	margin-top:0;	
  }  
 
  header img {float:left; display:block; width:80px; margin: 10px 10px 10px 25px;
  } 
  
  main {
    width: 980px;
    margin: 0 ; 
    padding: 10px;
    text-align: left;
	background-color: white
}

/* Tabelle von KGV*/

main table.cells {
	border: none;
}

main td.cell {
	background-color: #E6E6E6;
}

main td.headercell {
	background-color: #333333;
	color: #E6E6E6;
	font-weight: bold;
}


/* h1: hack, um Überschriftenbilder sehen zu können */
main h1 {
	margin: 0;
	padding: 0;
	/* height: 35px; */
	background-repeat : no-repeat;
	font-size: 25px;
}

main .sidepicture {
	float: right;
	padding: 0px 0px 0px 10px;
	margin: 4px 0px 10px 10px;
	width: 160px;
}

main .clearer {
	clear: both;
}



ul {margin-top: 10px;}

h3 {
  font-family: Verdana,Arial,"Trebuchet MS",Tahoma,sans-serif;
  font-style: normal;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #00BFFF;
  margin-left:5px; 
  margin-top: 25px;
}

main, main p{
  font-family: Verdana,Arial,"Trebuchet MS",Tahoma,sans-serif;
  font-style: normal;
  font-size: 15px;
  font-weight: normal;
  text-decoration: none;
  color: #696560;
}

/* NAVIGATION / MENÜ */
nav {
  box-sizing: border-box;
  float: left; 
  width: 100%;
  background: #3a3a3a;
  font-size: 16px;
  margin-left: auto;
  margin-right:auto;
  }

nav ul {
  margin: 0;
  padding: 0;
  margin-left: 50px;
  margin-right:auto;
}
 
nav a {
  display: block;
  color: #fff;
  text-decoration: none;
}

nav ul li {
  position: relative;
  float: left;
  list-style: none;
}
 
nav ul li:hover {
  background: #4096ee;
}
 
nav ul li a {
    padding: 20px;
}

nav ul li.active a {
    color:red;
}


nav ul li.active  {
    background: white;
	border: 2px solid #3a3a3a;
}


nav ul ul {
  position: absolute;
  top: -9999px;
  left: -9999px;
  background: #333;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.6);
}
 
nav ul ul li {
  float: none;
  width: 200px;
  border-bottom: 1px solid #555;
}
 
nav ul ul li a {
  padding: 10px 20px;
}

nav ul li:hover > ul {
  top: 100%;
  left: 0;
}

nav ul ul li:hover > ul {
  top: 0;
  left: 200px;
}

nav ul li.submenu > a:after {
  position: relative;
  float: right;
  content: '';
  margin-left: 10px;
  margin-top: 5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #fff;
  border-bottom: 5px solid transparent;
}

nav ul ul li.submenu a:after {
  margin-left: auto;
  margin-right: -10px;
  border-left: 5px solid #fff;
  border-right: 5px solid transparent;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

nav ul ul li:last-child {
  border-bottom: none;
}

/*

nav {
    width: 990px;
    background-color: blue;	
    padding-left: 10px;
	padding-top:10px;
		padding-bottom:10px;
}

nav ul {
    border: 0;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav ul li {display: inline; 
    margin: 2px 5px;
    padding: 2px;
	border:1px solid lightgrey;
	border-radius:2px;
}

nav ul a.aktiv{
  background: url(images/n1activeitem.gif) no-repeat;
  font-family: Verdana,Arial,"Trebuchet MS",Tahoma,sans-serif;
  font-style: normal;
  font-size: 11px;
  font-weight: normal;
  text-decoration: none;
  color: yellow;
  background-position: top right;
}

nav ul a  {
    display: inline;
    text-align: left;
    line-height: 24px;
    padding: 0 15px 0 3px;
    width: 132px;
  background-position: top right;
  background: url(images/n1.gif) no-repeat;
  font-family: Verdana,Arial,"Trebuchet MS",Tahoma,sans-serif;
  font-style: normal;
  font-size: 11px;
  font-weight: normal;
  text-decoration: none;
  color: white;
  background-position: top right;
}

nav ul a:hover {
  background: url(images/n1hover.gif) no-repeat;
  font-family: Verdana,Arial,"Trebuchet MS",Tahoma,sans-serif;
  font-style: normal;
  font-size: 11px;
  font-weight: normal;
  text-decoration: none;
  color: yellow;
}
*/

/*--- footer ---------------------------------------------------------------*/


footer {
    margin: 10px auto;
    padding: 4px auto;
	border: 1px solid black;
    width: 980px;
 /*   height: 30px; */
    clear: both;
	background-color: #3a3a3a;
 /*   background-position: 200px, 0px ; */

}

footer p {	/* background-color: white; 	border: 1px solid red; */
    margin: 10px auto;
	    padding: 4px auto; width: 90%;
		color:white
	}
	
footer a {
  font-family: Verdana,Arial,"Trebuchet MS",Tahoma,sans-serif;
  font-size: 11px;
  font-weight: normal;
  color: black;
 white-space: nowrap;
}


.imgal{margin: 10px auto; width:100%;}	*/		
.thumbnail {
padding:5px;
display:block;
margin:9px 18px 9px 0px;border: white 5px solid;
float:left;
  position: relative; 
  width: 110px;
  height: 110px;
  overflow: hidden;
  box-shadow: rgb(238, 238, 238) 1px 1px 3px 3px;
}

.thumbnail:hover {
border: rgb(238, 238, 238) 5px solid;
  box-shadow: rgb(238, 238, 238) 1px 1px 3px 5px;
  border: 5px double #00A550;
  border-radius:5px;
}

.thumbnail img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%; 
  width: auto;
  -webkit-transform: translate(-50%,-50%);
      -ms-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);
}

.thumbnail img.portrait {
  width: 100%;
  height: auto;
}		

/* RESPONSIVE */
@media screen and (max-width: 1020px) {

	body{width: 100%;}
	#container{width: 100%;}
	img {width:95%}
	header{width: 100%; height: auto; }
	header h1{float: none; text-align: center; }
	header img{float: none; position: relative; width:100%; display:none;}
	nav{float: none; width: 100%; display:block;}
	nav ul li {float: none;display:block;background: #3a3a3a;}
	main{float: none; width: auto; }
	footer{width: auto; }
}