/* ============================================================
   Filialen Slider — Slick + custom free-scroll bar
   Theme color: #c10230
   ============================================================ */

/* ---------- Section wrapper ---------- */
.filialen-slider-section {
    padding: 40px 0 68px;
    background: #fff;
    overflow: hidden;
    position: relative;
}

.filialen-slider-section .section-heading {
    font-family: "DaxlineLight", Sans-serif;
    color: #c10230;
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 28px;
    padding: 0 4%;
}

/* ---------- Outer wrapper ---------- */
.filialen-slick-outer {
    position: relative;
    padding-bottom: 56px; /* space for scrollbar */
}

/* ---------- Slick overrides ---------- */
.filialen-slick-outer .filialen-slick .slick-list {
    overflow: visible;
    padding: 8px 0 !important;
    margin: 0 4%;
}

.filialen-slick-outer .filialen-slick .slick-track {
    display: flex;
    align-items: stretch;
}

/* ---------- Card ---------- */
.filialen-card {
    outline: none;
    padding: 0 10px;
    height: auto;
}

.filialen-card-inner {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(0,0,0,0.10);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
}

.filialen-card-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 38px rgba(193,2,48,0.18);
    color: inherit;
    text-decoration: none;
}

/* Image */
.filialen-card-img {
    position: relative;
    width: 100%;
    padding-top: 66%;
    overflow: hidden;
    background: #ececec;
}

.filialen-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.filialen-card-inner:hover .filialen-card-img img {
    transform: scale(1.05);
}

.filialen-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(193,2,48,0.10) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.filialen-card-inner:hover .filialen-card-img::after {
    opacity: 1;
}

/* Body */
.filialen-card-body {
    padding: 12px 14px 16px;
    text-align: center;
}

.filialen-card-title {
    font-family: "DaxlineLight", Sans-serif;
    font-size: 15px;
    color: #383838;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════════
   Custom scrollbar
   Layout:
     .filialen-scrollbar-wrap   — absolute container, full width
       .filialen-scrollbar-track — grey background bar
         .filialen-scrollbar-fill  — red filled portion (left side)
         .filialen-scrollbar-btn   — red circle handle, moves left↔right
   ══════════════════════════════════════════════════════════════ */

.filialen-scrollbar-wrap {
    position: absolute;
    bottom: 8px;
    left: 4%;
    right: 4%;
    height: 40px;                   /* tall enough to hold the handle */
    display: flex;
    align-items: center;
}

/* Grey rail */
.filialen-scrollbar-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.13);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

/* Red fill — left side of handle */
.filialen-scrollbar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: #c10230;
    border-radius: 10px 0 0 10px;
    pointer-events: none;
    will-change: width;
}

/* Circle drag handle — absolutely positioned, moves along the rail */
.filialen-scrollbar-btn {
    position: absolute;
    top: 50%;
    left: 0;                        /* JS will update this */
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #c10230 !important;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 5px 20px rgba(193,2,48,0.55);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2;
    will-change: left;
}

.filialen-scrollbar-btn:hover,
.filialen-scrollbar-btn:active,
.filialen-scrollbar-btn.is-dragging {
    cursor: grabbing;
    background: #c10230;
    box-shadow: 0 5px 20px rgba(193,2,48,0.55);
}

/* SVG icon inside the button */
.filialen-scrollbar-btn svg {
    display: block;
    width: 24px;
    height: 21px;
    flex-shrink: 0;
    pointer-events: none;
    overflow: visible;
}

/* ---------- Slick arrows / dots — hide ---------- */
.filialen-slick-outer .slick-dots  { display: none !important; }
.filialen-slick-outer .slick-prev,
.filialen-slick-outer .slick-next  { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .filialen-slick-outer .filialen-slick .slick-list { margin: 0 3%; }
    .filialen-scrollbar-wrap { left: 3%; right: 3%; }
}

@media (max-width: 575px) {
    .filialen-slider-section .section-heading { font-size: 22px; }
    .filialen-card-title { font-size: 14px; }
    .filialen-card { padding: 0 6px; }
    .filialen-slick-outer .filialen-slick .slick-list { margin: 0 2%; }
    .filialen-scrollbar-wrap { left: 2%; right: 2%; }
    .filialen-scrollbar-btn { width: 34px; height: 34px; }
}
