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

/* Allgemeines Seitenlayout */
body {
  font-family: "Poppins", sans-serif;
  background-color: #f4f0d7;
  color: #000;
  line-height: 1.6;
}

/* TEXTAREA (Bemerkungen) */

textarea#comment,
textarea[name="comment"],
textarea.comment,
form textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;

  resize: vertical !important;
  max-height: 240px;

  overflow-x: hidden;
  overflow-y: auto;

  white-space: pre-wrap;
  word-break: break-word;
}

/* LOGO */

.logo {
  display: block;
  margin: 0 auto;
  width: 350px;
  height: auto;
}

/* HERO-BEREICH */

.hero {
  background: #00585b;
  color: #fff;
  text-align: center;

  padding: 60px 20px 90px;

  position: relative;
  z-index: 5;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 600;
  font-style: italic;
  color: #92c6cf;
}

/* 
 * GESTALTUNGSELEMENT ZWISCHEN HERO UND FORMULAR 
 * CSS-Struktur für das Einbetten der Welle mit negativem Margin erarbeitet mit ChatGPT (siehe KI-Verzeichnis Nr. 4)
 */
.form-decor-wave-container {
  width: calc(100% + 80px);

  /* Bild weit über den oberen Rand ziehen */
  margin-top: -160px;

  /* Links etwas herausziehen */
  margin-left: -40px;

  /* Formular weiter nach oben ziehen */
  margin-bottom: -180px;

  overflow: hidden;

  border-top-left-radius: 15px;
  border-top-right-radius: 15px;

  line-height: 0;
}

.form-decor-wave {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Anpassung der Welle */
@media (max-width: 650px) {
  .form-decor-wave-container {
    width: calc(100% + 40px);

    margin-top: -90px;
    margin-left: -20px;
    margin-bottom: -80px;

    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
}

/* HAUPT-CONTAINER */

.container {
  max-width: 760px;
  margin: 20px auto 60px;
  padding: 0 20px;

  position: relative;
  z-index: 20;
}

/* FORMULAR */

form,
.form {
  background: #fff;
  padding: 45px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 88, 91, 0.08);
}

/* FORMULAR */

.form-section {
  margin-bottom: 35px;
  padding-bottom: 25px;

  border-bottom: 2px dashed rgba(0, 88, 91, 0.12);
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h2 {
  color: #00585b;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* EINGABEFELDER */

.input-group {
  margin-bottom: 20px;
}

input,
select,
textarea {
  width: 100%;

  padding: 12px 16px;

  border: 2px solid rgba(0, 88, 91, 0.18);
  border-radius: 8px;

  background: #fff;

  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}

/* Fokus-Effekt beim Anklicken */
input:focus,
select:focus,
textarea:focus {
  outline: none;

  border-color: #339692;

  box-shadow: 0 0 0 4px rgba(51, 150, 146, 0.15);
}

/* BESCHRIFTUNGEN (LABELS) */

/* Normale Feldbeschriftungen */
.input-group label[for] {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Labels für Radio-Buttons und Checkboxen */
.input-group > label:not([for]) {
  display: block;
  font-weight: 400;
  margin-bottom: 8px;
}

.input-group p {
  font-weight: 600;
  margin-bottom: 8px;
}

/* RADIOBUTTONS & CHECKBOXEN */

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  margin-right: 8px;

  accent-color: #00585b;
}

/* FEHLERMELDUNGEN */

.error {
  color: #d32f2f;
  font-size: 0.85rem;

  margin-top: 5px;
  min-height: 16px;
}

/* BUTTONS */

button {
  width: 100%;

  padding: 16px;

  background: #00585b;
  color: #fff;

  border: none;
  border-radius: 8px;

  font-weight: 700;
  text-transform: uppercase;

  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #339692;
  transform: translateY(-2px);
}

/* FOOTER */

footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
}

footer a {
  color: #339692;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: #dc9c37;
}

/* RESPONSIVE DESIGN (Smartphones bis 650px Breite)
   Grundkonzept & Media-Query-Syntax nach W3Schools (siehe Verzeichnis Nr. 6)
   Spezifische Formular-Anpassungen optimiert mit ChatGPT (siehe Verzeichnis Nr. 7) */

@media (max-width: 650px) {
  /* Hero-Bereich kompakter */
  .hero {
    padding: 30px 15px 15px;
  }

  .hero .logo {
    max-width: 110px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  /* Formular kompakter */
  form,
  .form {
    padding: 25px 20px !important;
    border-radius: 12px;
  }

  /* Eingabefelder auf volle Breite */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }
  /* Checkboxen und Radios untereinander */
  .input-group label {
    display: block;
    margin-bottom: 8px;
  }

  /* Buttons schöner */
  button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
  }
  /*
 * Mobile-Korrektur für input[type="date"]
 * Ursache: Datumsfelder ragten auf iOS/Safari über den Formularrand hinaus.
 * Lösungsansatz mithilfe von ChatGPT erarbeitet und anschliessend getestet/an das Projekt angepasst.
 */
  input[type="date"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;
  }
}
