@import url("reset.css");

/*-----------FONTS-----------*/
/* barlow-semi-condensed-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: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/barlow-semi-condensed-v15-latin-regular.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-semi-condensed-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: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/barlow-semi-condensed-v15-latin-500.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-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: 'Barlow';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/barlow-v12-latin-regular.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* barlow-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: 'Barlow';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/barlow-v12-latin-500.woff2') format('woff2');
  /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/*-----------FONTGESTALTUNG-----------*/
body {
  font-family: 'Barlow'
}

p {
  font-size: 17px;
  font-weight: 300;
  line-height: 21px;
  margin-bottom: 15px;
  color: var(--fontcolor);
}

a {
  font-size: 17px;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

h1 {
  font-family: 'Barlow Semi Condensed';
  font-size: 120px;
  margin-bottom: 30px;
  color: var(--fontcolor);
  font-weight: 500;
}

h2 {
  font-family: 'Barlow Semi Condensed';
  font-size: 50px;
  color: var(--fontcolor);
  margin-bottom: 30px;
}

h3 {
  font-family: 'Barlow Semi Condensed';
  font-size: 30px;
  font-weight: 400;
  color: var(--fontcolor);
  margin-bottom: 50px;
}

h4 {
  font-family: 'Barlow Semi Condensed';
  font-size: 27px;
  font-weight: 400;
  color: var(--fontcolor);
  margin-bottom: 10px;
}

.gradient {
  background: -webkit-linear-gradient(0deg, #C72AB6, #CC0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.button {
  color: #fff;
  background: linear-gradient(90deg, var(--c1, #C72AB6), var(--c2, #CC0000) 51%, var(--c1, #C72AB6)) var(--x, 0)/ 200%;
  padding: 15px 30px;
  border-radius: 20px 20px 20px 0;
  transition: 1s ease;
}

.button:hover {
  --x: 100%;
}

.button-white {
  color: var(--fontcolor);
  background: #fff;
  padding: 15px 30px;
  border-radius: 20px 20px 20px 0;
}

/*-----------SUBNAV-----------*/
.subnav {
  position: fixed;
  bottom: 0;
  color: #fff;
  z-index: 999;
  transition: 0.5s;
  width: 100%;
  text-align: right;
}

.subnav a {
  color: #fff;
  padding: 8px 15px;
  font-size: 14px;
  background-color: #000;
  margin-left: 20px;
  line-height: 23px;
}

.subnav a:nth-of-type(2) {
  margin-right: 5%;
}

.subnav a:hover {
  color: #dfdfdf;
}

/*-----------AUFBAU-----------*/
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

:root {
  --dsared: #cc0000;
  --fontcolor: #303030;
  --lightgrey: #F8F8F8;
}

section {
  padding: 100px 0;
}

.content {
  display: flex;
  align-items: center;
  width: 70%;
  margin-left: 15%;
  gap: 5rem;
}

.col {
  width: 100%;
}

/*-----------HEADER-----------*/
header {
  background: url("../images/dsa-sea.jpg") no-repeat;
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
}

.logo {
  position: absolute;
  left: 10%;
  top: 5%;
  width: 150px;
}

.cta-header {
  position: absolute;
  right: 10%;
  top: 6%;
}

.headline {
  position: absolute;
  left: 10%;
  top: 55%;
  transform: translate(0, -50%);
}

.headline p {
  font-size: 35px;
  font-weight: 400;
  margin-bottom: 75px;
}

/*-----------BEREICH1-----------*/
.experte {
  height: 500px;
  width: 100%;
  position: relative;
  background: url("../images/fabianritter.jpg") no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 20px 0;
}

.siegel {
  position: absolute;
  right: -7%;
  top: -7%;
  width: 130px;
}

.name-white {
  color: var(--fontcolor);
  background: #fff;
  padding: 15px 30px;
  border-radius: 20px 20px 20px 0;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  position: absolute;
  bottom: -7%;
  left: -7%;
  r
}

/*-----------BEREICH2-----------*/
#nutzen {
  text-align: center;
}

#nutzen h2 {
  margin-bottom: 50px;
}

.nutzen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.nutzen-box {
  padding: 40px 20px;
  border-radius: 20px 20px 20px 0;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: 0.3s ease;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.nutzen-box {
    opacity: 0; /* Initially hidden */
    transform: translateX(-100%); /* Start position */
    animation-fill-mode: forwards; /* Keep the end state of animation */
}

.nutzen-box img {
  margin-bottom: 15px;
}

/*-----------BEREICH3-----------*/

#landingpage img{
  width: 100%;
}

/*-----------BEREICH4-----------*/
#produkt {
  text-align: center;
}

#produkt h3{
  margin-bottom: 10px;
}

