/**
 * "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;
	}

	/* Layout Module Configuration */
	.ym-wrapper {
		max-width: 80em;
		margin: 0 auto;
		overflow: hidden;
	}

	.ym-wbox {
		padding: 0 1.5em 1.5em;
	}

	/* fallback for media queries */
	header,
	#main,
	footer {
		min-width: 760px;
	}

	/* Basic Element Styling */
	header {
		background: #444;
		color: #ccc;
	}

	header h1 {
		background: transparent;
		color: #fff;
	}
	
	#headernav {
		top: 6px;
		position: absolute;
		font-size: 0.9em;
		color: #fff;
		text-align: left;
		right: 1.6em;
		min-width: 40px;
	}

	#nav {
		background: #222222;
	}
	
	#main { min-height: 300px; }
	
	#main nav {
		background: transparent;
	}
	
	.rootline {
		float: left;
	}
	
	.ym-col1 nav {
		margin-top: 1.5em;
	}
	
	.language-menu {
		float: right;
		width: auto;
		min-width: 40px;
	}

	#main .info {
		margin-bottom: 1.5em;
	}

	footer {
		background: #eee;
		color: #444;
	}

	footer p {
		margin: 0;
	}

	header .ym-wbox,
	footer .ym-wbox {
		padding: 1.5em;
		position: relative;
		overflow: hidden;
	}

	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; }

	aside .ym-cbox-right {
		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; }
	
	img.banner { float: right; margin-top: 0.4em; }
	
	/* 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 {
		float: right;
	}
	
}

/* reset fallback values in modern browsers */
@media screen and ( min-width: 0px ) {

	header,
	nav,
	#main,
	footer {
		min-width: 0;
	}

}


@media screen and ( max-width: 850px) {
	
	/* hide banner at size */
	img.banner { display: none; }
	
}

@media screen and ( max-width: 760px ) {

	.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;
		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"] {
		padding: 0;
		border: 0px;
	}

	.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 {
		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,
	.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; width: 50%; }
	
	/* Suchbox oben an den Rand setzen */
	#nav .tx-macinasearchbox-pi1 { 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; }
	
}


