/* --- Event Grid & Layout --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.25rem;
    margin-top: 2rem; /* Reduziert von 20rem, da in Elementor meist Abstände manuell gesetzt werden */

    /*position: relative;*/
}

.event-card {
    border: 0.1875rem solid #000;
    /*border-radius: 10px;*/
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 20rem;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    background: #e8e8e8;
}

.event-card:hover {
    /*border-color: #FF4E11;*/
    /*color: #FF4E11;*/
}

.event-card.card-style-party {
    background-color: #feff5b; 
    color: #000;
}

.event-card.card-style-act {
    background-color: #e8e8e8;
    color: #000;
}

.event-card.card-style-paul {
    background-color: #000000;
    border-color: #e8e8e8;
    color: #ffffff; 
}

.card-style-paul h2, 
.card-style-paul p {
    color: #ffffff;
}

/* Rahmen für die Buttons auf schwarzem Grund anpassen, falls nötig */
.card-style-paul .btn-outline {
    border-color: #ffffff;
    color: #ffffff;
    border-width: 1px;
}

.card-style-paul .event-badge {
    background-color: #feff5b; 
    color: #000000; 
    border: none !important;
    box-shadow: none;
}

.event-image {
    width: 100%;
    border-radius: 10px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.event-info {
    padding: 1rem 1.5rem 0rem 1.5rem;
    margin-bottom: 1.5rem;
}

.event-info h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 0.3125rem;
    font-family: "Iosevka ExtraBold", Sans-serif;
}

.event-info p {
    font-family: "iosevka regular", Sans-serif;
}


/* --- Buttons --- */
.event-buttons {
    /*
    display: flex;
*/

    display: flex;
    gap: 0.625rem;
    margin: 1rem 0.625rem 0.625rem;
    margin-top: auto;
    padding: 0 !important;
}

.event-buttons .btn {
    padding: 0.3125rem 1.5625rem;
    border-radius: 1.25rem !important;
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    text-decoration: none;

    display: inline-block;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
    text-transform: uppercase !important;
    font-family: "Iosevka Comfy Duo Extrabold", Sans-serif !important;
    /*font-weight: bold;
    font-size: unset;*/

    font-size: 18px !important;
    padding: 6px 14px !important; 
    line-height: 1.2;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.event-buttons .btn-outline {
    background: #fff !important;
    border: 0.125rem solid #000 !important;
    color: #000 !important;
}

.event-buttons .btn-outline:hover {
    background: #000 !important;
    color: #fff !important;
}

.event-buttons .btn-solid {
    background: #000 !important;
    border: 0.125rem solid #000 !important;
    color: #fff !important;
}

.event-buttons .btn-solid:hover {
    background: #ffffff !important;
    border-color: #000000 !important;
    color: #000000 !important;
}

/* Deaktiviert die Bootstrap-Animation für das Event-Akkordeon */
.custom-collapse-wrap.collapsing {
    transition: none !important;
    height: auto !important;
    display: block !important;
}

.custom-collapse-wrap.collapse {
    transition: none !important;
}

/* --- Info Panel / Collapse --- */
.custom-collapse-wrap {
    position: absolute;
    left: 0;
    width: 100%;
    margin-top: 20px !important;
    padding: 0 0.625rem;
    z-index: 10;
}

.info-panel-content {
    font-family: "iosevka regular", Sans-serif !important;
    color: #000;
    border: 0.1875rem solid #000;
    border-radius: 10px;
    padding: 2.5rem;
    position: relative;
    background-color: white;
}

.info-panel-columns {
    gap: 2.5rem;
    font-size: 1.25rem;
    column-count: 2;
}

.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}

.close-btn:hover {
    background: #feff5c;
    border: 0.125rem solid #000 !important;
    color: #000000;
}


/* --- Highlight Effekt --- */
.event-card.highlight {
    background-color: #feff5c;
    box-shadow: 0 10px 20px rgba(255, 78, 17, 0.2);
}

/* --- Label / Badge Styles --- */
.event-badge {
    position: absolute;
    background: #ffffff;
    color: #000000;
    padding: 5px 15px;
    /*font-size: 0.8rem;*/
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 15px;
    z-index: 5;
    border: 0.125rem solid #000 !important;
    pointer-events: none; /* Klicks gehen durch auf das Bild */
}

/* Positionen */
.event-badge.top-left     { top: 10px; left: 10px; }
.event-badge.top-right    { top: 10px; right: 10px; }
.event-badge.bottom-left  { bottom: 10px; left: 10px; }
.event-badge.bottom-right { bottom: 10px; right: 10px; }

/* Bild-Container Fix */
.event-image-container {
    overflow: hidden;
    /*border-radius: 10px 10px 0 0;*/
}

/* --- Responsive --- */
@media (max-width: 48rem) {
    .events-grid { grid-template-columns: 1fr; }
    .event-buttons { flex-direction: column; }
    .info-panel-columns { column-count: 1; }
    .info-panel-content { padding: 1.5rem; padding-top: 40px; }
}