:root {
    --wp-navy: #071b29;
    --wp-navy-dark: #020a11;
    --wp-blue: #008ee8;
    --wp-blue-light: #00aeef;
    --wp-white: #ffffff;
}

/* Webinar-Banner */

.wp-webinar {
    position: relative;
    isolation: isolate;

    display: grid;
    grid-template-columns:1.4fr 1.2fr;
    
    overflow: hidden;

    color: var(--wp-white);
    background-image: url("/shared/layout/webinar-background.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;

}

.wp-webinar .close {
    position: absolute; top:25px; right:25px; color:#fff; cursor: pointer;
}
.wp-webinar .close:hover {
    opacity: 1;
}

/*
 * Der Verlauf stellt sicher, dass die Texte unabhängig
 * vom verwendeten Hintergrundbild lesbar bleiben.
 */


/* Linker Inhaltsbereich */

.wp-webinar__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    max-width: 820px;
    padding: 25px 0px 25px 50px;
}

.wp-webinar__badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;

    margin-bottom: 24px;
    padding: 9px 15px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;

    color: var(--wp-white);
    background: linear-gradient(
        135deg,
        var(--wp-blue-light),
        #0878df
    );

    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    box-shadow: 0 8px 20px rgba(0, 142, 232, 0.22);
}

.wp-webinar__badge .fa-circle {
    font-size: 8px;
}

.wp-webinar__description {
    max-width: 630px;
}

.wp-webinar__description span {
    display: block;
}

/* Veranstaltungsinformationen */

.wp-webinar__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 21px;

    margin-top: 42px;
}

.wp-webinar__meta-item {
    display: flex;
    align-items: center;
    gap: 13px;

    color: var(--wp-white);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.wp-webinar__meta-item > i {
    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    color: #00aeef;
    font-size: 24px;
}

.wp-webinar__meta-item span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wp-webinar__meta-item small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wp-webinar__divider {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.22);
}

/* Rechter Visual-Bereich */


.wp-webinar__benefits {
    display: flex;
    flex-direction: column;

    color: var(--wp-blue-light);
    font-size: clamp(15px, 1.4vw, 21px);
    line-height: 1.35;
    letter-spacing: 0.06em;
    
    margin-top:30px;

    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

/* Anmeldebutton */

.wp-webinar__button {
    position: absolute;
    right: 40px;
    bottom: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    min-width: 235px;
    padding: 17px 23px;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 9px;

    color: var(--wp-white);
    background: linear-gradient(
        135deg,
        var(--wp-blue-light),
        #0867ed
    );

    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    box-shadow: 0 12px 28px rgba(0, 99, 228, 0.28);

    transition:
        transform 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.wp-webinar__button i {
    font-size: 18px;
    transition: transform 160ms ease;
}

.wp-webinar__button:hover,
.wp-webinar__button:focus-visible {
    color: var(--wp-white);
    text-decoration: none;

    transform: translateY(-2px);

    box-shadow: 0 16px 35px rgba(0, 110, 235, 0.42);
}

.wp-webinar__button:hover i {
    transform: translateX(4px);
}

.wp-webinar__button:focus-visible {
    outline: 3px solid rgba(112, 207, 255, 0.8);
    outline-offset: 3px;
}

/* Tablet */

@media (max-width: 1050px) {
    .wp-webinar {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .wp-webinar__content {
        padding-left: 34px;
    }

    .wp-webinar__meta {
        gap: 14px;
    }

    .wp-webinar__divider {
        display: none;
    }

    .wp-webinar__video-icon {
        left: 2%;
        width: 90px;
        height: 90px;
        font-size: 34px;
    }

    .wp-webinar__benefits,
    .wp-webinar__button {
        right: 25px;
    }
}

/* Mobil */

@media (max-width: 760px) {
    .wp-webinar {
        display: block;
        min-height: auto;

        background-position: 64% center;
    }

    .wp-webinar__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(2, 10, 17, 0.98) 0%,
                rgba(3, 20, 35, 0.95) 58%,
                rgba(2, 10, 17, 0.68) 100%
            );
    }

    .wp-webinar__content {
        max-width: none;
        padding: 28px 24px 20px;
    }

    .wp-webinar__badge {
        margin-bottom: 20px;
    }

    .wp-webinar__description span {
        display: inline;
    }

    .wp-webinar__meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;

        margin-top: 28px;
    }

    .wp-webinar__visual {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 22px;

        min-height: 260px;
        padding: 24px;
    }

    .wp-webinar__benefits {
        position: static;
    }

    .wp-webinar__video-icon {
        position: absolute;
        top: 50%;
        right: 25px;
        left: auto;

        width: 78px;
        height: 78px;

        font-size: 28px;
    }

    .wp-webinar__button {
        position: static;
        width: 100%;
        box-sizing: border-box;
    }
}