/* ----- Voll-breite Suchleiste oben ----- */
.hf-search-bar {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 1100;
  background: #ffffff;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.hf-search-bar form {
  display: flex;
  width: 100%;
}
.hf-search-bar .hf-filter-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-left: auto;
  cursor: pointer;
  color: #555;
}
.hf-search-bar .hf-filter-toggle:hover {
  color: #000;
}

/* ----- Panel-Wrapper ----- */
.slide-in__panel__wrapper {
  position: fixed;
  top: 147px;
  left: -232px;
  height: 100vh;
  width: 280px;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}
.slide-in__panel__wrapper.open {
  left: 48px; 
}

.slide-in__panel__wrapper input[type="text"] {
    margin-bottom: 5px;
}

.slide-in__panel__wrapper select,
.slide-in__panel__wrapper input[type="text"] {
    padding: 5px 10px!important;
    width: 100%!important;
}

.slide-in__panel__wrapper select,
.slide-in__panel__wrapper select option,
.slide-in__panel__wrapper input[type="text"]{
    font-size: 0.9em!important; 
}

/* ----- Header ----- */
.slide-in__panel__header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  height: 48px;
  padding: 0 15px 0 60px;
}
.slide-in__panel__header .slide-in__panel__apply {
  flex-shrink: 0;   
  margin-left: auto; 
}
.slide-in__panel__header button {
  margin: 0;
  padding: 0.4rem!important;
}
.slide-in__panel__header h2 {
  margin: 0 0 0 70px;
  padding: 0;
  font-size: 1.1rem;
}
.slide-in__panel__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ----- Body & Apply-Button ----- */
.slide-in__panel__body {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px 30px; 
}

.slide-in__panel__body .icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  vertical-align: text-top;
  fill: currentColor;
  line-height: 1;  
  margin: 0 .2em 0 .1em;
}

.slide-in__panel__body .icon.icon-small {
  width: 20px;
  height: 20px;
  margin-left:10px;
}

.slide-in__panel__apply {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: #007cba;
  color: #fff;
  border: none;
  border-radius: 4px;
  margin-top: 1rem;
  cursor: pointer;
}
.slide-in__panel__apply:hover {
  background: #005a8c;
}

/* ----- Gruppen (Collapse) ----- */
.slide-in__panel__group {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.slide-in__panel__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 1em;
    padding-left:15px;
}
.slide-in__panel__title .dashicons {
  margin-right: 0.5rem;
}
.slide-in__panel__toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  transform: rotate(90deg);
  transition: transform 0.2s;
}
.slide-in__panel__group.open .slide-in__panel__toggle {
  transform: rotate(-90deg);
}
.slide-in__panel__content {
  display: none;
  padding-top: 0.5rem;
}
.slide-in__panel__group.open .slide-in__panel__content {
  display: block;
}

/* ----- Overlay ----- */
#hf-filter-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 900;
}
#hf-filter-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ----- Form-Elemente Styling ----- */
.slide-in__panel__content label {
    display: block; 
    margin-bottom: 0.5rem;
    font-size: 14px;
}
.slide-in__panel__content input[type="radio"],
.slide-in__panel__content select,
.slide-in__panel__content input[type="text"] {
  margin-right: 0.5rem;
}

/* ------------------------------------------ */
/* Filter-Toggle Container neben Sidebar      */
/* ------------------------------------------ */

.hf-filter-toggle-container {
  position: fixed;
  top: 147px; 
  bottom: 0;
  left: 0;
  width: 48px;
  background: #f7f7f7; 
  z-index: 1100;
  display: flex;
  align-items: start;
  justify-content: center;
}

.list_products .products_wrapper {
  margin-left: 48px;
}

.list_products .detailview {
    margin-left: 48px;
}

.hf-filter-toggle {
  width: 48px;
  height: 48px;
  background: #235635;  
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 15px;
}

.hf-filter-icon {
  width: 26px;
  height: 26px;
  fill: #fff;
  color: #555;
}

.hf-filter-toggle:hover .hf-filter-icon {
  opacity: 0.8;
}

/* Baum-Liste */
.hf-region-tree {
  list-style: none;
  margin: 0;
  padding-left: 1rem;
}
.hf-region-tree .hf-region-tree {
    padding-left: .75rem;
    font-size: 18px;
}
.hf-region-node {
  position: relative;
  margin-bottom: 0.25rem;
}
/* Toggle-Pfeil */
.hf-tree-toggle {
  position: absolute;
  left: -1.25rem;
  top: 0.15rem;
  width: 1rem;
  height: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  transform: rotate( 0deg );
  transition: transform 0.2s;
}
.hf-region-node.open > .hf-tree-toggle {
  transform: rotate( -90deg );
}
/* Kinder ausblenden, wenn nicht open */
.hf-region-node .hf-region-tree {
  display: none;
}
.hf-region-node.open > .hf-region-tree {
  display: block;
}
/* Checkbox-Label etwas eingerückt */
.hf-region-node > label {
  margin-left: 0.25rem;
}

#hf-filter-reset {
  display: block;
  width: 100%;
  text-align: center;
  margin: 1em 0 0;
}
#hf-filter-reset a {
  text-decoration: none;
  color: inherit;
}

.woocommerce-info {
    text-align: center;
    margin: 50px 0;
}

