.pw-video { width: min(calc(100% - 2rem), 64rem); margin-inline: auto; padding-block: 2rem; }
/* Article bodies already provide the intended reading width. Avoid applying the
   component's standalone inline gutter for videos embedded directly in them. */
.pw-article__body > .pw-video { width: 100%; max-width: none; margin-inline: 0; }
.pw-video__frame { position: relative; display: grid; place-items: center; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0.75rem; background: #000; color: #fff; box-shadow: 0 1rem 3rem rgb(7 25 39 / 14%); }
.pw-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pw-video--original-cover .pw-video__poster { object-fit: contain; }
.pw-video__activate { position: relative; z-index: 1; padding: .75rem 1.25rem; border: 2px solid #fff; border-radius: .4rem; background: #071927; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pw-video__activate:hover, .pw-video__activate:focus-visible { background: #fff; color: #071927; }
.pw-video__activate:focus-visible { outline: 3px solid #005ca9; outline-offset: 3px; }
.pw-video__notice { position: absolute; z-index: 1; inset-inline: 1rem; bottom: .5rem; margin: 0; padding: .4rem .6rem; background: rgb(7 25 39 / 90%); color: #fff; font-size: .85rem; text-align: center; }
.pw-video__target { width: 100%; height: 100%; }
.pw-video__target:empty { display: none; }
.pw-video__media { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; object-fit: contain; }
.pw-video figcaption { margin-top: 0.75rem; color: #4d6270; }
.pw-video__youtube { position: absolute; z-index: 4; top: 50%; right: clamp(.4rem,1vw,.75rem); display: inline-flex; align-items: center; justify-content: flex-end; height: 48px; min-width: 48px; overflow: hidden; border: 1px solid rgb(255 255 255 / 72%); border-radius: .45rem; color: #fff; background: rgb(16 16 16 / 82%); box-shadow: 0 .2rem .8rem rgb(0 0 0 / 38%); text-decoration: none; translate: 0 -50%; transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.pw-video__youtube:is(:hover,:focus-visible) { color: #fff; background: rgb(16 16 16 / 96%); border-color: #fff; box-shadow: 0 .3rem 1rem rgb(0 0 0 / 52%); text-decoration: none; }
.pw-video__youtube:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pw-video__youtube-label { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; font: 700 .82rem/1.2 "Nunito Sans",sans-serif; translate: .45rem 0; transition: max-width 180ms ease, opacity 160ms ease, padding 180ms ease, translate 180ms ease; }
.pw-video__youtube:is(:hover,:focus-visible) .pw-video__youtube-label { max-width: 12rem; padding-left: .85rem; opacity: 1; translate: 0 0; }
.pw-video__youtube-icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; }
.pw-video__youtube-icon img { display: block; width: 28px; height: 28px; }
.pw-article-hero .pw-video__youtube { right: clamp(3rem,5.5vw,6.5rem); }
/* The aspect ratio must be allowed to shrink below 192px at narrow widths.
   Keep the consent button and notice apart before activating the player. */
@media (max-width: 35rem) {
    .pw-video .pw-video__notice { font-size: .75rem; line-height: 1.35; }
    .pw-video__activate { align-self: start; margin-top: .75rem; }
}


/* Same circular play overlay as the Mediathek, with the accessible text retained. */
.pw-video__activate { width: clamp(4rem,17vw,14rem); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: #0009; font-size: 0; align-self: center; margin: 0; }
.pw-video__activate::after { content: ''; display: block; width: 0; height: 0; border-block: clamp(.8rem,2.8vw,2.4rem) solid transparent; border-left: clamp(1.3rem,4.7vw,4rem) solid white; margin: auto; transform: translateX(12%); }
.pw-video__activate:hover, .pw-video__activate:focus-visible { background: #000c; color: #fff; }

@media (hover: none), (pointer: coarse) {
    .pw-video__youtube-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pw-video__youtube,
    .pw-video__youtube-label { transition: none; }
}
