@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;
	background: /*#333131*/ url(../images/Carbon-nahtlos2.jpg) repeat;
	/*background: #333131 url(../images/mustang-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;*/
	/*background: #333131;
	background-image: url(../images/mustang-1920.jpg), url(../images/mitsubishi-evo-1920.jpg), url(../images/corvette-1920.jpg);
	background-position: center top, center bottom, center;
	background-repeat: round no-repeat, no-repeat, no-repeat;*/
}

/* 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: 5px;
	-webkit-box-flex: 1 100%;
  	-moz-box-flex: 1 100%;
  	-webkit-flex: 1 100%;
  	-ms-flex: 1 100%;
  	flex: 1 100%;
}

header {
	/*background: #d0d0d0; / * url('images/header.jpg') top right no-repeat;*/
	background: #eee;
	border-color: #000;	
	display: -webkit-flex;
	-webkit-flex-flow: row wrap;
	display: flex;
	flex-flow: row wrap;
	overflow: hidden;
	padding-top: 0px;
	padding-left: 10px;
	padding-right: 7px;
	margin-bottom: 5px;
}

#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 button {
	margin-left: -40px;
}

header img {
	-webkit-flex: 0 0 1053px;
	flex: 0 0 1053px;
	-webkit-box-flex: 0 0 1053px;
  	-moz-box-flex: 0 0 1053px;
  	-ms-flex: 0 0 1053px;
	margin-left: -10px;
	margin-right: -10px;
	width: 102%;
}

header main-nav {
	margin-left: 0px;
}

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: #eee;
	margin-right: 6px;
	margin-left: -10px;
	margin-top: -31px;
}

nav,
nav ul,
nav li {
	margin: 0;
	padding: 0;
	border: none;
	font-weight: bold;
}

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: #000;
	border: 1px solid #474747;
	margin: 0;
	text-decoration: none;
	text-align: center;
}

nav a:hover {
	background: #ff0137;
	color: #fff;
}

.marked {
	background: #ff0137;
	color: #fff;
}

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

article {
	border-color: #777;
	/*background-color: rgba(255,255,255, 0.8);*/
	background-color: #eee;
}

article ul {
	list-style-image: url(../favicon.ico);
}

article li {
	margin-top: 2em;
}

article img {
	-webkit-flex: 0 0 1053px;
	flex: 0 0 1053px;
	-webkit-box-flex: 0 0 1053px;
  	-moz-box-flex: 0 0 1053px;
  	-ms-flex: 0 0 1053px;
	margin-left: 0px;
	margin-right: 0px;
	width: 100%;
}

aside {
	border-color: #777;
	/*background-color: rgba(255,255,255, 0.8);*/
	background-color: #eee;
}

aside ul {
	/*list-style-type: circle;*/
	list-style-image: url(../favicon.ico);
}

.price {
	color: #ff0137;	
}

#chiptuning {
	order: 5;
	min-width: 30em;
}

footer {
	background-color: #eee; /*#fff*/
  	/*opacity: 0.8;*/	
	border-color: #777;
	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;
}

#contact {
	/*background: #007788;*/
	/*padding-top: 10px;*/
	/*min-width: 19em;*/
	padding-left: 10px;
}

#contact-osm {
	order: 4;
}

#cars td {
	border-radius: 0px 0.5em 0.5em;
	border: 1px solid;
	border-color: #777;
	text-align: center;
}

#maincars td {
	text-align: center;
}

#osm-chf {
  height: 426px;
  width: 90%;
  margin-left: 5%;
  border: 1px solid black;
}

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

.knowhow {
	border: none;
	}

@media all and (max-width: 45em) {	
	.knowhow 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: left;
	}
	header {
	padding-right: 3px;
	padding-bottom: 0px;
	}
	header nav {
	margin-right: -8px;
	margin-left: -10px;
	}
	header img {
	width: 105%;
	/*height: 100%;*/
	}
	header button {
	margin-left: -1px;
	margin-bottom: 0px;
	margin-top: -16px;
	}
	header nav li {
	list-style-type: none;
	margin-top: 0px;
	margin-bottom: 0px;
	-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%;
	}
	#chiptuning {
	min-width: 0em;
	}
	.navbar-brand {
		padding: 0 15px 15px;
	}
	.navbar-toggle .fa-3 {
	font-size: 3em;
	  /*border:1px solid #000;*/
	}

	.navbar-toggle .icon-bar {
	  /*background-color: #fff;*/
	}
	.navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
	.navbar-collapse.collapse {
        display: none!important;
    }
	/* since 3.1.0 */
    .navbar-collapse.collapse.in { 
        display: block!important;
    }
    .collapsing {
        overflow: hidden!important;
    }
	.navbar-right {
		margin-top: 0px;
		margin-bottom: 0px;
		border-top: 1px solid #bbb;
	}
	.navbar-right li a {
		font-size: 15px;
		padding-bottom: 7px;
		padding-top: 4px;
		border:1px solid #bbb;
	}
}

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

