/* ============================================================
   FF DIBA Slider – Vollbild + dezenter Overlay unten
   ============================================================ */

.ffdiba-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
    user-select: none;
    /* Höhe per inline-style, z.B. height:360px */
}

/* Track füllt Slider exakt */
.ffdiba-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Einzelner Slide – absolut, füllt Track */
.ffdiba-slide {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
}
.ffdiba-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ── Vollbild-Bild (auch als <a>-Link) ── */
.ffdiba-slide-media {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: #fff;
    display: block;         /* <a>-Tag als Block */
    text-decoration: none;
    cursor: pointer;
}
.ffdiba-slide-media img,
.ffdiba-slide-media .wp-post-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;   /* Grafiken/Icons vollständig zeigen */
    display: block;
}

/* ── Gradient-Overlay unten ── */
.ffdiba-slide-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    /* Dezenter Gradient: von dunkel nach transparent */
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.15) 70%,
        transparent 100%
    );
    padding: 48px 20px 14px;
    z-index: 5;
    box-sizing: border-box;
}

.ffdiba-slide-tag {
    display: inline-block;
    background: #C8191A;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 5px;
}

.ffdiba-slide-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.ffdiba-slide-title a {
    color: #fff;
    text-decoration: none;
}
.ffdiba-slide-title a:hover {
    color: #ffd0d0;
    text-decoration: none;
}

.ffdiba-slide-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ffdiba-slide-date {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.ffdiba-slide-btn {
    display: inline-block;
    background: #C8191A;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 11px;
    padding: 5px 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}
.ffdiba-slide-btn:hover {
    background: #9E1212;
    color: #fff;
    text-decoration: none;
}

/* ── Slide-Zähler ── */
.ffdiba-slide-num {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.85);
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
    padding: 2px 8px;
    border-radius: 20px;
    z-index: 10;
    display: none;
}
.ffdiba-slide.active .ffdiba-slide-num { display: block; }

/* ── Pfeile ── */
.ffdiba-slider-prev,
.ffdiba-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}
.ffdiba-slider-prev { left: 10px; }
.ffdiba-slider-next { right: 10px; }
.ffdiba-slider-prev:hover,
.ffdiba-slider-next:hover { background: #C8191A; border-color: #C8191A; }

/* ── Dots ── */
.ffdiba-slider-dots {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 20;
    display: flex;
    gap: 5px;
    align-items: center;
}
.ffdiba-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.ffdiba-dot.active { background: #C8191A; transform: scale(1.3); }
.ffdiba-dot:hover  { background: rgba(255,255,255,0.7); }

/* ── Progress-Bar ── */
.ffdiba-slider-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.12);
    z-index: 20;
    overflow: hidden;
}
.ffdiba-slider-progress-bar {
    height: 100%;
    background: #C8191A;
    width: 0%;
    animation: ffdiba-progress linear infinite;
}
@keyframes ffdiba-progress { from { width: 0%; } to { width: 100%; } }
.ffdiba-slider-progress-bar.paused { animation-play-state: paused; }

/* Kein Beitrag */
.ffdiba-slider-empty {
    padding: 30px 20px;
    text-align: center;
    background: #f7f7f7;
    color: #888;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .ffdiba-slider { height: auto !important; }
    .ffdiba-slider-track { height: auto; }
    .ffdiba-slide {
        position: relative;
        top: auto; right: auto; bottom: auto; left: auto;
        display: none;
    }
    .ffdiba-slide.active { display: block; }
    .ffdiba-slide-media {
        position: relative;
        height: 200px;
    }
    .ffdiba-slide-overlay { padding: 36px 16px 12px; }
    .ffdiba-slide-title { font-size: 15px; }
}
