@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;
	/*min-width: 27em; klappt so noch nicht, Schrift wird mobil zu klein*/	
	font-family: 'Open Sans', sans-serif;
	/*background: url(images/singapore-1920.jpg) no-repeat center center fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	-ms-background-size: cover;
	background-size: cover;*/
}

/* 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: #073C4C; /*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;
	margin-top: 63px;
    
}

header a:link,
	header a:visited {
	text-decoration: none;
    color: #FFF;
}

#telnav a[href^="mailto"]:link,
#telnav a[href^="mailto"]:visited {
    text-decoration: none;
}
#telnav a[href^="mailto"]:hover {
	text-decoration: underline;
}

#telnav h3 {
  border-radius: 0px 0.5em 0.5em;
  color: #fff;
  position: fixed;
  background: #007788;  
  margin-top: -78px;
  margin-left: -10px;
  padding-left: 1em;
  padding-right: 5%;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-right: 10px;
  margin-bottom: 5px;
  z-index: 1000;
}

#telnav a[href^="tel"]:link,
#telnav a[href^="tel"]:visited,
#telnav a[href^="tel"]:hover {
	text-decoration: none;
	color: #fff;
}

#telnav a[href^="tel"]:hover {
	text-decoration: underline;
}

/*#uberwach { 
	border: 0;
	width: 80px;
	height: 15px;
}*/

#profilbild {
	height: 100%;
	width: auto;
	float: right;
	margin-left: 5px;
	margin-right: -20px;
	margin-bottom: 5px;
}

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 1083px;
	flex: 0 0 1083px;
	-webkit-box-flex: 0 0 1083px;
  	-moz-box-flex: 0 0 1083px;
  	-ms-flex: 0 0 1083px;
	margin-left: 5px;
	width: 100%;
}

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: #073c4c;*/
	/*margin-right: 10px;*/
}

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

nav {
	margin-left: 0px;
	margin-right: 10px;
}

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 0em;*/
	-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 {
	background: #073c4c;
	display: grid;
	width: 95%;
	color: #fff;
	border: 1px solid #d5d5d5;
	margin: 0;
	text-decoration: none;
	text-align: center;
}

nav a:hover {
	background: #007788;
}

/*     submenu navigation links      */
nav .submenu {
  display: grid;
  position: absolute;
  width: 13.8em; 
  visibility: hidden;  
  height: 0;
  z-index: 1000;
  margin-left: -10px; 
}
nav .submenu li { 
  display: block; 
  /*width: 15em;*/
}
 
/**     Show the submenu on hover, focus     **/
nav li:hover .submenu,
nav li:active .submenu, 
nav li:focus .submenu,
nav li:focus-within .submenu  { 
  visibility: visible;
  height: auto;
}

.marked {
	background: #007788;
}

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

article {
	background: #fff;
	border-color: #d5d5d5;
	min-width: 400px;
}

article a:link,
	article a:visited {
	text-decoration: none;
}

article a:hover {
	text-decoration: underline;
}

article li {
	margin-top: 28px;
	margin-left: -23px;
}

#ratgeber {
	min-width: 400px;
	order: 0;
	/*text-align: justify;*/
}
#ratgebermelde ul {
	list-style-type: none;
}

#ratgebermelde li {
	margin-top: 10px;
}

#opensource li {
	margin-top: 1em;
	margin-left: 0em;
}

#lobbycontrol {
	width: 234px;
	height: 60px; 
	border: 0;
}

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;
	order: 6;
}

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

footer a:link,
	footer a:visited {
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

#contact {
	background: #007788;
	color: #FFF;
	padding-top: 10px;
	text-align: left;
	padding-left: 15px;
	min-width: 19em;
}

#contact a {	
	color: #FFF;
}

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

.contactimages {
	text-align: center;
}

#organisations li a {
	float: right;
}

#organisations li {
	display: grid;
}

#organisations img {
	margin-top: 5px;
}

#projects img {
	margin-top: 5px;
} 

