/* Stylesheet für Selfhtml Design 03
  responsives Layout mit Grid Layout ab Z. 210   */

/* ====================================================   GLOBAL DEFINITION   ==================================================== */

/* alternatives Boxmodell */
html {
  box-sizing: border-box;
  background: #d5d5d5;
}

*, ::before, ::after {
  box-sizing: inherit;
}

body {
        max-width: 90em;
        margin:0 auto;
        padding: 0;
        background: #fff;
        color: #333;
        font: normal 1em Arial, sans-serif;  /* Mindestschriftgröße wird dem Browser, bzw. dem Nutzer überlassen! */

}



/* ====================================================   HEADER   ==================================================== */

header {
        position: relative;
        height: 250px;
        margin: 2em  0  0 3em;
        background: #777 url("../img/stadtteilbild.jpg") no-repeat right;
        background-size: 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-left: 0;
        padding: 0;
    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. */
}

.ribbon {
        display: inline-block;
        position: relative;
        margin: 2em 0 2em -1.5em;
        padding: 0.5em 1em;
        background: #4e7a92;
        box-shadow: 0px 1px 3px rgba(0,0,0,.8);
}

.ribbon::before{
        display: block;
        width: 1.5em;
        height: 0;
        position: absolute;
        bottom: -1.5em;
        left: 0em;
        content: "";
        border-bottom: 1.5em solid transparent;
        border-right: 1.5em solid rgb(0, 80, 116);
}

/** CONTENT **/

main {
        margin: 2em 0 0 1.5em;
        background: #fff;
}

hr {
        max-width:80em;
        margin-left:0.2em;
        }

h1 {
        font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
        padding-left: 1em;
        color: #666;
        text-transform: uppercase;
        border-left:5px solid #4e68AD;
}

h2 {
        font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
        padding-left: 1em;
        color: #666;
        border-left:5px solid #4e68AD;
}

h3        {
        font-size: 1.25em;
        font-weight: bold;
        padding-left: 1em;
        color: #666;
        border-left:5px solid #4e68AD;
}

p {
        text-align: left;
        line-height: 1.6em;
        padding: 20px 0px
}

a         {
        color: #4e7a92;
        outline: none;
        text-decoration: none;
}
a:hover,                         /* Durch Maus oder Tastatur angewählte Verweise werden sichtbar gemacht */
a:focus {
        color: white;
        text-decoration: none;
        background-color: #4e7a92;
}

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;
}

div.box    {float:none;
            max-width:80em;

            text-align:left;
            border: 0.1em solid royalblue;
            color:#000000;
            background-color:#EFEFEF;
            padding:0.5em;
            margin:0.1em;
            font-family: Verdana, Arial, Helvetica, sans-serif;
            font-weight: normal;
            font-size: 1em;
            text-decoration: none;}

article  {margin-left:2em; }


/*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 **/


  input#open-menu {
        display: none;
}

input[type=checkbox]:checked ~ nav {
    display: block;
}

label.open-menu-label {
        background: #666;
        padding: 20px 10px;
        border: 1px solid white;
        display: block;
        color: white;
        font-weight: bold;
}

/* ========== repsonsives Grid-Layout ========== */

/* mobile first - auf schmalen Bildschirmen wird alles untereinander platziert. */
/*
nav {
        display: none;
}

nav ul {
         padding: 0px;
         margin: 0px;
         width: 20%;
}

nav ul li {
        list-style: none;
        padding: 10px 10px;
        border: 1px solid white;
        background: #666;
}

nav ul li a {
    font-size: 1.1em;
    line-height: 1.2em;
    text-decoration: none;
    color: white;
    width: 13em;
}
*/

/*Style for the first level menu bar*/
ul#menu{
  position:relative;
  top:-10px;
  width:6em;
  height:3em;
  margin:0 0 0 0em;
  padding:0 0px;
  background:#4e7a92;
  color:#eee;
  box-shadow:0 -1px rgba(0,0,0,.5) inset;
}

ul#menu > li{
  float:left;
  list-style-type:none;
  position:relative;
}

label{
  position:relative;
  display:block;
  padding:0 18px 0 12px;
  line-height:3em;
  transition:background 0.3s;
  cursor:pointer;
}

label:after{
  content:"";
  position:absolute;
  display:block;
  top:50%;
  right:5px;
  width:0;
  height:0;
  border-top:4px solid rgba(255,255,255,.5);
  border-bottom:0 solid rgba(255,255,255,.5);
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  transition:border-bottom .1s, border-top .1s .1s;
  }

label:hover,
input:checked ~ label{background:rgba(0,0,0,.3);}

input:checked ~ label:after{
  border-top:0 solid rgba(255,255,255,.5);
  border-bottom:4px solid rgba(255,255,255,.5);
  transition:border-top .1s, border-bottom .1s .1s;
}

/*hide the inputs*/
input{display:none}

/*show the second levele menu of the selected voice*/
input:checked ~ ul.submenu{
  max-height:45em;
  transition:max-height 0.5s ease-in;
}

/*style for the second level menu*/
ul.submenu{
  max-height:0;
  padding:0;
  overflow:hidden;
  list-style-type:none;
  background:#444;
  box-shadow:0 0 1px rgba(0,0,0,.3);
  transition:max-height 0.5s ease-out;
  position:absolute;
  min-width:100%;
}

ul.submenu li a{
  display:block;
  padding:12px;
  color:#ddd;
  text-decoration:none;
  box-shadow:0 -1px rgba(0,0,0,.5) inset;
  transition:background .3s;
  white-space:nowrap;
}

ul.submenu li a:hover{
  background:rgba(0,0,0,.3);
}





.modalDialog > div {
 width: intrinsic;
 width: max-content;
 max-width: 100%;
 position: relative;
 margin: 1% Auto;
 padding: 2px 20px 10px 20px;
 font-size: 1em;
 font-weight: normal;
 background-color: #FFCC66;
 cursor: Default;
}

@media only screen and (min-width: 50em) {
 main {
          display: grid;
    grid-template-columns: repeat(2, 1fr);
        grid-gap: 1em;
  }

  #intro {
    grid-column: 1 / 3;
    grid-row:    1 / 2;
  }

  article {
    grid-column: 1 / 3;
  }


@media only screen and (min-width: 80em) {
main {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-gap: 1em;
  }
/*
 nav {
       display: block;
       text-align: center;
       color: white;
       padding: 20px;
       background: #666;
       }

nav ul li {
       display:inline;
       width: 25%;
       border: 1px solid white;
       color: white;
       background: #666;
       }

nav ul li a {
    font-size: 1.1em;
    line-height: 1.2em;
    text-decoration: none;
    color: white;
    width: 13em;
}

nav a[aria-current=page]{
 background: #aaa;
}
  */

  #intro {
    grid-column: 1 / 4;
    grid-row:    1 / 2;
  }

  article {
    grid-column: 1 / 4;
  }

   aside {
    grid-column: 3 / 4;
    grid-row: 1 / 1;
  }

  .spalte {
    grid-row:    1 / 2;
    margin-right: 0.5em;
  }

  article.kontakt {
    grid-column: 1 / 3;
    margin-right:5em;
  }

/*
label.open-menu-label {
      display:none;
  } */

  .modalDialog > div {
 width: intrinsic;
 width: max-content;
 max-width: 80%;
 position: relative;
 margin: 1% Auto;
 padding: 2px 20px 10px 20px;
 font-size: 1em;
 font-weight: normal;
 background-color: #FFCC66;
 cursor: Default;
}