/* German Observer listings: use the corresponding English card display.
   Loaded only by news.html, news-company.html and news-insights.html.
   Keep German copy, typography and all article detail pages unchanged. */

/* Every summary has two lines, except the hub industry cards below. */
html[lang="de"][data-lang="de"] body#de-site-page
  main#main-content:is(.observer-main--hub, .observer-main--channel)
  .observer-publication-card__summary {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  height: auto !important;
  min-block-size: 0 !important;
  max-height: none !important;
  max-block-size: none !important;
}

/* Hub and company-list titles: two lines with an ellipsis.
   Industry-list titles retain the English unrestricted wrapping. */
html[lang="de"][data-lang="de"] body#de-site-page
  main#main-content:is(.observer-main--hub, .observer-main--channel[data-observer-mode="company"])
  .observer-publication-card :is(h2, h3) > a {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[lang="de"][data-lang="de"] body#de-site-page
  main#main-content.observer-main--hub
  .observer-channel-section--industry .observer-publication-card:first-child .observer-publication-card__summary {
  -webkit-line-clamp: 3 !important;
}

@media (max-width: 760px) {
  html[lang="de"][data-lang="de"] body#de-site-page
    main#main-content.observer-main--hub
    .observer-channel-section--industry .observer-publication-card:first-child .observer-publication-card__summary {
    -webkit-line-clamp: 2 !important;
  }
}

/* Match the English industry-list summary visibility breakpoint. */
@media (max-width: 44.999rem) {
  html[lang="de"][data-lang="de"] body#de-site-page
    main#main-content.observer-main--channel[data-observer-mode="industry"]
    .observer-publication-card__summary {
    display: none !important;
  }
}

/* Match the English 2.35:1 frames: fill the frame with the original focal point.
   Override the broader German contain rule only on these three listing pages. */
html[lang="de"][data-lang="de"] body#de-site-page
  main#main-content:is(.observer-main--hub, .observer-main--channel)
  .observer-publication-card__media {
  min-width: 0 !important;
}

html[lang="de"][data-lang="de"] body#de-site-page
  main#main-content:is(.observer-main--hub, .observer-main--channel)
  .observer-publication-card__media img {
  object-fit: cover !important;
  background: #edf1ef !important;
}
