/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    /*font-size: 1em;*/
	font-size: 62.5%; /*10px*/
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


body { 
	font-family: 'Roboto', sans-serif;
	font-weight: 300;
	color: #505850;
	background-color: #F5F5F5; 
	/*background-image: url(../img/hg_site.png);*/
	background-image: url(../img/hg_top_2.jpg);
	background-repeat: repeat-x;
	margin-bottom: 0px;	
}

b, strong {
	font-weight: bold;	
}

a {
	color: #505850;
		
}

a:hover {
	
	color: #FF9226;
	
}

/*
body:before {
	background-image: url(../img/hg_top_2.jpg);
	background-repeat: repeat-x;
	content: '';
	position:absolute;
	top:0px;
	height: 388px; 
	width: 100%;
}
*/

/*TYPO3 - Styles */


img, embed, object, video {
  max-width: 100%;
  height: auto;
  width: auto;
}

.csc-default {
	margin:0px;
	padding:0px;	
}

DIV.csc-textpic-above DIV.csc-textpic-imagewrap,
DIV.csc-textpic-below DIV.csc-textpic-imagewrap,
DIV.csc-textpic DIV.csc-textpic-imagewrap UL LI,
DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image {
	float: none;
}

.csc-textpic-caption {
	font-size: 0.8em;	
}


DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap, DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap {
    margin-right: 3.571428571428571% !important; /* 20 / 560 */  
	
}

DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap, DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap {
    margin-left: 3.571428571428571% !important; /* 20 / 560 */
}


.csc-sitemap a {
	text-decoration: none;
	
}

.csc-sitemap a:hover {
	text-decoration: underline;	
}

DIV.csc-textpic-border DIV.csc-textpic-imagewrap .csc-textpic-image IMG, DIV.csc-textpic-border DIV.csc-textpic-single-image IMG {
    border: 1px solid #ACB5AC;
    padding: 0;
}

/*--------*/

section { 
	
	margin:0px;
	padding:0px;
	margin-bottom:40px;	
}




#container, #container2 {
	/*background-color:#C30;*/
	font-size: 1.6em; /*16px*/
	position: relative;
	margin: 0 auto;
	padding: 30px;
	max-width: 900px;
	
	
	/*
	max-width: 960px;
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	*/

}

#container2 {
	/*background-color: #F0F;*/
	padding-top:0px;
}

h1 {
	font-size: 1.429em;	/*20px*/
	font-weight: 500;
	/*color: #FF9226;*/ 
}

header {
	
	width: /*900px*/;
	width: 100%;
	margin:0%;
	
}

#logo {
	display: block;
	width: 214px;
	height: 76px;
	float: left;
	padding-left: 30px;
	padding-top:30px;
	padding-bottom: 30px;	
}

#logoSmall {
	display: none;
	width: 187px;
	height: 68px;
	float: left;
	padding-left: 30px;
	padding-top:30px;
	padding-bottom: 30px;
	
	
}

nav {
	
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 400;
		
}

ul#mainNav {
	
	margin: 0%;
	padding:0%;
	float: right;
	padding-right: 3.3333333333333335%; /* 30 / 900 */
	padding-top:40px;
	padding-bottom: 40px;
}

ul#mainNav li {
	
	float: left;
	
		
}

ul#mainNav li a {
	font-size: 1.125em; /*18px*/
	font-weight: 500;
	display: block;
	padding-right: 22px;
	padding-left: 22px;
	padding-top: 18px;
	padding-bottom: 18px;
	border-right: 1px solid #FFFFFF;
	color: #FFF;
	text-decoration: none;
}

ul#mainNav li a:hover {
	background-color:#999;
}


ul#mainNav li.last-child a {
	border-right: 0px solid #FFFFFF;
	/*padding-right: 0px;*/	
}

ul#mainNav li a.active {
	color: #FF9226;
}

#topImage {
	clear:both;
	-webkit-box-shadow:  0px 2px 8px 1px rgba(20, 20, 20, 0.15);
    box-shadow:  0px 2px 8px 1px rgba(20, 20, 20, 0.15);
	
}

