/* ===========================================================================
 * FILMBUEHNE: NIE WEISS (Vorhaben 228, 05.10.2026)
 *
 * GEMESSEN: Bis der Film geladen ist, stand die Buehne weiss - die weisse
 * Schrift darauf war unlesbar. Zwei Massnahmen, beide noetig:
 *   1. poster (Standbild, ViewHelper w:standbild) - das erste Bild steht sofort.
 *   2. Darunter der dunkle Grund in Dunkelblau (CD-Register farben.primaer.
 *      dunkelblau, Marke --color-black-blue) - auch bevor das Standbild da ist
 *      und wenn es fehlt. Weisse Schrift auf Dunkelblau: 14,59 : 1.
 * Gilt fuer beide Filmbuehnen: Buehne mit Film (BuehneFilm.html) und
 * Werksbuehne mit Film (Partials/Standort/Buehne.html) - beide tragen
 * .acf_section--title_video und .title_video.
 * Waechter: p_filmbuehne. Keine Bewegung (G-66), keine neue Farbe (G-03).
 * ======================================================================== */
.acf_section--title.acf_section--title_video .title_video,
.acf_section--title.acf_section--title_video .title_video video {
    background-color: var(--color-black-blue);
}

/* ===========================================================================
 * STARTSEITE: FILMKNOPF BIS 1023 PX UNTER DEM FILM (Vorhaben 810, Entwurf
 * entwurf970 Variante A, Leitung 21.10.2026 22:0x FREIGEGEBEN; aus980)
 *
 * Bis 1023 px (Telefon, Tablet hochkant) steht der Film voll im 16:9-Format
 * oben, der Knopf "Jetzt informieren" in der Buehnenflaeche (Dunkelblau,
 * --color-black-blue) direkt darunter - nicht mehr ueber dem Film. Keine neue
 * Farbe, keine neue Zahl: Polster 1 x --universal-gap, Knopf unveraendert
 * (button--white). Nur CSS, beim ersten Zeichnen fertig - nichts springt.
 * move_video_button_mobile.js nimmt die Startseite (body.home) aus.
 * Andere Filmbuehnen (Werke, Nassbeschichtung) bleiben unveraendert.
 * ======================================================================== */
@media screen and (max-width: 1023px) {
    /* Hoehe ueber die Marke (Koordinator 23.10.2026 04:5x, Weg b; keine Waechter-Ausnahme): bis 1023 px
       traegt die Startseiten-Filmbuehne keine Mindesthoehe - Film 16:9 + Knopf bestimmen sie. Die Marke wird
       NUR an dieser Buehne umgesetzt (nicht in :root, dort steht sie genau einmal - p_buehnenhoehe Regel 1). */
    .home .acf_section--title.acf_section--title_video {
        --buehne-hoehe-start: 0px;
        min-height: var(--buehne-hoehe-start);
        display: flex;
        flex-direction: column;
        background-color: var(--color-black-blue);
    }
    .home .acf_section--title.acf_section--title_video .title_video {
        position: relative;
        height: auto;
        aspect-ratio: 16 / 9;
        z-index: 0;
    }
    .home .acf_section--title.acf_section--title_video .title_video video {
        position: absolute;
        inset: 0;
    }
    .home .acf_section--title.acf_section--title_video .title_text_container {
        margin-top: 0;
        min-height: 0;
        padding-block: var(--universal-gap);
    }
    .home .acf_section--title.acf_section--title_video .title_text { margin-bottom: 0; padding-top: 0; }
    .home .acf_section--title.acf_section--title_video .title_text .button { margin-bottom: 0; }
}

