/* =========================================================
   EVENTS – FRONTpage
   ========================================================= */


/* ---------------------------------------------------------
   Section Header
   --------------------------------------------------------- */

.mk-frontpage-events .mk-frontpage-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.mk-frontpage-events .mk-frontpage-section-kicker {
    display: block;
    margin-bottom: 5px;
    color: #ff7a00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mk-frontpage-events .mk-frontpage-section-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.mk-frontpage-events .mk-frontpage-section-link {
    color: #9b9b9b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.mk-frontpage-events .mk-frontpage-section-link:hover {
    color: #ff7a00;
}


/* ---------------------------------------------------------
   Active Events
   --------------------------------------------------------- */

.mk-events-active {
    margin-bottom: 28px;
}

.mk-events-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;

    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.mk-events-live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;

    border-radius: 50%;
    background: #ff7a00;

    box-shadow: 0 0 0 4px rgba(255, 122, 0, .10);
}


/* ---------------------------------------------------------
   Active Event List
   --------------------------------------------------------- */

.mk-events-active-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}


/* ---------------------------------------------------------
   Event Cards
   --------------------------------------------------------- */

.mk-event-card {
    position: relative;

    overflow: hidden;

    min-height: 145px;

    background: #151515;
    border: 1px solid #232323;
    border-radius: 18px;

    transition:
        border-color .2s ease,
        transform .2s ease,
        background-color .2s ease;
}

.mk-event-card:hover {
    transform: translateY(-2px);
    border-color: #333333;
    background: #181818;
}

.mk-event-active {
    border-color: rgba(255, 122, 0, .30);
}

.mk-event-active:hover {
    border-color: rgba(255, 122, 0, .55);
}


/* ---------------------------------------------------------
   Card Content
   --------------------------------------------------------- */

.mk-event-card-content {
    display: flex;
    flex-direction: column;

    height: 100%;
    min-height: 145px;

    padding: 20px;
}

.mk-event-category {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin-bottom: 8px;

    color: #ff7a00;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mk-event-title {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.mk-event-time {
    margin-top: auto;
    padding-top: 18px;

    color: #9b9b9b;
    font-size: 13px;
    line-height: 1.4;
}

.mk-event-active .mk-event-time {
    color: #c0c0c0;
}


/* ---------------------------------------------------------
   Upcoming
   --------------------------------------------------------- */

.mk-events-upcoming {
    margin-top: 30px;
}

.mk-events-subtitle {
    margin-bottom: 12px;

    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Upcoming Grid
   --------------------------------------------------------- */

.mk-events-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mk-events-grid .mk-event-card {
    min-height: 130px;
}

.mk-events-grid .mk-event-card-content {
    min-height: 130px;
    padding: 18px;
}

.mk-events-grid .mk-event-title {
    font-size: 16px;
}

.mk-events-grid .mk-event-time {
    font-size: 12px;
}


/* ---------------------------------------------------------
   Empty State
   --------------------------------------------------------- */

.mk-events-empty {
    padding: 30px;

    background: #151515;
    border: 1px solid #232323;
    border-radius: 18px;

    color: #9b9b9b;
    text-align: center;
    font-size: 14px;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .mk-events-active-list {
        grid-template-columns: 1fr;
    }

    .mk-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .mk-frontpage-events {
        margin-top: 30px;
    }

    .mk-frontpage-events .mk-frontpage-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .mk-frontpage-events .mk-frontpage-section-header h2 {
        font-size: 24px;
    }

    .mk-events-grid {
        grid-template-columns: 1fr;
    }

    .mk-event-card {
        min-height: 125px;
    }

    .mk-event-card-content {
        min-height: 125px;
        padding: 18px;
    }

}

.mk-event-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;

    overflow: hidden;

    border-radius: 10px;
    border: 1px solid #2b2b2b;

    background: #0d0d0d;
}

.mk-event-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* =========================================================
   EVENT CARD – GLAS → FLÜSSIGER ARTWORK-ÜBERGANG
   ========================================================= */

.mk-event-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background: rgba(24, 24, 24, 0.72);

        border: 1px solid rgba(255, 255, 255, .08);

    border-radius: 18px;
}


/* =========================================================
   ARTWORK
   ========================================================= */

.mk-event-background {
    position: absolute;
    inset: 0;
    

    background-size: 45% auto;
    background-position: right center;
    background-repeat: no-repeat;

    -webkit-mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 5%,
            rgba(0,0,0,0.02) 55%,
            rgba(0,0,0,0.08) 60%,
            rgba(0,0,0,0.18) 65%,
            rgba(0,0,0,0.32) 70%,
            rgba(0,0,0,0.50) 75%,
            rgba(0,0,0,0.68) 85%,
            rgba(0,0,0,0.84) 92%,
            black 100%
        );

    mask-image:
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 5%,
            rgba(0,0,0,0.02) 55%,
            rgba(0,0,0,0.08) 60%,
            rgba(0,0,0,0.18) 65%,
            rgba(0,0,0,0.32) 70%,
            rgba(0,0,0,0.50) 75%,
            rgba(0,0,0,0.68) 85%,
            rgba(0,0,0,0.84) 92%,
            black 100%
        );

        

    z-index: -2;
}


/* =========================================================
   GLAS-OVERLAY
   ========================================================= */

/* =========================================================
   EVENT GLASOPTIK
   ========================================================= */

.mk-event-overlay {
    position: absolute;
    inset: 0;

    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(30, 30, 30, 0.22) 0%,
            rgba(30, 30, 30, 0.21) 30%,
            rgba(30, 30, 30, 0.18) 45%,
            rgba(30, 30, 30, 0.13) 58%,
            rgba(30, 30, 30, 0.07) 72%,
            rgba(30, 30, 30, 0.025) 88%,
            rgba(30, 30, 30, 0.00) 100%
        );

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    -webkit-mask-image:
        linear-gradient(
            90deg,
            black 0%,
            black 45%,
            rgba(0,0,0,0.90) 55%,
            rgba(0,0,0,0.65) 68%,
            rgba(0,0,0,0.35) 82%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            90deg,
            black 0%,
            black 45%,
            rgba(0,0,0,0.90) 55%,
            rgba(0,0,0,0.65) 68%,
            rgba(0,0,0,0.35) 82%,
            transparent 100%
        );
}


/* =========================================================
   GLAS-LICHT
   ========================================================= */

.mk-event-card::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    border-radius: inherit;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.035) 0%,
            rgba(255,255,255,0.012) 35%,
            rgba(255,255,255,0) 70%
        );

    z-index: 1;
}


/* =========================================================
   INHALT
   ========================================================= */

.mk-event-card-content {
    position: relative;
    z-index: 2;
}