/* ============================================================
   Kirche Wesselburen — Widget-Base CSS
   Gemeinsame Styles für alle iframe-Widgets (blog, termine,
   predigtarchiv, konzerte, slider, etc.)
   ============================================================ */

/* Parish-Farben als CSS-Variablen */
:root {
    --cd-parish-wesselburen: #ddf3ff;
    --cd-parish-busum: #e6fff2;
    --cd-parish-neuenkirchen: #fff0f0;
    --cd-parish-urlauberseelsorge: #fff2dd;

    --cd-card-image-h: 320px;
    --cd-card-radius: 0;
    --cd-card-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --cd-card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
    --cd-text-muted: #666;
    --cd-text-meta: #999;
    --cd-bg: #fff;
    --cd-font: 'Jost', sans-serif;
}

/* ---------- Grid-Container ---------- */
.cd-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: stretch;
}

.cd-container > .cd-card {
    height: 100%;
}

.cd-container.cd-container--single {
    grid-template-columns: 1fr;
}

/* ---------- Karte ---------- */
.cd-card {
    background-color: var(--cd-bg);
    box-shadow: var(--cd-card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: var(--cd-card-radius);
}

.cd-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cd-card-shadow-hover);
}

/* Highlight-Karte: breiter, horizontal */
.cd-card.cd-card--highlight {
    grid-column: span 3;
    flex-direction: row;
}

/* ---------- Bild-Bereich ---------- */
.cd-card-image {
    width: 100%;
    height: var(--cd-card-image-h);
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.cd-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 2;
}

.cd-card.cd-card--highlight .cd-card-image {
    width: 60%;
    height: auto;
    min-height: 360px;
    align-self: stretch;
}

/* Single-Item: gleiche Aufteilung wie Highlight */
.cd-container--single .cd-card {
    flex-direction: row;
}

.cd-container--single .cd-card-image {
    width: 60%;
    height: 500px;
}

/* ---------- Content-Bereich ---------- */
.cd-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: var(--cd-bg);
    position: relative;
    flex-grow: 1;
    min-width: 0;
}

.cd-card.cd-card--highlight .cd-card-content {
    width: 40%;
    padding: 50px;
    justify-content: center;
}

.cd-container--single .cd-card-content {
    width: 40%;
    padding: 60px;
}

