/* ============================================
   BASE CONTAINERS
   ============================================ */
.ter-kal-block-list {
    container-type: inline-size;
    width: 100%;

}

/* ============================================
   CONTENT LAYOUTS
   ============================================ */
/* List block - auto-responsive grid */

.ter-kal-block-list .eventlist,
.ter-kal-block-list .simple_list,
.ter-kal-block-list .ter-kal-content {
    /*    display: grid;
    gap: 1rem;*/
    width: 100%;
    /*    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));  */
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@container (max-width: 500px) {
    .ter-kal-content {
        /* Mobile-specific styles (e.g., smaller padding, font-size) */
    }
}

@container (min-width: 501px) {
    .ter-kal-content {
        /* Desktop-specific styles (e.g., larger spacing) */
    }
}

/* ============================================
   ============================================ */
.tk_kategorie_title {
    font-size: 2rem;
    line-height: 3rem;
    font-weight: 800;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.tk_kategorie_title_dashicon {
    font-size: 3rem;
    width: 1.2em;
    /* Give the span actual width */
}


/* Custom Accordion header styling */

.eventlist > h3 {
    font-size: 2rem;
    margin: 0;
    background-color: #007bff;
    color: #fff;
    padding: 0.2rem;
    /*border: 1px solid #DDDDDD;*/
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.3rem;
    padding-right: 2.2rem;
    /* space for the chevron icon */
}

.eventlist > h3 .accordeon_icon {
    font-size: 2rem;
    height: 2rem;
    width: 2rem;
    border: 0;
    margin-right: 0.2rem;
    opacity: 0.5;
}

.eventlist > h3 .accordeon_day {
    /*font-size:0.7rem*/
    font-weight: bold;
    /*margin-left:2rem;*/
    font-family: sans-serif;
    margin-right: 0.2rem;
    /*position:absolute;top:-0.7rem;*/
    opacity: 0.5;
}

/* Ensuring the header text does not break onto a new line */
.eventlist > h3 .header-text {
    font-size: 1rem;
    display: inline-block;
    /*white-space: nowrap;   */
}

/* Pseudo-element for accordion icons */
.eventlist > h3::after {
    font-family: dashicons;
    /* Use dashicons for a downward pointing arrow (closed state) */
    content: '\f347';
    /*"\f140"; f347 Check your dashicons reference; adjust as needed */
    position: absolute;
    right: 0.2rem;
    top: 50%;
    transform: translateY(-50%);
    /*font-size: 2em;*/
    transition: transform 0.3s ease;
}

/* When the accordion panel is open, the header gets the active class */
.eventlist .ui-accordion-header-active::after {
    content: '\f347';
    /* Dashicons for upward pointing arrow; adjust if necessary */
    /* Optionally, rotate the icon */
    transform: translateY(-50%) rotate(180deg);
}

.ter-kal-block-list .eventlist.ui-accordion .ui-accordion-header {
    margin-bottom: 0.1rem;
}


/* Custom Accordion panel styling */
.eventlist > div, .eventlist .ui-accordion-content {
    border: 1px solid #dddddd;
    border-top: none;
    background-color: #fff;
}

/* Reset for all PRO templates to prevent accordion styles from breaking them */
.eventlist_pro > div:not(.ui-accordion-content) {
    border: none;
    background-color: transparent;
}

.eventlist .eventlist_daytime {
    /*position:relative;top:-0.8rem;*/
    font-size: 0.9rem;
    border-radius: 0.5rem;
    padding: 0.4rem;
    margin: 0;
    opacity: 0.7;
}

.eventlist h2 {
    font-size: 1.4rem;
}

.eventlist hr {
    margin: 0.1rem;
}


.eventlist .ui-accordion-content {
    padding: 0.5rem;
}

.eventlist .ter_kal_event_details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 0;
}

.eventlist .ter_kal_event_details img {
    /*max-width: 90%;*/
    border-radius: 0.5rem;
}

/* button ----------------------------------------------- */
.eventlist button,
.eventlist .bootstrap_button {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #7b8793;
    background: #fff;
    border-color: #7b8793;
    width: 100%;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: break-word;
}

.eventlist button,
.eventlist .bootstrap_button:hover {
    color: #fff;
    background: #7b8793;
}

.eventlist button,
.eventlist .bootstrap_button:focus,
.bootstrap_button:visited {
    color: #7b8793;
    background: #dedede;
}

/* ------------------------------------------------------------------- */
/* ============================================
   CONTAINER-BASED RESPONSIVE SCALING
   ============================================ */
/*.eventlist_pro,
.eventlist {
    container-type: inline-size;
    container-name: tk-eventlist-block;
}
@container tk-eventlist-block (max-width: 400px) {
@container tk-eventlist-block ( (max-width: 768px) {

.ter-kal-block-list .eventlist,
.ter-kal-block-list .simple_list,
.ter-kal-block-list .ter-kal-content

*/

/* ------------------------------------------------------------------- */
@container (max-width: 768px) {
    .eventlist {
        font-size: 0.8rem;
    }

    .eventlist h4 {
        font-size: 0.9rem;
    }

    .eventlist h2 {
        font-size: 1rem;
    }

    .eventlist button,
    .eventlist .bootstrap_button {
        font-size: 0.7rem !important;
        line-height: 1.4rem;
        padding: 0.3rem;
        overflow: hidden;
    }
}



/* ------------------------------------------------------------------- */
/* Small containers (< 400px) - Widget areas */
@container (max-width: 400px) {

    .eventlist > h3 .header-text,
    .eventlist .ui-accordion-content,
    .eventlist button,
    .eventlist .bootstrap_button,
    .eventlist {
        font-size: 0.6rem !important;
    }

    .eventlist h4 {
        font-size: 0.7rem !important;
    }

    .eventlist h2 {
        font-size: 0.8rem !important;
    }

    .eventlist > h3 .header-text,
    .eventlist .ui-accordion-content,
    .eventlist button,
    .eventlist .bootstrap_button {
        line-height: 1.4rem;
        padding: 0.2rem;
    }

    .eventlist > h3 .accordeon_day,
    .eventlist .accordeon_icon {
        display: none;
    }

    .eventlist > h3 {
        padding-right: 1rem;
    }

    .eventlist > h3::after {
        font-size: 0.9rem;
    }
}

/* end Small containers */
/* ------------------------------------------------------------------- */