/* Stylesheet für Selfhtml Design 01
  responsives Layout mit Flexbox ab Z. 247 */

/* ====================================================  GLOBAL DEFINITION  ==================================================== */

/* alternatives Boxmodell */

*, ::before, ::after {
  box-sizing: border-box;
}

body {
  max-width: 65em;
  margin: 0 auto;
  padding: 0 1em 0;
  font: normal 1em Verdana, sans-serif;
  color: #36373b; /* wird als currentColor für die Akzentfarbe verwendet. */
  background-color: #ffffff;
  background: #fff url('../img/trude_500.jpg') no-repeat right top ;
  
}

p, ol, ul, dl {color: #333;}

/* ====================================================  header  ==================================================== */

header {
  margin: 0;
  padding: 1em;
  background-color: #fff;
    border: 1px solid grey;
}

header a {
  padding: .5em .5em .5em 3em;
  height: 1em;
  background: url('../img/header/standard.gif') no-repeat left;
  text-decoration: none;
  border: 1px solid grey;
}

header p {
  font-variant: small-caps;
  font-size: 2em;
}

header span {
  font-weight: bold;
}

.akzentfarbe1 {
  color:orange;
}

.akzentfarbe2 {
  color: #36373b;
}

/* ====================================================  CONTENT  ==================================================== */

h1, h2 { font-family: "Times New Roman", Garamond, serif;
font-size: 1.5em;
font-variant: all-small-caps;
  color: grey;
   padding: .1em .1em .1e .1em;
  
}

h3 {
font-family: "Times New Roman", Garamond, serif;
font-variant: titling-caps;
  color: #999;
}
h4 { font-variant: small-caps;
  color: white; 
  display: block;
  background-color: #d5d1b4;
  text-align:left;
  padding: .0em .15em .15e .15em;
}

 .aktuell{ 

  background-color: #FA5882;
   text-align:right;
  padding: .0em .20em .20em .20em;
}
 .markt{ 

  background-color: #81F781;
   text-align:right;
  padding: .0em .20em .20em .20em;
  
}
.termin{ 

  background-color: #F2F5A9;
   text-align:right;
  padding: .0em .20em .20em .20em;
  
}
 .damals{ 
  background-color: #D8D8D8;
  text-align:right;
  padding: .0em .20em .20em .20em;
}
 .watsonst{ 

  background-color: #81BEF7;
    text-align:right;
  padding: .0em .20em .20em .20em;
  
}
a {
  color: currentColor;
  font-weight: normal;
}
a:hover, a:focus {
  color: #888;
}

a:focus,
a:hover {
  background-color:#d5d1b4;
  cursor:pointer;
}

a.more {
font-family: "Times New Roman", Garamond, serif;
font-style: italic;
  color: #999;
    margin-top: .5em;
  float: right;
}
a.more::before {
  content: url('../img/');
  margin-right: .5em;
}
a.more:hover, a.more:focus {
  color: grey;
}
a.more:hover::before, a.more:focus::before {
  color: red;
}

h2.img {
  padding-left: 2.5em;
}
.img.about {
  background: url('../img/about.svg') left no-repeat;
  background-size: 2.5em;
}
.img.cash {
  background: url('../img/cash.svg') left no-repeat;
  background-size: 1.25em;
}
.img.group {
  background: url('../img/about.svg') left no-repeat;
  background-size: 2.5em;
}

img, a img {
  border: 0 none;
}

article > h2 {
  clear: both;
}
article > h2 + p > img {
	width: 20%;
  float: left;
  margin: .15em 1.5em .15em .15em;
}
article > h2:nth-of-type(odd) + p > img {
  float: right;
  margin: .15em 0 1.5em 1.5em;
}

dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 1em 2em;
  margin-bottom: 3em;
}
dl > * {
  margin: 0;
  padding: 0;
}
dt {
  font-weight: bold;
}
dt::after {
  content: ":";
}
.newsblack {
  font-color: #ffffff;
  background: no-repeat top .5em right .5em #000;
  padding: 0 1em 1em;
   
}
.newsblack p{
color: #ffffff;
 
  
}
.news {
  background: no-repeat top .5em right .5em #eee;
  padding: 0 1em 1em;
  
}
.news img{
float: right;
padding: 1em; 
  
}
.news h3 {
  color: #666;
}

