/* Stylesheet für Selfhtml Design 01
  responsives Layout mit Flexbox ab Z. 247 */

/* ====================================================  GLOBAL DEFINITION  ==================================================== */


em.eu1 {color: #C90000;  font-weight : bold;  font-size : 30px;  font-style :  normal;  font-family :  Arial; background : transparent;    padding-bottom : 1px;  padding-left : 1px;  padding-right : 1px;  padding-top :  1px;     }

em.eu1a {text-transform: capitalize; color: #000000;  font-weight : bold;  font-size : 30px;  font-style :  normal;  font-family :  Arial; background : transparent;    padding-bottom : 1px;  padding-left : 20px;  padding-right : 1px;  padding-top :  10px;     }

em.eu1b {color: #000000;  font-weight : bold;  font-size : 30px;  font-style :  normal;  font-family :  Arial; background : url('../img/about.svg') no-repeat left;    padding-bottom : 1px;  padding-left : 20px;  padding-right : 1px;  padding-top :  10px;     }
em.eu1c {color: #000000;  font-weight : bold;  font-size : 30px;  font-style :  normal;  font-family :  Arial; background : url('../img/cash.svg') no-repeat left;    padding-bottom : 1px;  padding-left : 20px;  padding-right : 1px;  padding-top :  10px;     }
em.eu1d {color: #000000;  font-weight : bold;  font-size : 30px;  font-style :  normal;  font-family :  Arial; background : url('../img/letter.svg') no-repeat left;    padding-bottom : 1px;  padding-left : 20px;  padding-right : 1px;  padding-top :  10px;     }
em.eu1e {color: #000000;  font-weight : bold;  font-size : 20px;  font-style :  normal;  font-family :  Arial; background : transparent;  padding-bottom : 1px;  padding-left : 20px;  padding-right : 1px;  padding-top :  20px;     }

em.eu2 {color: #83D1C1;  font-weight : bold;  font-size : 30px;  font-style :  normal;  font-family :  Arial; background : transparent;    padding-bottom : 1px;  padding-left : 1px;  padding-right : 1px;  padding-top :  1px;     }
em.eu3 {color: Black;  font-weight : normal;  font-size : 14px;  font-style :  normal;  font-family :  Arial;   }
em.eu5 {color: Black;  font-weight : normal;  font-size : 14px;  font-style :  normal;  font-family :  Arial; padding-left : 70px;   }

em.ad8 {
	color: #83D1C1;
	font-weight: bold;
	font-size: 18px;
	font-style: normal;
	font-family: Arial;
	background: transparent;
	background-color: #FFFF99;
	padding-bottom : 2px;  padding-left : 10px;  padding-right : 10px;  padding-top :  3px;   
}


/* alternatives Boxmodell */

*, ::before, ::after {
  box-sizing: border-box;
}

body {
  max-width: 65em;
  margin: 0 auto;
  padding: 0 1em;
  font: normal 1em Arial, sans-serif;
  color: #C90000; /* wird als currentColor für die Akzentfarbe verwendet. */
  background-color: #ffffff;
}

p, ol, ul, dl {color: #333;}

/* ====================================================  HEADER  ==================================================== */

header {
  margin: 0;
  padding: 1em;
  background-color: #e7e8ee;
}

header a {
  padding: .5em .5em .5em 3em;
  height: 3em;
  background: url('../img/logo_proto_5s.png') no-repeat left;
  text-decoration: none;
  border: 1px solid transparent;
}

header p {
  font-variant: small-caps;
  font-size: 2em;
}

header span {
  font-weight: bold;
}

.akzentfarbe1 {
  color:orange;
}

.akzentfarbe2 {
  color: #C90000;
}

/* ====================================================  CONTENT  ==================================================== */

h1, h2 {
  color: currentColor;
}

h3 {
  color: orange;
}

em.ad8 {
	color: #83D1C1;
	font-weight: bold;
	font-size: 18px;
	font-style: normal;
	font-family: Arial;
	background: transparent;
	background-color: #FFFF99;
	padding-bottom : 2px;  padding-left : 10px;  padding-right : 10px;  padding-top :  3px;   
}


a {
  color: currentColor;
  font-weight: bold;
}
a:hover, a:focus {
  color: #888;
}

a:focus,
a:hover {
  background-color:gold;
}

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;
}
a.am2 {
	color: Navy;
	text-decoration: none;
}
a.am2:hover {
	color: Red;
	text-decoration: none;
	background-color: white;
}

.tooltip {
    position: relative;
    text-decoration: none;
  }
  a.tooltip:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 20%;
    background: #ffcb66;
    padding: 5px 15px;
    color: black;
    -webkit-border-radius: 10px;
    -moz-border-radius   : 10px;
    border-radius        : 10px;
    white-space: nowrap;
    opacity: 0;
     /* At time of this creation, only Fx4 doing pseduo transitions */
    -webkit-transition: all 0.4s ease;
    -moz-transition   : all 0.4s ease;
  }
  a.tooltip:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 20px solid #ffcb66;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    /* At time of this creation, only Fx4 doing pseduo transitions */
    -webkit-transition: all 0.4s ease;
    -moz-transition   : all 0.4s ease;
    opacity: 0;
    left: 30%;
    bottom: 90%;
  }
  a.tooltip:hover:after {
    bottom: 100%;
  }
  a.tooltip:hover:before {
    bottom: 70%;
  }
  a.tooltip:hover:after, a:hover:before {
    opacity: 1;
  }
a.am3 {
	color: Navy;
	BACKGROUND: transparent;
	font-weight: bold;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	font-style: normal;
	text-decoration: none;
}
a.am3:hover {
	color: Red;
	BACKGROUND: Gold;
	font-weight: bold;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	font-style: normal;
	text-decoration: none;
	border: 1px solid Blue;
	padding: 3;
}

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: 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: ":";
}

.news {
  background: no-repeat top .5em right .5em #eee;
  padding: 0 1em 1em;
}

.news h3 {
  color: #666;
}

.news.consultation {
  background-image: url('../img/phone.svg');
}
.news.info {
  background-image: url('../img/letter.svg');
}

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 {
  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: #C90000;
  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: gold;
  color: currentColor;
}

nav a:hover::after ,
nav a:focus::after{
  color: transparent;
}


/* ====================================================  FOOTER  ==================================================== */

footer {
  margin: 2em 0;
  display: flex;
  color: #FFF8FF;
  background-color: #C90000;
}

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: #FFD6FD;
  padding: .5em .5em .5em 3em;
  font-weight : normal;  font-size : 14px;  font-style :  normal;  font-family :  Arial; 
}
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;
  margin: 2em 0;
}

/* Navigationselemente werden untereinander angezeigt */
nav ul {
  display: flex;
  flex-direction: column;
}

/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 25em) {
  header {
    height: 10em;
  }
}

/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 45em) {
  header {
    background: #e7e8ee url('../img/header.png') no-repeat right bottom ;
    background-size: contain;
  }

  /* Navigation wird nebeneinander ausgerichtet. */
  nav ul {
    flex-direction: row;
    background-color: #C90000;
  }

  nav li {
    margin: 0;
    flex: 1 1 0%;
  }

  /* Main wird zum Flex-Container */
  main {
    display: flex;
    flex-flow: row wrap;
  }

em.ad8 {
	color: #83D1C1;
	font-weight: bold;
	font-size: 18px;
	font-style: normal;
	font-family: Arial;
	background: transparent;
	background-color: #FFFF99;
	padding-bottom : 2px;  padding-left : 10px;  padding-right : 10px;  padding-top :  3px;   
}


  section {
    flex: 1 48%;  /* Diese Elemente erhalten eine halbe Breite */
    margin: 1%;
  }
}

/* 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%;
  }

em.ad8 {
	color: #83D1C1;
	font-weight: bold;
	font-size: 18px;
	font-style: normal;
	font-family: Arial;
	background: transparent;
	background-color: #FFFF99;
	padding-bottom : 2px;  padding-left : 10px;  padding-right : 10px;  padding-top :  3px;   
}

  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 #C90000;
    padding: 1em;
    height: 22em;
  }
  
  #impressum {
    flex: 1 60%;
    margin: 1%;
}

  aside p {
    margin-bottom: 3em;
  }
  aside p:last-child {
    margin-bottom: 1.2em;
  }
}
