/* 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; 
	max-width: 60em;	/* Startbreite der Seite
	padding: 0 0em;
    	font: normal 1em Arial, sans-serif;  /* Mindestschriftgröße wird dem Browser, bzw. dem Nutzer überlassen! */
 	background: #FAF3DD; 		/* Hintergrundfarbe */
	background-image: url("img/LogoTransparent.png");
	background-repeat: no-repeat;
	background-size: 80em;
	background-position: center top;

	color: #333333;			/* Schriftfarbe - Dunkelgrau */
}

/* ===== header  / Seitenkopf ===== */

header {
 	border: 0px solid #ddd;
	height: 9em;
	padding: 0 0em;
	margin: 0;
	margin-bottom: 0em;
  	display: grid;
  	grid-template-columns: 4fr 1fr;

}

img.abgerundet {
  border: 5px solid #ddd;
  border-radius: 10px;
  padding: 0px;
  width: 150px;
}

img.Logo {		/* Logo */
	position: relative;
	top: 0em;
	right: 0em;
	border: 0px solid #ddd;
	border-radius: 0px;
	padding: 0px;
	width: 160px;
}

img.Baerchen          /* Schriftzug Bärchenstube */
 	{
		position: relative;
		top: 0em;
		right: 0em; 		

		width: 40em;
		border: 0px solid #ddd;
	}

#logo {
 display:inline-block;
 text-shadow: none; 
 color: transparent;
/* background: url(../img/logo.svg);
 background-size: contain;
 width: 4em;
 height: 4em;*/
}

header svg {
  font-size: 2em;
	width: 15em;
  padding: 0 0em;
  color: #FFFFFF;	
}

header text {
	font-family: CommercialScript BT;
	font-size: 2em;
	font-weight: normal;
	font-style: normal;
	fill: red;
	stroke-width: 1px;
	text-anchor: start   /* entspricht text-align:center; */
}

#skiplink {
	display: inline-block;
	float: right;
	color: #09c;
	font-weight: bold;
}

/* ===== content / Inhalt ===== * #3983ab;/

a {
	color: #FFFFFF;
}

a:hover,
a:focus {
	background: #000000;			/* #e6f2f7 */
	font-weight: normal;
}

section h2 {
	padding-left: 0em;
}

/* ===== #main-navigation ===== */

#main-nav {
	overflow: hidden;
	position: relative;
	padding: 0 0 0 1.5rem; 
	margin-bottom: -.2em;
}

#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 -1.5rem; /* pull to left to overlap tabs */
	position: relative;
	padding: 0;
}

#main-nav a {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
	color: #1E3A5F;  		/* #1E3A5F Farbe Text obere Navigation */
	text-decoration: none;
	padding: 1em;
}

#main-nav svg {
    position: absolute;
	height: 100%;
	width: 100%;
    top: 0;
    left: 0;
    pointer-events: none; /* SVG eats clicks weird */
	z-index: 0;
  }

#main-nav a use {
	fill: #FCC37E;			/* #FFA54F Füllung obere Navigation - nicht aktiv */
	stroke: #E5954E;		/* Umrandung obere Navigation */
	stroke-width: 1;
}  

#main-nav a[aria-current=page] {
  z-index: 3;
}

#main-nav a[aria-current=page] use {
  fill: #E5954E;			/* CD853F Füllung obere Navigation - aktiv */
}

#main-nav span {
    position: relative;
    padding: 0.5rem 0 0 0rem; /* position the text */
    display: inline-block;
    width: 100%;
    height: 100%;
  }

#main-nav a:hover,
#main-nav a:focus{
	background: transparent;
	z-index: 4;
}

#main-nav a:hover span ,
#main-nav a:focus span {
	color: #1E3A5F; 		/* Farbe Text obere Navigation beim drüberfahren */
	font-weight: bold;
}

/* teaser */
[role="complementary"] {
	position: relative;
	display: block;
}

[role="complementary"] img {
	width: 45%;
	border-radius: 2em 0;
}

[role="complementary"] figcaption h2,
[role="complementary"] figcaption p {
	display: table;
	padding: 0.5em 1em;
	margin: 0 0 0.5em; 
	background: #c32e04; 
	color: #fff;
	font-weight: bold;
	text-shadow: 0 2px 0px rgba(0,0,0,0.3);
}
	
[role="complementary"] figcaption h2 {
	border-radius: 1em 0 0 0;
}
	
[role="complementary"] figcaption p:last-child {
	border-radius: 0 0 1em 0;
}	

		
/* Layout   */

main {
	display: block; /*für alte IE9-11 */
	padding: 1em;
}

/* 2-Spaltenlayout */
@media only screen and (min-width: 40em) {

main {
	border: 0.5em solid #E5954E;  		/* Umrandung */
	border-radius: 0 0 5em;
	display: grid;
	grid-template-columns: 1fr 3fr;
  	grid-template-rows: repeat(4, min-content);		
	grid-gap: 1em;	
	min-height: 65em;
}		

main h1,
[role="complementary"] {
	grid-column: 1 / 5;
}

[role="complementary"] {
	grid-row: 2 / 4;
}
	
[role="complementary"] figcaption {
	position: absolute;
	left: 40%;
	top: 1em;
}
}



@media only screen and (min-width: 50em) {
	#news {
		grid-column: 2 / 3;	
		grid-row: 3 / 4;	
	}
}
	
footer p {
	float: right; 
	clear: both;
	text-align: right;
}
footer p span {
	display:block;
	text-align: right;
}

.box {
	width: 11em;
	color: #1E3A5F;			/* seitliche Navigation - Farbe Text - nicht aktiv */
	background-color: #B3ED79;     	/* seitliche Navigation Boxen - nicht aktiv 66FF33*/
	border: 0.2em solid #B3ED79;	/* Farbe Umrandung seitliche Boxen - nicht aktiv */
	border-radius: 0.5em 0.5em 0.5em 0.5em;
	margin: 0.1em;
	padding: 0.5em;

}

.boxAktiv {
	width: 11em;
	color: #1E3A5F;			/* seitliche Navigation - Farbe Text - aktiv */
	background-color: #66CC33; 	/* seitliche Navigation - aktiv 66CC33 */
	border: 0.1em solid #66CC33; 	/* Farbe Umrandung seitliche Boxen - aktiv */
	border-radius: 0.5em 0.5em 0.5em 0.5em;
	margin: 0.1em;
	padding: 0.5em;
}

a.eins {
  text-decoration: none;
  border-bottom: 0.2em dotted blue;
}

#second-nav a {
    position: relative;
    display: inline-block;

	color: #00FF00; 
	text-decoration: none;
	padding: 0em;
}

#second-nav a:hover,
#second-nav a:focus{
	background: transparent;
 	font-weight: bold
	background: #FFFFFF;
	z-index: 4;
}

#second-nav a:hover span ,
#second-nav a:focus span {
	color: #1E3A5F;		/* seitliche Navigation - Farbe Text beim drüberfahren */
	font-weight: bold;
}
