/****************************************************
 * MROP Landing Page List (serverseitig gerendert)
 * --------------------------------------------------
 * Einheitliches Styling für:
 * - Buchstabenleiste
 * - Suchfeld
 * - Ergebnisliste
 * - Pagination
 ****************************************************/

/* --- Formularcontainer --- */
.mrop-lp-list-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.5em;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e3e3e3;
}

/* --- Buchstabenleiste --- */
.mrop-lp-list-letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.mrop-lp-list-letters a {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    background: #f5f5f5;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.15s ease;
}

.mrop-lp-list-letters a:hover {
    background: #000029;
    color: #fff;
}

.mrop-lp-list-letters a.active {
    background: #000029;
    color: #fff;
    font-weight: 600;
}

/* --- Suchleiste (Sucheingabe + Button) --- */
.mrop-lp-list-searchbar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mrop-lp-list-searchbar input[type="text"] {
    width: 280px;
    max-width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
}

.mrop-lp-list-searchbar input[type="text"]:focus {
    outline: none;
    border-color: #000029;
    box-shadow: 0 0 0 1px #000029;
}

.mrop-lp-list-searchbar button {
    padding: 7px 14px;
    background: #000029;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.mrop-lp-list-searchbar button:hover {
    background: #000029;
}

/* --- Ergebnisliste --- */
/* Container & Reset */
.mrop-lp-list:not(.icon) {
    margin: 0 !important;              /* Theme-Einrückung killen */
    padding: 0 !important;             /* Theme-Einrückung killen */
    list-style: none !important;       /* Standard-Bullets aus */
    list-style-type: none !important;
    list-style-image: none !important;
}

/* sicherheitshalber alle verschachtelten ul/ol im Container */
.mrop-lp-list:not(.icon) ul,
.mrop-lp-list:not(.icon) ol {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    list-style-image: none !important;
}

/* Listeneinträge: Platz für das PNG schaffen */
.mrop-lp-list > li,
.mrop-lp-list li {                   /* doppelt gezielt = höhere Spezifität */
    position: relative;
    margin: 0 0 10px 0 !important;     /* nur Abstand nach unten */
    padding: 0 0 0 28px !important;    /* Iconbreite (16) + Abstand (12) = 28 */
    line-height: 1.5;
    background: none !important;       /* falls Theme was setzt */
}

/* eigenes Aufzählungszeichen via PNG */
.mrop-lp-list:not(.icon) > li::before,
.mrop-lp-list:not(.icon) li::before {
    content: "";
    position: absolute;
    left: 0;                           /* an die linke Kante */
    top: 50%;                          /* vertikal zentrieren */
    transform: translateY(-50%);       /* echte Zentrierung */
    width: 16px;                       /* Icon-Größe anpassen */
    height: 16px;
    background-image: url("../images/schneeflocke.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
}

/* optional: dezenter Hover */
.mrop-lp-list li:hover {
    background: #fafafa;
    border-radius: 3px;
    transition: background 0.2s ease;
}

/* --- Icon-Varianten --- */

/* Default-Bullet */
.mrop-lp-list:not(.icon).mr-icon-default li {
    list-style: none !important;
    padding-left: 28px !important;
    position: relative;
}

.mrop-lp-list:not(.icon).mr-icon-default li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("../images/bullet.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Schneeflocke */
.mrop-lp-list:not(.icon).mr-icon-snow li {
    list-style: none !important;
    padding-left: 30px !important;
    position: relative;
}

.mrop-lp-list:not(.icon).mr-icon-snow li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("../images/schneeflocke.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.95;
}

/* Keine Icons */
.mrop-lp-list:not(.icon).mr-no-icon li {
    list-style: none !important;
    padding-left: 0 !important;
}

.mrop-lp-list:not(.icon).mr-no-icon li::before {
    content: none !important;
}

.mrop-lp-list li a {
    text-decoration: none;
}

.mrop-lp-list li a:hover {
    text-decoration: underline;
}


/* --- Pagination --- */
.mrop-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 1.5em;
    gap: 6px;
}

.mrop-pagination a {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 3px;
    background: #f5f5f5;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.15s ease;
}

.mrop-pagination a:hover {
    background: #000029;
    color: #fff;
}

.mrop-pagination a.active {
    background: #000029;
    color: #fff;
    font-weight: 600;
}

/* --- Mobile Anpassung --- */
@media (max-width: 600px) {
    .mrop-lp-list-searchbar {
        flex-direction: column;
        align-items: stretch;
    }

    .mrop-lp-list-searchbar input[type="text"],
    .mrop-lp-list-searchbar button {
        width: 100%;
    }

    .mrop-lp-list-letters {
        justify-content: center;
    }
}
