/* Hellweg Suche: Sofort-Treffer unter dem Suchfeld */
.hw-sofort {
    position: absolute;
    z-index: 2147483000;
    box-sizing: border-box;
    background: #fff;
    color: #1d1d1b;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
    font-size: 15px;
    line-height: 1.35;
    overflow: hidden auto;
    overscroll-behavior: contain;
    max-height: min(78vh, 640px);
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.hw-sofort[hidden] { display: none; }
.hw-sofort * { box-sizing: border-box; }
.hw-sofort-spalten { display: block; }
.hw-sofort-kopf {
    padding: 12px 16px 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b6b68;
}
.hw-sofort a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}
.hw-sofort a.hw-aktiv { background: #f1f1ef; }
@media (hover: hover) and (pointer: fine) {
    .hw-sofort a:hover { background: #f1f1ef; }
}
.hw-sofort-wort > span:first-child,
.hw-sofort-kat > span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-sofort mark { background: none; color: inherit; padding: 0; font-weight: 700; }
.hw-sofort-zahl { flex: 0 0 auto; font-size: 13px; color: #6b6b68; font-variant-numeric: tabular-nums; }
.hw-sofort-kat small { color: #6b6b68; font-size: 13px; }
.hw-sofort-art img {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #f6f6f4;
}
.hw-sofort-name {
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hw-sofort-preis { flex: 0 0 auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hw-sofort a.hw-sofort-alle {
    justify-content: center;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, .1);
    font-weight: 700;
    padding: 12px 16px;
}
.hw-sofort-leer { padding: 16px; color: #4a4a47; }
.hw-sofort.hw-laedt .hw-sofort-kopf { opacity: .6; }

/* Breite Ansicht: Vorschlaege und Kategorien links, Artikel rechts */
.hw-sofort.hw-breit .hw-sofort-spalten.hw-zwei { display: grid; grid-template-columns: minmax(200px, 5fr) 8fr; }
.hw-sofort.hw-breit .hw-sofort-spalten.hw-zwei > div { min-width: 0; }
.hw-sofort.hw-breit .hw-sofort-spalten.hw-zwei > div:first-child { border-right: 1px solid rgba(0, 0, 0, .1); background: #fafaf8; }

/* Suchleiste: Lupe im Kopfbereich, feste Lupe beim Scrollen, Leiste am oberen Rand */
.hw-lupe-li { display: flex; align-items: center; }
.hw-lupe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 24px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.hw-lupe::before { content: ""; position: absolute; inset: 0 -10px; }
.hw-lupe svg { width: 24px; height: 24px; }
@media (max-width: 420px) {
    #shop-nav > li.hw-lupe-li { margin-left: 6px; }
}
.hw-lupe-fest {
    position: fixed;
    z-index: 1040;
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: calc(12px + env(safe-area-inset-right, 0px));
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #1d1d1b;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 140ms cubic-bezier(.23, 1, .32, 1);
}
.hw-lupe-fest[hidden] { display: none; }
.hw-lupe-fest:active { transform: scale(.95); }
.hw-leiste-grund {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    background: rgba(0, 0, 0, .45);
}
.hw-leiste-grund[hidden], .hw-leiste[hidden] { display: none; }
.hw-leiste {
    position: fixed;
    z-index: 2147482500;
    top: 0;
    left: 0;
    right: 0;
    padding: calc(10px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 10px max(12px, env(safe-area-inset-left, 0px));
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    animation: hw-leiste-rein 180ms cubic-bezier(.23, 1, .32, 1);
}
@keyframes hw-leiste-rein {
    from { transform: translateY(-12px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hw-leiste { animation: none; }
    .hw-lupe-fest { transition: none; }
}
.hw-leiste form {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 760px;
    margin: 0 auto;
}
.hw-leiste input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border: 2px solid #1d1d1b;
    border-radius: 24px;
    background: #fff;
    color: #1d1d1b;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.hw-leiste input:focus-visible { box-shadow: 0 0 0 3px rgba(141, 180, 30, .55); }
.hw-leiste button {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.hw-leiste-los { background: #1d1d1b; color: #fff; }
.hw-leiste-zu { background: none; color: #1d1d1b; }
