/* Loaded by every public page of the site, after the page's own styles. */
/* ---- phones: the design pages set their sizes inline, so they are scaled down here ---- */
@media (max-width: 640px) {
  [style*="font-size: clamp(56px"] { font-size: 34px !important; line-height: 1.08 !important; }
  [style*="font-size: clamp(52px"] { font-size: 36px !important; line-height: 1.08 !important; }
  [style*="font-size: clamp(48px"] { font-size: 34px !important; line-height: 1.1 !important; }
  [style*="font-size: clamp(44px"] { font-size: 32px !important; line-height: 1.1 !important; }
  [style*="font-size: clamp(40px"] { font-size: 30px !important; line-height: 1.12 !important; }
  [style*="font-size: clamp(36px"] { font-size: 28px !important; line-height: 1.15 !important; }
  [style*="font-size: clamp(32px"] { font-size: 26px !important; line-height: 1.2 !important; }
  [style*="font-size: clamp(28px"] { font-size: 24px !important; }
  [style*="font-size: 72px"] { font-size: 46px !important; }
  [style*="font-size: 40px"], [style*="font-size: 38px"] { font-size: 28px !important; line-height: 1.15 !important; }
  [style*="font-size: 34px"], [style*="font-size: 32px"] { font-size: 25px !important; line-height: 1.2 !important; }
  [style*="font-size: 30px"] { font-size: 23px !important; line-height: 1.25 !important; }
  [style*="font-size: 28px"] { font-size: 22px !important; }
  [style*="font-size: 26px"] { font-size: 21px !important; }
  [style*="font-size: 24px"] { font-size: 20px !important; }
  [style*="font-size: 22px"] { font-size: 19px !important; }
  [style*="font-size: 20px"] { font-size: 18px !important; }
  [style*="font-size: 11px"] { font-size: 12px !important; }
  [style*="padding: clamp(28px, 4vw, 56px)"] { padding: 22px !important; }
  [style*="padding: 160px clamp"] { padding-top: 88px !important; padding-bottom: 88px !important; }
  [style*="padding: 120px clamp"] { padding-top: 72px !important; padding-bottom: 72px !important; }
}

/* ---- tablets and desktops: calmer headings. The design sizes were drawn for a narrow display typeface;
        with the fonts of the visitor's own device they come out far too large, most of all with long German words. ---- */
@media (min-width: 641px) {
  [style*="font-size: clamp(56px, 8vw"], [style*="font-size: clamp(52px, 8vw"] { font-size: clamp(40px, 5.2vw, 74px) !important; line-height: 1.08 !important; }
  [style*="font-size: clamp(52px, 7vw"] { font-size: clamp(40px, 4.8vw, 70px) !important; line-height: 1.08 !important; }
  [style*="font-size: clamp(48px, 6.5vw"] { font-size: clamp(38px, 4.4vw, 64px) !important; line-height: 1.08 !important; }
  [style*="font-size: clamp(44px, 6vw"] { font-size: clamp(36px, 4.2vw, 60px) !important; line-height: 1.1 !important; }
  [style*="font-size: clamp(40px, 5.5vw"] { font-size: clamp(34px, 3.9vw, 56px) !important; line-height: 1.1 !important; }
  [style*="font-size: clamp(44px, 5vw"], [style*="font-size: clamp(40px, 5vw"] { font-size: clamp(34px, 3.7vw, 52px) !important; line-height: 1.1 !important; }
  [style*="font-size: clamp(36px, 4.5vw"] { font-size: clamp(30px, 3.3vw, 46px) !important; line-height: 1.12 !important; }
  [style*="font-size: clamp(32px, 3.6vw"] { font-size: clamp(28px, 3vw, 40px) !important; line-height: 1.15 !important; }
  [style*="font-size: 72px"] { font-size: 54px !important; }
  [style*="padding: 160px clamp"] { padding-top: 112px !important; padding-bottom: 112px !important; }
  [style*="padding: 120px clamp"] { padding-top: 88px !important; padding-bottom: 88px !important; }
}
h1, h2 { text-wrap: balance; overflow-wrap: break-word; }

/* ---- phones: tables fit the screen instead of hiding their last column off to the right ---- */
@media (max-width: 640px) {
  table { min-width: 0 !important; width: 100% !important; table-layout: auto; }
  th, td { white-space: normal !important; overflow-wrap: anywhere; padding-left: 8px !important; padding-right: 8px !important; }
  th:first-child, td:first-child { padding-left: 0 !important; }
  .g3 { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (min-width: 641px) { [style*="font-size: 11px"] { font-size: 12px !important; } }

/* ---- apply tab: always down the right side of the page ---- */
.bor-applytab { font-family: Jost, system-ui, sans-serif; position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40; writing-mode: vertical-rl; text-orientation: mixed; display: flex; flex-direction: row-reverse; align-items: center; justify-content: center; gap: 10px; padding: 22px 14px; background: #B4532A; color: #fff; text-decoration: none; border: 1.5px solid #0F1B33; border-right: 0; border-radius: 16px 0 0 16px; box-shadow: 0 6px 22px rgba(15,27,51,.28); line-height: 1.2; }
.bor-applytab b { font-size: 17px; font-weight: 500; letter-spacing: .04em; }
.bor-applytab span { font-size: 13px; opacity: .92; letter-spacing: .02em; }
.bor-applytab:hover, .bor-applytab:focus-visible { background: #0F1B33; }
@media (max-width: 640px) { .bor-applytab { padding: 16px 10px; } .bor-applytab b { font-size: 15px; } .bor-applytab span { font-size: 12px; } }
@media print { .bor-applytab { display: none; } }
