/* base  */

html {
	overflow-y: scroll;
	-webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape mode */
}

html,
body {
	width: 100%;
	height: 100%;
	min-height: 100%;
}

body {
	padding-top: 67px;
}


/* columns */

.mainHeader {
	position: absolute;
	top: 0;
	z-index: 5;
	width: 100%;
}

.navColumn {
	position: relative;
	width: 100%;
	height: 67px;
	background-color: #373F5C;
}

.mainColumn {
	background-color: white;
	position: relative;
}

.mainColumn section {
	padding: 30px 20px 20px 20px;
	border-top: 1px solid #aaa;
}

.mainColumn section:first-of-type {
	padding-top: 90px;
	border-top: 0;
}

.contentSlides + section,
.contentSlides + section:first-of-type,
.mainColumn img + section,
.mainColumn img + section:first-of-type {
	padding-top: 30px;
}


.mainColumn a:hover,
.sideColumn a:hover {
	color: #000;
	text-decoration: none;
}

.mainOverlapColumn {
	position: absolute;
	top: 0;
	width: 100%;
	overflow:hidden;
	height: 1000px;
	pointer-events: none;
}


@media (min-width: 950px) { /* desktop */

	body {
		padding-top: 0;
	}


	.column:after {
		content:"";
		position: absolute;
		height: 100%;
		width: 60px;
		left: auto;
		bottom: auto;
		right: -60px;
		top: 0;
		background-image: url(../img/shadow_right.png);
		background-position: -9px 0;
		background-repeat: repeat-y;
		pointer-events: none;
	}

	.mainHeader {
		position: fixed;
		padding: 0;
		min-height: 100%;
		width: 20%;
		background-color: white;
		z-index: 5;
	}
	
	.navColumn {
		height: 0;
		background-color: transparent;
	}

	.mainColumn,
	.sideColumn {
		position: absolute;
		width: 50%;
		min-height: 100%;
		-webkit-transform: translate(-90%, 0);
						transform: translate(-90%, 0);
		margin: 0;
		opacity: 0;
		padding: 0;
		z-index: 3;
	}
		
	.mainOverlapColumn {
		width: 15%;
		position: fixed;
		-webkit-transform: translate(-70%, 0);
						transform: translate(-70%, 0);
		height: 100%;
		z-index: 3;
	}
	
	.sideColumn {
		z-index: 2;
		background-color: white;
	}

	.sideColumn.fixed {
		position: fixed;
		height: 100%;
	}
		
	.mainColumn.short,
	.sideColumn.short {
		width: 30%;
		-webkit-transform: translate(-66%, 0);
						transform: translate(-66%, 0);
	}

	.mainHeader,
	.mainColumn.short,
	.sideColumn.short {
		box-shadow: 1px 0 0 white;
	}

	.mainColumn.open {
		opacity: 1;
		-webkit-transform: translate(40%, 0);
						transform: translate(40%, 0);
	}

	.mainColumn.short.open {
		-webkit-transform: translate(66.4%, 0);
						transform: translate(66.4%, 0);
	}

	.sideColumn.open {
		opacity: 1;
		-webkit-transform: translate(100%, 0);
						transform: translate(100%, 0);
	}


	.sideColumn.halfopen {
		opacity: 1;
		-webkit-transform: translate(60%, 0);
						transform: translate(60%, 0);
	}

	.mainColumn.short + .sideColumn.short.open {
		-webkit-transform: translate(166.2%, 0);
						transform: translate(166.2%, 0);
	}
		
	.mainOverlapColumn.open {
		-webkit-transform: translate(366.6%, 0);
						transform: translate(366.6%, 0);
	}

	.mainOverlapColumn:after {
		content:none;
	}


	.fillColumn {
		position: fixed;
		top: 0;
		width: auto;
		left: 0;
		-webkit-transform: translate(-180%, 0);
		transform: translate(-180%, 0);
		height: 100%;
		z-index: 2;
		-webkit-transition: -webkit-transform 0.3s ease;
		transition: transform 0.3s ease;
	}

	.fillColumn.open {
		left: 50%;
		-webkit-transform: translate(0, 0);
		transform: translate(0, 0);
	}

	.informationen .fillColumn {
		background-color: #E9E5DC;
	}

	.mainColumn section {
		padding: 50px 12% 40px 12%;
	}

	.mainColumn.short section,
	.sideColumn section,
	.sideColumn .details {
		padding: 50px 15% 40px 15%;
	}

	.mainColumn section:first-of-type {
		padding-top: 50px;
	}

	.mainColumn section:last-of-type {
		margin-bottom: 10em;
	}

}




