/* 
 * Prodata Post-Types Plugin Styles 
 */

:root {
    --pd-orange: #f58220;
    --pd-orange-hover: #e07215;
    --pd-lightblue: #d3e1f1;
    --pd-blue: #4c75a3;
    --pd-bg-gray: #f2f2f2;
    --pd-text: #333333;
}

.prodata-success-stories,
.prodata-webinars-wrap {
    font-family: inherit;
    color: var(--pd-text);
    margin-bottom: 50px;
    box-sizing: border-box;
}

.prodata-success-stories *,
.prodata-webinars-wrap * {
    box-sizing: border-box;
}

/* =========================================
   1. Success Stories
   ========================================= */

/* Logo Slider */
.pss-slider-container {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    margin: 30px 0;
}

.pss-slider-container::before {
    content: "";
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 0;
    right: 0;
    background-color: var(--pd-lightblue);
    z-index: 0;
}

.pss-slider-track-wrap {
    overflow: hidden;
    flex-grow: 1;
    margin: 0 20px;
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

.pss-slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    align-items: center;
}

.pss-slide {
    flex: 0 0 20%;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.3s, filter 0.3s, transform 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border: 2px solid transparent;
    border-radius: 8px;
    height: 100px;
}

.pss-slide img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: mix-blend-mode 0.3s;
}

.pss-slide.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.2);
    background-color: #fff;
    border-color: var(--pd-orange);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 3;
    position: relative;
}

.pss-slide.active img, .pss-slide:hover img {
    mix-blend-mode: normal;
}

.pss-slide:not(.active):hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.08);
}

.pss-arrow {
    background-color: var(--pd-orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    padding: 3px;
    transition: background-color 0.2s, transform 0.2s;
    position: relative;
    z-index: 2;
}
.pss-arrow:hover {
    background-color: var(--pd-orange-hover);
    transform: scale(1.05);
}

/* Details Section */
.pss-details-container {
    text-align: left;
    margin-top: 30px;
}

.pss-detail-item {
    display: none;
    animation: pssFadeIn 0.5s ease;
}

.pss-detail-item.active {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.pss-detail-left {
    flex: 0 0 50%;
    max-width: 50%;
}

.pss-detail-right {
    flex: 1;
}

@keyframes pssFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pss-customer-name {
    font-size: 18px;
    margin-bottom: 20px;
    margin-top: 0;
    font-weight: normal;
}

.pss-video-wrapper {
    width: 100%;
    position: relative;
    background-color: #000;
    aspect-ratio: 16/9;
}

.pss-video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background-color: #000;
}

.pss-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.pss-content {
    width: 100%;
}
.pss-content h4 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 0;
}


/* =========================================
   2. Webinare (Timeline & Grid)
   ========================================= */

/* Timeline Styles */
.pw-timeline-wrap {
    position: relative;
    padding-left: 160px;
    margin-bottom: 70px;
}

.pw-timeline-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 135px;
    width: 2px;
    background-color: var(--pd-orange);
}

.pw-timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: flex-start;
}

.pw-timeline-date {
    position: absolute;
    left: -160px;
    width: 110px;
    text-align: right;
    color: var(--pd-orange);
}

.pw-timeline-date .pw-t-date {
    display: block;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
}

.pw-timeline-date .pw-t-time {
    display: block;
    font-size: 14px;
    color: var(--pd-text);
    margin-top: 5px;
}

.pw-timeline-date::after {
    content: "";
    position: absolute;
    right: -36px;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid var(--pd-orange);
    z-index: 2;
}

.pw-timeline-card {
    flex: 1;
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.pw-t-image {
    flex: 0 0 40%;
}

.pw-t-image img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    background-color: var(--pd-blue);
}

