/* css released under Creative Commons License -  http://creativecommons.org/licenses/by/2.0/deed.en  */
/* html5 + CSS 3 Template created by miss monorom  http://intensivstation.ch 2013 */

/* reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* render html5 elements as block 
   rendert html5 elemente als block  */

header, footer, section, aside, nav, article { display: block;}

body {
background-color: #aaa;
font-size: 1em;
font-family: Arial, SunSans-Regular, Sans-Serif;
color:#564b47;
}
pre, code {
font-size: 1.3em;
}
a {color: #ffffff;}
a:visited {color:#ffffff;}
a:hover {color: #000000;}
a:active { color:#ff0000;}

h1, h2 {
font-size:1.8em;
font-weight: normal;
margin: 0 0 10px;
}

h3 {
font-size:1.38em;
font-weight: normal;
margin: 0 0 10px;
}

h4 {
font-size:1.4em;
font-weight: bold;
font-family: Arial, SunSans-Regular, Sans-Serif;
color:#ffffff;
}

img.download {vertical-align:middle;}
img{border:none;}

ul{
	list-style-type:none;}
/* ----------container zentriert das layout-------------- */

#container {
max-width: 1200px;
min-width:320px;
margin:0  auto;
background-color: #eee;
}

/* ----------header for logo-------------- */
#top:after{
    height: 0;
    content: ".";
    display: block;
    clear: both;
  visibility:hidden;
  } 
#top {
	background-image:url(../image/kbs-hg2.png)
	}

#top header{
  padding:20px;
  float:left;
  width:50%;
  }
  
header p{
	text-transform:uppercase;
  font-size:0.8434em;

}
header img{ 
border:0;
padding: 0 0 10px;
}  
.mini, .menubutton{
  display:none;
  }

.menubutton a {
  cursor:pointer;
}
 
/* new nav */
nav{
  padding:0 20px 0 0;
  margin:0 0 2px;
  float:right;
  width:50%;
} 


nav ul:after {
    height: 0;
    content: ".";
    display: block;
    clear: both;
  visibility:hidden;
  } 
nav ul {
  list-style-type: none;
  float:right;
}   
nav li {
  float: left;
  margin: 0 3px 0 0;
  }

nav a, nav a:visited {
  background-color: #999999;
  color: #FFFFFF;
  display: block;
  padding: 5px 20px;
  text-decoration: none;
  transition: all 0.5s linear;
  box-shadow: 0 1px 3px #666666;
}


nav a:hover {
  color: #000000;
  background-color: #cccccc; 
  }
nav a:active { color:#000000;}
nav a.selected {
  color:#ffffff;
  background-color: #FF5858; 
} 

/* ----------------- content--------------------- */
section:before {
    height: 0;
    content: ".";
    display: block;
    clear: both;
  visibility:hidden;
  }

section#content {
float: left;
width: 75%;
padding: 20px;
background-color: #fff;
min-height:600px;
}
p1 {
padding:  0 0 0 0;

}
p, pre{
padding:  0 0 20px;
line-height:1.5em;
}
ul{
	list-style-type:none;
	line-height:1.5em;
}
article header{
	background:#fff;
	padding:0;
	}
	
article footer{
	border-bottom: 1px solid #564B47;
	color:#564B47;
	padding:0 0 20px;
	margin:0 0 20px;
}

/* -------------- side infos ------------- */

aside {
padding:20px;
float:right;
width: 25%;
}

/* -----------footer--------------------------- */
footer.footer {
padding: 20px;
clear:both;
background-color: #808080;
color:#ffffff;
}

footer a {
	color: #000000; text-decoration:none;
	}

.footer-segment {
    display: inline-block;
    vertical-align: top;
    width: 32%;
}


/* -------------------- Media Queries -------------------- */


@media only screen and (max-width: 860px) { 
 #top header, nav {
    float:none;
    width:100%;
  }
  nav {
    padding:0;
  } 
  nav ul {
    float:none;
  }
  nav li {
    float: left;
    margin: 0;
    width:25%;
  } 
}

@media only screen and (max-width: 768px) { 

section#content {
float: none;
width: 100%;
padding: 20px;
}

aside {
padding:20px;
float: none;
width: 100%;
}

.footer-segment {
    display: inline-block;
    vertical-align: top;
    width: 49%;
	padding: 0 0 20px;
}

.footer-segment:last-child {
    border-top:1px solid #ffffff;
    display: block;
    width: 100%;
	padding:20px 0 0 ;
}
}



@media only screen and (max-width: 480px) { 

  nav li {
    float: none;
    margin: 0;
    width:100%;
    display:block;
  } 
  nav a {
    font-size:1.2em;
    position:relative;
  }
    
  nav a:not(.selected):after {
    content:'»';
    position:absolute;
    right:10px;
  }
  
  .mini {
    display:block;
    /* 20% space rechts fuer .menubutton: */
    width: 80%;
  } 
  
  .menubutton {
    display:block;
    position:absolute;
    right:20px;
    top:20px;
    z-index: 400;
  }
  
  .maxi{
    display:none;
  }

footer.footer {
padding: 0;
}

  .footer-segment, .footer-segment:last-child  {
    display: block;
    vertical-align: top;
    width: 100%;
	border-bottom:1px solid #999;
	padding:20px;
}

}


/*------------on top button----------------*/	

#myBtn {
  display: none; 
  position: fixed; 
  bottom: 40px; 
  right: 20px; 
  z-index: 99; 
  border: none; 
  outline: none; 
  background: rgba(0, 200, 0, 0.9); 
  font-weight: bold;	
  color: #ffffff; 
  cursor: pointer; 
  padding: 10px; 
  border-radius: 5px;
  font-size: 18px;
}

#myBtn:hover {
  background: rgba(50, 50, 50, 0.9);
  font-weight: bold;	
  color: #ffffff; 
}

/*--------------------------------------*/	

/*------------slider menü----------------*/	

  figure img#dummy {
   max-width: 100%;
   height: Auto;
   display: Block;
   margin: 1rem Auto 1rem Auto;
   box-shadow: 1px 1px 5px #888888;
   border: Solid 1px #000000;
  }
  
 /*--------------------------------------*/	 
  
  /*-------------cookie-----------------*/	  
      #mbmcookie {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: #DBDBDB;
		padding: 20px;
		font-size: 14px;
		font-family: verdana;
	}

    #mbmcookie a.button 	{
		cursor: pointer;
		background: #FF9E28;
		padding: 8px 20px;
		margin-left: 10px;
		border-radius: 5px;
		font-weight: bold;
		float: right;
	}

    #mbmcookie a.button:hover {
		background-color: #34DB42;
		color: #ffffff;
		}

    #mbmcookie p.cookiemessage {
		display: block;
		padding: 0;
		margin: 0;
		}
		
   /*--------------------------------------*/	 