/* Layout */

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: .05em;
}

nav {
  width: 100%;
  padding: .5em;
  box-sizing: border-box;
  color: white;
  background-color: #1a1a18;
  display: flex;
  align-content: center;
}

nav a {
  padding: 0 .5em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border 0.8s;
}
nav a:not(:last-of-type) {
  margin-right: 1em;
}
nav a:hover,
nav a.active {
  border-bottom: 1px solid #2f6094;
}
nav a:hover span {
  display: inline-block;
  animation: jump 1s infinite;
}

nav img {
  height: 2em;
  padding-right: .5em;
}

#nav-open {
  display: none;
}

header {
  margin: 1em;
  height: 15vmin;
  text-align: right;
}
header img {
  height: inherit;
  max-width: 100%;
}

div.social {
  position: absolute;
  right: 0;
  bottom: 11rem;
}

div.social a {
  height: 2em;
  padding: .5em;
}

div.social img {
  height: inherit;
}

/* Video */

#video-bg {
  position: fixed;
  top: 0;
  top: 50%;
  left: 50%;
  z-index: -99;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
}

#video-control {
  position: absolute;
  top: 4rem;
  right: 1rem;
  padding: 0.5em;
  font-size: 3em;
  border: none;
  outline: none;
  background-color: transparent;
  background-size: contain;
}

.pause {
  background: url(../img/control-pause.svg) no-repeat center;
}

.play {
  background: url(../img/control-play.svg) no-repeat center;
}

/* General */

h1, h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: lighter;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Content */

/* Landing */
#landing {
  background-image: url(../img/landing.jpg);
  background-color:#1a1a18;
  background-repeat: no-repeat;
  background-size: cover;
}

#landing nav {
  background: rgba(0,0,0,.8);
}

/* Pages */
#page {
  /*background: linear-gradient(#737373, #a6a6a6);*/
}

#page main {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12rem;
  padding: .5em;
  text-align: justify;
  color: #737373;
}

#page h1,
#page h2 {
  color: #2f6094;
  border-bottom: 1px solid currentColor;
}

#page main img {
  padding: .5em 0;
  max-width: 100%;
}

/* Leistungen */
#leistungen {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1em;
  box-sizing: border-box;
  background: rgba(0,0,0,.8);
}

#leistungen h1 {
  text-transform: uppercase;
  text-align: center;
  color: white;
  border-bottom: 1px solid #2f6094;
}

#leistungen-container {
  color: white;
  display: flex;
  justify-content: space-between;
}

#leistungen-container a {
  width: 15vw;
  padding: .5em;
  text-align: center;
  border-bottom: 1px solid transparent;
  transition: border 0.8s;
}

#leistungen-container a img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: .5em 0;
}

#leistungen-container a:hover {
  border-bottom: 1px solid #2f6094;
}

#leistungen-container a:hover span {
  display: inline-block;
  animation: jump 1s infinite;
}
div.maschinen-images {
  overflow: auto;
}
div.maschinen-images img {
  float:left;
}

.map-responsive{
  position:relative;
  height:0;
  width:100%;
}
.map-responsive iframe{
  left:0;
  top:0;
  height:400px;
  width:100%;
  position:absolute;
}

/* Animation */

@keyframes jump {
  0% { transform: translateY(0) }
  50% { transform: translateY(-.4em) }
  100% { transform: translateY(0) }
}

/* Machine Carousel */
.swiper-container {
  height:300px;
}
.swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  color:#000;
  opacity: 1;
  background: rgba(0,0,0,0.2);
}
.swiper-pagination-bullet-active {
  color:#fff;
  background: #2f6094;
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;

  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}
.swiper-button-next, .swiper-button-prev {
  color: #2f6094;
}
.caption {
  padding-right:2em;
}

.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
}
.grid > .column {
  margin: 2em;
}
/* Mobile */

/* Leistungen */
@media only screen and (max-height: 26em) {
  #leistungen {
  }
}

@media only screen and (max-width: 65em) {
  #leistungen-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  #landing #leistungen-container {
    padding-bottom: 2rem;
  }
  #leistungen-container a {
    width: 30%;
  }
  #page main {
    margin-bottom: 20rem;
  }
  div.social {
    bottom: .5rem;
  }
  @media only screen and (max-height: 36em) {
    #leistungen {
    }
  }
}

@media only screen and (max-width: 40em) {
  #leistungen-container a {
    width: 45%;
  }
  #page main {
    margin-bottom: 26rem;
  }
  @media only screen and (max-height: 46em) {
    #leistungen {
      position: initial;
      margin-top: 1em;
    }
  }
  .swiper-container {
    height: 466px;
    text-align:center;
  }
  .swiper-slide {
    text-align: unset;
    font-size: unset;
    background: unset;

    /* Center slide text vertically */
    display: unset;
    display: unset;
    display: unset;
    display: unset;
    -webkit-box-pack: unset;
    -ms-flex-pack: unset;
    -webkit-justify-content: unset;
    justify-content: unset;
    -webkit-box-align: unset;
    -ms-flex-align: unset;
    -webkit-align-items: unset;
    align-items: unset;
  }
  .caption {
  }
  .swiper-pagination {
    bottom: 0px;
  }
}
@media only screen and (max-width: 30em) {
  #leistungen-container a {
    width: 100%;
  }
  #page main {
    margin-bottom: 40rem;
  }
  @media only screen and (max-height: 56em) {
    #leistungen {
    }
  }
}

/* Nav */
@media only screen and (max-width: 35em) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    height: 0;
    overflow: hidden;
    transition: height .6s;
  }
  nav a {
    margin-left: .5em;
    padding: .5em;
  }
  #nav-open {
    display: inline-block;
    width: 100%;
    padding: .5em;
    box-sizing: border-box;
    text-align: center;
    color: white;
    background-color: rgba(0,0,0,.5);
  }
  #nav:target {
    height: 100%;
  }
  #nav:target + #nav-open {
    display: none;
  }
  header {
    text-align: center;
  }
}
