@charset "UTF-8";

/* ═══════════════════════════════════════════════════════════════
   FLASCHENFINDER | catalog.css (Katalog- und Suchergebnisseite)
   Mobile first. Tokens aus components.css, Ergänzungen unten.
   Die Seite funktioniert vollständig ohne JavaScript.
   ═══════════════════════════════════════════════════════════════ */

.cat-page {
    --cat-accent-text: #9C5700;   /* #ff9d00 als Text erreicht kein 4.5:1 */
    --cat-wine:        #72243E;
    --cat-success:     #1E6B3A;
    --cat-danger:      #A3262A;
    --cat-on:          #e4f0f0;
    --cat-coupon-bg:   #FBF3E4;
    --cat-coupon-text: #7A4A00;
    --cat-sticky:      76px;
}

.cat {
    padding-bottom: calc(var(--cat-sticky) + 8px);
}

@media (min-width: 1024px) {
    .cat { padding-bottom: 0; }
}

/* Breite und Ränder wie .ff-container (Kopfleiste, Startseite), damit
   der Inhalt auf jeder Seite an derselben Kante beginnt wie das Logo. */
.cat-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 640px) { .cat-container { padding: 0 20px; } }
@media (min-width: 768px) { .cat-container { padding: 0 24px; } }

/* ── Grundbausteine ─────────────────────────────────────────── */
.cat :where(a) { color: var(--ff-primary); }
.cat :where(a:hover) { color: var(--ff-primary-dark); }
/* Fließtext-Links tragen den Unterstrich, weil die Linkfarbe allein gegen
   den grauen Text zu wenig Kontrast hat. Nur <p>, nicht <li>: Filter, Chips
   und "Zum Shop" stecken in <li> und sollen wie Bedienelemente aussehen. */
.cat :where(p) a { text-decoration: underline; }

/* Gleiche Rundung wie das Suchfeld (Pille), sonst wirkt der Knopf angeklebt. */
.cat-btn--search { min-height: 40px; padding: 0 18px; border-radius: 999px; }

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-pill);
    background: #fff;
    color: var(--ff-text);
    font-size: 13.5px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.cat-chip:hover { border-color: var(--ff-primary); color: var(--ff-primary-dark); }

.cat-chip--on {
    background: var(--cat-on);
    border-color: var(--ff-primary);
    color: var(--ff-primary-dark);
    font-weight: 600;
}

.cat-chip--action {
    background: var(--ff-primary-dark);
    border-color: var(--ff-primary-dark);
    color: #fff;
    font-weight: 600;
    list-style: none;
}

