/* Stylesheet für Selfhtml Design 04 
  responsives Layout mit Flexbox ab Z. 262   */

/* ====================================================   GLOBAL DEFINITION   ==================================================== */

/* alternatives Boxmodell */
html { 
scroll-behavior: smooth;
 box-sizing: border-box; 
} 
*, ::before, ::after { 
  box-sizing: inherit; 
}


body {
    max-width: 95em;
    margin: 0 auto; 
	padding: 0 1em;
    font: normal 1em Arial, sans-serif;  /* Mindestschriftgröße wird dem Browser, bzw. dem Nutzer überlassen! */
	color: #88a600;
    background: #EEC591;
	position:relative;
}


/* ===== header ===== */

header.banner {
	background: #fff;	
	padding: .5em 1em;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	border-radius: 0 0 1em 1em;
}

img {
  width: calc(100% );
 
}


header a#navlink {
	display: block;
	float: right;
	color: #000;
	text-decoration: none;
	font-size: 2em;
	font-weight: bold;
}
		
/* ===== content / Inhalt ===== */
	
main {
	padding: 1em;
	background: #fff;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	border-radius: 1em;  
}


a {
	color: #000; 
}

a:hover {
	color: #000;
        text-decoration : none;
}

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;
}

h1 {
font-size : 1.4em;
text-transform : Helvetica, sans-serif;
text-shadow : 1px 1px 2px black;
text-align : center;
color : red;
background-color : transparent;
}

h2 {
	color: #fff;
	padding: .5em;
	margin: 0;
	background: red;
	border-radius: .5em;
	box-shadow: 0 3px 0 #708900;
}

h3 {
font-size : 1.0em;
text-transform : Helvetica, sans-serif;
text-align : center;
border-bottom : 1px solid #EBEBEB; 
color : #000;
background-color : transparent;
}
h4 {
color : white;
background : red;
box-shadow : 0.1em 0.1em 0.1em 0 hsl(0, 0%, 50%);
text-shadow : 1px 1px 2px black;
padding : 0.2em 0.2em 0.2em 2em;
width : 85%;
margin-left : -1.1em;
border : #666 solid 1px;
}
h5 {
text-align : left;
color :  #000080;
border-bottom : 1px solid #c0c0c0;
}

h6 {
font-size : 1.5em;
text-transform : Helvetica, sans-serif;
text-shadow : 1px 1px 2px black;
text-align : left;
color : orange;
padding : 5px 35px;
margin : 0;
}

.akzentfarbe1 {
	color: red;
}


.akzentfarbe2 {
	color: orange;
}

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;
	padding: 0 0 4em;     /* Platz für abslout positionierte Buttons */
}


section p {
	padding: 0.5em 1em;
}

section p:first-of-type {
	font-weight: bold;
	color: #708900;
}

section img {
  width: calc(70% - 1em);
  margin: 0.1em 3.5em 0.5em;
}

aside {
}

section a.button {			
	position: absolute;	/* So werden Buttons immer an der gleichen Stelle, unabhängig vom vorhandenen Inhalt, positioniert */
	right: 1em;
	bottom: 1em;
}

section ul {
	margin: 1em 0 0 3em;
}
		
section li {
	
	margin: 0.5em 0 1em 2em;
}
section li i {
	color: #000; 
}

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(#000, #fff);	   
}		


/* ===== Footer ===== */
	
#social {
	float: left;
}

#social li {
	margin: 0 20px 0 0;
	display:inline-block;;
}
	
footer p {
color : black;
}
	
footer #copyright {
	float: right;
}

/* ===== responsives Layout ===== */

/* Mobile first! 1-Spaltenlayout  */


/* 2-Spaltenlayout, sobald der Platz es erlaubt  */

@media only screen and (min-width: 40em) {
  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: 60em) {
  main {
	grid-template-columns: repeat(3, 1fr);
  }

	main header,
	main footer {
	  grid-column: span 3;
	}

	article{
	  grid-column: span 2;		
	}
}

/* Flexbox Fallback wenn der  Browser kein display:grid unterstützt. */
@supports not (display: grid) {
  main {
    display: flex;
    flex-flow: row wrap;
  }

main > * {
  flex: 1 100%;      /* Alle Elemente werden über 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%;
}
}