#produkt p{
  margin-bottom: 100px;
}

.produkt-box {
  background: var(--lightgrey);
  padding: 40px 20px;
  border-radius: 20px 20px 20px 0;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.produkt-box p {
  margin-bottom: 50px;
}

.produkt-box img {
  margin-bottom: 50px;
}

.counter-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.counter-box{
  background-color: var(--lightgrey);
  padding: 40px 20px;
  border-radius: 20px 20px 20px 0;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.counter {
  position: relative;
  background: url("../images/circle.svg") no-repeat;
  background-position: center;
  width: 100%;
  height: 250px
}

.counter-text{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.counter p {
  color: #fff;
  font-size: 70px;
  margin-bottom: 0 !important;
}

.small{
  margin-top: 30px;
  font-size: 25px !important;
}

.counter-box {
  opacity: 0;
  transform: translateX(0); /* Reset transforms for all boxes initially */
}

/* Slide-in animations for individual boxes */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/*-----------BEREICH5-----------*/
#faq {
  background: var(--lightgrey);
}

#faq h2 {
  text-align: center;
  margin-bottom: 50px;
}

.accord {
  border-bottom: solid 1px var(--fontcolor);
}

.accord:nth-of-type(10) {
  border-bottom: none;
}

.accordion span {
  margin-right: 20px;
}

.accordion {
  background-color: transparent;
  color: var(--fontcolor);
  cursor: pointer;
  padding: 20px 0 20px 0;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 27px;
  transition: 0.4s;
}

.accordion1 {
  padding: 0 0 20px 0;
}

.accordion:after {
  content: '\002B';
  color: var(--fontcolor);
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.panel {
  padding: 0 50px;
  background-color: transparent;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

/*-----------PUFFER-----------*/
.puffer {
  padding: 100px 0;
  background: var(--lightgrey);
  text-align: center;
}

.puffer h2 {
  margin-bottom: 10px;
  padding: 0 20px;
}

.puffer h3{
  padding: 0 20px;
}

/*-----------FOOTER-----------*/
footer {
  padding: 100px 0;
  background-color: var(--dsared);
  background-image: url(../images/dsa-logo-transparent.svg);
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
}

footer p, footer h2, footer h3, footer a {
  color: #fff;
}

.flex {
  display: flex;
  gap: 10rem;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 0.5rem;
}

/*-----------RESPONSIVE-----------*/

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

  .content{
    width: 80%;
    margin-left: 10%;
  }

}

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

  .content{
    width: 80%;
    margin-left: 10%;
  }

}

@media screen and (max-width: 1200px) {
  .counter p{
    font-size: 60px;
  }

  .small{
    margin-top: 25px;
  }
}

@media screen and (max-width: 1000px) {
  .content{
    flex-direction: column;
  }

  .nutzen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  #landingpage .content{
    flex-direction: column-reverse;
  }

  #landingpage img{
    width: 70%;
  }

  #landingpage .content .col:nth-of-type(1){
    text-align: center;
  }

  .counter-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4rem;
  }

  .flex{
    gap: 5rem;
  }

}

@media screen and (max-width: 850px) {
  
  h1{
    font-size: 100px;
  }

  .headline p{
    font-size: 30px;
  }

  h2{
    font-size: 35px;
  }

  h3{
    font-size: 25px;
  }

  h4{
    font-size: 25px;
  }

  .accordion{
    font-size: 23px;
  }

}

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

  header{
    background-attachment: scroll;
  }

  h1{
    font-size: 80px;
  }

  .headline p{
    font-size: 25px;
  }

  .nutzen-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4rem;
  }

  #landingpage img{
    width: 100%;
  }
  
}

@media screen and (max-width: 500px) {
  
  .cta-header{
    display: none;
  }

}

@media screen and (max-width: 450px) {
  h1{
    font-size: 65px;
  }
  
}
