/* ============================================================================
   Geburtshaus Münster — Kurse-Modul
   --------------------------------------------------------------------------
   Aggregierter Kurs-Listenview mit Filter-Chips. Matcht das Site-Design.
   ========================================================================= */

.ghm-kurse {
    margin: 40px 0 40px 0;
}

/* --- Filter-Chips -------------------------------------------------------- */
.ghm-kurse__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0;
    list-style: none !important;
}
.ghm-kurse__filter {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #c7d3c5;
    border-radius: 999px;
    background: #fff;
    color: #5a6967;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 36px;
}
.ghm-kurse__filter:hover {
    background: #f0f4f1;
    border-color: #829995;
}
.ghm-kurse__filter.is-active {
    background: #829995;
    color: #fff;
    border-color: #829995;
}

/* --- Kurs-Liste ---------------------------------------------------------- */
.ghm-kurse__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

/* Ab Tablet 2 Spalten */
@media (min-width: 720px) {
    .ghm-kurse__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Ab Desktop max 1200px breit (Lesbarkeit + Look) */
@media (min-width: 1024px) {
    .ghm-kurse {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

.ghm-kurse__item {
    list-style: none !important;
    position: relative;
    border: 1px solid #e2e6e3;
    border-radius: 8px;
    padding: 18px 20px !important;
    background: #fafbfa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin: 0 !important;
}
.ghm-kurse__item:hover {
    border-color: #c7d3c5;
    box-shadow: 0 2px 6px rgba(130, 153, 149, 0.08);
}
.ghm-kurse__item.is-hidden {
    display: none !important;
}
.ghm-kurse__item::marker { content: none; display: none; }

/* --- Inhalt der Karte ---------------------------------------------------- */
.ghm-kurse__item-head {
    display: flex;
    flex-direction: column; /* Titel und Badges untereinander, vermeidet schmal-quetschen bei 2-Col */
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
    padding-right: 70px; /* Platz für die source-label oben rechts */
}
.ghm-kurse__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #2d3635;
    line-height: 1.3;
    word-wrap: break-word;
}
.ghm-kurse__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.ghm-kurse__badge {
    display: inline-block;
    background: #e6ede8;
    color: #5a6967;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: none; /* keine UPPERCASE → mit Mixed-Case wie im WP-Admin */
    letter-spacing: 0;
}

.ghm-kurse__when {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 6px;
    color: #5a6967;
    font-size: 14px;
}
.ghm-kurse__date { font-weight: 600; color: #2d3635; }

.ghm-kurse__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 8px;
    color: #5a6967;
    font-size: 13px;
}
.ghm-kurse__slots {
    color: #2d6a4f;
    font-weight: 600;
}
.ghm-kurse__slots--full {
    color: #b04040;
}

.ghm-kurse__description {
    margin: 0 0 12px 0;
    color: #5a6967;
    font-size: 14px;
    line-height: 1.5;
}

.ghm-kurse__cta {
    display: inline-block;
    background: #dee7ef;
    color: #2d3635 !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.15s ease;
}
.ghm-kurse__cta:hover {
    background: #829995;
    color: #fff !important;
}

.ghm-kurse__source-label {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 10px;
    color: #aab2af;
    font-style: italic;
    text-transform: lowercase;
}

.ghm-kurse__empty {
    color: #999;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 640px) {
    .ghm-kurse__item {
        padding: 16px !important;
    }
    .ghm-kurse__title { font-size: 16px; }
    .ghm-kurse__source-label {
        position: static;
        display: block;
        margin-top: 8px;
        text-align: right;
    }
}
