@charset "utf-8";

html {
        background: transparent!important;    /*background: pink;*/
}

body {
	margin: 1em auto;
	max-width: 65em;
	font-family: sans-serif;
	color: #333333;
}

h1, main, aside, main svg {
	border-radius: 0 8px 8px;
	/*border: 1px solid;*/
	/*padding: 1em;*/
	/*margin: 1em;*/
}

h1 { font-size: 1.8em; }
h2 { font-size: 1.2em; }

article img {
	width: 50%;
	float: right;
	margin-left: 0.2em;
}

figure {
  display: inline-block;
  width: 80%;
  margin: .5em;
}
figure img {
  width: 100%;
}
figure figcaption {
  font-style: italic;
}

main {
	display: block;     /* für IE */	
	min-height: 400px;
}

/*aside {
	background: #c4ced3;
	border-color: #8a9da8;
} */

/*#hinweis {                    /* für Container 

	border-left: 5px solid #c32e04;
}

.hinweis {                    /* für Textzeile 
        color: #c32e04; 
        font-style: italic; 
        border-bottom: 1px dotted; 
        display:inline-block; 
}*/

/* responsives Layout */

body {
  display: flex;
  flex-flow: row wrap;
}

/* 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: 1em;
  margin: 1em;
  flex: 1 100%;
}

header {
  background: #f1f3f4;
  border-color: #d5d5d5;
  display: flex;
  flex-flow: row wrap;
}
header * {
  flex: 1 1 0%;
  margin: 0 1em;
}
header img {
  flex: 0 0 150px;
  margin-right: 20px;
}

header nav {
  flex: 1 1 100%;
  margin: .5em;
  border-color: #d5d5d5;
}


nav {
	text-align:center;
	}	

nav li {
	 display: inline;
	 list-style-type: none;
	 }

nav li:not(:first-child)::before {
	 content: '| ';
	 }
	 
nav li[aria-current] a {
	color: #f76a55;
	}

nav a {
  text-decoration: none;
  background: transparent;
  color: #293d83;
  }

nav a:hover, nav a:focus, nav a:active {
  text-decoration: underline;
  }

section {
  background: #F1F3F4;
  border-color: slateblue;
}
article {
  background: #ffede0;
  border-color: #df6c20;
}
aside {
  background: #e4ebf2; /*ebf5d7;*/
  border-color: #a9bccf;
}
footer {
  background: #f1f3f4; /*dbdce9;*/
  border-color: #8a9da8;
  display: flex;
  flex-flow: row wrap;
}
footer * {
  flex: 1 1 0%;
  justify-content: space-between;
}
footer p:last-child {
  text-align: right;
}

/* Smart Phones und Tablets mit mittlerer Auflösung */
@media all and (min-width: 35em) {
header img {
  margin-right: 50px;
}
nav ul {
  flex-direction: row;
}
nav li {
	/*align-items: center;*/  
	margin: 0 1px;
   flex: 1 1 0%;
}
article {
  order: 2;
}
#news {
  flex: 1 auto;
  order: 3;
}
aside {
/* durch auto werden die beiden asides in eine Zeile gesetzt */
  flex: 1 auto;
  order: 4;
}
footer {
  order: 5;
}
}

/* Large screens */
@media all and (min-width: 50em) {
  article {    /* Der Article wird 2.5x so breit wie die beiden asides! */
    order: 3;
    flex: 2 1 0%;
  }
  aside {
    flex: 1 1 0%;
  }
  #news {
    flex: 1 1 0%;	  
    order: 2;
    align-self: center;
    height: 12em;
  }
 }

/* Auftragsliste */

table, th, td { 
	table-layout: auto;
	/*width: 100%;*/
  	border: 0px solid; 
  	border-collapse: collapse;
  	color:#333333;
}

th, td {
	padding: .5em;
}

th {
	background: #f56b55;
	color: #ffede0;
}

caption {
	caption-side: bottom;
	padding-top: 2em;
	font-style: italic;
}
