/* Stendel & Peitzmeier | cinema.css | formatiert, Deklarationen unverändert. */
/* The service view keeps the entire film visible and moves controls out of it. */

.stage {
    background: #0b0d0d;
    overflow: clip;
}

body.cinema-active {
    overflow-anchor: none;
}

.cinema-topbar {
    display: contents;
}

.playback-meta {
    display: none;
}

.stage>.hero.live {
    --cinema-width: min(100%,1120px,calc(60svh * 16 / 9));
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 20px clamp(16px,4vw,72px) 28px;
    background: radial-gradient(ellipse at 50% 0,#252a2a 0,#111414 63%,#0d1010 100%);
}

.hero.live .hero-copy,.hero.live .frame,.hero.live .rail,.hero.live:after {
    display: none;
}

.hero.live .cinema-topbar {
    order: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: var(--cinema-width);
    padding: 0 0 14px;
}

.hero.live #back {
    position: static;
    inset: auto;
    min-height: 36px;
    padding: 9px 12px;
    font-size: 10px;
    letter-spacing: .6px;
    border-color: #555d5c;
    background: #171c1b;
    white-space: nowrap;
}

.hero.live .viewtag {
    position: static;
    inset: auto;
    padding: 0;
    border: 0;
    background: none;
    font-size: 9px;
    letter-spacing: 1px;
    color: #aeb8b3;
    text-align: right;
}

.hero.live .viewtag i {
    width: 5px;
    height: 5px;
    flex: none;
}

.hero.live .visual {
    order: 1;
    position: relative;
    inset: auto;
    width: var(--cinema-width);
    height: auto;
    aspect-ratio: 16/9;
    margin: 0;
    z-index: 0;
    overflow: hidden;
    background: #060808;
    border: 1px solid #3e4743;
    border-bottom: 0;
    box-shadow: 0 18px 70px #0006;
}

.hero.live .visual img,.hero.live .visual video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: none;
    transform: none;
}

.hero.live .hud {
    order: 2;
    position: static;
    inset: auto;
    z-index: 1;
    width: var(--cinema-width);
    margin: 0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    border: 1px solid #3e4743;
    border-top: 1px solid #303936;
    background: #151b19;
}

.hero.live .hud .model,.hero.live .hud .rule {
    display: none;
}

.hero.live .hud button {
    flex: none;
    width: 40px;
    height: 40px;
    min-height: 40px;
    border: 1px solid #58615d;
    background: #1b2320;
    color: #f4f5f2;
}

.hero.live .hud button:hover {
    background: #303a35;
    border-color: #aeb9b2;
}

.hero.live .hud #expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 9px;
    padding: 0 13px;
}

.hero.live .hud #expand:after {
    content: "Vollbild";
    font-size: 12px;
    font-weight: 600;
}

.hero.live .playback-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px 24px;
    flex: 1;
    min-width: 0;
    max-width: 580px;
    margin-right: auto;
    padding-right: 20px;
}

.playback-status {
    font-size: 12px;
    color: #c0cbc4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playback-clock {
    font: 11px/1.4 monospace;
    letter-spacing: .4px;
    color: #aebcb2;
    white-space: nowrap;
}

.playback-meta progress {
    display: block;
    grid-column: 1/-1;
    appearance: none;
    width: 100%;
    height: 3px;
    padding: 0;
    border: 0;
    background: #39423d;
    color: #e31b23;
    accent-color: #e31b23;
}

.playback-meta progress::-webkit-progress-bar {
    background: #39423d;
}

.playback-meta progress::-webkit-progress-value {
    background: #e31b23;
}

.playback-meta progress::-moz-progress-bar {
    background: #e31b23;
}

.hero.live .scene-caption {
    order: 3;
    position: static;
    inset: auto;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    width: var(--cinema-width);
    max-width: none;
    margin: 0;
    padding: 22px 0 0;
    text-shadow: none;
    background: none;
}

.cinema-description {
    flex: 1;
    min-width: 0;
}

.scene-caption .cinema-description small {
    font-size: 9px;
    letter-spacing: 2px;
    color: #ff5c61;
}

