/**
 * Kontaktseite — page-level styles only.
 * Ink / paper / ember. Does not change global tokens or GastroFlow forms.
 */

body.fenix-kontakt-page main.fenix-kontakt-main {
  color-scheme: light;
  color: var(--fx-text-on-paper, #212225);
  background-color: var(--fx-paper, #F0F1F1);
}

body.fenix-kontakt-page main.fenix-kontakt-main,
body.fenix-kontakt-page .fenix-page-head--kontakt,
body.fenix-kontakt-page .fenix-contact {
  --fenix-ink: var(--fx-ink, #212225);
  --fenix-paper: var(--fx-paper, #F0F1F1);
  --fenix-ember: var(--fx-ember, #CF9622);
  /* Page-level AAA: do not rely on stale live --fx-muted (#616269 AA-only). */
  --fenix-ember-text: #68480c;
  --fenix-rule: var(--fx-line, color-mix(in srgb, #212225 12%, transparent));
  --fenix-muted: #4a4c52;
  color: var(--fenix-ink);
  background-color: var(--fenix-paper);
  font-family: "Red Hat Text", system-ui, sans-serif;
}

body.fenix-kontakt-page .fenix-page-head--kontakt h1,
body.fenix-kontakt-page .fenix-page-head--kontakt h2,
body.fenix-kontakt-page .fenix-contact h1,
body.fenix-kontakt-page .fenix-contact h2,
body.fenix-kontakt-page .fenix-contact label {
  font-family: "Red Hat Display", system-ui, sans-serif;
}

body.fenix-kontakt-page .fenix-page-head--kontakt::before {
  display: none;
}

body.fenix-kontakt-page .fenix-page-head--kontakt {
  overflow: visible;
}

body.fenix-kontakt-page .fenix-page-head--kontakt .fenix-kicker {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  /* Gold fill #CF9622 fails AA as text (~2.3:1); use on-paper ember */
  color: var(--fenix-ember-text);
  font-family: "Red Hat Display", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.fenix-kontakt-page .fenix-page-head--kontakt h1 {
  max-width: 18ch;
  margin: 1rem 0 0;
  color: var(--fenix-ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.fenix-kontakt-page .fenix-page-head--kontakt .fenix-section-lead {
  max-width: 38rem;
  margin-top: 1.15rem;
  color: var(--fenix-muted);
  font-size: 1.05rem;
}

/* Facts: labels + 1px rule, not cards */
body.fenix-kontakt-page .fenix-contact__facts {
  margin: 0;
}

body.fenix-kontakt-page .fenix-contact__fact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--fenix-rule);
  font-size: 1.05rem;
  line-height: 1.4;
}

body.fenix-kontakt-page .fenix-contact__fact:first-child {
  padding-top: 0;
}

body.fenix-kontakt-page .fenix-contact__fact-label {
  color: var(--fenix-muted);
  font-family: "Red Hat Display", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.fenix-kontakt-page .fenix-contact__fact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--fenix-ink);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

body.fenix-kontakt-page .fenix-contact__fact a:hover {
  text-decoration: underline;
}

body.fenix-kontakt-page .fenix-contact__fact a:focus-visible {
  outline: 2px solid var(--fenix-ember);
  outline-offset: 3px;
}

/* Form: content block, 1px rule, no shadow card */
body.fenix-kontakt-page .fenix-contact .fenix-contact-form,
body.fenix-kontakt-page .fenix-contact .fenix-contact-form--simple {
  position: relative;
  max-width: 34rem;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* Honeypot stays in the DOM for bots; never visible to customers */
body.fenix-kontakt-page .fenix-contact-form__honeypot,
body.fenix-kontakt-page .fenix-contact-form .visually-hidden {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  display: none !important;
}

body.fenix-kontakt-page .fenix-contact-form__notice {
  margin-bottom: 1.5rem;
  padding: 0.85rem 0;
  border: 0;
  border-top: 1px solid var(--fenix-rule);
  border-bottom: 1px solid var(--fenix-rule);
  border-radius: 0;
  background: transparent;
  font-size: 0.95rem;
  line-height: 1.5;
}

body.fenix-kontakt-page .fenix-contact-form__notice--success {
  color: var(--fenix-ink);
  border-color: var(--fenix-ember);
}

body.fenix-kontakt-page .fenix-contact-form__notice--error {
  color: #8a2b22;
  border-color: #8a2b22;
}

body.fenix-kontakt-page .fenix-contact-form__field {
  margin: 0 0 1.15rem;
}

body.fenix-kontakt-page .fenix-contact-form__field label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--fenix-ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.fenix-kontakt-page .fenix-contact-form__req {
  color: var(--fenix-ember-text);
  font-weight: 600;
}

body.fenix-kontakt-page .fenix-contact-form__opt {
  color: var(--fenix-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

body.fenix-kontakt-page .fenix-contact-form__field input,
body.fenix-kontakt-page .fenix-contact-form__field textarea,
body.fenix-kontakt-page .fenix-contact-form__field select {
  width: 100%;
  min-height: 2.75rem;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--fenix-ink);
  border-radius: 8px;
  background: var(--fenix-paper);
  color: var(--fenix-ink);
  font-family: "Red Hat Text", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.fenix-kontakt-page .fenix-contact-form__field textarea {
  min-height: 8.5rem;
  padding-top: 0.7rem;
  resize: vertical;
}

body.fenix-kontakt-page .fenix-contact-form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230E1012' stroke-width='1.4' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

body.fenix-kontakt-page .fenix-contact-form__field input::placeholder,
body.fenix-kontakt-page .fenix-contact-form__field textarea::placeholder {
  /* ≥7:1 AAA on paper */
  color: color-mix(in srgb, #0e1012 78%, var(--fenix-paper, #f0f1f1));
}

body.fenix-kontakt-page .fenix-contact-form__field input:hover,
body.fenix-kontakt-page .fenix-contact-form__field textarea:hover,
body.fenix-kontakt-page .fenix-contact-form__field select:hover {
  border-color: var(--fenix-ember);
}

body.fenix-kontakt-page .fenix-contact-form__field input:focus,
body.fenix-kontakt-page .fenix-contact-form__field textarea:focus,
body.fenix-kontakt-page .fenix-contact-form__field select:focus,
body.fenix-kontakt-page .fenix-contact-form__field input:focus-visible,
body.fenix-kontakt-page .fenix-contact-form__field textarea:focus-visible,
body.fenix-kontakt-page .fenix-contact-form__field select:focus-visible {
  outline: 2px solid var(--fenix-ember);
  outline-offset: 2px;
  border-color: var(--fenix-ember);
  box-shadow: none;
}

body.fenix-kontakt-page .fenix-contact-form__field--error input,
body.fenix-kontakt-page .fenix-contact-form__field--error textarea,
body.fenix-kontakt-page .fenix-contact-form__field input:user-invalid,
body.fenix-kontakt-page .fenix-contact-form__field textarea:user-invalid,
body.fenix-kontakt-page .fenix-contact-form__field select:user-invalid {
  border-color: #8a2b22;
}

body.fenix-kontakt-page .fenix-contact-form__error {
  display: block;
  margin-top: 0.4rem;
  color: #8a2b22;
  font-size: 0.8rem;
  line-height: 1.4;
}

body.fenix-kontakt-page .fenix-contact-form__actions {
  margin: 1.75rem 0 0.85rem;
}

body.fenix-kontakt-page .fenix-contact-form__submit,
body.fenix-kontakt-page .fenix-contact .fenix-contact-form__submit.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 12rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.5rem;
  border: 0;
  border-radius: 8px;
  background: var(--fenix-ember);
  color: var(--fx-text-on-ember, #0e1012);
  font-family: "Red Hat Display", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}

body.fenix-kontakt-page .fenix-contact-form__submit:hover,
body.fenix-kontakt-page .fenix-contact .fenix-contact-form__submit.wp-element-button:hover {
  background: var(--fx-ember-hover, #a07318);
  color: var(--fx-text-on-ember, #0e1012);
  transform: none;
  box-shadow: none;
}

body.fenix-kontakt-page .fenix-contact-form__submit:focus-visible {
  outline: 2px solid var(--fenix-ember);
  outline-offset: 3px;
}

body.fenix-kontakt-page .fenix-contact-form__hint {
  max-width: 34rem;
  color: var(--fenix-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 781px) {
  body.fenix-kontakt-page .fenix-page-head--kontakt {
    padding-top: 3.25rem !important;
    padding-bottom: 1.75rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body.fenix-kontakt-page .fenix-contact {
    padding-top: 2rem !important;
    padding-bottom: 3.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 600px) {
  body.fenix-kontakt-page .fenix-contact-form__actions,
  body.fenix-kontakt-page .fenix-contact-form__submit,
  body.fenix-kontakt-page .fenix-contact .fenix-contact-form__submit.wp-element-button {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1920px) {
  body.fenix-kontakt-page .fenix-page-head--kontakt h1 {
    font-size: 3.5rem;
  }
}
