/* FK Search – Dropdown + Ergebnis-Panel (Look angelehnt an bisherige Guaven-Anpassung) */
.fk-s-wrap { position: relative; }
.fk-s-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 99990;
  background: #fff; border: solid 1px #eee; border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 5px -3px #000; padding: 20px; text-align: left;
  max-height: min(80vh, 720px); overflow-y: auto; overflow-x: hidden;
}
.fk-s-panel[hidden] { display: none; }
.fk-s-label, .fk-sr-label { display: block; font-size: .65rem; font-weight: bold; color: #aaa; margin-bottom: .35rem; }
.fk-s-section { margin-bottom: 1rem; }
.fk-s-section:last-child { margin-bottom: 0; }

.fk-s-cats, .fk-s-products { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.fk-s-cats li { padding: 10px 0; border-bottom: 1px solid #eee; font-weight: bold; font-size: 15px; }
.fk-s-cats li:last-child { border-bottom: none; }
.fk-s-cats a, .fk-s-products a, .fk-s-brand { color: #333; text-decoration: none; display: block; }
.fk-s-parent, .fk-sr-parent { font-weight: normal; color: #666; }

.fk-s-products li { margin: 0; }
.fk-s-products a { display: flex; align-items: center; gap: 12px; padding: 8px 6px; min-height: 65px; border-radius: 6px; font-size: 15px; line-height: 1.3; }
.fk-s-products a:hover, .fk-s-active { background: #f6f6f6; }
.fk-s-img { flex: 0 0 70px; width: 70px; height: 60px; display: flex; align-items: center; justify-content: center; }
.fk-s-img img { max-width: 70px; max-height: 60px; width: auto; height: auto; }
.fk-s-title { flex: 1 1 auto; }
.fk-s-title b { font-weight: bold; text-decoration: underline; }
.fk-s-title em { font-style: normal; font-size: .8rem; color: #999; }
.fk-s-out .fk-s-img { opacity: .5; }
.fk-s-price { flex: 0 0 auto; font-weight: bold; white-space: nowrap; }

.fk-s-brand, .fk-sr-brand { padding: 10px 14px; background: #fff6bd; border: 1px solid #f0dd8a; border-radius: 8px; font-size: 15px; color: #333; text-decoration: none; display: inline-block; }
.fk-s-brand:hover, .fk-sr-brand:hover { background: #fff0a0; text-decoration: none; }
.fk-s-count, .fk-sr-count { color: #999; font-weight: normal; font-size: .85em; }

.fk-chips { display: flex; flex-wrap: wrap; }
.fk-chips a { margin: .5rem .5rem 0 0; padding: 10px 20px; background: #eee; border-radius: 20px; font-weight: bold; color: #333; font-size: 15px; text-decoration: none; }
.fk-chips a:hover { background: #e2e2e2; text-decoration: none; }

.fk-s-all { display: block; font-size: 15px; margin-top: 1rem; padding: .5rem; text-align: center; background: #04508c; color: #fff !important; font-weight: bold; border-radius: 4px; text-decoration: none; }
.fk-s-all:hover { background: #063f6d; }
.fk-s-none { margin: 0 0 1rem; color: #666; }

/* Schließen-Kreuz: nur mobil */
.fk-s-close { display: none; position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; border: none; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px -3px #000; font-size: 26px; line-height: 36px; color: #333; padding: 0; cursor: pointer; z-index: 2; }
.searchmobilebruno #guaven_woos_s, .searchmobilebruno input[name="s"] { width: calc(100% - 20px) !important; margin-left: 10px; }

/* Mobile: Panel innerhalb des Theme-Overlays */
@media (max-width: 991px) {
  .fk-s-panel { max-height: calc(90vh - 120px); padding: 14px; padding-top: 44px; border-radius: 0; }
  .fk-s-close { display: block; }
}

/* Ergebnisseite: Produkt-/Rezept-Blöcke */
.fk-sr-panel { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; box-shadow: 0 2px 5px -3px #000; }
.fk-sr-head { font-size: 1.05rem; margin-bottom: .75rem; }
.fk-sr-section { margin-top: .75rem; }
.fk-sr-cats { display: flex; flex-wrap: wrap; gap: .5rem; }
.fk-sr-cats a { padding: 8px 14px; border: 1px solid #ddd; border-radius: 20px; color: #333; font-weight: bold; font-size: .85rem; text-decoration: none; background: #fafafa; }
.fk-sr-cats a:hover { background: #f0f0f0; text-decoration: none; }

/* Rezept-Block unter den Suchtreffern */
.fk-sr-products { clear: both; margin: 2.5rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.fk-sr-products__title { font-size: 1.1rem; margin: 0 0 1rem; }
.fk-sr-products__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.fk-sr-product { display: block; color: #333; text-decoration: none; font-size: 15px; line-height: 1.3; }
.fk-sr-product img, .fk-sr-product__noimg { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #f3f3f3; margin-bottom: .5rem; }
.fk-sr-product:hover span { text-decoration: underline; }
.fk-sr-products__all { display: inline-block; margin-top: 1rem; font-weight: bold; color: #04508c; }

/* Blog-spezifisch: Overlay #search-menu ist dunkel -> Panel hell, volle Breite unter dem Feld */
#search-menu .fk-s-wrap { position: relative; }
#search-menu .fk-s-panel { color: #333; text-align: left; border-radius: 8px; top: calc(100% + 4px); }
#search-menu .fk-s-panel a { color: #333; }
.fk-s-products.fk-s-recipes .fk-s-img { flex-basis: 80px; width: 80px; height: 60px; }
.fk-s-products.fk-s-recipes img { width: 80px; max-width: 80px; height: 60px; max-height: 60px; object-fit: cover; border-radius: 6px; }
.fk-sr-products { margin-top: 1.5rem; }
.fk-sr-products__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fk-sr-product img { object-fit: contain; background: #fff; border: 1px solid #eee; }

/* Theme blendet #desktop-menu a aus (display:none !important) – Panel-Links sichtbar erzwingen */
#desktop-menu .fk-s-panel a, .fk-s-panel a { display: block !important; }
#desktop-menu .fk-s-panel .fk-s-products a, .fk-s-panel .fk-s-products a { display: flex !important; }
#desktop-menu .fk-s-panel .fk-chips a, .fk-s-panel .fk-chips a, .fk-s-panel .fk-s-brand { display: inline-block !important; }
.fk-s-panel img { display: block !important; opacity: 1 !important; }

/* Portal-Panel (an <body>) */
.fk-s-panel.fk-s-portal { position: absolute; left: 0; top: 0; right: auto; z-index: 2147483000; box-sizing: border-box; }
body .fk-s-panel.fk-s-portal, body .fk-s-panel.fk-s-portal a { color: #333; }