.hero.live .scene-caption h2 {
    font-size: clamp(25px,2.5vw,38px);
    line-height: 1.08;
    margin: 6px 0 0;
    letter-spacing: -.8px;
}

.cinema-description p {
    max-width: 760px;
    margin: 9px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #b5c0b9;
}

.cinema-action {
    flex: none;
    display: grid;
    justify-items: end;
    gap: 10px;
    min-width: 205px;
}

.cinema-price {
    font-size: 13px;
    font-weight: 600;
    color: #c9d2cc;
}

.scene-caption .cinema-action a.btn {
    padding: 14px 20px;
    min-height: 46px;
    font-size: 13px;
    text-decoration: none;
    color: #fff;
}

.stage:fullscreen,.stage.expanded {
    background: #090c0a;
    overflow-y: auto;
}

.stage:fullscreen>.hero.live,.stage.expanded>.hero.live {
    --cinema-width: min(100%,max(320px,calc((100dvh - 225px) * 16 / 9)));
    height: auto;
    min-height: 100dvh;
}

.stage:fullscreen .cinema-description p,.stage.expanded .cinema-description p,
.stage:fullscreen .cinema-price,.stage.expanded .cinema-price {
    display: none;
}

.stage:fullscreen .scene-caption,.stage.expanded .scene-caption {
    padding-top: 15px;
}

.stage:fullscreen .scene-caption h2,.stage.expanded .scene-caption h2 {
    font-size: 26px;
}

@media (max-width:760px) {
    .hero.live .scene-caption {
        gap: 20px;
        align-items: flex-start;
    }

    .cinema-action {
        min-width: 175px;
    }

    .scene-caption .cinema-action a.btn {
        padding: 13px 15px;
        font-size: 12px;
    }

    .cinema-description p {
        font-size: 13px;
    }
}

@media (max-width:560px) {
    .stage>.hero.live {
        padding: 14px 14px 24px;
        --cinema-width: 100%;
    }

    .hero.live .cinema-topbar {
        flex-wrap: wrap;
        gap: 10px;
        padding-bottom: 12px;
    }

    .hero.live #back {
        font-size: 9px;
        min-height: 34px;
    }

    .hero.live .viewtag {
        font-size: 8px;
        letter-spacing: .5px;
        margin-left: auto;
    }

    .hero.live .hud {
        gap: 7px;
        padding: 10px;
    }

    .hero.live .hud button {
        width: 36px;
        height: 38px;
        min-height: 38px;
    }

    .hero.live .hud #expand {
        gap: 5px;
        padding: 0 9px;
    }

    .hero.live .hud #expand:after {
        font-size: 10px;
    }

    .hero.live .playback-meta {
        padding-right: 5px;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .playback-status {
        display: none;
    }

    .playback-clock {
        font-size: 10px;
    }

    .hero.live .scene-caption {
        display: grid;
        gap: 18px;
        padding-top: 20px;
    }

    .hero.live .scene-caption h2 {
        font-size: 27px;
    }

    .cinema-action {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        width: 100%;
    }

    .cinema-price {
        font-size: 12px;
        max-width: 44%;
    }

    .scene-caption .cinema-action a.btn {
        font-size: 11px;
        min-height: 42px;
    }

    .stage:fullscreen>.hero.live,.stage.expanded>.hero.live {
        --cinema-width: 100%;
    }
}

@media (prefers-reduced-motion:reduce) {
    .stage {
        overflow: visible;
    }
}

/* Servicevideos 2026-11: responsive 16:9 viewing, never forced fullscreen. */
.hero.live .cinema-media-hint:not([hidden]) {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 16px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #f4f5f2;
    background: #101615e6;
    border: 1px solid #65726b;
    border-radius: 4px;
    pointer-events: none;
}
.hero.live .hud .playback-meta[hidden],
.hero.live .hud button[hidden],
.hero.live .visual .cinema-media-hint[hidden] { display: none !important; }
@media (max-width:560px) {
    /* Full-bleed 16:9 video: ~219px tall on a 390px phone, plenty of screen remains. */
    .hero.live .visual,
    .hero.live .hud {
        width: calc(100% + 28px);
        max-width: none;
        margin-inline: -14px;
        border-left: 0;
        border-right: 0;
    }
    .hero.live .visual { flex: none; }
    .hero.live .hud { padding-inline: 14px; }
    .hero.live .cinema-media-hint:not([hidden]) { left: 14px; bottom: 14px; }
}
/* A deliberate click on a service is user-initiated playback, even if
   reduced motion is enabled. Only the decorative transitions are removed. */
