/* ============================================================
   262-php-09-listing-toolbar — Suche, Filter, Blättern
   ============================================================ */

.x262-toolbar {
    display: grid;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-soft, #eceae5);
}

.x262-toolbar__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
}

/* Beschriftung nur für Screenreader — das Feld erklärt sich
   durch den Platzhalter, braucht aber trotzdem ein Label. */
.x262-toolbar__srlabel {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.x262-toolbar__search {
    width: 100%;
    padding: 9px 11px;
    font: var(--w-body, 400) var(--fs-small, 1rem)/1.5 var(--font-body, Roboto, sans-serif);
    color: var(--text, #14171a);
    background: #fff;
    border: 1px solid var(--border, #dfdbd4);
    border-radius: var(--radius, 3px);
}
.x262-toolbar__search:focus {
    outline: 0;
    border-color: var(--brand, #1E8A3B);
    box-shadow: 0 0 0 3px var(--brand-tint, #F3F8ED);
}

.x262-toolbar__sort {
    padding: 9px 32px 9px 11px;
    font: var(--w-body, 400) var(--fs-meta, 1rem)/1.4 var(--font-body, Roboto, sans-serif);
    color: var(--text-2, #3d4247);
    background-color: #fff;
    border: 1px solid var(--border, #dfdbd4);
    border-radius: var(--radius, 3px);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23787774' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    cursor: pointer;
}

/* ---- Facetten -------------------------------------------- */
.x262-toolbar__facets {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.x262-chip {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    padding: 6px 12px;
    font: var(--w-body, 400) var(--fs-meta, 1rem)/1.4 var(--font-body, Roboto, sans-serif);
    color: var(--text-2, #3d4247);
    background: #fff;
    border: 1px solid var(--border, #dfdbd4);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.x262-chip:hover { background: var(--surface-2, #f4f2ee); border-color: var(--faint, #a4a8ac); }
.x262-chip[aria-pressed="true"] {
    background: var(--text, #14171a);
    border-color: var(--text, #14171a);
    color: #fff;
}
.x262-chip__count { opacity: .6; font-variant-numeric: tabular-nums; }

/* ---- Zusammenfassung ------------------------------------- */
.x262-toolbar__summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    margin: 0;
    font-size: var(--fs-meta, 1rem);
    color: var(--text-muted, #6d7278);
}

/* ---- Blättern -------------------------------------------- */
.x262-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft, #eceae5);
}

.x262-pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding-inline: .75rem;
    border-radius: var(--radius, 3px);
    font: var(--w-body, 400) var(--fs-meta, 1rem) var(--font-body, Roboto, sans-serif);
    color: var(--text-2, #3d4247);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}
.x262-pager__link:hover { background: var(--surface-2, #f4f2ee); color: var(--text, #14171a); }
.x262-pager__link[aria-current="page"] {
    background: var(--text, #14171a);
    color: #fff;
}

@media (max-width: 780px) {
    .x262-toolbar__main { grid-template-columns: minmax(0, 1fr); }
    .x262-toolbar__facets {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .25rem;
        scrollbar-width: none;
    }
    .x262-toolbar__facets::-webkit-scrollbar { display: none; }
}
/* Abgeschaltet: Pfeile am Anfang/Ende, und die Seite, auf der man steht.

   :not([aria-current]) ist der Punkt. Das Filter-Skript setzt aria-disabled
   AUCH auf die aktuelle Seitenzahl — sie ist ja nicht anklickbar, man ist
   schon dort. Ohne die Ausnahme verblasste dadurch genau die Zahl, die
   hervorstechen soll: die aktive Seite sah aus wie die inaktivste.
   pointer-events gilt weiterhin fuer beide. */
.x262-pager__link[aria-disabled="true"]:not([aria-current="page"]) { opacity: .35; }
.x262-pager__link[aria-disabled="true"] { pointer-events: none; }

/* Passt alles auf EINE Seite, bleibt die Leiste trotzdem stehen
   (data-always) — mit einer einzigen "1" und zwei abgeschalteten Pfeilen.
   Die Klasse setzt 262-php-16-micro-filter.

   In diesem Zustand ist die Leiste Auskunft, keine Bedienung. Sie wird
   deshalb zurueckgenommen: keine Trennlinie, weniger Abstand darueber.
   Sonst kuendigt eine kraeftige Linie etwas an, worunter nichts passiert. */
.x262-pager.is-single {
    border-top-color: transparent;
    margin-top: 1.5rem;
    padding-top: .5rem;
}
