/* Stylesheet für Nährstoffcoach - responsives Layout mit Flexbox  */

/* ====================================================  GLOBAL DEFINITION  ==================================================== */

/* alternatives Boxmodell */
html { box-sizing: border-box;}
*, *::before, *::after {box-sizing: inherit;}

/* Farbfestlegungen nur als Fallback für IE9-11
   custom properties für alle anderen!            */
body {
  max-width: 65em;
  margin: 0 auto;
  padding: 0 1em;
  font: normal 1em Arial, sans-serif;
  color: var(--accent1-color);
  background-color: var(--background-color);
}

p, ol, ul, dl {
	color: #333;
    color: var(--font-color);
}

:root {											/* :root - strukturelle Pseudoklasse, die Wurzel eines Dokumentes, überschreibt andere Spezifikationen */
  --background-color: #f9f8eb;  		    	/* beige - Hintergrund der ganzen Seite weiß: #fffff; */
  --background2-color: #dee6ef;					/* Hintergrund Kopf und Footer*/
  --background3-color: black 	/* #ccc; */		/* silber - Schriftfarbe Footer für Design+technische Umsetzung	*/	
  --accent1-color: #dee6ef; 					/* hellblau 4 = Hintergrund Footerbalken*/
  --accent2-color: darkblue;
  --accent3-color: #eeeeee; 					/* silber - Hintergrund bei hover */
  --accent4-color: darkblue;       	     		/* Schriftfarbe für Footer */
  --font-color:  black; 						/* Schriftfarbe normaler Text und hover-Schrift in Navigationszeile*/
  --font2-color: #666;							/* grau - Schriftfarbe der Überschriften */
  --link-color: darkblue; 						/* Farbe für Links z.B. Email-Adresse */
}


/* ====================================================  HEADER  ==================================================== */

header {
  background: var(--background-color)  ;
  border: thin solid darkblue;
  border-radius: .5em;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: 50px 1fr 100px; 
 /* grid-template-columns: .5fr 5fr .5fr; */
  gap: 1em 1em;
  /*padding: .5em;  */   /* Headerbalken wird ganz oben von der Seite platziert */
  img {
		
		padding-top: 0em;
	} 
}

header h1 a {
  padding: .2em .2em .2em 2em;
  height: 30em;
  font: normal 2.2em/150% Gabriola, Times, serif;
  text-decoration: none;
  color: darkblue;
  border: 1px solid transparent;
}

/* ====================================================  CONTENT  ==================================================== */

h1, h2 {
  color: var(--font2-color);
}

a:hover, a:focus {
  font-weight: bold;
  background-color: var(--accent3-color);
}

a.more {
  float: right;
}

a.more::before {
  content: "►";  
  margin-right: .5em;
  display:inline-block;
	text-decoration: none;    
}

a.more:hover, a.more:focus {
  color: var(--accent1-color);
}

h2.img {
  padding-left: 2.5em;
}

img, a img {
  border: 0 none;
  }


.grid {
	max-width: 65em;
    display: grid;
	grid-template-columns: 50fr 50fr;	/* Größenverhältnis der beiden Bilder in Kräuterführungen+Workshops */
	gap: 1em;						    /* Abstand zwischen den Bildern in Kräuterführungen+Workshops */ 
}

.grid img {width: 100%;}

.landscape {width: 100%;}

blockquote {
	margin: auto;
	font: 2em/1.3 Georgia, serif;
	text-align: center;
}
blockquote p {
	 margin: 0;
}
 
blockquote cite {
	 margin-top: 1rem;
	 font: 1rem/1.2 Helvetica, Arial, sans-serif;
}
blockquote::before,
blockquote::after {
	content: '';
	display: block;
	height: 2em;
	width: 100%;
	background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22-6%200%2012%204%22%3E%3Ctext%20x%3D%220%22%20y%3D%222%22%20text-anchor%3D%22middle%22%20font-family%3D%22Georgia%22%20font-size%3D%223%22%20fill%3D%22hsl%28224%2C%2060%25%2C%2060%25%29%22%3E%E2%80%9E%3C%2Ftext%3E%3Cg%20stroke-width%3D%220.1%22%20stroke%3D%22hsl%28224%2C%2060%25%2C%2060%25%29%22%3E%3Cline%20x1%3D%226%22%20x2%3D%221.5%22%20y1%3D%222%22%20y2%3D%222%22%2F%3E%3Cline%20x1%3D%22-6%22%20x2%3D%22-1.5%22%20y1%3D%222%22%20y2%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E');
	/* <svg xmlns="http://www.w3.org/2000/svg" viewBox="-6 0 12 4"><text x="0" y="2" text-anchor="middle" font-family="Georgia" font-size="3" fill="hsl(224 60% 60%)">„</text><g stroke-width="0.1" stroke="hsl(224 60% 60%)"><line x1="6" x2="1.5" y1="2" y2="2"/><line x1="-6" x2="-1.5" y1="2" y2="2"/></g></svg> */
	
	background-position: center;
	background-repeat: no-repeat;
	align-self: center;
}

