/* ========================================================================== 
   Ambassador page — warm, personal referral program
   ========================================================================== */

body,
#site {
  background: #fff;
}
body {
  --amb-gold-deep: #a87508;
  --amb-gold: #d4af37;
  --amb-gold-light: #fff0a0;
  --amb-gold-gradient: linear-gradient(
    120deg,
    var(--amb-gold-deep) 0%,
    #e2bc45 30%,
    var(--amb-gold-light) 50%,
    var(--amb-gold) 68%,
    #b8860b 100%
  );
}

/* ---- Hero ---- */
.amb-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(640px, calc(100svh - 80px), 820px);
  padding: clamp(72px, 8vw, 116px) 0;
  background: #e8e9e7;
  display: flex;
  align-items: center;
}
.amb-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #eeefed 0%,
    #e8e9e7 34%,
    rgba(232, 233, 231, 0.98) 43%,
    rgba(232, 233, 231, 0.76) 53%,
    rgba(232, 233, 231, 0.22) 65%,
    rgba(232, 233, 231, 0) 76%
  );
}
.amb-hero-media {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: 60%;
}
.amb-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 35%;
  transform: translateX(4%);
}
.amb-hero-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.amb-hero-copy {
  width: min(54%, 660px);
}
.amb-hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  line-height: 1.14;
  max-width: 20ch;
}
.amb-hero-lead {
  margin-top: 20px;
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--muted);
}
.amb-hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.amb-hero-actions .pg-btn-primary {
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid #b8860b;
  border-radius: 4px;
  background: var(--amb-gold-gradient);
  background-size: 160% 100%;
  background-position: left center;
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 248, 198, 0.78), 0 5px 14px rgba(168, 117, 8, 0.18);
  font-size: 0.98rem;
  font-weight: 700;
}
.amb-hero-actions .pg-btn-primary:hover {
  border-color: var(--amb-gold-deep);
  background: var(--amb-gold-gradient);
  background-position: right center;
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 248, 198, 0.9), 0 7px 18px rgba(168, 117, 8, 0.24);
}
.amb-hero-secondary {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 34, 60, 0.28);
  padding-bottom: 2px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.amb-hero-secondary:hover { color: var(--teal); border-color: var(--teal); }

@media (max-width: 900px) {
  .amb-hero {
    min-height: 0;
    padding: 0 0 64px;
    display: block;
  }
  .amb-hero::after {
    background: linear-gradient(
      180deg,
      rgba(232, 233, 231, 0) 0%,
      rgba(232, 233, 231, 0) 50%,
      rgba(232, 233, 231, 0.9) 78%,
      #e8e9e7 100%
    );
  }
  .amb-hero-media {
    position: relative;
    width: 100%;
    height: clamp(320px, 72vw, 520px);
  }
  .amb-hero-media img {
    object-position: 18% 30%;
    transform: none;
  }
  .amb-hero-shell { margin-top: 0; }
  .amb-hero-copy { width: 100%; }
  .amb-hero h1 { max-width: none; }
}

/* ---- Benefits (equal-weight, not a sequence) ---- */
.amb-benefits { border-top: 1px solid var(--border); }
.amb-benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}
.amb-benefit {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.amb-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage-lt);
  color: var(--teal);
}
.amb-benefit-icon svg { width: 22px; height: 22px; }
.amb-benefit h3 {
  margin-top: 18px;
  font-size: 1.2rem;
}
.amb-benefit p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .amb-benefits-row { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- Purpose (why it matters) ---- */
.amb-purpose {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(100px, 9vw, 140px);
  padding: clamp(12px, 1.4vw, 20px) 0;
  background: #fff;
  display: flex;
  align-items: center;
}
.amb-purpose::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 47%,
    rgba(255, 255, 255, 0.76) 57%,
    rgba(255, 255, 255, 0.98) 66%,
    #fff 76%,
    #fff 100%
  );
}
.amb-purpose-media {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 38%;
  height: 300px;
}
.amb-purpose-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}
.amb-purpose-shell {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
}
.amb-purpose-copy {
  width: calc(100% - 45%);
  margin-left: 45%;
  text-align: left;
}
.amb-purpose-copy h2 { margin-top: 0; }
.amb-purpose-lead {
  margin-top: 22px;
  font-family: var(--font-title);
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.75;
  color: var(--navy);
}
.amb-purpose-lead + .amb-purpose-lead { margin-top: 16px; }
.amb-purpose-close {
  margin-top: 26px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(20px, 2.3vw, 25px);
  line-height: 1.5;
  color: var(--navy);
}

