/**
 * "Yet Another Multicolumn Layout" - YAML CSS Framework
 *
 * default screen stylesheet - FULLPAGE-layout type layout
 *
 * @copyright       Copyright 2005-2012, Dirk Jesse
 * @license         CC-BY 2.0 (http://creativecommons.org/licenses/by/2.0/),
 *                  YAML-CDL (http://www.yaml.de/license.html)
 * @link            http://www.yaml.de
 * @package         yaml
 * @version         4.0
 * @revision        $Revision: 686 $
 * @lastmodified    $Date: 2012-01-22 13:09:37 +0100 (So, 22 Jan 2012) $
 */

@media screen {
	
	/* force vertical scrollbar */
	body {
		overflow-y: scroll;
		background:url("../../img/body-background.png") no-repeat top center;
		/*
		background-size: 80% auto;
		*/
	}

	/* Layout Module Configuration */
	.ym-wrapper {
		max-width: 80em;
		margin: 0 auto;
/* NICHT IM ORIGINAL */
		overflow: hidden;
	}

	.ym-wbox {
		padding: 2.5em 1.5em 1.5em;
	}

	/* fallback for media queries */
	header,
	#main,
	footer,
	#footer-top,
	#footer-bottom {
		min-width: 760px;
	}

	/* Basic Element Styling */
	header {
		/* background: #444; */ /*CHANGED*/
		color: #ccc;
	}

	header h1 {
		background: transparent;
		color: #fff;
	}
	
	/* Individual header navigation, derived from #headernav */
	#headernav-fo {
		top: 0;
		position: absolute;
		font-size: 0.9em;
		color: #fff;
		text-align: left;
		right: 1.6em;
		min-width: 40px;
	}

	#headernav {
		top: 6px;
		position: absolute;
		font-size: 0.9em;
		color: #fff;
		text-align: left;
		right: 1.6em;
		min-width: 40px;
	}

	#nav {
		/*background: #222222;*/ /*CHANGED*/
		background: #2dac62;
	}

/* NICHT IM ORIGINAL! */
	#main { min-height: 300px; }

	#main nav {
		background: transparent;
	}

	.rootline {
		float: left;
	}

	.ym-col1 nav {
		/*margin-top: 1.5em;*/ /*CHANGED*/
	}

	.language-menu {
		float: right;
		width: auto;
		min-width: 40px;
	}

	#main .info {
		margin-bottom: 1.5em;
	}

	footer {
		min-height: 289px;
		/* background: #eee; */ /*CHANGED*/
		background:url("../../img/footer-back-rose.png") no-repeat top center #565656;
		border-top: 5px #2dac62 solid;
		color: #fff;
	}
		img.logo-footer { display:block; margin-top: 1.8em; }
		img.banner-footer { display:block; margin-top: 1.5em; }


	#footer-top .ym-wbox {
		padding: 0em 1.5em;
	}
		#footer-top .toTopLink-footer {
			display: block;
			width: 60px;
			height: 35px;
			float: right;
			text-align: right;
		}
			#footer-top .toTopLink-footer a {
				display: block;
				width: 60px;
				height: 35px;
				background:url("../../img/arrow-to-top.png") no-repeat center center #2DAC62;
			}


	#footer-bottom {
		background: #424242;
	}
		#footer-bottom .ym-wrapper {
			overflow: visible;
		}
			#footer-bottom .ym-wbox {
				padding: 1em 1.5em;
			}

		.footer-bottom-left {
			padding-right: 3.7em;
		}

			#footer-bottom p {
				display: inline;
				margin: 0;
				color: #fff;
			}

			a.printlink {
				display: inline;
				float: right;
				padding-top: 0.1em;
			}
			a.tipafriend {
				display: inline;
				float: right;
				padding: 0.1em 3em 0 0;
			}
			a:hover.printlink,
			a:focus.printlink,
			a:hover.tipafriend,
			a:focus.tipafriend { 
				background-color: transparent;
			}

		#footer-bottom a.service-link-01 ,
		#footer-bottom a.service-link-02 ,
		#footer-bottom a.service-link-03 ,
		#footer-bottom a.service-link-04 {
			display: block;
			float: right;
			margin-right: 20px;
			width: 20px;
			height: 18px;
		}
		#footer-bottom a.service-link-01  { background:url("../../img/pict-facebook.png") no-repeat center center; }
		#footer-bottom a.service-link-02  { background:url("../../img/pict-twitter.png") no-repeat center center; }
		#footer-bottom a.service-link-03  { background:url("../../img/pict-send-to-friend.png") no-repeat center center }
		#footer-bottom a.service-link-04  { background:url("../../img/pict-print.png") no-repeat center center }

	footer p {
		margin: 0;
	}

	header .ym-wbox,
	footer .ym-wbox {
		padding: 1em 1.5em;
		position: relative;	/* NICHT IM ORIGINAL !*/
		overflow: hidden;	/* NICHT IM ORIGINAL !*/
	}

	section.box .ym-gbox { padding: 0 1.5em; }
	section.box .ym-gbox-left { padding: 0 1.5em 0 0; }
	section.box .ym-gbox-right { padding: 0 0 0 1.5em; }

	section.box { padding: 0 1.5em 1.5em 1.5em; }



	/* Kopfbox in Teaser fuer buendigen Flexslider ohne margins */
	#main section.box,
	#main section.info {
		margin: 0;
		padding: 0;
		border: none;
		border-radius: 0;
		background-color: #ccc;
		overflow: hidden;
	}

