/* Stylesheet für Selfhtml Design 03 
  responsives Layout mit Grid Layout ab Z. 210   */

/* ====================================================   GLOBAL DEFINITION   ==================================================== */

/* alternatives Boxmodell */
html { 
  box-sizing: border-box; 
  background: #EEE2CA;	
} 

*, ::before, ::after { 
  box-sizing: inherit; 
}

body {
	max-width: 70em;
	margin:0 auto;
	padding: 0;
	background: #ff0000;	
	color: #333; 
	font: normal 1em Arial, sans-serif;  /* Mindestschriftgröße wird dem Browser, bzw. dem Nutzer überlassen! */
                    
}


 
/** CONTENT **/

main {
	margin: 0 10 1em;
	padding: 1em;
	background: #ffffff;
}

h1,
h2 {
	font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; 
	padding-left: 0em; 
	color: #666; 
	
}
	
h2 span {
	font-size: 0.50em; 
	color: #818181; 
	text-transform: none;
}

h3	{ 
	font-size: 1.25em; 
	font-weight: bold; 
	padding: 0px; 
	margin: 0px; 
	color: #666; 
}		

p {
	text-align: left; 
	line-height: 1.6em; 
	padding: 3px 0px;
	margin-right: 3em;

}

a 	{ 
	color: #01aaad; 
	outline: none; 
	text-decoration: none; 
}


a.more	{ 
	float: right; 
	font-weight: bold; 
}

a.more:after{
	content:" \2192 ";
	font-size:1.2em;
	font-weight:bold;
}

ul.square {
	list-style-type:square;
    color: #999999;
    margin: 0 0 0.5em 0.5em;
	font-size: 0.8em;
	font-weight: bold;
}

ul.square li{
	padding:10px;	
}

/*DL, DT, DD Datenliste*/
dl.grid { 
  display: grid; 
  grid-template-columns: 1fr 100%; 
}
dd { 
  margin: 0; 
  padding-left: 1em; 
}

dd span:first-child {
  display: inline-block;
  width: 4em;
}

dl.grid dd {
  margin-bottom: 1em;
}

a[href^="tel"] { white-space: nowrap; }

ul#footer-nav li { 
	list-style-type: none;  
	displaY: inline;
	padding: 0 0.5em; 
	border-right: 1px  solid #ACACAC; 
}

footer {
	display: grid;
    grid-template-columns: repeat(2, 1fr);	
	padding: 1em;
}

ul#footer-nav  li:last-child { 
	border: none; 
}	

ul#footer-nav img {
	width: 1.5em;
}

ul#footer-nav a:hover,
ul#footer-nav a:focus, 
ul#footer-nav a:active {
	background: white;
}

footer p {
	text-align: right;
}

/** Navigation **/

nav#navigation{
		margin: -1em  0em  0em -3.5em;
}
	
#navigation ul {
    list-style-type: none;
    width: 100%;
	margin-bottom:15px;
}

#navigation ul li.first-child	{ border-top: 1px #DBDBDB solid; }


#navigation ul li a {
	display: block;
    border-bottom: 1px solid #4e7a92;
    font-size: 0.9em;
    line-height: 1em;
    padding: 0.5em 20px;
    text-decoration: none;
	width: 21.5em; 
}


		
nav a[aria-current=page]{
 background: #01aaad;
 color: white;
}



/* ========== repsonsives Grid-Layout ========== */

/* mobile first - auf schmalen Bildschirmen wird alles untereinander platziert. */ 

/* ab einer Breite von 30em haben zwei Spalten nebeneinander Platz: */

@media (min-width: 30em) { 
  main {
  	display: grid;	  
    grid-template-columns: repeat(2, 1fr);
	grid-gap: 1em;
  }

  nav {
    grid-column: 1 / 2;
  }
  
  #intro {
    grid-column: 2 / 3;
    grid-row:    1 / 2;					
  }

  article {
    grid-column: 2 / 3;
  }  
  
  .spalte img {
     width: 50%;
	 float: left;
	 margin-right: 0.5em;		
  }
}



@media (min-width: 50em) { 
  main {
    grid-template-columns: repeat(3, 1fr);
 }
 
  nav {
    grid-row: 1 / 4;
  } 

  #intro {
    grid-column: 2 / 4;
    grid-row:    1 / 2;					
  }

  article {
    grid-column: 2 / 4;
  }    
  
   aside {
    grid-column: 3 / 4;
    grid-row: 1 / 2;	
  }   
  
  .spalte {
    grid-row:    2 / 3;					
  }
    
  .spalte img {
     width: 33%;
  } 
}