/* ==========================================================
   ZSH Slider 1.1
   Einheitliche rechteckige Kacheln
========================================================== */

.zshsl,
.zshsl * {
    box-sizing: border-box;
}

/* ==========================================================
   SLIDER
========================================================== */

.zshsl {
    width: 100%;
    font-family: 'Roboto', Arial, sans-serif;
}

.zshsl-track {
    display: grid;

    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 3);
    grid-auto-rows: 260px;

    gap: 18px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;

    padding: 4px 2px 16px;
}

.zshsl-track::-webkit-scrollbar {
    display: none;
}

/* ==========================================================
   EINHEITLICHE RECHTECKIGE KACHELN
========================================================== */

.zshsl-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 260px;
    min-width: 0;
    min-height: 0;

    gap: 10px;
    padding: 22px;

    overflow: hidden;

    border: 1px solid #D1CFCF;
    border-left: 5px solid #312783;
    border-radius: 0;

    background: #FFFFFF;
    color: #111111;

    text-decoration: none;

    scroll-snap-align: start;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.zshsl a.zshsl-card:hover,
.zshsl a.zshsl-card:focus-visible {
    transform: translateY(-3px);
    border-color: #312783;

    box-shadow:
        0 7px 22px rgba(49, 39, 131, 0.1);

    text-decoration: none;
}

/* ==========================================================
   GOLDENER AKZENT
========================================================== */

.zshsl-accent {
    flex-shrink: 0;

    width: 34px;
    height: 4px;

    background: #FCA320;
}

/* ==========================================================
   BILDER
========================================================== */

.zshsl-image {
    display: block;
    flex-shrink: 0;

    width: 100%;
    height: 80px;

    overflow: hidden;
}

.zshsl-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* ==========================================================
   METADATEN
========================================================== */

.zshsl-meta {
    flex-shrink: 0;

    font-size: 12px;
    line-height: 1.4;

    color: #666666;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================
   TITEL
========================================================== */

.zshsl-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;

    color: #312783;

    overflow-wrap: anywhere;
}

/* ==========================================================
   BESCHREIBUNG
========================================================== */

.zshsl-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;

    font-size: 14px;
    line-height: 1.5;

    color: #333333;

    overflow-wrap: anywhere;
}

/* ==========================================================
   NAVIGATION
========================================================== */

.zshsl-controls {
    display: flex;
    justify-content: flex-end;

    gap: 9px;
    margin-top: 8px;
}

.zshsl-controls button {
    width: 36px;
    height: 36px;

    border: 1px solid #312783;
    border-radius: 0;

    background: #FFFFFF;
    color: #312783;

    cursor: pointer;

    font-size: 18px;
}

.zshsl-controls button:hover:not(:disabled),
.zshsl-controls button:focus-visible {
    background: #312783;
    color: #FFFFFF;
}

.zshsl-controls button:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ==========================================================
   TABLET – ZWEI KACHELN
========================================================== */

@media (max-width: 900px) {

    .zshsl-track {
        grid-auto-columns: calc((100% - 18px) / 2);
    }

}

/* ==========================================================
   SMARTPHONE – EINE KACHEL
========================================================== */

@media (max-width: 600px) {

    .zshsl-track {
        grid-auto-columns: 100%;
    }

    .zshsl-card {
        padding: 20px;
    }

}

/* ==========================================================
   REDUZIERTE ANIMATION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .zshsl-track {
        scroll-behavior: auto;
    }

    .zshsl-card {
        transition: none;
    }

}