/* images */


.column img {
	position:relative;
	width: 100%;
	margin-bottom: 1em;
}

.column img + img {
	margin-bottom: 1em;
}

.contentImages {
	margin: 0;
	float:none;
	clear:both;
}

.contentImages:after {
	content: "";
	float:none;
	clear: both;
	display:block;
}

section .contentImages {
	margin: 3em 0;
}


.fancybox {
	position:relative;
	margin-top: 2em;
	margin-bottom: 1em;
}

.fancybox:after {
	content: "";
	display:block;
	height: 0;
	clear:both;
}

.fancybox a {
	display:block;
	float:left;
	height: auto;
	overflow:hidden;
}

.fancybox a img {
	transform: scale(1);
	transition: transform 0.5s ease;
}

.fancybox a:hover img {
	transform: scale(1.04);
}

.fancybox.twocols a {
	width: 48%;
	margin-right: 4%;
	margin-bottom: 4%;
}

.fancybox.twocols a:nth-child(2n) {
	margin-right: 0;
}

.fancybox.threecols a {
	width: 31.3%;
	margin-right: 3%;
	margin-bottom: 3%;
}

.fancybox.threecols a:nth-child(3n) {
	margin-right: 0;
}

.fancybox.fourcols a {
	width: 23.5%;
	margin-right: 2%;
	margin-bottom: 2%;
}

.fancybox.fourcols a:nth-child(4n) {
	margin-right: 0;
}


.column .fancybox img {
	margin-bottom: 0;
	display:block;
}




@media (min-width: 950px) { /* desktop */

	.column img.float {
		float: left;
		margin-bottom: 2%;
		width: 98%;
	}

	.column img.half {
		width: 50%;
		margin-right: 2%;
	}
	.column img.half.float {
		width: 48%;
		margin-top: 0;
	}

	.column img.third {
		width: 31.3%;
		margin-right: 2%;
	}

	.column img.half.centered {
		left: 25%;
	}
}


/*footer */

.mainFooter {
	position: relative;
	padding: 40px 10px 24px 24px;
	box-sizing: border-box;
	color: #bbb;
}


@media (max-width: 949px) { /* mobile */
	.mainFooter:before {
		content: "";
		position: absolute;
		height: 60px;
		width: 100%;
		left: 0;
		top: 0;
		background-image: url(../img/shadow_bottom.png);
		background-position: 0 0;
		background-repeat: repeat-x;
		pointer-events: none;
	}
}


.facebookLogo {
	position: absolute;
	z-index: 2;
	width: 30px;
	height: 30px;
	right: 30px;
	bottom: 44px;
	margin: 0;
	padding: 0;
}

.facebookLogo img {
	width: 100%;	
}



@media (min-width: 950px) { /* desktop */
	.mainFooter {
		position: fixed;
		bottom: 0;
		z-index: 10;
		width: 20%;
		color: #000;
		padding: 0;
		background-color: white;
	}

	.mainFooter .address {
		display:block;
		position: relative;
		width: 100%;
		margin-bottom: 4em;
		padding-left: 15%;
		white-space: nowrap;
	}

	.facebookLogo {
		position: fixed;
		right: 40px;
		bottom: 40px;
	}

	.informationen .facebookLogo {
		display:none;
	}
}