/* ---------- Datum oberhalb des Titels ---------- */
.cd-date {
    font-family: 'Arial Black', sans-serif;
    font-size: 0.7em;
    font-weight: 700;
    color: var(--cd-text-meta);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.cd-card.cd-card--highlight .cd-date {
    font-size: 0.85em;
    margin-bottom: 20px;
    max-width: 80%;
    line-height: 1.4;
}

.cd-container--single .cd-date {
    font-size: 1em;
}

/* ---------- Titel: Standard 2 Zeilen mit ellipsis (Blog-Grid) ---------- */
.cd-title,
h1.cd-title, h2.cd-title, h3.cd-title, h4.cd-title,
.cd-card .cd-title,
.cd-card-content .cd-title {
    font-family: var(--cd-font);
    font-size: 1.4em;
    margin: 0 0 15px 0;
    color: #000;
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: 700;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100%;
    min-width: 0;
    white-space: normal !important;
    hyphens: none !important;
    word-break: keep-all !important;
    word-wrap: normal !important;
    overflow-wrap: normal !important;
}

/* List-Layout (Termine): Titel 1 Zeile mit ellipsis - gilt fuer normal UND Highlight */
.cd-container--list .cd-title,
.cd-container--list .cd-card .cd-title,
.cd-container--list .cd-card-content .cd-title,
.cd-container--list h2.cd-title,
.cd-container--list .cd-card.cd-card--highlight .cd-title,
.cd-container--list .cd-card.cd-card--highlight h2.cd-title,
.cd-container--list .cd-card.cd-card--highlight .cd-card-content .cd-title {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: horizontal;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    font-size: 1.3em !important;
    margin-bottom: 15px !important;
}

/* Blog-Highlight: groesseres Format, voller Umbruch (kein Clamp) */
.cd-card.cd-card--highlight .cd-title {
    font-size: 2.5em;
    margin-bottom: 25px;
    display: block !important;
    -webkit-line-clamp: unset !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.cd-container--single .cd-title {
    font-size: 3em;
    display: block !important;
    -webkit-line-clamp: unset !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* ---------- Sub-Info (z.B. Pastor, Bibeltext, Ort) ---------- */
.cd-subinfo {
    font-size: 0.9em;
    color: #444;
    margin-bottom: 10px;
    font-style: italic;
}

.cd-bibletext {
    font-family: 'Georgia', serif;
    font-size: 1em;
    color: #555;
    margin-bottom: 12px;
    font-style: italic;
}

/* ---------- Summary ---------- */
.cd-summary {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--cd-text-muted);
    margin-top: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Highlight: kein Clamp, Text voll sichtbar */
.cd-card.cd-card--highlight .cd-summary {
    font-size: 1.05em;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

/* ---------- Kategorien (im Bild unten) ---------- */
.cd-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 3;
}

.cd-card.cd-card--highlight .cd-categories {
    bottom: 25px;
    left: 25px;
}

.cd-category {
    font-size: 0.65em;
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cd-card.cd-card--highlight .cd-category {
    font-size: 0.75em;
    padding: 6px 14px;
}

/* ---------- Parish-Indikator (Strich links) ---------- */
.cd-parish-indicator {
    width: 8px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
}

/* ---------- Parish-Label (oben rechts) ---------- */
.cd-parish-label {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    font-size: 0.65em;
    color: #000;
    font-weight: 700;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ---------- Highlight-Label ---------- */
.cd-highlight-label {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-size: 0.75em;
    font-weight: 900;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Highlight im Grid (blog): Parish-Label und HIGHLIGHT-Badge aufs Bild
   Bild ist links 60% breit, also Labels am rechten Bild-Rand (= 40% von rechts) */
.cd-card.cd-card--highlight .cd-parish-label {
    top: 20px;
    right: calc(40% + 20px);
}

.cd-card.cd-card--highlight > .cd-highlight-label {
    top: 70px;
    right: calc(40% + 20px);
}

/* Im List-Layout (Termine): Parish-Label bleibt oben rechts */
.cd-container--list .cd-card.cd-card--highlight .cd-parish-label {
    top: 20px;
    right: 20px;
}

/* HIGHLIGHT-Label im List-Layout: unten rechts auf dem Bild.
   Funktioniert sowohl wenn an .cd-card-image gehaengt (alter Code)
   als auch wenn an .cd-card gehaengt (neuer Code). */
.cd-container--list .cd-card.cd-card--highlight .cd-card-image .cd-highlight-label {
    position: absolute;
    top: auto;
    left: auto;
    bottom: 12px;
    right: 12px;
    z-index: 5;
}

.cd-container--list .cd-card.cd-card--highlight > .cd-highlight-label {
    position: absolute;
    top: auto;
    left: auto;
    bottom: 12px;
    right: calc(100% - 300px + 12px);
    z-index: 5;
}

/* ---------- Parish-Farben (Indikator + Label) ---------- */
.cd-parish-wesselburen .cd-parish-indicator { background-color: var(--cd-parish-wesselburen); }
.cd-parish-wesselburen .cd-parish-label { background-color: var(--cd-parish-wesselburen); }

.cd-parish-busum .cd-parish-indicator { background-color: var(--cd-parish-busum); }
.cd-parish-busum .cd-parish-label { background-color: var(--cd-parish-busum); }

.cd-parish-neuenkirchen .cd-parish-indicator { background-color: var(--cd-parish-neuenkirchen); }
.cd-parish-neuenkirchen .cd-parish-label { background-color: var(--cd-parish-neuenkirchen); }

.cd-parish-urlauberseelsorge .cd-parish-indicator { background-color: var(--cd-parish-urlauberseelsorge); }
.cd-parish-urlauberseelsorge .cd-parish-label { background-color: var(--cd-parish-urlauberseelsorge); }

/* Highlight-Karte bekommt goldenen Indikator */
.cd-card.cd-card--highlight .cd-parish-indicator {
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
}

/* Highlight-Karte: Content-Bereich in Gemeinde-Farbe NUR im List-Layout (Termine) */
.cd-container--list .cd-card.cd-card--highlight.cd-parish-wesselburen .cd-card-content { background: var(--cd-parish-wesselburen); }
.cd-container--list .cd-card.cd-card--highlight.cd-parish-busum .cd-card-content { background: var(--cd-parish-busum); }
.cd-container--list .cd-card.cd-card--highlight.cd-parish-neuenkirchen .cd-card-content { background: var(--cd-parish-neuenkirchen); }
.cd-container--list .cd-card.cd-card--highlight.cd-parish-urlauberseelsorge .cd-card-content { background: var(--cd-parish-urlauberseelsorge); }

/* Backwards-Compat fuer alte Klassennamen */
.cd-container--list .cd-card.cd-card--highlight.wesselburen-post .cd-card-content { background: var(--cd-parish-wesselburen); }
.cd-container--list .cd-card.cd-card--highlight.busum-post .cd-card-content { background: var(--cd-parish-busum); }
.cd-container--list .cd-card.cd-card--highlight.neuenkirchen-post .cd-card-content { background: var(--cd-parish-neuenkirchen); }
.cd-container--list .cd-card.cd-card--highlight.urlauberseelsorge-post .cd-card-content { background: var(--cd-parish-urlauberseelsorge); }

/* Backwards-Compat: alte Klassennamen mappen */
.wesselburen-post .parish-indicator,
.wesselburen-post .cd-parish-indicator { background-color: var(--cd-parish-wesselburen); }
.wesselburen-post .parish-label,
.wesselburen-post .cd-parish-label { background-color: var(--cd-parish-wesselburen); }

.busum-post .parish-indicator,
.busum-post .cd-parish-indicator { background-color: var(--cd-parish-busum); }
.busum-post .parish-label,
.busum-post .cd-parish-label { background-color: var(--cd-parish-busum); }

.neuenkirchen-post .parish-indicator,
.neuenkirchen-post .cd-parish-indicator { background-color: var(--cd-parish-neuenkirchen); }
.neuenkirchen-post .parish-label,
.neuenkirchen-post .cd-parish-label { background-color: var(--cd-parish-neuenkirchen); }

.urlauberseelsorge-post .parish-indicator,
.urlauberseelsorge-post .cd-parish-indicator { background-color: var(--cd-parish-urlauberseelsorge); }
.urlauberseelsorge-post .parish-label,
.urlauberseelsorge-post .cd-parish-label { background-color: var(--cd-parish-urlauberseelsorge); }

/* ============================================================
   LIST-Layout (volle Breite, Bild links, Datum-Badge)
   Aktivierung: <div class="cd-container cd-container--list">
   ============================================================ */
.cd-container.cd-container--list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    padding: 20px;
}

.cd-container--list .cd-card {
    flex-direction: row;
    height: 240px;
}

.cd-container--list .cd-card-image {
    width: 300px;
    min-width: 300px;
    height: 100%;
    align-self: stretch;
}

.cd-container--list .cd-card-image::after {
    display: none;
}

.cd-container--list .cd-card-content {
    padding: 24px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* (alter cd-container--list .cd-title Block jetzt oben mit hoeherer Spezifitaet) */

.cd-container--list .cd-card-content {
    min-width: 0;
}

.cd-container--list .cd-date {
    flex-shrink: 0;
}

.cd-container--list .cd-details {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 1;
    min-height: 0;
}

/* Datum-Badge oben links auf dem Bild */
.cd-date-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px 20px 8px 30px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.85);
}

.cd-date-badge .day {
    font-size: 1.4em;
    font-weight: 700;
    color: #000;
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
}

.cd-date-badge .month {
    font-size: 0.7em;
    color: #000;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* List-Layout: Highlight kriegt nur einen Akzent, kein Vollformat */
.cd-container--list .cd-card.cd-card--highlight {
    grid-column: auto;
    flex-direction: row;
}
.cd-container--list .cd-card.cd-card--highlight .cd-card-image {
    width: 300px;
    min-width: 300px;
    height: 100%;
    min-height: 0;
    padding: 0;
}
.cd-container--list .cd-card.cd-card--highlight .cd-card-content {
    width: auto;
    padding: 24px 30px;
    justify-content: flex-start;
}
/* List-Layout: Kategorien stehen NICHT im Bild, sondern im Content */
.cd-container--list .cd-card .cd-categories,
.cd-container--list .cd-card.cd-card--highlight .cd-categories {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-bottom: 12px;
}
.cd-container--list .cd-card .cd-category,
.cd-container--list .cd-card.cd-card--highlight .cd-category {
    background-color: #f0f0f0 !important;
    color: #333 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    font-size: 0.65em !important;
    padding: 5px 12px !important;
}

/* List-Highlight: Datum gleiche Groesse wie normal */
.cd-container--list .cd-card.cd-card--highlight .cd-date {
    font-size: 0.7em !important;
    margin-bottom: 15px !important;
    max-width: none !important;
    line-height: normal !important;
}

/* Zusatz-Details (Ort, Mitwirkende) im Listen-Layout */
.cd-details {
    font-size: 0.9em;
    line-height: 1.6;
    color: #666;
    margin-top: 8px;
}
.cd-details strong {
    color: #333;
    font-weight: 600;
}

/* Responsive List */
@media (max-width: 768px) {
    .cd-container--list .cd-card {
        flex-direction: column;
    }
    .cd-container--list .cd-card-image {
        width: 100%;
        min-width: 0;
        height: 220px;
    }
}

/* ============================================================
   FILTER-LEISTE (Custom-Dropdowns)
   ============================================================ */
.cd-filter-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.cd-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    position: relative;
}

.cd-filter-group label.cd-filter-label {
    font-weight: 600;
    font-family: var(--cd-font);
    font-size: 0.85em;
    color: #333;
}

.cd-dropdown {
    position: relative;
    width: 220px;
}

.cd-dropdown-header {
    padding: 10px 35px 10px 12px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-family: var(--cd-font);
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.cd-dropdown-header:hover {
    border-color: var(--cd-parish-wesselburen);
}

.cd-dropdown-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}

.cd-dropdown-arrow {
    position: absolute;
    right: 12px;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #666;
}

.cd-dropdown.cd-dropdown--open .cd-dropdown-arrow {
    transform: rotate(180deg);
}

.cd-dropdown-content {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: 220px;
    background: #fff;
    border: 1px solid var(--cd-parish-wesselburen);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-sizing: border-box;
}

.cd-dropdown.cd-dropdown--open .cd-dropdown-content {
    display: block;
}

.cd-dropdown-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    font-family: var(--cd-font);
    font-size: 14px;
    gap: 8px;
}

.cd-dropdown-option:hover {
    background-color: #f5f5f5;
}

.cd-dropdown-option input[type="checkbox"] {
    cursor: pointer;
    margin: 0;
}

.cd-filter-reset {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-family: var(--cd-font);
    font-size: 14px;
    height: 38px;
    align-self: flex-end;
    color: #666;
    transition: all 0.3s ease;
}

.cd-filter-reset:hover {
    border-color: #999;
    color: #000;
}

/* ---------- Mehr-laden Button ---------- */
.cd-load-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.cd-load-more {
    display: inline-block;
    padding: 12px 28px;
    background-color: #fff;
    color: #333;
    text-align: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: var(--cd-font);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cd-load-more::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--cd-parish-wesselburen);
    transition: width 0.3s ease;
    z-index: 1;
}

.cd-load-more:hover::before {
    width: 100%;
}

.cd-load-more:hover {
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cd-load-more span {
    position: relative;
    z-index: 2;
}

.cd-more-hint {
    text-align: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--cd-text-muted);
    font-family: var(--cd-font);
    font-size: 0.95em;
    font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .cd-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .cd-card.cd-card--highlight {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Blog-Grid: 1 Spalte, Karten duerfen unterschiedlich hoch sein */
    .cd-container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 20px;
        padding: 20px 15px;
    }

    .cd-container > .cd-card {
        height: auto;
    }

    .cd-card-image {
        height: 220px;
    }

    .cd-card.cd-card--highlight {
        grid-column: span 1;
        flex-direction: column;
    }

    .cd-card.cd-card--highlight .cd-card-image {
        width: 100%;
        height: 260px;
        min-height: 0;
    }

    .cd-card.cd-card--highlight .cd-card-content {
        width: 100%;
        padding: 30px;
    }

    .cd-card-content {
        padding: 25px;
    }

    /* Highlight-Labels im Bild auf Mobile statt rechts vom Bild */
    .cd-card.cd-card--highlight .cd-parish-label {
        top: 20px;
        right: 20px;
    }

    .cd-card.cd-card--highlight > .cd-highlight-label {
        top: 70px;
        right: 20px;
    }

    .cd-container--single .cd-card {
        flex-direction: column;
    }

    .cd-container--single .cd-card-image {
        width: 100%;
        height: 260px;
    }

    .cd-container--single .cd-card-content {
        width: 100%;
        padding: 30px;
    }

    /* List-Layout (Termine) Mobile: KEINE Bilder, kompakte Text-Karten */
    .cd-container--list {
        padding: 12px;
        gap: 12px;
    }

    .cd-container--list .cd-card {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .cd-container--list .cd-card-image {
        display: none;
    }

    .cd-container--list .cd-card-content {
        padding: 14px 90px 14px 18px;
    }

    .cd-container--list .cd-title,
    .cd-container--list .cd-card .cd-title,
    .cd-container--list .cd-card-content .cd-title,
    .cd-container--list h2.cd-title,
    .cd-container--list .cd-card.cd-card--highlight .cd-title,
    .cd-container--list .cd-card.cd-card--highlight h2.cd-title,
    .cd-container--list .cd-card.cd-card--highlight .cd-card-content .cd-title {
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical;
        overflow: hidden !important;
        text-overflow: clip;
        font-size: 1em !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }

    .cd-container--list .cd-details,
    .cd-container--list .cd-card.cd-card--highlight .cd-details {
        -webkit-line-clamp: unset !important;
        font-size: 0.78em !important;
        line-height: 1.4;
        margin-top: 4px;
    }

    .cd-container--list .cd-date,
    .cd-container--list .cd-card.cd-card--highlight .cd-date {
        font-size: 0.65em !important;
        margin-bottom: 6px !important;
        letter-spacing: 1px !important;
    }

    .cd-container--list .cd-categories,
    .cd-container--list .cd-card.cd-card--highlight .cd-categories {
        margin-bottom: 6px !important;
        gap: 4px !important;
    }

    .cd-container--list .cd-category,
    .cd-container--list .cd-card.cd-card--highlight .cd-category {
        font-size: 0.55em !important;
        padding: 2px 6px !important;
        letter-spacing: 0.5px !important;
    }

    /* Parish-Streifen links bleibt schmal */
    .cd-container--list .cd-parish-indicator {
        width: 5px;
    }

    /* Parish-Label oben rechts kompakt - hat 80px Platz im content-padding-right */
    .cd-container--list .cd-parish-label,
    .cd-container--list .cd-card.cd-card--highlight .cd-parish-label {
        top: 8px !important;
        right: 8px !important;
        padding: 3px 8px !important;
        font-size: 0.5em !important;
        letter-spacing: 0.8px !important;
    }

    /* HIGHLIGHT-Badge im List-Mobile kompakt am Anfang */
    .cd-container--list .cd-card.cd-card--highlight {
        flex-direction: column;
    }

    .cd-container--list .cd-card.cd-card--highlight > .cd-highlight-label,
    .cd-container--list .cd-card.cd-card--highlight .cd-card-image .cd-highlight-label {
        position: static !important;
        display: inline-block !important;
        bottom: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        font-size: 0.55em !important;
        padding: 3px 8px !important;
        margin-bottom: 8px !important;
        align-self: flex-start !important;
        letter-spacing: 1.2px !important;
    }

    /* ALLE Termin-Karten mobil: ganze Karte in Gemeinde-Farbe */
    .cd-container--list .cd-card.cd-parish-wesselburen,
    .cd-container--list .cd-card.wesselburen-post {
        background: var(--cd-parish-wesselburen);
    }
    .cd-container--list .cd-card.cd-parish-busum,
    .cd-container--list .cd-card.busum-post {
        background: var(--cd-parish-busum);
    }
    .cd-container--list .cd-card.cd-parish-neuenkirchen,
    .cd-container--list .cd-card.neuenkirchen-post {
        background: var(--cd-parish-neuenkirchen);
    }
    .cd-container--list .cd-card.cd-parish-urlauberseelsorge,
    .cd-container--list .cd-card.urlauberseelsorge-post {
        background: var(--cd-parish-urlauberseelsorge);
    }

    /* Content-Bg transparent damit Card-Bg durchscheint */
    .cd-container--list .cd-card .cd-card-content {
        background: transparent !important;
    }

    /* Parish-Indikator mobil ausblenden - ganze Karte ist farbig */
    .cd-container--list .cd-parish-indicator {
        display: none;
    }

    /* Parish-Label mobil ausblenden - Farbe der Karte zeigt schon die Gemeinde */
    .cd-container--list .cd-parish-label {
        display: none;
    }

    /* Padding zurueck - Parish-Label weg, kein 90px-Reservebereich noetig */
    .cd-container--list .cd-card-content {
        padding: 14px 18px !important;
    }

    /* Tags Abstand nach unten zum Ort */
    .cd-container--list .cd-categories,
    .cd-container--list .cd-card.cd-card--highlight .cd-categories {
        margin-bottom: 10px !important;
    }

    /* Filter-Bar kompakt */
    .cd-filter-bar {
        padding: 10px 12px;
        gap: 8px;
    }

    .cd-filter-group,
    .cd-dropdown,
    .cd-dropdown-header,
    .cd-dropdown-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .cd-filter-group {
        flex: 1 1 calc(50% - 8px);
    }

    .cd-filter-label {
        display: none;
    }

    .cd-dropdown-header {
        height: 34px;
        padding: 6px 28px 6px 10px;
        font-size: 12px;
    }

    .cd-dropdown-label {
        font-size: 12px;
    }

    .cd-dropdown-option {
        font-size: 12px;
        padding: 6px 10px;
    }

    .cd-filter-reset {
        height: 34px;
        padding: 6px 12px;
        font-size: 12px;
        align-self: stretch;
    }

    /* Categories/Tags auf Bildern (Blog-Grid) kleiner */
    .cd-card .cd-categories {
        gap: 4px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .cd-card .cd-category {
        font-size: 0.55em;
        padding: 3px 8px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .cd-card-image,
    .cd-card.cd-card--highlight .cd-card-image,
    .cd-container--list .cd-card-image,
    .cd-container--single .cd-card-image {
        height: 180px;
    }

    .cd-card-content,
    .cd-container--list .cd-card-content {
        padding: 18px 20px;
    }

    .cd-title { font-size: 1.2em; }
    .cd-card.cd-card--highlight .cd-title { font-size: 1.6em; }
}