@media (prefers-reduced-motion:reduce) {
    .hero.live .visual video:not([hidden]) { display: block !important; }
}

.hero.live .hud .cinema-audio{width:auto;min-width:66px;padding:0 10px;font-size:11px;white-space:nowrap}
@media (max-width:380px){.hero.live .hud .cinema-audio{min-width:58px;padding:0 7px;font-size:10px}}

/* v22.2: MOTD is only on the workshop home view. The transition is image-only. */
.stage>.hero:not(.live) .hero-copy { z-index: 3; isolation: isolate; }
.stage>.hero:not(.live) .hero-copy::before {
 content: ""; position: absolute; z-index: -1;
 inset: -16px -20px; border-radius: 12px;
 background: linear-gradient(90deg,rgba(10,14,14,.44),rgba(10,14,14,.22) 74%,transparent);
 -webkit-backdrop-filter: none; backdrop-filter: none;
 pointer-events: none;
}
.stage.cinema-open .home-dissolve .hero-copy,
.stage>.hero.live .hero-copy { display: none !important; }
.stage>.hero.live .visual { z-index: 0; }
.stage>.hero.live .visual video:not([hidden]) { z-index: 2; filter: none; }
.hero.live .cinema-details-link {
 display: inline-flex; align-items: center; justify-content: center;
 min-height: 37px; padding: 6px 8px; color: #fff; font-weight: 700;
 font-size: 13px; text-decoration: underline; text-underline-offset: 4px;
}
.hero.live .cinema-details-link:hover { color: #ff6a70; }
.service-related-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin: 16px 0 4px; font-size: 14px; }
.service-related-links span { color: #c1c9c4; }
.service-related-links a { color: #f7f7f5; text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:560px) { .hero:not(.live) .hero-copy::before { inset: -8px -10px; border-radius: 9px; } .hero.live .cinema-details-link { font-size: 12px; } }

/* Service-Aktionen: zwei gleichwertige rote Schaltflächen nebeneinander. */
.hero.live .cinema-action {width:auto;min-width:0;max-width:100%;justify-items:start;}
.hero.live .cinema-buttons {display:flex;flex-wrap:wrap;gap:10px;align-items:stretch;justify-content:flex-end;}
.hero.live .cinema-buttons a.btn,.hero.live .cinema-buttons a.cinema-details-link {
 display:inline-flex;align-items:center;justify-content:center;min-height:46px;
 padding:12px 18px;color:#fff;background:#ed1c27;border:1px solid #ed1c27;
 border-radius:3px;font-size:13px;font-weight:800;text-decoration:none;white-space:normal;text-align:center;
}
.hero.live .cinema-buttons a.btn:hover,.hero.live .cinema-buttons a.btn:focus-visible {
 background:#b90f1a;border-color:#b90f1a;color:#fff;
}
@media(max-width:560px){.hero.live .cinema-action{display:grid;width:100%;justify-items:stretch;}
 .hero.live .cinema-buttons {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 .hero.live .cinema-buttons a.btn {font-size:11px;padding:10px 8px;min-height:46px;}
}

/* CSS-Fallback für Safari vor aspect-ratio/min()/svh-Unterstützung. */
@supports not (aspect-ratio: 16 / 9) {
 .stage>.hero.live {padding:20px 16px 28px;}
 .hero.live .cinema-topbar,.hero.live .visual,.hero.live .hud,.hero.live .scene-caption {width:100%;max-width:1120px;}
 .hero.live .visual {height:56.25vw;max-height:630px;min-height:180px;}
}
