/* Services-Hero Section */
.hero-services {
  background: url('../img/services/buchhaltung/0.png') no-repeat center/cover;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: whitesmoke;
  position: relative;
}
.hero-services h1{
  color: whitesmoke;
  font-size: 3rem;
}



/* Services Section */
.services {
  text-align: center;
  padding: 50px 20px;
  background: whitesmoke;
}
.services a{
  text-decoration: none;
  color: #1B2021;
}

.services-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* Service Box */
.service {
  background: whitesmoke;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.5s ease-in-out;

  min-height: 210px; /* Keeps size fixed */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Service Header */
.service-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: transform 0.5s ease-in-out; /* Smooth movement */
}

/* Service Icon */
.service-header img {
  width: 50px;
  height: auto;
}

/* Service Title */
.service-header span {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1B2021;
  transition: opacity 0.5s ease-in-out;
}

/* Description (Hidden by Default) */
.service-desc {
  font-size: 1rem;
  color: #30343F;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: translateY(10px);
}

/* Hover Effect */
@media (hover: hover) {
  .service:hover .service-header {
    transform: translateY(-10px); /* Moves up slightly */
  }

  .service:hover .service-desc {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0); /* Smooth fade-in */
  }
}

/* Always Show Description on Mobile */
@media (max-width: 768px) {
  .service-desc {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
  }
  .hero-services h1{
    color: whitesmoke;
    font-size: 2.5rem;
  }
}

/* Additional Services */
#weitere-dienstelungen {
  padding: 16px 20px;
  background: whitesmoke;
}

#weitere-dienstelungen > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
#weitere-dienstelungen h3{
  text-align: center;
  margin-bottom: 24px;
}
#weitere-dienstelungen > div > div {
  background: whitesmoke;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s;
  text-align: left;
}

#weitere-dienstelungen > div > div:hover {
  transform: translateY(-5px);
}

#weitere-dienstelungen img {
  width: 70px;
  height: auto;
  margin-bottom: 0;
}



@media (min-width: 1000px) {
  #weitere-dienstelungen > div {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 480px) {
  h3 {
    font-size: 1.8rem;
  }
}

.online-tax-service {
  background: #f4f4f4;
  padding: 40px;
  text-align: center;
  border-radius: 10px;
  max-width: 900px;
  margin: 40px auto;
}

.online-tax-service h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 10px;
}

.online-tax-service p {
  font-size: 1.2rem;
  color: #222222;
  line-height: 1.6;
  margin-bottom: 20px;
}

.online-tax-service .cta-button {
  display: inline-block;
  background: #5398BE;
  color: white;
  padding: 12px 20px;
  font-size: 1.2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease-in-out;
}

.online-tax-service .cta-button:hover {
  background: #0056b3;
}
