/* ====================================================  GLOBAL DEFINITION  ==================================================== */

/* alternatives Boxmodell */

*, ::before, ::after {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 0 1em;
  font: normal 1em Arial, sans-serif;
  color: #FFFF66; /* wird als currentColor für die Akzentfarbe verwendet. */
  background-color: #000000;
}

p, ol, ul, dl {color: #FFFF66;}

/* ====================================================  HEADER  ==================================================== */

header {
  margin: 0;
  padding: 1em;
  background-color: #000000;
}

/* ====================================================  CONTENT  ==================================================== */

h1, h2 {
  color: currentColor;
  font-style: italic;
  text-align: center;
}

h3 {
  color: #999;
}

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;
}

h2.img {
  padding-left: 2.5em;
}

img, a img {
  border: 0 none;
}

article > h2 {
  clear: both;
}
article > h2 + p > img {
	width: 33%;
  float: center;
  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: ":";
}

/* ====================================================  NAV  ==================================================== */

nav ul {
  box-shadow: 0 .6em .3em 0 rgba(0, 0, 0, .75);
  text-align: center;
  font-style: italic;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav a {
  background-color: #000000;
  color: #FFFF66;
  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 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;
}

@media screen {
  header {
    height: 7em;
	background: #000000 url('images/titel.jpg') no-repeat center center ;
    background-size: cover;
  }
}

@media screen and (min-width: 45em) {
  header {
     background-size: auto 7em;
  }
  
  /* Navigation wird nebeneinander ausgerichtet. */
  nav ul {
    flex-direction: row;
    background-color: darkred;
  }

  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 {
    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%;
}

}

/* ====================================================  BILDERGALERIE  ==================================================== */

@media all {

.details {
	position: fixed;
	left: 50%;
	top: 5%;
	transform: translateX(-50%);
	width: 90%;
	max-height: 90vh;
	margin: 0;
	overflow: auto;
	display: none;
	z-index: 1000;
	
	background-color: #000000;
	border: 0.1em solid #3983ab;
	border-radius: 0 8px 8px;
	padding: 1em 1em .2em;
}

.details img {
	width: 100%;
	height: auto;
	display: block;
}

.details:target {
	display: block;
}

.details figcaption {
	text-align: center;
	margin-bottom: .5em;
}


/* Schließen */

.close {
	width: 0;
	height: 0;
	border: 0;
	text-shadow: none;
	color: #FFFF66;
}

.close::after {
	position: absolute;
	top: 1em;
	right: 1em;

	content: "X";

	color: white;
	background: #c32e04;

	font: bold 1em/150% Georgia, Times, serif;

	border: 0.1em solid #3983ab;
	border-radius: 0 8px 8px;

	display: block;
	text-align: center;

	width: 1.5em;
	height: 1.5em;
	padding: .2em 0 0 0;
}


/* Vorheriges Bild */

.prev {
	position: absolute;
	left: 1em;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;

	color: white;
	background: rgba(0,0,0,.6);
	text-decoration: none;

	font-size: 2.5em;
	font-weight: bold;

	padding: .1em .3em;
	border-radius: 5px;
}


/* Nächstes Bild */

.next {
	position: absolute;
	right: 1em;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;

	color: white;
	background: rgba(0,0,0,.6);
	text-decoration: none;

	font-size: 2.5em;
	font-weight: bold;

	padding: .1em .3em;
	border-radius: 5px;
}


/* Maus über den Pfeilen */

.prev:hover,
.prev:focus,
.next:hover,
.next:focus {
	color: white;
	background: rgba(0,0,0,.9);
}
.close:hover,
.close:focus {
	background: transparent;

}