/*
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;
	
    float: right;
	
    width: 202px;
}

#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;
	
    background: #fff;
	
    border: none;
	
    padding: 10px;
	
    margin-right: 100px;
}

.bild {
    width: 45.83333%;   /* 550px : 1200px = 45.83333% */
}

footer {
    width: 100%;
	
    background: #91C90D;
	
    font-size: 0.8em;
	
    padding: 5px;
}

/* Hauptmenü 
********************************/

#hauptnavigation ul {
	margin: 5px 0;
	
	list-style: none;
}

#hauptnavigation ul li {
	margin-left: 0;
	
	padding-bottom: 5px;
}

#hauptnavigation ul li 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;
}

#hauptnavigation  ul ul {
	margin-left: 18px;
}

/* Breadcrumb
********************************/

#breadcrumb {
	font-size: 0.8em;
	
	line-height: 1em;
	
	margin-bottom: 3px;
}

#breadcrumb a {
	text-decoration: underline;
	
	color: #115050;
}

#breadcrumb a:link, #breadcrumb a:visited {

}

#breadcrumb a:hover, #breadcrumb a:active, #breadcrumb a:focus {

}

/* Formatierung der Inhalte
********************************/

H1 {
	font-size: 4vw; /* flüssige Schriftgröße */
	
	color: #fff;
	
	text-transform: uppercase;
	
	padding-left: 5px;
}

H2 {
    font-size: 2vw;  /* flüssige Schriftgröße */
	padding-left: 10px;
}

#content H3 {
	font-family: Georgia;
	
	font-size: 1.4em;
	
	line-height: 1.8em;
	
	margin: 0 0 15px 0;
}

aside H4 {
	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;
}

ul {
	list-style: disc;
	
	margin-left: 0px;
}

li { 
	margin-left: 20px;
}

#content .quelle {
	font-size: 0.6em;
	
	margin-left: 320px;
	
	line-height: 1em;
}

/* Bilder
****************************/

#content img {
	border: solid #115050 2px;
	
	max-width: 100%;	/* skalierbare Bilder */
}

/* Links- bzw. Rechsausrichtung für z.B. Bilder */

.links {
	float: left;
	
	margin: 0 5px 0 0;
}

.rechts {
	float: right;
	
	margin: 0 0 0 5px;
}

figure {
	background: #91C90D;
}

figcaption {
	font-size: 0.7em;
	
	line-height: 1.4em;
	
	color: #fff;
	
	font-weight: bold;
	
	padding: 2px;
}

/* 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%;
    }
	
	header  {
        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 */
	}
	
	H1 {
        font-size: 1.4em;   /* Mindest-Schriftgröße */
	}

	H2 {
        font-size: 1em;     /* Mindest-Schriftgröße */
	}
}



































