/* ══════════════════════════════════════
   ewmfunk.css – EWMS Neue Funktionalitäten
   INTER OFFICE GmbH
══════════════════════════════════════ */

/* ── PAGE ── */
.ewmfunk-wrap {
    padding: 0 0 3rem;
}

.page-title h1 {
    color: #1a3a5c;
    font-size: 2rem;
    margin: 0 0 0.2rem;
}
.page-title p {
    color: #777;
    margin-bottom: 1.4rem;
}

/* ══════════════════════════════════════
   YEAR TIMELINE
══════════════════════════════════════ */
.year-timeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 1.8rem;
    position: relative;
}

/* connecting line behind cards */
.year-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #d4dde6;
    transform: translateY(-50%);
    z-index: 0;
}

.year-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 32px;
    background: #fff;
    border: 2px solid #d4dde6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 130px;
    margin-right: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    user-select: none;
}

.year-card:last-child {
    margin-right: 0;
}

.year-card .yc-year {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a3a5c;
    line-height: 1;
    letter-spacing: 0.5px;
}

.year-card .yc-count {
    font-size: 0.75rem;
    color: #8899a8;
    font-weight: 500;
    white-space: nowrap;
}

.year-card .yc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4dde6;
    margin-top: 4px;
    transition: background 0.25s;
}

/* hover */
.year-card:hover {
    border-color: #2596BE;
}

.year-card:hover .yc-year {
    color: #2596BE;
}

.year-card:hover .yc-dot {
    background: #2596BE;
}

/* active */
.year-card.active {
    background: #17506b !important;
    border-color: #17506b !important;
    box-shadow: 0 6px 20px rgba(23,80,107,0.35);
}
.year-card.active .yc-year  { color: #fff; }
.year-card.active .yc-count { color: rgba(255,255,255,0.78); }
.year-card.active .yc-dot   { background: rgba(255,255,255,0.6); }

/* ══════════════════════════════════════
   OUTER SLIDER
══════════════════════════════════════ */
.slider-outer {
    position: relative;
    padding: 0 58px;
}

.features-slider {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.feature-slide {
    min-width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

/* ── LAYOUT: levo slika, desno tekst ── */
.feature-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* ── IMAGE SIDE ── */
.feature-images {
    width: 45%;
    flex-shrink: 0;
}

.main-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.2);
    display: block;
}

.img-caption {
    font-size: 0.78rem;
    color: #8899a8;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* ── THUMBNAILS ── */
.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbs img {
    width: 90px;
    height: 62px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.65;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.thumbs img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbs img.active {
    opacity: 1;
    border-color: #0087c3;
    box-shadow: 0 0 0 2px rgba(0,135,195,0.25);
}

.thumb-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.thumb-caption {
    font-size: 0.70rem;
    color: #8899a8;
    font-style: italic;
    text-align: center;
    max-width: 90px;
    line-height: 1.3;
}

/* ── TEXT SIDE ── */
.feature-text {
    flex: 1;
    min-width: 0;
}

.feature-text .badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.badge-green  { background: #28a745; }
.badge-yellow { background: #ffc107; }

.feature-text h3 {
    color: #1a3a5c;
    font-size: 1.35rem;
    margin: 0.2rem 0 1rem;
    line-height: 1.35;
}

.feature-text p,
.feature-text li {
    line-height: 1.7;
    color: #444;
    font-size: 0.92rem;
}

.feature-text ul.styled-list {
    padding-left: 1.2rem;
    margin: 0.3rem 0 0.7rem;
}
.feature-text ul.styled-list li { margin-bottom: 0.25rem; }

/* ══════════════════════════════════════
   PREV / NEXT ARROWS
══════════════════════════════════════ */
.slider-outer .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: #17506b !important;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 10;
    transition: background 0.2s, transform 0.15s;
}

.slider-outer .slider-btn:hover {
    background: #17506b !important;
    transform: translateY(-50%) scale(1.08);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}
.slider-btn.prev  { left: 0; }
.slider-btn.next  { right: 0; }

/* ══════════════════════════════════════
   DOTS + COUNTER
══════════════════════════════════════ */
.slider-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0 16px;
    border-top: 1px solid #eef1f5;
}

.feat-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ccd5dc;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.feat-dot:hover {
    transform: scale(1.15);
}

.feat-dot.active {
    background: #17506b !important;
    transform: scale(1.35);
}

.slider-counter {
    font-size: 0.78rem;
    color: #8899a8;
    margin-left: 8px;
}

/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
#ewm-lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#ewm-lb.open { display: flex; }
#ewm-lb img  { max-width: 93vw; max-height: 90vh; border-radius: 6px; }
#ewm-lb-close {
    position: absolute;
    top: 14px;
    right: 20px;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* ══════════════════════════════════════
   YEAR SWITCH ANIMATION
══════════════════════════════════════ */
.features-slider.switching .slides {
    opacity: 0;
    transform: translateX(20px) !important;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.features-slider.switching-in .slides {
    opacity: 1;
    transform: translateX(0) !important;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .feature-layout     { flex-direction: column; }
    .feature-images     { width: 100%; }
    .slider-outer       { padding: 0 44px; }
    .year-card          { padding: 12px 20px; min-width: 100px; }
    .year-card .yc-year { font-size: 1.2rem; }
}

@media (max-width: 500px) {
    .year-timeline::before { display: none; }
    .year-card { flex: 1; margin-right: 10px; padding: 10px 12px; }
}

.feature-text p,
.feature-text li {
    line-height: 1.7;
    color: #777;
    font-size: 1.1rem;
}

.feature-text h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}