/**
 * "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;
	}
	
  /* Styling of Tip | Hinweis Formular */
  .ym-form div.hinweis {
	padding-left: 1em;
	font-size: .8em;
	color: #666;
	padding-top: 0.7em;
	padding-bottom: 0.7em;
  }

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

	/* Basic Element Styling */
	header .ym-wrapper {	}
	
	header {
		background-color: transparent;
		background-image: url(../../img/layout/page_bg.gif);
		background-repeat: repeat-x;
		background-position: left 21px;
		color: #ccc;/*border:1px solid #f00;*/
	}

	header h1 {
		background: transparent;
		color: #fff;
	}
	
	header .tx-macinasearchbox-pi1 {
		margin-top: -5.2em;
		margin-right: -1.5em;
	}
	
	#headernav {
		top: 6px;
		position: absolute;
		font-size: 0.9em;
		color: #fff;
		text-align: left;
		right: 18px;
		min-width: 40px;
	}

	#nav {
		background: rgb(90,139,188); /* Old browsers */
		background: -moz-linear-gradient(top,  rgba(90,139,188,1) 0%, rgba(197,214,231,1) 100%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(90,139,188,1)), color-stop(100%,rgba(197,214,231,1))); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(top,  rgba(90,139,188,1) 0%,rgba(197,214,231,1) 100%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(top,  rgba(90,139,188,1) 0%,rgba(197,214,231,1) 100%); /* Opera 11.10+ */
		background: -ms-linear-gradient(top,  rgba(90,139,188,1) 0%,rgba(197,214,231,1) 100%); /* IE10+ */
		background: linear-gradient(to bottom,  rgba(90,139,188,1) 0%,rgba(197,214,231,1) 100%); /* W3C */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5a8bbc', endColorstr='#c5d6e7',GradientType=0 ); /* IE6-9 */
		
	}
	
	#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 {
	color: #444;
	/*background-color: #EDF2F8;*/
	}
	
	#footernav {
		margin-top:0.8em;
	}

	footer p {
		margin: 0;
	}

	header .ym-wbox,
	footer .ym-wbox {
		padding: 1.5em;
		position: relative;
	}

	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; }
	
	/* Slider Seite id 444 */
	#b_slider section.box,
	#help section.box { 
		padding: 0; 
		max-width:80em;
	}


	aside .ym-cbox-right {
		border-left: 1px #ddd solid;
	}
	
	/* Rootline */
	.rootline {
		padding: 0.5em 1.5em;
		line-height: 2em;
		color:#888888;
		font-size:85.71%;
	}
	.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 { display: block; }
	#projectdate {  }
	
	img.banner { position: absolute; top: 170px; right: 420px; max-width:45%; max-height:45%; }
	
	
	/**
	 *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; }
	
	/* Slider Seite id 444 */
	#b_slider .ym-lower,
	#help .ym-lower {
		/*background-color:#427dc0;*/
		color:#fff;
		font-size:90%;
	}

	/* Layout u */
	.layout-u .ym-upper > .ym-cbox { padding: 0; }
	
	/* Box */
	.contentbox-head { 
		background: #4397d3;
		-webkit-border-top-left-radius: 0.8em;
		-webkit-border-top-right-radius: 0.8em;
		-moz-border-radius-topleft: 0.8em;
		-moz-border-radius-topright: 0.8em;
		border-top-left-radius: 0.8em;
		border-top-right-radius: 0.8em;
	}
	.contentbox-head h4 { color: #fff; line-height: 150%; size: 11%; padding: 0 0.8em; }
	
	.contentbox-body { overflow: hidden; padding: 0.7em; background: #eee;
		-webkit-border-bottom-right-radius: 0.8em;
		-webkit-border-bottom-left-radius: 0.8em;
		-moz-border-radius-bottomright: 0.8em;
		-moz-border-radius-bottomleft: 0.8em;
		border-bottom-right-radius: 0.8em;
		border-bottom-left-radius: 0.8em;
	}
	.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;
	}
	
	/*WS-Menü*/
	.ws-menu { min-width:980px;}
	
	/*Books*/
	div #c1333 {
		background-color: #f3f3f3;
		margin-bottom: 2em;
	}
	
}

/* 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) and (orientation: portrait){
	
	/* hide banner at size */
	img.banner { position: absolute; top: 175px; right: 280px; max-width:40%; max-height:40%; }
	
}
@media screen and ( max-width: 1024px) and (orientation: landscape){
	
	/* hide banner at size */
	img.banner { position: absolute; top: 175px; right: 350px; max-width:40%; max-height:40%; }
	
}


@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%;
	}
	
	/* Suchfeld auf maximale Breite ziehen */
	#nav .tx-macinasearchbox-pi1 {
		width: 100%;
		float: none;
	}
	
	.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;		
	}
	
}

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

	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; }
	
	
	img.banner { display:none; }

	/* 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;
	}

	.ym-searchform,
	nav .ym-hlist ul,
	nav .ym-hlist li {
		display:block;
		float: none;
		width: auto;
		text-align: left;
	}

	.ym-searchform input[type="search"] {
		width: 75%;
	}
	.ym-searchform{ display:none;}
	
	
	/* 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 p.captiontitle {
		font-size: 1.2em !important;
	}
	.flexslider .caption { display: none; }
	
	
	/*Tabelle Kursauswahl Bildgröße anpassen */
	.auswahl img { max-width:56px;}

	/*Tabelle Kursauswahl Bildgröße anpassen */
	.kursauswahl img { max-width:64px;}
	
	/*Tabelle SKS Tabellenbreite anpassen */
	table.contenttable.sks {
		width:90%;		
	}
	table.contenttable.sks td.td-0{
		width: 20%;
	}
	table.contenttable.sks td.td-1{
		width: auto;
	}
	table.contenttable.sks td.td-2{
		width: 20%;
	}
	
	/*Tabelle Kurspreise Tabellenbreite anpassen */
	table.contenttable.kurspreise {
		width:90%;		
	}
	table.contenttable.kurspreise .td-0 {
		width: 50%;
	}
	table.contenttable.kurspreise .td-1 {
		width: 20%;
	}

	.tx_drblob_list table { width:90%;}
	
	p { width:97%;}
}
	
@media screen and ( max-height: 480px) and (orientation: landscape) {

	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;
	}
	
	footer .ym-wbox{
		padding-top:0;
		margin-top:0;
	}
	

	header h1 {
		font-size: 1.5em;
		line-height: 1em;
		margin: 0;
	}
	
	/* center logo */
	img.logo { margin: 0 auto; }
	
	img.banner { display:none; }
	
	/* 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;
	}

	.ym-searchform,
	nav .ym-hlist ul,
	nav .ym-hlist li {
		display:block;
		float: none;
		width: auto;
		text-align: left;
	}

	.ym-searchform input[type="search"] {
		width: 75%;
	}
	.ym-searchform{ display:none;}
	
	
	/* 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 p.captiontitle {
		font-size: 1.2em !important;
	}
	.flexslider .caption { display: none; }
	
	/*Tabelle Kursauswahl Bildgröße anpassen */
	.kursauswahl img { max-width:96px;}
	
	/*Tabelle SKS Tabellenbreite anpassen */
	table.contenttable.sks {
		width:90%;		
	}
	table.contenttable.sks td.td-0{
		width: 20%;
	}
	table.contenttable.sks td.td-1{
		width: auto;
	}
	table.contenttable.sks td.td-2{
		width: 20%;
	}
	
	
		
}


