/* fonts */

@import url('https://fonts.googleapis.com/css2?family=Play:wght@400;700&display=swap');
/* scrollbars */

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  background: transparent !important;
  border: none;
}

::-webkit-scrollbar-thumb {
  background: none rgba(255, 30, 0, 1) !important;
  border-radius: 15px;
}

::-webkit-scrollbar-thumb:window-inactive {
  background: transparent !important;
}

::-webkit-scrollbar-track {
  background: none  rgba(0, 0, 0, 0.2);
}


/* general settings */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Play', sans-serif;
  font-size: 62.5;
  font-weight: normal;
  text-decoration: none;
  scroll-behavior: smooth;
  outline: none;
}

body {
  background: none #161A1D;
  color: #fff;
  font-size: 1em;
  overflow: overlay;
  /*
  display: flex;
  flex-direction: column;
  align-items: center;
  */
}

/* navigation bar */

#navbar {
  position: fixed;
  display: flex;
  flex-wrap: wrap;
  z-index: 29;
}

.main-container {
  display: flex;
  width: 90%;
  margin: 0 auto;
}

.default {
  width: 100%;
  height: 70px;
  margin: 50px auto 0 auto;
  background: transparent;
  transition: all 0.3s ease;
}

.sticky {
  margin: 0px auto 0 auto;
  background: none #fff;
  transition: all 0.3s ease;
}

#logo {
  flex: 1;
  background: url('img/logo.png') no-repeat left top;
  height: 70px;
  width: 381px;
}

#navbar nav {
  flex: 1;
  align-self: center;
}

#navbar nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
}

#navbar nav ul li {
  margin-left: 25px;
}

#navbar nav ul li a {
  font-size: 1.2em;
  color: #fff;
  transition: all 0.3s ease;
}

#navbar.sticky nav ul li a {
  color: #666;
}

#navbar nav ul li a:hover {
  color: #f20;
}

#navbar nav ul li.login a {
  margin-left: 50px;
  padding: 10px 20px;
  border-radius: 20px;
  background: transparent;
  border: 2px solid #fff;
}

#navbar.sticky nav ul li.login a {
  border: 2px solid #666;
}

#navbar nav ul li.login a:hover {
  background: none #BA181B;
  border: 2px solid #BA181B;
  color: #fff;
}

/* menu button */

#menu-button {
  position: fixed;
  display: none;
  z-index: 50;
  font-size: 2em;
  color: #f20;
  right: 5%;
  top: 0;
  line-height: 70px;
  cursor: pointer;
}

#mobile-nav {
  width: 100%;
  top: 0;
  height: 100vh;
  background: none #333;
  color: #fff;
  position: fixed;
  display: fixed;
  flex-direction: column;
  z-index: 30;
  justify-content: center;
  justify-items: center;
  align-items: center;
  align-content: center;
  transition: all 0.3s ease;
}

#mobile-nav ul {
  min-width: 300px;
  width: 100%;
  list-style: none;
  text-decoration: none;
}

#mobile-nav ul li {
  text-align: center;
  padding: 10%;
  background: none #333;
  flex: 1;
  transition: all 0.3s ease;
}

#mobile-nav ul li:hover {
  background: none #222;
}

#mobile-nav ul li a {
  font-size: 2em;
  color: #fff;
  transition: all 0.3s ease;
}

#mobile-nav ul li a:hover {
  color: #f20;
}

.outside {
  left: -1000vw;
}

.visible {
  left: 0;
}

/* sections */

#home {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  background: none #0B090A;
  flex-wrap: wrap;
}

#home {
  background: url('img/autoteile.jpg') top left no-repeat #0B090A;
  background-size: cover;
}

#leistungen {
  position: relative;
  background-color: #333;
  color: #fff;
}

#produkte {
  position: relative;
  background-color: #BA181B;
  color: #fff;
}

#kontakt {
  position: relative;
  background-color: #333;
  color: #fff;
}

table td {
  padding: 0px 5px 3px 0;
}

/* section scroller */

.next-section a, .back-home a {
  position: absolute;
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 5px 7px;
  border-radius: 10px;
  margin: 0;
  bottom: 3%;
  left: 25%;
  right: auto;
  font-size: 2em;
  text-decoration: none;
  transform: translateX(-50%);
  animation: updown 2s ease infinite;
  color: #fff;
}

#home .next-section a {
  left: 49%;
  right: auto;
}

#produkte .next-section a {
  left: auto;
  right: 25%;
}

@keyframes updown {
  0% {
    transform: translateY(-30%);
  }
  50% {
    transform: translateY(30%);
  }
  100% {
    transform: translateY(-30%);
  }
}

/* home bg overlay */

#home .bg {
  width: 100%;
  height: 100vh;
  background: none #0B090A;
  opacity: 0.25;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

/* social icons menu */

.socials {
  position: absolute;
  top: 50%;
  right: 5%;
  font-size: 2em;
  text-align: center;
  transform: translateY(-50%);
  z-index: 2;
}

