/* 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: 100em;
  margin: 0 auto;
  padding: 1em;
  font: normal 1em Candara, sans-serif;
  color: black; /* wird als currentColor für die Akzentfarbe verwendet. */
  background-color: #ffffff;
}

p, ol, ul, dl {color: #000;}

/* ====================================================  HEADER  ==================================================== */

header {	
  padding: 2em;
  background-color: #deded1;
  font: normal 1em BradleyHand Typesetting, serif;
}

header{
  justify-content: center;
  display:flex;
  align-items: center;
}

header p {
  line-height: 50%;
  font-size: 2.5em;
}

header span {
  font-weight: normal;
}



/* ====================================================  CONTENT  ==================================================== */

h1, h2 {
  color: currentColor;
}

h3 {
  color: #deded1;
}

a {
  color: currentColor;
  font-weight: normal;
}
a:hover, a:focus {
  color: #707070;
}

a:focus,
a:hover {
  background-color:#deded1;
}

a.more {
  float: right;
}


a.more:hover, a.more:focus {
  color: black;
}
a.more:hover::before, a.more:focus::before {
  color: white;
}


a.produkt {
  float: center;
}


a.produkt:hover, a.produkt:focus {
  color: grey;
}
a.produkt:hover::before, a.produkt:focus::before {
  color: white;
}

h2.img {
  padding-left: 2.5em;
}
.img.about {
  background: url('../img/me.PNG') left no-repeat;
  background-size: 1.25em;
}
.img.cash {
  background: url('../img/bag.PNG') left no-repeat;
  background-size: 1.25em;
}

.img.eyecatcher {
	background: url('../img/eyecatcher.JPG') center repeat;
	background-size: 25em auto;
}

img {
  max-width: 100%;
  height: auto;
}


img, a img {
  border: 0 none;
}

article > h2 {
  clear: both;
}
article > h2 + p > img {
	width: 33%;
  float: left;
  margin: 0;
}
article > h2:nth-of-type(odd) + p > img {
  float: right;
  margin: 0;
}

dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 1em 2em;
  margin-bottom: 3em;
}
dl > * {
  margin: 0;
  padding: 0;
}
dt {
  font-weight: normal;
}
dt::after {
  content: ":";
}

.flex-container {
	display: flex;
	max-width: 100em;
}

.flex-container.Galerie {
  display: flex;
  flex-direction: row;
  padding: 0.1em;
  margin: 0.3em;
  max-width: 100em;
  min-width: 30em;
  background: #ffffff;
  box-shadow: 0.2em .2em .2em 0 rgba(0, 0, 0, .50);
  }



.flex-item {
	margin: .1em;
	padding: 0.2em;
	background: #ffffff;
	text-align: left;
	}
	

.flex-item.Galerie{
	margin: 0.5em;
	padding: 1.1em;
	background: #ffffff;
	justify-content: center;
	text-align: center;
	box-shadow: 0.1em 0.1em 0.5em 0.1em rgba(0, 0, 0, 0.5);
	max-width: 45em;
	}

.flex-item.Galeriegross{
	display: flex;
	margin: 0.5em;
	padding: 1.1em;
	background: #ffffff;
	justify-content: center;
	text-align: center;
	box-shadow: 0 .3em .3em 0 rgba(0, 0, 0, .5);
	max-width: 60em;
	}
	
.flex-item.GalerieText{
	margin: 0.2em;
	padding: 0.5em;
	text-align: left;
	display: flex; 
	flex-direction: column; 
    justify-content:center;
	max-width: 30em;
	}
	
.flex-item.Repro{
	display: flex;
	margin: 1.1em;
	padding: 1.1em;
	background: #ffffff;
	justify-content: center;
	text-align: center;
	box-shadow: 0.1em 0.1em 0.5em 0.1em rgba(0, 0, 0, 0.5);
	max-width: 50em;
	min-width: 25em;
	}
	
.flex-item.ReproEngelgross{
	display: flex;
	margin: 1.1em;
	padding: 1.1em;
	background: #ffffff;
	justify-content: center;
	text-align: center;
	box-shadow: 0.1em 0.1em 0.5em 0.1em rgba(0, 0, 0, 0.5);
	max-width: 70em;
	}
	
		
.flex-item.ReproEngelklein{
	display: flex;
	margin: 1.1em;
	padding: 1.1em;
	background: #ffffff;
	justify-content: center;
	text-align: center;
	box-shadow: 0.1em 0.1em 0.5em 0.1em rgba(0, 0, 0, 0.5);
	max-width: 22em;
	}
		

.flex-item.Buch{
	display: flex;
	margin: 1.1em;
	padding: 1.1em;
	background: #ffffff;
	justify-content: center;
	text-align: center;
	box-shadow: 0.1em 0.1em 0.5em 0.1em rgba(0, 0, 0, 0.5);
	min-width: 30em;
	max-width: 50em;
	}
	
.flex-item.Box{
	display: flex;
	margin: 1.1em;
	padding: 1.1em;
	background: #ffffff;
	justify-content: center;
	text-align: center;
	box-shadow: 0.1em 0.1em 0.5em 0.1em rgba(0, 0, 0, 0.5);
	min-width: 22em;
	max-width: 22em;
	}

.flex-item.Leseprobe{
	display: flex;
	margin: 0.5em;
	padding: 1.1em;
	background: #ffffff;
	justify-content: center;
	text-align: center;
	box-shadow: 0.1em 0.1em 0.5em 0.1em rgba(0, 0, 0, 0.5);
	min-width: 15em;
	max-width: 23em;
	}

	
