@keyframes textEinblenden {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================
   Hero-Bereich
========================== */
.hero {
  background-image:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("../img/Auto2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 100vh;
  display: flex;
  align-items: center;

  color: white;
  padding: 100px 20px 60px;
}

.hero-content {
  max-width: 750px;
  margin: auto;
}

.hero-content h1 {
  font-size: 5.5rem;
  line-height: 1.05;
  margin-bottom: 25px;
  opacity: 0;
  animation: textEinblenden 1s ease-out forwards;
  animation-delay: .3s;
}

.hero-content p {
  font-size: 1.35rem;
  line-height: 1.9;
  color: #d8d8d8;
  margin-bottom: 35px;
  opacity: 0;
  animation: textEinblenden 1s ease-out forwards;
  animation-delay: .6s;
}

.hero-btn {
  display: inline-block;
  background: #f8b240;
  color: white;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 8px;
  font-weight: bold;
  transition: .3s;
}

.hero-btn:hover {
  background: #c38821;
  transform: translateY(-3px);
}

/* ==========================
   Galerie
========================== */
.gallery {
  padding: 90px 20px;
  background: #fff;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transition: .35s;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition:
    transform .4s,
    opacity .8s ease-out;
}

.gallery-item img.appear {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ==========================
   Info
========================== */

.info-section {
  background-image:
    linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)),
    url("../img/scheinwerfer.png");

  background-size: cover;
  background-position: center;

  min-height: 70vh;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: white;

  padding: 80px 20px;
}

.info-content {
  max-width: 850px;
}

.info-content h2 {
  font-size: 3rem;
  color: #f8b240;
  margin-bottom: 25px;
}

.info-content p {
  font-size: 1.3rem;
  line-height: 1.9;
}

/* ==========================
   About
========================== */

.about-section {
  padding: 100px 20px;
  background: white;
  text-align: center;
}

.about-section .container {
  max-width: 850px;
}

.about-section h2 {
  font-size: 2.7rem;
  margin-bottom: 20px;
  color: #222;
}

.about-section h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #f8b240;
  margin: 18px auto 0;
  border-radius: 50px;
}

.about-section p {
  font-size: 1.25rem;
  line-height: 2;
  color: #555;
  margin-top: 35px;
}

/* ==========================
   Responsive
========================== */

@media (max-width:992px){

  .hero{
    min-height:80vh;
  }

  .hero-content{
    text-align:center;
  }

  .hero-content h1{
    font-size:4rem;
  }

  .hero-content p{
    font-size:1.2rem;
  }

  .gallery-container{
    grid-template-columns:repeat(2,1fr);
  }

  .info-content h2{
    font-size:2.3rem;
  }

  .about-section h2{
    font-size:2.3rem;
  }

  .about-section p{
    font-size:1.15rem;
  }

}

@media (max-width:768px){

  .hero{
    min-height:75vh;
    padding:120px 20px 60px;
  }

  .hero-content h1{
    font-size:2.8rem;
    line-height:1.2;
  }

  .hero-content p{
    font-size:1.05rem;
    line-height:1.8;
  }

  .hero-btn{
    display:block;
    width:fit-content;
    margin:auto;
  }

  .gallery{
    padding:60px 20px;
  }

  .gallery-container{
    grid-template-columns:1fr;
    gap:20px;
  }

  .gallery-item img{
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center center;
  }

  .info-section{
    padding:60px 20px;
  }

  .info-content h2{
    font-size:1.9rem;
  }

  .info-content p{
    font-size:1.05rem;
  }

  .about-section{
    padding:70px 20px;
  }

  .about-section h2{
    font-size:2rem;
  }

  .about-section p{
    font-size:1.05rem;
    line-height:1.8;
  }

}
