/* RSEvents!Pro – custom event detail layout */

#rs_event_show .rsepro-custom-event-header {
    display: grid !important;
    grid-template-columns: minmax(260px, 38%) minmax(0, 62%);
    gap: 40px;
    align-items: start;
    width: 100%;
    margin-top: 30px;
}

#rs_event_show .rsepro-custom-event-poster {
    grid-column: 1;
    min-width: 0;
    text-align: center;
}

#rs_event_show .rsepro-custom-event-info {
    grid-column: 2;
    min-width: 0;
}

#rs_event_show .rsepro-custom-poster-link {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
}

#rs_event_show .rsepro-custom-event-poster img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

#rs_event_show .rsepro-custom-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 8px;
    line-height: 1.45;
}

#rs_event_show .rsepro-custom-info-row > i {
    flex: 0 0 16px;
    margin-top: 3px;
    text-align: center;
}

#rs_event_show .rsepro-custom-info-row > div {
    min-width: 0;
}

/* Veranstalter direkt unter den Show-Infos – innerhalb der rechten Spalte */
#rs_event_show .rsepro-custom-sponsors {
    display: block;
    width: 100%;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

#rs_event_show .rsepro-custom-sponsors h3,
#rs_event_show .rsepro-custom-resource-box h3 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    line-height: 1.3;
    font-weight: 500;
}

#rs_event_show .rsepro-custom-sponsor-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

#rs_event_show .rsepro-custom-sponsor {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
}

#rs_event_show .rsepro-custom-sponsor a {
    display: block;
    line-height: 0;
}

#rs_event_show .rsepro-custom-sponsor img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 110px;
    height: auto;
    object-fit: contain;
}

#rs_event_show .rsepro-custom-sponsor span {
    text-align: center;
}

/* Unterer Bereich: Dokumente links / Beschreibung rechts */
#rs_event_show .rsepro-custom-resources {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid #ddd;
}

#rs_event_show .rsepro-custom-resource-box {
    min-width: 0;
}

#rs_event_show .rsepro-custom-resource-box h3 {
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

#rs_event_show .rsepro-custom-files {
    line-height: 1.7;
}

#rs_event_show .rsepro-custom-files a {
    display: inline-block;
    margin: 0 20px 10px 0;
}

#rs_event_show .rsepro-custom-description {
    line-height: 1.6;
}

/* Platzhalter für fehlende Dokumente */
#rs_event_show .rsepro-custom-files-placeholder {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 25px;
    border: 1px dashed #d6d6d6;
    background: #fafafa;
    color: #777;
    text-align: center;
    border-radius: 4px;
}

#rs_event_show .rsepro-custom-files-placeholder i {
    font-size: 28px;
    opacity: .65;
}

#rs_event_show .rsepro-custom-description-placeholder {
    padding: 20px;
    border: 1px dashed #d6d6d6;
    background: #fafafa;
    color: #777;
}

/* Tablet */
@media (max-width: 900px) {
    #rs_event_show .rsepro-custom-event-header {
        grid-template-columns: minmax(220px, 42%) minmax(0, 58%);
        gap: 25px;
    }

    #rs_event_show .rsepro-custom-sponsor-grid {
        gap: 10px;
    }

    #rs_event_show .rsepro-custom-sponsor {
        min-width: 130px;
    }
}

/* Smartphone */
@media (max-width: 700px) {
    #rs_event_show .rsepro-custom-event-header {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    #rs_event_show .rsepro-custom-event-poster,
    #rs_event_show .rsepro-custom-event-info {
        grid-column: 1;
    }

    #rs_event_show .rsepro-custom-event-poster {
        order: 0;
    }

    #rs_event_show .rsepro-custom-event-info {
        order: 1;
    }

    #rs_event_show .rsepro-custom-resources {
        grid-template-columns: 1fr !important;
        gap: 25px;
        margin-top: 30px;
        padding-top: 25px;
    }
}
