/* Grundlegende Einstellung: Kein horizontaler Scroll */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Hauptbereich der Startseite */
.main-page {
  background: var(--primary-color);
  padding: 10vh 5vw 0 5vw;
  box-sizing: border-box;
}

/* Container für den Content mit Flexbox Layout */
.main-page .section-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  overflow: hidden;
}

/* Text-Bereich */
.main-page .main-details {
  width: 100%;
  max-width: 800px;
}

/* Große Überschrift */
.main-page .main-details .title {
  font-size: 60px;
  color: var(--secondary-color);
  margin-top: 10px;
  margin-bottom:10px;
}

/* Untertitel */
.main-page .main-details .subtitle {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 50px;
  max-width: 70%;
}

/* Beschreibungstext */
.main-page .main-details .description {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 40px;
}

/* Container für die Buttons mit flexiblem Abstand */
.buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background: transparent;
}

/* Gemeinsames Styling der Buttons */
.button-services,
.button-order-now,
.button-contact-us {
  padding: 12px 24px;
  border: none;
  outline: none;
  border-radius: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  text-align: center;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  background-color: #204244;
  color: #F2F1E9;
}

/* Hover-Effekt für alle Buttons */
.button-services:hover,
.button-order-now:hover,
.button-contact-us:hover {
  background-color: #F2F1E9;
  color: #204244;
}

/* Bild-Wrapper für das Creeper-Bild */
.creeper-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-right: 50px;
  margin-top: 50px;
  transform: translate(200px, 0);
}

/* Responsive Anpassungen für Tablets und kleinere Displays */
@media (max-width: 768px) {
  .main-page .section-content {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
  }

  .main-page {
    margin: 100px 20px 40px 20px;
  }

  .main-page .main-details .title {
    font-size: 40px;
  }

  .main-page .main-details .subtitle {
    font-size: 30px;
    max-width: 100%;
  }

  .main-page .main-details .description {
    font-size: 22px;
  }

  /* Bild wird auf kleineren Bildschirmen ausgeblendet */
  .creeper-image,
  .image-wrapper {
    display: none !important;
  }

  /* Buttons zentrieren und anpassen */
  .buttons {
    justify-content: center;
    gap: 15px;
  }

  .buttons a {
    font-size: 14px;
    padding: 10px 20px;
  }
}

/* Weitere Anpassungen für kleine Handys */
@media (max-width: 425px) {
  .main-page .main-details .title {
    font-size: 28px;
  }

  .main-page .main-details .subtitle {
    font-size: 22px;
  }

  .main-page .main-details .description {
    font-size: 16px;
  }

  .buttons a {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* Sehr kleine Displays (z.B. ältere Smartphones) */
@media (max-width: 375px) {
  .main-page .main-details .title {
    font-size: 24px;
  }

  .main-page .main-details .subtitle {
    font-size: 18px;
  }

  .main-page .main-details .description {
    font-size: 14px;
  }

  .buttons a {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Box-Sizing für alle Elemente */
* {
  box-sizing: border-box;
}

/* Winzige Displays */
@media (max-width: 360px) {
  .main-page .main-details {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .main-page .main-details .title {
    font-size: 20px;
  }

  .main-page .main-details .subtitle {
    font-size: 16px;
    max-width: 100%;
  }

  .main-page .main-details .description {
    font-size: 14px;
  }

  .buttons a {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Sichtbarkeit der Texte je nach Bildschirmgröße */
/* Desktop zeigt Desktop-Text */
.desktop-text {
  display: block;
}
.mobile-text {
  display: none;
}

/* Mobile zeigt Mobile-Text */
@media (max-width: 768px) {
  .desktop-text {
    display: none;
  }
  .mobile-text {
    display: block;
  }

  .mobile-text .title {
    font-size: 28px;
  }

  .mobile-text .subtitle {
    font-size: 20px;
  }
}

/* Bilder responsive machen */
img {
  max-width: 100%;
  height: auto;
  display: block;
}