/* Contact page below the hero (templates/content/contact_page.html,
   js/kontakt.js). Field styles (48px, radius, focus ring, error state):
   agrex.css. Tokens: docs/design-tokens.md. */
.agx-contact { margin-top: 40px; padding-bottom: var(--agx-gap-end, 96px); }
.agx-contact__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-top: 64px;
  border-top: 1px solid var(--agx-line);
}
.agx-contact .agx-eyebrow { margin-bottom: 14px; }
.agx-contact__title { margin: 0 0 28px; }

/* Contact details: label 13px muted, value 16/1.5, hairline above each */
.agx-contact__details { margin: 0; }
.agx-contact__details > div { padding: 16px 0; border-top: 1px solid var(--agx-line); }
.agx-contact__details dt {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--agx-muted);
}
.agx-contact__details dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--agx-ink); }
.agx-contact__details dd p { margin: 0; }
.agx-contact__details a { color: var(--agx-teal); text-decoration: none; }
.agx-contact__details a:hover { text-decoration: underline; }
.agx-contact__details .agx-contact__tel { color: var(--agx-ink); }

/* Form: 22px between rows; name/e-mail/company/country in two columns */
.agx-form { display: flex; flex-direction: column; gap: 22px; }
.agx-form__pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px 24px; }
.agx-form__field { min-width: 0; }
.agx-form__label {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--agx-ink);
}
.agx-form textarea.form-control { resize: vertical; }
.agx-form__error { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--agx-error); }
.agx-form__error:empty { display: none; }
.agx-form [aria-invalid="true"] { border-color: var(--agx-error); }

/* Bereich / Produkte: checkboxes in three columns */
.agx-form__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.agx-form__group legend { float: none; width: auto; margin-bottom: 10px; }
.agx-form__hint { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--agx-muted); }
.agx-form__choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 24px; }
.agx-form .form-check { display: flex; align-items: flex-start; gap: 10px; min-height: 0; margin: 0; padding: 0; }
.agx-form .form-check .form-check-input { flex: none; float: none; margin: 1px 0 0; }
.agx-form .form-check-input:checked[type="checkbox"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5.5 10.5 8.5 13.5 14.5 7'/%3e%3c/svg%3e");
}
.agx-form .form-check-label { font-size: 15px; line-height: 1.4; color: var(--agx-text); }
.agx-form .form-check-label a { color: var(--agx-teal); text-decoration: underline; text-underline-offset: 2px; }

/* Honeypot: off-screen for people, still in the DOM for bots */
.agx-form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.agx-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.agx-form__note { margin: 0; font-size: 13px; color: var(--agx-muted); }

/* After sending */
.agx-contact__success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 32px 36px;
  border-radius: 16px;
  background: var(--agx-band);
}
.agx-contact__success:focus { outline: none; }
.agx-contact__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--agx-teal);
}
.agx-contact__check svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.agx-contact__success-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--agx-ink); }
.agx-contact__success-text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--agx-text); }
.agx-contact__success-text p { margin: 0; }
.agx-contact__alert {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--agx-error);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--agx-ink);
}
.agx-contact__main > .agx-contact__alert:first-child,
.agx-form > .agx-contact__alert { margin-top: 0; }

@media (min-width: 576px) {
  .agx-form__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .agx-form__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agx-form__choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .agx-contact__in { grid-template-columns: 320px minmax(0, 1fr); gap: 72px; }
}
