/**
 * Stellenanzeigen Grid — BEW Widget
 */

/* ─────────────────────────────────────────
   Filter-Leiste
   ───────────────────────────────────────── */
.bew-jg-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.bew-jg-filter-btn {
    padding: 8px 18px;
    border: 2px solid #1F3566;
    background: transparent;
    color: #1F3566;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bew-jg-filter-btn:hover,
.bew-jg-filter-btn.is-active {
    background-color: #1F3566;
    color: #ffffff;
    border-color: #1F3566;
}

/* ─────────────────────────────────────────
   Liste
   ───────────────────────────────────────── */
.bew-jg-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ─────────────────────────────────────────
   Eintrag
   ───────────────────────────────────────── */
.bew-jg-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    background-color: #f5f5f5;
    transition: all 0.2s ease;
}

.bew-jg-item.is-hidden {
    display: none;
}

/* Body (linke Seite) */
.bew-jg-item__body {
    flex: 1 1 auto;
    min-width: 0;
}

/* Meta-Zeile */
.bew-jg-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.bew-jg-item__meta span {
    font-size: 0.875em;
    color: #666666;
}

/* Trennzeichen zwischen Meta-Feldern */
.bew-jg-item__meta span + span::before {
    content: '·';
    margin-right: 8px;
    opacity: 0.5;
}

/* Titel */
.bew-jg-item__title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.3;
}

.bew-jg-item__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.bew-jg-item__title a:hover {
    color: #3FA535;
}

/* Kurzbeschreibung */
.bew-jg-item__excerpt {
    margin-top: 10px;
    font-size: 0.9em;
    color: #555555;
    line-height: 1.6;
}

/* Bewerbungs-Button (rechte Seite) */
.bew-jg-item__action {
    flex-shrink: 0;
}

.bew-jg-item__apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: #1F3566;
    color: #ffffff;
    text-decoration: none;
    font-size: inherit;
    font-family: inherit;
    line-height: 1.4;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Icon inside button */
.bew-jg-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1em;
    line-height: 1;
}

.bew-jg-btn-icon svg {
    display: block;
    fill: currentColor;
}

/* Image inside button */
.bew-jg-btn-img {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.bew-jg-item__apply-btn:hover {
    background-color: #3FA535;
    color: #ffffff;
}

/* Hover-Reveal: versteckt bis Hover über Eintrag */
.bew-jg-item .bew-jg-item__apply-btn[style*="pointer-events: none"] {
    pointer-events: none;
}

.bew-jg-item:hover .bew-jg-item__apply-btn {
    pointer-events: auto;
}

/* ─────────────────────────────────────────
   Kein Ergebnis / Leer
   ───────────────────────────────────────── */
.bew-jg-empty-state {
    color: #888;
    font-style: italic;
    text-align: left;
}

/* ─────────────────────────────────────────
   Responsive: Stacking auf Mobilgeräten
   ─────────────────────────────────────────
   Kein erzwungenes Stacking mehr — wird über
   den Elementor-Control 'Layout' gesteuert.
   ───────────────────────────────────────── */