#osm-chf {
  height: 426px;
  width: 90%;
  border: 1px solid black;
  text-align: center;
}

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

.knowhow {
	border: none;
	}

#contact a:link,
	#contact a:visited {
	text-decoration: none;
}

#contact a:hover {
	text-decoration: underline;
}

@media all and (max-width: 57.5em) {
	header {
	margin-top: 88px;
	}
	#telnav h3 {
	margin-top: -103px;
	}
}

@media all and (max-width: 45em) {	
	.knowhow tr, th, td {
 		display: block;
	}
	/*article {
	min-width: none;
	}*/
}

@media all and (max-width: 40em) {		
	header {
	margin-top: 88px;
	}
	#telnav h3 {
	margin-top: -103px;
	}
	header img {
    flex: 0 0 782px;
	}
	article {
	min-width: 300px;
	}
	aside {
		/* durch auto werden die beiden asides in eine Zeile gesetzt */
		
		-webkit-flex: 1 1 100%;
		flex: 1 1 100%;
		text-align: center;
	}
	nav {
	min-width: 300px;
	/*margin-left: 10px;
	margin-right: 5px;
	margin-top: -10px;*/
	padding: 10px;
	}
	nav li {
	list-style-type: none;
	margin: 0.2em 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,
	nav ul,
	nav li {
	margin-bottom: -2px;
	}
	nav ul {
	margin-right: -2.4%;
	margin-top: -22px;
	margin-bottom: -11px;
	}
	/*     submenu navigation links      */
	nav .submenu {
	  display: grid;
	  margin-left: 0px;
	  margin-top: -2px;
	}	
	
	#ratgeber {
	min-width: 300px;
	list-style-type: circle;
	}
	#profilbild {
	height: 100%;
	width: auto;
	float: none;
	}
}

@media all and (max-width: 33.01em) {
	header {
	margin-top: 139px;
	}
	#telnav h3 {
	margin-top: -155px;
	}
}

@media all and (max-width: 27.01em) {
	header {
	margin-top: 215px;
	}
	#telnav h3 {
	margin-top: -232px;
	}
}

@media all and (max-width: 22.01em) {
	header {
	margin-top: 217px;
	}
	#telnav h3 {
	margin-top: -232px;
	}
}

@media all and (max-width: 20.01em) {
	header {
	margin-top: 217px;
	}
	#telnav h3 {
	margin-top: -232px;
	}
}

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

@media all and (min-width: 40.01em) {	
	/*header img {
		margin-right: 50px;
	}*/
	nav {
		margin-right: 14px;
		margin-top: -6px;
		margin-bottom: -5px;
	}

	nav ul {
		-webkit-flex-direction: row;
		flex-direction: row;
	}
	nav li {
		/*margin: 0 10px;*/
		margin-left: 10px;
		margin-right: 10px;
		-webkit-flex: 1 1 0;
		flex: 1 1 0;
	}
	article {
		-webkit-order: 2;
		order: 2;
	}
	#news {
		-webkit-flex: 1 1 0;
		-webkit-order: 3;
		flex: 1 1 0;
		order: 6;
	}
	#osm-chf {
  	margin-left: 5%;
	}
	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) {
	body {
	background: url(images/singapore-1920.jpg) no-repeat center center fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	-ms-background-size: cover;
	background-size: cover;
	}
	article {
		/* Der Article wird 2.5x so breit wie die beiden asides! */
		
		-webkit-flex: 5 1 0;
		-webkit-order: 3;
		order: 3;
		flex: 5 1 0;
	}
	aside {
		flex: 2 1 0;
		height: 100%;
	}
	#news {
		-webkit-flex: 2 1 0;
		-webkit-order: 2;
		/*-webkit-align-self: center;*/
		flex: 2 1 0;
		order: 6;
		-webkit-box-flex: 2 1 0;
		-webkit-box-order: 6;
		-moz-box-flex: 2 1 0;
		-moz-box-order: 6;
		-ms-flex: 2 1 0;
		-ms-flex-order: 6;
		/*align-self: center;*/
		height: 100%;
	}
}
