/*
    |--------------------------------------------------------------------------
    | Kalender-Popup 2.11.1 – kompakte Eventkarte
    |--------------------------------------------------------------------------
    */

    .event4-modal {
        position: fixed;
        inset: 0;
        z-index: 10000;

        display: none;
        align-items: center;
        justify-content: center;

        overflow-y: auto;

        padding: 24px 16px;

        background:
            rgba(28, 23, 38, .62);

        backdrop-filter:
            blur(6px);
        -webkit-backdrop-filter:
            blur(6px);
    }


    .event4-modal.is-open {
        display: flex;
    }


    .event4-modal-dialog {
        position: relative;

        width:
            min(
                520px,
                100%
            );

        max-height:
            min(
                86vh,
                760px
            );

        overflow-y: auto;

        padding: 0;

        background:
            #ffffff;

        border:
            1px solid
            rgba(91, 71, 145, .13);

        border-radius:
            22px;

        box-shadow:
            0 24px 70px
            rgba(28, 21, 45, .28);

        overscroll-behavior:
            contain;
    }


    .event4-modal-close {
        position: absolute;

        top: 11px;
        right: 11px;

        z-index: 5;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        width: 34px;
        height: 34px;

        padding: 0;

        color:
            #716c79;

        background:
            rgba(255,255,255,.94);

        border:
            1px solid
            rgba(89, 70, 132, .13);

        border-radius:
            50%;

        font-family: inherit;
        font-size: 21px;
        line-height: 1;

        box-shadow:
            0 3px 12px
            rgba(34, 27, 53, .10);

        cursor: pointer;
    }


    .event4-modal-close:hover {
        color:
            #5d3ed0;

        background:
            #f6f2ff;
    }


    .event4-modal-body {
        padding:
            18px;
    }


    .event4-modal-profile-head {
        display:
            grid;

        grid-template-columns:
            78px
            minmax(0, 1fr);

        gap:
            14px;

        align-items:
            center;

        padding-right:
            34px;
    }


    .event4-modal-thumb {
        display:
            flex;

        align-items:
            center;

        justify-content:
            center;

        width:
            78px;

        height:
            78px;

        overflow:
            hidden;

        color:
            #6648d6;

        background:
            linear-gradient(
                145deg,
                #f7f4ff,
                #ece7ff
            );

        border:
            1px solid
            #ded6f6;

        border-radius:
            18px;

        box-shadow:
            0 5px 16px
            rgba(83, 61, 145, .11);

        font-size:
            1.7rem;
    }


    .event4-modal-thumb img {
        display:
            block;

        width:
            100%;

        height:
            100%;

        object-fit:
            cover;
    }


    .event4-modal-head-copy {
        min-width:
            0;
    }


    .event4-modal-category {
        display:
            inline-flex;

        align-items:
            center;

        gap:
            5px;

        max-width:
            100%;

        margin-bottom:
            6px;

        padding:
            4px 8px;

        color:
            #ffffff;

        background:
            var(
                --event-color,
                #6243d7
            );

        border-radius:
            999px;

        font-size: var(--type-body);

        font-weight: 700;

        line-height:
            1.2;
    }


    .event4-modal-title {
        margin:
            0;

        color:
            #302c35;

        font-size:
            clamp(
                1.15rem,
                4vw,
                1.42rem
            );

        font-weight: 700;

        line-height:
            1.2;

        overflow-wrap:
            anywhere;
    }


    .event4-modal-meta-grid {
        display:
            grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            8px;

        margin-top:
            16px;
    }


    .event4-modal-meta-card {
        display:
            flex;

        align-items:
            flex-start;

        gap:
            8px;

        min-width:
            0;

        padding:
            10px;

        color:
            #55515c;

        background:
            #f8f7fb;

        border:
            1px solid
            #ebe8f1;

        border-radius:
            11px;
    }


    .event4-modal-meta-icon {
        flex:
            0 0 auto;

        margin-top:
            1px;

        font-size:
            .95rem;
    }


    .event4-modal-meta-copy {
        min-width:
            0;
    }


    .event4-modal-meta-label {
        display:
            block;

        margin-bottom:
            2px;

        color:
            #62596c;

        font-size: var(--type-small);

        font-weight: 700;

        letter-spacing:
            .035em;

        text-transform:
            uppercase;
    }


    .event4-modal-meta-value {
        display:
            block;

        color:
            #45414a;

        font-size: var(--type-small);

        font-weight:
            700;

        line-height:
            1.35;

        overflow-wrap:
            anywhere;
    }


    .event4-modal-description {
        margin-top:
            12px;

        padding:
            11px 12px;

        color:
            #5c5761;

        background:
            #fcfbfe;

        border:
            1px solid
            #eeeaf4;

        border-left:
            3px solid
            #c9baf5;

        border-radius:
            10px;

        font-size: var(--type-body);

        line-height:
            1.55;

        white-space:
            pre-wrap;

        overflow-wrap:
            anywhere;
    }


    .event4-modal-actions {
        display:
            grid;

        grid-template-columns:
            1fr
            1fr;

        gap:
            8px;

        margin-top:
            14px;

        padding-top:
            12px;

        border-top:
            1px solid
            #efecf3;
    }


    .event4-modal-actions > :only-child {
        grid-column:
            1 / -1;
    }


    .event4-modal-link {
        box-sizing:
            border-box;

        display:
            inline-flex;

        align-items:
            center;

        justify-content:
            center;

        gap:
            6px;

        width:
            100%;

        min-height:
            40px;

        padding:
            9px 11px;

        color:
            #ffffff !important;

        background:
            linear-gradient(
                135deg,
                #6243d7,
                #6545db
            );

        border:
            1px solid
            #6545db;

        border-radius:
            11px;

        box-shadow:
            0 4px 11px
            rgba(101, 69, 219, .17);

        font-size: var(--type-body);

        font-weight: 700;

        line-height:
            1.15;

        text-align:
            center;

        text-decoration:
            none !important;
    }


    .event4-modal-link:hover {
        color:
            #ffffff !important;

        background:
            linear-gradient(
                135deg,
                #6948e7,
                #5939c9
            );

        border-color:
            #5939c9;

        transform:
            translateY(-1px);
    }


    .event4-modal-link-secondary {
        color:
            #5d4b96 !important;

        background:
            #ffffff;

        border-color:
            #dcd4f4;

        box-shadow:
            none;
    }


    .event4-modal-link-secondary:hover {
        color:
            #4f3e8a !important;

        background:
            #f7f4ff;

        border-color:
            #cbbff0;
    }


    @media
    (max-width: 520px) {

        .event4-modal {
            align-items:
                flex-end;

            padding:
                12px;
        }


        .event4-modal-dialog {
            width:
                100%;

            max-height:
                88vh;

            border-radius:
                20px;
        }


        .event4-modal-body {
            padding:
                16px;
        }


        .event4-modal-profile-head {
            grid-template-columns:
                64px
                minmax(0, 1fr);

            gap:
                11px;
        }


        .event4-modal-thumb {
            width:
                64px;

            height:
                64px;

            border-radius:
                15px;
        }


        .event4-modal-meta-grid {
            grid-template-columns:
                1fr;
        }


        .event4-modal-actions {
            grid-template-columns:
                1fr;
        }
    }
