/* 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: 75em;
        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: 210px;
        margin: 2em  0  0 3em;
        background: #777 url("../img/head.svg") 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. */
}

aside {

         margin-left: 1em;
         padding-left: 0.1em;
         display: block;

}

table {
        border-collapse: collapse;
        /*border: 1px solid; */
        margin: 1em;
}

tr {
        border-top: 0px solid;
        border-bottom: 0px solid;
}

tr:first-child {
        border-top: 0 none;
}

th, td {
        padding: 0.5em;
}

/*thead tr, tr:nth-child(even) {
        background-color: lightgrey;
} */

th {
        font-size: 1.0em;
}

tbody th {
        text-align: right;
}

td:last-child {

        text-align: right;
}

img.left {
         float: left;
}

img.right { float: right;
}

img.center_line {vertical-align: middle;}


#Produktgruppendetails {
        display: flex;
        flex-direction: row;
        margin:auto;
        padding-left:2em;
}

#Produktdetails {
        display: block;
        padding:1em;
}

#Produktgruppentext {
        display: justify;
        color: black;
        font-weight: normal;
        font-family: tahoma;
        font-size: 0.9em;
        padding: 1em;
        margin-top: -1em;
}

#Produktgruppentext_kl {
        display: justify;
        color: black;
        font-weight: normal;
        font-family: tahoma;
        font-size: 0.6em;
        padding: 1em;
        margin-top: -1em;
}

#Spalte {
        display: block;
        padding:1em;
        background-color: rgba(0,0,0,0.7);
}

.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: 0 0 1em;
        padding: 1em;
        background: #fff;
}

section.eingabe  {
        font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
        font-size: 0.9em;
        padding-top: 2em;
        color: #666;
        text-transform: uppercase;
}

h2,h1 {
        font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
        padding-left: 1em;
        color: #666;
        text-transform: uppercase;
        border-left:5px solid #4e7a92;
}

h2 span {
        font-size: 0.70em;
        color: #818181;
        text-transform: none;
}

h3        {
        font-size: 1.25em;
        font-weight: normal;
        padding: 0px;
        margin: 0px;
        color: #4E68AD;
}

p {
        text-align: left;
        line-height: 1.6em;
        padding: 20px 0px;
}

p.eingabe {
        text-align: left;
        line-height: 1.6em;
        padding-top: 10px;
}

#copyrigth{
        font-size: 0.75em;
        font-weight: normal;
        padding: 0px;
        margin: 0px;
        color: #000000;
}

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;
}

input.suche   {
         border: 0.1em solid;
         width: 15em;
}

button.suche {
         display: inline-block;
         background-color: #FFFFFF;
         border-radius: 0.5em;
         border: double 0.1em;
         border-style: solid;
         border-color: #4e68AD;
         color: #4e68AD;
         text-align: center;
         font-size: 0.6em;
         font-weight:bold;
         padding: 0.5em;
         width: 10em;
         -webkit-transition: all 0.5s;
         -moz-transition: all 0.5s;
         -o-transition: all 0.5s;
         transition: all 0.5s;
         cursor: pointer;
         margin: 1em;
}

input.kontakt {
         border: 0.1em solid;
         width: 20em;
}

textarea.kontakt {
         border: 0.1em solid;
         width: 20.5em;
}

button.kontakt {
         display: inline-block;
         background-color: #FFFFFF;
         border-radius: 0.5em;
         border: double 0.1em;
         border-style: solid;
         border-color: #4e68AD;
         color: #4e68AD;
         text-align: center;
         font-size: 0.6em;
         font-weight:bold;
         padding: 0.5em;
         width: 10em;
         -webkit-transition: all 0.5s;
         -moz-transition: all 0.5s;
         -o-transition: all 0.5s;
         transition: all 0.5s;
         cursor: pointer;
         margin: 1em;
}



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;
}

/*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 **/

nav#navigation{
}

#navigation ul {
    list-style-type: none;
    width: 100%;
        margin-bottom:30px;
}

#navigation ul li.first-child        { border-top: 1px #DBDBDB solid; }


#navigation ul li a {
        display: block;
    border-bottom: 1px solid #4e7a92;
    font-size: 1.1em;
    line-height: 1.5em;
    padding: 1em 35px;
    text-decoration: none;
        width: 13em;
}

#navigation ul li a:before{
        content:" ";
        display:inline-block;
        width:1em;
        height:1em;
        border-left:5px solid #4e7a92;;
}

nav a[aria-current=page]{
 background: #aaa;
}



/* ========== repsonsives Grid-Layout ========== */

/* mobile first - auf schmalen Bildschirmen wird alles untereinander platziert. */

/* ab einer Breite von 30em haben zwei Spalten nebeneinander Platz: */

@media (min-width: 30em) {
  main {
          display: grid;
    grid-template-columns: repeat(2, 1fr);
        grid-gap: 1em;
  }

  nav {
    grid-column: 1 / 2;
  }

  #intro {
    grid-column: 2 / 3;
    grid-row:    1 / 2;
  }

  article {
    grid-column: 2 / 3;
  }

  .spalte img {
     width: 50%;
         float: left;
         margin-right: 0.5em;
  }
}



@media (min-width: 50em) {
  main {
    grid-template-columns: repeat(3, 1fr);
 }

  nav {
    grid-row: 1 / 4;
  }

  #intro {
    grid-column: 2 / 4;
    grid-row:    1 / 2;
  }

  article {
    grid-column: 2 / 4;
  }

   aside {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }

  .spalte {
    grid-row:    2 / 3;
  }

  .spalte img {
     width: 33%;
  }
}