/* Gesamtstil für die Kontakt-Sektion */
  html,
  body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
  }
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(images/Büroflur.jpg) no-repeat center/cover;
  min-height: 100vh;
}

/* Box, die das Formular umschließt */
.contact-box {
  width: 90%;
  max-width: 600px;
  padding: 30px;
  border: 2px solid grey;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Formularstil */
.contact-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.contact-box label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.contact-box textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-box button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  background: linear-gradient(45deg, grey, rgb(199, 199, 199));
  border: none;
  color: white;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s ease;
}

.contact-box button:hover {
  background: linear-gradient(45deg, #43a047, #66bb6a);
  transform: translateY(-2px);
}

.contact-box button:active {
  transform: translateY(0);
}

textarea {
  resize: none !important;
}

@media only screen and (max-width: 425px) {
  /* Sektion enger fassen, damit der Inhalt zentriert bleibt */
  .contact-section {
    padding: 20px 10px;
  }

  /* Formularcontainer auf volle Breite und reduzierte Ränder */
  .contact-box {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 20px;
    border-width: 1px;
    border-radius: 8px;
  }

  /* Größerer Titel für bessere Lesbarkeit */
  .contact-box h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  /* Etwas mehr Abstand bei Labels */
  .contact-box label {
    margin-top: 12px;
    font-size: 1rem;
  }

  /* Mehr Padding und größere Schrift in Feldern */
  .contact-box input,
  .contact-box textarea {
    padding: 14px;
    font-size: 1rem;
  }

  /* Knopf auffälliger und besser zu treffen */
  .contact-box button {
    padding: 18px;
    font-size: 1.2rem;
    border-radius: 6px;
  }

  /* Bei sehr kleinen Handys kann der Back-Link kleiner werden */
  .backlink {
    font-size: 12px;
    top: 6px;
    left: 6px;
  }
}