/* Kompakte Artikeltitel: Zeilenzahl und Spalten wechseln je Modul und Bildschirm. */
.mwh-cards-module .mwh-ac-article-list {
    display: grid;
    grid-template-columns: repeat(var(--list-cols, 1), minmax(0, 1fr));
    grid-template-rows: repeat(var(--list-rows, 1), auto);
    grid-auto-flow: column;
    column-gap: var(--ac-gap-x, 30px);
    row-gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    font-family: var(--ac-body-font, inherit);
    font-size: var(--list-font-size, 1rem);
    text-align: left;
}
.mwh-cards-module .mwh-ac-article-list li {
    list-style: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.mwh-cards-module .mwh-ac-article-list li::before { content: none; }
.mwh-cards-module .mwh-ac-article-list a {
    display: flex;
    gap: 0.65em;
    align-items: baseline;
    padding: 0.55em 0;
    color: var(--ac-title-col, currentColor);
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.mwh-cards-module .mwh-ac-article-list a::before {
    content: '›';
    flex: none;
    color: var(--ac-accent, currentColor);
    font-weight: bold;
}
.mwh-cards-module .mwh-ac-article-list a:hover,
.mwh-cards-module .mwh-ac-article-list a:focus-visible { text-decoration: underline; }
.mwh-cards-module .mwh-ac-article-list a:focus-visible { outline: 2px solid var(--ac-accent, currentColor); outline-offset: 2px; }
.mwh-cards-module .mwh-ac-article-list.list-lines li { border-bottom: 1px solid var(--ac-accent, currentColor); }
.mwh-cards-module .mwh-ac-article-list.list-tiles { row-gap: 0.5rem; }
.mwh-cards-module .mwh-ac-article-list.list-tiles a {
    height: 100%;
    padding: 0.7em 0.85em;
    background: var(--ac-card-bg, transparent);
    border: 1px solid var(--ac-accent, currentColor);
    border-radius: var(--ac-card-radius, 4px);
}
.mwh-cards-module.preset-inherit_template .mwh-ac-article-list.list-tiles a { background: transparent; }

/**
 * Article Cards & Slides v1.4.0
 * Autor: Heiko Müller (https://mueller-webhosting.de)
 */

.mwh-cards-module {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
    font-family: var(--ac-body-font, inherit);
}

.mwh-cards-module *,
.mwh-cards-module *::before,
.mwh-cards-module *::after {
    box-sizing: border-box;
}

/* Header */
.mwh-ac-header {
    text-align: center;
    margin-bottom: 2.8rem;
}

.mwh-ac-overline {
    color: var(--ac-accent, #c59b47);
    font-size: 1.1rem;
    font-family: var(--ac-title-font, inherit);
    margin-bottom: 0.45rem;
}

.mwh-ac-headline {
    color: var(--ac-title-col, currentColor);
    font-family: var(--ac-title-font, inherit);
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: var(--ac-title-weight, 600);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.mwh-ac-headline.with-lines::before,
.mwh-ac-headline.with-lines::after {
    content: "";
    display: block;
    width: 75px;
    height: 1px;
    background: var(--ac-accent, #c59b47);
    opacity: 0.75;
}

/* =========================================================
   GRID BASIS (Cards, Listen, Banner, Hero+Grid)
   ========================================================= */
.mwh-cards-module:not(.style-slideshow) .mwh-ac-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: var(--ac-justify, flex-start);
    column-gap: var(--ac-gap-x, 30px);
    row-gap: var(--ac-gap-y, 32px);
    width: 100%;
}

.mwh-cards-module:not(.style-slideshow) .mwh-ac-item {
    flex: 0 0 calc((100% - ((var(--ac-cols, 1) - 1) * var(--ac-gap-x, 30px)) - 0.5px) / var(--ac-cols, 1));
    max-width: calc((100% - ((var(--ac-cols, 1) - 1) * var(--ac-gap-x, 30px)) - 0.5px) / var(--ac-cols, 1));
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    text-align: var(--ac-align, left);
    background: var(--ac-card-bg, #ffffff);
    border: 1px solid var(--ac-card-border, transparent);
    border-radius: var(--ac-card-radius, 4px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mwh-cards-module.has-shadow:not(.style-slideshow) .mwh-ac-item {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.mwh-cards-module.clickable-cards .mwh-ac-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
}

.mwh-cards-module.clickable-cards:not(.style-slideshow) .mwh-ac-item:hover {
    transform: translateY(-4px);
}

.mwh-cards-module.clickable-cards.has-shadow:not(.style-slideshow) .mwh-ac-item:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   TYPOGRAFIE & TEXT-CONTAINER
   ========================================================= */
.mwh-ac-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.mwh-cards-module.align-center .mwh-ac-content {
    align-items: center;
    text-align: center;
}

.mwh-cards-module.align-right .mwh-ac-content {
    align-items: flex-end;
    text-align: right;
}

.mwh-ac-meta {
    color: var(--ac-meta-col, #888888);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.mwh-ac-title {
    color: var(--ac-title-col, #24332d);
    font-family: var(--ac-title-font, inherit);
    font-size: var(--ac-title-size, 1.75rem);
    font-weight: var(--ac-title-weight, 600);
    margin: 0 0 12px;
    line-height: 1.22;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.mwh-ac-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.mwh-ac-item:hover .mwh-ac-title a {
    color: var(--ac-accent, #c59b47) !important;
}

.mwh-ac-teaser {
    color: var(--ac-text-col, #555555);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* =========================================================
   BILDER & ZUSCHNITT
   ========================================================= */
.mwh-ac-image {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.mwh-ac-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--ac-img-ratio, auto);
    object-fit: cover;
    object-position: center var(--ac-img-pos, center);
    transition: transform 0.4s ease;
}

.mwh-ac-item:hover .mwh-ac-image img {
    transform: scale(1.04);
}

/* =========================================================
   BUTTONS (Weiterlesen)
   ========================================================= */
.mwh-ac-action {
    margin-top: auto;
}

.mwh-ac-btn {
    display: inline-block;
    font-family: var(--ac-body-font, inherit);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    position: relative;
    z-index: 6;
    transition: all 0.2s ease;
}

.mwh-cards-module.btn-text_link .mwh-ac-btn {
    color: var(--ac-accent, #c59b47) !important;
    padding: 0;
    background: transparent;
}
.mwh-cards-module.btn-text_link .mwh-ac-btn:hover {
    filter: brightness(0.85);
}

.mwh-cards-module.btn-outline .mwh-ac-btn {
    color: var(--ac-accent, #c59b47) !important;
    border: 1.5px solid var(--ac-accent, #c59b47);
    padding: 8px 22px;
    border-radius: 4px;
    text-align: center;
}
.mwh-cards-module.btn-outline .mwh-ac-btn:hover {
    background: var(--ac-accent, #c59b47);
    color: #ffffff !important;
}

.mwh-cards-module.btn-solid .mwh-ac-btn {
    background: var(--ac-accent, #c59b47);
    color: #ffffff !important;
    padding: 9px 22px;
    border-radius: 4px;
    text-align: center;
}
.mwh-cards-module.btn-solid .mwh-ac-btn:hover {
    filter: brightness(1.1);
}

/* =========================================================
   ANSICHT 2: DARK CARDS (Planeten-Stil)
   ========================================================= */
.mwh-cards-module.style-cards_dark .mwh-ac-item {
    background: #1d1f21;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.mwh-cards-module.style-cards_dark .mwh-ac-title {
    color: #ffffff;
}
.mwh-cards-module.style-cards_dark .mwh-ac-teaser {
    color: rgba(255, 255, 255, 0.78);
}
.mwh-cards-module.style-cards_dark .mwh-ac-meta {
    color: var(--ac-accent, #c59b47);
}
.mwh-cards-module.style-cards_dark .mwh-ac-image {
    border-bottom: 2px solid var(--ac-accent, #c59b47);
}

/* =========================================================
   ANSICHT 3 & 4: KLASSISCHE LISTE & ZICK-ZACK-LISTE
   ========================================================= */
.mwh-cards-module.style-list_classic .mwh-ac-item,
.mwh-cards-module.style-list_alternating .mwh-ac-item {
    flex-direction: row;
    align-items: var(--ac-img-valign, flex-start);
    gap: 28px;
    padding: 22px;
}

.mwh-cards-module.style-list_alternating .mwh-ac-item.is-odd {
    flex-direction: row-reverse;
}

.mwh-cards-module.style-list_classic .mwh-ac-image,
.mwh-cards-module.style-list_alternating .mwh-ac-image {
    flex: 0 0 clamp(140px, 32%, var(--ac-list-img-w, 240px));
    width: clamp(140px, 32%, var(--ac-list-img-w, 240px));
    border-radius: var(--ac-card-radius, 4px);
    align-self: var(--ac-img-valign, flex-start);
}

.mwh-cards-module.valign-stretch.style-list_classic .mwh-ac-image,
.mwh-cards-module.valign-stretch.style-list_alternating .mwh-ac-image {
    align-self: stretch;
    display: flex;
}

.mwh-cards-module.valign-stretch.style-list_classic .mwh-ac-image img,
.mwh-cards-module.valign-stretch.style-list_alternating .mwh-ac-image img {
    height: 100%;
    aspect-ratio: auto;
}

.mwh-cards-module.style-list_classic .mwh-ac-content,
.mwh-cards-module.style-list_alternating .mwh-ac-content {
    padding: 0;
    flex: 1 1 0%;
    min-width: 0;
}

@media (max-width: 639px) {
    .mwh-cards-module.style-list_classic .mwh-ac-item,
    .mwh-cards-module.style-list_alternating .mwh-ac-item,
    .mwh-cards-module.style-list_alternating .mwh-ac-item.is-odd {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .mwh-cards-module.style-list_classic .mwh-ac-image,
    .mwh-cards-module.style-list_alternating .mwh-ac-image {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* =========================================================
   ANSICHT 5: MAGAZIN / HERO + GRID
   ========================================================= */
.mwh-cards-module.style-hero_grid .mwh-ac-item.is-first {
    flex: 0 0 100%;
    max-width: 100%;
    flex-direction: row;
    align-items: stretch;
}

.mwh-cards-module.style-hero_grid .mwh-ac-item.is-first .mwh-ac-image {
    flex: 0 0 38%;
    width: 38%;
    display: flex;
}

.mwh-cards-module.style-hero_grid .mwh-ac-item.is-first .mwh-ac-image img {
    height: 100%;
    min-height: 260px;
    aspect-ratio: auto;
}

.mwh-cards-module.style-hero_grid .mwh-ac-item.is-first .mwh-ac-content {
    padding: 32px;
    justify-content: center;
}

@media (max-width: 719px) {
    .mwh-cards-module.style-hero_grid .mwh-ac-item.is-first {
        flex-direction: column;
    }
    .mwh-cards-module.style-hero_grid .mwh-ac-item.is-first .mwh-ac-image {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* =========================================================
   ANSICHT 6: VERLAUF-OVERLAY CARDS
   ========================================================= */
.mwh-cards-module.style-cards_overlay .mwh-ac-item {
    border: none;
    border-radius: var(--ac-card-radius, 8px);
    overflow: hidden;
    min-height: 320px;
}
.mwh-cards-module.style-cards_overlay .mwh-ac-image {
    position: absolute;
    inset: 0;
    height: 100%;
    border-radius: 0;
}
.mwh-cards-module.style-cards_overlay .mwh-ac-image img {
    height: 100%;
    aspect-ratio: auto;
}
.mwh-cards-module.style-cards_overlay .mwh-ac-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 65%, transparent 100%);
    color: #ffffff;
    padding: 50px 24px 24px;
}
.mwh-cards-module.style-cards_overlay .mwh-ac-title,
.mwh-cards-module.style-cards_overlay .mwh-ac-teaser,
.mwh-cards-module.style-cards_overlay .mwh-ac-meta {
    color: #ffffff;
}

/* =========================================================
   ANSICHT 7: STADTTEILE-BANNER CARDS (Wappen-Stil)
   ========================================================= */
.mwh-cards-module.style-cards_banner .mwh-ac-item {
    border-radius: var(--ac-card-radius, 4px);
    overflow: hidden;
}
.mwh-cards-module.style-cards_banner .mwh-ac-image {
    width: 100%;
}
.mwh-cards-module.style-cards_banner .mwh-ac-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    flex: 0 0 auto;
    background: var(--ac-banner-bg, rgba(197, 155, 71, 0.9));
    backdrop-filter: blur(3px);
    padding: 14px 20px;
}
.mwh-cards-module.style-cards_banner .mwh-ac-title {
    color: #ffffff !important;
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.mwh-cards-module.style-cards_banner .mwh-ac-title a {
    color: #ffffff !important;
}
.mwh-cards-module.style-cards_banner .mwh-ac-meta,
.mwh-cards-module.style-cards_banner .mwh-ac-teaser,
.mwh-cards-module.style-cards_banner .mwh-ac-action {
    display: none;
}

/* =========================================================
   ANSICHT 8: SLIDESHOW
   ========================================================= */
.mwh-cards-module.style-slideshow .mwh-ac-grid {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--ac-card-radius, 8px);
    background: #111111;
}
.mwh-cards-module.style-slideshow .mwh-ac-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}
.mwh-cards-module.style-slideshow .mwh-ac-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s;
}
.mwh-cards-module.style-slideshow .mwh-ac-item.active {
    position: relative;
    width: 100%;
    opacity: 1;
    visibility: visible;
}
.mwh-cards-module.style-slideshow .mwh-ac-image {
    width: 100%;
    height: 100%;
    border-radius: 0;
}
.mwh-cards-module.style-slideshow .mwh-ac-image img {
    min-height: 480px;
}
.mwh-cards-module.style-slideshow .mwh-ac-content {
    position: absolute;
    bottom: 8%;
    right: 8%;
    max-width: 480px;
    background: rgba(20, 25, 23, 0.86);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 28px 30px;
    border-radius: 6px;
    z-index: 10;
}
.mwh-cards-module.style-slideshow .mwh-ac-title,
.mwh-cards-module.style-slideshow .mwh-ac-teaser,
.mwh-cards-module.style-slideshow .mwh-ac-meta {
    color: #ffffff;
}
.mwh-cards-module.style-slideshow .mwh-ac-slides-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 15;
    pointer-events: none;
}
.mwh-cards-module.style-slideshow .mwh-ac-prev,
.mwh-cards-module.style-slideshow .mwh-ac-next {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.mwh-cards-module.style-slideshow .mwh-ac-prev:hover,
.mwh-cards-module.style-slideshow .mwh-ac-next:hover {
    background: var(--ac-accent, #c59b47);
}

@media (max-width: 719px) {
    .mwh-cards-module.style-slideshow .mwh-ac-content {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 0;
    }
}
