/* poppins-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/poppins-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/poppins-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/poppins-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* poppins-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/poppins-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* --------- Root Elemente --------- */

:root {
  --clr-primary-200: #FFF;

  --clr-accent: #39A1FF;
  --clr-accent-hover: #39A1FF;
  --clr-chosen: #0166FF;

  --ff-primary: 'Poppins';
  --ff-headlines: 'Poppins';
}


/* ---------- Animationen ------------ */

#kunde {
  animation: appear 0.8s ease-in-out forwards;
}

#entwickler {
  animation: appear 0.8s ease-in-out forwards 1s;
}

#produkte {
  animation: appear 0.8s ease-in-out forwards 0.5s;
}

.produkte {
  margin-left: -2em;
}

.socialMedia {
  width: 40px;
  height: 40px;
  margin: 4em 1.3em 0 0;
}

@keyframes appear {
  0% {
    scale: 0%;
  }
  20% {
    scale: 30%;
  }
  40% {
    scale: 60%;
  }
  60% {
    scale: 90%;
  }
  80% {
    scale: 110%;
  }
  100% {
    scale: 100%;
  }
}

.goToTop {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 40px;
  right: 50px;
}

/* ---------- Allgemeine Elemente ---------- */


body, html { width: 100%; margin: 0 0 0 0; font-size: clamp(1em, 1vw, 1.5em); padding: 0; font-family: var(--ff-primary); line-height: 1.6;}

*, *::before, *::after {box-sizing: border-box;}
img { max-width: 100%;}

/* ---------- Container und Spaltenbreite ---------- */

section {
  padding: 3.5rem 0;
}

.container {
  margin: 0 auto;
  width: min(80%, 100%);
}
.row {
  display: flex;
  justify-content: center;
  gap: 2em;
}

.row-start {
  display: flex;
  justify-content: center;
  gap: 2em;
}

.row-left {
  display: flex;
  justify-content: flex-start;
  gap: 2em;
}

.col-equalsize {
  width: 100%;
}
.col-onethird {
  width: 33%;
}

.col-twothirds {
  width: 67%;
}

.col-twothirds > p > a {
  color: #000000;
  text-decoration: underline;
}

.col--item-two {
  text-align: center;
}

.col--item-four {
  width: 100%; text-align: center;
}

  /* -- Index light -- */

  .index-one {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: url(images/bg_startseite.png);
    position: relative;
    background-position: center center;
    background-size: cover;
  }

  .index-two {
    background-color: var(--clr-accent);
  }

  .index-four {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: url(images/bg_kontakt.png);
    position: relative;
    background-position:center center;
    background-size: cover;
  }

  .button--blue {
    background-color: #007CFD;
    padding: 1em 1.5em;
    box-shadow: 0 5px 5px 0 #949494;
    border: none;
    border-radius: 1.5em;
    position: relative;
    z-index: 2;
    cursor: pointer;
    margin-right: 1.5em;
    color: #ffffff;
  }

  .button--kontakt {
    background-color: #007CFD;
    box-shadow: 0 5px 5px 0 #949494;
    border: none;
    width: 3em;
    height: 3em;
    border-radius: 1.5em;
    position: relative;
    z-index: 2;
    cursor: pointer;
    margin: 1.5em 1.5em 0 0;
  }

  .icon {
    margin: 4em 2em 0 0;
    max-width: 9em;
  }

  .kategorie-ausgewählt {
    max-width: 10em;
    margin: 3em 7em 0 7em;
    scale: 0%;
  }

  .kategorie {
    max-width: 10em;
    margin: auto 7em;
    scale: 0%;
  }

  .show {
    display: block;
  }

  .noshow {
    display: none;
  }

  .button {
    background: var(--clr-accent);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 10px 25px;
  }

  .button.active {
    background-color: var(--clr-chosen);
  }


  /* -- Team -- */

  .row--team { display: flex; justify-content: center; flex-wrap: wrap; gap: 2em;}
  .col--team { width: 30%; text-align: center;}
  .img--team { width: 100%; height: auto;}


/* ---------- Fonts ---------- */

h1 {
  font-family: var(--ff-primary);
  font-size: clamp(2.5em, 4vw, 7em);
  font-weight: 100;
  color: #000000;
  text-align: center;
}

h2 {
  font-size: clamp(2em, 3vw, 3.5em);
  font-weight: lighter;
  font-family: var(--ff-headlines);
}

h3 {
  font-size: clamp(2em, 3vw, 3.5em);
  font-weight: lighter;
  font-family: var(--ff-primary);
}

h4 {
  font-family: var(--ff-primary);
  font-size: clamp(1.5em, 2.2vw, 2.5em);
  color: #000000;
  font-weight: 200;
}
h5 {
  font-size: clamp(1em, 1.3vw, 1.4em);
  font-weight: lighter;
  font-family: var(--ff-primary);
}

p {
  font-size: clamp(1em, 1.2vw, 1.4em);
  font-family: var(--ff-primary);
  line-height: 1.5em;
}

a {
  text-decoration: none;
  font-size: clamp(1em, 1.2vw, 1.4em);
  font-family: var(--ff-primary);
  color: #ffffff;
}

.text--white {
  color: #ffffff
}

.text--middle {
  text-align: center;
}

.team--name {
  margin-top: -0.9em;
  margin-bottom: -0.4em;
  font-size: clamp(1em, 2vw, 2em);
}

.title {
  font-size: clamp(0.9em, 1vw, 1.1em);
}


/* --------- Header --------- */

header {
  z-index: 10000;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 3em;
  transition: 0.6s;
  background: var(--clr-accent);
}

header .menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