/* columns override for desktop > 1700px (maximum page width limit) */
@media (min-width: 1400px) {

	.mainHeader,
	.mainFooter {
		width: 276px;
	}

	.mainColumn,
	.mainColumn.open,
	.sideColumn,
	.sideColumn.open {
		width: 690px;
	}
	
	.sideColumn.fixed,
	.sideColumn.fixed.open {
		width: 1000px;
	}

	.sideColumn.fixed.open {
		transform: translate(68.5%, 0);
	}

	.mainColumn.short,
	.mainColumn.short.open,
	.sideColumn.short,
	.sideColumn.short.open {
		width: 	415px;
	}

	.mainOverlapColumn {
		width: 207px;
	}
}



/* columns override between mobile and desktop (minimum page width limit) */
@media (min-width: 950px) and (max-width: 1200px) {
	.mainHeader,
	.mainFooter {
		width: 236px;
	}

	.mainColumn,
	.mainColumn.open,
	.sideColumn,
	.sideColumn.open {
		width: 592px;
	}

	.mainColumn.short,
	.mainColumn.short.open,
	.sideColumn.short,
	.sideColumn.short.open {
		width:  355px;
	}

	.mainOverlapColumn {
		width: 177px;
	}

}



/* logo */

img.logo {
	position: absolute;
	top: 6px;
	right: 20px;
	z-index: 800;
	width: auto;
	height: 50px;
}

.logoDesktop {
	display:none;
}


@media (min-width: 950px) { /* desktop */
	img.logo {
		position: fixed;
		right: 20px;
		top: 10px;
		height: 130px;
	}
	
	.logoDesktop {
		display:block;
	}
	
	.logoMobile {
		display:none;
	}
	
}





/* content slides */

.contentSlides {
	width: 100%;
	position: relative;
	display:block;
	padding-bottom: 13%;
	overflow: hidden;
	background-color: #444;
	transition: all 0.3s ease;
}

.contentSlides.open {
	padding-bottom: 66%;
}

section + .contentSlides {
	margin-top: 5em;
}

section .contentSlides {
	margin: 2em 0;
}

.contentSlides.open a {
	position: absolute;
	display:block;
	width:100%;
	height:100%;
}

.contentSlides img {
	position: absolute;
	opacity: 0;
	z-index: 1;
	transition: opacity 2s ease;
}

.contentSlides img.active {
	opacity: 1;
	display:inline;
	z-index: 2;
}


@media (min-width: 950px) { /* desktop */
	.contentSlides {
		padding-bottom: 0;
		
	}
	
	.contentSlides.open {
		padding-bottom: 66%;
	}


}



/* content fold */

.contentFold,
.foldNote {
	margin-top: 1em;
	overflow: hidden;
	transition: max-height 0.2s ease;
}

.foldNote {
	margin-top: -1em;
	padding: 1em 0;
	cursor: pointer;
	color: #d30e15;
}

.foldNote.isHidden {
	max-height: 0;
	padding: 0;
}



/* background images */

.bgImgContainer {
	display:none;
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 70vw;
	overflow:hidden;
}

.index .bgImgContainer {
	display:block;
}

.bgImgContainer img {
	position: absolute;
	width: 100%;
	display:none;
}


@media (min-width: 950px) { /* desktop */
	.bgImgContainer {
		position: fixed;
		display:block;
		top: 0;
		right: 0;
		width: 100%;
		height: 100%;
		z-index: 1;
		background-color: white;
		opacity: 1;
		transition: opacity 0.5s ease;	
	}

	.bgImgContainer.isHidden {
		opacity: 0;		
	}

	.bgImgContainer img {
		display:block;
		position: absolute;
		right: 0;
		left: initial;
		width: auto;
		max-height: 100%;
		opacity: 0;
	}

	.bgImgContainer img.active {
		opacity: 1;
	}
}




/* other */


.hidden {
	display:none;
}

.clear {
	clear:both;
	height: 0;
	display:block;
}