.hf-filter-summary-bar {
  margin: 15px 25px 15px 73px; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hf-active-summary {
  flex: 0 0 auto;
  margin-left: 1rem;
  font-size: 0.9rem;
  color: #333;
}

@media (max-width: 767px) {
  .hf-filter-summary-bar {
    flex-direction: column;
    align-items: center;
    margin: 15px 25px 0 73px; 
  }
  .hf-active-summary {
      margin-left: 0;
      margin-top: 0.5rem;
  }
}

.hf-active-filters {   
  display: flex;
  flex-wrap: wrap;
  justify-content: left;   
  max-width: 100%; 
  flex: 1 1 auto; 
}
.hf-active-filters .hf-active-filter {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 999px;
  padding: 5px 10px;
  margin: 0.25em;      
  font-size: 0.8rem;
  text-decoration: none;
  color: #333;
  background: #f9f9f9;
}
.hf-active-filters .hf-active-filter .hf-remove {
  display: inline-block;
  margin-left: 0.5em;
  font-style: normal;
  cursor: pointer;
}
.hf-active-filters .hf-active-filter:hover {
  background: #ececec;
  border-color: #bbb;
}

/* Container flex */
.pagination.container-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 2rem 48px;
    
}

/* Abstand Utility */
.margin-right-xsmall { margin-right: 0.5rem; }
.margin-left-xsmall  { margin-left:  0.5rem; }

/* Icon-Buttons */
.button--quick-action {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.button--quick-action:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Nur Icon, kein Text-Padding */
.button--without-text {
  line-height: 0;
}

/* Input Feld */
.js-pagination-jump-field {
  width: 6ch;
  padding: 0.25rem!important;
  font-size: 0.8rem!important;
}

/* Icon-Wrapper */
.button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Schriftgröße */
.text-sregular {
  font-size: 0.875rem;
}


/* --- Formular auf eine Zeile bringen --- */
.hf-search-widget-form {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

/* Wrapper entfernen, Input und Button direkt steuern */
.hf-search-widget-wrapper {
  position: relative;
  flex: 1;
  display: flex;
}

/* --- Das Eingabefeld --- */
.hf-search-widget-form .hf-search-widget-input {
  border-radius: 4px 0 0 4px !important;
  flex: 1;
  padding: 0.2rem 0.7rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  outline: none;
  transition: border-color 0.2s;
}

/* --- Der Such-Button --- */
.hf-search-widget-form .hf-search-widget-submit {
  width: 40px; 
  height: 40px;
  margin: 0;    
  border: 1px solid #007cba; 
  border-left: none;
  border-radius: 0 4px 4px 0!important; 
  background: #007cba;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding:5px!important;
}
.hf-search-widget-form .hf-search-widget-submit:hover {
  background: #005a8c;
}
.hf-search-widget-form .hf-search-widget-submit svg {
  width: 1.3em;
  height: 1.3em;
  fill: #fff;
}

/* --- Verhindere, dass Text hinter den Button läuft --- */
.hf-search-widget-input {
  padding-right: 3rem; /* Platz für das Icon im Button */
}

/* Clear-Icon absolut positionieren */
.hf-search-widget-wrapper {
  position: relative;
}

.hf-search-widget-clear {
  position: absolute;
  right: 48px;              /* gleich hinter dem Submit-Button */
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #888;
  cursor: pointer;
  display: none;            /* nur zeigen, wenn Input nicht leer */
  z-index: 10;
}

/* Titelzeile als Flex-Container -> Toggle bleibt rechts */
.slide-in__panel__title {
  display: flex;
  align-items: center;
  gap: 8px; /* genereller Abstand zwischen Icon/Text/Badge */
}

/* Toggle ganz ans Ende schieben */
.slide-in__panel__toggle {
  margin-left: auto;
}

/* Aktiver Zustand: nur den Titel mit einem subtilen linken Streifen markieren */
.slide-in__panel__group.has-active .slide-in__panel__title {
  position: relative;
  font-weight: 600; /* leichte Betonung des Titels, wie zuvor */
}

.slide-in__panel__group.has-active .slide-in__panel__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #D0D5DD; /* dezentes Grau */
  border-radius: 2px;
}

/* Badge/Pill direkt hinter dem Titeltext */
.slide-in__panel__title .hf-active-badge {
  margin-left: 15px;          /* explizit gewünschter Abstand */
  font-size: 0.72rem;         /* etwas kleiner */
  font-weight: 400;           /* keine fette Schrift */
  line-height: 1;
  padding: .18rem .42rem;     /* kompakter */
  border-radius: 999px;
  background: #E9ECEF;        /* dezente graue Fläche */
  color: #475467;             /* dezentes Grau für Text */
}

/* Nur zeigen, wenn aktiv – via JS wird sie ein-/ausgeblendet */
.slide-in__panel__group.has-active .slide-in__panel__title .hf-active-badge {
  display: inline-block;
}

/* Falls du vorher eine farbige Version hattest, sicherstellen, dass sie nicht greift */
.slide-in__panel__title .hf-active-badge { /* überschreibt evtl. frühere Regeln */
  background: #E9ECEF;
  color: #475467;
}

.hf-no-results {
    text-align: center;      /* a) Inhalt zentriert */
    margin-left: 48px;       /* b) Abstand links */
    padding: 2rem;           /* c) Innenabstand rundum */
}