.news.consultation {
  background-image: url('../img/');
}
.news.info {
  background-image: url('../img/');
}

aside ul,
.news ul {
  margin: 2em 0;
  padding: 0;
  color: orange;
  list-style-position: inside;
}
aside li,
.news li {
  font-weight: bold;
  padding: .5em 0;
}
.news li span {
  color: #474747;
}
aside ul {
  color: #333;
}

/* ====================================================  NAV  ==================================================== */

nav ul {
border: 1px solid grey;
  text-align: center;
  margin: 0;
  padding: .1em .1em .1em .2em;
  list-style-type: none;
}

nav a {
  background-color: #fff;
  color: black;
  text-decoration: none;
  display: block;
  width: 90%;
  margin: .4em 0;
  padding:.1em .4em .4em 1em;
  border-radius: .4em;
}

nav a[aria-current="page"]{
 color: red;
 font-weight: bold;
}

nav a:hover,
nav a:focus {
  background-color: white;
  color: red;
}

nav a:hover::after ,
nav a:focus::after{
  color: transparent;
}


/* ====================================================  FOOTER  ==================================================== */

footer {
  margin: 2em 0;
  display: flex;
  color: #989898;
}

footer ul,
footer p {
  flex: 1 1 100%;
}

footer ul {
  padding-left: 0;
  margin-left: 0;
}

footer li  {
  list-style-type: none;
  display: inline-block;
  border-left: .2em solid #989898;
}
footer li:first-child  {
  border-left-color: transparent;
}
footer a {
  color: #999;
}
footer a:hover, footer a:focus {
  color: #333;
}
footer li a {
  padding: 0 .5em 0 .7em;
}
footer p {
  margin-top: 0;
  padding-top: 0;
  text-align: right;
}


/* ====================================================  LAYOUT  ==================================================== */

/* Mobile first ! alle Blöcke haben 100%, Navigation unten*/
main  {
  padding: 1em 0.1em 1em 0;
  margin: 2em 0;
    border: 1px solid grey;
}

/* Navigationselemente werden untereinander angezeigt */
nav ul {
  display: flex;
  flex-direction: column;
}

/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 25em) {
  header {
   background: #fff url('../img/header/standard_mini.jpg') no-repeat right bottom ;
    height: 8em;
  }
}
/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 55em) {
  header {
    background: #fff url('../img/header/standard.jpg') no-repeat right bottom ;
    background-size: ;
  }
  


  /* Navigation wird nebeneinander ausgerichtet. */
  nav ul {
    flex-direction: row;
    background-color: #fff;
  }

  nav li {
    margin: 0;
    flex: 1 1 0%;
  }

  /* Main wird zum Flex-Container */
  main {
    display: flex;
    flex-flow: row wrap;
	padding: 1em 1em 1em 1em;
  }

  main > * {
    flex: 1 100%;  /* Alle Kindelemente werden über die volle Breite dargestellt */
  }

  section {
    flex: 1 48%;  /* Diese Elemente erhalten eine halbe Breite */
    margin: 1%;
	border: 1px solid black;
	padding: 0.15em 0.15em 0.15em 0.15em;
  }
  
    section  img{

	float: right;
	padding: 0.15em 0.15em 0.15em 0.15em;
	backgound-color: grey;
	
  }

}

/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 58em) {
  section, aside {
    flex: 1 31%;  /* Diese Elemente erhalten eine Breite von 1/3.  */
    margin: 1%;
  }

  article {
  
    flex: 0 0 100%;
    margin: 1%;
  }

/*   article p, */
  article li,
  article blockquote {
    max-width: 40em;
	
  }

  #about {
    flex: 1 30%;
    margin: 1%;	  
    background-color: #eee;
    border: 1px solid #36373b;
    padding: 1em;
    height: 22em;
  }
  
  #impressum {
    flex: 1 60%;
    margin: 1%;
}

  aside p {
    margin-bottom: 3em;
  }
  aside p:last-child {
    margin-bottom: 1.2em;
  }
}
