* {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 18px;
    box-sizing: border-box;
  }

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    height: 100vh;
    background-color: rgb(235, 235, 235); 
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 27px;
}

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

pre {
    display: block;
    white-space: pre-line;
    margin: 1em 0px;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 18px;
}
.logo {
    position: absolute;
    max-width: 350px;
    height: auto;
    margin-bottom: 2rem;
    top: 1rem;
    left: 16px;
    z-index: 1;
}

#flexslogan {
  position: relative;
  right: 20px;
  bottom: 5px;
  max-width: 190px;
}

#mainnav {
    background-color: rgb(247, 247, 247);
    margin: 2rem 2rem 0 2rem; 
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: end;
    margin: 0 0;
    padding: 5px;
    height: 60px;
}

.menu li {
    margin: 13px 1.5rem 0 0;
}

.menu a {
    color: rgb(0, 48, 194);
    white-space: nowrap;
}

.menu a:link {
    text-decoration: none;
}

.menu a:hover {
    font-size: 20px;
    transition: all 0.5s;
  }

.card {
    margin: 1rem 2rem;
    min-height: 60vh;
    background-color: rgb(25, 65, 139);
    background-image: repeating-linear-gradient(45deg,
    transparent 0 20px,
    rgba(255, 255, 255, 0.06) 23px 40px);
    padding: 4rem 3rem 3rem 3rem;
    box-shadow: inset 0 10pc 30em rgb(25, 65, 139);
}

.content {
    display: inline-flexbox;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    max-width: auto;
}

.content p {
    font-size: 18px;
    color: black;
    overflow: hidden;
}

.inner {
    overflow: hidden;
}

.mainflexcontainer {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  flex-direction: row;
}

.innerflexcontainer {
  display: flex;
  flex-direction: column;
  margin-right: 1rem;
}

.innerflexcontainer img {
  max-width: calc(25vw * 0.5)
}

.servicesul {
  padding: 0;
  margin: 0 0 0 1rem;
}

/*-->Lightbox*/

.lightbox {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/*Bildgröße der Lightbox einstellen*/

.row {
  max-width: 1000px;
}

.row > .column {
    padding: 0 8px;
  }
  
  .row:after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* Create four equal columns that floats next to eachother */
  .column {
    float: left;
    width: 50%;
  }
  
  /* The Modal (background) */
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(25, 65, 139);
  }
  
  /* Modal Content */
  .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
  }
  
  /* The Close Button */
  .close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Hide the slides by default */
  .mySlides {
    display: none;
  }
  
  /* Next & previous buttons */
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* Position the "next button" to the right */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }
  
  /* Caption text */
  .caption-container {
    text-align: center;
   
    padding: 1px 16px;
    color: white;
  }
  
  img.demo {
    opacity: 0.6;
  }
  
  .active,
  .demo:hover {
    opacity: 1;
  }
  
  img.hover-shadow {
    transition: 0.3s;
  }
  
  .hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

/*Lightbox<--*/

.adress {
  margin-top: 2rem;
  text-align: center;
}

.flexcontent {
    display: flex;
    align-items: center;
}

#portrait {
    margin-right: 2rem;
}

.certificatesWrapper {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 40px;
}

