/* The example follows two consecutive lessons on the existing chalkboard. */
.af-classic-main .af-home-lesson__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  max-width: 1160px;
}
.af-classic-main #lernfortschritt.af-home-lesson h2 {
  font-size: clamp(34px, 4vw, 57px);
  max-width: 16ch;
  text-wrap: balance;
}
.af-home-lesson__copy p { max-width: 46ch; }
.af-home-lesson__copy h2 + p { margin-top: 20px; }
.af-home-lesson__copy p + p { margin-top: 12px; }
.af-home-lesson__board {
  margin: 0;
  padding: clamp(19px, 3.2vw, 42px);
  background: linear-gradient(#10291b78, #10291b78), #284c39 url('/assets/images/classic/tafel.webp') center / cover;
  border: 7px solid #9c7650;
  border-color: #b99870 #896744 #795936 #ad895f;
  border-radius: 6px;
  box-shadow: 0 12px 24px #0b293e59, inset 0 1px 5px #15251b80;
  color: #fff;
}
.af-home-lesson__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e9f2e98c;
  color: #e9f2e9;
  font-size: .875rem;
}
.af-home-lesson__subject {
  color: #fff;
  font-family: 'Alefbata Kreide', sans-serif;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.15;
}
.af-home-lesson__example { white-space: nowrap; }
.af-home-lesson__entries {
  position: relative;
  display: grid;
  gap: 23px;
  margin: 20px 0 0;
  padding: 0 0 0 24px;
  list-style: none;
}
.af-home-lesson__entries::before {
  content: '';
  position: absolute;
  inset: .6em auto .6em 4px;
  border-left: 1px dashed #e9f2e98c;
}
.af-home-lesson__entry {
  position: relative;
  display: grid;
  gap: 5px;
  line-height: 1.45;
}
.af-home-lesson__entry::before {
  content: '';
  position: absolute;
  left: -24px;
  top: .45em;
  width: 9px;
  height: 9px;
  border: 2px solid #f8fff8;
  border-radius: 43% 55% 60% 49%;
  background: #254936;
}
.af-home-lesson__entry:last-child::before {
  background: #f4f789;
  border-color: #f4f789;
}
.af-home-lesson__step {
  color: #e9f2e9;
  font-size: .875rem;
  font-weight: 700;
}
.af-home-lesson__entry:last-child .af-home-lesson__step { color: #f4f789; }
.af-home-lesson__entry strong { font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.af-home-lesson__sum {
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: clamp(1.45rem, 2.8vw, 2.5rem);
  font-weight: 700;
  transform: rotate(-2deg);
}
.af-home-lesson__sum span {
  color: #f4f789;
  text-decoration: underline;
  text-decoration-style: double;
  text-underline-offset: .17em;
  text-decoration-thickness: 1px;
}
.af-location-gallery { margin-top: clamp(34px, 6vw, 72px); }
.af-location-gallery h3 { margin-bottom: 18px; }
.af-location-gallery__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(12px, 1.6vw, 24px);
}
.af-location-gallery figure { min-width: 0; margin: 0; }
.af-location-gallery img {
  display: block;
  width: 100%;
  height: clamp(170px, 22vw, 285px);
  object-fit: cover;
  border-radius: 8px;
}
.af-location-gallery figure:first-child img { object-position: center 63%; }
.af-location-gallery figcaption { margin-top: 7px; color: var(--divi-blue); font-weight: 700; }
@media (max-width: 760px) {
  .af-classic-main .af-home-lesson__layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .af-home-lesson__board { width: 100%; max-width: 550px; }
}
@media (max-width: 680px) {
  .af-location-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .af-location-gallery figure:first-child { grid-column: 1 / -1; }
  .af-location-gallery img { height: auto; aspect-ratio: 4 / 3; }
  .af-location-gallery figure:first-child img { aspect-ratio: 16 / 10; }
}

.af-classic-main #but.af-but { background: #e7eff0; }
.af-but__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.af-classic-main #but.af-but h2 {
  max-width: 16ch;
  font-size: clamp(34px, 4vw, 57px);
  text-wrap: balance;
}
.af-classic-main .af-but__eyebrow {
  margin-bottom: 12px;
  color: var(--divi-blue);
  font-size: .9rem;
  font-weight: 700;
}
.af-but__intro h2 + p { max-width: 49ch; margin-top: 20px; }
.af-classic-main .af-but__provider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 20px 0;
  padding: 8px 13px;
  border: 2px solid currentColor;
  border-radius: 6px 10px 6px 8px;
  color: var(--divi-blue);
  font-size: 1rem;
  line-height: 1.35;
  background: #f5fac7;
  transform: rotate(-1.5deg);
}
.af-but__provider span { font-size: 1.45rem; line-height: 1; }
.af-but__intro .af-home-button { margin-top: 15px; }
.af-but__sheet {
  position: relative;
  padding: clamp(22px, 3.4vw, 42px) clamp(20px, 3.8vw, 46px);
  border-radius: 3px 10px 10px 3px;
  border-left: 6px solid #34717c;
  background: #fffcf0;
  box-shadow: 0 12px 30px #153d4020;
}
.af-but__sheet h3 { margin: 0 0 10px; text-wrap: balance; }
.af-classic-main .af-but__sheet p { margin: 0; font-size: 1rem; }
.af-but__sheet .af-home-link { display: inline-flex; margin-top: 16px; }
.af-but__benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 14px 0;
  margin: 15px 0;
  border-block: 1px solid #bbc9c6;
  list-style: none;
}
.af-but__benefits li {
  position: relative;
  padding-left: 21px;
  color: var(--divi-blue);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.af-but__benefits li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .27em;
  width: 7px;
  height: 12px;
  border: solid #2a6876;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.af-but__benefits li:last-child { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .af-but__layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .af-but__benefits { grid-template-columns: 1fr; }
}
