/* Stylesheet für Selfhtml Design 01
  responsives Layout mit Flexbox ab Z. 247 */

/* ====================================================  GLOBAL DEFINITION  ==================================================== */

/* alternatives Boxmodell */

/* die hier vorliegende Angabe bestimmt, dass die Größenangaben für alle Boxen incl. Border gelten */

*, ::before, ::after {
  box-sizing: border-box;
}

body {
  margin: 0 auto;

  font: normal 1em Arial, sans-serif;  /* 1em = 16 px */
  color: #0066cc; /* mittleres blau, wird als currentColor verwendet. */
  background-color: #73A0D2;   
}

p, a, ol, ul, dl {color: #000080;}

/* ====================================================  HEADER  ==================================================== */

header {
	width: 100%;
	height: 18em;
	margin: 0 auto;
	background: url("../img/logoNeu1920.jpg") no-repeat right; 
	background-size: cover; 			 
	padding: 0 0 0 0;
}

header a h1,

header p {
  font-variant: small-caps;
  font-size: 2em;
}

header span {
  font-weight: bold;
}

main  {
  margin: 0 10 ;
  background-color: #e6e6ff;
}

.akzentfarbe1 {
  color:orange;
}

.akzentfarbe2 {
  color: blue;
}

.blau {
  color: #0000ff;
}

/* ====================================================  CONTENT  ==================================================== */

h1, h2 {
  color: blue;
}

h3 {
  color: blue;
}

aside > h3 {
   color: #ff9614;
  }

a {
  color: currentColor;
  font-weight: bold;
}


a:focus,
a:hover {
  background-color:#e6e6ff;
}

a.more {
  float: right;
}
a.more::before {
  content: url('../img/more.svg');
  margin-right: .5em;
}
a.more:hover, a.more:focus {
  color: black;
}
a.more:hover::before, a.more:focus::before {
  color: white;
}

article > h2 {
  clear: both;
}
article > h2 + p > img {
	width: 33%;
  float: left;
  margin: .15em 1.5em 1.5em 0;
}
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: ":";
}

hr { 
    width: 100%; 
    height: 5px; 
    margin: 0;
    background: #ffffff;
}

dd {
	color: blue;
}


/* ====================================================  NAV  ==================================================== */

nav ul {
  box-shadow: 0 .6em .3em 0 rgba(0, 0, 0, .75);
  text-align: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav a {
  background-color: blue;
  color: white;
  text-decoration: none;
  display: inline-block;
  width: 95%;
  margin: .5em 0;
  padding: .5em 1em;
  border-radius: .5em;
}

nav a[aria-current="page"]{
 color: orange;
 font-weight: bold;
}

nav a:hover,
nav a:focus {
  background-color: #e6e6ff;
  color: currentColor;
}

nav a:hover::after ,
nav a:focus::after{
  color: transparent;
}


/* ====================================================  FOOTER  ==================================================== */

footer {
  background-color: blue;
 
  display: flex;
  color: #ffffff;
}

footer ul,
footer p {
  flex: 1 1 100%;
}

footer ul {
  padding-left: 0;
  margin-left: 0;
  text-align: center;
}

footer li  {
  list-style-type: none;
  display: inline-block;
  border-left: .2em solid #ffffff;
}
footer li:first-child  {
  border-left-color: transparent;
}
footer a {
  color: #ffffff;
}
footer a:hover, footer a:focus {
  color: #333;
}
footer li a {
  padding: 0 1em 0;
}
footer p {
  margin-top: 0;
  padding-top: 0;
  
}


/* ====================================================  LAYOUT  ==================================================== */

/* Mobile first ! alle Blöcke haben 100%, Navigation unten, smartphone*/
body {
   max-width: 90%;
   }
main  {
   margin: 1em 0;
}

/* Navigationselemente werden untereinander angezeigt */
  nav ul {
  display: flex;
  flex-direction: column;
}

  header {
    height: 10em;
}

 section {
    flex: 1 1 0%;  /* Diese Elemente erhalten eine halbe Breite */
    margin: 1%;
  }
  
 section img {		/*passt die Bilder an die Eltern-Box an */
  width: 100%
	}
    
/* 2-Spaltenlayout mit breiterem aside ===============================
@media screen and (min-width: 25em) {
  header {
    height: 10em;
  }
}/*===================================================================*/

/* 2-Spaltenlayout mit breiterem aside ....landscape*/
@media screen and (min-width: 60em) {
body {
   max-width: 90%;
   }

  header {
    width: 100%;
	height: 21em;
    background: url("../img/logoNeu1920.jpg") no-repeat right; 
	background-size: cover; 
  }

  /* Navigation wird nebeneinander ausgerichtet. */
  nav ul {
    flex-direction: row;
    background-color: blue;
  }

  nav li {
    margin: 0;
    flex: 1 1 0%;
  }

  /* Main wird zum Flex-Container */
  main {
    display: flex;
    flex-flow: row wrap;
  }

  main > * {
    flex: 1 100%;  /* Alle Kindelemente werden über die volle Breite dargestellt */
  }

  section {
    flex: 3;  /* Diese Elemente erhalten die 3-fache Breite */
    margin: 1%;
  }
  
    .zweifach {
  flex: 2;  /* Diese Elemente erhalten die 2-fache Breite */
    margin: 1%;
  }
  
  .einfach {
  flex: 1;  /* Diese Elemente erhalten die einfache Breite */
    margin: 1%;
    padding: 0;
  }
  
  aside {
    flex: 1 1 0%;  /* Diese Elemente erhalten eine Breite von 1/3.  */
    margin: 1%;
  }
}

/* 2-Spaltenlayout mit breiterem aside ===========================GROSSER BILDSCHIRM=================================*/
@media screen and (min-width: 80em) {
  body {
   max-width: 80%;
   }

  section {
    flex: 3;  /* Diese Elemente erhalten die 4-fache  Breite */
    margin: 0 1% 0;
    padding: 0 0 0 2em;
  }
  
  .zweifach {
  flex: 2;  /* Diese Elemente erhalten die 2-fache Breite */
    margin: 1%;
  }
  
  .einfach {
  flex: 1;  /* Diese Elemente erhalten die einfache Breite */
    margin: 0 1% 0;
    padding: 0;
  }
   
  .zweifach p  {   width: 80% }
  
  .trenner {
  margin: 0;
  }
  
  aside {
    flex: 1;  /* Diese Elemente erhalten die einfache Breite  */
    margin: 1%;

  }

  article {
    flex: 1 1 100%;
    margin: 1%;
    padding: 0 2em 0;
  }

/*   article p, */
  article li,
  article blockquote {
    max-width: 40em;
  }

  #about {
    flex: 1 30%;
    margin: 1%;	  
    background-color: #eee;
    border: 1px solid darkred;
    padding: 1em;
    height: 22em;
  }

  aside img {
    margin: 0 2em 0;
    background-color: transparent;
  }
  
    aside p {
    margin-bottom: 2em;
  aside p:last-child {
    margin-bottom: 1.2em;
  }
  
  }
  
  @media screen and (min-width: 120em) {
    body {
   max-width: 65%;
   }

    section {
    flex: 4;  /* Diese Elemente erhalten die 4-fache  Breite */
    margin: 1%;
    padding: 0 0 0 2em;
  }
  
}

 @media screen and (min-width: 150em) {
    body {
   max-width: 55%;
   }

    section {
    flex: 4;  /* Diese Elemente erhalten die 4-fache  Breite */
    margin: 1%;
    padding: 0 0 0 2em;
  }
  
}

