/* Poppins-Font für das ganze Projekt */
body {
  font-family: "Poppins", sans-serif;
  background-color: #d8d8d8; /* Mondstaub - Sekundärfarbe */
  margin: 0;
  padding: 0; /* Changed from 20px to 0 for full-width header/footer */
  color: #121f32; /* Mondfinsternis - dunkle Sekundärfarbe für Text */
  font-weight: 400; /* Poppins Regular für Grundtext */
  font-size: 12pt; /* Grundtextgrösse */
  line-height: 1.5;
  background-image: url(../images/sea.jpg); /* Hintergrundbild */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex; /* Flexbox für das gesamte Layout */
  flex-direction: column; /* Elemente (Header, Main, Footer) untereinander */
  min-height: 100vh; /* Mindesthöhe des Viewports */
}

/* Header-Stile */
.header {
  background-color: white;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center; /* Zentriert den Inhalt des Headers */
  align-items: center;
  width: 100%;
  box-sizing: border-box; /* Padding in die Breite einbeziehen */
}

.header-content {
  max-width: 1200px; /* Maximale Breite des Header-Inhalts */
  width: 100%;
  display: flex;
  justify-content: space-between; /* Logo links, andere Elemente rechts */
  align-items: center;
}

.header-logo {
  height: 40px; /* Höhe des Logos anpassen */
  width: auto;
}

/* Main Content Wrapper for Centering */
.main-content-wrapper {
  display: flex;
  justify-content: center; /* Horizontale Zentrierung des Formulars */
  align-items: center; /* Vertikale Zentrierung des Formulars */
  flex-grow: 1; /* Nimmt den restlichen vertikalen Raum ein */
  padding: 20px; /* Globales Padding um den Formularcontainer */
  box-sizing: border-box;
}

.form-container {
  width: 90%; /* Responsive Breite */
  max-width: 500px;
  background: white;
  padding: 25px 30px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(73, 117, 181, 0.3); /* Tiefseeblau, etwas transparent */
  border: 1px solid #6aa7d4; /* Gletscherhauch als zarter Rand */
  box-sizing: border-box; /* Include padding in width */
}

/* Überschriften */
h1 {
  font-weight: 900; /* Poppins Black */
  font-size: 24pt;
  color: #4975b5; /* Tiefseeblau */
  margin-bottom: 20px;
  text-align: center; /* Zentriert die Überschrift im Formular */
}

h2 {
  font-weight: 700; /* Poppins Bold */
  font-size: 18pt;
  color: #4975b5; /* Tiefseeblau */
  margin-bottom: 18px;
  text-align: center; /* Zentriert die Überschrift im Formular */
}

/* Label */
label {
  display: block;
  margin-top: 15px;
  font-weight: 500; /* Poppins Medium */
  font-size: 12pt;
  color: #121f32; /* Mondfinsternis */
  user-select: none;
}

/* Formularfelder */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea,
input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  box-sizing: border-box;
  border: 1.5px solid #6aa7d4; /* Gletscherhauch */
  border-radius: 5px;
  font-weight: 500; /* Poppins Medium */
  font-size: 12pt;
  color: #121f32; /* Mondfinsternis */
  background-color: #fff;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: #4975b5; /* Tiefseeblau */
  outline: none;
  background-color: #f0f7ff; /* sehr helles Blau als Fokus */
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* Buttons */
button,
.btn {
  /* margin-top wird jetzt von .button-group gesteuert */
  background-color: #4975b5; /* Tiefseeblau */
  color: white;
  border: none;
  padding: 14px 26px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500; /* Poppins Medium */
  font-size: 15pt;
  letter-spacing: 0.05em;
  user-select: none;
  transition: background-color 0.25s ease;
  display: inline-block; /* Für den Zurück-Button */
  text-decoration: none; /* Für den Zurück-Button */
  text-align: center; /* For links styled as buttons */
}

button:hover,
.btn:hover {
  background-color: #365a8f; /* dunkleres Blau beim Hover */
}

/* Fehlermeldungen */
.error-messages {
  background-color: #fcd9df; /* sehr helles Zuckerwattenpink */
  border: 1.5px solid #c36b87; /* Zuckerwattenpink */
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  color: #7a2f44; /* dunkleres Zuckerwattenpink für Text */
  font-weight: 700; /* Poppins Bold */
  font-size: 12pt;
  box-shadow: 0 2px 6px rgba(195, 107, 135, 0.3);
}

.error-messages ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

/* Besonderer Abstand für den Button auf der Startseite */
.button-spacing {
  margin-top: 50px; /* Erhöhter Abstand */
}

/* Fortschrittsbalken */
.progress-bar-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin-bottom: 20px;
  overflow: hidden; /* Ensure content stays within border-radius */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Kleiner Schatten für Tiefe */
}

.progress-bar {
  height: 20px;
  background-color: #4975b5; /* Tiefseeblau für den Fortschritt */
  width: 0%; /* Startwert, wird via PHP gesetzt */
  border-radius: 5px;
  text-align: center;
  line-height: 20px; /* Vertikale Zentrierung des Textes */
  color: white;
  font-weight: bold;
  transition: width 0.4s ease-in-out;
}

/* Button Gruppe für responsive Darstellung */
.button-group {
  display: flex;
  justify-content: space-between; /* Buttons mit Abstand dazwischen */
  gap: 10px; /* Abstand zwischen den Buttons */
  margin-top: 25px; /* Abstand zur vorherigen Formulargruppe */
  flex-wrap: wrap; /* Buttons können in die nächste Zeile umbrechen */
}

.button-group button,
.button-group .btn {
  flex-grow: 1; /* Buttons füllen verfügbaren Platz aus */
}

/* Footer-Stile */
.footer {
  background-color: #121f32; /* Mondfinsternis */
  color: white;
  padding: 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto; /* Sorgt dafür, dass der Footer am unteren Rand klebt */
}

.footer p {
  margin: 5px 0;
  font-size: 0.9em;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column; /* Logo und andere Elemente untereinander */
    text-align: center;
  }

  .header-logo {
    margin-bottom: 10px; /* Abstand unter dem Logo */
  }

  .main-content-wrapper {
    padding: 10px; /* Weniger Padding auf kleinen Bildschirmen */
  }

  .form-container {
    padding: 15px 20px; /* Weniger Padding im Formular auf kleinen Bildschirmen */
    margin: 10px auto; /* Anpassung des Margins */
  }

  h1 {
    font-size: 20pt; /* Kleinere Überschrift auf mobilen Geräten */
  }

  h2 {
    font-size: 16pt; /* Kleinere Überschrift auf mobilen Geräten */
  }

  .button-group {
    flex-direction: column; /* Buttons untereinander auf kleinen Bildschirmen */
    gap: 10px; /* Abstand zwischen den Buttons */
  }
}

/* Secondary Button Styles */
.btn-secondary {
  background-color: #d8d8d8; /* Mondstaub - graue Farbe */
  color: #121f32; /* Mondfinsternis - dunkler Text für bessere Lesbarkeit */
  border: 1.5px solid #b0b0b0; /* Leichter Rand für Definition */
}

.btn-secondary:hover {
  background-color: #c0c0c0; /* Etwas dunkleres Grau beim Hover */
  border-color: #a0a0a0;
}
/*Quelle ChatGPT*/
