/**
 * @package     MuellerWeb.Module
 * @subpackage  mod_mwh_articlelist
 * @version     1.0.0
 * @copyright   (C) 2026 Heiko Müller - Müller Web & Hosting. All rights reserved.
 */

.mwh-al-wrapper {
    --mwh-al-bg: transparent;
    --mwh-al-heading-color: inherit;
    --mwh-al-link-color: #b88938;
    --mwh-al-hover-color: #8f6620;
    --mwh-al-marker-color: #3d4a43;
    --mwh-al-border-color: rgba(128, 128, 128, 0.22);
    --mwh-al-heading-size: 1.18rem;
    --mwh-al-item-size: 0.96rem;
    --mwh-al-item-py: 5px;
    --mwh-al-padding: 0px;
    --mwh-al-radius: 8px;
    --mwh-al-thumb-size: 48px;
    --mwh-al-gap: 12px;
    --mwh-al-cols-desktop: 1;
    --mwh-al-cols-laptop: 1;
    --mwh-al-cols-tablet-l: 1;
    --mwh-al-cols-tablet-p: 1;
    --mwh-al-cols-phone-l: 1;
    --mwh-al-cols-phone-p: 1;

    width: 100%;
    box-sizing: border-box !important;
    font-family: inherit;
    text-align: left;
    line-height: 1.45;
}

.mwh-al-wrapper *,
.mwh-al-wrapper *::before,
.mwh-al-wrapper *::after {
    box-sizing: border-box !important;
}

/* Hard-constrain SVG icons against Nicepage global svg {width:100%} rules */
.mwh-al-wrapper svg.mwh-al-svg,
.mwh-al-wrapper .mwh-al-marker svg {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    max-width: 13px !important;
    max-height: 13px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    fill: none;
    stroke: currentColor;
}

.mwh-al-wrapper .mwh-al-box {
    background: var(--mwh-al-bg);
    padding: var(--mwh-al-padding);
    border-radius: var(--mwh-al-radius);
}

/* Header */
.mwh-al-wrapper .mwh-al-header {
    margin-bottom: 10px;
}

.mwh-al-wrapper .mwh-al-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: var(--mwh-al-heading-size) !important;
    color: var(--mwh-al-heading-color) !important;
    font-weight: 600 !important;
    line-height: 1.28 !important;
}

.mwh-al-wrapper .mwh-al-subtitle {
    margin-top: 3px;
    font-size: 0.85rem;
    opacity: 0.78;
}

/* Quick Filter Input */
.mwh-al-wrapper .mwh-al-quickfilter {
    margin-bottom: 10px;
}

.mwh-al-wrapper .mwh-al-quickfilter__input {
    width: 100% !important;
    padding: 6px 11px !important;
    font-size: 0.86rem !important;
    border: 1px solid var(--mwh-al-border-color) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: #1e293b !important;
    outline: none !important;
}

.mwh-al-wrapper .mwh-al-quickfilter__input:focus {
    border-color: var(--mwh-al-link-color) !important;
}

/* Article List Grid (Supports 1 to 4 Columns across Nicepage 6 Breakpoints) */
.mwh-al-wrapper ul.mwh-al-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(var(--mwh-al-cols-desktop, 1), minmax(0, 1fr)) !important;
    column-gap: var(--mwh-al-gap, 12px) !important;
    row-gap: 0px !important;
}

@media (max-width: 1199.98px) {
    .mwh-al-wrapper ul.mwh-al-list {
        grid-template-columns: repeat(var(--mwh-al-cols-laptop, 1), minmax(0, 1fr)) !important;
    }
}
@media (max-width: 991.98px) {
    .mwh-al-wrapper ul.mwh-al-list {
        grid-template-columns: repeat(var(--mwh-al-cols-tablet-l, 1), minmax(0, 1fr)) !important;
    }
}
@media (max-width: 767.98px) {
    .mwh-al-wrapper ul.mwh-al-list {
        grid-template-columns: repeat(var(--mwh-al-cols-tablet-p, 1), minmax(0, 1fr)) !important;
    }
}
@media (max-width: 575.98px) {
    .mwh-al-wrapper ul.mwh-al-list {
        grid-template-columns: repeat(var(--mwh-al-cols-phone-l, 1), minmax(0, 1fr)) !important;
    }
}
@media (max-width: 479.98px) {
    .mwh-al-wrapper ul.mwh-al-list {
        grid-template-columns: repeat(var(--mwh-al-cols-phone-p, 1), minmax(0, 1fr)) !important;
    }
}