#topImage img {
 	
	max-width: 100%;
	height: auto;
	
}



#content {
	/*background-color:#6FC;*/
    margin: 0;
	padding-top: 5%; /* 45 / 900 */
	padding-left: 3.3333333333333335%; /* 30 / 900 */
	padding-right: 3.3333333333333335%; /* 30 / 900 */
	width: 93.33333333333333%; /* 840 / 900 */
	
	
	/*
	width: 900px;
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	*/
	
	
}

#content img {
	max-width: 100%;
	height: auto;
}

#content h1.csc-firstHeader {
	/*margin:0px;*/
	/*margin-bottom: 	3.3333333333333335%; *//* 30 / 900 */ 
	margin-top: 0;
}

p.bodytext {
	
		
	
}

#leftCol {
	float: left;
	/*width: 252px;*/
	width: 30%; /* 252 / 840 */
	padding-bottom: 8.333333333333332%; /* 70 / 840 */	
	
}

#rightCol {
	float:right;
	width: 65%; /* 546 / 840 */
	padding-bottom: 8.333333333333332%; /* 70 / 840 */	
}

nav#subNavContainer {
	padding-bottom: 8.333333333333332%; /* 70 / 840 */	
}

nav#subNavContainer h2 {
	margin: 0;
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 400;
	color: #ACB5AC;	
}

nav#subNavContainer h2 a {
	color: #ACB5AC;
	text-decoration: none;	
}

ul#subNav  {
	
	margin: 0;
	padding:0;
	margin-top: 10px;
	
	
}


ul#subNav li a {
	display: block;
	border-top-color: #ACB5AC;
	border-top-width: 1px;
	border-top-style: dotted;
	background-image: url(../img/subnav_normal.png);
	background-position: 8px center;
	background-repeat: no-repeat;
	padding-left: 23px;
	padding-top: 10px;
	padding-bottom: 10px;
	color: #505850;
	text-decoration: none;
}

ul#subNav li a:hover {
	background-color:#DDD;
}


ul#subNav li a.active {
	color: #FF9226;
	background-image: url(../img/subnav_active.png);	
}

ul#subNav li:last-child a {
	
	border-bottom-color: #ACB5AC;
	border-bottom-width: 1px;
	border-bottom-style: dotted;
}


/*dritte Ebene */

ul#subNav ul  {
	margin: 0px;
	padding: 0px;
}

ul#subNav ul li a {
	
	padding-top: 5px;
	padding-bottom: 5px;
	font-size: 0.8em;
	padding-left: 40px;
	background-position: 20px center;
	
}

ul#subNav ul li.last-child a {
	border-bottom: none;
}


section#mainTeaser {
	margin-top: 4.761904761904762%; /* 40 / 840 */	
}

.teaser {
	font-size: 0.875em; /*14px*/
	width: 30%; /* 252 / 840 */
	margin-right: 5%; /* 42 / 840 */
	margin-bottom: 4.761904761904762%; /* 40 / 840 */
	float: left;
	background-color: #EEEEEE;
	background-color: #FFFFFF;
	-webkit-box-shadow: 0px 2px 8px 1px rgba(153, 153, 153, 0.29);
	box-shadow: 0px 2px 8px 1px rgba(153, 153, 153, 0.29);
}

.teaser:nth-of-type(3), .teaser:nth-of-type(6){
	margin-right: 0px;
}

.teaser:nth-of-type(4) {
	margin-right: 5%;
}


/* IE nth */
#mainTeaser>div + div + div,
#mainTeaser>div + div + div + div + div + div  
{ 
 
	margin-right: 0px;
}

#mainTeaser>div + div + div + div {
	margin-right: 5%;
}

.teaser img {
	border-bottom: 3px solid #ACB5AC;
	/*border-bottom: 3px solid #FF9226;*/

}

.teaser h2 {
	font-size: 1.143em; /*16px*/
	margin: 0px;
	padding: 0px;
	padding-left: 15px;
	padding-right: 15px;
	padding-top: 20px;
	padding-bottom: 15px;
	color: #FF9226;	
	font-family: 'Roboto Condensed', sans-serif;
	font-weight: 400;
	
}

