/* 1280px */
@media screen and (max-width: 80em) {
	
	header#top nav .headerInner #magNav li {
    	margin-right: 1em;
    }
    header#top nav .headerInner #magNav li:first-child {
    	margin-left: 1em;
    }
	ul.social-media.share-article-list li {
        margin-right: 0.25em;
    }
    header#top #title .customTitle {
    	margin-left: 0;
    }
}
/* 1024px */
@media screen and (max-width: 64em) {
	
	nav#asideNav {
		display: block;
		position: relative;
		width: 100%;
	}
	
	nav#asideNav .asideNavItem {
		max-width: 33.3333%;
		float: left;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		margin-right: 0.25em;
		background: #aaaaad;
		padding: 0 0.25em 0 0em;
		cursor: pointer;
	}
	nav#asideNav .asideNavItem a {
    	font-size: 100%;
    	color: #313131;
    	font-style: italic;
    	text-transform: uppercase;
    	font-family: 'Oswald', sans-serif;
    	font-weight: 400;
    	position: relative;
    	margin: 0.5em 0 0.25em 0;
    	text-decoration: none;
        padding-left: 1em;
    }
    nav#asideNav .asideNavItem a:after {
    	content: '';
    	background: #313131;
    	height: 2px;
    	width: 100%;
    	position: absolute;
    	left: 0;
    	bottom: 0;
    }
	#main section article#overview,
	#main section aside#dates {
		width: 100%;
		padding: 0;
		border: none;
	}
	header#top nav .headerInner aside #search-box.desktop-search {
		display: none;
	}
	header#top nav .headerInner {
		padding: 0 4em 0 4em;
	}
	header#top nav .headerInner .logo {
	    max-width: 12%;
	}
	header#top nav .headerInner #magNav {
	    max-width: 60%;
	    width: 60%;
	}
	#panel #search-box.mobile-search {
		display: block;
	}
	
}
/* 800px */
@media screen and (max-width: 50em) {
	
	#main article#overview-wrapper {
	    width: 100%;
	    max-width: 100%;
	    float: left;
	    box-sizing: border-box;
	    padding-right: 0;
	}
	header#top nav .mobileTrigger {
		position: absolute;
		top: 0.875em;
		right: 0.875em;
		display: block;
		cursor: pointer;
		background: url('../images/magazin/menuTrigger.svg') center center no-repeat;
		background-size: 100% 100%;
		width: 2.375em;
		height: 2.375em;
	}
	header#top nav .mobileTrigger.close {
		background: url('../images/magazin/menuTrigger-close.svg') center center no-repeat;
		background-size: 100% 100%;
	}
	#main.inner section#content {
		width: 100%;
		max-width: 100%;
		padding-right: 0;
	}
	aside#panel {
		position: fixed !important;
		top: 0;
		right: -45%;
		background: #fff;
		max-width: 45% !important;
		width: 45% !important;
		-webkit-transition: all 200ms ease-in-out;
		-moz-transition: all 200ms ease-in-out;
		-ms-transition: all 200ms ease-in-out;
		-o-transition: all 200ms ease-in-out;
		transition: all 200ms ease-in-out;
		padding: 0 1.25em 0 1.25em;
	}
	#panel {
		overflow-y: scroll;
		height: 100%;
		
	}
	#title .customTitle {
		margin-left: 0 !important;
	}
	header#top nav .headerInner #magNav li:first-child {
    	margin-left: 0;
    }
	header#top nav .headerInner #magNav {
		width: 100% !important;
		max-width: 100% !important;
	}
	header#top nav.createOverlay {
		height: 7.55em;
	}
	header#top nav.createOverlay .headerInner .logo {
		width: 100% !important;
		max-width: 100% !important;
	}
	header#top nav .headerInner #headTitle {
		position: absolute;
		top: 0;
		float: none;
		right: 4.5em;
	}
	header#top nav .headerInner #headTitle {
        max-width: 80% !important;
        width: 50% !important;
    }
	/*header#top nav .headerInner #magNav,
	header#top nav .headerInner #headTitle {*/
}
/* 640px */
@media screen and (max-width: 40em) {
	
	header#top nav .headerInner #headTitle .customTitleHead {
		font-size: 0.85em;
		margin-top: 2em !important;
	}
	header#top nav .headerInner #headTitle .customTitleHead:before {
	    position: absolute;
	    top: -0.85em;
	    right: 0px;
	}
	header#top #title .customTitle {
    	font-size: 2.75em;
		margin-left: 1.5em !important;
	}
	#overview .node-template.main-body {
        width: 100%;
        max-width: 100%;
    }
    #overview aside.articleLeft {
        width: 100%;
        max-width: 100%;
    }	
    #overview .node-template article.general-article-single {
        width: 100%;
        padding: 0;
    }
    #overview aside.articleLeft .articleTags .tag {
        float: left;
        margin: 0 0.25em 0.25em 0;
    }
    #overview aside.articleRight,
    footer.articleFooter {
        max-width: 50%;
        width: 50%;
        -webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;
		float: left;
    }                     
    footer.articleFooter {
        padding-left: 1em;
    }
    #overview aside.articleRight {
        padding-right: 1em;
    }
    .view-gallery {
        margin-top: 1em;
    }
    .view-gallery .views-row {
        float: left;
        width: 49%;
        margin-right: 1%;
        position: relative;
    	-webkit-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	box-sizing: border-box;
    }
    .view-gallery .views-row.views-row-1 {
        margin-top: 0 !important;
    }
    .view-gallery .views-row:nth-child(2n),
    .view-gallery .views-row:nth-child(4n),
    .view-gallery .views-row:nth-child(6n),
    .view-gallery .views-row:nth-child(8n) {
        margin-right: 0 !important;
    }
    .view-gallery .views-row:nth-child(3n),
    .view-gallery .views-row:nth-child(9n) {
        margin-right: 1%;
    }
    .view-gallery .views-row:nth-child(2n+1),
    .view-gallery .views-row:nth-child(4n+1) {
        clear: left;
    }
    .view-gallery .views-row:nth-child(3n+1),
    .view-gallery .views-row:nth-child(9n+1) {
        clear: none !important;
    }
    ul#magNav.mobileVersion {
        height: auto !important;
        position: relative;
    }         
    ul#magNav.mobileVersion:before {
        content: 'Magazin-Kategorie waehlen';
        position: absolute;
        text-align: center;
        text-decoration: underline;
        top: 1.125em;
        left: 50%;
        width: 100%;
        -ms-transform: translateX(-50%); /* IE 9 */
        -webkit-transform: translateX(-50%); /* Chrome, Safari, Opera */
    	transform: translateX(-50%);
    }
    ul#magNav.mobileVersion li {
        display: none; 
        float: none !important;
        width: 100% !important;
        text-align: center !important;
        margin-right: 0 !important;  
        background: #fff !important; 
        height: auto !important;
        padding: 0.5em 0 0.5em !important;
        -webkit-transition: all 800ms ease-in-out;
        -moz-transition: all 800ms ease-in-out;
        -ms-transition: all 800ms ease-in-out;
        -o-transition: all 800ms ease-in-out;
        transition: all 800ms ease-in-out;
        border-left: 1px solid #d9d9d9;
        border-right: 1px solid #d9d9d9;
    }
    ul#magNav.mobileVersion li:last-child {
        border-bottom: 1px solid #d9d9d9;
    }
    ul#magNav.mobileVersion li.showItems {
        display: block;          
        -webkit-transition: all 800ms ease-in-out;
        -moz-transition: all 800ms ease-in-out;
        -ms-transition: all 800ms ease-in-out;
        -o-transition: all 800ms ease-in-out;
        transition: all 800ms ease-in-out;
    }
    ul#magNav.mobileVersion li:first-child {
        margin-top: 4.2em !important; 
    }
    main .onePage #main {
        padding: 0 2.5% 0 2.5% !important;
    }
    #overview-wrapper aside.articleLeft,
    #overview-wrapper .node-template article.general-article-single {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    #overview-wrapper .node-template.main-body,
    #overview-wrapper aside.articleRight {
        width: 100% !important;
        max-width: 100% !important;
    }
    #overview-wrapper aside.articleLeft .articleTags .tag {
        float: left !important;
    }
}
/* 480px */
@media screen and (max-width: 30em) {
	 .customTitle {
         display: none !important;
     }
	header#top nav .headerInner #magNav li {
	    margin-right: 0.75em;
	}
	header#top nav .headerInner #magNav li a {
		font-size: 0.75em;
	}
	#main section header#sectionHead .sectionHeadLeft {
        max-width: 50%;
        width: 50%;
    }
	#main section header#sectionHead .sectionHeadRight {
        max-width: 100%;
        width: 100%;
        padding-left: 0em;
    }
    aside#panel {
        right: -60%;
        background: #fff;
        max-width: 60% !important;
        width: 60% !important;
    }
	/* -- Layout temp1 -- */
    .layout-pro.temp1 aside,
    .layout-pro.temp1 .article-body {
    	width: 100%;
    	float: left;
    	-webkit-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	box-sizing: border-box;
    	position: relative;
    }
    .layout-pro.temp1 aside,
    .layout-pro.temp1 .article-body {
    	padding: 0;
    }
    .view-gallery .views-row:first-child,
    .view-gallery .views-row:nth-child(3n),
    .view-gallery .views-row:nth-child(5n),
    .view-gallery .views-row:nth-child(7n),
    .view-gallery .views-row:nth-child(9n) {
        margin-right: 2% !important;
    }
    
}
/* 360px */
@media screen and (max-width: 22.5em) {
     
    /* -- Layout temp2 -- */
    .layout-pro.temp2 aside .grid-images figure {
    	width: 100%;
    	float: left;
    	margin: 1em 0 0 0;
    }
    .layout-pro.temp2 aside .grid-images figure:first-child, 
    .layout-pro.temp2 aside .grid-images figure:nth-child(2), 
    .layout-pro.temp2 aside .grid-images figure:nth-child(3) {
        margin-top: 1em;
    }
    /* MultiColoumn */
	.layout-pro .article-body .mc50 {
    	width: 100%;
    	float: left;
    	-webkit-box-sizing: border-box;
    	-moz-box-sizing: border-box;
    	box-sizing: border-box;
    }
    .layout-pro .article-body .mc50:first-child,
    .layout-pro .article-body .mc50:nth-child(2) {
    	padding: 0;
    }
    .layout-pro .article-body .mc50:nth-child(2):after {
    	clear: both;
    }
    .articleAddon.moreBox.asideBox .view-image {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0.125em;
    }
    .articleAddon .view .views-row .view-teaser {
        width: 100%;
        max-width: 100%;
        padding: 0
    }
    .view-gallery .views-row {
        width: 100% !important;
        margin-right: 0 !important;
        clear: none !important;
        float: left !important;
    }
    aside#panel {
        right: -70%;
        background: #fff;
        max-width: 70% !important;
        width: 70% !important;
    }
}