/* Shared sidebar labels. The body prefix overrides Haltern's older inline rule
 * on the same pseudo-element, so it cannot produce a second label. */
body .vc_widget_sidebar .dfad::before,
body .hm-dfads-desktop-placement .dfad::before,
body .vc_widget_sidebar .ubd-block-ad div:has(> a > img)::before {
    content: "Anzeige";
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    color: #666;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
}

/* Patina's known inline label is replaced only within a labeled sidebar.
 * This also covers cached markup during the content migration.
 * Mobile loop labels are provided by their existing placement wrapper.
 */
body .vc_widget_sidebar .dfad > .hm-patina-sidebar-ad > div:first-child,
body .hm-dfads-desktop-placement .dfad > .hm-patina-sidebar-ad > div:first-child {
    display: none;
}

/* Existing TagDiv image-ad title in the narrow article sidebar (Haltern).
 * Reuse the real label instead of adding another pseudo-element. */
body .vc_column_inner.td-pb-span3 .td-a-rec .td-adspot-title,
body .vc_widget_sidebar .td-a-rec .td-adspot-title {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    color: #666;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-align: center;
    text-transform: none;
}

/* Keep each title centered over its banner when the image is narrower than
 * the mobile sidebar. Intrinsic banner dimensions remain unchanged. */
body .vc_widget_sidebar .dfad,
body .hm-dfads-desktop-placement .dfad,
body .vc_widget_sidebar .ubd-block-ad div:has(> a > img) {
    width: fit-content;
    max-width: 100%;
}
