/* ====================================================   GLOBAL DEFINITION   ==================================================== */
:root {
  --me-bgcolor:   rgba(200,200,200,1);   /** Basis        **/
  --me-txtcolor:  black;                 /** Schrift    **/
  --me-color0:    rgba( 98, 98, 98,1);   /** dunkler 1    **/
  --me-color1:    rgba( 99, 87, 76,1);   /** dunkler 2    **/
  --me-color2:    rgba(203,239,249,1);   /** highlight 1  **/
  --me-color2a:   rgba(203,239,249,0.5);
  --me-color3:    rgba(176,198,196,1);   /** highlight 2  **/
  --me-color3a:   rgba(176,198,196,0.5);   
  --me-color4:    rgba(255,255,255,1);   /** sehr hell    **/

}


/* alternatives Boxmodell */
html { 
  box-sizing: border-box; 
} 

*, ::before, ::after { 
  box-sizing: inherit; 
}

body {
    max-width: 60em;
    margin: 0 auto; 
	  padding: 0 1em;
    font-family: 
     -apple-system,        /** Safari for OS X and iOS (San Francisco) **/
     BlinkMacSystemFont,   /** Chrome < 56 for OS X (San Francisco) **/
     "Segoe UI",           /** Windows **/
     Roboto,               /** Android **/
     "Helvetica Neue",     /** Basic web fallback **/
     Arial, 
     sans-serif;
	  color:  var(--me-txtcolor);
    background-color: var(--me-bgcolor);
	  position:relative;
}


/* ===== header ===== */

header.banner {
	background: var(--me-color0);
  color: var(--me-color2);
  margin-top: 0.2em;
	padding: .5em 1em;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	border-radius: 1em;
  letter-spacing: 0.3em;
}
header h1 {font-size:2.2em;}
header h2 {font-size:1.5em;}
header h3 {font-size:1.2em;}
header h4 {font-size:1.0em;}

locked  { font-size:50%;
          position:absolute;
          bottom:1.5em;
          right:2.5em;
}

/* =======  Inhalt ======== */
	
main {
	padding: 1em;
	background: #fff;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	border-radius: 1em;  
}

a {
  text-decoration:none;
}
a:hover,
a:focus {
	color: red; 
}

a.button{
	background: #97b314;
	font-weight: bold;
	box-shadow: 0 0 20px #c3d34e inset, 0 2px 1px rgba(0,0,0,0.2);
	color: #fff;
	padding: 0.5em;
	border-radius: .5em;
	text-decoration: none;	
}
a.button:hover,
a.button:focus {
	background: #708900;
}

#button-container {
 position:absolute; 
 right:0.6em; 
 top:2.4em;
}

div#button-container {margin:1.5em;}
  div#button-container button  {    
      font-size:0.8em;
      letter-spacing: 0.05em;
      padding: 8px 10px;
      width: 75px;
      border: 1px solid var(--me-color3);
      background:  var(--me-color1) linear-gradient( var(--me-color3), var(--me-color2), var(--me-color1));
      border-radius: 4px 4px 4px 4px; 
      text-shadow: 0 -1px 1px #333; 
      cursor: pointer;
    }
  div#button-container button img    { height:18px; border:none;  }
  div#button-container button:hover  { background:linear-gradient(rgba(255,0,0,0.4),rgba(255,0,0,0.6),rgba(255,0,0,0.8),red,rgba(255,0,0,0.8)); }

.fmcImg   {height:18px; padding-left:3em;}
.fmcCnt   {padding:0 0.2em; font-size:0.5em; font-weight:normal; letter-spacing:0; color:rgba(255,105,105,1);}

  
aside,
section {
	box-shadow: 0 0 80px rgba(0,0,0,0.1) inset, 0 3px 1px rgba(0,0,0,0.15);
	border-radius: 1em;
	position: relative;
}

aside h2,
section h2 {
	color: var(--me-color0);
	padding: .5em;
	margin: 0;
	background: var(--me-color2);
	border-radius: .5em;
	box-shadow: 0 3px 0 var(--me-bgcolor);
  display: flex;
  justify-content: center; 
}

section p {
	padding: 0.5em 1em;
}

section p:first-of-type {
	font-weight: bold;
	color: #708900;
}

section img {
  padding:0.5em;
  width: calc(100% - 1em);
}

section a {
  text-decoration:none;
}



section a.button {			
	position: absolute;	/* So werden Buttons immer an der gleichen Stelle, unabhaengig vom vorhandenen Inhalt, positioniert */
	right: 1em;
	bottom: 1em;
}

#search i {
	position: absolute;
	top: 1.2em;
	left: 1.75em;
	color: #bebebe;
}

section ul {
	margin: 1em 0 0 3em;
}
		
section li {
	font-weight: bold;
	margin: 0.5em 0 1em 2em;
}
section li i {
	color: #97b314; 
}

dl.grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr);
  padding: 0.5em;
}
dd { 
  margin: 0; 
  padding-left: 1em; 
}
dl.grid dd {
  margin-bottom: 1em;
}



/* ===== Navigation ===== */

#navigation li {
	display: block;
	list-style: none;
	margin-right: .5em; 
	width: 90%;
}

#navigation a {
	display: block; 
	text-decoration: none;
	padding: 0.5em 1em;
	background-color: #fff;
	border-radius: .5em .5em 0 0;	
}

#navigation a[aria-current=page] {
	font-weight:bold;
  background: linear-gradient(rgba(195,214,106,0.95), #fff);
}

#navigation a:hover,
#navigation a:focus, 
#navigation a:active  {
	color: white;
  background: linear-gradient(#97b314, #fff);	   
}		

/* ===== Footer ===== */

footer #kontakt {
	float: right;
  font-size:70%;
  color: color:var(--me-color0);
}

/* ===== responsives Layout ===== */

/* Mobile first! 1-Spaltenlayout  */


/* 2-Spaltenlayout, sobald der Platz es erlaubt  */

@media only screen and (min-width: 30em) {
  main {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap:1em;
	position: relative;
	margin: 3em auto 1em;
  }
  
  article {
	grid-column: span 2;
  }
  
  header a#navlink {
	display: none;
  }

  #navigation  {
    position: absolute;
    top: -3em;
  }
  
  #navigation li {
	display: inline-block;
	width: auto;
}

#navigation a {
	display: inline-block; 
}

/* 3-Spaltenlayout, sobald der Platz es erlaubt  */
@media only screen and (min-width: 40em) {
  main {
	grid-template-columns: repeat(3, 1fr);
  }

	main header,
	main footer {
	  grid-column: span 3;
	}

	article{
	  grid-column: span 2;		
	}
}

/* 4-Spaltenlayout, sobald der Platz es erlaubt  */
@media only screen and (min-width: 50em) {
  main {
	grid-template-columns: repeat(4, 1fr);
  }

	main header,
	main footer {
	  grid-column: span 4;
	}

	article{
	  grid-column: span 2;		
	}
}

/* Flexbox Fallback wenn der  Browser kein display:grid unterstuetzt. */
@supports not (display: grid) {
  main {
    display: flex;
    flex-flow: row wrap;
  }

main > * {
  flex: 1 100%;      /* Alle Elemente werden ueber die volle Breite dargestellt */
} 

article {
  flex: 1 64%;      
  margin: 1%;
}
section,
aside {
  flex: 1 31%;      /* Diese Elemente erhalten eine Breite von 1/3.  */
  margin: 1%;
}
}
