.af-classic-main .af-home-lesson__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(44%, 440px));
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
  max-width: 1160px;
}
.af-classic-main #lernfortschritt.af-home-lesson h2 {
  font-size: clamp(32px, 3.55vw, 51px);
  max-width: 17ch;
  text-wrap: pretty;
}
.af-home-lesson__copy p { max-width: 51ch; }
.af-home-lesson__copy h2 + p { margin-top: 20px; }
.af-home-lesson__copy p + p { margin-top: 12px; }
.af-home-lesson__board {
  padding: clamp(18px, 2.5vw, 32px);
  background: linear-gradient(#162f2359, #162f2359), #254936 url('/assets/images/classic/tafel.webp') center / max(150%, 540px) auto;
  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: 2px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9f2e96b;
  color: #e9f2e9;
  font-size: 14px;
}
.af-home-lesson__subject {
  color: #fff;
  font-family: 'Alefbata Kreide', sans-serif;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.15;
}
.af-home-lesson__entries { display: grid; gap: 18px; margin: 17px 0 0; }
.af-home-lesson__entry dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e9f2e9;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.af-home-lesson__entry:last-child dt { color: #f4f789; }
.af-home-lesson__entry dt img { width: 24px; height: 24px; object-fit: contain; }
.af-home-lesson__entry dt .af-icon { flex-basis: 24px; width: 24px; height: 24px; }
.af-home-lesson__entry dd { margin: 3px 0 0 34px; font-size: 19px; line-height: 1.35; }
@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: 440px; }
}