/* Kontaktformular */
/*
#kontaktform {
    max-width: 0;
    padding: 15px;
  }
 
  /* Pflichtangaben markieren */
  #kontaktform var,
  #kontaktform noscript {
    color: Red;
  }
  
  .kontaktdaten p {
    margin: 0;
  }
  
  #textareacontact {
    resize: both;
    overflow: scroll;
    border: 1px solid black;
  }

  /*Video*/

  .flexvideo {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .flexvideo video {
   max-width: 750px;
  }
  

footer {
    margin-top: 3rem;
    text-align: center;
    padding: 1rem;
}


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

    /*  ===> hamburger menu */

    #flexlogo {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo {
        position: relative;
        height: auto;
        top: 4rem;
        left: 0;
        margin-bottom: 0;
        z-index: 1;
    }

    #mainnav {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 0px;
        z-index: 2;
        padding: 3.5rem 0 0 4rem;
        overflow: hidden;
        transition: height 0.8s;
        margin: 0 0; 
        background-color: rgb(247, 247, 247) ;
    }

    .menu {
        position: absolute;
        display: initial;
        top: 15vh;
        left: 4vh;
    }

    #mainnav.active {
        position: fixed;
        top: 0;
        height: 100vh;
        overflow: auto;
        z-index: 5;
    }

    #menutoggle {
        position: fixed;
        right: 0;
        top: 0;
        padding: 1rem;
     
    }

    #menutoggle:before,
    #menutoggle:after,
    #menutoggle>div {
        border-radius: 10px;
        display: block;
        content: '';
        width: 2rem;
        height: 4px;
        background-color: #0015ce;
        transition: all 0.5s;
    }

    #menutoggle>div {
        margin: 6px 0;
    }

    .active #menutoggle:before {
        transform: translateY(10px) rotate(225deg);
    }

    .active #menutoggle:after {
        transform: translateY(-10px) rotate(-225deg);
    }

    .active #menutoggle>div {
        transform: translateX(40px);
        opacity: 0;
    }

    /*  hamburger menu <=== */

    .card {
        margin: 5rem 1rem 0 1rem;
        background-color: rgb(25, 65, 139);
        background-image: repeating-linear-gradient(45deg,
        transparent 0 20px,
        rgba(255, 255, 255, 0.103) 23px 40px);
        padding: 2rem;
        box-shadow: inset 0 10pc 30em rgb(25, 65, 139);
    }

    .content {
      display: inline-flexbox;
      background-color: rgba(255, 255, 255, 0.6);
      padding: 1rem;
      max-width: auto;
  }

  .content h2 {
    font-size: 20px;
  }

  .mainflexcontainer {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    flex-direction: row;
  }
  
  .innerflexcontainer {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-right: 1rem;
  }
  
  .innerflexcontainer img {
    max-width: calc(30vw * 0.5)
  }

  .servicesul {
    padding: 0;
    margin: 0 2rem 0 1rem;
  }


    /*-->Lightbox*/

    .column {
      float:none;
      width: 100%;
    }

    /* The Modal (background) */
    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        margin-top: 3rem;
        padding-top: 100px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgb(25, 65, 139);
  }
  /*Lightbox<--*/

    .flexcontent {
        display: block;
        align-items: none;
    }

    #portrait {
        margin-right: 2rem;
        max-width: 220px;
    }

    .certificatesWrapper {
      display: grid;
      grid-template-columns: repeat(2,1fr);
      gap: 30px;
    }

    /*Video*/

    .flexvideo video {
      max-width: 550px;
     }
}

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

    /*  ===> hamburger menu */

    .logo {
        position: relative;
        height: auto;
        top: 4rem;
        left: 0;
        margin-bottom: 0;
        max-width: 260px;
        z-index: 1;
    }

    .card {
        margin: 5rem 1rem 0 1rem;
        background-color: rgb(25, 65, 139);
        background-image: repeating-linear-gradient(45deg,
        transparent 0 20px,
        rgba(255, 255, 255, 0.103) 23px 40px);
        padding: 1rem 0.5rem 1rem 0.5rem;
        box-shadow: inset 0 10pc 30em rgb(25, 65, 139);
    }

    .mainflexcontainer {
      display: flex;
      justify-content: space-evenly;
      flex-wrap: wrap;
      flex-direction: row;
    }
    
    .innerflexcontainer {
      display: flex;
      align-items: center;
      flex-direction: column;
      margin-right: 1rem;
    }
    
    .innerflexcontainer img {
      max-width: calc(80vw * 0.5)
    }
  
    .servicesul {
      padding: 0;
      margin: 0 0 0 1rem;
    }

      /*Video*/

      .flexvideo video {
        max-width: 300px;
       }

    /*  hamburger menu <=== */

  
}
   