/* The title and section hierarchy follows the flyer gallery. */
:root {
  --flyer-heading-font: Inter, "Segoe UI", Arial, sans-serif;
  --flyer-heading-ink: #1b191c;
}
:root[data-theme="night"] { --flyer-heading-ink: #f6f5f5; }

#inhalt :is(h1, h2, .facts dt, .chron-latest-year), footer .contact h2 {
  font-family: var(--flyer-heading-font);
  font-weight: 625;
  text-transform: none;
}
#inhalt :is(.eyebrow, .type, .story-place, .chron-latest-label, .chron-guide nav > h2, .directory-quick h2),
footer .contact .eyebrow {
  font-family: var(--flyer-heading-font);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#inhalt .eyebrow > i, footer .contact .eyebrow > i { display: none; }

@media screen {
  #inhalt h1 {
    color: var(--flyer-heading-ink);
    letter-spacing: -.065em;
    line-height: .96;
  }
  #inhalt :not(.hero-copy) > h1 {
    font-size: clamp(3rem, 7.3vw, 6.7rem);
    max-inline-size: 100%;
    overflow-wrap: anywhere;
    hyphens: manual;
    text-wrap: balance;
  }
  #inhalt .directory-title-block h1, #inhalt .application-copy h1 { font-size: clamp(2.55rem, 6.15vw, 5.85rem); }
  #inhalt .terms-layout h1 { font-size: clamp(2.55rem, 4.95vw, 4.95rem); }
  #inhalt .terms-layout h1 .compound { display: inline-block; max-width: 100%; }
  #inhalt h1 em { color: inherit; }
  #inhalt h1 .title-stop { color: var(--headline-accent); }
  #inhalt :is(.facts dt, .chron-latest-year) { line-height: 1.05; letter-spacing: -.05em; }
  #inhalt .facts dt {
    font-size: clamp(1.35rem, .8rem + 2.3vw, 3.25rem);
    color: var(--flyer-heading-ink);
    white-space: nowrap;
  }
  #inhalt .facts > div:last-child { padding-inline-end: 0; }
  #inhalt h2, footer .contact h2 {
    color: var(--flyer-heading-ink);
    letter-spacing: -.052em;
    line-height: 1.08;
    overflow-wrap: break-word;
  }
  /* Compact headings within directories, legal text and timeline entries retain their scale. */
  #inhalt h2:not(:where(.reading *, .terms-layout *, .chron-timeline *, nav *, .directory-layout *,
                         .directory-quick *, .system-group *, .archive-layout *, .imprint-body *, .sub-card *)),
  footer .contact h2 { font-size: clamp(1.75rem, 3.2vw, 2.9rem); }
  #inhalt :is(.eyebrow, .type, .story-place, .chron-latest-label, .chron-guide nav > h2, .directory-quick h2),
  footer .contact .eyebrow { color: var(--accent-text); }
}
@media screen and (max-width: 375px) {
  #inhalt :not(.hero-copy) > h1 { font-size: 2.55rem; }
}
@container page (width < 25em) {
  #inhalt .chron-latest { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
}
@container page (width < 19em) {
  #inhalt .facts { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  #inhalt .facts > div { gap: .25rem; padding: 0 0 .7rem; border: 0; border-bottom: 1px solid var(--rule); }
  #inhalt .facts > div:last-child { padding-bottom: 0; border: 0; }
}
@media print {
  #inhalt :is(h1, h2), footer .contact h2 { line-height: 1.13; letter-spacing: normal; }
  #inhalt .eyebrow, footer .contact .eyebrow { font-size: 9pt; }
}