.flex-item.Karte{
	margin: 1.3em;
	padding: 1.5em;
	background: #CECEBD;
	text-align: center;
	box-shadow: 0 .3em .3em 0 rgba(0, 0, 0, .3);
	max-width: 20em;
	}

.flex-item.KarteQuadrat{
	margin: 0.5em;
	padding: 1.5em;
	background: #CECEBD;
	text-align: center;
	box-shadow: 0 .3em .3em 0 rgba(0, 0, 0, .3);
	max-width: 23.5em;
	}
	
.flex-item.KarteBreit{
	margin: 1.3em;
	padding: 1.5em;
	background: #CECEBD;
	text-align: center;
	box-shadow: 0 .3em .3em 0 rgba(0, 0, 0, .3);
	max-width: 26.7em;
	}
	
.news {
  background: no-repeat top .5em right .5em #deded1;
  padding: 0 2em 1em;
  max-width: 30em;
}

.flex-container.Kontakt {
  display: flex;
  flex-direction: row;
  justify-content: center;  
  align-items: center;
  padding: 0em;
  margin: 0.2em;
  background: #ffffff;
  box-shadow: 0 .6em .3em 0 rgba(0, 0, 0, .3);
  max-width: 100em;

  }
.flex-item.Kontakt1{
	margin: 0.8em;
	padding: 1.1em;
	background: #ffffff;
	text-align: left;
	max-width: 35em;
	min-width: 17em;
	}
	
.flex-item.Kontakt {
	margin: 0.2 em;
	padding: 0.2 em;
	background: #ffffff;
	text-align: left;
	max-width: 25em;
	justify-content: center;  
	align-items: center;
	}
	
.flex-item.KontaktBild {
	display: flex;
	margin: 0.2 em;
	padding: 0.2 em;
	background: #ffffff;
	text-align: right;
	min-width: 10em;
	max-width: 20em;
	justify-content: center;  
	align-items: center;
	box-shadow: 0 .6em .3em 0 rgba(0, 0, 0, .3);
	}
.flex-container.Preis {
  display: flex;
  flex-direction: row;
  padding: 0em;
  margin: 0.2em;
  background: #ffffff;
  max-width: 40em;
  }


.flex-item.Preis {
	margin: 0.5 em;
	padding: 0.5 em;
	background: #F2F2F2;
	text-align: center;
	min-width: 10em;
	max-width: 10em;
	border-right: 0.1em solid black;
	}

.flex-item.PreisTitel {
	margin: 0.5 em;
	padding: 0.5 em;
	background: #F2F2F2;
	text-align: center;
	min-width: 17em;
	max-width: 22em;
	border-right: 0.1em solid black;
	}

.flex-item.Kunstraum{
	margin: 0.8em;
	padding: 1.1em;
	background: #deded1;
	text-align: center;
	box-shadow: 0 .6em .3em 0 rgba(0, 0, 0, .75);
	max-width: 22em;
	}
	
.Kunstraum {
  background: no-repeat top .5em right .5em #deded1;
  padding: 0 2em 1em;
  max-width: 22em;
  text-align: center;
}


.KunstraumTitel {
  background: no-repeat top .5em right .5em #ffffff;
  padding: 0 3em 0em;
  max-width: 100em;
  text-align: center;
}

.news h3 {
  color: #000;
}

.übermich {
  background: no-repeat top center  #ffffff;
  padding: 2em 7em 2em 7em;
  text-align: center;
}

.kontakt {
  background: no-repeat top center  #ffffff;
  padding: 2em 7em 2em 7em;
  text-align: left;
}

.eyecatcher{
	background: no-repeat top .5em right .5em #ffffff;
	padding: 7em;
	}

.news.kollektion {
  background-image: url('../img/');
}
.news.info {
  background-image: url('../img/');
}


.news.ich{
	margin: auto;
	width: 10em;
	height: 15em;
	background: no-repeat top center url('../img/ich.PNG');
	background-size: auto 15em;
}

aside ul,
.news ul {
  margin: 1.2em 0;
  padding: 0;
  color: black;
  list-style-position: inside;
}
aside li,
.news li {
  font-weight: normal;
  padding: .5em 0;
}
.news li span {
  color: 474747;
}
aside ul {
  color: #333;
}

/* ====================================================  NAV  ==================================================== */

nav ul {
  box-shadow: 0 .3em .3em 0 rgba(0, 0, 0, .5);
  text-align: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
}

nav a {
  background-color: #FFFFFF;
  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: #B4B49B;
 font-weight: normal;
}

nav a:hover,
nav a:focus {
  background-color: #deded1;
  color: currentColor;
}

nav a:hover::after ,
nav a:focus::after{
  color: transparent;
}


/* ====================================================  FOOTER  ==================================================== */

footer {
  margin: 2em 0;
  display: flex;
  color: #989898;
  text-align: center;
}

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: 1em 0;
}



/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 25em) {
  header {
    height: 7em;
  }
}
/* Navigationselemente werden untereinander angezeigt */
nav ul {
  display: flex;
  flex-direction: column;
}

/* 2-Spaltenlayout mit breiterem aside */
@media screen and (min-width: 45em) {
  header {
    background: #deded1;
    background-size: contain;
  }

  /* Navigation wird nebeneinander ausgerichtet. */
  nav ul {
    flex-direction: row;
    background-color: #FFFFFF;
  }

  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;
  }
}