.mwh-al-wrapper li.mwh-al-item {
    list-style: none !important;
    margin: 0 !important;
    padding: var(--mwh-al-item-py, 5px) 2px !important;
    font-size: var(--mwh-al-item-size, 0.96rem) !important;
    transition: background-color 0.16s ease, transform 0.16s ease, padding-left 0.16s ease;
}

.mwh-al-wrapper li.mwh-al-item::before {
    display: none !important;
    content: none !important;
}

.mwh-al-wrapper .mwh-al-item__main {
    display: flex !important;
    align-items: baseline !important;
    gap: 9px !important;
    width: 100% !important;
}

/* Markers */
.mwh-al-wrapper .mwh-al-marker {
    color: var(--mwh-al-marker-color);
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    user-select: none;
}

.mwh-al-wrapper .mwh-al-marker--disc {
    font-size: 1.05em;
    font-weight: 700;
}

.mwh-al-wrapper .mwh-al-marker--diamond {
    font-size: 0.72em;
    transform: translateY(-1px);
}

.mwh-al-wrapper .mwh-al-marker--num {
    font-size: 0.76rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 5px;
    background: rgba(184, 137, 56, 0.15);
    color: var(--mwh-al-link-color);
}

/* Links */
.mwh-al-wrapper .mwh-al-item__content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.mwh-al-wrapper a.mwh-al-link {
    color: var(--mwh-al-link-color) !important;
    text-decoration: none !important;
    font-weight: 400;
    transition: color 0.15s ease;
    display: inline;
}

.mwh-al-wrapper a.mwh-al-link:hover {
    color: var(--mwh-al-hover-color) !important;
}

/* Hover Effects */
.mwh-al-wrapper.mwh-al-hover-slide_accent li.mwh-al-item:hover {
    transform: translateX(3px);
}

.mwh-al-wrapper.mwh-al-hover-soft_bg li.mwh-al-item {
    padding-left: 6px !important;
    padding-right: 6px !important;
    border-radius: 5px;
}
.mwh-al-wrapper.mwh-al-hover-soft_bg li.mwh-al-item:hover {
    background-color: rgba(184, 137, 56, 0.09);
}

.mwh-al-wrapper.mwh-al-hover-underline a.mwh-al-link:hover {
    text-decoration: underline !important;
}

/* Dividers */
.mwh-al-wrapper.mwh-al-divider-subtle li.mwh-al-item {
    border-bottom: 1px solid var(--mwh-al-border-color);
}
.mwh-al-wrapper.mwh-al-divider-subtle li.mwh-al-item:last-child {
    border-bottom: none;
}

.mwh-al-wrapper.mwh-al-divider-dashed li.mwh-al-item {
    border-bottom: 1px dashed var(--mwh-al-border-color);
}
.mwh-al-wrapper.mwh-al-divider-dashed li.mwh-al-item:last-child {
    border-bottom: none;
}

.mwh-al-wrapper.mwh-al-divider-zebra li.mwh-al-item:nth-child(even) {
    background-color: rgba(128, 128, 128, 0.05);
    border-radius: 4px;
    padding-left: 6px !important;
    padding-right: 6px !important;
}

/* Active / Current Open Article Highlight */
.mwh-al-wrapper li.mwh-al-item.is-current-article {
    background-color: rgba(184, 137, 56, 0.12);
    border-left: 3px solid var(--mwh-al-link-color);
    padding-left: 8px !important;
    border-radius: 0 5px 5px 0;
}

.mwh-al-wrapper li.mwh-al-item.is-current-article a.mwh-al-link {
    font-weight: 700 !important;
    color: var(--mwh-al-hover-color) !important;
}

/* Thumbnail, Badges & Snippets */
.mwh-al-wrapper .mwh-al-thumb-link {
    flex-shrink: 0 !important;
    display: inline-flex !important;
}

