/*!
 * This file is part of Contao.
 *
 * (c) Leo Feyer
 *
 * @license LGPL-3.0-or-later
 */

/**
 * Make the wrapping container 960 pixel wide
 */
#header .inside,
#footer .inside,
#kooperationspartner .inside,
#rechtliches .inside,
.mod_article.wrap .inner{
	width:1332px;
    margin:0 auto;
}

/**
 * Set the default margin of the grid columns
 */
*[class*="grid"] {
	float:left;
	margin-left:10px;
	margin-right:10px;
	display:inline;
}

/**
 * Add a default margin to all content elements, so they align with the floatet
 * ones (otherwise you would have to add "grid12" to every element)
 */
.mod_article *[class*="ce_"],.mod_article *[class*="mod_"] {
	margin-left:10px;
	margin-right:10px;
}

/**
 * Handle news and event reader modules which are added via content element and
 * contain content elements themselves (see #5331)
 */
.mod_article .mod_newsreader,.mod_article .mod_eventreader {
	margin-left:0;
	margin-right:0;
}
.mod_article *[class*="layout_"] > *,.mod_article *[class*="event_"] > * {
	margin-left:10px;
	margin-right:10px;
}

/**
 * Remove the margin from floated articles, because the margin is already
 * applied to its content elements (see above)
 */
.mod_article.grid1,.mod_article.grid2,.mod_article.grid3,.mod_article.grid4,.mod_article.grid5,.mod_article.grid6,
.mod_article.grid7,.mod_article.grid8,.mod_article.grid9,.mod_article.grid10,.mod_article.grid11,.mod_article.grid12 {
	margin-left:0;
	margin-right:0;
}

/**
 * Automatically clear the floats in the main column, so you do not have to add
 * a clearing div to each article
 */
#main .inside {
	overflow:hidden;
}

/**
 * Grid column widths
 */

.grid1  { width:91px;  }
.grid2  { width:202px; }
.grid3  { width:313px; }
.grid4  { width:424px; }
.grid5  { width:535px; }
.grid6  { width:646px; }
.grid7  { width:757px; }
.grid8  { width:868px; }
.grid9  { width:979px; }
.grid10 { width:1090px; }
.grid11 { width:1201px; }
.grid12 { width:1312px; }

.grid10_0.offset1 { 
	width:1110px; 
	margin-left:138px !important;
	margin-right:0px !important;
}



.grid12_0 {
         margin: 0 !important;
         width: 100%;
}

		.offset1  { margin-left:121px  !important; }
		.offset2  { margin-left:232px !important; }
		.offset3  { margin-left:343px !important; }
		.offset4  { margin-left:454px !important; }
		.offset5  { margin-left:565px !important; }
		.offset6  { margin-left:676px !important; }
		.offset7  { margin-left:787px !important; }
		.offset8  { margin-left:898px !important; }
		.offset9  { margin-left:1009px !important; }
		.offset10 { margin-left:1120px !important; }
		.offset11 { margin-left:1231px !important; }


