/*
Projekt: responsive Layout-Vorlage
Kurs: Grundlagen der Web-Programmierung

Farbschema:
#115050 dunkelgrün
#91C90D matt grün
#C9A40D orange
*/

/* Scollbalken immer zu sehen  */
html {
     height: 101%;
}

/* Normalisieren: alle Abstände auf 0 setzen */
* {
        margin: 0;
        padding: 0;
}

/* Aufheben des Umflusses */
.stopFloat {
     border: 0;
     clear: both;
     float: none;
     font-size: 0;
     height: 0;
     line-height: 0;
     margin: 0;
     padding: 0;
     visibility: hidden;
}

/* Box-Model: padding nach Innen  */
#all, #wrapper, #header, #wrapper, #hauptnavigation, #content, aside, footer {
-moz-box-sizing: border-box;         /* IE */
-webkit-box-sizing: border-box;      /* Firefox/Chrome */
box-sizing: border-box;              /* Standard */
}



/* Positions
************************/
body {
        background: #115050 url(../images/pattern_146.gif);
        color: #115050;
        font-family: verdana, arial, helvetica, sans-serif;
        font-size: 100%;
		-webkit-hyphens: auto;  /* Silbentrennung */
		-moz-hyphens: auto;
		-ms-hyphens: auto;
		hyphens: auto;
		
}

#all {
        max-width: 1200px;  /* max-width statt width */
        margin: 20px auto 20px auto;  /* Zentrierung für moderne Browser */
        background: #fff;
}

header {
        width: 100%;  			/* in Prozent, wie all */
        min-height: 200px;		/* min-height statt height */
        background: #91C90D;
}


header img {
        border: 0;

}

#wrapper {
		width: 100%;		 	/* in Prozent, wie all */
        background:  url(../images/back.gif) 20.83333%  repeat-y;   /* flüssiges Hintergrundbild */
}     

#hauptnavigation {
        width: 20.83333%;  /* 250px : 1200px * 100 = 20.83333 */
        float: left;
        background: #C9A40D;
        padding: 1%;  
}

#content {
        width: 79.16667%; 	/* 950px : 1200px * 100 = 79.16667% */ 
        float: left;
        min-height: 600px;
        background: #fff;
        padding: 2.105263%;  /* 20px : 950px * 100 = 2.105263 */
		
}

aside {
		display: inline;
		width: 200px;   
		float: left;
		font-size: 1em;
		line-height: 1.2em;
		margin-right: 100px;
}

.bild {
		width: 45.83333%;   /* 550px : 1200 = 45.83333% */
		float: left;
}

footer {
        width: 100%;
        background: #91C90D;
        font-size: 0.8em;
        padding: 5px;
}

/* Breadcrumb
******************************/

#breadcrumb {
        font-size: 0.8em;
        line-height: 1em;
        margin-bottom: 3px;
}

#breadcrumb a {
        color:#115050;
        text-decoration: underline;
}

#breadcrumb a:link, #breadcrumb a:visited {

}

#breadcrumb a:hover, #breadcrumb a:active, #breadcrumb a:focus {

}


/* Layout der Inhalte
******************************/
/* Titel */
header h1 {
        font-size: 4vw; /* flüssige Schriftgröße */
        color: #fff;
        text-transform: uppercase;
        padding-left: 5px;
}

header h2 {
        font-size: 2vw;  /* flüssige Schriftgröße */
        padding-left: 10px;
}

header p {
        padding-left: 20px;
}

#content h2 {
        font-family: Georgia;
        font-size: 1.4em;
        line-height: 1.8em;
        margin: 0 0 15px 0;
}

#content h3  {
        font-size: 1em;
        line-height: 1.8em;
        margin: 0 0 15px 0;
}

#content p  {
        font-size: 0.9em;
        line-height: 1.4em;
        margin: 0 0 10px 0;
}

#content aside h2 {
        font-size: 0.8em;
        line-height: 1.4em;
}

#content aside li {
        font-size: 0.8em;
        line-height: 1.2em;
        padding-bottom: 0.5em;
        margin-left: 15px;
}

