/* ==========================================================================
   WEMOVE Feature Cards & List – [show_feature] Shortcode
   Farben: Rot (#e74540), Schwarz (#000), Weiß (#fff)
   ========================================================================== */

/* ── Grid (Feature Cards nebeneinander) ── */
.wemove-feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ── Einzelne Feature Card ── */
.wemove-feature-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 200px;
    max-width: 255px;
    padding: 18px 16px 14px;
    border-radius: 0;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    text-shadow: none !important;
}

.wemove-feature-card:hover {
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
    transform: translateY(-2px);
}

.wemove-feature-card-title {
    margin: 0;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.3;
    text-transform: uppercase !important;
    letter-spacing: 0.3px;
}

.wemove-feature-card-date {
    font-size: 13px;
    font-weight: 500;
}

/* ── List-Ansicht ── */
.wemove-feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wemove-feature-list-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 0;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    transition: box-shadow 0.3s ease;
}

.wemove-feature-list-item:hover {
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}

.wemove-feature-list-title {
    flex: 1;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wemove-feature-list-date {
    font-size: 13px;
    white-space: nowrap;
}

/* ── Badges Container (nebeneinander) ── */
.wemove-feature-badges {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Badge (Typ-Label) – eckig ── */
.wemove-feature-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.4;
    white-space: nowrap;
}

/* ── Description ── */
.wemove-feature-card-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.wemove-feature-list-desc {
    flex-basis: 100%;
    font-size: 13px;
    line-height: 1.4;
}

/* ── Alter-Badge (orange) ── */
.wemove-feature-badge--age {
    background: #f59e0b;
    color: #fff !important;
}

/* ── Buttons Container ── */
.wemove-feature-buttons {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.wemove-feature-buttons .wemove-cta-button.wemove-cta-button--sm {
    padding: 6px 14px !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
    justify-content: center;
}

/* ── Empty State ── */
.wemove-feature-empty {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: #999;
    text-align: center;
    padding: 20px 0;
}

/* ==========================================================================
   TEMPLATE: DARK – schwarze BG, weiße Schrift
   ========================================================================== */
.wemove-feature--dark .wemove-feature-card,
.wemove-feature--dark .wemove-feature-list-item {
    background: #000;
    color: #fff !important;
}

.wemove-feature--dark .wemove-feature-card-title,
.wemove-feature--dark .wemove-feature-list-title {
    color: #fff !important;
}

.wemove-feature--dark .wemove-feature-card-date,
.wemove-feature--dark .wemove-feature-list-date {
    color: rgba(255, 255, 255, 0.7) !important;
}

.wemove-feature--dark .wemove-feature-card-desc,
.wemove-feature--dark .wemove-feature-list-desc {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Dark: Badges */
.wemove-feature--dark .wemove-feature-badge--event {
    background: #e74540;
    color: #fff !important;
}

.wemove-feature--dark .wemove-feature-badge--ferien {
    background: #fff;
    color: #000 !important;
}

/* Dark: CTA Buttons – weiß auf schwarz */
.wemove-feature--dark .wemove-feature-buttons .wemove-cta-button.wemove-cta-button--sm {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
}

.wemove-feature--dark .wemove-feature-buttons .wemove-cta-button.wemove-cta-button--sm:hover {
    background-color: #e74540 !important;
    color: #fff !important;
    border-color: #e74540 !important;
}

.wemove-feature--dark .wemove-feature-buttons .wemove-cta-button.wemove-cta-button--sm .button-text {
    color: inherit !important;
}

.wemove-feature--dark .wemove-feature-buttons .wemove-cta-button.wemove-cta-button--sm .button-icon-left {
    color: inherit !important;
}

/* ==========================================================================
   TEMPLATE: LIGHT – weiße BG, schwarze Schrift
   ========================================================================== */
.wemove-feature--light .wemove-feature-card,
.wemove-feature--light .wemove-feature-list-item {
    background: #fff;
    color: #000 !important;
}

.wemove-feature--light .wemove-feature-card-title,
.wemove-feature--light .wemove-feature-list-title {
    color: #000 !important;
}

.wemove-feature--light .wemove-feature-card-date,
.wemove-feature--light .wemove-feature-list-date {
    color: rgba(0, 0, 0, 0.55) !important;
}

.wemove-feature--light .wemove-feature-card-desc,
.wemove-feature--light .wemove-feature-list-desc {
    color: rgba(0, 0, 0, 0.65) !important;
}

/* Light: Badges */
.wemove-feature--light .wemove-feature-badge--event {
    background: #e74540;
    color: #fff !important;
}

.wemove-feature--light .wemove-feature-badge--ferien {
    background: #000;
    color: #fff !important;
}

/* Light: CTA Buttons – schwarz auf weiß */
.wemove-feature--light .wemove-feature-buttons .wemove-cta-button.wemove-cta-button--sm {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

.wemove-feature--light .wemove-feature-buttons .wemove-cta-button.wemove-cta-button--sm:hover {
    background-color: #e74540 !important;
    color: #fff !important;
    border-color: #e74540 !important;
}

.wemove-feature--light .wemove-feature-buttons .wemove-cta-button.wemove-cta-button--sm .button-text {
    color: inherit !important;
}

.wemove-feature--light .wemove-feature-buttons .wemove-cta-button.wemove-cta-button--sm .button-icon-left {
    color: inherit !important;
}

/* ==========================================================================
   OVERRIDE: Wenn Feature Cards innerhalb eines Dynamic Headers stehen,
   erbt .bydaniwp-dh__description * die weiße Farbe auf alle Kinder.
   Hier wird das für alle Feature-Card-Elemente aufgehoben.
   ========================================================================== */
.bydaniwp-dh__description .wemove-feature-card,
.bydaniwp-dh__description .wemove-feature-list-item {
    color: inherit !important;
}

.bydaniwp-dh__description .wemove-feature-card *,
.bydaniwp-dh__description .wemove-feature-list-item * {
    color: inherit !important;
}

.bydaniwp-dh__description .wemove-feature--light .wemove-feature-card,
.bydaniwp-dh__description .wemove-feature--light .wemove-feature-list-item {
    color: #000 !important;
}

.bydaniwp-dh__description .wemove-feature--light .wemove-feature-card-title,
.bydaniwp-dh__description .wemove-feature--light .wemove-feature-list-title {
    color: #000 !important;
}

.bydaniwp-dh__description .wemove-feature--light .wemove-feature-card-date,
.bydaniwp-dh__description .wemove-feature--light .wemove-feature-list-date {
    color: rgba(0, 0, 0, 0.55) !important;
}

.bydaniwp-dh__description .wemove-feature--light .wemove-feature-card-desc,
.bydaniwp-dh__description .wemove-feature--light .wemove-feature-list-desc {
    color: rgba(0, 0, 0, 0.65) !important;
}

.bydaniwp-dh__description .wemove-feature--dark .wemove-feature-card,
.bydaniwp-dh__description .wemove-feature--dark .wemove-feature-list-item {
    color: #fff !important;
}

.bydaniwp-dh__description .wemove-feature--dark .wemove-feature-card-title,
.bydaniwp-dh__description .wemove-feature--dark .wemove-feature-list-title {
    color: #fff !important;
}

.bydaniwp-dh__description .wemove-feature--dark .wemove-feature-card-date,
.bydaniwp-dh__description .wemove-feature--dark .wemove-feature-list-date {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bydaniwp-dh__description .wemove-feature--dark .wemove-feature-card-desc,
.bydaniwp-dh__description .wemove-feature--dark .wemove-feature-list-desc {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Badges behalten eigene Farben */
.bydaniwp-dh__description .wemove-feature-badge--event {
    color: #fff !important;
}

.bydaniwp-dh__description .wemove-feature-badge--age {
    color: #fff !important;
}

.bydaniwp-dh__description .wemove-feature--light .wemove-feature-badge--ferien {
    color: #fff !important;
}

.bydaniwp-dh__description .wemove-feature--dark .wemove-feature-badge--ferien {
    color: #000 !important;
}

/* Buttons: Light */
.bydaniwp-dh__description .wemove-feature--light .wemove-cta-button.wemove-cta-button--sm {
    color: #fff !important;
}

.bydaniwp-dh__description .wemove-feature--light .wemove-cta-button.wemove-cta-button--sm .button-text,
.bydaniwp-dh__description .wemove-feature--light .wemove-cta-button.wemove-cta-button--sm .button-icon-left {
    color: #fff !important;
}

/* Buttons: Dark */
.bydaniwp-dh__description .wemove-feature--dark .wemove-cta-button.wemove-cta-button--sm {
    color: #000 !important;
}

.bydaniwp-dh__description .wemove-feature--dark .wemove-cta-button.wemove-cta-button--sm .button-text,
.bydaniwp-dh__description .wemove-feature--dark .wemove-cta-button.wemove-cta-button--sm .button-icon-left {
    color: #000 !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 600px) {
    .wemove-feature-grid {
        flex-direction: column;
        gap: 12px;
    }

    .wemove-feature-card {
        max-width: 100%;
        padding: 14px 14px 12px;
    }

    .wemove-feature-list {
        gap: 6px;
    }

    .wemove-feature-list-item {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 8px;
    }

    .wemove-feature-list-date {
        width: 100%;
        margin-top: 2px;
    }

    .wemove-feature-buttons {
        width: 100%;
        flex-direction: column;
    }

    .wemove-feature-buttons .wemove-cta-button.wemove-cta-button--sm {
        display: flex !important;
        width: 100%;
        justify-content: center;
        padding: 10px 14px !important;
        font-size: 12px !important;
    }

    .wemove-feature-card-title {
        font-size: 26px !important;
        padding-top: 10px !important;
    }

    .wemove-feature-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}
