/* 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;
  font: normal 1em Verdana, sans-serif;
  color: darkorange; /* wird als currentColor für die Akzentfarbe verwendet. */
  //background-color: #ffffff;
}

p, ol, ul, dl {color: #333;}

/* ====================================================  HEADER  ==================================================== */

header {
  margin: 0;
  padding: 1em;
}

header a {
  padding: .15em .15em .15em .13em;
  height: 1em;
  //background: url('../img/flag.png') no-repeat left;
  text-decoration: none;
  border: 1px solid transparent;
  color: white;
}

header p {
  font-variant: small-caps;
  font-size: 2em;
}

header h1 {
  font-variant: small-caps;
  font-size: 3em;
}

header span {
  font-weight: bold;
}

.akzentfarbe1 {
  color:darkorange;
}

.akzentfarbe2 {
  color: darkred;
}

/* ====================================================  CONTENT  ==================================================== */

h1, h2 {
  color: currentColor;
	//letter-spacing: ./em;
}

h3 {
  color: #999;
	margin-top: -0.7em;
}


a {
  color: darkslategray;
  font-size: smaller;
  text-decoration: none;
}


a:hover, a:focus {
  color: teal;
font-weight: bold;
}

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;
}

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;
}


.shadow {
  border: 0 none;
  filter: drop-shadow(10px 10px 10px gray);
}


img, a img {
  border: 0 none;

}

#toplink { 
  position: absolute; 
  top: 160px; 
  right: 40px; 
}

#toplink2 { 
  position: fixed; 
  top: 35px; 
  right: 40px; 
}


.bildunter { 
	font-size: x-small; 
	font-weight: bold; 
	margin-top: -0.3em;
}

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: ":";
}



#container {
	column-count: 3;
	//background-color: #f0f;
}


#container2 {
	position: relative;
	width: 100%;
	height: auto;
	border: 1px solid;
	padding: 0;
}

#linkereihe {
	width: 30%;
	float:left;
	margin-left: 0%;
}
#rechtereihe {
	margin-left: 40%;
}

sideimage {
		//padding: -0.5em;
		width: 100%;
		margin-left: 1em;
		height: 8.5em;
		//position: relative;

	}

sideimage img {
		border: 0 solid #eee;
		position: relative; 
		left: -8%;
		top: -10%;
		z-index: 1;
		box-shadow: 0;
		width: 120%;
		transition: all 1s;
	}

sideimage:focus img, sideimage:hover img {
		border: 2em solid #eee;
		border-radius: 1em;
		left: -8%;
		top: -10%;
		width: 250%;
		z-index: 5;
		box-shadow: 1px 1px 5px #333;
		transition: all 2s;
	}



.news {
  background: no-repeat top .5em right .5em #fff;
  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: gray;
  list-style-position: inside;
}
aside li,
.news li {
  font-weight: bold;
  padding: .5em 0;
}
.news li span {
  color: #474747;
}
aside ul {
  color: #333;
}


.descript li {
  padding: 0.5em .8em;
}


/* ====================================================  NAV  ==================================================== */

nav ul {
  box-shadow: 0 .6em .6em 0 rgba(0, 0, 0, .65);
  text-align: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav a {
  background-color: BurlyWood;
  color: black;
  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: #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 Breite*/
main  {
  padding: 1em 0;
  margin: 2em 0;
}

/* Navigationselemente werden untereinander angezeigt */
nav ul {
  display: flex;
  flex-direction: column;
}



/* 2-Spaltenlayout  */
@media screen and (min-width: 35em) {
  header {
  }

  /* Navigation wird nebeneinander ausgerichtet. */
  nav ul {
    flex-direction: row;
    background-color: BurlyWood;
  }

  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: 1 48%;  /* Diese Elemente erhalten eine halbe Breite */
    margin: 1%;
  }
}

