/*
 * Hand-written additions on top of the compiled styles.css.
 * styles.css is built from SCSS sources that are not part of this package,
 * so these rules live in a separate file to survive a rebuild.
 * When the SCSS sources are available, move these rules into
 * src/scss/_componant.scss (pills) and src/scss/_formular.scss (forms).
 */

/* ==========================================================================
   Testimonial CE ("Image with card"): year pills below the round image
   ========================================================================== */

.haben-wrapper .haben-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

@media screen and (max-width: 1099px) {
  .haben-wrapper .haben-media {
    align-self: center;
    gap: 16px;
  }
}

.haben-wrapper .haben-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.haben-wrapper .haben-pills li:not(:last-child) {
  margin-bottom: 0;
}

.haben-wrapper .haben-pill {
  --haben-pill-bg: #1e8a2e;
  display: inline-block;
  min-width: 82px;
  padding: 4px 18px;
  border-radius: 999px;
  background: var(--haben-pill-bg);
  color: #fff;
  text-align: center;
  font: normal normal 600 16px/24px var(--jh-font-family-source-sans-pro);
  letter-spacing: 0;
}

.haben-wrapper .haben-pill::marker {
  content: none;
}

@media screen and (max-width: 1099px) {
  .haben-wrapper .haben-pill {
    min-width: 70px;
    padding: 2px 14px;
    font-size: 14px;
    line-height: 22px;
  }
}

.haben-wrapper .haben-pill--green {
  --haben-pill-bg: #1e8a2e;
}

.haben-wrapper .haben-pill--red {
  --haben-pill-bg: var(--jh-color-C8181A);
}

.haben-wrapper .haben-pill--blue {
  --haben-pill-bg: var(--jh-color-006EB6);
}

.haben-wrapper .haben-pill--grey {
  --haben-pill-bg: #6b6b6b;
}

/* ==========================================================================
   Forms (EXT:form): give selects and file uploads the same look as the
   text inputs defined in styles.css (.kontakt-page-wrapper form input.form-control)
   ========================================================================== */

.kontakt-page-wrapper form select.form-control,
.kontakt-page-wrapper form select.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 25px 70px 25px 29px;
  border: none;
  border-radius: 6px;
  background-color: #f9f7f5;
  /* Chevron in brand red (#C8181A) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath fill='none' stroke='%23C8181A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 8 8l6.5-6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 29px center;
  background-size: 18px 12px;
  font: normal normal normal 21px/34px var(--jh-font-family-source-sans-pro);
  color: var(--jh-color-222222);
  cursor: pointer;
}

@media screen and (max-width: 1499px) {
  .kontakt-page-wrapper form select.form-control,
  .kontakt-page-wrapper form select.form-select {
    font: normal normal normal 19px/31px var(--jh-font-family-source-sans-pro);
  }
}

@media screen and (max-width: 1099px) {
  .kontakt-page-wrapper form select.form-control,
  .kontakt-page-wrapper form select.form-select {
    padding: 11px 48px 11px 17px;
    background-position: right 17px center;
    background-size: 14px 9px;
    font: normal normal normal 16px/26px var(--jh-font-family-source-sans-pro);
  }
}

.kontakt-page-wrapper form select.form-control::-ms-expand {
  display: none;
}

.kontakt-page-wrapper form input[type=file] {
  display: block;
  width: 100%;
  padding: 16px 29px 16px 16px;
  border: none;
  border-radius: 6px;
  background: #f9f7f5;
  font: normal normal normal 21px/34px var(--jh-font-family-source-sans-pro);
  color: var(--jh-color-222222);
  cursor: pointer;
}

@media screen and (max-width: 1499px) {
  .kontakt-page-wrapper form input[type=file] {
    font: normal normal normal 19px/31px var(--jh-font-family-source-sans-pro);
  }
}

@media screen and (max-width: 1099px) {
  .kontakt-page-wrapper form input[type=file] {
    padding: 8px 17px 8px 8px;
    font: normal normal normal 16px/26px var(--jh-font-family-source-sans-pro);
  }
}

/* "Datei auswählen" button: styled like .btn.btn-primary */
.kontakt-page-wrapper form input[type=file]::file-selector-button {
  margin-right: 20px;
  padding: 0.5rem 1.375rem;
  border: none;
  border-radius: 6px;
  background: var(--jh-color-C8181A);
  color: #fff;
  font: normal normal 600 19px/31px var(--jh-font-family-source-sans-pro);
  cursor: pointer;
  transition: background-color 0.15s ease-in-out;
}

.kontakt-page-wrapper form input[type=file]:hover::file-selector-button {
  background: var(--jh-rollover-9D0B0C);
}

@media screen and (max-width: 1099px) {
  .kontakt-page-wrapper form input[type=file]::file-selector-button {
    margin-right: 12px;
    padding: 6px 13px;
    font: normal normal 600 16px/26px var(--jh-font-family-source-sans-pro);
  }
}

.kontakt-page-wrapper form select.form-control:focus,
.kontakt-page-wrapper form input[type=file]:focus-visible {
  outline: 2px solid var(--jh-color-ACC2DE);
  outline-offset: 2px;
  box-shadow: none;
}