.teaser h2 a {
	color: #FF9226;
	text-decoration: none;
}

.teaser p {
	
	margin: 0px;
	padding: 0px;
	padding-left: 15px;
	padding-right: 15px;
	padding-bottom: 25px;
	
}

.teaser p a {
	text-decoration: none;
}


footer {
	background-image: url(../img/hg_footer.jpg);
	background-repeat: repeat-x;
	height: 140px;
	color: #FFF;
	padding-top: 40px;
	
}

footer a {
	color: #FFF;
}

#copyrightContainer {
	
	float: left;
	font-size: 0.750em /*12px*/;
	
	
}

#copyright {
	padding-bottom: 15px;	
}

ul#bottomNav {
	margin: 0px;
	float: right;	
}

ul#bottomNav li {
	float: left;	
}

ul#bottomNav li a {
	display:block;
	padding-right: 5px;
	padding-left: 5px;
	border-right: 1px solid #FFFFFF;
	color: #FFF;
	font-size: 1em /*16px*/;
	font-weight: 500;
	text-decoration: none;
}

ul#bottomNav li.last-child a {
	border-right: 0px solid #FFFFFF;
	padding-right: 0px;	
}



/*Extensions*/
/*Mailform*/
fieldset label {
	clear: both;
	display: block;
	width: 	35%; /* 150 / 546 */
	margin-bottom: 1.8315018315018317%; /* 10 / 546 */
	float: left;
}

fieldset input, fieldset email, fieldset textarea, fieldset select {
	display: block;	
	float: left;
	width: 45%; /* 250 / 546 */
	margin-bottom: 1.8315018315018317%; /* 10 / 546 */
}

fieldset p {
	clear:both;
	padding-left: 	35%; /* 150 / 546 */
	
}

fieldset p img {margin-top: 3.8315018315018317%; /* 10 / 546 */}

fieldset p.pflichtfeldText {padding-left: 	0;padding-top: 15px;color:#FF9226;font-size:0.8em;}

fieldset input.button {
	clear:both;
	margin-left: 	0; /* 150 / 546 */
	margin-top: 3.8315018315018317%; /* 10 / 546 */
	width: 150px; 
}

label[for=captcha] {
	font-size: 1em;	
}

.button {
	-moz-box-shadow:inset 0px 1px 0px 0px #fce2c1;
	-webkit-box-shadow:inset 0px 1px 0px 0px #fce2c1;
	box-shadow:inset 0px 1px 0px 0px #fce2c1;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ffc477), color-stop(1, #fb9e25) );
	background:-moz-linear-gradient( center top, #ffc477 5%, #fb9e25 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffc477', endColorstr='#fb9e25');
	background-color:#ffc477;
	-moz-border-radius:6px;
	-webkit-border-radius:6px;
	border-radius:6px;
	border:1px solid #eeb44f;
	display:inline-block;
	color:#ffffff;
	font-size:15px;
	font-weight:bold;
	padding:6px 24px;
	text-decoration:none;
	text-shadow:1px 1px 0px #cc9f52;
}.button:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #fb9e25), color-stop(1, #ffc477) );
	background:-moz-linear-gradient( center top, #fb9e25 5%, #ffc477 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fb9e25', endColorstr='#ffc477');
	background-color:#fb9e25;
}.button:active {
	position:relative;
	top:1px;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

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

@media screen and (max-width:870px) {
	
	#container, #container2 {
		/*background-color:#C30;*/
	  font-size: 1.5em; /*16px*/
	}
	
	
	ul#mainNav li a {
	  
	  font-weight: 500;
	 
	  padding-right: 16px;
	  padding-left: 16px;
	  padding-top: 14px;
	  padding-bottom: 14px;
	 
	}
	
	ul#mainNav {
	
	 
	}	
	
	#logo {
		display: none;	
	}
	
	#logoSmall {
		display: block;	
	}
	
	
}