.socials ul {
  list-style: none;
}

.socials ul li {
  width: 1.6em;
  height: 1.6em;
}

.socials ul li a {
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.socials ul li a:hover {
  color: #f20;
}

#kontakt .socials {
  right: auto;
  left: 45%;
}

/* content */

.content {
  width: 100%;
  align-self: center;
  z-index: 1;
}

.content h1 {
  font-size: 4em;
  line-height: 1.1em;
  margin: 0;
  padding: 0;
  color: #fff;
}

.content h2 {
  margin: 10px 0 0 0;
  padding: 0;
  font-size: 1.5em;
  line-height: 1.1em;
  color: #c0c0c0;
}

.content hr {
  width: 20%;
  height: 2px;
  margin: 15px 0 22px 0;
  background-color: #f20;
  border: none;
  border-radius: 5px;
}

.content button, .impressum-links button {
  margin-top: 50px;
  padding: 10px 20px;
  border-radius: 25px;
  border: 3px solid #f20;
  background-color: #f20;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.content button:hover, .impressum-links button:hover {
  border: 3px solid #D3D3D3;
  background: transparent;
  color: #D3D3D3;
}

.content p {
  font-size: 1em;
  text-align: justify;
  margin-top: 15px;
}

#home .main-container .content {
  padding-left: 0%;
}

/* leistungen */

.column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-items: center;
  min-width: 50%;
  flex: 1;
}

.content {
  padding: 10%;
}

/* Grid Setum */

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0px 0px;
  grid-template-areas: "grid-content grid-bg1" "grid-content grid-bg2";
}

.grid-content {
  grid-area: grid-content;
  height: 100%;
  display: flex;
  justify-content: center;
  padding: 50px 0;
}

.grid-bg1 {
  grid-area: grid-bg1;
  height: 50vh;
  background: none #333;
  color: #fff;
}

.grid-bg2 {
  grid-area: grid-bg2;
  height: 50vh;
  background: none #333;
  color: #fff;
}

#produkte.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0px 0px;
  grid-template-areas: "grid-bg1 grid-content" "grid-bg2 grid-content";
}

/* image containers */

.image-container-0 {
  background: url('img/autoteile.jpg') no-repeat center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.image-container-1 {
  background: url('img/teil1.jpg') no-repeat center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.image-container-2 {
  background: url('img/teil2.jpg') no-repeat center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.image-container-3 {
  background: url('img/teil3.jpg') no-repeat center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.image-container-4 {
  background: url('img/building.jpg') no-repeat center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.image-container-5 {
  background: url('img/google.jpg') no-repeat center;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.leistungen-details {
  margin-top: 25px;
  margin-left: 25px;
}

.leistungen-details li {
  list-style: circle;
  font-size: 1.5em;
  margin-top: 10px;
}

.impressum-links {
  width: 90vw;
  margin: auto;
  padding: 5%;
  font-size: 0.8em;
  line-height: 1.25em;
  word-wrap: break-word;
}

.impressum-links h1, .impressum-links h2, .impressum-links h3, .impressum-links h4, .impressum-links h5, .impressum-links h6 {
  margin: 20px 0;
  font-weight: bold;
  line-height: 1.5em;
}

.impressum-links p {
  margin: 1px 0;
}

.impressum-links a {
  text-decoration: none;
  color: #f20;
}

.impressum-links a:hover {
  color: #fff;
}

@media screen and (max-width: 640px), screen and (max-height: 640px) {
  #logo {
    background: url('img/logo-mobile.png') no-repeat center left;
    width: 104px;
    margin-left: 15%;
  }
  #home .bg {
    opacity: 0.5;
  }
  .content h1 {
    font-size: 2em;
  }
  .content h2 {
    font-size: 1.15em;
  }
  .content p {
    font-size: 1em;
  }
  .socials {
    display: none;
  }
  #home {
    flex-direction: column;
    flex-wrap: wrap;
  }
  #home .main-container .content {
    margin-top: 150px;
  }
  #navbar {
    margin: 0;
    margin-left: 0;
    background-color: #fff;
  }
  #navbar .main-container {
    margin: 0;
    padding: 0;
  }
  #navbar .main-container nav {
    display: none;
  }
  /* Grid Setum */
  .grid-container, #produkte.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 0px 0px;
    grid-template-areas: "grid-content" "grid-bg1" "grid-bg2";
  }
  .grid-content {
    grid-area: grid-content;
    height: 100%;
    padding: 50px 0;
  }
  .grid-bg1 {
    grid-area: grid-bg1;
    height: 100%;
  }
  .grid-bg2 {
    grid-area: grid-bg2;
    height: 100%;
  }
  #menu-button {
    display: block;
  }
}

@media screen and (max-width: 1210px) {
  #navbar {
    margin: 0;
    margin-left: 0;
    background-color: #fff;
  }
  #navbar .main-container nav {
    display: none;
  }
  #navbar .main-container {
    margin: 0;
    padding: 0;
  }
  #menu-button {
    display: block;
  }
}