/* ===========================================================================
 * FILMBUEHNE MIT SCHRIFT: LESBAR AUF JEDEM FILMBILD (Vorhaben 2999, Modulpatch p6n_buehne,
 * Entscheidung Frank Nowotny 28.11.2026 19:2x, woertlich: "Mein Favorit ist Version 3a, wobei ich die
 * Inhalte hinter der dunkelblauen Flaeche weich zeichnen wuerde. Das wird die Lesbarkeit noch etwas
 * verstaerken. Fuer die Mobilvariante koennen wir gerne die Schrift auf dunkelblau unter dem Video
 * setzen. In dem Fall die Flaeche 100% deckend.")
 *
 * GEMESSEN 28.11.2026 (buehne_alt_frank, hellste 5 % hinter jeder Zeile, je Sekunde ein Filmbild):
 * weisse Schrift direkt auf dem Film 1,0 bis 2,3 : 1 (Ziel Titel 3 : 1, Dachzeile/Text 4,5 : 1).
 * Gilt fuer Filmbuehnen MIT Schrift (Dachzeile, Titel oder Text); die Startseite (nur Knopf, Text im
 * Film) und die Werksbuehnen (.acf_section--location) bleiben, wie sie sind. Keine neue Farbe
 * (Dunkelblau --dunkel-rgb = --color-black-blue, CD-Register), keine Linie, keine neue Zahl
 * (Abstaende aus --universal-gap, Rundung --rounded-corners wie Kacheln und Kaesten).
 *
 * AB 768 PX (Variante 3a): Dachzeile, Titel, Text und Knopf stehen auf einer kompakten dunkelblauen
 * Plakette (90 % Deckung) an derselben Stelle wie bisher; hinter der Plakette ist der Film weich
 * gezeichnet (backdrop-filter, mit -webkit- fuer Safari). Ohne backdrop-filter (alte Browser) deckt
 * die Plakette etwas mehr (95 %). Ohne :has() (alte Browser) bleibt die Buehne wie bisher.
 * BIS 767 PX (Variante 5b): Film oben im vollen 16:9-Format ohne Schrift, darunter Dachzeile, Titel,
 * Text und Knopf auf 100 % deckendem Dunkelblau - dieselbe Regel wie die Startseite oben (Vorhaben 810,
 * Hoehe ueber die Marke, hier --buehne-hoehe statt --buehne-hoehe-start; p_buehnenhoehe Regel 4).
 * Der Knopf bleibt dabei in der Buehne (weisse Spielart, wie auf der Startseite); move_video_button_mobile.js
 * versetzt ihn nur noch bei Werksbuehnen - nichts springt beim Laden. Die Grenze 767/768 px ist die des
 * Knopf-Skripts (max-width: 767px). Nur CSS, beim ersten Zeichnen fertig.
 *
 * NACHTRAG p6n_buehne2 (29.11.2026, Waechter p_buehne_geschwister991 / p_hero2631, Guss-Teilmessung
 * 20261129-1231): Bis 767 px war die Buehne bisher nur so hoch wie Film 16:9 + Text (Marke an der Buehne
 * auf 0px) - die Hoehe hing an der Textlaenge: 390 px /feuerverzinken de 400,2 px, /sk/kontaktujte-nas
 * 365 px, sonst 445-448 px; beim Wechsel zwischen den Reitern (Services) sprang die Seite darunter.
 * Jetzt traegt auch diese Buehne die Marke --buehne-hoehe wie jede Bildbuehne (Vorhaben 55, 2631;
 * die Bindung .acf_section--title { min-height: var(--buehne-hoehe) } in anpassungen.css gilt wieder).
 * Franks Gestalt bleibt: Schrift unter dem Film auf 100 % deckendem Dunkelblau, direkt unter dem Film;
 * der Film fuellt den Raum darueber (object-fit: cover wie jede Bildbuehne) - kein Leerraum, kein Sprung
 * zwischen Geschwistern. Buehne nur mit Dachzeile/Titel/Knopf: der Film nimmt genau den Rest der Buehne,
 * auch wenn ein langer Titel (390 px /cs, /sk Gittermastbau: Text 279 px) mehr braucht als Buehne minus
 * 16:9 - dann wird der Film flacher, nie flacher als die halbe 16:9-Hoehe (56.25vw / 2, Netz fuer noch
 * laengere Titel). Buehne mit Fliesstext (.title_text > .text, z. B. Nassbeschichtungszentrum): Film
 * bleibt mindestens 16:9 und die Buehne waechst mit dem Text wie bisher (p_hero2631: Hinweis "Text
 * laenger", keine Reitergruppe).
 *
 * NACHTRAG p6s_deckkraft (30.11.2026, Vorhaben 2999, V1.67): Plakette ab 768 px leichter - Deckung 70 %
 * statt 90 % (oben "90 % Deckung"), Rueckfall ohne backdrop-filter 75 % statt 95 %. Entscheidung Frank
 * Nowotny 30.11.2026 15:4x: zuerst "65 %", dann woertlich "Oder ich meinte 70 %". Weichzeichner bleibt
 * 16 px, keine neue Farbe (Dunkelblau --dunkel-rgb), sonst nichts geaendert.
 * GEMESSEN 30.11.2026 (arbeitskopien/buehne_deckkraft/mess/tabelle.txt, hellste 5 % hinter jeder Zeile,
 * schlechtestes Filmbild, 6 Filmseiten x 1024/1440 px): 70 % mit 16 px haelt ueberall die Ziele (Titel 3 : 1,
 * Dachzeile/Text/Knopf 4,5 : 1), knappste Zeile Dachzeile Telekommunikation 5,69 : 1. Rueckfall ohne
 * Weichzeichner (rechnerisch, Plakette ueber dem scharfen Film): bei 70 % schlechtestens 5,67 : 1, bei
 * 75 % schlechtestens 6,63 : 1 (Titel Feuerverzinken 1440) - darum 75 %, kleinstes zulaessiges a 0,63.
 * ======================================================================== */
