/**
 * "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;
        margin: 0;
        padding:0;
        background: #333;
        }

	/* Layout Module Configuration */
	.ym-wrapper {
		overflow: hidden;
        margin: 0 auto;
        display: inline-block;
}
	}
	.ym-wrapper2 {
		max-width: 960px;
        margin-left:240px;
        overflow: visible;
	}
	.ym-wbox {
		padding: 0;
        margin: 0;
        background: transparent;
	}
    .con25{width:25%; float:left;}
    .con33{width:33.333%; float:left;}
    .con66{width:66.333%; float:left;}
	/* fallback for media queries */

    #slider {
        position: fixed;
        z-index: 0;
        width: 100%;
        top:0px;
    }
    #main {clear: both;}
	/* Basic Element Styling */
	header {
		color: #444;
        z-index: 2;
        position: relative;
        display: inline;
	}
    .headerbg {
        margin: 50px 0 0 50px;
        display: inline-block;
    }
	header h1 {
		background: transparent;
		color: #fff;
	}

    #logohead {background:#fff; width:180px; height:180px; text-align: center; box-sizing: border-box; line-height: 0em;}

    #headerservice {
        display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
        display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
        display: -ms-flexbox;      /* TWEENER - IE 10 */
        display: -webkit-flex;     /* NEW - Chrome */
        display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
        
        -webkit-box-orient: horizontal;
        -moz-box-orient: horizontal;
        -webkit-box-direction: normal;
        -moz-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;   
        box-sizing: border-box;
        background: transparent;
    }
    .ym-upper {
        background:transparent;
        padding:2em 0em;
    
    }
	#content-below-menu {
	   padding:0.7em 2em;
       background:#fff;
       
       }

	.rootline {
		float: left;
	}
	
	.ym-col1 nav {

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

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

	footer {
		color: #444;
 
	}

	footer p {
		margin: 0;
	}

	
    
    header .ym-wbox,
	footer .ym-wbox {
		position: relative;
		overflow: hidden;
	}
    footer .ym-wbox {
        background: transparent;
        color:#fff;
    }
     header .ym-wbox{
        background: transparent;
        display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
        display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
        display: -ms-flexbox;      /* TWEENER - IE 10 */
        display: -webkit-flex;     /* NEW - Chrome */
        display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
        
        -webkit-box-orient: horizontal;
        -moz-box-orient: horizontal;
        -webkit-box-direction: normal;
        -moz-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        float: left;

	}
	footer .ym-wbox {
		padding: 2.5em;
	}    
    
    #copyright {float:left}
    #drucken {float:right}

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

	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;
	}
	
	#submenu {display: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 { }
	#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: 2em; background: #f5f5f5; }
	
	/* 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: #444444;
    /*
		-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%; padding:0.7em 0.5em; }
	
	.contentbox-body { overflow: hidden; padding: 0.7em; background: #eee; color: #333;
		/*
    -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 {
	}
    #back-to-top {  
    position:fixed; /* Wichtig! */  
    top:0;  
    right:0px;  
    cursor:pointer;  
    color:white;  
    display:none; 
    width:100%;
    background:#000; 
    opacity: 0.7;
    filter:alpha(opacity=70);
    -webkit-opacity: 0.7;
    -moz-opacity: 0.7;
    -opera-opacity: 0.7;
    text-align: center;
    z-index: 10;
    padding: 0.7em 0;
    } 
    #back-to-top .text{padding:22px 0 0 0; font-size:80%;}
	
}
/* entfernt chrome outline */
*:focus {
    outline: none;
}

.nohighlight:focus {
    outline: none;
}

.changeborder:focus {
    outline: Blue Solid 4px;
}
/* reset fallback values in modern browsers */
@media screen and ( min-width: 0px ) {

	#main
	   {
        position: relative;
        z-index: 2;
        margin:0 50px 0 240px ;
        max-width: 960px;
	}

}


@media screen and ( max-width: 850px ) {
    
    	#main
	   {
        position: relative;
        z-index: 2;
        margin:0 50px 0 50px ;
        max-width: 960px;
	}
	
    .floatbox {padding:1em 2em} 
    .flex-direction-nav {display:none;}
    .secondary {
		border-top: 1px #888 solid;
		margin-top: 1.5em !important;
	}

	#main aside .ym-gbox-right {
		border: 0 none;
	}
    .ym-cbox-left{
        display: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: 0em;
		border: 0px;
	}
    #nav .tx-macinasearchbox-pi1 {text-align: center; margin: 0 auto;}
	.ym-searchform {
        margin: 0 auto;
        position: relative;
        padding:0;
	}

	.ym-searchform input[type="search"] {
		width: 100%;
	}
	.ym-searchform .ym-form div .ym-fbox-text {padding:0em;}
	.ym-searchform div.ym-fbox-text {text-align: center; margin: 0 auto;}
    
	.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: 560px) {
    #slider {
        position: static;
        }
    
    .ym-wrapper  {
        display:block;
    }
    #main
	   {
        position: relative;
        z-index: 2;
        margin:0 10px;
        max-width: 960px;
	}
     header .ym-wbox{
        background: transparent;
        display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
        display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
        display: -ms-flexbox;      /* TWEENER - IE 10 */
        display: -webkit-flex;     /* NEW - Chrome */
        display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
        
        -webkit-box-orient: horizontal;
        -moz-box-orient: horizontal;
        -webkit-box-direction: normal;
        -moz-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        float: none;
        display: block;

	}
    #headerservice {
        text-align: center;
        padding-top: 0.5em;
    }     
    .headerbg {
        margin: 0px;
        display: inline;
        text-align: center;
    }
    #headernav {
        width: 100%;
    }
    #logo img{
        width: 50%;
        height:auto;
    }    
    #logo {width: 100%; background: #fff;}
    .floatbox {padding:0em 1em} 
	
    h1, h2 {font-size:150%;}

    
    #tx_indexedsearch_word {width:40%;}
    #mdh_kampagne img{float:none}
    
    .ym-upper {padding: 2em 0.5em;}
   	footer .ym-wbox {
		padding: 1em 0.5em;
	}
    .con33 {width:100%} 

    #headernav .headerpadding {padding:0.5em 1em;}

	#nav-mobile {
		display: block;
	}

    .ym-hlist {width:100%;}


	header h1 {
		font-size: 1.5em;
		line-height: 1em;
		margin: 0;
	}
	
	/* center logo */
	img.logo { margin: 0 auto; width: 50%;}
	

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

	
	/* 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 }
   
    
    fieldset.tx-powermail-pi1_fieldset input.powermail_submit {
        margin-left:0px;}
    
    fieldset.tx-powermail-pi1_fieldset input.powermail_text,
    fieldset.tx-powermail-pi1_fieldset textarea.powermail_textarea,
    fieldset.tx-powermail-pi1_fieldset select.powermail_select
     {
    	/* Input and textarea */
    	width:90%;
    }
    fieldset.tx-powermail-pi1_fieldset div.tx_powermail_pi1_fieldwrap_html_select select.powermail_select {
    	width:90%;
    	}    
    #headernav a {    
        color:#fff;
        white-space: nowrap;
        text-transform: uppercase;
        font-size:120%;
        background: #444;
        display: block;
        padding:0.3em 1em;
    }
    .menuLink {
        margin: 0;
        padding:0em;
        border-bottom:1px solid #333;
    }
    #headerservice {
        text-align: center;
        padding-top: 1px;
    }
    .headernavhold {
        padding-top:0px;
    }
    #logohead {width:100%;height:100%;}
}


