/* Schrift und Farben kommen vom Theme (Divi); hier nur Abstände und der Rahmen um "Weitere Gottesdienste". */

.mgd-gottesdienst {
    margin-bottom: 1.25em;
}

.mgd-weitere {
    border: 2px solid currentColor;
    padding: 20px;
    margin-top: 30px;
}

.mgd-weitere-titel {
    margin-top: 0;
}

/* Divi setzt unter Listen im Beitrag einen eigenen Abstand; im Kasten soll unten so viel Luft sein wie oben. */
.mgd .mgd-weitere .mgd-liste {
    padding-bottom: 0;
    margin-bottom: 0;
}

.mgd .mgd-liste li {
    margin-bottom: 0.25em;
}

.mgd .mgd-liste li:last-child {
    margin-bottom: 0;
}

.mgd a {
    overflow-wrap: anywhere;
}

.mgd a:focus-visible,
a.mgd-naechster:focus-visible,
.mgd-live a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Abgesagt: durchgestrichen und zusätzlich als Text "fällt aus", damit es nicht nur an Farbe oder Strich hängt. */
.mgd-abgesagt del {
    text-decoration-thickness: 1px;
}

.mgd-faellt-aus {
    color: #b3261e;
    white-space: nowrap;
}

/* "Gleich live" / "Jetzt live" */
.mgd-live {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25em 0.5em;
    margin: 0 0 1.25em;
    padding: 12px 16px;
    border-left: 4px solid #c4161c;
    background: #fdecea;
    color: #1f1f1f;
}

.mgd-live a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.mgd-live-punkt {
    flex: none;
    width: 0.7em;
    height: 0.7em;
    border-radius: 50%;
    background: #c4161c;
    animation: mgd-puls 1.6s ease-in-out infinite;
}

@keyframes mgd-puls {
    50% {
        opacity: 0.35;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mgd-live-punkt {
        animation: none;
    }
}

/* [letzter_livestream]: Vorschaubild mit Knopf, nach dem Klick der Player im selben Format */
.mgd-player-start,
.mgd-player-video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #1f1f1f;
}

.mgd-player-bild {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mgd-player-knopf {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: calc(100% - 24px);
    padding: 12px 18px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    line-height: 1.3;
    text-align: left;
}

.mgd-player-knopf small {
    display: block;
    font-size: 0.8em;
    opacity: 0.85;
}

.mgd-player-symbol {
    font-size: 1.6em;
    line-height: 1;
}

.mgd-player-start:hover .mgd-player-knopf,
.mgd-player-start:focus-visible .mgd-player-knopf {
    background: #000;
}

.mgd .mgd-player-start:focus-visible {
    outline: 3px solid #c4161c;
    outline-offset: 2px;
}

.mgd-player-titel {
    margin-top: 0.5em;
}

/* [livestream_bild] */
.mgd-bild {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    .mgd-weitere {
        padding: 14px;
    }

    .mgd-player-knopf {
        gap: 8px;
        padding: 8px 10px;
        font-size: 0.85em;
    }
}