#content .quelle   {
        font-size: 0.6em;
		margin-left : 320px;
		
        line-height: 1em;
}

#content .legende  {
        margin: 20px 0;
        font-size: 0.8em;
        line-height: 1.2em;
}


/* Hauptnavigation linke Spalte
***********************************/

#hauptnavigation h2 {
        font-size: 1em;
        line-height: 1.5em;
}

#hauptnavigation ul {
        margin: 5px 0;
        list-style: none;
}

#hauptnavigation li {
        margin-left: 0;
        padding-bottom: 5px;
}

#hauptnavigation  a:before,  li#current:before  { content: "> ";}

#hauptnavigation a {
        text-decoration: none;

}

#hauptnavigation a:link, #hauptnavigation a:visited {
        color:#115050;
}

#hauptnavigation a:hover, #hauptnavigation a:active, #hauptnavigation a:focus {
        color: #fff;
}

#current {
        color: #fff;
        font-weight: bold;
}


/* 2. Ebene */

#hauptnavigation ul ul {
  margin: 0 0 0 18px;;
}


/* Links im Fließtext */
 
a:link, a:visited {
    color:#115050;
}

a:hover, a:active, a:focus {
    color:#C9A40D;
}

/* Listen im Fließtext */
ul, ol  {
        list-style: disc; margin-left: 0px;
}

li {
        margin-left: 20px;
}

/* verlinkte Bilder ohne Rahmen */
a img { border: 0; }


img {
    border: solid #115050 2px;
	max-width: 100%;	/* skalierbare Bilder */
}

/* Links- bzw. Rechtsausrichtung für z.B. Bilder */
.links {
        float: left;
        margin: 0 5px 0 0;
        background: #91C90D;
}

.rechts {
        float: right;
        margin: 0 0 0 5px;
        background: #91C90D;
}

figure {
        margin-bottom: 5px;

}

figcaption {
        font-size: 0.7em;
        line-height: 1.4em;
        color: #fff;
        font-weight: bold;
        padding: 2px;
        background: #91C90D;
}


/* Tabellen
*************************************/

#content table {
	border-spacing: 0;
	border-collapse: collapse;
}

#content caption {
        font-weight: bold;
        padding: 20px 0;
}

#content tbody th {
        border-bottom: 1px solid #115050;

}

#content th, td {
        padding: 5px;
}
#content thead th {
        font-weight: normal;
}

#content tbody tr:nth-child(odd) {
        background: #C9A40D;
}

#content tbody tr:first-child {
        background: #fff;
}

#content tfoot tr   {
        font-weight: bold;
}

#content td, th {
        text-align: center;
        font-size: 1em;
        line-height: 1.6em;
}


/* Formular
************************/

legend {
       margin-bottom: 20px;
       font-size: 0.8em;
}

label {
      float: left;
      width: 150px;
      margin: 10px 0;
}

input {
      width: 350px;
      margin: 10px 0;
      padding: 2px;
      font-size: 1.0em;
}

select {
    width: 50px;
    margin: 10px 0;
    font-size: 1.0em;
}

.button {
  width: 150px;
  margin: 10px 0 20px 150px;
  padding: 2px;
  text-transform: uppercase;
  font-weight: bold;
  color: #C9A40D;
  background-color: #115050;
  border: 2px solid #FFF;
}




/* Media Queries
*********************/

@media screen and (max-width: 965px) {


        #hauptnavigation, #content, aside {
        width: 100%;
        }

        h1  {
        display: none;
        }
		
		#wrapper {
        background:  none;   /* Hintergrundbild aufheben */
		}
	
		.bild {
		min-width: 300px;	/* Mindestgröße für Bild */
		}
		
		header {
		min-height: 100px;  /* veränderte Header-Höhe */
		}
		
		header h1 {
        font-size: 1.4em;   /* Mindest-Schriftgröße */
		}

		header h2 {
        font-size: 1em;     /* Mindest-Schriftgröße */
		}
}