@media (max-width: 900px) {
  .amb-purpose {
    min-height: 0;
    display: block;
    padding: 0 0 56px;
  }
  .amb-purpose::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0.9) 78%,
      #fff 100%
    );
  }
  .amb-purpose-media {
    position: relative;
    width: 100%;
    height: clamp(320px, 72vw, 480px);
  }
  .amb-purpose-shell { margin-top: 0; }
  .amb-purpose-copy { width: 100%; margin-left: 0; }
}

/* ---- Section heading shared ---- */
.amb-heading {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.amb-heading.is-left { margin-left: 0; text-align: left; }
.amb-heading h2 { margin-top: 0; }
.amb-heading p { margin-top: 14px; color: var(--muted); font-size: 17px; line-height: 1.7; }

/* ---- Steps (how it works) ---- */
#wie-es-funktioniert {
  padding-top: 48px;
  padding-bottom: 48px;
}
.amb-steps-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}
.amb-steps-row::before {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(16.5% + 4px);
  right: calc(16.5% + 4px);
  height: 0;
  border-top: 2px dashed rgba(58, 139, 122, 0.3);
  z-index: 0;
}
.amb-step {
  position: relative;
  z-index: 1;
  text-align: center;
}
.amb-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(16, 34, 60, 0.18);
}
.amb-step h3 {
  margin-top: 20px;
  font-size: 1.3rem;
}
.amb-step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  text-align: left;
}

@media (max-width: 760px) {
  .amb-steps-row { grid-template-columns: 1fr; gap: 36px; }
  .amb-steps-row::before { display: none; }
  .amb-step { text-align: left; display: flex; gap: 18px; align-items: flex-start; }
  .amb-step-num { flex-shrink: 0; }
  .amb-step-body { padding-top: 8px; }
  .amb-step-body h3 { margin-top: 0; }
}

/* ---- Definition (what counts as a successful referral + eligibility) ---- */
.amb-definition {
  min-height: 0;
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amb-definition-shell {
  max-width: 720px;
  margin: 0 auto;
}
.amb-definition-note {
  margin-top: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}
.amb-definition-note a { color: var(--teal); font-weight: 600; }

/* ---- Bridge (quiet closing nudge before contact) ---- */
.amb-bridge { border-top: 1px solid var(--border); }
.amb-bridge-shell {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.amb-bridge-shell h2 { margin-top: 0; }
.amb-bridge-shell p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

/* ---- Contact (template: regionen page kontakt section) ---- */
.amb-contact {
  padding-top: 40px;
  background: #fff;
}
.amb-contact-grid {
  max-width: 1020px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  border: 6px solid var(--amb-gold);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 230, 123, 0.68), inset 0 0 0 1px rgba(255, 245, 185, 0.62);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.amb-contact-heading { max-width: 420px; }
.amb-contact-heading h2 { margin-top: 0; }
.amb-contact-heading .lead { margin-top: 16px; }

.amb-form { display: grid; gap: 4px; }
.amb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.amb-form .pg-field { gap: 6px; margin-bottom: 12px; }
.amb-form .pg-input,
.amb-form .pg-textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.35;
}
.amb-form .pg-textarea { min-height: 88px; }
.amb-form-error {
  font-size: 13px;
  color: #B3261E;
  margin: 6px 0 0;
  min-height: 1em;
}
.amb-form-error:empty { display: none; }
.amb-form .pg-input.is-invalid,
.amb-form .pg-select.is-invalid,
.amb-form .pg-textarea.is-invalid {
  border-color: #B3261E;
}
.amb-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.amb-form-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 13px 26px;
  border: 1px solid #b8860b;
  border-radius: 4px;
  background: var(--amb-gold-gradient);
  background-size: 160% 100%;
  background-position: left center;
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 248, 198, 0.78), 0 5px 14px rgba(168, 117, 8, 0.18);
  font-size: 0.98rem;
  font-weight: 700;
}
.amb-form-submit:hover {
  border-color: var(--amb-gold-deep);
  background: var(--amb-gold-gradient);
  background-position: right center;
  color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255, 248, 198, 0.9), 0 7px 18px rgba(168, 117, 8, 0.24);
}
.amb-form-submit[disabled] { opacity: 0.7; cursor: default; }

@media (max-width: 860px) {
  .amb-contact-grid { grid-template-columns: 1fr; }
  .amb-contact-heading { max-width: none; }
}
@media (max-width: 520px) {
  .amb-contact-grid { border-radius: 14px; }
  .amb-form-row { grid-template-columns: 1fr; }
}
