/* ===== Shop-Filtersystem ===== */
.kh-catalog{display:grid;grid-template-columns:280px 1fr;gap:36px;align-items:start}
.kh-catalog__main{min-width:0}
.kh-catalog .woocommerce ul.products,
.kh-catalog ul.products{grid-template-columns:repeat(3,1fr)}
.kh-catalog .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:.92rem}
.kh-catalog .woocommerce ul.products li.product .price{font-size:.98rem}
.kh-catalog .woocommerce ul.products li.product .button{padding:9px 16px;font-size:.85rem;margin-left:14px;margin-right:14px}
.kh-catalog .woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0 14px}
.kh-catalog .woocommerce ul.products li.product .price{padding:0 14px}

/* Filter-Sidebar */
.kh-filter{background:var(--white,#fff);border:1px solid var(--line,#e3e8dd);border-radius:16px;padding:22px 20px;position:sticky;top:132px}
.kh-filter__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.kh-filter__title{margin:0;font-size:1.15rem;font-weight:700;color:var(--green-950,#16241a)}
.kh-filter__close{display:none;background:none;border:none;font-size:1.2rem;cursor:pointer;color:var(--ink,#333)}
.kh-filter__active{margin:8px 0 4px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.kh-filter__active-label{font-size:.8rem;color:#6b7280}
.kh-filter__chip{display:inline-flex;align-items:center;gap:6px;background:var(--green-50,#f0f7ea);color:var(--green-800,#2e5220);border:1px solid var(--green-200,#cfe3bd);border-radius:99px;padding:4px 12px;font-size:.8rem;text-decoration:none}
.kh-filter__chip:hover{background:var(--green-100,#e2f0d6)}
.kh-filter__group{padding:16px 0;border-top:1px solid var(--line,#e3e8dd)}
.kh-filter__group:first-of-type{border-top:none}
.kh-filter__group-title{margin:0 0 12px;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#6b7280}
.kh-filter__cats{list-style:none;margin:0;padding:0}
.kh-filter__cats li{list-style:none}
.kh-filter__cat-row{display:flex;align-items:center;gap:4px}
.kh-filter__cat{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border-radius:8px;color:var(--ink,#333);text-decoration:none;font-size:.92rem;flex:1;transition:background .15s,color .15s}
.kh-filter__cat:hover{background:var(--green-50,#f0f7ea);color:var(--green-800,#2e5220)}
.kh-filter__cat.is-active{background:var(--green-600,#3d7a28);color:#fff;font-weight:600}
.kh-filter__cat.is-active .kh-filter__count{color:#eaffda}
.kh-filter__count{font-size:.75rem;color:#9ca3af}
.kh-filter__toggle{flex:0 0 auto;width:26px;height:26px;border-radius:7px;border:1px solid var(--line,#e3e8dd);background:var(--white,#fff);cursor:pointer;font-size:.95rem;line-height:1;color:#6b7280;transition:background .15s}
.kh-filter__toggle:hover{background:var(--green-50,#f0f7ea)}
.kh-filter__sub{list-style:none;margin:2px 0 4px 14px;padding:0;border-left:2px solid var(--line,#e3e8dd);display:none}
.kh-filter__sub.is-open{display:block}
.kh-filter__sub .kh-filter__cat{padding:5px 8px;font-size:.86rem}
.kh-filter__cat--sub::before{content:"— ";color:#c3c9bc}

/* Preisfilter */
.kh-filter__price{display:flex;flex-direction:column;gap:10px}
.kh-filter__price-inputs{display:flex;align-items:flex-end;gap:8px}
.kh-filter__price label{display:flex;flex-direction:column;gap:4px;flex:1}
.kh-filter__price label span{font-size:.75rem;color:#6b7280}
.kh-filter__price input{border:1px solid var(--line,#d8dfd0);border-radius:8px;padding:8px 10px;font-size:.9rem;width:100%;background:var(--white,#fff)}
.kh-filter__price input:focus{outline:none;border-color:var(--green-600,#3d7a28)}
.kh-filter__price-sep{align-self:center;padding-bottom:9px;color:#9ca3af}
.kh-filter__apply{justify-content:center;width:100%;margin-top:2px}
.btn--sm{padding:10px 18px;font-size:.85rem}
.kh-filter__reset{display:inline-block;text-align:center;font-size:.82rem;color:var(--green-700,#3a6b28);text-decoration:underline}
.kh-filter__reset:hover{color:var(--green-500,#4d9134)}

/* Mobile */
.kh-filter-open-btn{display:none;margin-bottom:18px}
.kh-filter-backdrop{display:none}

@media (max-width:991px){
  .kh-catalog{grid-template-columns:1fr;gap:18px}
  .kh-catalog .woocommerce ul.products,
  .kh-catalog ul.products{grid-template-columns:repeat(2,1fr)}
  .kh-filter-open-btn{display:inline-flex}
  .kh-filter{position:fixed;top:0;right:0;bottom:0;width:min(88vw,360px);z-index:1000;border-radius:0;overflow-y:auto;transform:translateX(105%);transition:transform .3s ease;border-left:1px solid var(--line,#e3e8dd)}
  .kh-filter.is-open{transform:translateX(0)}
  .kh-filter__close{display:block}
  .kh-filter-backdrop.is-visible{display:block;position:fixed;inset:0;background:rgba(15,23,15,.45);z-index:999}
}
@media (max-width:560px){
  .kh-catalog .woocommerce ul.products,
  .kh-catalog ul.products{grid-template-columns:repeat(2,1fr);gap:12px}
  .kh-catalog .woocommerce ul.products li.product .button{font-size:0}
  .kh-catalog .woocommerce ul.products li.product .button::before{content:"＋";font-size:1rem}
}

/* --- KH mobile touch-target fixes (KH 1.1.1) --- */
@media (max-width:991px){
  .kh-filter__toggle{width:34px;height:34px;font-size:1.05rem}
  .kh-filter__close{min-width:40px;min-height:40px;display:flex;align-items:center;justify-content:center;font-size:1.35rem;margin-left:auto}
}

/* --- KH mobile shop-grid fix (KH 1.1.2) --- */
@media (max-width:991px){
  .container.kh-shop-wrap.kh-catalog{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box;
  }
  .kh-catalog__main{width:100% !important;max-width:100% !important;min-width:0}
  .kh-catalog .woocommerce ul.products,
  .kh-catalog ul.products{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px !important;
  }
  .kh-catalog ul.products li.product{width:100% !important}
}

/* ---------- Filterleiste über den Produkten (12.10.2026) ---------- */
.kh-fbar{display:flex;flex-wrap:wrap;gap:12px 26px;align-items:center;background:var(--white,#fff);border:1px solid var(--line,#e3e8dd);border-radius:16px;padding:14px 18px;margin-bottom:20px}
.kh-fbar__form{display:flex;flex-wrap:wrap;gap:12px 26px;align-items:center;flex:1 1 auto}
.kh-fbar__group{position:relative}
.kh-fbar__group>summary{cursor:pointer;font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#6b7280;list-style:none;display:inline-flex;align-items:center;gap:8px;padding:6px 0}
.kh-fbar__group>summary::-webkit-details-marker{display:none}
.kh-fbar__group>summary::after{content:"▾";font-size:.7rem;color:#9ca3af}
.kh-fbar__group[open]>summary::after{content:"▴"}
.kh-fbar__group[open]>summary{color:var(--green-800,#2e5220)}
.kh-fbar__count{background:var(--green-100,#e2f0d6);color:var(--green-800,#2e5220);border-radius:99px;padding:1px 8px;font-size:.72rem;letter-spacing:0}
.kh-fbar__panel{position:absolute;z-index:80;top:calc(100% + 6px);left:0;min-width:280px;max-height:340px;overflow:auto;background:var(--white,#fff);border:1px solid var(--line,#e3e8dd);border-radius:14px;box-shadow:var(--shadow-md,0 14px 34px -14px rgba(27,53,18,.25));padding:10px}
.kh-fbar__price{display:flex;align-items:flex-end;gap:8px}
.kh-fbar__price label{display:flex;flex-direction:column;gap:4px}
.kh-fbar__price label span{font-size:.72rem;color:#6b7280}
.kh-fbar__price input{border:1px solid var(--line,#d8dfd0);border-radius:8px;padding:8px 10px;font-size:.9rem;width:112px;background:var(--white,#fff)}
.kh-fbar__price input:focus{outline:none;border-color:var(--green-600,#3d7a28)}
.kh-fbar__label{font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#6b7280;align-self:center}
.kh-fbar__active{display:flex;flex-wrap:wrap;gap:6px;align-items:center;width:100%;padding-top:6px;border-top:1px solid var(--line,#e3e8dd);margin-top:4px}
.kh-cat-note{margin:-6px 0 20px;padding:12px 16px;background:var(--green-50,#f0f7ea);border-left:4px solid var(--green-400,#6fc04a);border-radius:0 10px 10px 0;color:var(--green-900,#1b3512);font-size:.94rem}
@media (max-width:700px){
  .kh-fbar__form{flex-direction:column;align-items:stretch;gap:14px}
  .kh-fbar__panel{position:static;min-width:0;max-height:none;box-shadow:none;border:0;padding:6px 0 0}
  .kh-fbar__price{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end;width:100%}
  .kh-fbar__price .kh-fbar__label{grid-column:1 / -1}
  .kh-fbar__price .kh-filter__price-sep{display:none}
  .kh-fbar__price label{flex:none}
  .kh-fbar__price input{width:100%;min-width:0}
  .kh-fbar__price .btn{grid-column:1 / -1;width:100%;justify-content:center}
}

/* ---------- Sortierung in der Filterleiste (12.10.2026) ---------- */
.kh-fbar__sort{order:-1;margin-left:0;margin-right:auto}
.kh-fbar__sort .woocommerce-ordering{margin:0;float:none}
.kh-fbar__sort select{appearance:none;-webkit-appearance:none;-moz-appearance:none;border:1px solid var(--line,#d8dfd0);border-radius:10px;padding:9px 34px 9px 12px;background-color:var(--white,#fff);background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;font-size:.9rem;color:var(--ink,#333);cursor:pointer}
.kh-fbar__sort select:focus{outline:none;border-color:var(--green-600,#3d7a28)}
@media (max-width:700px){
  .kh-fbar__sort{margin-left:0;width:100%}
  .kh-fbar__sort select{width:100%}
}
