ul {
    list-style-type: none;
    margin:0;
    padding:0;
}
ul li {
     float: left;
     position: relative;
}
li a {
     display: block;
     width: 135px;
     color: black;
     text-align: center;
     background-color: lightgray;
     padding: 0.2em 0.6em;
     text-decoration: none;
     border: 1px solid lightgray;
     border-bottom: 1px solid darkgray;
     border-right: 1px solid darkgray;
}
li a:hover {
     background-color: silver;
     border: 1px solid: darkgray;
     border-bottom: 1px solid black;
     border-right: 1px solid black;
}
ul li ul {
     display: none;
     position: absolute; /* Damit der folgenden Inhalt nicht nach unten rückt */
}
ul li:hover ul {
     list-style-type: none;
     display: block;
}
ul li:hover ul a {
     display: block;
     width: 135px;
     color: black;
     text-align: center;
     background-color: lightgray;
     padding: 0.2em 0.6em;
     text-decoration: none;
     border: 1px solid lightgray;
     border-bottom: 1px solid darkgray;
     border-right: 1px solid darkgray;
}
ul li ul li a:hover {
     background-color: silver;
     border: 1px solid: darkgray;
     border-bottom: 1px solid black;
     border-right: 1px solid black;
}

ul.listing {
    display: block;
    list-style-type: disc;
    margin-top: 1em;
    margin-bottom: 1 em;
    margin-left: 0;
    margin-right: 0;
    padding-left: 40px;
}

ul.listing li {
    display: list-item;
}

ul.back li {
    float: none;
    text-align: center;
    display: inline-block;
}

header {
    background: rgba(76, 175, 80, 0.6);
    //background-color: darkgray;
    height: /*590px*/65%;
}

footer {
    text-align: center;
}

/*
body {
    background-color: #BFBFAA;
}
*/

body, html {
    background: url(images/WE_Wall.png) repeat center fixed;
    background-size: cover;
    margin: 0 auto;
    padding: 0;
    border: 0;
/*
      min-width: 660px;

      max-width: 60em;
*/
}

h1 {
    color: yellow;
    text-align: center;
}

h1#welcome {
    color: rgb(190,50,130); /* magenta */
}

h2#zusatz {
    text-align: center;
    color: black;
}

h3#beruf {
    color:red;
}

h1.DS, h2.DS, h3.DS {
    text-align: left;
    color: black;
}

p#time_interval {
    text-align: left;
    font-weight: bold;
}

p#date_interval {
    text-align: left;
    font-weight: bold;
}

p {
    font-family: verdana;
    font-size: 14px;
    text-align: justify;
}

.sidebar-p {
    margin: 0;
    padding: 5px 5px;
    border: 0;
}


.outer-link {
    text-decoration: none;
    font-weight: bold;
    color: blue;
}

.DSE-link {
    text-decoration: none;
    font-size: 10px;
    font-weight: normal;
    color: blue;
}

a.gohome {
    text-decoration: none;
    color: blue;
}

.block {
    text-align: block;
}

#impressum-rahmen {
    margin: 10px 10px;
    padding: 5px 5px;
    border: 1px solid black;
}

input { background-color: lightgray; }
input:focus { background-color: #FFFFFF; }

input[type='text']:invalid + label::after {
  color: red;
  content: " x";
}
input[type='text']:valid + label::after {
  color: green;
  content: " ";
}

input[type='email']:invalid + label::after {
  color: red;
  content: " x";
}
input[type='email']:valid + label::after {
  color: green;
  content: " ";
}

/*
#sidebar {
    margin: 0;
    padding: 5px 5px;
    border: 0;
    width: 200px;
    float: left;
}

.menu-nav {
    margin: 0;
    padding: 5px, 5px;
    border: 0;
    width: 200px;
    float: right;
}

main {
    padding: 5px 5px;
    margin: 0;
    border: 0;
    width: 440px;
    float: left;
}
*/

    #row_wrapper{

      display: -webkit-flex;

      display: -ms-flex;

      display: flex;

      flex-direction: -webkit-row;

      flex-direction: -ms-row;

      flex-direction: row;

    }
/*

    header, footer {

          border: 1px solid black;

          padding: 5px;

          text-align:center;
          background-color: sienna;
          color: white;

    }

*/
    #content {

       flex: 1;

       padding: 10px;

    }


    #mainnav {

        flex: 0 0 160px;

        padding: 10px;

	border-left: 1px solid black;
	border-right: 1px solid black;

        background: sandybrown;

    }


    #sidebar {

        flex: 0 0 210px;

        padding: 10px;
	border-left: 1px solid black;

	border-right: 1px solid black;

        background: peachpuff;

     }


.clear {
    clear: both;
}

.row {
    clear: both;
}


.grid1, .grid2, .grid3, .grid4,
.grid5, .grid6, .grid7, .grid8,
.grid9, .grid10, .grid11, .grid12 {
   margin-left: 10px;
   margin-right: 10px;
   float: left;
}

.grid1_right {
   margin-left: 10px;
   margin-right: 10px;
   float: left;
}


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


  #wrapper {
     width: auto;
     max-width: none;
     margin: 0 auto;
  }

  .grid1, .grid2, .grid3, .grid4,
  .grid5, .grid6, .grid7, .grid8,
  .grid9, .grid10, .grid11, .grid12 {
     width: 95%;
  }

  article { clear: both;}
}



@media screen and (min-width: 768px) and (max-width: 960px) {


  #wrapper {
     width: 744px;
     max-width: none;
     margin: 0 auto;
  }

  .grid1 { width: 42px; }
  .grid2 { width: 104px; }
  .grid3 { width: 166px; }
  .grid4 { width: 228px; }
  .grid5 { width: 290px; }
  .grid6 { width: 352px; }
  .grid7 { width: 414px; }
  .grid8 { width: 476px; }
  .grid9 { width: 538px; }
  .grid10 { width: 600px; }
  .grid11 { width: 662px; }
  .grid12 { width: 724px; }
}



@media screen and  (min-width: 960px) {


  #wrapper {
     width: 960px;
     max-width: none;
     margin: 0 auto;
  }

  .grid1 { width: 60px; }
  .grid2 { width: 140px; }
  .grid3 { width: 220px; }
  .grid4 { width: 300px; }
  .grid5 { width: 380px; }
  .grid6 { width: 460px; }
  .grid7 { width: 540px; }
  .grid8 { width: 620px; }
  .grid9 { width: 700px; }
  .grid10 { width: 780px; }
  .grid11 { width: 860px; }
  .grid12 { width: 940px; }
}