.cat-chip--action:hover { background: var(--ff-primary); color: #fff; }
.cat-chip--action::-webkit-details-marker { display: none; }

.cat-chip__count { color: var(--ff-text-light); font-size: 12px; }
.cat-chip--on .cat-chip__count,
.cat-chip--action .cat-chip__count { color: inherit; opacity: .8; }
.cat-chip__count--light {
    background: var(--ff-accent);
    color: var(--ff-primary-dark);
    border-radius: 10px;
    padding: 0 6px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    opacity: 1;
}

.cat-chiplist {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.cat-chiplist::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
    .cat-chiplist { flex-wrap: wrap; overflow: visible; }
}

.cat-reason {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 24px;
    padding: 0 9px;
    border-radius: var(--ff-radius-sm);
    background: var(--cat-on);
    color: var(--ff-primary-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.cat-crumbs {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
}

.cat-crumbs a { color: inherit; }
.cat-crumbs--light { color: var(--ff-text-muted); }
.cat-crumbs--light a { color: var(--ff-text-muted); }

/* ── Kopfvariante 1: Kategorie (Entwurf "Header B, Farbband") ── */
/* Kompakt wie der fruehere Kopf. Das Foto ist ein <img> mit srcset statt CSS-Hintergrund:
   so findet der Browser das LCP-Bild sofort im HTML und laedt mobil die 800-px-Fassung.
   Der Verlauf ist links fast deckend, damit der weisse Text auf jedem Foto lesbar bleibt. */
.cat-hero { position: relative; overflow: hidden; background: var(--ff-primary-dark, #113336); color: #fff; }
.cat-hero__img, .cat-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat-hero__img { object-fit: cover; object-position: center; }
.cat-hero__shade { background: linear-gradient(100deg, rgba(17,51,54,.97) 0%, rgba(17,51,54,.9) 38%, rgba(33,99,105,.62) 72%, rgba(33,99,105,.4) 100%); }
.cat-hero__inner { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; padding-bottom: 20px; }
.cat-hero .cat-crumbs, .cat-hero .cat-crumbs a { color: rgba(255, 255, 255, .78); }
.cat-hero__grid { display: flex; flex-direction: column; gap: 14px; }
.cat-hero__text { min-width: 0; }
.cat-hero__title { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 32px; font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
/* "im Preisvergleich": Teil der H1, aber leise in der Grundschrift */
.cat-hero__title-sub {
    display: block;
    margin-top: 6px;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}
.cat-hero__intro {
    margin: 8px 0 0;
    max-width: 60ch;
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-hero__source { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .74); }
.cat-hero__source a { color: #fff; font-weight: 700; }
.cat-hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 380px) { .cat-hero__stats strong { font-size: 15.5px; } .cat-hero__stats li, .cat-hero__stats li > a { padding: 8px 10px; } }
.cat-hero__stats li, .cat-hero__stats li > a {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(17, 51, 54, .55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    text-decoration: none;
}
.cat-hero__stats li.cat-hero__stat--sale { padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cat-hero__stats .cat-hero__stat--sale a { height: 100%; border-color: transparent; background: var(--ff-accent, #ff9d00); color: #292A29; }
.cat-hero__stats .cat-hero__stat--sale a:hover { background: #f08f00; }
.cat-hero__stats li { min-width: 0; }
.cat-hero__stats strong { font-size: 17px; font-weight: 800; font-variant-numeric: lining-nums; white-space: nowrap; }
.cat-hero__stats span { font-size: 11.5px; line-height: 1.3; opacity: .85; }

@media (min-width: 768px) {
    .cat-hero__inner { min-height: 230px; justify-content: flex-end; padding-top: 18px; padding-bottom: 26px; }
    /* Brotkrumen oben festmachen, sonst schweben sie ueber dem Titel; der Platz geht an den Text */
    .cat-hero .cat-crumbs { margin-bottom: auto; }
    .cat-hero__intro { -webkit-line-clamp: 3; }
    .cat-hero__title { font-size: 44px; }
    .cat-hero__grid { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
    .cat-hero__stats { display: flex; flex: 0 0 auto; }
    .cat-hero__stats li, .cat-hero__stats li > a { min-width: 116px; padding: 12px 14px; }
    .cat-hero__stats li.cat-hero__stat--sale { min-width: 0; }
    .cat-hero__stats strong { font-size: 22px; }
    .cat-hero__stats span { font-size: 12px; white-space: nowrap; }
}

@media (min-width: 1024px) {
    .cat-hero__inner { min-height: 250px; }
    .cat-hero__title { font-size: 50px; }
}

/* ── Kurz gesagt (unter dem Kopf) und Kaufberater (Seitenende) ─ */
.cat-kurz { background: #e9f1f1; border-bottom: 1px solid #d6e5e5; }
.cat-kurz__text { margin: 0 auto; padding-top: 10px; padding-bottom: 10px; font-size: 14px; line-height: 1.5; color: var(--ff-primary-dark, #113336); }
.cat-kurz__text a { font-weight: 700; color: inherit; white-space: nowrap; }

.cat-guide { padding: 40px 0 12px; border-top: 1px solid var(--ff-border-light, #f0eee9); background: var(--ff-bg, #fff); }
.cat-guide__title { margin: 30px 0 12px; font-size: 22px; font-weight: 800; line-height: 1.3; color: var(--ff-primary-dark, #113336); }
.cat-guide__kurz { padding: 20px 22px; border-left: 4px solid var(--ff-primary, #216369); border-radius: 0 14px 14px 0; background: var(--ff-bg-subtle, #f8f7f5); }
.cat-guide__kurz .cat-guide__title { margin-top: 0; }
.cat-guide__kurz p { margin: 0; max-width: 78ch; font-size: 16px; line-height: 1.65; }
.cat-guide__kurz .cat-guide__stand { margin-top: 10px; font-size: 13px; color: var(--ff-text-muted, #5e626a); }
.cat-guide__stand a { color: inherit; font-weight: 700; }
.cat-guide__tablewrap { position: relative; overflow-x: auto; border: 1px solid var(--ff-border, #e8e6e1); border-radius: 14px; }
.cat-guide__table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.cat-guide__table th, .cat-guide__table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--ff-border-light, #f0eee9); }
.cat-guide__table thead th { border-top: 0; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ff-text-muted, #5e626a); background: var(--ff-bg-subtle, #f8f7f5); }
.cat-guide__table tbody th { font-weight: 800; white-space: nowrap; }
.cat-guide__table a { font-weight: 700; color: var(--ff-primary-dark, #113336); }
.cat-guide__price { font-weight: 800; color: var(--ff-primary, #216369); white-space: nowrap; }
.cat-guide__muted { font-size: 13px; color: var(--ff-text-muted, #5e626a); }
.cat-guide__note { margin: 10px 0 0; font-size: 13px; color: var(--ff-text-muted, #5e626a); }

/* ── Kopfvariante 2 und 3: freie Suche ──────────────────────── */
/* Warmer Cremeton statt Grau (Rueckmeldung 10/2026: "wirkt kalt") */
.cat-searchhead {
    background: linear-gradient(180deg, #fbf7f0 0%, #f5efe4 100%);
    border-bottom: 1px solid #ece3d3;
    padding: 18px 0 20px;
}

/* Suchbegriffe in der Grundschrift: Playfair (Serifen, Mediaevalziffern) liest
   sich bei "227 Treffer fuer ..." schlecht (Rueckmeldung 10/2026). */
.cat-searchhead__title {
    margin: 10px 0 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    font-variant-numeric: lining-nums;
}

.cat-searchhead__row { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

/* Suchleiste wie auf der Startseite und im Header: rund, Knopf mit derselben Rundung innen */
.cat-searchbox {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 6px 0 18px;
    border: 1.5px solid #e3d8c6;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(92, 66, 24, .07);
    color: #8a7a63;
    transition: border-color .2s, box-shadow .2s;
}
.cat-searchbox .cat-btn--search {
    min-height: 44px;
    height: 44px;
    padding: 0 22px;
    border-radius: 999px;   /* tile.css setzt .cat-btn auf 10px - hier gilt die Rundung der Leiste */
    background: var(--ff-accent, #ff9d00);
    color: #292A29;
    font-weight: 800;
}
.cat-searchbox .cat-btn--search:hover,
.cat-searchbox .cat-btn--search:focus-visible { background: #f08f00; color: #292A29; }

.cat-searchbox input {
    flex-grow: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--ff-text);
}

.cat-searchbox input:focus { outline: none; }
.cat-searchbox:focus-within { border-color: #d9a24a; box-shadow: 0 0 0 4px rgba(255, 157, 0, .14), 0 6px 18px rgba(92, 66, 24, .07); }

.cat-searchhead__note,
.cat-searchhead__hint {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ff-text-muted);
}

.cat-searchhead__hint {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #f1d9a6;
    border-radius: var(--ff-radius-lg, 14px);
    background: #fff8e8;
    color: #5b4410;
    font-size: 14px;
}
.cat-searchhead__hint svg { flex: 0 0 auto; margin-top: 1px; color: #b7791f; }
.cat-searchhead__hint p { margin: 0; }
.cat-searchhead__hint a { color: inherit; text-decoration: underline; }
.cat-searchhead__suggest { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cat-searchhead__suggest-label { font-size: 12.5px; color: var(--ff-text-muted); }

@media (min-width: 768px) {
    .cat-searchhead { padding: 26px 0 28px; }
    .cat-searchhead__title { font-size: 34px; }
    .cat-searchhead__row { flex-direction: row; align-items: center; gap: 24px; }
    .cat-searchbox { width: 560px; flex: 0 0 auto; }
    .cat-searchhead__suggest { flex-direction: row; align-items: center; gap: 12px; }
}

/* ── Filterleiste ───────────────────────────────────────────── */
.cat-filterbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--ff-border-light);
}

.cat-filterbar__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow: visible;
}

.cat-filters, .cat-sort { position: relative; flex: 0 0 auto; }
.cat-filters > summary, .cat-sort > summary { cursor: pointer; }
.cat-filters > summary::-webkit-details-marker,
.cat-sort > summary::-webkit-details-marker { display: none; }

.cat-chip--sort { gap: 5px; }
.cat-sort__label { color: var(--ff-text-muted); font-size: 12.5px; }

/* Die Chipleiste muss schrumpfen duerfen, sonst schiebt sie die Seite breiter. */
.cat-filterbar__inner > .cat-chiplist { flex: 1 1 0; min-width: 0; }
.cat-chip--sort strong {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Desktop (Entwurf A): Dropdown-Leiste mit allen Filtern, Sortierung rechts; Schnellwahl darunter.
   Handy und Tablet (Entwurf B): "Filter" oeffnet ein Blatt von unten, Chips zum Wischen. */
.cat-filterbar__inner { flex-wrap: wrap; row-gap: 10px; }
.cat-filterbar__inner > .cat-chiplist:empty { display: none; }
.cat-dd-bar { display: none; }

@media (max-width: 899px) {
    .cat-sort__label { display: none; }
    .cat-filterbar__inner > .cat-filters { order: 1; }
    .cat-filterbar__inner > .cat-sort { order: 2; margin-left: auto; }
    .cat-filterbar__inner > .cat-chiplist {
        order: 3;
        flex: 1 0 100%;
        margin: 0 -16px;
        padding: 0 16px 2px;
        scroll-padding: 0 16px;
        scroll-snap-type: x proximity;
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent);
    }
    .cat-filterbar__inner > .cat-chiplist > li { scroll-snap-align: start; flex: 0 0 auto; }
    .cat-chip--sort strong { max-width: 170px; }
}

@media (min-width: 900px) {
    .cat-chip--sort strong { max-width: none; }
    /* Kein "Alle Filter" mehr: jeder Filter hat sein Dropdown, das Blatt gibt es nur auf dem Handy */
    .cat-filterbar__inner > .cat-filters { display: none; }
    /* Zeile 1: die Filter. Zeile 2: Schnellwahl links, Sortierung rechts. */
    .cat-dd-bar { display: flex; flex-wrap: wrap; gap: 8px; order: 1; flex: 1 0 100%; }
    .cat-filterbar__inner > .cat-chiplist {
        order: 2;
        flex: 1 1 0;
        flex-wrap: nowrap;
        position: relative;
        overflow-x: auto;
        -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
        mask-image: linear-gradient(90deg, #000 92%, transparent);
    }
    .cat-filterbar__inner > .cat-chiplist > li { flex: 0 0 auto; }
    .cat-filterbar__inner > .cat-sort { order: 3; margin-left: auto; }
}

/* Damit Filter-Knoepfe und Sortierung in eine Zeile passen, faellt das Wort "Sortieren"
   unter 1366 px weg - die gewaehlte Sortierung steht ja da. */
@media (min-width: 900px) and (max-width: 1365px) {
    .cat-sort__label { display: none; }
}

/* "Alle Filter" am Desktop: grosses Panel unter dem Knopf */
.cat-filters__panel {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: min(980px, calc(100vw - 40px));
    max-height: min(70vh, 640px);
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-lg);
    background: #fff;
    box-shadow: var(--ff-shadow-lg);
    box-sizing: border-box;
}

.cat-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 20px;
    border-bottom: 1px solid var(--ff-border-light);
}
.cat-filters__title { margin: 0; font-size: 18px; font-weight: 800; color: var(--ff-primary-dark); }
.cat-filters__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ff-text);
    cursor: pointer;
}
.cat-filters__close:hover { background: var(--ff-bg-subtle); }

.cat-filters__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 4px 20px 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: 28px;
}

.cat-filters__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--ff-border-light);
    background: #fff;
    border-radius: 0 0 var(--ff-radius-lg) var(--ff-radius-lg);
}
.cat-filters__reset { font-weight: 700; color: var(--ff-primary); min-height: 44px; display: inline-flex; align-items: center; }
.cat-filters__apply { min-height: 48px; padding: 0 22px; }

/* Aufklappbare Gruppen im Blatt */
.cat-acc { border-bottom: 1px solid var(--ff-border-light); }
.cat-acc > summary { list-style: none; }
.cat-acc > summary::-webkit-details-marker { display: none; }
.cat-acc__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    cursor: pointer;
}
.cat-acc__title { font-size: 16px; font-weight: 700; color: var(--ff-primary-dark); }
.cat-acc__value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: var(--ff-primary);
}
.cat-acc__summary::after {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin: 0 4px 4px auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.cat-acc[open] > .cat-acc__summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.cat-acc__content { padding-bottom: 14px; }

.cat-facet__title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .02em;
    color: var(--ff-text);
}

.cat-facet__list { margin: 0; padding: 0; list-style: none; }

.cat-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 6px;
    font-size: 15px;
    color: var(--ff-text);
    text-decoration: none;
    border-radius: var(--ff-radius-sm);
}

.cat-option:hover { background: var(--ff-bg-subtle); color: var(--ff-text); }

.cat-option__box {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1.5px solid #b9b6ae;
    border-radius: 4px;
    background: #fff;
}

.cat-option.is-on .cat-option__box {
    background: var(--ff-primary);
    border-color: var(--ff-primary);
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 10px var(--ff-primary);
}

.cat-option.is-on { font-weight: 600; }
.cat-option__text { flex-grow: 1; }
.cat-option__count { color: var(--ff-text-light); font-size: 12.5px; }

/* Preisfilter: Felder, Schnellwahl, Versand, Uebernehmen */
.cat-price { display: flex; flex-direction: column; gap: 12px; }
.cat-price__hint { margin: 0; font-size: 13.5px; color: var(--ff-text-muted); }
.cat-price__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-price__field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ff-text); }
.cat-price__input {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid #c9c5bd;
    border-radius: var(--ff-radius-md);
    background: #fff;
}
.cat-price__input:focus-within { border-color: var(--ff-primary); box-shadow: 0 0 0 3px rgba(33, 99, 105, .15); }
.cat-price input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 16px;
    background: transparent;
    color: var(--ff-text);
    outline: none;
}
.cat-price__ranges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cat-range {
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    background: #fff;
    color: var(--ff-text);
    font-size: 14.5px;
    text-decoration: none;
}
.cat-range:hover { border-color: var(--ff-primary); color: var(--ff-primary-dark); }
.cat-range.is-on { border: 1.5px solid var(--ff-primary); background: #f3f8f8; font-weight: 700; color: var(--ff-primary-dark); }
.cat-range__count { font-size: 12.5px; font-weight: 400; color: var(--ff-text-light); }
.cat-price__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cat-price__foot .cat-btn { margin-left: auto; min-height: 46px; }
.cat-price__reset { font-weight: 700; color: var(--ff-primary); min-height: 44px; display: inline-flex; align-items: center; }

/* Dropdowns der Leiste (Desktop) */
.cat-dd { position: relative; }
.cat-dd > summary { list-style: none; cursor: pointer; }
.cat-dd > summary::-webkit-details-marker { display: none; }
/* Filter sehen aus wie Auswahlfelder (eckiger, Pfeil rechts), nicht wie die Chips der Schnellwahl */
.cat-dd__toggle {
    justify-content: space-between;
    gap: 10px;
    min-width: 112px;
    min-height: 42px;
    padding: 0 12px 0 14px;
    border-radius: 10px;
    border-color: #d9d5cd;
    background: #fff;
    font-weight: 600;
    color: var(--ff-text);
    box-shadow: 0 1px 2px rgba(17, 51, 54, .05);
}
.cat-dd__toggle .cat-dd__chevron { color: var(--ff-text-muted); }
.cat-dd__toggle.is-set { border-color: var(--ff-primary); background: #e4f0f0; color: var(--ff-primary-dark); }
.cat-dd__chevron { transition: transform .2s ease; }
.cat-dd[open] > summary { border-color: var(--ff-primary); background: #e4f0f0; color: var(--ff-primary-dark); }
.cat-dd[open] .cat-dd__chevron { transform: rotate(180deg); }
.cat-dd__panel {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 40;
    min-width: 260px;
    max-width: 340px;
    max-height: min(60vh, 460px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-lg);
    background: #fff;
    box-shadow: var(--ff-shadow-lg);
}
.cat-dd__panel--price { width: 360px; max-width: none; padding: 16px; overflow: visible; max-height: none; }

.cat-chip--reset { border-style: dashed; color: var(--ff-primary); font-weight: 700; }

/* Schnellwahl ("Häufig hier"): weiche, gefüllte Chips ohne Rahmen - Vorschläge, keine Bedienfelder */
.cat-chip--quick { border-color: transparent; background: #f1ece3; color: var(--ff-text); }
.cat-chip--quick:hover { border-color: transparent; background: #e8e0d2; color: var(--ff-primary-dark); }
.cat-chiplist__label { display: none; align-self: center; margin-right: 2px; font-size: 12.5px; color: var(--ff-text-muted); white-space: nowrap; }
@media (min-width: 900px) { .cat-chiplist__label { display: block; } }

.cat-sort__list {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 40;
    min-width: 250px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    background: #fff;
    box-shadow: var(--ff-shadow-lg);
}

.cat-sort__list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--ff-radius-sm);
    font-size: 14.5px;
    color: var(--ff-text);
    text-decoration: none;
}

.cat-sort__list a:hover { background: var(--ff-bg-subtle); }
.cat-sort__list a.is-on { background: var(--cat-on); color: var(--ff-primary-dark); font-weight: 600; }

/* Handy und Tablet (Entwurf B): das Filterblatt faehrt von unten hoch */
@media (max-width: 899px) {
    .cat-filters[open] > .cat-filters__panel {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        z-index: 1000;
        width: auto;
        max-height: 88vh;
        max-height: 88dvh;
        border: 0;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 0 0 100vmax rgba(17, 51, 54, .45);
        animation: cat-sheet-in .25s ease-out both;
    }
    .cat-filters__head { position: relative; padding-top: 18px; }
    .cat-filters__head::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        width: 44px;
        height: 5px;
        margin-left: -22px;
        border-radius: 5px;
        background: #c9c5bd;
    }
    .cat-filters__body { display: block; padding: 0 20px; }
    .cat-filters__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; }
    .cat-filters__apply { flex: 1 1 auto; justify-content: center; font-size: 16px; }
    .cat-sort__list { right: 0; min-width: min(280px, calc(100vw - 32px)); }
}
@keyframes cat-sheet-in { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .cat-filters[open] > .cat-filters__panel { animation: none; }
}
html.cat-sheet-open { overflow: hidden; }
/* Die Filterleiste ist sticky und damit ein eigener Stapel: solange das Blatt offen ist,
   muss sie ueber Kopf, Inhalt und der festen Leiste unten liegen. */
.cat-filterbar:has(> .cat-filterbar__inner > .cat-filters[open]),
html.cat-sheet-open .cat-filterbar { z-index: 1000; }
html.cat-sheet-open .cat-sticky { visibility: hidden; }

/* ── Abschnittsköpfe ────────────────────────────────────────── */
.cat-section__head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 22px 0 12px;
}

.cat-section__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.cat-section__note { margin: 0; font-size: 12px; color: var(--ff-text-muted); }

@media (min-width: 768px) {
    .cat-section__head {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 24px;
        margin: 30px 0 16px;
    }
    .cat-section__title { font-size: 25px; }
}

/* ── Empfehlungen ───────────────────────────────────────────── */
.cat-highlights__list {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0 0 4px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.cat-highlights__list::-webkit-scrollbar { display: none; }

.cat-highlight {
    flex: 0 0 82%;
    scroll-snap-align: start;
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-lg);
    background: #fff;
}

.cat-highlight--first { border-color: var(--ff-primary); box-shadow: inset 0 0 0 1px var(--ff-primary); }

.cat-highlight__media {
    width: 62px;
    height: 96px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ff-radius-md);
    background: var(--ff-bg-warm);
    overflow: hidden;
}

.cat-highlight__media img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cat-highlight__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex-grow: 1; }

.cat-highlight__name { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cat-highlight__name a { color: var(--ff-text); text-decoration: none; }
.cat-highlight__name a:hover { color: var(--ff-primary); }
.cat-highlight__meta { margin: 0; font-size: 11.5px; color: var(--ff-text-muted); }
.cat-highlight__price { margin: auto 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; }
.cat-highlight .cat-tile__actions { margin-top: 4px; }

@media (min-width: 768px) {
    .cat-highlights__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; overflow: visible; }
    .cat-highlight { flex: 1 1 auto; padding: 18px; gap: 16px; }
    .cat-highlight__media { width: 72px; height: 112px; flex-basis: 72px; }
    .cat-highlight__name { font-size: 15.5px; }
}

/* Die Flaschen-Illustration bringt eine feste Höhe mit; hier zählt der Rahmen. */
.cat-highlight__media .bottle-placeholder { height: 88%; width: auto; }

/* ── Blättern ───────────────────────────────────────────────── */
.cat-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.cat-pager__list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }

.cat-pager__page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    font-size: 14px;
    color: var(--ff-text);
    text-decoration: none;
}

.cat-pager__page:hover { border-color: var(--ff-primary); color: var(--ff-primary); }
.cat-pager__page.is-on { background: var(--ff-primary); border-color: var(--ff-primary); color: #fff; font-weight: 700; }
.cat-pager__gap { display: flex; align-items: center; color: var(--ff-text-light); padding: 0 2px; }

.cat-pager__step {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--ff-primary);
    border-radius: var(--ff-radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--ff-primary);
    text-decoration: none;
}

.cat-pager__step:hover { background: var(--ff-bg-subtle); }
.cat-pager__info { margin: 8px 0 0; text-align: center; font-size: 12px; color: var(--ff-text-light); }

/* ── Kein Treffer ───────────────────────────────────────────── */
.cat-empty { margin: 22px 0 0; }
.cat-empty__title { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.cat-empty__tips { margin: 0 0 14px; padding: 0 0 0 20px; list-style: disc; color: var(--ff-text-muted); font-size: 14px; line-height: 1.7; }
.cat-empty__reset { margin: 14px 0 0; font-size: 13.5px; color: var(--ff-text-muted); }

/* ── Produktanfrage ─────────────────────────────────────────── */
.cat-request {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 22px 0 0;
    padding: 18px;
    border: 1px dashed #c3d6d4;
    border-radius: var(--ff-radius-lg);
    background: #f7fbfa;
}

.cat-request h2 { margin: 0; font-size: 16px; font-weight: 700; }
.cat-request p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ff-text-muted); }
.cat-request__form { display: flex; flex-direction: column; gap: 8px; }

.cat-request__form input {
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    background: #fff;
    font: inherit;
    font-size: 14px;
    color: var(--ff-text);
}

/* Honeypot gegen Spam-Bots: fuer Menschen weder sichtbar noch erreichbar. */
.cat-request__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cat-request { position: relative; }
.cat-request__form[hidden], .cat-request__done[hidden] { display: none; }
.cat-request__done { margin: 0; font-size: 14px; font-weight: 600; color: var(--cat-success); }

@media (min-width: 768px) {
    .cat-request { flex-direction: row; align-items: center; gap: 28px; padding: 22px 24px; }
    .cat-request__text { flex-grow: 1; }
    .cat-request__form { flex-direction: row; width: 460px; flex: 0 0 auto; }
    .cat-request__form input { flex-grow: 1; min-width: 0; }
}

/* ── Kategorietext und Fragen ───────────────────────────────── */
.cat-outro { margin-top: 28px; padding: 24px 0 28px; background: var(--ff-bg-subtle); }
.cat-outro__grid { display: flex; flex-direction: column; gap: 24px; }
.cat-outro__title { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.cat-outro p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: var(--ff-text-muted); }
.cat-outro__legal { font-size: 12.5px; }

/* Kennzahlen der Kategorie ("auf einen Blick"): Begriff links, Wert rechts. */
.cat-facts { margin: 4px 0 14px; padding: 0; display: grid; gap: 0; }
.cat-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ff-border-light);
    font-size: 13.5px;
}
.cat-facts dt { color: var(--ff-text-muted); }
.cat-facts dd { margin: 0; text-align: right; font-weight: 600; color: var(--ff-text); }
.cat-related { margin: 4px 0 18px; padding: 0; list-style: none; }
/* "Diese Woche": Preissenkungen und neue Weine (catalog/weekly.html) */
.cat-weekly__title { margin: 14px 0 2px; font-size: 15px; font-weight: 700; }
.cat-weekly dt { min-width: 0; }
.cat-weekly dt a { color: var(--ff-text); text-decoration: none; font-weight: 600; }
.cat-weekly dt a:hover { text-decoration: underline; }
.cat-weekly__shop { display: block; font-size: 12.5px; }
.cat-weekly dd { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-weekly s { font-weight: 400; color: var(--ff-text-muted); }
.cat-weekly__drop { color: var(--ff-primary); }
.cat-outro__grid > div > .cat-outro__title:not(:first-child) { margin-top: 22px; }

.cat-faq details { border-bottom: 1px solid var(--ff-border); padding: 12px 0; }
.cat-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ff-text); }
.cat-faq summary::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 2px solid var(--ff-text-muted);
    border-bottom: 2px solid var(--ff-text-muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--ff-transition);
}
.cat-faq details[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.cat-faq details p { margin: 8px 0 0; font-size: 13.5px; }

.cat-transparency {
    margin: 22px 0 24px;
    padding: 14px;
    border-radius: var(--ff-radius-md);
    background: var(--ff-bg-subtle);
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--ff-text-muted);
}

@media (min-width: 900px) {
    .cat-outro__grid { flex-direction: row; gap: 48px; }
    .cat-outro__grid > div:first-child { flex-grow: 1; }
    .cat-faq { width: 480px; flex: 0 0 auto; }
    .cat-outro__title { font-size: 23px; }
}

/* ── Feste Leiste, nur mobil ────────────────────────────────── */
.cat-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--cat-sticky);
    padding: 0 16px;
    border-top: 1px solid var(--ff-border);
    background: rgba(255, 255, 255, .97);
}

.cat-sticky .cat-btn { flex: 1 1 0; min-height: 50px; font-size: 15px; }

@media (min-width: 1024px) {
    .cat-sticky { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cat-page * { transition: none !important; animation: none !important; }
}

/* ── Uebersicht aller Kategorien (/wein/) ───────────────────── */
.cat-hub { padding: 6px 0 36px; }
.cat-hub__group { margin: 0 0 8px; }
.cat-hub .cat-chiplist { flex-wrap: wrap; overflow: visible; }
.cat-hub__intro { max-width: 80ch; margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ff-text-muted); }
