/* Top Elements */
* { margin: 0; padding: 0;}




.mainwrapper {
	width:100%;	
	max-width: 1340px;
	
	min-height:70%;
	margin: 0 auto 0 auto;
	background: white;
	background-size: 100% 10px;
	position:relative;
	box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.1);
}


#leftbox {margin:0 0 0 0; float:left; width: 25%; min-height: 400px; background: #fff;}
#leftbox a { text-shadow: 0px 1px 8px #ccc;}
#leftbox .logo img {margin:20px 0 30px 5%; max-width:90%;}



/*Main Blocks*/
.mainbox { float:left; width: 75%; }
.contentbox {padding-top:0px; }
.contentbox, .widetop, .widebottom {width:100%; clear:both; min-height:300px; }
.contentwide { float:left; width: 90%; }
.contentnarrow { float:left; width: 74.9%; }

.sidebar { float:right; width: 25%; font-size:0.92em; }

.footer {width: 100%; margin: 0 ;  }

/*iinenabstaende: */
.contentbox .contentinner {margin: 0 20px 20px 20px ; }
.sidebar .contentinner {margin: 0 5% 20px 5% ; }
.widetop .contentinner {}
.widebottom .contentinner {}
.footer  {border-top: 1px solid #ddd; }
.footer .contentinner  {width: 72%; margin: 0 0 20px 20px ; padding-top: 10px; font-size:0.8em;}




/*Notbremse fuer responsive Bilder: maximal 100% Breite*/
.mainbox p img {max-width:100%; height: auto ! important; }


.clearer {height: 5px; clear:both; }
#gototopswitch {float:right; margin: 20px 10px 0 0;}







#mobiletop {display:none; padding: 10px 0 10px 0; background: #fff; height:140px;}
#mobiletop a#menuswitch {display:block; float:left; max-width:61px;  margin: 0 0 0 0 ; padding: 10px 20px 0 20px ;}
#mobiletop a#menuswitch img {max-width:100%; }


#mobiletop .mobilelogo img {max-height:100%;}


#menucheck {width:100%; height:1px; display:block;}


.sliderbox { height: 450px;	color: #ddd; margin:0 0 0 0;}
.slider { overflow:hidden; height: 100%;}

#static_headerbox {width: 100%; max-width:1073px; }





.menubox{
	width:100%;
	min-height:400px;
}



/*menu */
#nav {width :100%; margin-top:25px;}

#nav ul { /* all lists */	
	padding: 0;
	margin: 0;
	list-style-image: none;
	list-style-type: none;
	padding-bottom: 5px;
	
}


#nav li { /* all list items */
	display:block; 
	float:left;
	width:100%;
	list-style-image: none;
	list-style-type: none;	
	font-size : 14px;
	font-weight : normal;
	padding-bottom: 0;
	border-bottom : 1px solid #ccc;		
}
	
/*Level 1 and more*/
#nav a {			
	display : block;	
	text-decoration : none;	
	padding: 6px 0 6px 20px;
	transition: 0.5s padding;		
}

#nav li a.menu-current, #nav li a.menu-parent, #nav li a:hover {background-color:#eee; font-weight:normal; border-bottom : 0px solid #ccc;}

#nav li li a.menu-current, #nav li li a.menu-parent {background:#eee; font-weight:bold}

#nav  a:hover ul li {z-index: 1000;}
#nav  a.menu-expand { background: url(img/haschild.png) no-repeat 2px 12px;}
#nav  a.menu-expand.isopened { background:url(img/isclicked.png) no-repeat 2px 12px;}

#nav li ul {opacity:0.9;}
#nav li a {font-size:1.2em; }
#nav li li a {padding-left: 30px; font-size:1em; }
#nav li li li a {padding-left: 40px; font-size:0.95em;}
#nav li li li li a {padding-left: 50px; font-size:0.9em;}

#XXnav a.isopened { padding-top: 12px; }


#nav li ul { display:none;}

#nav li.menu-current>ul, #nav li.menu-parent>ul, #nav li.isopened>ul   { display:block ! important;}
#nav li.menu-current li>ul, #nav li.isopened li>ul  { display:none;}
	



