/* ============================================================
   EVENT DETAIL 2.4
   ============================================================ */

.event-detail4-page {
    width:
        min(
            980px,
            calc(100% - 24px)
        );

    margin:
        22px auto 55px;

    text-align:
        left;
}


/* ============================================================
   STATUS BANNER
   ============================================================ */

.event-detail4-banner {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        10px;

    margin-bottom:
        14px;

    padding:
        14px;

    border-radius:
        11px;

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

    line-height:
        1.55;
}


.event-detail4-banner strong {
    display:
        block;

    margin-bottom:
        2px;
}


.event-detail4-private {
    color:
        #554572;

    background:
        #f7f3ff;

    border:
        1px solid
        #dcd2fa;
}


.event-detail4-cancelled {
    color:
        #7b3e32;

    background:
        #fff1ef;

    border:
        1px solid
        #efc9c3;
}


.event-detail4-past {
    color:
        #646975;

    background:
        #f6f6f7;

    border:
        1px solid
        #dedfe4;
}


/* ============================================================
   HERO
   ============================================================ */

.event-detail4-hero {
    overflow:
        hidden;

    background:
        #ffffff;

    border:
        1px solid
        #e1e3e8;

    border-radius:
        18px;

    box-shadow:
        0 6px 22px
        rgba(0, 0, 0, .055);
}


.event-detail4-image-wrap {
    position:
        relative;

    width:
        100%;

    max-height:
        430px;

    overflow:
        hidden;

    background:
        #f4f3f7;
}


.event-detail4-image {
    display:
        block;

    width:
        100%;

    max-height:
        430px;

    object-fit:
        cover;
}


.event-detail4-cancelled-overlay {
    position:
        absolute;

    inset:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(56, 30, 31, .55);
}


.event-detail4-cancelled-badge {
    padding:
        10px 16px;

    color:
        #ffffff;

    background:
        #b23a43;

    border-radius:
        9px;

    font-weight: 700;

    text-transform:
        uppercase;
}


/* ============================================================
   BODY
   ============================================================ */

.event-detail4-body {
    padding:
        24px;
}


.event-detail4-category {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    margin-bottom:
        10px;

    padding:
        5px 9px;

    color:
        #ffffff;

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

    border-radius:
        7px;

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

    font-weight: 700;
}


.event-detail4-title {
    margin:
        0;

    color:
        #28262d;

    font-size:
        clamp(
            1.8rem,
            5vw,
            2.8rem
        );

    line-height:
        1.15;

    text-align:
        left;
}


/* ============================================================
   META
   ============================================================ */

.event-detail4-meta {
    display:
        grid;

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

    gap:
        10px;

    margin-top:
        20px;
}


.event-detail4-meta-item {
    padding:
        12px;

    background:
        #f8f7fb;

    border:
        1px solid
        #e7e4ed;

    border-radius:
        10px;
}


.event-detail4-meta-label {
    display:
        block;

    margin-bottom:
        3px;

    color:
        #62596c;

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

    font-weight: 700;

    text-transform:
        uppercase;
}


.event-detail4-meta-value {
    color:
        #3f4249;

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

    font-weight:
        650;

    overflow-wrap:
        anywhere;
}


/* ============================================================
   ACTIONS
   ============================================================ */

.event-detail4-actions {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        8px;

    margin-top:
        20px;
}


.event-detail4-action {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        41px;

    padding:
        8px 13px;

    color:
        #ffffff;

    background:
        #6243d7;

    border:
        1px solid
        #6243d7;

    border-radius:
        9px;

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

    font-weight: 700;

    text-decoration:
        none;
}


.event-detail4-action:hover {
    color:
        #ffffff;

    background:
        #6243df;

    text-decoration:
        none;
}


.event-detail4-action-secondary {
    color:
        #594895;

    background:
        #f5f2ff;

    border-color:
        #ddd6fa;
}


/* ============================================================
   TEILEN / QR-CODE
   ============================================================ */

.event-detail4-action-button {
    font-family:
        inherit;

    cursor:
        pointer;
}


.event-share-dialog {
    width:
        min(
            430px,
            calc(100% - 28px)
        );

    max-width:
        430px;

    margin:
        auto;

    padding:
        0;

    color:
        #34313b;

    background:
        transparent;

    border:
        0;
}


.event-share-dialog::backdrop {
    background:
        rgba(25, 22, 34, .55);

    backdrop-filter:
        blur(3px);
}


.event-share-card {
    position:
        relative;

    overflow:
        hidden;

    padding:
        22px;

    background:
        #ffffff;

    border:
        1px solid
        rgba(124, 92, 252, .13);

    border-radius:
        18px;

    box-shadow:
        0 24px 70px
        rgba(31, 27, 47, .28);
}


