@font-face {
  font-family: 'Open Sans';
  font-weight: 400;
  font-style: normal;
  src: url('fonts/Open-Sans-regular/Open-Sans-regular.eot');
  src: url('fonts/Open-Sans-regular/Open-Sans-regular.eot?#iefix') format('embedded-opentype'),
       local('Open Sans'),
       local('Open-Sans-regular'),
       url('fonts/Open-Sans-regular/Open-Sans-regular.woff2') format('woff2'),
       url('fonts/Open-Sans-regular/Open-Sans-regular.woff') format('woff'),
       url('fonts/Open-Sans-regular/Open-Sans-regular.ttf') format('truetype'),
       url('fonts/Open-Sans-regular/Open-Sans-regular.svg#OpenSans') format('svg');
}

body {
	display: -webkit-box;
  	display: -moz-box;
  	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-box-flow: row wrap;
	-moz-box-flow: row wrap;
	-ms-flex-flow: row wrap;	
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;
	margin: 10px auto;
	max-width: 70em;	
	font-family: 'Open Sans', sans-serif;
}

/* Mobile first - alle Dokument-Blöcke bekommen 100% Breite */
		
header,
nav,
nav a,
article,
/*section,*/
aside,
footer {
	border-radius: 0px 0.5em 0.5em;
	border: 1px solid;
	padding: 10px;
	margin: 10px;
	-webkit-box-flex: 1 100%;
  	-moz-box-flex: 1 100%;
  	-webkit-flex: 1 100%;
  	-ms-flex: 1 100%;
  	flex: 1 100%;
}

header {
	background: #6699cc; /*url('images/header.jpg') top right no-repeat;*/
	border-color: #d5d5d5;	
	display: -webkit-flex;
	-webkit-flex-flow: row wrap;
	display: flex;
	flex-flow: row wrap;
	overflow: hidden;
}

#profilbild {
	height: 100%;
	width: auto;
	float: right;
}

header * {
	-webkit-flex: 1 1 0;
	flex: 1 1 0;
	-webkit-box-flex: 1 1 0;
  	-moz-box-flex: 1 1 0;
  	-ms-flex: 1 1 0;
}

header img {
	-webkit-flex: 0 0 1057px;
	flex: 0 0 1057px;
	-webkit-box-flex: 0 0 1057px;
  	-moz-box-flex: 0 0 1057px;
  	-ms-flex: 0 0 1057px;
	margin-left: 10px;
	width: 100%;
}

header nav {
	-webkit-flex: 1 1 100%;
	flex: 1 1 100%;
	-webkit-box-flex: 1 1 100%;
  	-moz-box-flex: 1 1 100%;
  	-ms-flex: 1 1 100%;
	background: #6699cc;
	margin-right: 10px;
	margin-top: 8px;
}

nav,
nav ul,
nav li {
	margin: 0;
	padding: 0;
	border: none;
}

nav ul {
	display: -webkit-box;
	-webkit-box-direction: column;
  	display: -moz-box;
	-moz-box-direction: column;
  	display: -ms-flexbox;
	-ms-flex-direction: column;	
	display: -webkit-flex;
	-webkit-flex-direction: column;
	display: flex;
	flex-direction: column;
}

nav li {
	list-style-type: none;
	margin: 1.3em 0;
	-webkit-box-flex: 1 1 100%;
  	-moz-box-flex: 1 1 100%;
  	-webkit-flex: 1 1 100%;
  	-ms-flex: 1 1 100%;
  	flex: 1 1 100%;
}

nav a {
	display: inline-block;
	width: 95%;
	color: #fff;
	border: 1px solid #d5d5d5;
	margin: 0;
	text-decoration: none;
	text-align: center;
}

nav a:hover {
	background: #29649d;
}

.marked {
	background: #29649d;
}

section {
	color: #29649d;
}

article {
	background: #fff;
	border-color: #d5d5d5;
}

article h2 {
	margin-left: 10px;
}

article h3 {
	margin-left: 10px;
}

