/* ==========================================================
   CATEGORY BAR
   ========================================================== */

.home-nav {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #2d3b50;
    padding: 1px 0;
}

/* Inner zentriert */
.home-nav__inner {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* List */
.home-nav__list {
    width: 100%;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* LI nur als Container */
.home-nav__list li {
    flex: 1;
    position: relative;
}

/* =============================== */
/* HOME CATEGORY LINKS             */
/* =============================== */

.home-nav__list li a {
    width: 100%;
    padding: 8px 0;

    background-color: rgb(45, 59, 80);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-family);

    text-decoration: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 0;
    transition: background-color 0.2s ease;
}

/* Hover */
.home-nav__list li a:hover {
    background-color: rgba(255,255,255,0.18);
}

/* Active (Mausklick) */
.home-nav__list li a:active {
    background-color: rgba(255,255,255,0.28);
}

/* Fokus (Tastatur) */
.home-nav__list li a:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.5);
}

/* Aktive Kategorie (per PHP) */
.home-nav__list li a.active {
    background-color: rgba(255,255,255,0.25);
}

/* =============================== */
/* TRENNSTRICHE ZWISCHEN KATEGORIEN */
/* =============================== */

/* Trennstrich rechts – außer beim letzten */
.home-nav__list li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;

    height: 100%;
    width: 2px;
    background-color: rgba(255,255,255,0.3);
}

/* ─── Responsive: horizontal scroll on mobile ─── */
@media (max-width: 768px) {
    .home-nav__inner {
        justify-content: flex-start;
    }

    .home-nav__list {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .home-nav__list::-webkit-scrollbar { display: none; }

    .home-nav__list li {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .home-nav__list li a {
        padding: 8px 16px;
        font-size: 0.82rem;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .home-nav__list li a {
        padding: 8px 12px;
        font-size: 0.78rem;
        min-height: 36px;
    }
}