blockquote:lang(en)::before,
blockquote:lang(de)::after {
	transform: rotate(0.5turn);
}

hr.style-1 {
	border: 0;
	height: 5px;
	background-image: linear-gradient(to right, rgba(0, 0, 128, 0), rgba(0, 0, 128, 0.75), rgba(0, 0, 128, 0));
} 

.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .5em;
	border: thin dotted red;
}

.gallery figure {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2em;
	margin: 0;
	/* sonst großer Rand wg. Default-Stylesheet */
}

.fullwidth {
	grid-column: 1 / -1;
	border: thin dotted hotpink;
}

.gallery figure > img,
.gallery figure >figcaption {
	border: thin solid;
}

.gallery figure > img {
	margin-left: 2em;
}

.gallery figure > figcaption {
	align-self: center;
	/* oder stretch */
	
	padding: 1em;
}



article > h1 {
	font: bold 2.2em/150% Gabriola, Times, serif;
} 

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: ":";
}

table {
	border-collapse: separate;
	border-spacing: 0.5em;
}

th,
td {
	padding: 0.1em 1.5em;
}

#impressum h3 {
	font-weight: bold
}


/* ====================================================  NAV  ==================================================== */

nav ul {
/*box-shadow: -0.3em .6em .6em 0 rgba(0, 0, 0, .75);*/
  text-align: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
  border-radius: .5em;
}

nav a {
  background-color: #dee6ef; /*#81c784; */	/* Hintergrund der Navigations-Beschriftung */
  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: darkblue;			/* Schriftfarbe Navigation aktive Seite */
 font-weight: bold;
}

nav a:hover,
nav a:focus {
  background-color: var(--accent3-color);
  color: currentColor;
}

nav a:hover::after ,
nav a:focus::after{
  color: transparent;
}


/* ====================================================  FOOTER  ==================================================== */ 
footer {
  background-color: var(--background2-color);
  box-shadow: -0.3em .6em .6em 0 rgba(0, 0, 0, .75);
  margin: 2em 0;
  padding: 0.5em 1em;
  display: flex;
  border-radius: .5em;
}

#Zert {                          /* Nährstoff-Zertifikat mittig positionieren */
	padding: 0.5em 15em;
    display: flex;	
}

#copyright {
	padding-right: 0;
	margin-right: 0;
}


/* Copyright an richtiger Stelle */
footer ul, 
footer p
 {
  flex: 1 1 100%;
  color: var(--background3-color);
}
/* linker Teil der Fußzeile am linken Rand ausrichten */
footer ul {
  padding-left: 0;
  margin-left: 0;
}
/* Fußzeile horizontal ausrichten */
footer li  {
  list-style-type: none;
  display: inline-block;
  border-left: .2em solid #ccc;
  padding: 0 .5em 0 .7em;
}
/* Trennungsstrich erscheint nicht links des ersten Textes */
footer li:first-child  {
  border-left-color: transparent;
}
/* Textfarbe für Fußzeile */
footer a {
  color: var(--accent4-color);
}

footer a:hover, footer a:focus {
  color: var(--accent1-color);
}

footer p {
  margin-top: 0;
  padding-top: 0;
  text-align: right;
  color: var(--accent4-color);
}


/* ====================================================  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-size: contain;
 }

  /* Navigation wird nebeneinander ausgerichtet. */
  nav ul {
    flex-direction: row;
 }

  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;
  }

  article li {
	  font: 1.3em/1.3 Georgia, serif;
  }
  
  #erkl1 {
	font: 1.5em/1.3 Georgia, serif;
	text-align: center;
  }
  #erkl2 {
	font: 1.3em/1.3 Georgia, serif;
	text-align: center;
  }
  #erkl3 {
	font: bold 1.3em/1.3 Georgia, serif;
	text-align: center;
  }
  #üm, #motiv {
	font: 1.3em/1.3 Georgia, serif;
	text-align: left;
  }
  
  #about {
    flex: 1 30%;
    margin: 1%;	  
    background-color: #eee;
    border: 1px solid darkgreen;
    padding: 1em;
    height: 23em;
  }
  
  #impressum {
    flex: 1 60%;
    margin: 1%;
}

  aside p {
    margin-bottom: 3em;
  }
  aside p:last-child {
    margin-bottom: 1.2em;
  }
}