@media screen and (max-width:765px) {
	
	body {
		
		background-position:left -60px;
	}
	
	footer {
		height: 270px;	
	}
	
	#logoSmall {
		float: none;
		padding-left: 15px;
		padding-top: 0px;
		padding-bottom: 10px;	
	}
	
	ul#mainNav {
	 
	  float:none;
	  padding-right: 3.3333333333333335%; /* 30 / 900 */
	  padding-top:10px;
	  padding-bottom: 20px;
	 
	}	
	
	.teaser {
		width: 46.666666666666664%; /* 392 / 840 */
	}
	.teaser:nth-of-type(2),
	.teaser:nth-of-type(4),
	.teaser:nth-of-type(6){
		margin-right: 0px;
	}
	.teaser:nth-of-type(3), .teaser:nth-of-type(5), .teaser:nth-of-type(7){
		margin-right: 5%; /* 56 / 840 */
	}
	#mainTeaser>div + div + div, #mainTeaser>div + div + div + div + div {
		
		margin-right: 5%; /* 56 / 840 */
		
	}
	#mainTeaser>div + div + div + div, #mainTeaser>div + div + div + div + div + div {
		margin-right: 0px;
	}
	
	nav#subNavContainer h2 {
		font-size: 1.25em;	
	}
	
	DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap {
    	float: none;
		
	}
	
	DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap, DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap {
    	margin-left: 0 !important; /* 20 / 560 */
	}
	
	DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap {
    	float: none;
	}
	
	DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap, DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap {
    	margin-right: 0 !important; /* 20 / 560 */  
	
	}
	
	fieldset label {
	  clear: both;
	  display: block;
	  width: 	40%; /* 150 / 546 */
	}
	
	fieldset input, fieldset textarea {
	
		
		
	}
	
	fieldset p {
	
		padding-left: 	40%; /* 150 / 546 */
	
	}
	
	
	
}



@media screen and (max-width:540px) {
	
	body {
		
		background-position:left -100px;
	}
	
	#container, #container2 {
		padding-left: 20px;
		padding-right: 20px;
		padding-top: 20px;	
	}
	
	#logoSmall {
		width: 100%;
		padding-left: 0px;
		padding-right: 0px;
		text-align: center;	
	}
	
	#topImage {
		display: none;	
	}
	
	ul#mainNav li {
	
	  float: none;
		
	}
	
	ul#mainNav li a {
	  font-size: 1.125em; /*18px*/
	  font-weight: 500;
	  display: block;
	  padding-right: 22px;
	  padding-left: 22px;
	  padding-top: 5px;
	  padding-bottom: 5px;
	  border-right: none;
	  border-bottom: 1px solid #575A57;
	  color: #FFF;
	  text-decoration: none;
	  text-align: center;
	}
	
	ul#mainNav li:first-child a {
		border-top: 1px solid #575A57;
	}
	
	
	ul#mainNav {
	
		padding-bottom: 40px;
		
	}
	
	#leftCol {
	  float: none;
	  /*width: 252px;*/
	  width: 100%; /* 252 / 840 */
	  padding-bottom: 0;
	
	}

	#rightCol {
	  float:none;
	  width: 100%; /* 546 / 840 */
	  padding-bottom: 8.333333333333332%; /* 70 / 840 */	
	}
	
	
	.teaser {
		width: 100%; 
	}
	
	.teaser img {
		
		width: 100%;
			
	}
	
	
	
	
	#copyrightContainer {
	
	  float: none;
	  display: block;
	  text-align: center;
	  padding: 0px;
	
	
	}

	#bottomNavContainer {
		display: block;
		text-align: center;
			
	}
	
	ul#bottomNav {
	  float: none;
	 
	  padding-bottom: 40px;
	}
	
	ul#bottomNav li.last-child a {
		
		padding-right: 5px;	
	}
	
	
	fieldset label {
	  width: 	100%; /* 150 / 546 */
	  margin-bottom: 1.8315018315018317%; /* 10 / 546 */
	  float: none;
	}
	
	fieldset input, fieldset email, fieldset textarea, fieldset select {
		float: none;
		width: 100%; /* 250 / 546 */
		margin-bottom: 1.8315018315018317%; /* 10 / 546 */
	}
	
	fieldset p {
		padding-left: 0;	
	}
	
	
}

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


@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