/*Search Box */
#search_box { clear:both; padding: 5px 0 5px 18px; border-bottom : 1px solid #ccc;}
#search_box .searchstring { 
	color:#555;		
	padding:2px;
	border: 1px solid #999;
	background-color: #f7f7f7;
	width:60%;
}
#search_box .submitbutton {
	padding: 0 0 0 10px;
	vertical-align: middle;
}



/* Login Box */
#showlogin {display:block; float:left; position:relative;  width:30px; text-align:left; margin:6px 6px 0 15px; }
#login-box {position:absolute; width:180px; left:20px; top:0; padding:5px; font-size:11px; }
#login-box .loginsubmit {border:0; margin:10px 10px 0 0}
#login-box .inputfield {width:80px; border: 1px solid #c9e8f9; padding:1px;}


a.template_edit_link{display: block; clear:both; margin: 40px 0 0 12px; width:16px; height:16px; background: transparent url(img/edit.gif) no-repeat; text-decoration:none;}



table.frm-field_table td {font-size:0.9em; padding: 8px 2px; vertical-align: top; border-bottom: 1px solid #eee;}









/* ======================================================================
Smaller Screens */
@media screen and (max-width: 1150px) {
	body, html { background-image: none; background-color:#e9e9e9;		}

	.mainwrapper {
		background-image: none; 
		background-color: #fff; 
		width:100%;		
	}
	
	#mobiletop {display:block;}
	#mobiletop .mobilelogo img { float:right; width:75%; max-width:270px; margin-right:30%; max-height:100%;}	
	
	#leftbox {display:none; position: absolute; top:0; left: 0; z-index:500; float:none; width:270px; margin: 0 0 0 0; box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.3); }
	#leftbox .menubox {height:auto; min-height:200px; padding-bottom:40px;}	
	#leftbox .logo {display:none;}
	
	#leftbox.active {left: 0;}
	
	
	.mainbox {width: 100%; }
	.sliderbox { height:auto;}
	.sliderbox  .flexslider {margin:0 0 0 0;}
	.sliderbox  .flex-direction-nav {display:none;}
	
	#menucheck {display:none;}

	
	/*Korrekturen*/
	table {max-width:98% ! important; width:98% ! important; }	
	td.frm-field_title {white-space: normal;}
	
	
}

/* ======================================================================
Smaller Screens */
@media screen and (max-width: 540px) {
	
	#mobiletop .mobilelogo img { float:right; width:55%; max-width:270px; margin-right:10%; max-height:100%;}	
	.mainwrapper { background-image: none;  }
	
	.mainbox, .contentbox, .widetop, .widebottom, .sidebar, .contentnarrow, .contentwide  {float:none; width: 100%; }
	
	
	table.responsivetable td {display:block; width:100% ! important; height: auto;}
	
	

	/*iinenabstaende: */
	.contentbox .contentinner {margin: 0 2% 20px 2% ; }
	.widetop .contentinner {}
	.widebottom .contentinner {}
	.footer .contentinner {width: 90%; }
	

	

}

/*frontteaserblock*/

.frontteaserblock {margin:30px 0; width:100%; overflow:hidden;}
.frontteaserblock div {width:102%;}
.frontteaserblock div a {text-decoration:none; float:left; display:block; width:25%; margin: 0 0 10px 0; padding-bottom:10px; opacity:0.9; background:#fff; }
.frontteaserblock div a span {display:block;}
.frontteaserblock div a span.picturebackground {width:100%; background-size: 100% auto, auto; background-position: center center;  transition:0.6s all;}
.frontteaserblock div a img {width:100%; float:left; opacity:1; transition:0.9s all;}
.frontteaserblock div a .mt_title {margin:10px 2px 0 20px; height:30px; font-size:0.9em; font-weight:bold;  border-bottom: 0px solid #ccc;}
.frontteaserblock div a .mt_desc {margin:0 10px 0 20px; XXheight:130px; font-size:1em; }

/* Zoomeffekt bei Teaserfotos
.frontteaserblock div a:hover  {opacity:1;}
.frontteaserblock div a:hover span.picturebackground {width:100%; background-size: 180% auto, auto; }
.frontteaserblock div a:hover img {opacity:0;}
*/