/* Homepage v2. Scoped so the reviewed direction can be assessed independently. */
.af-home-preview { --home-ink: #173746; --home-copy: #425b65; --home-line: #d5e1e4; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.af-home { background: #fff; color: var(--home-ink); font-size: 18px; line-height: 1.65; }
.af-home-wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.af-home h1, .af-home h2, .af-home h3, .af-home p, .af-home figure { margin: 0; }
.af-home h1, .af-home h2, .af-home h3 { font-family: inherit; color: var(--home-ink); font-weight: 600; letter-spacing: 0; }
.af-home h1 { font-size: clamp(40px, 3.45vw, 48px); line-height: 1.15; max-width: 21ch; text-wrap: balance; }
.af-home h2 { font-size: 34px; line-height: 1.25; max-width: 31ch; text-wrap: balance; }
.af-home h3 { font-size: 21px; line-height: 1.4; }
.af-home p { color: var(--home-copy); }
.af-home p + p { margin-top: 18px; }
.af-home h3 + p { margin-top: 12px; }
.af-home strong { font-weight: 600; }
.af-home a { color: #155f82; }
.af-home .af-icon { flex: 0 0 19px; width: 19px; height: 19px; }
.af-home-button, .af-home-link, .af-home-phone { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.5; }
.af-home-button { min-height: 54px; padding: 14px 20px; border-radius: 5px; color: var(--home-ink) !important; background: #f2e900; border: 1px solid #f2e900; }
.af-home-button:hover { background: #e2db00; border-color: #e2db00; }
.af-home-link span, .af-home-phone span { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #8ca9b7; }
.af-home-link:hover span, .af-home-phone:hover span { text-decoration-color: currentColor; }
.af-home-hero { padding: 60px 0 68px; }
.af-home-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 58px; align-items: center; }
.af-home-hero__grid > * { min-width: 0; }
.af-home .af-home-location { margin-bottom: 20px; color: #155f82; font-size: 15px; font-weight: 500; }
.af-home .af-home-lead { margin-top: 24px; max-width: 56ch; font-size: 18px; line-height: 1.65; }
.af-home-hero__checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; font-size: 17px; line-height: 1.5; }
.af-home-hero__checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.af-home-hero__checks .af-icon { margin-top: 3px; color: #155f82; stroke-width: 2.5; }
.af-home .af-home-hero__call { margin-top: 10px; font-size: 16px; font-weight: 600; }
.af-home-hero__call a { white-space: nowrap; text-underline-offset: 4px; }
.af-home-actions { display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: center; margin-top: 28px; }
.af-home-phone { white-space: nowrap; }
.af-home .af-home-address-note { font-size: 14px; margin-top: 20px; }
.af-home-hero__image img { width: 100%; height: 440px; object-fit: cover; object-position: 57% center; border-radius: 8px; }
.af-home-section { padding-block: 76px; scroll-margin-top: 108px; }
.af-home-section--soft { background: #f1f6f7; }
.af-home-section--dark { background: #103f53; }
.af-home-section--dark h2 { color: #fff; }
.af-home-section--dark p { color: #e3edf0; }
.af-home-section--dark a { color: #f2e900; }
.af-home-section--dark a span { text-decoration-color: #aebc55; }
.af-home-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; margin-top: 36px; }
.af-home-benefits article { border-top: 2px solid #aec7d0; padding-top: 20px; }
.af-home-benefits p { font-size: 17px; line-height: 1.65; }
.af-home-subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 38px; }
.af-home-subjects article { display: flex; flex-direction: column; align-items: start; }
.af-home-subjects h3 { font-size: 28px; }
.af-home-subjects p { flex: 1; margin-bottom: 22px; font-size: 17px; }
.af-home-exams { border-top: 1px solid var(--home-line); margin-top: 36px; padding-top: 25px; display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.af-home-exams p { max-width: 52ch; font-size: 17px; }
.af-home-exams a { flex: 0 0 auto; }
.af-home-feedback, .af-home-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.af-home-feedback h2 { max-width: 22ch; }
.af-home-feedback .af-home-link, .af-home-split .af-home-link { margin-top: 24px; }
.af-home-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.af-home-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 17px; align-items: start; }
.af-home-step-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #f2e900; font-size: 17px; font-weight: 600; }
.af-home-steps h3 { padding-top: 4px; }
.af-home-steps p { font-size: 17px; }
.af-home-section--enquiry { background: #f1f6f7; border-top: 1px solid var(--home-line); }
.af-home-enquiry { display: grid; grid-template-columns: .95fr 1.05fr; gap: 90px; align-items: start; }
.af-home-enquiry h2 + p { margin-top: 22px; max-width: 47ch; }
.af-home-contact { margin-top: 36px; display: flex; flex-direction: column; align-items: start; gap: 14px; }
.af-home-contact p { font-size: 16px; }
.af-home .af-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; padding: 32px; border: 1px solid #c6d7dc; border-radius: 8px; background: #fff; box-shadow: none; color: var(--home-ink); }
.af-home .af-lead-form label { display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 500; min-width: 0; }
.af-home .af-lead-form label:nth-of-type(2), .af-home .af-lead-form label:last-of-type { grid-column: 1 / -1; }
.af-home .af-lead-form input { min-width: 0; width: 100%; min-height: 49px; font: inherit; font-weight: 400; border: 1px solid #92abb6; border-radius: 4px; padding: 11px 12px; background: #fff; color: var(--home-ink); box-shadow: none; }
.af-home .af-lead-form input::placeholder { color: #637a85; opacity: 1; }
.af-home .af-lead-form .af-hp-field { display: none; }
.af-home .af-lead-form button { grid-column: 1 / -1; margin: 0; min-height: 54px; border: 1px solid #f2e900; border-radius: 5px; background: #f2e900; color: var(--home-ink); font: inherit; font-size: 16px; font-weight: 600; padding: 14px 18px; gap: 14px; box-shadow: none; }
.af-home .af-lead-form button:hover { background: #e2db00; border-color: #e2db00; transform: none; }
.af-home .af-lead-form .af-form-privacy { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.6; color: #526976; }
.af-home-preview .af-site-header__inner { min-height: 92px; }
.af-home-preview .af-nav { gap: 22px; }
.af-home-preview .af-nav a { font-weight: 500; font-size: 14px; }
.af-home-preview .af-nav .af-button { font-weight: 600; padding: 13px 17px; }
.af-home-preview .af-site-footer { background: #103f53; padding-block: 48px; }
.af-home-preview .af-site-footer p { font-size: 15px; font-weight: 400; line-height: 1.75; color: #dce9ee; }
.af-home-preview .af-site-footer .af-footer-label { color: #fff; font-size: 16px; font-weight: 600; }
.af-home-preview .af-site-footer a { font-weight: 400; color: #e3edf0; }
.af-home-preview .af-site-footer .af-grid { gap: 40px; }
@media (max-width: 1120px) {
  .af-home-preview .af-menu-toggle { display: flex; }
  .af-home-preview .af-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 24px 32px; background: #fff; border-bottom: 1px solid var(--home-line); box-shadow: 0 10px 20px #103f5310; gap: 6px; }
  .af-home-preview .af-nav[data-open="true"] { display: flex; max-height: calc(100dvh - 92px); overflow-y: auto; }
  .af-home-preview .af-nav a { padding: 11px 0; font-size: 16px; }
  .af-home-preview .af-nav .af-button { margin-top: 12px; align-self: start; }
  .af-home-hero__grid { gap: 36px; }
  .af-home h1 { font-size: 42px; }
  .af-home-hero__image img { height: 410px; }
  .af-home-benefits, .af-home-subjects, .af-home-steps { gap: 28px; }
  .af-home-feedback, .af-home-split, .af-home-enquiry { gap: 52px; }
  .af-home-exams { align-items: start; flex-direction: column; gap: 16px; }
}
@media (max-width: 760px) {
  .af-home-wrap { width: calc(100% - 40px); }
  .af-home { font-size: 17px; }
  .af-home h1 { font-size: 36px; line-height: 1.18; max-width: 22ch; text-wrap: initial; }
  .af-home h2 { font-size: 29px; line-height: 1.3; text-wrap: balance; }
  .af-home h3 { font-size: 21px; }
  .af-home-preview .af-site-header__inner { min-height: 78px; }
  .af-home-preview .af-nav[data-open="true"] { max-height: calc(100dvh - 78px); }
  .af-home-hero { padding: 34px 0 44px; }
  .af-home-hero__grid, .af-home-feedback, .af-home-split, .af-home-enquiry { grid-template-columns: 1fr; gap: 28px; }
  .af-home .af-home-location { font-size: 14px; margin-bottom: 17px; }
  .af-home .af-home-lead { font-size: 17px; margin-top: 21px; }
  .af-home-actions { margin-top: 24px; gap: 18px; }
  .af-home-button { width: 100%; justify-content: center; padding: 14px 12px; font-size: 15px; gap: 10px; }
  .af-home .af-home-address-note { margin-top: 18px; font-size: 13px; }
  .af-home-hero__image img { height: auto; aspect-ratio: 1.6; }
  .af-home-section { padding-block: 48px; scroll-margin-top: 96px; }
  .af-home-benefits, .af-home-subjects, .af-home-steps { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .af-home-benefits article { padding-top: 17px; }
  .af-home-subjects article + article { border-top: 1px solid var(--home-line); padding-top: 25px; }
  .af-home-subjects h3 { font-size: 26px; }
  .af-home-subjects p { margin-bottom: 15px; }
  .af-home-exams { margin-top: 28px; padding-top: 25px; }
  .af-home-exams a { flex: auto; }
  .af-home-feedback .af-home-link, .af-home-split .af-home-link { margin-top: 20px; }
  .af-home-steps { gap: 26px; }
  .af-home-step-number { width: 34px; height: 34px; }
  .af-home-steps li { grid-template-columns: 34px 1fr; gap: 16px; }
  .af-home-steps h3 { padding-top: 1px; }
  .af-home-contact { margin-top: 25px; }
  .af-home .af-lead-form { padding: 24px; gap: 20px 16px; }
  .af-home-preview .af-site-footer .af-grid { gap: 30px 24px; }
}
@media (max-width: 380px) {
  .af-home-wrap { width: calc(100% - 32px); }
  .af-home h1 { font-size: 32px; }
  .af-home h2 { font-size: 27px; }
  .af-home .af-lead-form { padding: 20px; grid-template-columns: 1fr; }
  .af-home .af-lead-form label { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .af-home-preview *, .af-home-preview *::before, .af-home-preview *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Shared v3: illustrative brand assets and readable supporting pages. */
.af-home .af-brand-illustration img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; object-position: center; border-radius: 0; }
.af-home .af-brand-illustration { margin: 0; }
.af-pages .af-breadcrumb { margin: 0 0 32px; font-size: 13px; line-height: 1.65; display: flex; flex-wrap: wrap; gap: 6px 10px; color: #526976; }
.af-pages .af-breadcrumb a { font-size: inherit; font-weight: 400; }
.af-pages .af-home-hero { padding-top: 26px; }
.af-pages .af-home-split > *, .af-pages .af-home-enquiry > *, .af-page-feature > * { min-width: 0; }
.af-pages .af-home-split h2 + p, .af-page-feature h2 + p { margin-top: 22px; }
.af-pages .af-home-split .af-home-link, .af-page-feature .af-home-link { margin-top: 24px; }
.af-page-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 76px; align-items: center; }
.af-home-section--soft .af-brand-illustration img { mix-blend-mode: multiply; }
.af-page-address { padding-left: 32px; border-left: 2px solid #aac5d0; }
.af-home address { font-style: normal; color: var(--home-copy); line-height: 1.7; margin-top: 20px; }
.af-page-address address + p { margin-top: 20px; }
.af-page-address .af-home-link { margin-top: 16px !important; }
.af-page-address p .af-home-link { margin-top: 0 !important; }
.af-page-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 54px; margin-top: 34px; }
.af-page-links article { border-top: 1px solid var(--home-line); padding-top: 23px; }
.af-page-links h3 a { font-size: 22px; }
.af-page-links p { font-size: 17px; margin-top: 9px !important; }
.af-page-faq details { border-top: 1px solid var(--home-line); padding: 0; }
.af-page-faq details:last-child { border-bottom: 1px solid var(--home-line); }
.af-page-faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 18px; line-height: 1.5; }
.af-page-faq details p { margin: 0 0 24px; font-size: 17px; }
.af-page-contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 86px; }
.af-page-contact-grid h2 { font-size: 28px; }
.af-page-contact-list { margin: 30px 0 0; }
.af-page-contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; margin-top: 20px; }
.af-page-contact-list dt { color: var(--home-copy); font-size: 16px; }
.af-page-contact-list dd { margin: 0; }
.af-home.af-pages .af-section { background: #fff; padding: 56px 0 76px; }
.af-home.af-pages .af-section__inner { width: min(1200px, calc(100% - 64px)); }
.af-home.af-pages .af-legal { max-width: 850px; margin: 0 auto; }
.af-home.af-pages .af-legal h1 { max-width: 100%; font-size: 42px; overflow-wrap: anywhere; }
.af-home.af-pages .af-legal h2 { margin-top: 36px; font-size: 26px; }
.af-home.af-pages .af-legal h2 + p { margin-top: 16px; }
.af-home.af-pages .af-legal h1 + p { margin-top: 24px; }
.af-home.af-pages .af-legal p, .af-home.af-pages .af-legal li { font-size: 17px; line-height: 1.75; }
.af-home.af-pages .af-legal a { overflow-wrap: anywhere; }
.af-home.af-pages .af-section__intro { margin: 24px 0; max-width: 65ch; font-size: 18px; line-height: 1.65; }
.af-home :focus-visible { outline: 3px solid #155f82; outline-offset: 4px; }
@media (max-width: 1000px) {
  .af-page-feature, .af-page-contact-grid { gap: 40px; }
  .af-page-contact-list > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 760px) {
  .af-pages .af-breadcrumb { margin-bottom: 24px; }
  .af-page-feature, .af-page-contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .af-page-feature .af-brand-illustration { max-width: 400px; width: 100%; margin: auto; }
  .af-page-address { padding-left: 20px; }
  .af-page-links { grid-template-columns: 1fr; gap: 24px; }
  .af-page-faq summary { font-size: 17px; }
  .af-home.af-pages .af-section { padding: 36px 0 48px; }
  .af-home.af-pages .af-section__inner { width: calc(100% - 40px); }
  .af-home.af-pages .af-legal h1 { font-size: 32px; }
  .af-home.af-pages .af-legal h2 { font-size: 24px; }
}
@media (max-width: 380px) {
  .af-home.af-pages .af-section__inner { width: calc(100% - 32px); }
}
/* Long German words must stay inside the tablet columns. */
@media (max-width: 1000px) {
  .af-pages h1, .af-pages h2, .af-pages h3 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .af-home .af-home-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .af-home .af-home-hero__grid h1 { max-width: 27ch; }
  .af-home .af-home-hero__image { max-width: 440px; width: 100%; justify-self: center; }
}