@media all and (min-width: 34em) and (max-width: 50em) {
	/*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;
	}
	*/

/*	header img {
	width: 105%;
	} */
	header {
	padding-right: 0px;
	padding-bottom: 0px;
	}
	/*header img {
	height: 100%;
	}*/
	header button {
	margin-left: -1px;
	margin-top: -28px;
	}
	header nav li {
	list-style-type: none;
	margin-top: 0px;
	margin-bottom: 0px;
	-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 {
	width: 99%;
	}
	.navbar-brand {
		padding: 0 15px 15px;
	}
	.navbar-toggle .fa-3 {
	font-size: 4em;
	  /*border:1px solid #000;*/
	}

	.navbar-toggle .icon-bar {
	  /*background-color: #fff;*/
	}
	.navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
	.navbar-collapse.collapse {
        display: none!important;
    }
	/* since 3.1.0 */
    .navbar-collapse.collapse.in { 
        display: block!important;
    }
    .collapsing {
        overflow: hidden!important;
    }
	.navbar-right {
		margin-top: 0px;
		margin-bottom: 0px;
		border-top: 1px solid #bbb;
	}
	.navbar-right li a {
		font-size: 15px;
		padding-bottom: 7px;
		padding-top: 4px;
		border:1px solid #bbb;
	}	
	article {
		-webkit-order: 2;
		order: 2;
	}
	article img {
	width: 50%;
	}
	#news {
		-webkit-flex: 1 1 0;
		-webkit-order: 3;
		flex: 1 1 0;
		order: 3;
	}
	aside {
		/* durch auto werden die beiden asides in eine Zeile gesetzt */
		
		-webkit-flex: 1 1 0;
		-webkit-order: 4;
		flex: 1 1 0;
		order: 3;
		text-align: left;
	}
	footer {
		-webkit-order: 5;
		order: 5;
	}
}
/* Large screens */

@media all and (min-width: 50em) {
	body {
	background: /*#333131*/ url(../images/mustang-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;
	}
	/* Anfang eingefügter Bereich*/	
	header button {
	margin-left: -30px;
	margin-top: -28px;
	}	
	article {
		-webkit-order: 2;
		order: 2;
	}
	#news {
		-webkit-flex: 1 1 0;
		-webkit-order: 3;
		flex: 1 1 0;
		order: 3;
	}
	aside {
		/* durch auto werden die beiden asides in eine Zeile gesetzt */
		
		-webkit-flex: 1 1 0;
		flex: 1 1 0;
		order: 3;
		text-align: left;
		min-width: 19em;
	}
	#contact-osm {
	min-width: 25em;
	}
	footer {
		-webkit-order: 5;
		order: 5;
	}	
	nav ul {
		-webkit-flex-direction: row;
		flex-direction: row;
	}
	nav li {
		margin: 0 10px;
		-webkit-flex: 1 1 0;
		flex: 1 1 0;
	}
	.nav-toggle{
   		display : none;
 	}
	/* Ende eingefügter Bereich*/	
	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;
		min-width: 35em;
	}
	article img {
	width: 50%;
	}
	aside {
		flex: 2 1 0;
		height: 100%;
	}
	#leistungen {
		order: 4;
		min-width: 42em;
	}
	#contact-osm {
		max-width: 560px;
	}
	#osm-chf {
  		height: 572px;
		width: 80%;
		margin-left: 10%;
		margin-top: 5%;
	}
	.navbar-toggle .fa-3 {
	font-size: 0em;
	  /*border:1px solid #000;*/
	}
	#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%;
	}
}

@media all and (min-width: 59.01em) and (max-width: 65em) {
	aside {
		order: 3;
	}	
}

@media all and (min-width: 50.01em) and (max-width: 59em) {
	aside {
		order: 4;
	}	
}