.mwh-al-wrapper .mwh-al-thumb {
    width: var(--mwh-al-thumb-size, 48px) !important;
    height: var(--mwh-al-thumb-size, 48px) !important;
    border-radius: 6px !important;
    object-fit: cover !important;
    display: block !important;
    background: #e2dcd3;
}

.mwh-al-wrapper .mwh-al-year-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 6px;
    margin-right: 5px;
    border-radius: 4px;
    background: rgba(184, 137, 56, 0.16);
    color: #8f6620;
    vertical-align: baseline;
}

.mwh-al-wrapper .mwh-al-cat-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 1px 6px;
    margin-right: 5px;
    border-radius: 4px;
    background: rgba(27, 46, 37, 0.08);
    color: #1b2e25;
}

.mwh-al-wrapper .mwh-al-date {
    display: block;
    font-size: 0.76rem;
    opacity: 0.65;
    margin-top: 1px;
}

.mwh-al-wrapper .mwh-al-snippet {
    font-size: 0.84rem;
    opacity: 0.82;
    margin-top: 4px;
    line-height: 1.4;
}

/* Show More Button */
.mwh-al-wrapper .mwh-al-more-wrap {
    margin-top: 10px;
}

.mwh-al-wrapper .mwh-al-more-btn {
    width: 100%;
    padding: 6px 12px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--mwh-al-link-color);
    background: rgba(184, 137, 56, 0.08);
    border: 1px solid rgba(184, 137, 56, 0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.mwh-al-wrapper .mwh-al-more-btn:hover {
    background: rgba(184, 137, 56, 0.16);
}

/* ==========================================================================
   8 SIDEBAR & COMPACT DESIGN PRESETS
   ========================================================================== */

/* 1. Classic Bullets (Matches "Brunnen in Biedenkopf" Screenshot 1) */
.mwh-al-wrapper.mwh-al-style-classic_bullets.mwh-al-preset-colors {
    --mwh-al-bg: transparent;
    --mwh-al-heading-color: #1b2e25;
    --mwh-al-link-color: #b88938;
    --mwh-al-hover-color: #8f6620;
    --mwh-al-marker-color: #3d4a43;
}

/* 2. Biedenkopf Heritage Card (Warm Parchment Box + Gold Accent Header) */
.mwh-al-wrapper.mwh-al-style-biedenkopf_heritage.mwh-al-preset-colors {
    --mwh-al-bg: #f7f5f0;
    --mwh-al-heading-color: #0d1f17;
    --mwh-al-link-color: #a67629;
    --mwh-al-hover-color: #0d1f17;
    --mwh-al-marker-color: #b88938;
    --mwh-al-border-color: #e2dcd3;
    --mwh-al-padding: 18px 20px;
}
.mwh-al-wrapper.mwh-al-style-biedenkopf_heritage .mwh-al-box {
    border: 1px solid var(--mwh-al-border-color);
    border-top: 3px solid #b88938;
    box-shadow: 0 4px 14px rgba(13, 31, 23, 0.05);
}
.mwh-al-wrapper.mwh-al-style-biedenkopf_heritage .mwh-al-header {
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--mwh-al-border-color);
}

/* 3. Mini-Thumbnail-Liste */
.mwh-al-wrapper.mwh-al-style-mini_thumbs .mwh-al-item__main {
    align-items: center !important;
}
.mwh-al-wrapper.mwh-al-style-mini_thumbs li.mwh-al-item {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid var(--mwh-al-border-color);
}
.mwh-al-wrapper.mwh-al-style-mini_thumbs li.mwh-al-item:last-child {
    border-bottom: none;
}

