/* layout 
engler & schödel
mike lang
12.2015
*/

html { overflow-y: scroll; }
body { background-position: right bottom; background-repeat: no-repeat; background-color: #efeef1; }
#wrapper { margin-left: auto; margin-bottom: 0; margin-right: auto; background-color: white; padding-right: 0px; padding-left: 0px; }

#ie_warning { color: black; background-color: #f1f1f1; width: 100%; margin-top: 40px; padding: 10px; border: solid 1px #e64e28; }
noscript h3 { color: red; font-size: 17px; line-height: 1.5em; position: absolute;z-index: 200; margin-top: 150px; margin-left: 30px; padding: 5px; }

#headerslideshow { height: auto; }
.cycle-slideshow,
.cycle-slideshow img{ width: 100%; }
#header { background-repeat: repeat; background-image: url(bg_beton2.jpg); position: relative; }

#mobile-header { display:none; float: right; }

#mobile-nav-trigger { margin-top: 80px; margin-right: 25px; float: right; }
#mobile-nav-trigger a#trigger { text-align: center; line-height: 60px; vertical-align: bottom; font-size: 12px; display: block; width: 32px; height: 41px; margin: 0; background-image: url(mobile_menue.gif); color: #f29200; }
#mobile_nav_trigger a#trigger:hover { padding-bottom: 0px; padding-top: 0px; }



.logo { float: right; position: absolute; }
.logo img { width: 100%; height: auto; }
.logo a, .logo a:link, .logo a:visited, .logo a:focus, .logo a:active, .logo a:hover { display: block; border-width: 0px; padding: 0px; margin: 0px; border-style: none; background-image: none; }


#desktop-nav { margin-top: 0px; margin-bottom: 30px; float: left; }
#content { float: left; min-height: 400px; }
#sidebar { position: relative; float: right; }

.zweispaltig { float: left; }
.column_left, .column_right { width: 45%; }
.column_left { float: left; }
.column_right { float: right; }

.gross_quer,
.gross_quer img { width: 100%; height: auto; }
.gross_quer { margin-top: 30px; margin-bottom: 10px; }

#back { margin-bottom: 45px; margin-top: -45px; background-position: left 0px; background-repeat: no-repeat; background-image: url(pfeil_left.svg); background-size:contain; padding-left: 32px; height: 25px;  }
#back a { position: relative; top: -2px; border-bottom-width: 0; display:inline-block; padding: 0px; margin:0; line-height:0;}
.mehr { color: #f29200; }

a.img,
a.img:link,
a.img:visited { border: 0; }



/* align und bricht um egal wie hoch */
dl.projekt { display: inline-block; vertical-align:top; margin-bottom: 0px; }
dl.projekt {  }
dl.projekt:nth-of-type(even)	{ margin-left: 20px; }
dl.projekt:nth-of-type(odd)	{ margin-left: 0px; }
dl.projekt img { width: 100%; height: auto; }






.projektliste a.effect .bild_unterschrift,
.projektliste a.no_effect .bild_unterschrift { 
	position: absolute; 
	float: left; 
	padding-bottom: 3px; 
	padding-right: 15px; 
	padding-left: 25px; 
	padding-top: 3px; 
	width: 85%; 
	margin-top: -80px; 
	/*background-color: rgba(0,0,0,0.4);*/
	font-size: 20px; 
	color: white; 
}

.projektliste a.no_effect .bild_unterschrift { margin-top: -90px; }
	
	
	
.projektliste .bild_unterschrift h2,
.projektliste .bild_unterschrift p {
	font-weight: 300; 
	font-size: 20px; 
	color: white; 
	margin: 0;
	line-height: 100%; 
}
	
.projektliste .bild_unterschrift p {
	font-size: 17px;
	margin-bottom: 4px; 
	margin-top: 4px; 
	font-family: 'CallunaSans-Regular';
}


/* css3 test on hover */

.projektliste a.effect,
.projektliste a.no_effect {
	position: relative;
	/*background: #f29200;*/
	display: inline-block;
	padding: 0;
	margin: 10px;
	border: 0;
}

.projektliste a.effect { cursor: pointer; }	


/* animiertes weiches ein u ausblenden des bildes vor blauem hintergrund 
transition erst ab ie10. ie9 schaltet hart ein aus, aber funktion der website gegeben */

.projektliste a.effect img { 
	opacity: 1;
	-webkit-transition: opacity 0.35s;
	-moz-transition: opacity 0.35s;
	transition: opacity 0.35s;
}
.projektliste a.effect:hover img { opacity: 0.4; }


.projektliste a.effect h2.effect {
	margin-top: 2px;
	position: absolute;
	-webkit-transition: margin-top 0.35s;
	-moz-transition: margin-top 0.35s;
	transition: margin-top 0.35s;
}

.projektliste a.no_effect h2.effect { margin-top: 0px; }

/*.projektliste a.effect:hover h2 { margin-top: -30px; }*/
.projektliste a.effect:focus h2 { margin-top: -30px; }



.projektliste a.effect p.effect {
	padding: 8px;
	opacity: 0;
	background-color: rgba(0,0,0,0.6);
	-webkit-transition: opacity 0.35s;
	-moz-transition: opacity 0.35s;
	transition: opacity 0.35s;
}

.projektliste a.effect:hover p { opacity: 1; }








#footer { font-size: 1em; float: left; border-color: #bababa; padding-top: 0.5em; padding-right: 0; padding-bottom: 40px; width: 980px; margin: 40px auto 40px; }
#footer a, 
#footer p,
#footer li { line-height: 120%; color: #bababa !important; padding:0px; margin: 0; }


#footer a { border-style: none; border-width: 0; }
#footer a:focus,
#footer a:active, 
#footer a:hover { color: #f29200 !important; }

#footer:after { color: #eaeaea; }





 /* pfeil wird sichtbar */
.scroll_top.cd-is-visible { visibility: visible; opacity: 1; }
 /* falls weiter gescrollt wird, ist der pfeil aus dem focus und wird transparenter */
.scroll_top.cd-fade-out { opacity: .5; }

.scroll_top_box { width: 1150px; height:0px; position:fixed; bottom: 100px; z-index: 10; /*background-color: #ff2ed6;*/}

.scroll_top {
  display: inline-block;
  /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);*/
  /* image replacement properties */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: url(pfeil_scroll_top.svg) no-repeat left 50%;
  background-size:contain;
  /*background-color: transparent;*/
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity .3s 0s, visibility 0s .3s;
  -moz-transition: opacity .3s 0s, visibility 0s .3s;
  transition: opacity .3s 0s, visibility 0s .3s;
}

a.scroll_top { border-width: 0px !important; }

.scroll_top.cd-is-visible, .scroll_top.cd-fade-out, .no-touch .scroll_top:hover {
  -webkit-transition: opacity .3s 0s, visibility 0s 0s;
  -moz-transition: opacity .3s 0s, visibility 0s 0s;
  transition: opacity .3s 0s, visibility 0s 0s;
}
.scroll_top.cd-is-visible {
  /* the button becomes visible */
  visibility: visible;
  opacity: 1;
}
.scroll_top.cd-fade-out {
  /* if the user keeps scrolling down, the button is out of focus and becomes less visible */
  opacity: .5;
}
.no-touch .scroll_top:hover {
  /*background-color: #ff2ed6;*/
  opacity: 1;
}




/* fluid layout
RWD responsive web design
vier layouts, von klein nach groß 
Fact is, Android and iOS ignore media="handheld".

Prefixing a media queries with the "only" keyword will cause non CSS3-compliant browsers to ignore the rule.

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
tells the browser to set the viewport to the width of the device with an initial scale of 1.


16px ca 1em
*/

/* bewirkt animation bei der größen veränderung, stört aber beim laden */
#wrapper,  #header, #footer, #content, .logo, #headerslideshow { 
		-webkit-transition: all 0.4s ease-out;
			-moz-transition: all 0.4s ease-out;
			 -ms-transition: all 0.4s ease-out;
			  -o-transition: all 0.4s ease-out;
				  transition: all 0.4s ease-out;
}