.pw-t-content {
    flex: 1;
    padding: 30px 30px 30px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pw-t-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.pw-t-header h2 {
    font-size: 26px;
    font-weight: bold;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.pw-pill {
    background-color: var(--pd-lightblue);
    color: var(--pd-text);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 5px;
}

.pw-desc {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.pw-t-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Global Buttons & Badges */
.pw-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}
.pw-btn-orange {
    background-color: var(--pd-orange);
    color: #fff;
}
.pw-btn-orange:hover {
    background-color: var(--pd-orange-hover);
    color: #fff;
}
.pw-btn-light {
    background-color: var(--pd-lightblue);
    color: var(--pd-text);
    font-size: 14px;
    padding: 8px 20px;
}
.pw-btn-light:hover {
    background-color: #bdcee0;
}

/* Past Webinars Grid */
.pw-past-webinars-container {
    background-color: var(--pd-bg-gray);
    padding: 40px;
}

.pw-past-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 30px 0;
    color: var(--pd-text);
}

.pw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.pw-grid-item {
    display: flex;
    flex-direction: column;
}

.pw-grid-item .pw-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pw-grid-item .pw-desc {
    flex-grow: 1;
}

.pw-grid-item .pw-btn {
    align-self: flex-start;
}

.pw-grid-item .pw-image {
    position: relative;
    margin-bottom: 20px;
}
.pw-grid-item .pw-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background-color: var(--pd-blue);
}

.pw-arrow-badge {
    position: absolute;
    bottom: -15px;
    right: -10px;
    background-color: var(--pd-orange);
    color: #fff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    line-height: 1;
    padding-bottom: 2px;
    text-decoration: none;
    transition: transform 0.2s;
}

.pw-arrow-badge:hover {
    transform: scale(1.1);
    color: #fff;
}

.pw-grid-item .pw-title-small {
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

/* Pagination */
.pw-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pw-page-btn {
    padding: 8px 16px;
    background: #fff;
    color: var(--pd-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}

.pw-page-btn:hover, .pw-page-btn.active {
    background: var(--pd-orange);
    color: #fff;
}

.pw-loading {
    opacity: 0.5;
    pointer-events: none;
}


/* =========================================
   3. Single Templates (Detailansichten)
   ========================================= */
.prodata-single-wrap {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: inherit;
    color: var(--pd-text);
}
.prodata-single-wrap img, 
.prodata-single-wrap video {
    max-width: 100%;
    height: auto;
    display: block;
}
.pd-single-header {
    margin-bottom: 40px;
}
.pd-single-header h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}
.pd-single-meta {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}
.pd-single-media {
    margin-bottom: 40px;
}
.pd-single-content {
    font-size: 18px;
    line-height: 1.6;
}
.pd-single-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}


/* =========================================
   4. Responsive Media Queries
   ========================================= */
@media(max-width: 991px) {
    .pss-slide {
        flex: 0 0 33.333%;
    }
    .pw-timeline-card {
        flex-direction: column;
        gap: 0;
    }
    .pw-t-image {
        flex: none;
        width: 100%;
    }
    .pw-t-content {
        padding: 30px;
    }
}

@media(max-width: 768px) {
    .pss-slide {
        flex: 0 0 50%;
    }
    .pss-detail-item.active {
        flex-direction: column;
        gap: 20px;
    }
    .pss-detail-left, .pss-detail-right {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Mobile Timeline - Linie ausblenden, Date drüber */
    .pw-timeline-wrap {
        padding-left: 0;
    }
    .pw-timeline-wrap::before {
        display: none;
    }
    .pw-timeline-item {
        flex-direction: column;
        margin-bottom: 50px;
        gap: 15px;
    }
    .pw-timeline-date {
        position: relative;
        left: 0;
        width: auto;
        text-align: left;
    }
    .pw-timeline-date .pw-t-time {
        display: inline-block;
        margin-left: 10px;
    }
    .pw-timeline-date::after {
        display: none;
    }
}

@media(max-width: 480px) {
    .pss-slide {
        flex: 0 0 100%;
    }
    .pw-grid {
        grid-template-columns: 1fr;
    }
}


### 5. JavaScript AJAX Event Listener hinzufügen