/* Compact calculator section on the two landing pages. */
.af-classic-main .af-price-section { background: #f6f8f8; padding: 44px 0 46px; }
.af-price-section > .af-home-wrap { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr); gap: 12px clamp(28px, 5vw, 76px); align-items: start; }
.af-price-section h2 { grid-column: 1; grid-row: 1; max-width: 12ch; color: #19556c; font-size: clamp(30px, 3vw, 41px); line-height: 1.2; }
.af-price-section .af-price-form { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.af-price-section .af-price-flow { padding: 22px 26px; border-radius: 7px; background: #fff; box-shadow: 0 8px 24px rgba(17, 55, 73, .08); }
.af-price-section .af-price-step[hidden], .af-price-section .af-price-frequency[hidden] { display: none; }
.af-price-section .af-price-step__count { margin-bottom: 3px; color: #19556c; font-size: 13px; font-weight: 750; }
.af-price-section .af-price-step h3 { margin-bottom: 12px; color: #19556c; font-size: clamp(25px, 2.3vw, 31px); line-height: 1.2; }
.af-price-section .af-price-step > p:not(.af-price-step__count):not(.af-price-error):not(.af-price-privacy) { font-size: 15px; }
.af-price-section .af-price-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.af-price-section .af-price-choice { display: inline-flex; align-items: center; gap: 9px; min-height: 43px; padding: 8px 12px; border: 1px solid #9eb5bf; border-radius: 5px; background: #fff; color: #173746; cursor: pointer; font-size: 16px; font-weight: 750; }
.af-price-section .af-price-choice input { width: 18px; height: 18px; margin: 0; accent-color: #19556c; }
.af-price-section .af-price-choice.is-selected { border-color: #19556c; background: #e8f2f5; }
.af-price-section .af-price-error { margin-top: 10px; color: #a52929; font-size: 14px; font-weight: 700; }
.af-price-section .af-price-button { min-height: 44px; margin-top: 18px; padding: 9px 17px; border: 0; border-radius: 5px; background: #edf000; color: #173746; cursor: pointer; font: inherit; font-size: 15px; font-weight: 750; }
.af-price-section .af-price-button:hover:not(:disabled) { background: #f5f791; }
.af-price-section .af-price-button:disabled { opacity: .48; cursor: not-allowed; }
.af-price-section .af-price-frequency-list { margin-top: 14px; border-top: 1px solid #d6e0e4; }
.af-price-section .af-price-frequency { display: grid; grid-template-columns: 1fr minmax(155px, 190px); align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #d6e0e4; }
.af-price-section .af-price-frequency label { color: #173746; font-size: 16px; font-weight: 750; }
.af-price-section .af-price-frequency select { width: 100%; min-height: 42px; padding: 7px 10px; border: 1px solid #8da7b3; border-radius: 5px; background: #fff; color: #173746; font: inherit; font-size: 14px; }
.af-price-section .af-price-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.af-price-section .af-price-back { margin-top: 18px; padding: 8px 0; border: 0; background: none; color: #19556c; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.af-price-section .af-price-recap { margin: 0 0 12px; color: #344b55; font-size: 14px; font-weight: 700; }
.af-price-section .af-price-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.af-price-section .af-price-fields label { display: grid; gap: 5px; color: #173746; font-size: 14px; font-weight: 700; }
.af-price-section .af-price-fields input { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #8da7b3; border-radius: 5px; background: #fff; color: #173746; font: inherit; font-size: 15px; }
.af-price-section .af-price-privacy { margin-top: 12px; color: #344b55; font-size: 12px; }
.af-price-section .af-price-funding { grid-column: 1; grid-row: 2; margin: 0; color: #344b55; font-size: 14px; }
.af-price-section .af-price-funding a { color: #19556c; font-weight: 700; text-underline-offset: 3px; }
.af-price-section :focus-visible { outline: 3px solid #19556c; outline-offset: 3px; box-shadow: 0 0 0 5px #edf000; }
@media (max-width: 900px) {
  .af-price-section > .af-home-wrap { grid-template-columns: 1fr; gap: 14px; }
  .af-price-section h2, .af-price-section .af-price-form, .af-price-section .af-price-funding { grid-column: 1; grid-row: auto; }
  .af-price-section h2 { max-width: none; }
}
@media (max-width: 580px) {
  .af-classic-main .af-price-section { padding: 32px 0 36px; }
  .af-price-section h2 { font-size: 31px; }
  .af-price-section .af-price-flow { padding: 18px 16px; }
  .af-price-section .af-price-step h3 { font-size: 25px; }
  .af-price-section .af-price-choices { gap: 7px; }
  .af-price-section .af-price-choice { padding: 7px 10px; font-size: 15px; }
  .af-price-section .af-price-frequency { grid-template-columns: 1fr; gap: 5px; }
  .af-price-section .af-price-fields { grid-template-columns: 1fr; }
  .af-price-section .af-price-actions { gap: 10px; }
}

.af-classic-main .af-home-subject-overview .af-home-subjects {
  max-width: 1160px;
  margin-inline: auto;
  gap: clamp(22px, 4vw, 57px);
}
.af-home-subject-overview .af-home-subjects h3 {
  font-size: clamp(23px, 2.3vw, 32px);
  line-height: 1.22;
}
.af-home-subject-overview .af-home-subjects p {
  max-width: 30ch;
  margin-bottom: 0;
}
.af-home-subject-overview .af-home-subjects p a { font-weight: 650; text-underline-offset: 3px; }
.af-home-subject-overview__action { margin-top: 32px; text-align: center; }
.af-home-subject-overview__action .af-home-link {
  min-height: 44px;
  color: #f4f789;
  text-align: start;
}

.af-classic-main .af-exam-prep {
  background: #f4f7f8;
  padding-block: clamp(46px, 6.2vw, 92px);
}
.af-classic-main .af-exam-prep > .af-home-wrap { max-width: 1160px; }
.af-exam-prep__header h2 {
  font-size: clamp(31px, 4.05vw, 54px);
  line-height: 1.14;
}
.af-exam-prep__header p { max-width: 58ch; margin-top: 14px; }
.af-exam-prep__papers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
  margin-top: clamp(25px, 3.5vw, 43px);
}
.af-exam-paper {
  --exam-ink: #19556c;
  --exam-copy: #344b55;
  --exam-link: #19556c;
  --exam-surface: #fff;
  --exam-line: #d6e1e5;
  --exam-fold: #dbe8ec;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(23px, 3.7vw, 50px);
  background: var(--exam-surface);
  border: 1px solid var(--exam-line);
  border-radius: 8px 0 8px 8px;
  box-shadow: 0 8px 20px #12394d14;
}
.af-exam-paper--abitur {
  --exam-ink: #fff;
  --exam-copy: #fff;
  --exam-link: #f4f789;
  --exam-surface: #19556c;
  --exam-line: #19556c;
  --exam-fold: #edf000;
}
.af-exam-paper::after {
  content: '';
  position: absolute;
  inset: -1px -1px auto auto;
  width: clamp(26px, 4vw, 54px);
  aspect-ratio: 1;
  background: linear-gradient(45deg, var(--exam-fold) 50%, #f4f7f8 50%);
  border-bottom-left-radius: 5px;
}
.af-exam-prep .af-exam-paper h3 {
  color: var(--exam-ink);
  font-size: clamp(48px, 6.8vw, 92px);
  line-height: 1;
}
.af-exam-prep .af-exam-paper p { color: var(--exam-copy); font-size: 16px; max-width: 43ch; }
.af-exam-prep .af-exam-paper .af-exam-paper__subtitle {
  color: var(--exam-ink);
  font-weight: 700;
  margin-block: 14px 9px;
}
.af-exam-prep .af-exam-paper__subtitle + p { margin-top: 0; margin-bottom: 18px; }
.af-exam-prep .af-exam-paper .af-home-link {
  min-height: 44px;
  color: var(--exam-link);
  margin-top: auto;
}

.af-classic-main .af-home-instagram {
  padding-block: clamp(40px, 5.3vw, 76px);
  border-top: 1px solid #dce5e7;
}
.af-classic-main .af-home-instagram > .af-home-wrap { max-width: 1160px; }
.af-home-instagram__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(15px, 2.4vw, 30px);
}
.af-home-instagram__header h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; }
.af-home-instagram__header .af-home-link { min-height: 44px; color: #19556c; }
.af-home-instagram__posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.af-home-instagram__posts a {
  display: block;
  overflow: hidden;
  border: 1px solid #d6e1e5;
  border-radius: 7px;
  color: #19556c;
  text-decoration: none;
}
.af-home-instagram__posts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.af-home-instagram__posts img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: #f4f7f8;
}
.af-home-instagram__posts span {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.af-home-instagram__live { margin-top: 20px; }
.af-home-instagram__live summary {
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #8da7b3;
  border-radius: 5px;
  color: #19556c;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
.af-home-instagram__live summary:hover { background: #f1f6f7; }
.af-home-instagram__live iframe {
  display: block;
  width: min(100%, 540px);
  height: clamp(400px, 130vw, 580px);
  margin: 14px auto 0;
  border: 1px solid #d6e1e5;
  border-radius: 7px;
}

.af-price-picker {
  margin-top: 16px;
  border: 1px solid #8da7b3;
  border-radius: 6px;
  background: #fff;
}
.af-price-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  color: #173746;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.af-price-picker summary::-webkit-details-marker { display: none; }
.af-price-picker summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-inline-end: 3px;
  border: solid #19556c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.af-price-picker[open] summary::after { transform: rotate(225deg); }
.af-price-section .af-price-picker .af-price-choices {
  display: block;
  max-height: min(300px, 42vh);
  margin-top: 0;
  padding: 5px 7px 7px;
  overflow: auto;
  border-top: 1px solid #d6e0e4;
}
.af-price-choice-group + .af-price-choice-group {
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid #d6e0e4;
}
.af-price-section .af-price-choice-group__heading {
  padding: 8px 8px 4px;
  color: #19556c;
  font-size: 13px;
  font-weight: 750;
}
.af-price-section .af-price-picker .af-price-choice {
  display: flex;
  width: 100%;
  min-height: 44px;
  padding: 7px 8px;
  border-color: transparent;
  font-size: 15px;
  font-weight: 600;
}
.af-price-section .af-price-picker .af-price-choice input { flex: 0 0 18px; }
.af-price-section .af-price-picker .af-price-choice:hover { background: #f1f6f7; }
.af-price-section .af-price-picker .af-price-choice.is-selected {
  border-color: #bad1da;
  background: #e8f2f5;
}
.af-price-section .af-price-picker .af-price-choice:has(input:focus-visible) {
  outline: 2px solid #19556c;
  outline-offset: -2px;
}
.af-price-section .af-price-custom { display: grid; gap: 4px; margin-top: 12px; }
.af-price-section .af-price-custom[hidden] { display: none; }
.af-price-custom label { color: #173746; font-size: 14px; font-weight: 700; }
.af-price-custom input {
  width: 100%;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid #8da7b3;
  border-radius: 5px;
  color: #173746;
  font: inherit;
  font-size: 15px;
}
.af-price-section .af-price-selection { margin-top: 9px; font-weight: 650; overflow-wrap: anywhere; }
.af-price-section .af-price-frequency label, .af-price-section .af-price-recap { overflow-wrap: anywhere; }

.af-price-estimate {
  margin-block: 14px 18px;
  padding: 12px 14px;
  border: 1px solid #b6ced6;
  border-radius: 5px;
  background: #f1f6f7;
}
.af-price-estimate h4 { margin: 0; color: #173746; font-size: 16px; }
.af-price-estimate dl { margin: 6px 0 0; }
.af-price-estimate dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-block: 5px;
  color: #344b55;
  font-size: 14px;
  line-height: 1.4;
}
.af-price-estimate dl > div + div { border-top: 1px solid #cbdde3; }
.af-price-estimate dd { margin: 0; color: #173746; font-weight: 750; white-space: nowrap; }
.af-price-estimate p { margin-top: 5px; font-size: 14px; }

@media (max-width: 760px) {
  .af-classic-main .af-home-subject-overview .af-home-subjects { gap: 25px; }
  .af-home-subject-overview .af-home-subjects p { margin-bottom: 0; }
}
@media (max-width: 620px) {
  .af-exam-prep__papers { grid-template-columns: minmax(0, 1fr); }
  .af-home-instagram__posts {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 66%;
    padding: 7px;
    margin: -7px;
    overflow-x: auto;
    scroll-padding-inline: 7px;
    scroll-snap-type: x mandatory;
  }
  .af-home-instagram__posts li { scroll-snap-align: start; }
}
