/* Navigation für kleine Viewports mit :target */ 
/* Benutzt die ID #menu, die an body vergeben wurde */ 

@media screen and (max-width: 599px) { 

  /* Kopfbereich vorbereiten */ 
  .pageheader {
   position: relative;
  }
	

  /* Menübutton positionieren */ 
  div.menubutton {
	display: block;
	position: relative;
	top: 17px;
	z-index: 0;
	width: 55px;
	height: 28px;
  }

  /* Menübutton gestalten */ 
  div.menubutton a {
    display: block; 
    color: #cccccc;
    text-decoration: none;
    border-radius: 0.25rem;
    border: none;
    font-size: 12px; 
	letter-spacing: 2px;
	 
	
  }

  /* Pfeile nach und nach unten */ 
  div.menubutton a.showmenu:after {
    /* Pfeil nach unten */ 
    content: " \25bc"; /* Pfeil nach oben */ 
    font-size: 0.7rem; 
    text-align: center;
    color: #cccccc;
    display: block;
  }
	
  div.menubutton a.hidemenu:after {
    content: " \25b2"; /* Pfeil nach oben */ 
    font-size: 0.7rem; 
	text-align: center;
	color: black;
	display: block;  
  }  
	
	
  /* Menübutton ausblenden */ 
  div.menubutton a.hidemenu {
    display:none; 
	  color: black; 
  }

 
  /* Grundformatierung für den Navigationsbereich */ 
  .navmain {
    text-decoration: none;
	color: gray;
	text-align: center;
	text-transform: uppercase;
	padding-top: 5px;
	padding-right: 8px;
	padding-left: 8px;
	padding-bottom: 8px;
	font-size: 0.9em; 
    display: block;
    background: white; 
  }
	
  /* Die Navigationsliste gestalten */ 
  .navlist {
    overflow: hidden; 
    transition: 0.25s;  
    list-style-type: none;
    padding: 0; 
    border-radius: 0 0 1rem 1rem;
    margin:0;
	display: block;
    background-color: white;
  }

  .navlist li { 
    display: block; 
  }
	
  .navlist li:last-of-type {
    border-bottom: 0;
  }

  /* Die Links im Navigationsbereich gestalten */ 
 
	.navlist a {
    display: block; 
    text-decoration: none;
    background: white;
    color: #cccccc;
    padding: 3px; 
	font-size: 12px;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
	letter-spacing: 2px;
  }
	
  .navlist a.active {
    background: orange;
    color: white;
    text-decoration: none; 
  } 
	
	.navlist a:hover,
  .navlist a:focus {
	  color: black;
	font-size: 12px;
	font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
	letter-spacing: 2px;
    
  }

  /* Navigationsliste ausblenden */ 
  .navlist { max-height: 0; } 

  /* Wenn #menu in der URL steht, die Navigationsliste einblenden */ 
  /* Den Wert für max-height ggf. an die Länge der Navigation anpassen */ 
  #menu:target .navlist { max-height: 25em; }

  /* Button mit Pfeil nach unten ausblenden */
  #menu:target a.showmenu { display: none; }
  /* Button mit Pfeil nach oben einblenden */
  #menu:target a.hidemenu { display: block; }


} /* Ende @media */ 
