/* Use the offer's typography and colours with widths suited to longer texts. */
.fonden-methods {
  --fm-inset: clamp(1.5rem, 4vw, 4rem);
  --fm-forest: #234b37;
  --fm-rule: #d4e1d0;
  color: var(--company-ink);
  padding-block-start: clamp(1rem, 3vw, 2.75rem);
  overflow-wrap: anywhere;
}

.fm-intro {
  padding: var(--fm-inset);
  border: 1px solid var(--fm-rule);
  border-radius: clamp(1rem, 2vw, 1.75rem);
  background: linear-gradient(110deg, #f8faf3, #e8f2df);
  display: grid;
  grid-template-columns: minmax(0, 68ch) minmax(6rem, 1fr);
  align-items: center;
  gap: clamp(1rem, 5vw, 5rem);
}
.fm-intro::after {
  content: '';
  width: min(100%, 12rem);
  aspect-ratio: 1.2;
  justify-self: center;
  background: url('brand-icons/fonden.png') center / contain no-repeat;
}
.fm-intro h1 {
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(2.65rem, 5.8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 1.25rem;
  color: var(--fm-forest);
}
.fm-intro p, .fm-sections p, .fm-sections li {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}
.fm-intro p { color: #334b3b; margin: .9rem 0 0; }
.fm-layout {
  margin: clamp(2rem, 5vw, 4.5rem) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}
.fm-nav {
  align-self: start;
  border: 1px solid var(--fm-rule);
  border-radius: 1rem;
  background: #f8faf5;
  padding: 1.35rem 1.5rem;
}
.fm-nav p { color: var(--fm-forest); font-size: 1.1rem; font-weight: 700; margin: 0 0 .55rem; }
.fm-nav ul { list-style: none; margin: 0; padding: 0; }
.fm-nav li + li { border-top: 1px solid var(--fm-rule); }
.fm-nav a { display: block; padding-block: .65rem; color: #345b40; font-size: .95rem; line-height: 1.45; text-decoration: none; }
.fm-nav a:hover, .fm-nav a:focus-visible { color: var(--company-accent-dark); text-decoration: underline; text-underline-offset: .18em; }
.fm-nav a:focus-visible { outline: 2px solid var(--company-accent-dark); outline-offset: 2px; }
.fm-sections section { scroll-margin-top: 7rem; }
.fm-sections section + section { margin-top: 2.5rem; border-top: 1px solid var(--fm-rule); padding-top: 2.5rem; }
.fm-sections h2 {
  margin: 0 0 1rem;
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.14;
  letter-spacing: -.025em;
  color: var(--fm-forest);
  text-wrap: balance;
}
.fm-sections p { margin: .9rem 0 0; }
.fm-sections p:empty { display: none; }
@media (min-width: 901px) {
  .fm-layout {
    margin-inline: var(--fm-inset);
    grid-template-columns: minmax(0, 2.15fr) minmax(15rem, 1fr);
    grid-template-areas: "text contents";
    gap: clamp(2rem, 5vw, 5rem);
  }
  .fm-sections { grid-area: text; }
  .fm-nav { grid-area: contents; }
}
@media (min-width: 901px) and (min-height: 740px) {
  .fm-nav { position: sticky; top: 7rem; max-height: calc(100vh - 9rem); overflow: auto; }
}
@media (max-width: 900px) {
  .fm-layout { max-width: 67ch; }
}
@media (max-width: 700px) {
  .fm-intro { display: block; position: relative; }
  .fm-intro::after { position: absolute; inset: 1.5rem 1.5rem auto auto; width: 3rem; height: 2.6rem; }
  .fm-intro h1 { padding-inline-end: 3.75rem; }
}
