/* -------------------------------------------------------
 * Programm Slider
 * ----------------------------------------------------- */

#main #programm {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    height: auto;
}

.programm-swiper {
    width: 100%;
}

.programmslider-ueberschrift-programm {
    font-size: 26px;
    color: var(--farbe-dunkelgrau);
    font-weight: 700;
}

#programm .swiper-wrapper {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
}

#programm .swiper-slide,
#programm .programm-day-slide {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    margin-right: 0 !important;
    height: auto !important;
}

#programm .swiper-slide-active {
    height: auto !important;
}

#programm #donnerstag,
#programm #freitag,
#programm #samstag,
#programm #sonntag {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#programm .programm-day-slide > .vc_column_container,
#programm .programm-day-slide > .wpb_column,
#programm #donnerstag > .vc_column_container,
#programm #freitag > .vc_column_container,
#programm #samstag > .vc_column_container,
#programm #sonntag > .vc_column_container {
    width: 100% !important;
    max-width: 100% !important;
}

#programm .wpb_text_column,
#programm .wpb_text_column .wpb_wrapper,
#programm .wpb_raw_code,
#programm .wpb_raw_code .wpb_wrapper {
    margin-bottom: 0 !important;
}

#programm .programm-item-head br {
    display: none !important;
}

/* -------------------------------------------------------
 * Obere Navigation
 * ----------------------------------------------------- */

.programm-topnav {
    width: min(620px, calc(100% - 40px));
    margin: 0 auto 10px;
    min-height: 54px;
    background: var(--farbe-weiss);
    border-radius: 999px;
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    align-items: center;
    box-shadow: 0 10px 24px rgba(50, 67, 73, 0.08);
}

.programm-swiper-prev,
.programm-swiper-next {
    width: 54px;
    height: 54px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.programm-swiper-prev::before,
.programm-swiper-next::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-top: 3px solid var(--farbe-dunkelgrau);
    border-right: 3px solid var(--farbe-dunkelgrau);
}

.programm-swiper-prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.programm-swiper-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.programm-current-day {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 800;
    color: var(--farbe-rot);
    text-align: center;
}

.programm-calendar-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    background-color: var(--farbe-dunkelgrau);
    -webkit-mask-image: url("/wp-content/uploads/2026/05/Icon-Programm.svg");
    mask-image: url("/wp-content/uploads/2026/05/Icon-Programm.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* -------------------------------------------------------
 * Themenschwerpunkt und Filter
 * ----------------------------------------------------- */

.programm-theme {
    margin: 0 auto 22px;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
    color: var(--farbe-dunkelgrau);
}

.programm-theme strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--farbe-dunkelgrau);
}

.programm-theme-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}

.programm-filter-row {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto 12px;
    display: flex;
    justify-content: flex-end;
}

.programm-filter-button {
    min-height: 38px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--farbe-weiss);
    color: var(--farbe-dunkelgrau);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(50, 67, 73, 0.08);
}

/* -------------------------------------------------------
 * Programmliste
 * ----------------------------------------------------- */

#programm .programm-list {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 8px;
}

#programm .programm-item {
    width: 100%;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--farbe-dunkelgrau);
    color: var(--farbe-weiss);
}

/* -------------------------------------------------------
 * Programmpunkt Kopfzeile
 * ----------------------------------------------------- */

#programm .programm-item-head {
    position: relative;
    width: 100%;
    min-height: 46px;
    display: grid !important;
    grid-template-columns: 210px minmax(0, 1fr) 48px;
    align-items: center;
    cursor: pointer;
    box-sizing: border-box;
    background: var(--farbe-dunkelgrau);
    color: var(--farbe-weiss);
}

#programm .programm-item.is-open .programm-item-head {
    background: linear-gradient(90deg, rgba(226, 49, 45, 1) 0%, rgba(252, 200, 2, 1) 100%);
    color: var(--farbe-weiss);
}

#programm .programm-time {
    padding-left: 22px;
    font-size: 22px;
    font-weight: 300;
    line-height: 1.2;
    color: inherit;
}

#programm .programm-title {
    min-width: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 500;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

/* Kreis */
#programm .programm-item-head::after {
    content: "";
    width: 30px;
    height: 30px;
    justify-self: center;
    border-radius: 50%;
    background: var(--farbe-weiss);
    position: relative;
    display: block;
}

/* Pfeil */
#programm .programm-item-head::before {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 3px solid var(--farbe-dunkelgrau);
    border-bottom: 3px solid var(--farbe-dunkelgrau);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
    z-index: 2;
}

#programm .programm-item.is-open .programm-item-head::before {
    transform: translateY(-35%) rotate(-135deg);
}

/* -------------------------------------------------------
 * Programmpunkt Inhalt
 * ----------------------------------------------------- */

#programm .programm-item-content {
    width: 100%;
    box-sizing: border-box;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 26px 0 232px;
    background: var(--farbe-weiss);
    color: var(--farbe-dunkelgrau);
    font-size: 15px;
    line-height: 1.45;
    transition:
        max-height 0.75s ease,
        opacity 0.45s ease,
        padding-top 0.45s ease,
        padding-bottom 0.45s ease;
}

