/* =============================================
   Veranstaltungen – Kartenansicht
   ============================================= */

/* Filter-Leiste */

body.veranstaltungen {
    /* Внешний контейнер — 2-колоночный грид */
    #position {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        align-items: start;

        /* Фильтры и якорь растягиваются на всю ширину */
        #filter-element,
        .filter_display {
            grid-column: 1 / -1;
        }

        @media (max-width: 992px) {
            grid-template-columns: 1fr;
        }
    }

    .filter_display {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 24px;
        width: 100%;
        padding-top: 10px;

        .button_filter_wrapper_2 {
            display: inline-flex;
        }

        a.button_filter {
            display: inline-block;
            padding: 6px 16px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 500;
            text-decoration: none;
            transition: background 0.2s, color 0.2s;
            cursor: pointer;

            &.o-filter {
                background: var(--clr-primary-grey);
                color: var(--clr-primary-dark);

                &:hover {
                    /* background: #cacaca; */
                }
            }

            &.a-filter {
                background: var(--primary-accent);
                color: var(--clr-primary-white);
            }
        }
    }

    /* Каждый .collection_list — одна ячейка грида */
    .collection_list.col-kalender {
        display: block;
        width: 100%;
        padding: 0;
    }

    /* Einzelne Karte */
    .collection_container.Veranstaltung,
    .collection_container[class*="Veranstaltung"] {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
        background: var(--clr-primary-white);
        border: 1px solid #e8edf5;
        border-radius: 10px;
        padding: 16px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        position: relative;
        overflow: visible;

        

        /* Icon-Kreis (linke Spalte) */
        .col-kalender_one {
            flex-shrink: 0;

            .col-kalender_icon {
                width: 100px;
                height: 100px;
                border-radius: 50%;
                background: var(--clr-primary-grey);
                display: flex;
                align-items: center;
                justify-content: center;
                overflow: hidden;

                img {
                    width: 38px;
                    height: 38px;
                    object-fit: contain;
                }
            }
        }

        /* Inhaltsbereich (rechte Spalte) */
        .col-kalender_two {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;

            /* Kategorie-Label */
            .col-kalender_titlee {
                font-size: 12px;
                font-weight: 600;
                color: var(--primary-accent);
                text-transform: uppercase;
                letter-spacing: 0.4px;
            }

            /* Titel */
            .col-kalender_stadt {
                font-size: 15px;
                font-weight: 700;
                color: var(--clr-primary-dark);
                line-height: 1.3;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            /* Ort/Adresse */
            .col-kalender_text {
                font-size: 13px;
                color: #888;
                line-height: 1.4;

                a {
                    color: inherit;
                    text-decoration: none;

                    &:hover {
                        color: var(--primary-accent);
                    }
                }

                .textcontent {
                    /* Beschreibungstext im Listing ausblenden */
                    display: none;
                }
            }

            /* Datum + Zeit + Kalender-Button */
            .col-kalender_two_datum {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                gap: 6px;
                margin-top: 6px;

                .col-kalender_datum {
                    display: inline-block;
                    background: var(--clr-primary-white);
                    color: var(--clr-primary-dark);
                    font-size: 12px;
                    font-weight: 500;
                    padding: 4px 10px;
                    border-radius: 6px;
                    border: 1px solid var(--primary-accent);
                }

                .col-kalender_zeit {
                    display: inline-block;
                    background: var(--clr-primary-white);
                    color: var(--clr-primary-dark);
                    font-size: 12px;
                    font-weight: 500;
                    padding: 4px 10px;
                    border-radius: 6px;
                    border: 1px solid var(--primary-accent);


                    &:empty {
                        display: none;
                    }
                }

                /* Zu Kalender hinzufügen */
                .col-kalender_outlook {
                    display: inline-flex;
                    align-items: center;
                    border-radius: 20px;
                    padding: 5px 14px 5px 10px;
                    margin-top: 4px;
                    cursor: pointer;
                    text-decoration: none;

                    
                    .textcontent:hover{
                        transform: scale(1.01);
                    }
                    .textcontent:focus-visible {
                        border: 1px solid var(--primary-accent);
                    }
                    .textcontent {
                        display: inline-flex;
                        align-items: center;
                        gap: 7px;
                        font-size: 13px;
                        font-weight: 400;
                        color: var(--clr-primary-dark);
                        white-space: nowrap;
                        transition: transform 0.3s;
                                

                        &::before {
                            content: "";
                            display: inline-block;
                            width: 18px;
                            height: 18px;
                            flex-shrink: 0;
                            background-image: url(/userdata/02_Kollektionen/kalendarhinzu.svg);
                            background-size: contain;
                            background-repeat: no-repeat;
                            background-position: center;
                        }
                    }
                }
            }

            /* Telefon – meist leer */
            .code_phone:empty {
                display: none;
            }
        }

        /* Veranstalter – meist leer */
        .col-kalender_organizer:empty {
            display: none;
        }

        /* Bild (rechte Seite) – im Listing ausblenden */
        .col-kalender_three {
            display: none;
        }

        /* "Mehr lesen"-Button – im Listing ausblenden */
        .collection_link {
            display: none;
        }
    }
}

