html {
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0;
  font: 100% Arial,Helvetica,sans-serif;
}
img {
  vertical-align: bottom;
  display: inline;
}

#wrap,#top,#topleft,#banner,#bannerleft,#bannerright,
#nav,#content,#contentleft,#contentright,#foot {
  position: relative;
  overflow: hidden;
}

#wrap {
  max-width: 850px;
  margin: 0 auto;
  background-color: #FFFFFF;
}

#top {
  height: 135px;
  background-color: #FFFFFF;
}
#topleft {
  float: left;
  margin-top: 50px;
  margin-left: 0;
}
#banner {
  height: auto;
  clear: both;
}
#bannerleft {
  width: 360px;
  background-color: #FFFFFF;
  height: 123px;
  float: left;
}
#bannerleft img {
  margin-right: 7px;
}

#bannerright {
  width: 490px;
  background-color: #00305d;
  height: 123px;
  float: right;
  background-image: url(img/corner_blue.jpg);
  background-position: top right;
  background-repeat: no-repeat;
}
#nav {
  margin-top: 90px;
  margin-left: 10px;
}

#content {
  margin-top: 40px;
  margin-bottom: 30px;
  clear: both;
  min-height: 400px;
}
#contentleft {
  float: left;
  width: 530px;
}
#contentright {
  float: right;
  width: 290px;
  text-align: right;
}


#foot {
  clear: both;
  background-color: #00305d;
  color: #ffffff;
  font-size: 90%;
  line-height: 130%;
  padding: 15px 0;
  background-image: url(img/corner_blue.jpg);
  background-position: top right;
  background-repeat: no-repeat;
}
#footleft {
  float: left;
  width: 530px;
  margin-left: 20px;
}
#footright {
  float: left;
}
#footleft div {
  float: left;
  margin-right: 60px;
}

/* nav */

  #nav UL {
      list-style-type: none;
      margin: 0px;
      padding: 0px;
      position: relative;
  }
  #nav UL LI {
    display: inline;
    float: left;
    position: relative;
    padding-left:10px;
    padding-right:10px;
    padding-bottom: 2px;
  }
  #nav UL LI {
     font-size: 90%;
     line-height: 130%;
  }
  #nav UL LI, #nav UL LI A {
     text-decoration: none;
     font-weight: bold;
    color: #d3d5e1;
  }
  #nav UL LI.aktiv  {
     color: #FFFFFF;
  }
  #nav UL LI A:hover {
     color: #FFFFFF;
  }

  /* Formatierungen */
  p {
    font-size: 90%;
    line-height: 130%;
    color: #333333;
  }
  table.adr {
    font-size: 90%;
    color: #333333;
  	}
  h1 {
    margin-top: 0;
    padding-top: 0;
    font-weight: normal;
    font-size: 140%;
    color: #00305D;
  }
  div#content a {
    color: #333333;
  }

  #contentright img {
    margin-left: 15px;
    margin-bottom: 15px;
  }
  #foot {
  	color: #d3d5e1;
  	}
  #footright a {
    text-decoration: none;
    font-weight: normal;
    color: #d3d5e1;
  }
  #footleft {
  	font-size: 90%;
  	}
  #footright a:hover {
    color: #ffffff;
  }
  #footsub {
    clear: both;
    padding: 15px 15px 30px;
    font-size: 80%;
    color: #333333;
  }

  /* Listen */
  ul.cont {
    margin: 0;
    margin-bottom: 40px;
    list-style-image: url(img/li.gif);
    list-style-position: outside;
    padding-left: 18px;
    font-size: 90%;
    line-height: 130%;
    color: #333333;
  }
  ul.cont li {
    margin-bottom: 5px;
  }

  img { max-width:100%; height:auto; }

@media (max-width: 849px) {
  #topleft { float:none; text-align:center; }
  #bannerleft { float:none; width:auto; text-align:center; margin-bottom:1em; }
  #bannerright { float:none; width:auto; background:#00305D; height:auto; }
  #nav { margin:10px; }
  #nav ul { text-align:center; }
  #nav ul li { float:none; margin:1em; }
  #content { padding:0 1em; }
  body #contentinner { background:transparent; }
  body #contentleft { float:none; width:auto; padding:0; background:transparent; }
  body #contentright { float:none; width:auto; padding:1em 0 0; margin:0; }
  body.frontpage #contentright { text-align:center; }
  #contentright img { margin:15px; }
  #foot { background:#00305d; text-align:center; }
  #footleft { float:none; margin:0; width:auto; }
  #footleft div { float:none; margin:0 20px 10px; }
  #footleft table { margin:0 auto; }
  #footright { float:none; margin:0 20px; }
  #footsub { text-align:center; }
  input,textarea { max-width:100%; box-sizing:border-box; }
}