/* IM ORIGINAL: 
	#main aside .ym-gbox-right {}
*/
	aside .ym-cbox-right {
		/*padding-top: 1em;*//*CHANGED*/
		border-left: 1px #ddd solid;
	}
	
	/* Rootline */
	.rootline {
		padding: 0.5em 1.5em;
		line-height: 2em;
	}
	.selectfontsize {
		padding: 0.5em 1.5em;
		float: right;
		line-height: 2em;
	}


	/* skip links styling */
	.ym-skiplinks a.ym-skip:focus,
	.ym-skiplinks a.ym-skip:active {
		color:#fff;
		background:#333;
		border-bottom:1px #000 solid;
		padding:10px 0;
		text-align: center;
		text-decoration:none;
	}
	
	
	#nav-mobile {
		display: none;
	}
	
	#nav-mobile ul {
		margin: 0;
	}
	
	#nav-mobile .ym-vlist a,
	#nav-mobile .ym-vlist a:visited {
		color: #fff;
		padding-left: 10%;
	}
	
	#nav-main { float: left; width: auto; }
	
	img.logo {
		/* width: 13em; */
		float: left;
	}
	#projectdate { line-height: 200%; clear: both; float: left; margin-left: 0.3em; }
	
	/*CHANGED*/
	img.banner { float: right; margin-top: 1em; }
	
	/* example for css3 shadow around image */
	.csc-frame-frame1 img { /* default */
		padding: 4px;
		margin-left: 7px;
		margin-right: 7px;
		margin-bottom: 7px;
		border: 1px solid #000;
	}
	.boxshadow .csc-frame-frame1 img { /* browser has boxshadow support */
		-webkit-box-shadow: 0px 0px 7px 2px rgba(0, 0, 0, 0.4); 
		-moz-box-shadow:  0px 0px 7px 2px rgba(0, 0, 0, 0.4); 
		box-shadow:  0px 0px 7px 2px rgba(0, 0, 0, 0.4);
	}
	
	
	/**
	 *Layouts 
	*/
	
	/* Layout 1|3 */
	.layout-13 .ym-col3 { margin-right: 0; }
	.layout-13 .ym-col3 > .ym-cbox { padding-right: 0; }
	
	/* Layout 3|2 */
	.layout-32 .ym-col3 { margin-left: 0; }

	/* Layout u|l */
	.layout-ul .ym-upper > .ym-cbox { padding: 0; }
	.layout-ul .ym-lower > .ym-cbox { padding: 10px 0 0 0; }

	/* Layout u */
	.layout-u .ym-upper > .ym-cbox { padding: 0; }
	
	/* Box */
	.contentbox-head { 
		background: #666;
		-webkit-border-top-left-radius: 1em;
		-webkit-border-top-right-radius: 1em;
		-moz-border-radius-topleft: 1em;
		-moz-border-radius-topright: 1em;
		border-top-left-radius: 1em;
		border-top-right-radius: 1em;
	}
	.contentbox-head h4 { color: #fff; line-height: 150%; size: 11%; padding: 0 0.5em; }
	
	.contentbox-body { overflow: hidden; padding: 0.7em; background: #eee;
		-webkit-border-bottom-right-radius: 1em;
		-webkit-border-bottom-left-radius: 1em;
		-moz-border-radius-bottomright: 1em;
		-moz-border-radius-bottomleft: 1em;
		border-bottom-right-radius: 1em;
		border-bottom-left-radius: 1em;
	}
	.contentbox-body > div:first-child > *:first-child {
		margin-top: 0;
	}
	.contentbox-body > div:first-child img { margin-top: 0; }
	.contentbox-body > div:first-child p:first-child { margin-top: 0; }
	
	.contentbox.style2 .contentbox-body { background-color: #E7E7FF; }
	
	/* grids demo */
	.grids .ym-g75 .ym-gbox,
	.grids .ym-g66 .ym-gbox,
	.grids .ym-g25 .ym-gbox,
	.grids .ym-g33 .ym-gbox,
	.grids .ym-g20 .ym-gbox,
	.grids .ym-g50 .ym-gbox { background: rgba(128, 0, 0, .1); border: 1px #800 solid; margin-right: 20px; text-align: center; }
	
	.grids .ym-g75 .ym-gbox p,
	.grids .ym-g66 .ym-gbox p,
	.grids .ym-g25 .ym-gbox p,
	.grids .ym-g33 .ym-gbox p,
	.grids .ym-g20 .ym-gbox p,
	.grids .ym-g50 .ym-gbox p { margin: 0; }

/* !!! */
	/* info images: workaround for width:100% problem in IE7,8 & FF */
	.info DIV.csc-textpic-left .csc-textpic-imagewrap { float: none }
	.info DIV.csc-textpic .csc-textpic-imagewrap FIGURE { display: block }
	.info p { margin-top: 0; }


	.fontsize-infowindow { width: 400px; padding: 1em 2em 2em; }


	noscript > *:first-child {
		margin-top: 0;
		text-align: center;
	}

	#nav .tx-macinasearchbox-pi1 {
		position: absolute;
		right: 0px;
	}

}

/* reset fallback values in modern browsers */
@media screen and ( min-width: 0px ) {

	header,
	nav,
	#main,
	#footer-top,
	#footer-bottom,
	footer {
		min-width: 0;
	}

}


@media screen and ( max-width: 850px) {

	/* suchbox nach oben verschieben */
	#nav .tx-macinasearchbox-pi1 {
		display: none; /* CHANGED (inserted) */
	}

}