@media screen and (min-width: 768px) {
    .acf_section--title.acf_section--title_video:not(.acf_section--location):has(.title_text > :is(.headline, .text)) .title_text {
        width: fit-content;
        max-width: 100%;
        box-sizing: border-box;
        padding: var(--universal-gap) calc(var(--universal-gap) * 1.25) calc(var(--universal-gap) * .5);
        background-color: rgb(var(--dunkel-rgb, 0 44 66) / .7);
        border-radius: var(--rounded-corners, 1.5rem);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .acf_section--title.acf_section--title_video:not(.acf_section--location):has(.title_text > :is(.headline, .text)) .title_text {
            background-color: rgb(var(--dunkel-rgb, 0 44 66) / .75);
        }
    }
    .acf_section--title.acf_section--title_video:not(.acf_section--location):has(.title_text > :is(.headline, .text)) .title_text :is(.headline, .text) {
        text-shadow: none;
    }
}
@media screen and (max-width: 767px) {
    body:not(.home) .acf_section--title.acf_section--title_video:not(.acf_section--location) {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background-color: var(--color-black-blue);
    }
    body:not(.home) .acf_section--title.acf_section--title_video:not(.acf_section--location) .title_video {
        position: relative;
        height: auto;
        aspect-ratio: 16 / 9;
        flex: 1 0 auto;
        z-index: 0;
        overflow: hidden;
        overflow: clip;
    }
    body:not(.home) .acf_section--title.acf_section--title_video:not(.acf_section--location):not(:has(.title_text > .text)) .title_video {
        flex: 1 1 0;
        aspect-ratio: auto;
        min-height: calc(56.25vw / 2);
    }
    body:not(.home) .acf_section--title.acf_section--title_video:not(.acf_section--location) .title_video video {
        position: absolute;
        inset: 0;
    }
    body:not(.home) .acf_section--title.acf_section--title_video:not(.acf_section--location) .title_text_container {
        flex: 0 0 auto;
        margin-top: 0;
        min-height: 0;
        padding-block: var(--universal-gap);
    }
    body:not(.home) .acf_section--title.acf_section--title_video:not(.acf_section--location) .title_text { margin-bottom: 0; padding-top: 0; }
    body:not(.home) .acf_section--title.acf_section--title_video:not(.acf_section--location) .title_text :is(.headline, .text) { text-shadow: none; }
    body:not(.home) .acf_section--title.acf_section--title_video:not(.acf_section--location) .title_text .button { margin-bottom: 0; }
}