#programm .programm-item.is-open .programm-item-content {
    max-height: 500px;
    opacity: 1;
    padding-top: 18px;
    padding-bottom: 22px;
}

#programm .programm-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 10px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef1f2;
    color: #8b969c;
    font-size: 13px;
    font-weight: 500;
}

#programm .programm-item-content p {
    margin: 0;
    max-width: 720px;
    color: var(--farbe-dunkelgrau);
}

/* -------------------------------------------------------
 * Meta Icons: Präsentation und Standort
 * ----------------------------------------------------- */

#programm .programm-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

#programm .programm-meta-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    column-gap: 12px;
}

#programm .programm-meta-item::before {
    content: "";
    width: 34px;
    height: 34px;
    display: block;
    background-color: var(--farbe-dunkelgrau);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

#programm .programm-meta-speaker::before {
    -webkit-mask-image: url("/wp-content/uploads/2026/05/Icon-Programm-Praesentation.svg");
    mask-image: url("/wp-content/uploads/2026/05/Icon-Programm-Praesentation.svg");
}

#programm .programm-meta-location::before {
    -webkit-mask-image: url("/wp-content/uploads/2026/05/Icon-Programm-Standort.svg");
    mask-image: url("/wp-content/uploads/2026/05/Icon-Programm-Standort.svg");
}

#programm .programm-meta a {
    color: var(--farbe-rot);
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    line-height: 1.3;
}

/* -------------------------------------------------------
 * Button unten
 * ----------------------------------------------------- */

.programm-full-link-wrap {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    padding-bottom: 30px;
}

.programm-full-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--farbe-weiss);
    color: var(--farbe-dunkelgrau);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(50, 67, 73, 0.10);
    transition: 0.2s ease;
}

.programm-full-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(50, 67, 73, 0.16);
}

.programm-full-link span {
    width: 11px;
    height: 11px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

/* -------------------------------------------------------
 * Alte Swiper-Pfeile ausblenden
 * ----------------------------------------------------- */

#programm .swiper-button-next,
#programm .swiper-button-prev {
    display: none !important;
}

/* -------------------------------------------------------
 * Mobile
 * ----------------------------------------------------- */

@media (max-width: 767px) {
    #main #programm {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        left: auto;
        background-color: var(--farbe-hellblau);
    }

    .programmslider-ueberschrift-programm {
        padding: 20px;
        font-size: 26px;
        color: var(--farbe-dunkelgrau);
        font-weight: 700;
    }

    .programm-topnav {
        width: 100%;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        min-height: 74px;
        margin-bottom: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .programm-swiper-prev,
    .programm-swiper-next {
        width: 44px;
        height: 74px;
    }

    .programm-current-day {
        gap: 8px;
        font-size: clamp(23px, 6vw, 27px);
        line-height: 1.1;
        white-space: nowrap;
    }

    .programm-current-day-text {
        white-space: nowrap;
        font-weight: 600;
    }

    .programm-calendar-icon {
        display: none;
    }

    .programm-theme {
        padding: 24px 20px 18px;
        margin-bottom: 0;
        font-size: 16px;
    }

    .programm-theme strong {
        font-size: 20px;
    }

    .programm-theme-icon {
        width: 30px;
        height: 30px;
    }

    #programm .programm-list {
        width: calc(100% - 30px);
        padding-bottom: 8px;
    }

    #programm .programm-item {
        margin-bottom: 12px;
        border-radius: 8px;
        overflow: hidden;
        background: var(--farbe-dunkelgrau);
    }

    #programm .programm-item-head {
        grid-template-columns: minmax(0, 1fr) 58px;
        min-height: 92px;
        padding: 14px 0;
        align-items: center;
    }

    #programm .programm-time {
        grid-column: 1;
        padding-left: 20px;
        padding-bottom: 6px;
        font-size: 21px;
        line-height: 1.1;
    }

    #programm .programm-title {
        grid-column: 1;
        padding-left: 20px;
        padding-right: 10px;
        font-size: 23px;
        line-height: 1.15;
    }

    #programm .programm-item-head::after {
        grid-column: 2;
        grid-row: 1 / span 2;
        width: 40px;
        height: 40px;
    }

    #programm .programm-item-head::before {
        right: 22px;
        width: 13px;
        height: 13px;
    }

    #programm .programm-item-content {
        padding: 0 22px;
        font-size: 18px;
    }

    #programm .programm-item.is-open .programm-item-content {
        padding-top: 20px;
        padding-bottom: 24px;
    }

    #programm .programm-category {
        font-size: 16px;
        min-height: 30px;
    }

    #programm .programm-meta-item {
        grid-template-columns: 30px 1fr;
        column-gap: 10px;
    }

    #programm .programm-meta-item::before {
        width: 30px;
        height: 30px;
    }

    #programm .programm-meta a {
        font-size: 16px;
    }

    .programm-full-link {
        min-height: 46px;
        padding: 0 22px;
        font-size: 13px;
    }
}