@media screen and ( max-width: 760px ) {

	/* Flatten all in footer */
	footer .ym-g33 {
		display: none;
	}
	footer li {
		display: inline;
		white-space: nowrap;
		margin-right: 0.8em;
	}

	/* hide banner at size */
	img.banner { display: none; }

	.secondary {
		border-top: 1px #888 solid;
		margin-top: 1.5em !important;
	}

	#main aside .ym-gbox-right {
		border: 0 none;
	}

	/* Linearisation for Grid- and Column-Module, based on CSS class .linearize-level-1 */
	.linearize-level-1,
	.linearize-level-1 > [class*="ym-g"],
	.linearize-level-1 > [class*="ym-col"] {

/* !!! */
		/*display: table;*/
		/* Zurueck auf display:block wie Original? */
		display: block;

		float: none;
		margin-left: 0;
		margin-right: 0;
		width: 100% !important;
	}

	.linearize-level-1 > [class*="ym-g"] > [class*="ym-gbox"],
	.linearize-level-1 > [class*="ym-col"] > [class*="ym-cbox"] {

		/* overflow:hidden in Original 4.0.2 vorhanden, warum nicht hier? */
		/* overflow: hidden; */ /* optional for containing floats */

		padding: 0;
		border: 0px;
	}

	/* Rechte Spalte ausblenden in linearisierter Darstellung */
	.linearize-level-1 > [class*="ym-col2"] {
		display: none;
	}

	.ym-searchform {
		display:block;
		float: none;
		width: auto;
		text-align: right;
	}

	.ym-searchform input[type="search"] {
		width: 14%;
	}
	
	
	.linearize-form [class*="ym-fbox"]:not([class*="ym-fbox-check"]) label,
	.linearize-form .ym-label,
	.linearize-form .ym-message,
	.linearize-form  input[type="text"],
	.linearize-form  textarea,
	.linearize-form  select {
		display: block;
		float: none;
		position: static !important;
		width:100% !important;
	}

	.linearize-form .ym-message,
	.linearize-form  .ym-fbox-check input {
		margin-left: 0 !important;		
	}
	
	/* suchbox nach oben verschieben */
	#nav .tx-macinasearchbox-pi1 {
		display: none; /* CHANGED (inserted) */
		position: absolute;
		top: 30px;
		right: 0px;
	}
	
}

@media screen and ( max-width: 480px) {

	aside,
	#headernav,
	.ym-col1,
	#nav-main,
	.selectfontsize {
		display: none !important;
	}
	
	#nav-mobile {
		display: block;
	}
	
	header .ym-wbox {
		padding: 0.75em 10px;
	}

	footer .ym-wbox,
	#footer-top .ym-wbox,
	#footer-bottom .ym-wbox,
	.ym-wbox,
	.ym-searchform,
	nav .ym-hlist ul {
		padding-left: 10px;
		padding-right: 10px;
	}

	header h1 {
		font-size: 1.5em;
		line-height: 1em;
		margin: 0;
	}
	
	/* center logo */
	img.logo { margin: 0 auto; margin-top: 20px; width: 25%; }
	
	/* Suchbox oben an den Rand setzen */
	#nav .tx-macinasearchbox-pi1 {
		display: none; /* CHANGED (inserted) */
		top: 5px;
	}

	/* Linearisation for Grid- and Column-Module, based on CSS class .linearize-level-2 */
	.linearize-level-2,
	.linearize-level-2 > [class*="ym-g"],
	.linearize-level-2 > [class*="ym-col"] {
		display: table;
		float: none;
		margin-left: 0;
		margin-right: 0;
		width: 100% !important;
	}

	.linearize-level-2 > [class*="ym-g"] > [class*="ym-gbox"],
	.linearize-level-2 > [class*="ym-col"] > [class*="ym-cbox"] {
		padding: 0;
	}

	nav .ym-hlist ul,
	nav .ym-hlist li {
		display:block;
		float: none;
		width: auto;
		text-align: left;
	}
	
	/* Umfließenden Text in der Smartphone-Ansicht abschalten */
	div.csc-textpic-intext-left-nowrap .csc-textpic-text {	margin-left: 0; }
	div.csc-textpic-intext-left-nowrap .csc-textpic-imagewrap { float: none }
	
	
	/* Flexslider */
	.flexslider p.captiontitle {
		font-size: 1.2em !important;
	}
	.flexslider .caption { display: none; }
	
}


