.kontakt-page .publication-hero .hero-img::after {
  background: linear-gradient(180deg, rgb(15 8 22 / 58%), rgb(15 8 22 / 12%) 35%, rgb(15 8 22 / 70%));
}

.kontakt-appointment-link {
  align-items: center;
  gap: 0.75rem;
}

.kontakt-appointment-link img {
  width: 10px;
  height: 10px;
}

.kontakt-appointment-link:is(:hover, :focus-visible) img {
  content: url("/assets/icons/arrow-up-right.svg");
}

.kontakt-inquiry {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 5rem;
}

.kontakt-personal,
.kontakt-form-column {
  min-width: 0;
}

.kontakt-inquiry .products-content > p {
  max-width: 100%;
}

.kontakt-person {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kontakt-person > img {
  display: block;
  flex: 0 0 8rem;
  width: 8rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.kontakt-person > div {
  min-width: 0;
}

.kontakt-person h3 {
  margin: 0;
  color: #2a004e;
  font-family: "PPNeueGstaad", sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.2;
}

.kontakt-person p,
.kontakt-personal-note {
  color: #2c2c2c;
  font-size: 1.05rem;
  font-weight: 200;
  line-height: 1.45;
}

.kontakt-person p {
  margin: 0.5rem 0 0;
}

.kontakt-direct {
  display: grid;
  gap: 1.5rem;
  font-style: normal;
}

.kontakt-direct a {
  display: grid;
  width: fit-content;
  max-width: 100%;
  gap: 0.4rem;
  color: #2a004e;
  text-decoration: none;
}

.kontakt-direct a > span:first-child {
  color: #2c2c2c;
  font-size: 0.95rem;
  font-weight: 200;
  line-height: 1.4;
}

.kontakt-direct a > span:last-child {
  font-family: "PPNeueGstaad", sans-serif;
  font-size: clamp(1.15rem, 1.3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.kontakt-direct a:hover > span:last-child {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.kontakt-direct a:focus-visible {
  outline: 2px solid #2a004e;
  outline-offset: 4px;
}

.kontakt-personal-note {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(42 0 78 / 20%);
}

.kontakt-form {
  display: grid;
  gap: 1.5rem;
}

.kontakt-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.kontakt-field {
  display: grid;
  min-width: 0;
  gap: 0.5rem;
}

.kontakt-field-full {
  grid-column: 1 / -1;
}

.kontakt-field label {
  color: #2a004e;
  font-size: 1.05rem;
  font-weight: 200;
  line-height: 1.4;
}

.kontakt-field :is(input, textarea, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(42 0 78 / 25%);
  border-radius: 2px;
  background-color: transparent;
  color: #2c2c2c;
  font-family: "Roboto", sans-serif;
  font-size: 1.05rem;
  font-weight: 200;
  line-height: 1.4;
}

.kontakt-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.kontakt-field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%232a004e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  text-overflow: ellipsis;
  cursor: pointer;
}

.kontakt-field select:required:invalid {
  color: rgb(44 44 44 / 65%);
}

.kontakt-field select option {
  background: #fff9ee;
  color: #2c2c2c;
}

.kontakt-field :is(input, textarea)::placeholder {
  color: rgb(44 44 44 / 65%);
  opacity: 1;
}

.kontakt-field :is(input, textarea, select):focus-visible {
  outline: 2px solid #2a004e;
  outline-offset: 2px;
}

.kontakt-field :is(input, textarea, select):user-invalid {
  border-color: #2a004e;
}

.kontakt-privacy,
.kontakt-form-actions p,
.kontakt-send-note,
.kontakt-noscript {
  margin: 0;
  color: #2c2c2c;
  font-size: 0.95rem;
  font-weight: 200;
  line-height: 1.45;
}

.kontakt-privacy a,
.kontakt-noscript a {
  color: #2a004e;
  text-underline-offset: 0.2rem;
}

.kontakt-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.kontakt-form-footer {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(42 0 78 / 15%);
}

.kontakt-form-notes {
  display: grid;
  gap: 0.4rem;
}

.kontakt-form-notes .kontakt-privacy {
  color: #665c6c;
  font-size: 0.875rem;
}

.kontakt-privacy-title {
  margin: 0;
  color: #2a004e;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
}

.kontakt-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.kontakt-submit {
  max-width: 100%;
  border: 0;
  cursor: pointer;
}

.kontakt-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.kontakt-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.kontakt-upload {
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.kontakt-upload-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  color: #2a004e;
  font-size: 1.05rem;
  line-height: 1.4;
}

.kontakt-optional {
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  background: rgb(42 0 78 / 5%);
  color: #665c6c;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
}

.kontakt-upload-zone {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px dashed rgb(42 0 78 / 35%);
  border-radius: 4px;
  background: rgb(255 255 255 / 32%);
}

.kontakt-upload-zone:focus-within {
  outline: 2px solid #2a004e;
  outline-offset: 3px;
}

.kontakt-upload-zone.is-dragging {
  border-style: solid;
  border-color: #2a004e;
  background: rgb(255 218 98 / 18%);
}

.kontakt-upload-zone:has([aria-invalid="true"]) {
  border-color: #a32932;
}

.kontakt-field .kontakt-upload-input {
  grid-column: 1 / -1;
  order: 1;
  padding: 0.6rem;
  font-size: 0.9rem;
}

.kontakt-upload-input::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.5rem;
  border: 0;
  background: #ffda62;
  color: #2a004e;
  font: inherit;
  cursor: pointer;
}

.kontakt-upload.is-enhanced .kontakt-upload-input {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.kontakt-upload-icon {
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 0.75rem;
  border-radius: 50%;
  background: rgb(255 218 98 / 30%);
  color: #2a004e;
}

.kontakt-upload-copy {
  display: grid;
  gap: 0.35rem;
}

.kontakt-upload-copy p {
  margin: 0;
  color: #2a004e;
  font-family: "PPNeueGstaad", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.35;
}

.kontakt-upload-copy > span {
  color: #665c6c;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
}

.kontakt-upload-copy .kontakt-upload-drag-hint {
  font-size: 0.8rem;
}

.kontakt-field .kontakt-upload-button {
  display: none;
  grid-column: 2;
  justify-self: start;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgb(42 0 78 / 40%);
  border-radius: 2px;
  background: transparent;
  color: #2a004e;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
}

.kontakt-upload.is-enhanced .kontakt-upload-button {
  display: inline-flex;
}

.kontakt-upload-button:hover {
  background: rgb(42 0 78 / 5%);
}

.kontakt-upload-button > span {
  font-size: 1.2rem;
  line-height: 1;
}

.kontakt-upload-hint,
.kontakt-upload-status {
  margin: 0;
  color: #665c6c;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.45;
}

.kontakt-upload-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.kontakt-upload-hint strong {
  color: #2a004e;
  font-weight: 400;
}

.kontakt-upload-status:empty,
.kontakt-upload-files[hidden],
.kontakt-upload-drag-hint[hidden] { display: none; }

.kontakt-upload-status.is-error { color: #a32932; }

.kontakt-upload-files {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kontakt-upload-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem 0.65rem 1rem;
  border: 1px solid rgb(42 0 78 / 15%);
  border-radius: 3px;
  background: rgb(255 255 255 / 30%);
}

.kontakt-upload-file-info {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.kontakt-upload-file-name {
  color: #2a004e;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.kontakt-upload-file-size {
  color: #665c6c;
  font-size: 0.75rem;
  line-height: 1.4;
}

.kontakt-upload-remove {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #2a004e;
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.kontakt-upload-remove:hover { background: rgb(42 0 78 / 6%); }
.kontakt-upload-remove:focus-visible { outline: 2px solid #2a004e; }

.kontakt-field-error,
.kontakt-form-error {
  margin: 0;
  color: #a32932;
  font-size: 1rem;
  line-height: 1.45;
}

.kontakt-field [aria-invalid="true"] { border-color: #a32932; }

.kontakt-calendly-consent:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgb(42 0 78 / 20%);
  text-align: center;
}

.kontakt-calendly-consent p {
  max-width: 40rem;
  margin: 0;
  color: #2a004e;
  font-size: 1.1rem;
  line-height: 1.5;
}

.kontakt-calendly-consent .main-btn {
  max-width: 100%;
  appearance: none;
  border: 0;
  background-color: #2a004e;
  color: #ffda62;
  cursor: pointer;
}

.kontakt-calendly {
  width: 100%;
  min-width: min(320px, 100%);
  height: 700px;
}

.kontakt-calendly.is-consent-blocked {
  height: 0;
  overflow: hidden;
}

/* Keep wheel events on the page during Lenis motion; restore the iframe at rest. */
.lenis.lenis-smooth.lenis-scrolling .kontakt-calendly iframe {
  pointer-events: none;
}

@media (max-width: 1120px) {
  .kontakt-inquiry {
    gap: 3rem;
  }

  .kontakt-person {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 1023px) {
  .kontakt-inquiry {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .kontakt-personal {
    max-width: 38rem;
  }
}

@media (max-width: 767px) {
  .kontakt-fields {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .kontakt-person > img {
    flex-basis: 6rem;
    width: 6rem;
  }

  .kontakt-person h3 {
    font-size: 1.35rem;
  }

  .kontakt-direct a > span:last-child {
    font-size: 1.25rem;
  }

  .kontakt-upload-zone {
    gap: 0.85rem;
    padding: 1rem;
  }

  .kontakt-upload-icon {
    padding: 0.5rem;
  }

  .kontakt-field .kontakt-upload-button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}
