/*
 * Final BSZHM frontend adjustments.
 *
 * This file is loaded after Bootstrap and the legacy compatibility styles.
 * It restores the TYPO3 13 production typography and provides the frame
 * spacing rules that are normally supplied by the full Bootstrap theme.
 */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../Fonts/Roboto-Latin-Variable.woff2") format("woff2");
}

h1,
h2,
h3,
h4,
h5,
.h1,
.h2,
.h3,
.h4,
.h5,
.element-header.h1,
.element-header.h2,
.element-header.h3,
.element-header.h4,
.element-header.h5 {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
}

.news-list-item h3,
.news-list-item h3 a,
.news-list-view h3,
.news-list-view h3 a,
.news-latest-container h3,
.news-latest-container h3 a,
.news-single h1 {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
}

.news-list-item .lead,
.news-list-view .lead,
.news-single .lead {
    color: #212529;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
}

.news-list-item .lead p,
.news-list-view .lead p,
.news-single .lead p {
    color: #212529;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
}

.frame-space-before-none {
    margin-top: 0;
}

.frame-space-before-extra-small {
    margin-top: 1rem;
}

.frame-space-before-small {
    margin-top: 1.5rem;
}

.frame-space-before-medium {
    margin-top: 2rem;
}

.frame-space-before-large {
    margin-top: 2.5rem;
}

.frame-space-before-extra-large {
    margin-top: 3rem;
}

.frame-space-after-none {
    margin-bottom: 0;
}

.frame-space-after-extra-small {
    margin-bottom: 1rem;
}

.frame-space-after-small {
    margin-bottom: 1.5rem;
}

.frame-space-after-medium {
    margin-bottom: 2rem;
}

.frame-space-after-large {
    margin-bottom: 2.5rem;
}

.frame-space-after-extra-large {
    margin-bottom: 3rem;
}

/*
 * The technical News detail content element carries a legacy
 * "extra-large" value. TYPO3 13 did not turn it into a visible top margin.
 */
.frame-type-news_newsdetail.frame-space-before-extra-large {
    margin-top: 0;
}

/*
 * Lists have their own 20px bottom margin. Remove it only when an HTML
 * content element follows directly, so both columns use the same spacing.
 */
.frame-type-bullets:has(+ .frame-type-html) .frame-inner > ul,
.frame-type-bullets:has(+ .frame-type-html) .frame-inner > ol,
.frame-type-bullets:has(+ .frame-type-html) .frame-inner > dl {
    margin-bottom: 0;
}

/*
 * TYPO3 frame spacing controls the distance between content elements.
 * Bootstrap's additional figure margin would otherwise add another 16px
 * below locally hosted videos.
 */
.frame-type-textmedia figure.video {
    margin-bottom: 0;
}

/*
 * Direct MP4 files hosted on an external web server.
 */
.bszhm-external-video {
    width: 100%;
}

.bszhm-external-video__stage {
    position: relative;
}

.bszhm-external-video video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    background: #000;
}

.bszhm-external-video__start {
    position: absolute;
    inset: 0 0 64px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bszhm-external-video__start[hidden] {
    display: none;
}

.bszhm-external-video__start:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: -3px;
}

.bszhm-external-video__privacy {
    margin: 0.5rem 0 0;
    color: #555;
    font-size: 0.875rem;
    line-height: 1.4;
}

.bszhm-external-video__text {
    margin-top: 1rem;
}

/*
 * Borderless TYPO3 image elements on the homepage.
 * TYPO3 omits the usual frame wrapper for "No frame". Keep the PhotoSwipe
 * hover hint independent from that wrapper and only apply it to lightbox links.
 */
.bszhm-home-sidebar .gallery-item figure.image > a.lightbox[rel^="lightbox"] {
    display: block;
    position: relative !important;
    width: 100%;
    max-width: 100%;
    border: 0;
    box-shadow: none;
    text-decoration: none;
    line-height: 0;
    background: transparent;
    overflow: hidden;
    cursor: zoom-in;
}

.bszhm-home-sidebar .gallery-item figure.image > a.lightbox[rel^="lightbox"]::after {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    padding: 8px 14px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    content: "vergr\00F6\00DF ern";
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.bszhm-home-sidebar .gallery-item figure.image > a.lightbox[rel^="lightbox"]:hover::after,
.bszhm-home-sidebar .gallery-item figure.image > a.lightbox[rel^="lightbox"]:focus::after,
.bszhm-home-sidebar .gallery-item figure.image > a.lightbox[rel^="lightbox"]:focus-visible::after {
    opacity: 1;
}