.event-share-close {
    position:
        absolute;

    top:
        11px;

    right:
        11px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        34px;

    height:
        34px;

    padding:
        0;

    color:
        #6b6674;

    background:
        #f5f3fa;

    border:
        1px solid
        #e9e5f1;

    border-radius:
        999px;

    font-family:
        inherit;

    font-size:
        1.15rem;

    line-height:
        1;

    cursor:
        pointer;
}


.event-share-close:hover {
    color:
        #5136bd;

    background:
        #eee9ff;
}


.event-share-heading {
    margin:
        0 42px 5px 0;

    color:
        #302c39;

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

    font-weight: 700;
}


.event-share-subtitle {
    margin:
        0 38px 17px 0;

    color:
        #727681;

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

    line-height:
        1.45;
}


.event-share-qr-wrap {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        244px;

    padding:
        12px;

    background:
        #ffffff;

    border:
        1px solid
        #ebe7f4;

    border-radius:
        14px;
}


.event-share-qr {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        min(
            220px,
            100%
        );

    aspect-ratio:
        1;
}


.event-share-qr svg {
    display:
        block;

    width:
        100%;

    height:
        auto;
}


.event-share-link-row {
    display:
        grid;

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

    gap:
        7px;

    margin-top:
        12px;
}


.event-share-link {
    min-width:
        0;

    height:
        39px;

    padding:
        0 11px;

    color:
        #55515e;

    background:
        #f7f6fa;

    border:
        1px solid
        #e6e3eb;

    border-radius:
        9px;

    font:
        inherit;

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


.event-share-copy,
.event-share-native {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        39px;

    padding:
        8px 12px;

    color:
        #ffffff;

    background:
        #6243d7;

    border:
        1px solid
        #6243d7;

    border-radius:
        9px;

    font:
        inherit;

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

    font-weight: 700;

    cursor:
        pointer;
}


.event-share-copy:hover,
.event-share-native:hover {
    background:
        #6243df;

    border-color:
        #6243df;
}


.event-share-footer-actions {
    display:
        flex;

    justify-content:
        center;

    margin-top:
        10px;
}


.event-share-native[hidden] {
    display:
        none;
}


.event-share-status {
    min-height:
        1.3em;

    margin:
        9px 0 0;

    color:
        #625b72;

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

    text-align:
        center;
}


.event-share-privacy {
    margin:
        10px 0 0;

    color:
        #77727e;

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

    line-height:
        1.4;

    text-align:
        center;
}


@media
(max-width: 480px) {

    .event-share-card {
        padding:
            19px 15px 16px;
    }


    .event-share-qr-wrap {
        min-height:
            220px;
    }


    .event-share-qr {
        width:
            min(
                200px,
                100%
            );
    }


    .event-share-link-row {
        grid-template-columns:
            1fr;
    }


    .event-share-copy {
        width:
            100%;
    }
}





/* ============================================================
   KALENDER
   ============================================================ */

.event-calendar-options {
    display:
        grid;

    gap:
        10px;

    margin-top:
        18px;
}


.event-calendar-option {
    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    width:
        100%;

    padding:
        13px 14px;

    color:
        #4a405f;

    background:
        #f8f6ff;

    border:
        1px solid
        #e1daf8;

    border-radius:
        12px;

    font-family:
        inherit;

    text-align:
        left;

    cursor:
        pointer;
}


.event-calendar-option:hover {
    background:
        #f1edff;

    border-color:
        #cfc3f5;
}


.event-calendar-option-primary {
    color:
        #ffffff;

    background:
        #6243d7;

    border-color:
        #6243d7;
}


.event-calendar-option-primary:hover {
    color:
        #ffffff;

    background:
        #6243df;

    border-color:
        #6243df;
}


.event-calendar-option-icon {
    flex:
        0 0 auto;

    font-size:
        1.15rem;
}


.event-calendar-option-copy {
    min-width:
        0;
}


.event-calendar-option-title {
    display:
        block;

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

    font-weight: 700;
}


.event-calendar-option-note {
    display:
        block;

    margin-top:
        2px;

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

    font-weight:
        600;

    line-height:
        1.35;

    opacity:
        .82;
}


.event-calendar-privacy {
    margin:
        15px 0 0;

    color:
        #76717d;

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

    line-height:
        1.5;
}


/* ============================================================
   LOKALE EVENT-ERINNERUNGEN
   ============================================================ */

.event-reminder-options {
    display:
        grid;

    gap:
        9px;

    margin-top:
        18px;
}


.event-reminder-option {
    position:
        relative;

    display:
        block;
}


.event-reminder-option input {
    position:
        absolute;

    inline-size:
        1px;

    block-size:
        1px;

    opacity:
        0;

    pointer-events:
        none;
}


.event-reminder-option-card {
    display:
        flex;

    align-items:
        center;

    gap:
        11px;

    padding:
        12px 13px;

    color:
        #4a405f;

    background:
        #f8f6ff;

    border:
        1px solid
        #e1daf8;

    border-radius:
        12px;

    cursor:
        pointer;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}


.event-reminder-option input:checked + .event-reminder-option-card {
    color:
        #4a2fc0;

    background:
        #f0ecff;

    border-color:
        #9b86f5;

    box-shadow:
        0 0 0 2px rgba(124, 92, 252, .10);
}


.event-reminder-option input:focus-visible + .event-reminder-option-card {
    outline:
        3px solid rgba(124, 92, 252, .2);

    outline-offset:
        2px;
}


.event-reminder-option input:disabled + .event-reminder-option-card {
    opacity:
        .45;

    cursor:
        not-allowed;
}


.event-reminder-option-icon {
    flex:
        0 0 auto;

    font-size:
        1.05rem;
}


.event-reminder-option-title {
    display:
        block;

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

    font-weight: 700;
}


.event-reminder-notification {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        8px;

    margin-top:
        14px;

    padding:
        10px 11px;

    color:
        #5e5769;

    background:
        #fbfaff;

    border:
        1px solid
        #e7e2f5;

    border-radius:
        10px;

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

    line-height:
        1.45;
}


.event-reminder-actions {
    display:
        grid;

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

    gap:
        9px;

    margin-top:
        15px;
}


.event-reminder-save,
.event-reminder-remove {
    min-height:
        42px;

    padding:
        10px 13px;

    border-radius:
        10px;

    font:
        inherit;

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

    font-weight: 700;

    cursor:
        pointer;
}


.event-reminder-save {
    color:
        #ffffff;

    background:
        #6243d7;

    border:
        1px solid #6243d7;
}


.event-reminder-save:hover {
    background:
        #6243df;

    border-color:
        #6243df;
}


.event-reminder-save:disabled {
    opacity:
        .45;

    cursor:
        not-allowed;
}


.event-reminder-remove {
    color:
        #6c6575;

    background:
        #ffffff;

    border:
        1px solid #dcd7e7;
}


.event-reminder-remove:hover {
    background:
        #f7f5fb;
}


.event-reminder-remove[hidden] {
    display:
        none;
}


.event-reminder-toast {
    position:
        fixed;

    right:
        18px;

    bottom:
        18px;

    z-index:
        10000;

    width:
        min(360px, calc(100% - 36px));

    padding:
        14px 15px;

    color:
        #3f3850;

    background:
        #ffffff;

    border:
        1px solid #dcd5ef;

    border-radius:
        13px;

    box-shadow:
        0 14px 40px rgba(52, 38, 87, .18);

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

    line-height:
        1.45;
}


.event-reminder-toast strong {
    display:
        block;

    margin-bottom:
        3px;
}


.event-reminder-toast a {
    display:
        inline-block;

    margin-top:
        7px;

    color:
        #6243df;

    font-weight: 700;

    text-decoration:
        none;
}


@media
(max-width: 480px) {

    .event-reminder-actions {
        grid-template-columns:
            1fr;
    }
}


/* ============================================================
   CONTENT
   ============================================================ */

.event-detail4-grid {
    display:
        grid;

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

    gap:
        14px;

    margin-top:
        16px;
}


.event-detail4-panel {
    padding:
        19px;

    background:
        #ffffff;

    border:
        1px solid
        #e2e4e9;

    border-radius:
        14px;
}


.event-detail4-panel h2 {
    margin:
        0 0 12px;

    color:
        #35323a;

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

    text-align:
        left;
}


.event-detail4-description {
    margin:
        0;

    color:
        #565b65;

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

    line-height:
        1.7;

    white-space:
        pre-wrap;

    overflow-wrap:
        anywhere;
}


.event-detail4-contact {
    color:
        #595f68;

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

    line-height:
        1.6;

    overflow-wrap:
        anywhere;
}


/* ============================================================
   NOTE
   ============================================================ */

.event-detail4-note {
    margin-top:
        16px;

    padding:
        12px 14px;

    color:
        #6d727d;

    background:
        #fafafa;

    border:
        1px solid
        #e5e6ea;

    border-radius:
        11px;

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

    line-height:
        1.55;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media
(max-width: 700px) {

    .event-detail4-meta,
    .event-detail4-grid {
        grid-template-columns:
            1fr;
    }


    .event-detail4-actions {
        flex-direction:
            column;
    }


    .event-detail4-action {
        width:
            100%;
    }

}
