/* Webinar-Termin – Frontend
 * Farben kommen als CSS-Variablen aus dem Backend (Webinar → Farben).
 */

/* ---------- Hinweis (überall) ---------- */
.cs-webinar-hinweis {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35em .7em;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
    color: inherit;
    text-decoration: none;
}

.cs-webinar-hinweis__label {
    padding: .25em .6em;
    font-size: .85em;
    line-height: 1.2;
    background: var(--csw-label-bg, #e3c808);
    color: var(--csw-label-text, #225555);
}

.cs-webinar-hinweis__text {
    display: inline-flex;
    align-items: center;
}

a.cs-webinar-hinweis:hover .cs-webinar-hinweis__text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Pulsierender Punkt während des Webinars */
.cs-webinar-hinweis[data-state="live"] .cs-webinar-hinweis__text::before {
    content: "";
    width: .55em;
    height: .55em;
    margin-right: .5em;
    border-radius: 50%;
    background: var(--csw-label-bg, #e3c808);
    animation: csWebinarPulse 1.6s ease-in-out infinite;
}

@keyframes csWebinarPulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: .35; transform: scale(.75); }
}

@media (prefers-reduced-motion: reduce) {
    .cs-webinar-hinweis__text::before { animation: none !important; }
}

/* ---------- Divi Top-Bar ---------- */
#top-header[data-cs-webinar] {
    background-color: var(--csw-bar-bg, #f5f5f5) !important;
    transition: background-color .3s ease;
}

#top-header[data-cs-webinar] #et-info {
    float: none;
    width: 100%;
    text-align: center;
}

#top-header[data-cs-webinar] .cs-webinar-hinweis {
    justify-content: center;
    font-size: 14px;
    color: var(--csw-bar-text, #005467);
    transition: color .3s ease;
}

/* Beim Scrollen (Divi setzt .et-fixed-header) */
#top-header[data-cs-webinar].et-fixed-header {
    background-color: var(--csw-bar-bg-fixed, #005467) !important;
}

#top-header[data-cs-webinar].et-fixed-header .cs-webinar-hinweis {
    color: var(--csw-bar-text-fixed, #ffffff);
}

/* Telefon-/E-Mail-Icon ausblenden */
#et-info-phone[data-cs-webinar],
#et-info-email[data-cs-webinar] {
    margin-right: 0;
}

#et-info-phone[data-cs-webinar]::before,
#et-info-email[data-cs-webinar]::before {
    display: none !important;
    content: none !important;
}

@media (max-width: 980px) {
    #top-header[data-cs-webinar] .cs-webinar-hinweis { font-size: 13px; }
}
