body {
  height: unset;
  background-color: var(--dunkelblau);

}
p, h1,h2,h3 {
  cursor: default;
}

.application-page {
  height: calc(100dvh - var(--header-height));
  overflow-y: auto;
}

.backLink {
  color: white;
  text-decoration: none;
  margin-bottom: 3rem;

  :hover {
    color: var(--senfgelb);
  }
}

.application-content {
  max-width: 900px;
  margin-inline: auto;
  padding: 3rem 1rem;
  color: white;
  gap: 1.5rem;
}

.application-banner {
  width: 100%;
  background-color: white;
  padding: 1rem;
  margin-bottom: 2rem;
  color: var(--dunkelblau);
  display: flex;
  justify-content: space-between;

  p {
    margin: 0;
    font-size: 14px;
  }

  h3 {
    margin-bottom: 0.5rem;
  }

  .firma_title {
    margin-top: 7px;
    font-size: 1rem;
  }
}

.firma {
  flex: 0 0 min(100%, 300px);
  flex-direction: column;
  gap: 12px;

  img {
    width: 100%;
  }
}

.contact_person {
  display: flex;
  flex-direction: column;

  p {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .icon {
    width: 20px;
    height: 20px;
    fill: var(--dunkelblau);
  }
}

.acf-button {
  background-color: var(--hellblau); /* WordPress-Blau */
  color: var(--dunkelblau);
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.acf-button:hover {
  color: white;
  background-color: var(--senfgelb);
}

.application-offer {
  font-family: 'MontserratAlternates-ExtraBold';
  cursor: default;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;

  .application-offer_ausbildung {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
  }

  .ausbildungsjahrBox {
    border: 1px solid white;
    cursor: default;

    align-items: center;

    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
    background-color: #1FC77A;
  }

  .available {
    background-color: #1FC77A;
  }

  .unavailable {
    background-color: red;
  }

}

.application-description {
  position: relative;
  margin-bottom: 4rem;

  h1,h2,h3, h4, h5, strong, b {
    color: var(--senfgelb);
  }
  h1,h2,h3, h4 {
    font-size: 1.2rem;
  }
 ul {
   margin-top: 10px;
 }
  li {
    margin-bottom: 10px;
  }
  strong {
    font-family: 'MontserratAlternates-Bold';
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-control {
  padding: 0.5rem;
  border: none;
  width: 100%;
  color: var(--dunkelblau);
  background: var(--mittelblau);
}


#submittedSuccessMessage, #submittedErrorMessage {
  visibility: hidden;
  text-align: center;
}

.form-send-btn {
  margin-top: 1.5rem;
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  color: var(--dunkelblau);
  background: var(--mittelblau);
  font-family: MontserratAlternates-Bold, Montserrat, sans-serif;
}

.form-send-btn:hover {
  background: var(--senfgelb);
}

.application-form {
  margin-top: 2rem;
  border: solid 2px var(--hellblau);
  padding: 2rem;
  a {
    color: white;
    text-decoration: underline;

  }
  a:hover {
    color: var(--senfgelb);
  }
}

.flex-container {
  display: flex;
  gap: 1rem;
}

.file-input-wrapper {
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
}

fieldset {
  border: 1px var(--hellblau) solid;
}

.file-input-wrapper:hover .file-icon {
  cursor: pointer;
  background-color: var(--hellblau);
}

.file-input-wrapper input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--dunkelblau);
  background-color: white;
  color: var(--dunkelblau);
  font-size: 24px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.file-icon:hover {
  background-color: #9abee3;
}

.file-label {
  color: white;
  font-size: 16px;
}

.file-name {
  color: white;
  font-size: 14px;
  margin-left: 10px;
  font-style: italic;
}

.file-content-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-description {
  margin-top: 1.5rem;
  background: none;
  border: none;
  width: 100%;
  display: flex;
  justify-content: center;

  button {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dunkelblau);
  }
}

.text-content {
  transition: max-height 0.3s ease-in-out;
}

label{
  cursor: pointer;
}

@media (max-width: 768px) {
  .application-banner {
    flex-direction: column;
    padding-bottom: 1rem;
    gap: 2rem;
  }

  .firma {
  }

  .flex-container {
    flex-direction: column;
  }

  .application-offer {
    flex-direction: column;
    justify-content: left;
    align-items: start;
    margin-bottom: 2rem;
  }
}