header .menu a {
  font-size: 1em;
  padding: 0.3em 0.75em;
  margin: 0 1.5em;
  color: #ffffff;
  font-family: var(--ff-primary);
  font-size: 0.8em;
  border-radius: 1.5em;
  transition: 0.3s;
  transition-property: color;
}
header .btn {
  color: #ffffff;
  font-size: 1.5em;
  cursor: pointer;
  display: none;
}


/* --------- Footer --------- */

footer {
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--clr-accent);
  padding: 1.5em 0 5em 0;
  margin-top: auto;
}

.index {
  display: flex;
  align-items: center;
  min-height: 100vh;
  background: url(images/bg_startseite.png);
  position: relative;
  background-position:center center;
  background-size: cover;
}


.index--logo { z-index: 100; background: none; float: left; width: 4.5em; height: auto;}
.index--image { width: auto; height: 6em;}
.index--image-two { margin-top: 5em; width: 7.2em; height: auto;}
#index--easteregg { font-size: clamp(0.8em, 1vw, 1em); display: block; animation: fade 500ms ease-in forwards 3s; opacity: 0; color: #FFF; cursor: pointer;}
.besucher {  margin: -5% 6% 0 6%;}
.col--item-three { margin-top: 1.8em;}

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

label {
  display: block;
  margin-bottom: 0.3em;
}

input {
  padding: 1em 1em;
  margin-bottom: 1em;
  width: 450px;
}

textarea {
  padding: 1em 1em;
  margin-bottom: 1em;
  width: 450px;
  display: block;
}

input[type=submit] {
  width: 150px;
  color: #fff;
  background: #305E6A;
  border: none;
  border-radius: 5px;
}

.submit {
  display: flex;
  text-align: center;
  justify-content: center;
}


@keyframes fade {
  0% { opacity: 0;}
  100% { opacity: 1;}
}

@keyframes text {
  0% {opacity: 0; margin-top: 0px;}
  100% { opacity: 1;}
}

.switch {
  display: none;
}


.row-tabs {
  display: grid;
  gap: 3em;
  grid-template-columns: repeat(2, 1fr);
  justify-content: start;
  align-items: center;
  z-index: 1;
}

.content {
  order: 1;
}

.image {
  order: 2;
}

.tabs {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: visible;
  margin-bottom: 2em;
}

.tab-header {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 3em;
  cursor: pointer;
}

.tab-header > div.active {
  color: var(--clr-accent);
}

.tab-indicator {
  position: relative;
  width: 50px;
  height: 3px;
  background: var(--clr-accent);
  border-radius: 5px;
  opacity: 0;
  transition: opacity 500ms ease-in-out 0ms;
  margin-top: -1.5em;
}

.tab-header > div.active .tab-indicator {
  opacity: 1;
}

.tab-body {
  position: relative;
  height: calc(100% - 60px);

}

.tab-body > div {
  position: absolute;
  opacity: 0;
  transition:
      opacity 500ms ease-in-out 0ms;
}

.tab-body > div.active {
  opacity: 1;
}

.cards {
  margin-top: 2em;
  margin-bottom: 7em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5em;
  justify-content: center;
}

.card {
  border-radius: 25px;
  padding: 1.5em 1.5em;
  box-shadow: 5px 5px 5px 4px rgb(233, 233, 233);
  transition: all 500ms ease-in-out 0ms;
}




/* --------- Media Queries --------- */

@media (max-width: 960px) {
  header .btn {
    display: block;
    width: 0.8em;
    height: 0.8em;
    margin-top: -0.5em;
  }

  header .menu {
    position: fixed;
    background: var(--clr-chosen);
    flex-direction: column;
    min-width: 320px;
    height: 100vh;
    top: 0;
    right: -100%;
    padding: 1em 3em;
  }

  header .menu.active {
    right: 0;
    background: var(--clr-accent);
    z-index: 1200;
  }

  header .menu .close-btn {
    position: absolute;
    top: 0;
    left: 0;
    margin: 25px;
    width: 0.8em;
    height: 0.8em;
  }

  header .menu a {
    display: block;
    font-size: 1em;
    margin: 1.5em;
    padding: 0 1em;
  }

  .row {
    display: block;
  }

  .col-equalsize {
    width: 100%;
    text-align: center;
    margin: auto;
  }

  .row--team {
    display: block;
  }

  .row--projekte {
    display: block;
  }

  .col--projekte {
    width: 100%;
    margin-top: 2em;
  }

  .col--standorte {
    width: 100%;
  }

  .col--team {
    width: 100%;
    margin-top: 3em;
  }

  .col--uns {
    margin-top: 3em;
  }

  .about--image {
    margin-top: 3em;
  }

  .image--topspace {
    margin-top: 3em;
  }

  .col-onethird {
   width: 100%;
  }

  .col-twothirds {
    width: 100%;
   }

  .icon {
    margin: 6em auto 0 auto;
  }

  .cards {
    display: block;
  }

  .row-tabs {
    grid-template-columns: repeat(1, 1fr);
  }

  .content {
    order: 2;
  }

  .image {
    order: 1;
  }

  .col-tabs {
    width: 100%;
  }

}

@media (max-width: 650px) {

  input {
    width: 280px;
  }

  textarea {
    width: 280px;
  }

  .content {
    width: 80%;
  }

  .row--index {
    flex-wrap: wrap;
  }

  .col--item-one {
    order: 2;
  }

  .col--item-two {
    width: 100%;
    order: 1;
  }

  .col--item-three {
    order: 3;
  }

  .col-big {
    width: 100%;
  }

  .row-start {
    display: flex;
    align-items: center;
  }
}
