/*css file, gehoert zum index.html file*/
/*transparenz-hinweis: dieses css file wurde mit hilfe von codecademy, w3 und chatgpt erstellt. letzteres wurde ausschliesslich zur informationsbeschaffung verwendet.*/

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /*verhindert die moeglichkeit, horizontal zu scrollen*/
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

/*es folgen die eigenschaften der ueberschrift h1*/
h1 {
  text-align: center;
  margin-top: 40px;
  color: #0a73ba;
  font-weight: 700; /*entspricht einer fetten schrift*/
}

/*es folgen die einstellungen fuer das formular*/
form {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  box-sizing: border-box;
  background: transparent;
}

/*einstellungen fuer die darstellung vom formular (40px abstand zwischen den feldern)*/
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /*zwei gleich breite spalten*/
  gap: 40px; /*abstand zwischen dern feldern*/
}

.form-grid-full {
  grid-column: 1 / -1;
}

/*es folgen angaben zu den formular-elementen (label und input)*/
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #0a73ba;
}

/*eingabefelder*/
input,
select,
textarea {
  width: 100%;
  background: #e1e2e4;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  color: #000;
}

/*buttons*/
button,
.form-button {
  padding: 12px 24px;
  background-color: #00aaff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  font-family: "Poppins", sans-serif;
}

/*hover-effekt fuer die buttons*/
button:hover,
.form-button:hover {
  background-color: #0a73ba;
}

/*checkboxen*/
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #0a73ba;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0a73ba;
  margin: 0;
  cursor: pointer;
}

/*es folgt der header*/
.site-header,
header {
  width: 100%;
  background-color: #0a73ba;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  box-sizing: border-box;
  color: white;
}

header {
  gap: 12px;
  padding: 30px 20px;
  border-radius: 0;
}

/*logo-bild im header*/
header img,
.logo {
  height: 80px;
  width: auto;
  display: block;
}

/*link im header zur startseite*/
header a,
.header-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 19.2px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

/*vorgaben fuer den hover-effekt beim link*/
.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header-link:hover::after {
  transform: scaleX(1);
}

/*hover fuer pfeil*/
.header-link .arrow {
  display: inline-block;
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.header-link:hover .arrow {
  transform: translateX(-6px);
}

/*es folgt der footer*/
footer,
.site-footer {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #0a73ba;
  color: white;
  text-align: center;
  padding: 32px 16px;
  font-weight: 700;
  font-size: 15.2px;
  box-sizing: border-box;
  flex-shrink: 0;
  overflow-x: hidden;
}

/*links im footer*/
.disclaimer-link {
  font-weight: 400; /*duennere schrift*/
  color: #ffffff;
  text-decoration: none;
  font-size: 15.2px;
  transition: opacity 0.3s ease;
}

.disclaimer-link:hover {
  opacity: 0.8;
}

/*zusammenfassungsbereich (mit hilfe von chatgpt erstellt)*/
.summary-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  text-align: left;
}

/*ueberschrift*/
.summary-container h1 {
  color: #0a73ba;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

/*weiterer text*/
.summary-container p {
  font-weight: 400;
  font-size: 1.1em;
  margin-bottom: 16px;
}

.summary-container strong {
  font-weight: 600;
}

/*buttons*/
.summary-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.summary-buttons button {
  padding: 12px 24px;
  background-color: #00aaff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.summary-buttons button:hover {
  background-color: #0088cc;
}

/*abschlussnachricht*/
.done-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 12px;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  text-align: center;
}

.done-container h1 {
  color: #0a73ba;
  font-weight: 700;
  margin-bottom: 24px;
}

.done-container p {
  font-size: 17.6px;
  font-weight: 400;
}
/* Tablet: unter 992px Breite */
@media (max-width: 991px) {
  .form-grid {
    display: grid;
    grid-template-columns: 1fr; /* Nur 1 Spalte */
    gap: 20px;
  }

  .form-grid-full textarea {
    width: 100% !important;
  }

  .form-grid-full,
  .form-grid div {
    width: 100%;
  }

  .form-button {
    width: 100%;
    font-size: 1rem;
  }

  .summary-container,
  .done-container {
    padding: 20px;
    margin: 20px auto;
  }
}

/*vorgaben fuer die zusammenfassung des formulares*/
.summary-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  color: #000000;
  font-family: "Poppins", sans-serif;
}
.summary-buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
}
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: #00aaff;
  color: white;
}

.btn-primary:hover {
  background-color: #008fcc;
}

.btn-secondary {
  background-color: #cccccc;
  color: #333;
}

.btn-secondary:hover {
  background-color: #aaaaaa;
}
.done-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  color: #000000;
  font-family: "Poppins", sans-serif;
  text-align: center;
}
.done-heading {
  color: #0a73ba;
  margin-bottom: 20px;
}

/*einmittung des absenden buttons*/
.btn-center {
  display: block;
  margin: 0 auto;
  background-color: #0a73ba;
}

/*responsive-vorgaben, unter anleitung von chatgpt erstellt*/
/*handy (unter 575px breite)*/
@media (max-width: 575px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 24px;
    text-align: center;
  }

  .form-button {
    padding: 10px;
  }

  .checkbox-label {
    font-size: 15.2px;
    line-height: 1.4;
  }

  label {
    font-size: 15.2px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    padding: 10px;
  }

  .form-grid-full textarea {
    min-height: 120px;
  }

  .site-header img {
    max-width: 160px;
    height: auto;
  }

  .header-link {
    font-size: 14.4px;
  }

  .summary-container,
  .done-container {
    padding: 15px;
    font-size: 16px;
  }
}

/*zusatz fuer header*/
@media (max-width: 575px) {
  header {
    padding: 15px 10px;
  }

  header img,
  .logo {
    height: 25px;
    width: auto;
  }
}

/*nachtraegliche ergaenzung fuer die responsiveness vom footer*/
@media (max-width: 768px) {
  footer.site-footer {
    position: static;
    left: auto;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    overflow-x: hidden;
  }

  footer.site-footer p,
  footer.site-footer a {
    margin: 0;
  }

  footer.site-footer a {
    display: inline-block;
  }
}
/*ende*/