/* iphone macht rel kleine texte größer wenn vermutet wird das die schlecht lesber sind. 
   kontrolle zurück: */
body { -webkit-text-size-adjust: none; }


/* iphone ipad retina menue bild */
@media screen and (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	#mobile_nav_trigger a#trigger { background-image:url(mobile_menue_retina.png); background-size: 32px 41px; }
}


/* Smartphones */
@media handheld, only screen and (min-width: 320px) { 

	#wrapper, #headerslideshow, #mobil-nav-content { width: 310px; }
	#header { width: 100%; }
	#headerslideshow, #sidebar { display: block; }
	#mobile-header 	{ display: block; }
	#header { margin-bottom: 100px; height: 50px; }
	#desktop-nav { display: none; }
	
	.logo { width: 200px; height: auto; bottom: -18px; right:54px; }
	#content,
	#footer { width: 270px; padding-left: 20px; padding-right: 20px; }
	#sidebar { width: 100%; }
	
	.scroll_top { height: 14px; width: 18px; margin-left:1px; }
	#back { margin-left: -20px; height: 18px; padding-left: 24px; }
	#back a { top: -10px; }
	
	/* #footer:after { content: 'Smartphone small > 320px'; } */
}


/* Smartphones (large z.B iphone 6 od ipad portrait) */
@media handheld, only screen and (min-width:667px) {
	
	#wrapper, #headerslideshow,#mobil-nav-content { width: 645px; }
	#header { display: block; }
	#headerslideshow { width: 100%; }
	#header { margin-bottom: 100px; height: 50px; }
	#mobile-header { display: block; }
	#desktop-nav { display: none; }
	
	.logo { width: 270px; height: auto; bottom: -25px; right: 180px;  }
	#content,
	#footer { width: 577px; padding-left: 35px; padding-right: 35px; }
	#sidebar { width: 100%; }
	
	dl.projekt { width: 100% ; }
	
	.scroll_top { height: 14px; width: 18px; margin-left: 8px; }
	#back { margin-left: -28px; height: 18px; padding-left: 30px; }
	#back a { top: -8px; }

	/* #footer:after { content: 'Smartphones large > 667px'; } */
}
	
	
/*styles for 1024px and up, u.A. ipad landscape */
@media only screen and (min-width: 1024px){

	#wrapper, #headerslideshow { width: 950px; }
	#headerslideshow, #sidebar { display: block; }
	#headerslideshow { margin-top: 15px; }
	#header { margin-bottom: 60px; height: 70px; }
	#mobile-header { display: none; }
	#desktop-nav { display: block; }
	
	.logo { width: 270px; height: auto; bottom: -25px; right: 45px; }
	#content,
	footer { width: 610px; padding-left: 55px; padding-right: 55px; }
	#sidebar { width: 205px; }
	
	dl.projekt { width: 250px; }
	
	.scroll_top { height: 23px; width: 25px; margin-left: 20px; }
	#back { margin-left: -28px; height: 25px; padding-left: 30px; }
	#back a { top: -2px; }

	#footer { padding-left: 55px; padding-right: 55px; }
	/* #footer:after { content: 'desktop > 1024px oder ipad landscape'; } */
}
	
	
/*styles for 1200px and up */
@media only screen and (min-width: 1200px){

	#headerslideshow, #wrapper { width: 1150px; }
	#wrapper { margin-top: 20px; }
	#headerslideshow, #sidebar { display: block; }
	#mobile-header { display: none; }
	#header { margin-bottom: 70px; height: 90px; }
	#desktop-nav { display: block; }
	
	.logo { width: 300px; height: auto; bottom: -28px; right: 45px; }
	#content { width: 700px; padding-left: 70px; padding-right: 70px; }
	#sidebar { width: 220px; }
	.scroll_top { height: 23px; width: 25px; margin-left: 20px; }
	
	#back { margin-left: -32px; }
	dl.projekt { width: 300px; }

	#footer { width: 1010px; padding-left: 70px; padding-right: 70px; }
	/* #footer:after { content: 'desktop > 1280px'; } */
}



