/* Patient page (single-patienten.php): theme-side rules, loaded after patient.elh-ds.min.css. Not vendored from the
   design repo (design/patienten/template/patient.css is the vendored part).

   A. The theme's inline critical CSS (inc/critical-css.php) styles bare elements (section, header, p, li, a, h1–h6,
      :target). The scoped core only resets font and link colour on .elh-ds, so those rules leak into the page.
      Specificity here is 0,2,x: above the theme's element rules, below every core/patient rule (0,3,0 and up),
      so Daniel's explicit values keep winning. Same approach as elh/blog/blog-theme.css. */
.elh-ds .pt-seite :target { padding-top: 0; }                                   /* :target{padding-top:12rem} */
.elh-ds .pt-seite section:not(.elh-section) { padding-block: 0; }               /* section{padding-block:var(--spacing-block)} */
.elh-ds .pt-seite :is(p, li, dt, dd, td, th, blockquote, figcaption) { font-size: inherit; line-height: inherit; font-weight: inherit; }
.elh-ds .pt-seite a { font-size: inherit; line-height: inherit; font-weight: inherit; }
.elh-ds .pt-seite :is(h1, h2, h3, h4, h5, h6) { font-family: inherit; }         /* h1–h6{font-family:Sofia Pro;font-weight:900} */
.elh-ds .pt-seite section header { display: block; gap: 0; padding-bottom: 0; } /* section header{display:flex;gap:3rem;padding-bottom:1rem} */
.elh-ds .pt-seite :is(.pt-brotkrumen, .pt-cta-notiz, .s-vn__facts, .pt-kanal) a { text-decoration: none; } /* section a:not(.btn){text-decoration:underline} */
.elh-ds .pt-seite .pt-artikel__text a { text-decoration: underline; }
.elh-ds .pt-seite .pt-artikel__text :is(ul, ol) { margin: 0 0 18px; padding-inline-start: 22px; }
.elh-ds .pt-seite .pt-artikel__text li { margin-bottom: 6px; }

/* B. Inline video player (elh/patient/patient.min.js replaces the poster link with an iframe or <video>). */
/* The player fills the box the poster had and never changes its width (the core sizes .m-editorial__media:
   4/5 or 4/3 below 1024 px, the grid column with a stretched height from 1024 px). Below 1024 px the box turns 16:9
   so the player has no black bars. */
.elh-ds .pt-seite .pt-video { position: relative; min-width: 0; }
.elh-ds .pt-seite .pt-video--spielt, .elh-ds .pt-seite .pt-video:has(> video) { background: #00264f; overflow: hidden; }
.elh-ds .pt-seite .pt-video__player,
.elh-ds .pt-seite .pt-video > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; object-fit: contain; aspect-ratio: auto; }
@media (max-width: 1023.98px) {
  .elh-ds .pt-seite .pt-video--spielt, .elh-ds .pt-seite .pt-video:has(> video) { aspect-ratio: 16 / 9; }
}

/* C. Channel chips: icons from the media library may be large SVG/PNG files. */
.elh-ds .pt-seite .pt-kanal img { width: 18px; height: 18px; object-fit: contain; }

/* D. RTL (AR): the vendored patient CSS aligns the hero card and the KPI dividers with physical left. */
@media (min-width: 768px) {
  .elh-ds.elh-ds[dir=rtl] .pt-hero .pt-hero__karte { text-align: right; }
  .elh-ds.elh-ds[dir=rtl] .m-kfz__kz + .m-kfz__kz { border-left: 0; border-right: 1px solid rgba(255, 255, 255, .18); }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .elh-ds.elh-ds[dir=rtl] .m-kfz--n4.m-kfz--band-text .m-kfz__kz:nth-child(3) { border-right: 0; }
}

/* E. "Ähnliche Ergebnisse": the whole card links to the patient (Amer, 3 Nov 2026). One link per card (the name), stretched
   over the card with ::after, so screen readers still hear a single link; hover lifts the card and underlines the name. */
.elh-ds .pt-seite .pt-aehnlich__karte { position: relative; transition: transform .2s, box-shadow .2s; }
.elh-ds .pt-seite .pt-aehnlich__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.elh-ds .pt-seite .pt-aehnlich__karte:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 38, 82, .12); }
.elh-ds .pt-seite .pt-aehnlich__karte:hover .pt-aehnlich__link,
.elh-ds .pt-seite .pt-aehnlich__link:focus-visible { text-decoration: underline; }
.elh-ds .pt-seite .pt-aehnlich__link:focus-visible { outline: none; }
.elh-ds .pt-seite .pt-aehnlich__karte:has(.pt-aehnlich__link:focus-visible) { outline: 2px solid var(--elh-blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .elh-ds .pt-seite .pt-aehnlich__karte { transition: none; } .elh-ds .pt-seite .pt-aehnlich__karte:hover { transform: none; } }