@media (min-width:1290px) and (max-width:1675px)
{
#header .inside,
#footer .inside,
#kooperationspartner .inside,
#rechtliches .inside,
.mod_article.wrap .inner{
		width:1272px;
	}	
	
	.grid1  { width:86px;  }
	.grid2  { width:192px; }
	.grid3  { width:298px; }
	.grid4  { width:404px; }
	.grid5  { width:510px; }
	.grid6  { width:616px; }
	.grid7  { width:722px; }
	.grid8  { width:828px; }
	.grid9  { width:934px; }
	.grid10 { width:1040px; }
	.grid11 { width:1146px; }
	.grid12 { width:1252px; }
	
.grid10_0.offset1 { 
	width:1060px; 
	margin-left:106px !important;
	margin-right:0px !important;
}
	
	.offset1  { margin-left:116px  !important; }
	.offset2  { margin-left:222px !important; }
	.offset3  { margin-left:328px !important; }
	.offset4  { margin-left:434px !important; }
	.offset5  { margin-left:540px !important; }
	.offset6  { margin-left:646px !important; }
	.offset7  { margin-left:752px !important; }
	.offset8  { margin-left:858px !important; }
	.offset9  { margin-left:964px !important; }
	.offset10 { margin-left:1070px !important; }
	.offset11 { margin-left:1176px !important; }
}
@media (min-width:980px) and (max-width:1291px)
{
#header .inside,
#footer .inside,
#kooperationspartner .inside,
#rechtliches .inside,
.mod_article.wrap .inner{
		width:960px;
	}
		
	.grid1  { width:60px;  }
	.grid2  { width:140px; }
	.grid3  { width:220px; }
	.grid4  { width:300px; }
	.grid5  { width:380px; }
	.grid6  { width:460px; }
	.grid7  { width:540px; }
	.grid8  { width:620px; }
	.grid9  { width:700px; }
	.grid10 { width:780px; }
	.grid11 { width:860px; }
	.grid12 { width:940px; }
	
.grid10_0.offset1 { 
	width:800px; 
	margin-left:80px !important;
	margin-right:0px !important;
}	

	.offset1  { margin-left:90px  !important; }
	.offset2  { margin-left:170px !important; }
	.offset3  { margin-left:250px !important; }
	.offset4  { margin-left:330px !important; }
	.offset5  { margin-left:410px !important; }
	.offset6  { margin-left:490px !important; }
	.offset7  { margin-left:570px !important; }
	.offset8  { margin-left:650px !important; }
	.offset9  { margin-left:730px !important; }
	.offset10 { margin-left:810px !important; }
	.offset11 { margin-left:890px !important; }
}
/**
 * Reduce the overall width and the width of the grid columns if the screen
 * width is less than 980px (e.g. on a portrait tablet)
 */
@media (min-width:768px) and (max-width:979px)
{

/*
	#header .inside,
	#footer .inside,
	#kooperationspartner .inside,
	#rechtliches .inside,
	.mod_article.wrap .inner{
		width:744px;
	}

	.grid1  { width:42px;  }
	.grid2  { width:104px; }
	.grid3  { width:166px; }
	.grid4  { width:228px; }
	.grid5  { width:290px; }
	.grid6  { width:352px; }
	.grid7  { width:414px; }
	.grid8  { width:476px; }
	.grid9  { width:538px; }
	.grid10 { width:600px; }
	.grid11 { width:662px; }
	.grid12 { width:724px; }

	.grid10_0.offset1 { 
		width:620px; 
		margin-left:62px !important;
		margin-right:0px !important;
	}

	.offset1  { margin-left:72px  !important; }
	.offset2  { margin-left:134px !important; }
	.offset3  { margin-left:196px !important; }
	.offset4  { margin-left:258px !important; }
	.offset5  { margin-left:320px !important; }
	.offset6  { margin-left:382px !important; }
	.offset7  { margin-left:444px !important; }
	.offset8  { margin-left:506px !important; }
	.offset9  { margin-left:568px !important; }
	.offset10 { margin-left:630px !important; }
	.offset11 { margin-left:692px !important; }
*/

#header .inside,
	#footer .inside,
	#kooperationspartner .inside,
	#rechtliches .inside,
	.mod_article.wrap .inner{
		width:auto;
	}

	*[class*="grid"] {
		float:none !important;
		display:block !important;
		width:auto !important;
		margin-left:20px;
		margin-right:20px;
	}

	
	.grid10_0.offset1 { 
		float:none !important;
			display:block !important;
			width:auto !important;
			margin-left:20px !important;
			margin-right:20px !important;
	}
	
	*[class*="offset"] {
		margin-left:20px !important;
	}
	.mod_article *[class*="ce_"],.mod_article *[class*="mod_"] {
		margin-left:20px;
		margin-right:20px;
	}



}


@media (max-width:767px)
{

	#header .inside,
	#footer .inside,
	#kooperationspartner .inside,
	#rechtliches .inside,
	.mod_article.wrap .inner{
		width:auto;
	}

	*[class*="grid"] {
		float:none !important;
		display:block !important;
		width:auto !important;
		margin-left:20px;
		margin-right:20px;
	}
	
	.grid10_0.offset1 { 
		float:none !important;
			display:block !important;
			width:auto !important;
			margin-left:20px !important;
			margin-right:20px !important;
	}
	
	*[class*="offset"] {
		margin-left:20px !important;
	}
	.mod_article *[class*="ce_"],.mod_article *[class*="mod_"] {
		margin-left:20px;
		margin-right:20px;
	}
	
}
