/* Contao Open Source CMS, (c) 2005-2016 Leo Feyer, LGPL license */
@media (max-width:599px) {
	.ce_caroufredsel{
		display:none;
	}
	#mainmenu ul{
		background-color:#fff;
		border-bottom:2px solid #f07d17;
		border-right:2px solid #eee;
	}
	.home #mainmenu ul{
		top:35px !important;
	}
	#mainmenu li{
		display:block;
		float:none;
	}
	#header .mod_logo, #preheader .mod_logo{
		height:auto !important;
	}
	#mainmenu-icon{
		font-size:24px;
		margin:5px 10px 10px 10px;
	}
	.ym-equalize>[class*="ym-g"]{
		display:block;
		float:none;
		margin-bottom:20px;
	}
	.ym-g50{
		width:100%;
	}
	#main .telefon_main{
		font-size: 16px;
	}
	#main .telefon_main:before{
		font-size: 16px;
		margin-right: 5px;
	}
	.header-navi a{
		line-height: 35px;
		height: 35px;
	}
}
@media (min-width:600px){
	#main .telefon_main{
		font-size: 20px;
	}
	#main .telefon_main:before{
		font-size: 20px;
		margin-right: 15px;
	}
}
 @media (max-width:767px) {
	.span4{
		width:94% !important;
	}
	.span6, #main .ce_text, #main .ce_table, #main .ce_image{
		/*width:96% !important;*/
		margin-right: auto;
		margin-left: auto;
		width: 100%;
	}
	.span8{
		width:94% !important;
		margin-right: auto;
		margin-left: auto;
	}
	.span12{
		width:100%;
	}
	#main{
		float:none;
	}
	#left{
		margin-left: auto;
		margin-right: auto;
		float:none;
	}
	#preheader{
		margin-right: auto;
		margin-left: auto;
		width:94%;
		height:auto;
		min-height:95px;
		background-size:contain;
	}
	#preheader .telefon{
		text-align:right;
		margin: 75px 0px 20px 25px;
	}
	.headerpicture {
		height:auto;
	}
	#header.custom .headerpicture .image_container{
		width:100% !important;
	}
	.caroufredsel_pagi
	{
		display:none !important;
	}
	
	/*#left .ce_text, #left .ce_table, #left .ce_image{
		width:96%;
	}
	.page-standard #left .ce_text, .page-standard #left .ce_table, .page-standard #left .ce_image{
		width:100%;
	}*/
	#left .ce_text p, #left .ce_table table td, #left .sprechzeiten td.col_0{
		padding-left:10px;
		padding-right:10px;
	}
	.mod_changelanguage{
		margin-right:15px;
	}
	.page-standard #main{
		margin-right: auto;
		margin-left: auto;
	}
	.page-standard #main .ce_text ul{
		margin: 20px 20px 20px 30px;
	}
	.page-standard #main .ce_gallery ul{
		margin: 20px 10px 20px 10px;
	}
	.ce_gallery.block .image_container{
		
		max-width:178px;
	}
	.ce_gallery.block li.col_0 .image_container,.ce_gallery.block li.col_2 .image_container{
		
		margin-right:13px;
	} 
	.ce_gallery.block li.col_1 .image_container, .ce_gallery.block li.col_3 .image_container{
		
		margin-right:0px;
	}
	.two_column figure.image_container.float_left{
		margin-right:0px !important;
	}
	
}
@media (min-width:320px) and (max-width:359px) {
	.custom_padding_right_fr h1{
		padding-right:90px !important;
	}
}
@media (min-width:360px) and (max-width:479px) {
	
	.custom_padding_right h1{
		padding-right:90px !important;
	}
	.custom_padding_right_fr h1{
		padding-right:150px !important;
	}
	#mainmenu ul{
		top:224px !important;
	}
}
@media (min-width:480px) and (max-width:767px) {
	
	.custom_padding_right h1{
		padding-right:150px !important;
	}
	.custom_padding_right_fr h1{
		padding-right:150px !important;
	}
}
@media (min-width:600px) and (max-width:767px) {
	
	/*.caroufredsel_wrapper{
		width:100% !important;
	}
	.caroufredsel .ce_image .image_container{
		width:100% !important;
		max-width:767px;
	}
	.caroufredsel .ce_image .image_container img{
		width:100% !important;
		max-width:767px;
	}
	figcaption.caption{
		margin-left:0px;
		width:100% !important;
		font-size:14px;
		bottom:40px;
		padding-left:50px !important;
	}
	div#caroufredsel_202.caroufredsel{
		left:0px !important;
	}
	div.caroufredsel_wrapper.caroufredsel_wrapper_202{
		margin: 0 !important;
	}*/
	.ce_caroufredsel{
		display:none;
	}
}
@media (min-width:768px) and (max-width:1279px) {
	.span4{
		width:25%;
	}
	.span6{
		width:47.5%;
	}
	.span8{
		width:72%;
	}
	#header.custom .headerpicture .image_container{
		width:74.5%;
	}
	.span12{
		width:100%;
	}
	.two_column figure{
		width:47.5%;
	}
	#preheader{
		margin-right: auto;
		margin-left: auto;
		width:95%;
		max-width:1100px;
		height:150px;
		background-size:contain;
	}
	.headerpicture {
		height:auto;
	}
	.caroufredsel .ce_image .image_container{
		/*width:95% !important;*/
		max-width:1279px;
	}
	.caroufredsel .ce_image .image_container img{
		width:100% !important;
		max-width:1279px;
	}
	.home div.caroufredsel_wrapper.caroufredsel_wrapper_202{
		height:300px !important;
	}
	.home figcaption.caption{
		
		width:435px !important;
		font-size:22px;
		bottom:82px;
	}
	.home .fr figcaption.caption{
		
		width:435px !important;
		font-size:18px;
		bottom:82px;
	}
	#container{
		max-width:99%;
	}
	#left	{
		margin-right:10px;
	}
	.home .caroufredsel_pagi
	{
		bottom:60px;
	}
	.mod_changelanguage{
		margin-right:20px;
	}
	div#caroufredsel_202.caroufredsel{
		/*left:0px !important;*/
	}
	#main{
		margin-right:10px;
	}
	.home div.caroufredsel_wrapper.caroufredsel_wrapper_202{
		margin: 0 0 20px 0px !important;
	}
	.ce_gallery.block .image_container{
		
		max-width:172px;
	}
	.ce_gallery.block li.col_0 .image_container, .ce_gallery.block li.col_1 .image_container{
		
		margin-right:14px;
	}
	.ce_gallery.block li.col_2 .image_container{
		
		margin-right:13px;
	}
	.ce_gallery.block li.col_3 .image_container{
		
		margin-right:0px;
	}
	
}
@media (min-width:768px) and (max-width:949px) {
	.home figcaption.caption{
		margin-left:250px;
	}
}
@media (min-width:950px) and (max-width:1149px) {
	.home figcaption.caption{
		margin-left:250px;
	}
}
@media (min-width:1150px) {
	.home figcaption.caption{
		margin-left:5%;
	}
}
@media (min-width:768px) {
	#main{
		float:right;
	}
	.one_column.first{
		margin-right:25px !important;
	}
	.home #header{
		margin-top: -12px;
	}
	.home .ie #header{
		margin-top: 0px !important;
	}
}
@media (max-width:1279px) {
	#main{
		/*margin-right:10px;*/
	}
	
}
@media (min-width:1280px) {
	.span4{
		width:260px;
	}
	.span6{
		width:48.5%;
	}
	.span8{
		width:920px;
	}
	.span12{
		width:auto;
	}
	#preheader{
		margin-right: auto;
		margin-left: auto;
		width:auto;
		max-width:1200px;
		height:160px;
		background-size:cover;
	}
	#container{
		max-width:1200px;
	}
	.home figcaption.caption{
		margin-left:18.7%;
		font-size:22px;
		bottom:80px;
		width:25%;
		max-width:440px;
	}
	.home .fr figcaption.caption{
		margin-left:18.7%;
		font-size:18px;
		bottom:80px;
		width:25%;
		max-width:440px;
		line-height:25px;
	}
	.home .caroufredsel .ce_image .image_container{
		height:454px;
	}
	div#caroufredsel_202.caroufredsel{
		/*left:0px !important;*/
	}
	#left	{
		margin-right:20px;
	}
	.two_column figure{
		width:48.5%;
	}
	#header.custom .headerpicture .image_container{
		width:940px;
	}
	#header.custom .headerpicture .image_container img{
		max-width:none !important;
	}
	.headerpicture {
		height:454px;
	}
	.mod_changelanguage{
	}
	.ce_gallery.block li.col_0 .image_container, .ce_gallery.block li.col_1 .image_container{
		
		margin-right:13px;
	}
	.ce_gallery.block li.col_2 .image_container{
		
		margin-right:14px;
	}
	.ce_gallery.block li.col_3 .image_container{
		
		margin-right:0px;
	}
	.ce_gallery.block .image_container{
		
		max-width:220px;
	}
	
	.ym-gbox-left .image_container img{
		margin-right:20px;
	}
	.two_column figure.image_container.float_left{
		margin-right:35px !important;
	}
}
@media (min-width:1920px){
	.home .caroufredsel_pagi
	{
		margin-right:15%;
	}
}
/* ----------- iPhone 6 ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 667px) 
  and (-webkit-min-device-pixel-ratio: 2) { 
  	#mainmenu ul{
		top:224px !important;
	}
	.custom_padding_right h1{
		padding-right:150px !important;
	}
}
/* ----------- iPhone 6+ ----------- */

/* Portrait and Landscape */
@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 736px) 
  and (-webkit-min-device-pixel-ratio: 3) { 
  	#mainmenu ul{
		top:224px !important;
	}

}
