/* MD Stylesheet Layout mit Flexbox 04-2020 */

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

/* alternatives Boxmodell */

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

body {
  background:#000000;         /* Hintergrund Farbe #F5FFEF */
  background-image: url(../css/bg_foto.jpg); /* Hintergrund Bild */
  background-repeat: repeat-x;   /* Hintergrund Bild, Wiederholung in x Richtung */
  color:#CFCFCF;  /* Text Farbe  */
  max-width: 65em;   /* 65 = 1040 Pixel, 75 em sind 1200 Pixel */
  text-align: left;  /* Inhalt wieder links wegen alten IEs */
  margin: 0 auto;    /* Zentrierung mitte */
  margin-bottom: 5em;
  padding: 0 1em;
  font: normal 1em Arial, Helvetica, sans-serif;
  font-size: 1.2em;
}

p, ol, ul, dl {color: #CFCFCF;}     /*Schriftfarbe allgem. */


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

header {
  margin: 0;
  padding: 1em;
  background-color: transparent;
  background-image: url("../css/sc3_46x50.png"), url("../css/Sir-Cody_306x87.png");
  background-position: 2% 70%, 50% 30%;
  background-repeat: no-repeat;
  padding: .5em 1em;
  text-align: center;
  border-radius: .5em;
  border: 1px solid #C40000; /* roter Rahmen um header */
  box-shadow: 0 .6em .3em 0 rgba(0, 0, 0, .75); /* Schatten unter header-box */
}




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

h1 {
  color: #CFCFCF;
  font-size: 2em;
}
h2 {
  color: #CFCFCF;
   font-size: 1.2em;
}
h3 {
  color: #CFCFCF;
  font: italic large serif
}
h5 {
  color: #CFCFCF;
  font-size: .8em;
}

/*
 mit class="bild"  wird das Bild automatisch an die größe des sceen angepasst

*/
.bild {
    max-width: 100%;
    height: auto;
    border: 3px solid #4F0000;
}


.headerbild {
    max-width: 100%;
    height: auto;
}

/* ====================================================  NAV  ==================================================== */
a {

  background-color: #4F0000; /* LinkFarbe im footer standard  */
  color: #CFCFCF;
}
a:hover,
a:focus {
  background-color: #9F0000; /* LinkFarbe im footer standard aktiv */
  color: #F6A800;
  border-radius: .3em;
  border: 1px solid #C40000; /* roter Rahmen um header */
}

nav ul {
  box-shadow: 0 .6em .3em 0 rgba(0, 0, 0, .75); /* Schatten unter Nav */
  text-align: center;
  margin: 0;
  padding: 0;
  list-style-type: none;
  border-radius: .5em;

}

nav a {
  background-color: #3C0000; /* Hintergrundfarbe um Oval standard  */
  color: #CFCFCF;
  text-decoration: none;
  display: inline-block;
  width: 95%;
  margin: .5em 0;
  padding: .5em 1em;
  border-radius: .5em;
  border: 1px solid #C40000; /* Rahmen um Nav bei groß */
}

/*
nav a[aria-current="page"]{
 color: orange;
 font-weight: bold;
}
*/

nav a:hover,
nav a:focus {
  background-color: #9F0000; /* Hintergundfarbe Link Butten aktiv */
  color: #F6A800;
}

nav a:hover::after ,
nav a:focus::after{
  color: transparent;
}


/* ====================== FOOTER  ================== */

footer {
  margin: 0;
  padding: 1em;
  background-color: #3F0000;
  border-radius: .5em;
  border: 1px solid #C40000; /* roter Rahmen um header */
  color: #CFCFCF;
  font-size: .8em;

}

/* ==========  LAYOUT  ================== */

/* Mobile first ! alle BlÃ¶cke haben 100%, Navigation unten*/
main  {
  padding: 1em 2em;    /* 1. obere Anstände  , 2. Seitliche Abstände */
  margin: 2em 0;
  border-radius:10px;
  border: 1px solid #C40000;
  background-image: url(../layout/hg_sc.jpg);  /* Hintergrundfarbe im main allgem. */
  background-repeat: repeat;
  text-align: center;
}



/* Navigationselemente werden untereinander angezeigt */

nav ul {
  margin: 1em 0;
  display: flex;
  flex-direction: column;

}

footer {
    height: 10em;  /* Höhe header ohne Nav */
    background-image: url(../css/hg_footer.jpg); /* Hintergrund Bild */
    background-repeat: repeat-x;   /* Hintergrund Bild, Wiederholung in x Richtung */
    background-size: contain;
    box-shadow: 0.0em 0.5em 1em  #5F0000;  /* Schatten unter header-box */
  }


/* 2-Spaltenlayout mit breiterem aside  25 em = 400 px */
@media screen and (min-width: 25em) {
  header {
    height: 10em;  /* Höhe header ohne Nav 10 em = 160 px*/
  }
}

/* 2-Spaltenlayout mit breiterem aside 45 em = 720 px */
@media screen and (min-width: 45em) {

  header {
                                    /* Bild im header links unten */
    /*background: url('../layout/sc_70x80.png') no-repeat  right bottom ; */
    /* background-size: contain;  passt das HG-Bild auf max-größe des header an*/
    background-image: url("../css/sc3_84x92.png"), url("../css/Sir-Cody_306x87.png"), url("../css/Fesselndes Saarland_171x133.png");
    background-position: 2% 70%, 50% 30%, 100% 80%;
    background-repeat: no-repeat;

  }

  /* Navigation wird nebeneinander ausgerichtet. */
  nav ul {
    flex-direction: row;
    background-color: #3F0000;  /* Nav Hintergrundfarbe */
    border: 1px solid #C40000; /* Rahmen um Nav bei groß */
  }

  nav li {
    margin: 0;
    flex: 1 1 0%;
  }

  /* Main wird zum Flex-Container */
  main {
    display: flex;
    flex-flow: row wrap;
  }

  main > * {
    flex: 1 100%;  /* Alle Kindelemente werden Ã¼ber die volle Breite dargestellt */
  }
/*
  section {
    flex: 1 48%;  /* Diese Elemente erhalten eine halbe Breite */
/*    margin: 1%;
  }
*/

}

/* 2-Spaltenlayout mit breiterem aside */
/*@media screen and (min-width: 58em) { */

 /*
  section, aside {
    flex: 1 31%;  /* Diese Elemente erhalten eine Breite von 1/3.  */
/*    margin: 1%;
  }
*/
/*  article {
    flex: 0 0 100%;
    margin: 1%;
  }
*)
/*   article p, */
/*  article li,
  article blockquote {
    max-width: 40em;
  }
    #about {
    flex: 1 30%;
    margin: 1%;
    background-color: #eee;
    border: 1px solid darkred;
    padding: 1em;
    height: 22em;
  }
*/

/*
  #impressum {
    flex: 1 60%;
    margin: 1%;
}

  aside p {
    margin-bottom: 3em;
  }
  aside p:last-child {
    margin-bottom: 1.2em;
  }
*/
/*
}

*/