.home {
    display: flex;
    align-items: center;
    padding: 0 9%;
    background: url(/images/background2\ 1.png) no-repeat center center/cover;
    position: relative;
    min-height: 100vh;
    padding-top: 0;
}

.home-content {
    max-width: 80rem;
    z-index: 99;
}

.home-content h1 {
    position: relative;
    display: inline-block;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h1 span {
    color: var(--text-color);
}

.home-content .text-animate {
    position: relative;
    width: 32.8rem;
}

.home-content h3 {
    position: relative;
    display: inline-block;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    margin: 4rem 2rem 3rem; 
}

.home-content .text-animate h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    background-position: -33rem 0;
}

.home.show-animate .home-content .text-animate h3{
    animation: homeBgText 6s linear infinite;
    animation-delay: 2s;
}

.home-content .text-animate h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-right: 2px solid var(--main-color);
    z-index: -1;
}

.home.show-animate .home-content .text-animate h3::before {
    animation: homeCursorText 6s linear infinite;
    animation-delay: 2s;
}

.btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20rem;
    height: 100%;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:nth-child(1) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(1):hover {
    color: var(--bg-color);
}

.btn-box .btn:nth-child(1)::before {
    background: var(--main-color);
}

.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before {
    width: 100%;
}

.home-sci {
    position: absolute;
    bottom: 4rem;
    width: 170px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem; /* Abstand zwischen den Elementen */
    left: 9%;
}

.home-sci .contact-heading {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem; /* Abstand zu den Icons */
    text-align: center;
    white-space: nowrap;
}

.home-sci .social-icons {
    display: flex;
    justify-content: center;
    gap: 3.5rem; /* Abstand zwischen den Social-Media-Icons */
}

.home-sci .social-icons a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci .social-icons a:hover {
    color: var(--bg-color);
}

.home-sci .social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .5s;
}

.home-sci .social-icons a:hover::before {
    width: 100%;
}

/* ----------- RESPONSIVE: TABLET & HANDY ----------- */
@media (max-width: 991px) {
  .home {
    flex-direction: column;
    text-align: center;
    padding-top: 12rem; /* Platz unter dem Header */
    padding-bottom: 6rem;
  }

  .home-content {
    max-width: 100%;
  }

  .home-content h1 {
    font-size: 4.5rem;
  }

  .home-content h3 {
    font-size: 2.2rem;
    margin: 3rem 0;
  }

  .btn-box {
    justify-content: center;
    width: 100%;
  }

  .btn-box .btn {
    width: 18rem;
    font-size: 1.6rem;
  }

  .home-sci {
    position: static;
    margin-top: 3rem;
    align-items: center;
  }

  .home-sci .contact-heading {
    font-size: 2.2rem;
  }

  .home-sci .social-icons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .home-sci .social-icons a {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
}

@media (max-width: 520px) {
  .home-content h1 {
    font-size: 3.6rem;
  }

  .home-content h3 {
    font-size: 1.8rem;
  }

  .btn-box .btn {
    width: 100%;
    font-size: 1.5rem;
  }

  .home-sci .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .home {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10rem 2rem 5rem;
    text-align: center;
    background-position: center;
    padding-bottom: 15rem;
  }

  .home-content {
    max-width: 100%;
  }

  .home-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .home-content h3 {
    font-size: 2rem;
    line-height: 1.4;
    margin: 2rem 0;
    padding: 0 1rem;
  }

  .btn-box {
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
  }

  .btn-box .btn {
    width: 80%;
    max-width: 280px;
    font-size: 1.6rem;
  }

  .home-sci {
    margin-top: 4rem;
    align-items: center;
    position: static;
    width: 100%;
  }

  .home-sci .contact-heading {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .home-sci .social-icons {
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .home-sci .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .home-content h1 {
    font-size: 3.2rem;
  }

  .home-content h3 {
    font-size: 1.6rem;
  }

  .btn-box .btn {
    width: 90%;
    font-size: 1.4rem;
  }

  .home-sci .contact-heading {
    font-size: 1.8rem;
  }

  .home-sci .social-icons a {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }
}
