/*
 * Image film: round teaser ("Störer") in the start page hero and the film dialog.
 * Separate file because the SCSS sources in build/ no longer reproduce styles.min.css.
 * Loaded only where the partial Page/ImageFilm.html is rendered (f:asset.css).
 */

.hero-wrapper {
    position: relative;
}

/* Teaser: top right in the hero, aligned with the container edge (.container: 90 %).
   On xl the fixed .header-contact box (241px wide, right edge, 50 % viewport height) takes the right edge,
   so the teaser moves left of it to stay clear on every viewport height. */
.film-badge {
    position: absolute;
    top: 1rem;
    right: 5%;
    z-index: 8; /* below the fixed .header-contact (z-index 9) */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background: #b29f51;
    color: #323233;
    font-family: "Playfair Display", serif;
    font-size: 0.85rem;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 0 0 0.3rem rgba(178, 159, 81, 0.35), 0 0.5rem 1.5rem rgba(9, 9, 9, 0.4);
    transition: transform 300ms cubic-bezier(0.3, 0, 0.3, 0.9), box-shadow 300ms cubic-bezier(0.3, 0, 0.3, 0.9);
}

.film-badge:hover {
    color: #323233;
    transform: scale(1.06);
    box-shadow: 0 0 0 0.45rem rgba(178, 159, 81, 0.45), 0 0.5rem 1.5rem rgba(9, 9, 9, 0.4);
}

.film-badge:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 0.6rem;
}

.film-badge__icon {
    width: 1.3em;
    height: 1.3em;
    margin-bottom: 0.25em;
    fill: currentColor;
}

@media (min-width: 768px) {
    .film-badge {
        top: 2rem;
        width: 7.5rem;
        height: 7.5rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 1290px) {
    .film-badge {
        top: 2.5rem;
        right: calc(241px + 2.5rem);
        width: 8rem;
        height: 8rem;
        font-size: 1.2rem;
    }
}

/* Film dialog */
.film-dialog {
    width: min(90vw, 1280px, calc((100vh - 7rem) * 16 / 9));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.film-dialog::backdrop {
    background: rgba(9, 9, 9, 0.88);
}

.film-dialog__inner {
    position: relative;
}

.film-dialog__video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #090909;
}

.film-dialog__close {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #b29f51;
    color: #323233;
    cursor: pointer;
    transition: transform 300ms cubic-bezier(0.3, 0, 0.3, 0.9);
}

.film-dialog__close svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.film-dialog__close:hover {
    transform: scale(1.08);
}

.film-dialog__close:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .film-badge,
    .film-dialog__close {
        transition: none;
    }

    .film-badge:hover,
    .film-dialog__close:hover {
        transform: none;
    }
}
