/* ═══════════════════════════════════════════════════════════════
   Bildungsgang Liste – Filter (Dropdown + Suche) & flache Kartenliste
   Datei: /wp-content/themes/DEIN-CHILD-THEME/bildungsgang/bildungsgang-liste.css
   ═══════════════════════════════════════════════════════════════ */

/* ── Filter-Leiste ─────────────────────────────────────────────── */
.bgl-filter-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.bgl-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 220px;
}

.bgl-filter-group--search {
    flex: 1 1 320px;
}

.bgl-filter-label {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins' !important;
    color: var(--e-global-color-text, #333);
}

.bgl-search-input,
.bgl-select {
    padding: 16px 20px !important;
    border: 1px solid var(--e-global-color-primary) !important;
    font-size: 16px !important;
    background: #fff !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 60px !important;
}

.bgl-search-input{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23043162' viewBox='0 0 640 640'%3E%3Cpath d='M480 272C480 317.9 465.1 360.3 440 394.7L566.6 521.4C579.1 533.9 579.1 554.2 566.6 566.7C554.1 579.2 533.8 579.2 521.3 566.7L394.7 440C360.3 465.1 317.9 480 272 480C157.1 480 64 386.9 64 272C64 157.1 157.1 64 272 64C386.9 64 480 157.1 480 272zM272 416C351.5 416 416 351.5 416 272C416 192.5 351.5 128 272 128C192.5 128 128 192.5 128 272C128 351.5 192.5 416 272 416z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 10px center !important;
    background-size: 28px 28px !important;
    padding-left: 50px !important;
    fill: none !important;    
}

.bgl-search-input::placeholder{
    color: var(--e-global-color-primary) !important;
}

.bgl-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.2rem center !important;  /* ← hier den Abstand nach rechts einstellen */
    background-size: 12px 8px !important;
    padding-right: 10px ;
}

.bgl-search-input:focus,
.bgl-select:focus {
    outline: none;
    border-color: var(--e-global-color-primary, #1a73e8);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.bgl-select {
    cursor: pointer;
    appearance: auto;
}

/* ── Kartenliste (flach, ohne Sektionen) ──────────────────────── */
.bgl-liste {
    width: 100%;
}

.bgl-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.bgl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--e-global-color-primary);
}

.bgl-card--hidden {
    display: none;
}

.bgl-card-image {
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.bgl-card-image img {
    width: 100%;
    aspect-ratio: 648 / 260;
    object-fit: cover;
    display: flex;
    transition: transform .4s ease;
}

.bgl-card:hover .bgl-card-image img{
    transform: scale(1.04);
}

.bgl-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgl-card-body {
    padding: 70px 30px;
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: space-between;
    align-items: center !important;
    align-content: center !important;
}

.bgl-card-titel {
    font-size: 23px;
    font-weight: 500;
    color: white;
    margin: 0;
    line-height: 1.3;
    max-width: 80%;
    hyphens: auto;
}

.bgl-card-titel a {
    text-decoration: none;
    color: inherit;
}

.bg-card-titel a:hover { color: #E5F1F8 !important}

.bgl-card-link {
    display: flex;
    align-items: center;
    height: 40px;
    width: 40px;
    background-image: url(/wp-content/uploads/2026/05/Arrow-B.svg);
    background-color: white;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-card-link:hover { color: var(--bg-accent-light); gap: 8px; }

/* ── Leerer Zustand ───────────────────────────────────────────── */
.bgl-keine-ergebnisse {
    display: none;
    padding: 3rem 1rem;
    text-align: center;
}

.bgl-keine-ergebnisse-inner h3 {
    margin-bottom: 0.5rem;
}
@media (max-width: 1024px) {
    .bgl-filter-wrapper{
        grid-template-columns: 1fr 1fr;
    }
}


/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 767px) {
    .bgl-filter-wrapper {
        grid-template-columns: 1fr !important;
    }

    .bgl-cards-grid{
        grid-template-columns: 1fr !important;
    }

}