article p {
	margin-left: 10px;
}

article li {
	margin-top: 1em;
}

article table {
	margin-left: 10px;
}

span {
	color: #29649d;
	border: 2px solid #d5d5d5;
	font-size: 16px;
}

#bigfont {
	color: #29649d;
	border: 2px solid #d5d5d5;
	font-size: 19px;
}

#send {
	margin-left: 12px;
}

aside {
	background: #fff;
	border-color: #d5d5d5;
}

aside ul {
	list-style-type: circle;
	/*list-style-image: url(images/logobn.png);*/
}

aside li a {
	color: #000;
}

footer {
	background: #fff;
	border-color: #d5d5d5;
	display: -webkit-flex;
	-webkit-flex-flow: row wrap;
	display: inline;
	flex-flow: row wrap;
}

footer * {
	-webkit-flex: 1 1 0;
	-webkit-justify-content: space-between;
	flex: 1 1 0;
	justify-content: space-between;
}

footer p {
	text-align: left;
	display: inline-table;
}

#contact {
	background: #29649d;
	color: #FFF;
	padding-top: 10px;
	/*min-width: 19em;*/
}

#contact a {	
	color: #FFF;
}

#contact a:hover {
	color: #FFF;
}

#webform {
	border: none;
}

#webform tr, th, td {
	text-align: left;
}

#frmPiwik {
	border: 0; 
	height: 185px; 
	width: 100%; 
	margin-left:5px;
}

/*#webform td a {
 	width:100%;
    height:100%;
    display:block;
    background:#ebf5d7;
	color: #000;
	text-decoration: none;
}*/

@media all and (max-width: 45em) {	
	#webform tr, th, td {
 		display: block;
	}
}

@media all and (max-width: 34em) {
	aside {
		/* durch auto werden die beiden asides in eine Zeile gesetzt */
		
		-webkit-flex: 1 1 0;
		flex: 1 1 0;
		text-align: center;
	}
	nav li {
	list-style-type: none;
	margin: 0.3em 0;
	-webkit-box-flex: 1 1 100%;
  	-moz-box-flex: 1 1 100%;
  	-webkit-flex: 1 1 100%;
  	-ms-flex: 1 1 100%;
  	flex: 1 1 100%;
	}
}

/* Smart Phones und Tablets mit mittlerer Auflösung */

@media all and (min-width: 35em) {
	/*header img {
		margin-right: 50px;
	}*/
	nav ul {
		-webkit-flex-direction: row;
		flex-direction: row;
	}
	nav li {
		margin: 0 10px;
		-webkit-flex: 1 1 0;
		flex: 1 1 0;
	}
	article {
		-webkit-order: 2;
		order: 3;
	}
	#news {
		-webkit-flex: 1 1 0;
		-webkit-order: 3;
		flex: 1 1 0;
		order: 2;
	}
	aside {
		/* durch auto werden die beiden asides in eine Zeile gesetzt */
		
		-webkit-flex: 1 1 0;
		-webkit-order: 4;
		flex: 1 1 0;
		order: 4;
		text-align: center;
	}
	footer {
		-webkit-order: 5;
		order: 5;
	}
}
/* Large screens */

@media all and (min-width: 50em) {
	article {
		/* Der Article wird 2.5x so breit wie die beiden asides! */
		
		-webkit-flex: 5 1 50%;
		-webkit-order: 3;
		order: 3;
		flex: 5 1 50%;
	}
	aside {
		flex: 2 1 20%;
		height: 100%;
	}
	#news {
		-webkit-flex: 2 1 0;
		-webkit-order: 2;
		/*-webkit-align-self: center;*/
		flex: 2 1 0;
		order: 2;
		-webkit-box-flex: 2 1 0;
		-webkit-box-order: 2;
		-moz-box-flex: 2 1 0;
		-moz-box-order: 2;
		-ms-flex: 2 1 0;
		-ms-flex-order: 2;
		/*align-self: center;*/
		height: 100%;
	}
}