/* 4. Kompakte Themen-Chips (Pills) */
.mwh-al-wrapper.mwh-al-style-compact_pills ul.mwh-al-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
.mwh-al-wrapper.mwh-al-style-compact_pills li.mwh-al-item {
    padding: 0 !important;
    border: none !important;
    transform: none !important;
}
.mwh-al-wrapper.mwh-al-style-compact_pills a.mwh-al-link {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 11px !important;
    border-radius: 999px !important;
    background: rgba(184, 137, 56, 0.11);
    border: 1px solid rgba(184, 137, 56, 0.28);
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    transition: all 0.15s ease;
}
.mwh-al-wrapper.mwh-al-style-compact_pills a.mwh-al-link:hover,
.mwh-al-wrapper.mwh-al-style-compact_pills li.mwh-al-item.is-current-article a.mwh-al-link {
    background: var(--mwh-al-link-color) !important;
    color: #ffffff !important;
    border-color: var(--mwh-al-link-color) !important;
}

/* 5. Nummerierte Liste (01, 02, 03) */
.mwh-al-wrapper.mwh-al-style-numbered_ranking .mwh-al-item__main {
    align-items: center !important;
}

/* 6. Mini-Chronik / Zeitleiste */
.mwh-al-wrapper.mwh-al-style-timeline_compact ul.mwh-al-list {
    position: relative;
    padding-left: 16px !important;
    border-left: 2px solid rgba(184, 137, 56, 0.4);
    margin-left: 6px !important;
}
.mwh-al-wrapper.mwh-al-style-timeline_compact li.mwh-al-item {
    position: relative;
    padding-left: 4px !important;
}
.mwh-al-wrapper.mwh-al-style-timeline_compact li.mwh-al-item::after {
    content: "";
    position: absolute;
    left: -21px;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mwh-al-link-color);
    border: 2px solid #ffffff;
}

/* 7. Dunkelgrün & Gold (Matches Mein-Biedenkopf Header #0d1f17) */
.mwh-al-wrapper.mwh-al-style-dark_forest.mwh-al-preset-colors {
    --mwh-al-bg: #0d1f17;
    --mwh-al-heading-color: #d4a853;
    --mwh-al-link-color: #f3efe6;
    --mwh-al-hover-color: #d4a853;
    --mwh-al-marker-color: #b88938;
    --mwh-al-border-color: rgba(212, 168, 83, 0.2);
    --mwh-al-padding: 18px 20px;
}
.mwh-al-wrapper.mwh-al-style-dark_forest .mwh-al-box {
    color: #f3efe6;
    border: 1px solid rgba(212, 168, 83, 0.3);
    box-shadow: 0 8px 22px rgba(13, 31, 23, 0.22);
}
.mwh-al-wrapper.mwh-al-style-dark_forest .mwh-al-header {
    border-bottom: 1px solid rgba(212, 168, 83, 0.22);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

/* 8. Aufklappbare Kurzinfo-Liste (Accordion Preview) */
.mwh-al-wrapper.mwh-al-style-accordion_preview .mwh-al-snippet {
    display: none;
    padding: 6px 8px;
    margin-top: 6px;
    background: rgba(128, 128, 128, 0.06);
    border-radius: 6px;
}
.mwh-al-wrapper.mwh-al-style-accordion_preview li.mwh-al-item.is-expanded .mwh-al-snippet {
    display: block;
}
.mwh-al-wrapper .mwh-al-acc-toggle {
    background: transparent !important;
    border: 1px solid var(--mwh-al-border-color) !important;
    border-radius: 4px !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 1 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    color: inherit !important;
    flex-shrink: 0 !important;
}
.mwh-al-wrapper .mwh-al-readmore-inline {
    display: inline-block;
    margin-left: 6px;
    font-weight: 600;
    color: var(--mwh-al-link-color) !important;
    text-decoration: none;
}

/* Optional overview link: follows the selected module colours. */
.mwh-al-wrapper .mwh-al-extra-wrap { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--mwh-al-border-color); }
.mwh-al-wrapper a.mwh-al-extra-link { display: inline-flex; gap: .45em; align-items: center; color: var(--mwh-al-link-color) !important; font-weight: 700; text-decoration: none; border: 1px solid var(--mwh-al-link-color); border-radius: 5px; padding: .45em .7em; line-height: 1.35; }
.mwh-al-wrapper a.mwh-al-extra-link:hover, .mwh-al-wrapper a.mwh-al-extra-link:focus-visible { color: var(--mwh-al-hover-color) !important; border-color: var(--mwh-al-hover-color); text-decoration: underline; }
