/* 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: 80em;
  margin: 0 auto;
  padding: 0 1em;
  font: normal 1em Arial, sans-serif;
  color: darkred; /* wird als currentColor für die Akzentfarbe verwendet. */
  background-color: #6C6161;
}

p, ol, ul, dl {color: #333;}

/* ====================================================  HEADER  ==================================================== */

header {
  margin: 0;
  padding: 1em;
  background-color: url('../img/titelbild.jpg');
}

header a {
  padding: .5em .5em .5em 3em;
  height: 3em;
  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: darkred;
}

/* ====================================================  CONTENT  ==================================================== */

h1, h2 {
  color: currentColor;
}

h3 {
  color: #999;
}

#spielernamen {
	
width: 102px;
}

a {
  color: currentColor;
  font-weight: bold;
}
a:hover, a:focus {
  color: #888;
}

table {
background-color: #F2F2F2;
width: 99%;
text-align: center;
}


th {
background-color: #BEBB98;
padding: 5px;
border: solid 1px;}

td {
padding: 10px;
border: solid 1px;	
	
}


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/') 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;
}

.info, .success, .warning, .error, .validation {
border: 1px solid;
margin: 10px 0px;
padding:15px 10px 15px 50px;
background-repeat: no-repeat;
background-position: 10px center;
}
.info {
color: #00529B;
background-color: #BDE5F8;
background-image: url('info.png');
}
.success {
color: #4F8A10;
background-color: #DFF2BF;
background-image:url('success.png');
}
.warning {
color: #9F6000;
background-color: #FEEFB3;
background-image: url('warning.png');
}
.error {
color: #D8000C;
background-color: #FFBABA;
background-image: url('error.png');
}

a.error{
	color: #9F6000;
}

/* ====================================================  NAV  ==================================================== */

/* Navbar container */
.navbar {
  overflow: hidden;
  background-color: #BEBB98;
  font-family: Arial;
}

/* Links inside the navbar */
.navbar a {
  float: left;
  font-size: 16px;
  color: black;
  text-align: center;
  padding: 14px 16px;
  width: 200px;
  text-decoration: none;
}

.navre a {
  float: right;
  font-size: 16px;
  color: black;
  text-align: center;
  padding: 14px 16px;
  width: 100px;
  text-decoration: none;
}

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  font-size: 16px; 
  border: none;
  outline: none;
  color: black;
  padding: 14px 20px;
  width: 200px;
  background-color: inherit;
  font-family: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: gold;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: gold;
  min-width: 100px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}


/* ====================================================  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-right: 3px;
  
  background-color: #E8E8E8;
}

/* 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/dominion.gif') no-repeat left bottom ;
    background-size: contain;
  }

  /* Navigation wird nebeneinander ausgerichtet. */
  nav ul {
    flex-direction: row;
    background-color: #FF9600;
  }

  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%;
  }
}

/* 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 darkred;
    padding: 1em;
    height: 22em;
  }
  
  #impressum {
    flex: 1 60%;
    margin: 1%;
}

  aside p {
    margin-bottom: 3em;
  }
  aside p:last-child {
    margin-bottom: 1.2em;
  }
}
