/**
 * Result message component (paragraph kaindl_result_message).
 *
 * The newsletter sign-up and confirmation pages (774/775) used to carry this
 * stylesheet inline in their Body. It is attached only where the component
 * renders (PageComponentBundleRenderer), so the page-header rule below is
 * scoped to pages that show a result message.
 *
 * Colours are the reviewed legacy values (they differ from the global
 * palette in variables.css); they are kept as component tokens so the pages
 * look exactly as before.
 */

.kaindl-newsletter-result {
  --kaindl-result-ink: #002966;
  --kaindl-result-text: #555;
  --kaindl-result-icon-bg: #edf3f9;
  --kaindl-result-success-bg: #e9f5ef;
  --kaindl-result-success-ink: #14794a;
  --kaindl-result-notice-bg: #f5f7fa;
  --kaindl-result-on-ink: #fff;

  max-width: 720px;
  margin: 48px auto;
  padding: 0 20px;
  text-align: center;
  font-family: inherit;
  /* The legacy Body did not sit in .page-body (line-height 1.55); keep the
     button height it had. Text, heading and notice set their own. */
  line-height: normal;
}

/* The message replaces the empty title-only page header. */
body:has(.kaindl-newsletter-result) .page-header.page-header--no-media {
  display: none;
}

.kaindl-newsletter-result__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--kaindl-result-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kaindl-result-ink);
}

.kaindl-newsletter-result__icon--success {
  background-color: var(--kaindl-result-success-bg);
  color: var(--kaindl-result-success-ink);
}

.kaindl-newsletter-result__icon svg {
  width: 36px;
  height: 36px;
}

.kaindl-newsletter-result h2 {
  color: var(--kaindl-result-ink);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  margin: 0 0 24px;
}

.kaindl-newsletter-result p {
  color: var(--kaindl-result-text);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.kaindl-newsletter-result__notice {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--kaindl-result-notice-bg);
  color: var(--kaindl-result-text);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

/* The notice text is stored as one paragraph; it keeps the box typography. */
.kaindl-newsletter-result .kaindl-newsletter-result__notice p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

.kaindl-newsletter-result__actions {
  margin-top: 32px;
}

.kaindl-newsletter-result__button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--kaindl-result-ink);
  border: 1px solid var(--kaindl-result-ink);
  color: var(--kaindl-result-on-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.kaindl-newsletter-result__button:hover,
.kaindl-newsletter-result__button:focus-visible {
  background: transparent;
  color: var(--kaindl-result-ink);
}

/* 768px: the legacy stylesheet's own breakpoint (max-width: 767px), kept
   for parity, written mobile-first like the other component files. */
@media (min-width: 768px) {
  .kaindl-newsletter-result {
    margin: 80px auto;
    padding: 0 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kaindl-newsletter-result__button {
    transition: none;
  }
}
