/* =============================================================================
   Hintergrundvideo: Knopf zum Anhalten (inc/wbg-hintergrundvideo.php)
   Wird nur auf Seiten mit einem Bricks-Hintergrundvideo geladen.

   Der Knopf sitzt unten rechts in der Sektion, ueber Video und Inhalt. Er muss
   auf jedem Bild des Videos erkennbar sein, darum eine helle Scheibe mit
   dunklem Zeichen statt einer Farbe, die nur auf dunklem Grund traegt:
   #19502F auf #FDFCFB hat 9,2:1, die Scheibe selbst hebt sich mit Schatten ab.
   ============================================================================= */

.wbg-hintergrundvideo__knopf {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: #19502f;
    background: #fdfcfb;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    cursor: pointer;
    transition: transform .15s ease;
}

.wbg-hintergrundvideo__knopf svg {
    display: block;
    width: 20px;
    height: 20px;
}

.wbg-hintergrundvideo__knopf:hover {
    transform: scale(1.06);
}

/* Zwei Ringe, dunkel innen und hell aussen: das Video darunter wechselt
   zwischen hellen und dunklen Bildern, ein einzelner Ring waere auf einem
   davon unsichtbar. Die transparente Kontur zeigt der Modus fuer hohen
   Kontrast von Windows an, dort faellt box-shadow weg. */
.wbg-hintergrundvideo__knopf:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 4px;
    box-shadow: 0 0 0 3px #19502f, 0 0 0 6px #fdfcfb;
}

@media (max-width: 640px) {
    .wbg-hintergrundvideo__knopf {
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wbg-hintergrundvideo__knopf { transition: none; }
    .wbg-hintergrundvideo__knopf:hover { transform: none; }
}
