/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* --- 1. ALLGEMEINE FIXES & TABS --- */
#brxe-zaloyv > .tab-menu .tab-title.brx-open { background-color: var(--hellgruen) !important; }
.facetwp-map-filtering { display: none; }
h2 {
  hyphens: auto;
  /* Syntax: [minimales Wortlimit] [Minimum davor] [Minimum danach] */
  hyphenate-limit-chars: 6 4 2; 
  -webkit-hyphens: auto;
  hyphens: auto;
  -webkit-hyphenate-limit-chars: 6 4 2;
  hyphenate-limit-chars: 6 4 2;	
}

/* Ändert die Farbe der Hamburger-Linien auf Schwarz */
.bricks-mobile-menu-toggle span {
  background-color: #000000 !important;
}

/* --- 2. LISTEN-LAYOUT (BETRIEBS-KARTEN) --- */
.fcwp_trenner { height: 30px; border-bottom: 2px solid #8fb55b; margin-bottom: 30px; }
.fcwp_headline { font-family: 'Teko', sans-serif; font-weight: 500; font-size: 30px; }
.fcwp_img { margin-top: 0px; width: 180px; height: auto; min-height: 100px; margin-right: 30px; float: left; }
.fcwp_plz { float: left; width: 50px; }
.fcwp_btn { color: #8fb55b; }

/* --- 3. NAVIGATION (MENÜ) --- */
.bricks-nav-menu .brx-submenu-toggle button { display: none !important; }
.bricks-nav-menu .brx-submenu-toggle { padding-right: 0 !important; }

/* --- 4. FLYOUT / OFF-CANVAS STRUKTUR --- */
#flyout-menu .brx-offcanvas-inner { display: flex; flex-direction: column; overflow: hidden !important; }
#flyout-menu .brxe-shortcode { overflow-y: auto !important; height: 100%; padding-right: 15px; padding-bottom: 50px; }

/* Weiße Scrollbar */
#flyout-menu .brxe-shortcode::-webkit-scrollbar { width: 6px; }
#flyout-menu .brxe-shortcode::-webkit-scrollbar-track { background: transparent; }
#flyout-menu .brxe-shortcode::-webkit-scrollbar-thumb { background-color: #ffffff !important; border-radius: 10px; }

/* --- 5. HAUPT-ÜBERSCHRIFTEN (GENIESSEN, ERLEBEN etc.) --- */
/* Keine Kästchen, keine Zahlen, keine Minus-Zeichen */
.facetwp-facet > .facetwp-checkbox {
    font-family: 'Teko', sans-serif !important;
    font-weight: 500 !important;
    font-size: 32px !important;
    line-height: 1.2;
    color: #ffffff !important;
    text-transform: uppercase;
    margin-top: 30px;
    margin-bottom: 10px;
    display: block !important;
    padding-left: 0 !important;
    background: none !important; /* Entfernt das Kästchen */
    pointer-events: none !important;
    cursor: default !important;
}

/* Versteckt die weißen Ziffern und das [-] bei den Headlines */
.facetwp-facet > .facetwp-checkbox .facetwp-counter,
.facetwp-facet > .facetwp-checkbox .facetwp-expand {
    display: none !important;
}

/* --- 6. UNTERRUBRIKEN (BILD-AUSTAUSCH BEI KLICK) --- */
.facetwp-depth {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* 6a. Normaler Zustand: Leerer Kasten */
.facetwp-depth .facetwp-checkbox {
    font-family: "Merriweather", serif !important;
    text-transform: none !important;
    color: #000000 !important;
    margin-bottom: 8px;
    display: flex !important;
    align-items: center;
    position: relative;
    padding-left: 28px !important; 
    cursor: pointer;
    pointer-events: auto !important;
    
    /* Pfad zum leeren Kasten */
    background-image: url('/wp-content/plugins/facetwp/assets/images/checkbox.png') !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-size: 14px 14px !important;
}

/* 6b. Aktivierter Zustand: Haken-Grafik laden */
.facetwp-depth .facetwp-checkbox.checked {
    /* Hier wird die -on Grafik geladen */
    background-image: url('/wp-content/plugins/facetwp/assets/images/checkbox-on.png') !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-size: 14px 14px !important;
}

/* 6c. Ziffern-Fix (18) */
.facetwp-depth .facetwp-checkbox .facetwp-counter {
    display: inline-block !important;
    color: #000000 !important;
    margin-left: 5px;
}