/*
 * Ergänzungen zur übernommenen Theme-CSS (main.css + modular/*.css bleiben unverändert).
 * Nur für Dinge, die es auf der Grav-Seite nicht gab: Video-Platzhalter und ALTCHA.
 */

/* --- YouTube 2-Klick-Platzhalter (Startseite) ------------------------------ */

.video-consent {
    background-color: #232323;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.video-consent::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
}

.video-consent-button {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

.video-consent-button:focus-visible .video-consent-play {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

.video-consent-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5.5rem;
    height: 5.5rem;
    margin: -2.75rem 0 0 -2.75rem;
    border-radius: 50%;
    background: #1e5e36;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    transition: transform .2s ease, background-color .2s ease;
}

.video-consent-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -.9rem 0 0 -.5rem;
    border-style: solid;
    border-width: .9rem 0 .9rem 1.5rem;
    border-color: transparent transparent transparent #fff;
}

.video-consent-button:hover .video-consent-play {
    transform: scale(1.06);
    background: #164428;
}

.video-consent-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .75rem 1rem;
    font-size: .8125rem;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
}

.video-consent-note a {
    color: #fff;
    text-decoration: underline;
    pointer-events: auto;
}

@media (max-width: 35.99875rem) {
    .video-consent-play {
        width: 4rem;
        height: 4rem;
        margin: -2rem 0 0 -2rem;
    }

    .video-consent-note {
        font-size: .6875rem;
        padding: .5rem;
    }
}

/* --- ALTCHA-Widget im Kontaktformular ------------------------------------- */

.contact .altcha-row {
    --altcha-border-width: 0;
    --altcha-border-radius: 0;
    --altcha-color-base: hsla(0, 0%, 100%, .8);
    --altcha-color-border: transparent;
    --altcha-color-border-focus: #1e5e36;
    --altcha-color-text: #232323;
    --altcha-color-error-text: #fc3e2f;
    --altcha-color-footer-bg: transparent;
}

/* .contact input aus contact.css (volle Breite, Polsterung) nicht auf das Widget anwenden */
.contact .altcha-row input {
    width: auto;
    padding: 0;
    background: none;
    accent-color: #1e5e36;
}

.contact .altcha-row:not(:has(*)) {
    display: none;
}

/* Fehlermeldung im gleichen Rahmen wie die Erfolgsmeldung aus contact.css */
#contact .notices.red {
    margin: 40px;
    padding: 20px;
}

#contact .notices.red p {
    font-weight: 700;
    margin: 0 0 .5rem;
}

#contact .notices.red ul {
    margin: 0;
    padding-left: 1.25rem;
}
