/* Stylesheet für WebSite V/METIK
  responsives Layout mit Grid Layout ab Z. 210   */

/* ============================================   GLOBAL DEFINITION   ============================================ */

/* alternatives Boxmodell */

html {
  box-sizing: border-box;
  background: #dcdcdc ;
}

*, *::before, *::after {
	box-sizing: inherit;
}

body {
  max-width: 75em;
  margin: 0em auto;
  padding: 0em;
  background: white;
  color: black;
  font: normal 1.2em DejaVu Liberation Arial sans-serif;   /* Mindestschriftgröße wird dem Browser, bzw. dem Nutzer überlassen! */
  }

/* ====================================================   HEADER   ================================================ */

header {
  position: relative;
  height: 160px;
  margin: 2em 0em 0em 3em;
  background: white url("../img/schriftzug_v-metik.jpg") no-repeat left center / contain;
  padding: 0 0 0.5em;
}

header a h1,
header a p {		/*Die Angaben für h1 müssen mit einem genauen Selektor überschrieben werden. */
  color: white;
  border-right: 0em;
  padding: 0em;
  display: table;	   /* Überschriften und Absätze sind sonst immer 100% breit, durch display:table und display: inline-block; für das Elternelement a.ribbon wird das Banner nur so breit wie nötig. */
  font: normal 1em DejaVu Liberation Arial sans-serif;
}

/*======================================================CONTENT======================================================*/

main {
  margin: 0em 0em 1em;
  padding: 1em;
  background: white;
  font-family: DejaVu, Liberation, Arial, sans-serif;
}

h1, h2 {
  font-family: DejaVu, Liberation, Arial, sans-serif;
  padding-left: 1em;
  color: black;
  text-transform: none;
  border-left: 5px solid #000099;
}

h1 span {
  font-size: 0.8em;
  color: black;
  text-transform: none;
}

h2 span {
  font-size: 0.7em;
  color: black;
  text-transform: none;
}

h3 {
  font-size: 1.25em;
  font-weight: normal;
  padding: 0px;
  margin: 0px;
  color: black;
}

p {
  text-align: left;
  line-height: 1.6em;
  padding: 1em 0em;
}

a {
  color: #000099;
  outline: medium none;
  text-decoration: none;
  font-weight: bold;
}

/*=================Liste mit Kinderelementen für Text mit zugeordneten Bildern=====================================*/

* {
	margin: 0em;
	padding: 0;
}

ul {
	list-style-type: none;
	/*width: 30em;*/
}

/*li h3 {
	font: bold 1.2em/1.5 Helvetica, Verdana, sans-serif;
}*/

li img {
	float: right;
	margin: 2em 1em 1em 1em;
	width: 50%;
}

/*li p {
	font: 100 1em/1.5 Georgia, Times New Roman, serif;
}*/

li {
	padding: 0em;
	overflow: auto;
	color: black;
}

/*li:hover {
	background: #F1F3F4;
	cursor: pointer;
}*/

/* ===================Durch Maus oder Tastatur angewählte Verweise werden sichtbar gemacht ======================*/

a:hover, 		
a:focus {
  color: black;
  text-decoration: none;
  background-color: #dcdcdc;
  cursor: pointer;
}

a.more {
  font-size: 1em;
  float: right;
  font-weight: bold;
}

a.more:after {
  content: " ";
  font-size: 1em;
  font-weight: bold;
}

a.header:hover,
a.header:focus {
  background-color: transparent;
  cursor: pointer;
}

ul.square {
  list-style-type: square;
  color: #000099;
  margin: 0em 0em 0.5em 0.5em;
  font-size: 1em;
  font-weight: bold;
}

ul.square li {
  padding: 0.5em;
}

/*================================================DL, DT, DD Datenliste=============================================*/

dl.grid {											
  display: grid;
  -webkit-grid-template-columns: 1fr 100%;
  grid-template-columns: 1fr 100%;
}

dd {
  margin: 0px;
  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: 0em 0.5em;
  border-right: 2px solid #000099;
}

footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);	
  padding: 1em;
  font-family: DejaVu, Liberation, Arial, sans-serif;
}

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;
  cursor: pointer;
}

footer p {
  text-align: right;
}

footer a {
  color: black;
}

/*===============================================NAVIGATION===========================================================*/

nav#navigation {
}

#navigation ul {
  list-style-type: none;
  width: 100%;
  margin-bottom: 30px;
}

#navigation ul li.first-child {
  border-top: 1px solid #dcdcdc;
}

#navigation ul li a {
  color: black;
  display: block;
  border-bottom: 1px solid #000099;
  font-size: 1em;
  line-height: 1.6em;
  padding: 1em 1em;
  text-decoration: none;
  width: 16em;
}

#navigation ul li a::before {
  content: " ";
  display: inline-block;
  width: 1em;
  height: 1em;
  border-left: 5px solid #000099;
}

nav a[aria-current="page"] {
  background: #dcdcdc;
}

/* ====================================== repsonsives Grid-Layout =================================================== */

/* mobile first - auf schmalen Bildschirmen wird alles untereinander platziert. */ 

/* ab einer Breite von 30em haben zwei Spalten nebeneinander Platz: */


.bild_breit img {
  width: 95%;
  margin:1em
  /*
  margin-right: 1em;
  margin-left: 1em;*/
}


.article img {
  width: 50%;
  float: right;
  margin: 1em;
}


.spalte img {
  width: 50%;
  float: right;
  margin: 1em;
}


@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: 1 / 3;
  }
  
 /* .article img {
    width: 50%;
    float: right;
    margin: 1em;
  }*/
  
  .spalte img {
    width: 50%;
    float: right;
    margin: 1em;
  }
}

@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;
  }
  
 /* .article img {
    width: 50%;
  }*/
  
  .spalte img {
    width: 33%;
  }
  
  aside {
    grid-column: 3 / 4;
    grid-row: 1 / 2;	
  }
  
  .spalte {
    grid-row: 2 / 3;
  }
  
  
  
}

