.paw-als-dropdown{
    position:absolute;
    z-index: 1000000;
    background:#fff;
    border:1px solid rgba(0,0,0,.12);
    border-radius:16px;
    box-shadow: 0 18px 42px rgba(0,0,0,.18);
    overflow:hidden;

    /* Höhe */
    max-height: 560px;
}

.paw-als-scroll{
    max-height: 560px;
    overflow:auto;
}

/* -------------------------------------------------------
   Vollflächiges Overlay (Einstellung "Aussehen Such-Popup")
   Panel: volle Breite, ~60% Viewport-Höhe, fixed über dem Content.
   Backdrop: schwarz, opacity .75, dimmt die Seite dahinter.
-------------------------------------------------------- */
.paw-als-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 999998;
    display: none;
}

.paw-als-dropdown--overlay{
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    max-height: none;
    border-radius: 0 0 16px 16px;
    border-left: none;
    border-right: none;
    flex-direction: column; /* display:flex setzt das JS beim Öffnen */
}

/* Eigenes Suchfeld im Overlay (das Original liegt unter dem Panel) */
.paw-als-overlay-head{
    flex: 0 0 auto;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

.paw-als-overlay-input{
    width: 100%;
    box-sizing: border-box;
    font-size: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.15);
    outline: none;
}

.paw-als-overlay-input:focus{
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.paw-als-overlay-content{
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.paw-als-overlay-content .paw-als-scroll{
    max-height: 100%;
    height: 100%;
}

/* -------------------------------------------------------
   Mega-Menü (Einstellung "Aussehen Such-Popup")
   Zentriertes Panel, zwei Spalten: links Highlights (bleiben
   beim Tippen sichtbar), rechts die Suchergebnisse.
-------------------------------------------------------- */
.paw-als-dropdown--megamenu{
    position: fixed;
    left: 50%;
    top: 28px;
    transform: translateX(-50%);
    width: min(1100px, calc(100vw - 32px));
    max-height: 80vh;
    border-radius: 16px;
    flex-direction: column; /* display:flex setzt das JS beim Öffnen */
}

.paw-als-mega-body{
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.paw-als-mega-highlights{
    flex: 0 0 42%;
    max-width: 42%;
    min-height: 0;
    overflow: auto;
    border-right: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.015);
}

.paw-als-mega-results{
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.paw-als-mega-results .paw-als-scroll{
    max-height: 100%;
    height: 100%;
}

@media (max-width: 767px){
    /* Mobil: Highlights-Spalte ausblenden, Ergebnisse volle Breite */
    .paw-als-mega-highlights{ display: none !important; }
}

/* nicer scrollbar */
.paw-als-scroll::-webkit-scrollbar{ width: 10px; height: 10px; }
.paw-als-scroll::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.18); border-radius: 10px; }
.paw-als-scroll::-webkit-scrollbar-track{ background: rgba(0,0,0,.04); }

.paw-als-loading,
.paw-als-empty{
    padding: 16px 16px;
    color:#6b7280;
    font-size:14px;
}

/* Fehlertoleranz-Hinweis ("Ergebnisse für ...") */
.paw-als-corrected{
    padding: 10px 16px;
    font-size: 13px;
    color:#6b7280;
    background: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.paw-als-corrected strong{
    color:#111827;
}

/* -------------------------------------------------------
   Banner (NEU) – full width, kompletter Banner = Link
   JS Klassen: paw-als-bannerfull-wrap/link/inner/img/label
-------------------------------------------------------- */
.paw-als-bannerfull-wrap{
    padding: 14px 14px 10px 14px;
}

.paw-als-bannerfull-link{
    display:block;
    text-decoration:none !important;
    color: inherit;
}

.paw-als-bannerfull-inner{
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

.paw-als-bannerfull-img{
    width: 100%;
    height: auto;
    display:block;
}

.paw-als-bannerfull-label{
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 900;
    color: #111827;
    border-top: 1px solid rgba(0,0,0,.06);
    line-height: 1.2;
}

/* -------------------------------------------------------
   Sections
-------------------------------------------------------- */
.paw-als-section-title{
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
    color:#6b7280;
    text-transform: uppercase;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.paw-als-section-body{
    padding: 6px 0;
}

.paw-als-item{
    display:flex;
    align-items:center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration:none !important;
    color:#111827;
}

.paw-als-item:hover{
    background: rgba(0,0,0,.03);
}

.paw-als-thumb{
    width: 62px;
    height: 62px;
    border-radius: 14px;
    overflow:hidden;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.02);
    flex: 0 0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
}

.paw-als-thumb-img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.paw-als-thumb-ph{
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: rgba(0,0,0,.10);
}

.paw-als-text{
    min-width:0;
    display:block;
}

.paw-als-title{
    display:block;
    font-size:16px;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paw-als-item--noimg{
    padding-left: 18px; /* optisch wie mit thumb ausrichten */
}

.paw-als-item--noimg .paw-als-title{
    font-weight: 750;
}

/* -------------------------------------------------------
   Pagination "Mehr Artikel anzeigen"
-------------------------------------------------------- */
.paw-als-more-wrap{
    padding: 4px 16px 12px 16px;
}

.paw-als-more{
    display:block;
    width:100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
}

.paw-als-more:hover{
    background: rgba(0,0,0,.03);
}

.paw-als-more:disabled{
    opacity: .6;
    cursor: default;
}

/* -------------------------------------------------------
   Footer "Alle Ergebnisse"
-------------------------------------------------------- */
.paw-als-footer{
    padding: 12px 14px 14px 14px;
    border-top: 1px solid rgba(0,0,0,.06);
    background: rgba(0,0,0,.01);
}

.paw-als-all{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    text-decoration:none !important;
    font-weight: 900;
    font-size: 15px;
    color: #111827;
    box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

.paw-als-all:hover{
    transform: translateY(-1px);
}

.paw-als-all-arrow{
    font-weight: 950;
    opacity: .85;
}
