/* Stylesheet für Selfhtml Design 05 
  responsives Layout mit Grid Layout ab Z. 249   */

/* ====================================================   GLOBAL DEFINITION   ==================================================== */

/* alternatives Boxmodell */
html { 
  box-sizing: border-box; 
} 

*, ::before, ::after { 
  box-sizing: inherit; 
}

body {
    margin: 0 auto; 
	padding: 0 1em;
    font: normal 1em Arial, sans-serif;  /* Mindestschriftgröße wird dem Browser, bzw. dem Nutzer überlassen! */
/*	font: normal 1em Courier; */
	color: #333;
    background: #fffbf0;
	background-image: url("../images/bg0.jpg"); 
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	position:relative;
}

/* ===== header  / Seitenkopf ===== */

header {
	height: 6em;
	padding: 1em;
	margin-bottom:5em;
  	display: grid;
  	grid-template-columns: 6em 3fr 1fr;
}

h1green {
  color: #3cb371;
  text-align: center;
  font-size: 1.5em;
}

h2green {
  color: #3cb371;
  text-align: center;
  font-size: 2em;
}

.blink {
                animation: blinker 1.5s linear infinite;
                color: red;
                font-family: sans-serif;
            }
            @keyframes blinker {
                50% {
                    opacity: 0;
                }
            }


.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#logo {
 display:inline-block;
 text-shadow: none; 
 color: transparent;
 background: url(../img/logo.svg);
 background-size: contain;
 width: 5em;
 height: 5em;
}

header svg {
  font-size: 2em;
  padding: 0 1em;
  color: #c32e04;
}

header text {
	font-family: 'Arial';
	font-size: 2em;
	font-weight: bold;
	fill: none;
	stroke-width: 3px;
}

#skiplink {
	display: inline-block;
	float: right;
	color: #09c;
	font-weight: bold;
}

/* ===== content / Inhalt ===== */

a {
	color: #3983ab;	
}

a:hover,
a:focus {
	background: #e6f2f7;
	font-weight: normal;
}


/* ===== #main-navigation ===== */

#main-nav {
	overflow: hidden;
	position: relative;
	padding: 0 10 0 1rem; 
}

#main-nav ul {
	list-style: none;
	position: relative;
	color: white;
	margin: 0;
	padding: 0;
}

#main-nav li {
	display: inline-block;
	width: 12rem;
	margin: 0 0 0 -1rem; /* pull to left to overlap tabs */
	position: relative;
	padding: 0;
}

#main-nav ul li:hover a {
	color: #fff;
}
		
#main-nav a {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
	color: white; 
	text-decoration: none;
	padding: 1em;
}

#main-nav svg {
    width: 100%; /* tab shape should stick out past clickable box */
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none; /* SVG eats clicks weird */
  }

#main-nav li:first-child use {
	fill: #c32e04;
}  
#main-nav li:nth-child(2) use {
	fill: #dfac20;
}  
#main-nav li:nth-child(3) use {
	fill: #5a9900;
}  
#main-nav li:nth-child(4) use {
	fill: #3983ab;
}  
  
#main-nav span {
    position: relative;
    padding: 1rem 0 0 2.3rem; /* position the text */
    z-index: 2;
    display: inline-block;
    width: 100%;
    height: 100%;
  }

#main-nav a:hover,
#main-nav a:focus{
	background: transparent;
	color: black;
	z-index: 3;
}

#main-nav a[aria-current=page]{
  color: #dfac20;
}


#main-nav a:hover span ,
#main-nav a:focus span{
	color: black;
	font-weight: bold;
}
		
		

main {
	display: block; /*für alte IE9-11 */
	max-width: 65em;

}

footer {
	max-width: 65em;
}			




