/* styles.css */
:root {
  --bs-gutter-x: 1.5rem;
}
@font-face {
  src: url("../fonts/poppins.woff2") format('woff2');
  font-family: "Poppins";
  font-style: normal;
  font-weight: normal;
}
@font-face {
  src: url("../fonts/poppins-bold.woff2") format('woff2');
  font-family: "Poppins Bold";
  font-style: normal;
  font-weight: normal;
}

body,
html {
  -webkit-font-smoothing: antialiased;
  color: rgb(29, 29, 27);
  background-color: #ffffff;
  font-family: 'Poppins';
  font-size: 14px;
  font-weight: normal;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  position: relative;
}

.container {
  width: auto;
}

.col-md-auto {
  @media (max-width: 767px) {
    gap: 15px;
    display: flex;
    align-items: center;

    > * {
      align-items: center;
      margin-bottom: 15px;
      width: 50%;
    }

    input {
      width: calc(50% - 16px);
    }
  }
}

h1,
h2 {
  font-family: "Poppins";
  font-size: 40px;
  font-weight: 400;
  line-height: 50px;
  margin-bottom: 25px;
  margin-top: 0;
  @media (max-width: 575px) {
    font-size: 36px;
  }
}

h2 {
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 15px;
  @media (max-width: 575px) {
    font-size: 20px;
  }
}

hr {
  background-color: #c9c9c9;
  border: none;
  height: 1px;
  margin-bottom: 0;
}

p {
    margin-bottom: 40px;

    &:last-child {
        margin-bottom: 1em;
    }
}

p + h2 {
  padding-top: 15px;
}

a {
  color: #005fb2;
  text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.flex {
  display: flex;
}

.flex-end {
  justify-content: flex-end;
  padding-right: calc(var(--bs-gutter-x) * .5);
}

.space-between {
  justify-content: space-between;
}

.align-right {
  justify-content: flex-end;
  text-align: right;
}

.self-flex-end {
  align-self: flex-end;
}

.center-h {
  justify-content: center;
}

.center-v {
  align-items: center;
}

.text-center {
    text-align: center;
}

.nowrap {
    white-space: nowrap;
}

.w-100 {
    width: 100%;
}

.mb-0 {
    margin-bottom: 0;
}

.content-hidden {
  button {
    pointer-events: none;
    visibility: hidden;
  }
}

.stage {
  display: grid;
  grid-template-columns: 1fr;
  height: 30vh;
  margin-bottom: 30px;

  .grid-absolute {
    grid-column-start: 1;
    grid-row-start: 1;
  }

  img {
    height: 30vh;
    object-fit: cover;
    width: 100%;
  }
}

.header {
  margin-bottom: 45px;
  padding: 1rem 0;
}

.languageswitch {
  color: #ffffff;
  font-size: 20px;
  padding-top: 10px;

  a {
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;

    &.is-active {
        color: #ff6600;
    }
  }

  a:hover {
    color: #ff6600;
  }
}

.row-number {
  margin: 0;

  > :first-child {
    aspect-ratio: 1/1;
    align-self: flex-end;
    background-color: #c9c9c9;
    border-radius: 8px;
    counter-increment: css-counter 1;
    position: relative;
    width: 39px;
  }

  > :first-child:before {
    content: counter(css-counter);
    color: #ffffff;
    font-size: 20px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .col-md-auto {
      padding: 0;
  }
}

.contacts-info {
  display: flex;
  padding-top: 15px;
  align-items: center;
}

#add-contact,
.remove-contact {
  aspect-ratio: 1/1;
  align-self: flex-end;
  background-color: #005fb2;
  border-radius: 8px;
  font-size: 20px;
  padding: 0;
  text-align: center;
  width: 39px;
}

.add-contact-text {
  margin-top: 5px;
  padding-left: calc(var(--bs-gutter-x) * .5);
  padding-right: calc(var(--bs-gutter-x) * .5);
}

#contacts-container {
  padding-top: 30px;
}

ul {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;

    li {
        padding: 0 0 15px 28px;

        &:before {
            content: "";
            background-position: 50%;
            background-repeat: no-repeat;
            background-color: #ff6600;
            display: inline-block;
            height: 5px;
            margin-left: -17px;
            position: relative;
            top: -3px;
            width: 5px;
            margin-right: 9px;
        }
    }
}

form {
  border: 1px solid #c9c9c9;
  border-radius: 16px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .1);
  counter-reset: css-counter 0;
  margin: 30px 0;
  padding: 15px;

  .row {
    row-gap: 15px;
    column-gap: 7.5px;
    align-items: flex-start;
    margin-bottom: 30px;

  }

  label {
    color: #5C5C5C;
    display: block;
    font-family: 'Poppins Bold';
    font-size: 14px;
    margin-bottom: 3px;

    @media (max-width: 575px) {
      margin-bottom: 0;
    }
  }

  input,
  select {
    background-color: rgb(250, 250, 250);
    border: 1px solid rgb(118, 113, 107);
    border-radius: 8px;
    height: 17px;
    padding: 10px;
    width: calc(100% - 22px);

    &:focus {
        border: 1px solid #005fb2;
    }
  }

  select {
    height: 39px;
    padding: 10px 8px;
    width: 100%;
  }

  button {
    background-color: #005fb2;
    border: none;
    border-radius: 16px;
    color: #ffffff;
    font-family: 'Poppins Bold';
    line-height: 30px;
    padding: 0 16px;
  }

  button[type="submit"] {
      font-size: 14px;
      width: 33%;
      margin: 0 auto;

      @media (max-width: 767px) {
          width: 100%;
      }
  }

  &[action="/de/general"],
  &[action="/en/general"] {
      .add-contact-text {
          display: none;
      }
  }
}

.col-md-auto:has([name="main_email_address"]),
.col-md-auto:has([name="contact_email_address[]"]) {
  flex: 1 0 auto;
}

.outro {
  padding: 30px 0 0;
}

.footer {
  background-color: rgb(29, 29, 27);
  bottom: 0;
  color: #ffffff;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  left: 0;
  margin-top: 60px;
  width: 100%;
  z-index: 0;
  @media (max-width: 767px) {
    flex-direction: column;
  }

  .footer-left {
    grid-gap: 15px;
    display: flex;
    flex-wrap: wrap;
    order: 1;
    padding: 11px 30px;
    @media (max-width: 767px) {
      order: 2;
    }
  }

  .footer-right {
    align-items: flex-end;
    display: flex;
    order: 2;
    padding: 11px 30px;
    white-space: nowrap;
    @media (max-width: 767px) {
      justify-content: center;
      order: 1;
      text-align: center;
    }
  }

  a {
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
  }

  a:hover {
    text-decoration: underline;
  }
}

.email_user {
  display: none;
}



.error {
  color: red;
  margin-bottom: 15px;
}

.success {
  color: green;
  margin-bottom: 15px;
}

.honeypot {
  display: none;
}

.debug-info {
  background: #ffc;
  border: 1px solid #cc0;
  font-size: small;
  margin-bottom: 20px;
  padding: 10px;
}
