/* ══ dosuche: Suchleiste im Header + Ergebnisseite ════════════════════════ */

/* ── Suchleiste (fährt über die Logo-Leiste) ─────────────────────────────
   Entwurf Denis 02/2024: hellgraue Fläche über die volle Breite, große
   Lupe + Platzhalter "Durchsuche das Bodybuilding Depot®", X rechts.
   Öffnen: von rechts nach links herein (ease-in), Schließen: weiter nach
   links hinaus (ease-out). */
.dw-logobar {
  position: relative;
  overflow-x: clip;            /* Leiste außerhalb unsichtbar, Vorschläge dürfen nach unten ragen */
}
.dw-suchleiste {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  background: #f2f3f6;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s ease-in, visibility 0s linear 0.45s;
}
.dw-suchleiste.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.45s ease-in, visibility 0s;
}
.dw-suchleiste.is-closing {
  transform: translateX(-100%);
  visibility: visible;
  transition: transform 0.45s ease-out, visibility 0s linear 0.45s;
}
.dw-suchleiste__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}
.dw-suchleiste__lupe { flex-shrink: 0; color: #416681; }
.dw-suchleiste__input {
  flex: 1;
  min-width: 0;
  height: 56px;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 30px;
  letter-spacing: 0.02em;
  color: #212529;
}
.dw-suchleiste__input::placeholder { color: #8a9bb0; opacity: 1; }
.dw-suchleiste__input::-webkit-search-cancel-button { display: none; }
.dw-suchleiste__close {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  color: #416681;
  cursor: pointer;
}
.dw-suchleiste__close:hover { color: #b32d2f; }

/* Vorschläge: weiße Liste mit rotem Rand unter der Leiste */
.dw-suchleiste__vorschlaege {
  position: absolute;
  top: 100%;
  left: 15px;
  right: 15px;
  margin: 5px 0 0;             /* unter die rote Linie der Logo-Leiste */
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #b32d2f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 60;
}
.dw-suchleiste__vorschlaege a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 38px;
  font-size: 18px;
  line-height: 24px;
  color: #212529;
  text-decoration: none;
}
.dw-suchleiste__vorschlaege a:hover,
.dw-suchleiste__vorschlaege a.is-active { background: #f2f3f6; color: #b32d2f; }
.dw-suchleiste__typ { flex-shrink: 0; font-size: 14px; color: #8a9199; }
.dw-suchleiste__alle { border-top: 1px solid #e3e7ec; margin-top: 6px; padding-top: 6px; }
.dw-suchleiste__alle a { color: #416681; font-weight: 700; }

@media (max-width: 767px) {
  .dw-suchleiste__form { gap: 10px; }
  .dw-suchleiste__lupe { width: 24px; height: 24px; }
  .dw-suchleiste__input { font-size: 20px; }
  .dw-suchleiste__vorschlaege a { padding: 6px 16px; }
}

/* ── Ergebnisseite /suche ───────────────────────────────────────────────── */
.dw-suche__crumb {
  font-size: 15px;
  color: #6b7680;
  margin-bottom: 14px;
}
.dw-suche__crumb a { color: #b32d2f; text-decoration: none; }
.dw-suche__crumb-sep { margin: 0 6px; color: #b0b8bf; }
.dw-suche__kopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  margin-bottom: 26px;
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}
.dw-suche__titel {
  margin: 0;
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #416681;
}
.dw-suche__anzahl { margin: 0; font-size: 17.6px; color: #6b7680; white-space: nowrap; }
.dw-suche__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: start;
}

/* Filterspalte */
.dw-suche__form { display: flex; flex-direction: column; gap: 14px; }
.dw-suche__feld {
  display: flex;
  align-items: center;
  height: 54px;
  border: 1px solid #c4c7d2;
  border-radius: 4px;
  background: #fff;
}
.dw-suche__feld:focus-within { border-color: #416681; }
.dw-suche__feld input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 17.6px;
  color: #212529;
}
.dw-suche__feld button {
  width: 48px;
  height: 100%;
  border: none;
  background: none;
  color: #416681;
  cursor: pointer;
}
.dw-suche__select {
  height: 54px;
  padding: 0 44px 0 14px;
  border: 1px solid #c4c7d2;
  border-radius: 4px;
  font-family: inherit;
  font-size: 17.6px;
  color: #416681;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23416681' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='m3 6 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center / 14px 14px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.dw-suche__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: #416681;
  cursor: pointer;
}
.dw-suche__check input { width: 18px; height: 18px; accent-color: #416681; }
.dw-suche__los {
  height: 46px;
  border: none;
  border-radius: 4px;
  background: #416681;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Treffer: Produkt-Kacheln wie auf den Kategorieseiten, volle Spaltenbreite */
.dw-suche__grid.dw-kategorie__grid { max-width: none; margin: 0 0 40px; }
.dw-suche__leer { font-size: 17.6px; color: #3a4650; margin: 0 0 30px; }
.dw-suche__leer a { color: #b32d2f; }
.dw-suche__bereich { margin-bottom: 34px; }
.dw-suche__bereich-titel {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dee2e6;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #212529;
}
.dw-suche__liste { list-style: none; margin: 0; padding: 0; }
.dw-suche__liste li { padding: 8px 0; border-bottom: 1px solid #f0f2f4; }
.dw-suche__liste a {
  font-size: 18px;
  color: #b32d2f;
  text-decoration: none;
}
.dw-suche__liste .bi { margin-right: 8px; }
.dw-suche__auszug { margin: 4px 0 0; font-size: 15.5px; line-height: 1.45; color: #5d6873; }

@media (max-width: 900px) {
  .dw-suche__layout { grid-template-columns: 1fr; gap: 20px; }
  .dw-suche__kopf { flex-direction: column; align-items: flex-start; gap: 4px; }
}
