<div id="nextSaturdayInfo"></div>

<script>
    function getNextSaturday() {
        const today = new Date();
        let nextSaturday = new Date(today);
        nextSaturday.setDate(today.getDate() + (6 - today.getDay() + 7) % 7);
        nextSaturday.setHours(10, 0, 0);

        if (today > nextSaturday) {
            nextSaturday.setDate(nextSaturday.getDate() + 7);
        }

        const options = { year: 'numeric', month: '2-digit', day: '2-digit' };
        const webinarDate = new Intl.DateTimeFormat('de-DE', options).format(nextSaturday);
        const webinarTime = `${nextSaturday.getHours()}:${nextSaturday.getMinutes()} Uhr`;

        document.getElementById('nextSaturdayInfo').innerHTML = `${webinarDate}<br>Samstag ${webinarTime}`;
    }

    getNextSaturday();
</script>
<div id="nextWednesdayInfo"></div>

<script>
    function getNextWednesday() {
        const today = new Date();
        let nextWednesday = new Date(today);
        nextWednesday.setDate(today.getDate() + (3 - today.getDay() + 7) % 7);
        nextWednesday.setHours(20, 0, 0);

        if (today > nextWednesday) {
            nextWednesday.setDate(nextWednesday.getDate() + 7);
        }

        const options = { year: 'numeric', month: '2-digit', day: '2-digit' };
        const webinarDate = new Intl.DateTimeFormat('de-DE', options).format(nextWednesday);
        const webinarTime = `${nextWednesday.getHours()}:${nextWednesday.getMinutes()} Uhr`;

        document.getElementById('nextWednesdayInfo').innerHTML = `${webinarDate}<br>Mittwoch ${webinarTime}`;
    }

    getNextWednesday();
</script>