/*
 * Bildungsgang Übersicht – Styles v1.2
 * Datei: /wp-content/themes/DEIN-CHILD-THEME/bildungsgang/bildungsgang.css
 */

/* ═══════════════════════════════════════
   VARIABLEN – hier anpassen
═══════════════════════════════════════ */
:root {
    --bg-primary:        #AD2032;
    --bg-primary-light:  #E5F1F8;
    --bg-font: 'Poppins';
}


/* ═══════════════════════════════════════
   FILTER-WRAPPER (gemeinsame Basis)
═══════════════════════════════════════ */



/* ═══════════════════════════════════════
   HAUPTANSICHT – drei Filter-Spalten
═══════════════════════════════════════ */
.bg-filter-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    padding-top: 60px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .bg-filter-main-grid { grid-template-columns: 1fr; }
}

/* Spalte: Pill + darunter die Tags */
.bg-filter-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Pill */
.bg-filter-pill {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--bg-primary);
    overflow: hidden;
}

.bg-filter-pill--aktiv {
    border-color: var(--bg-primary);
    background: rgba(26,82,118,.04);
}

.bg-pill-btn,
.bg-option-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px !important;
    padding: 30px 20px !important;
    border: none !important;
    color: var(--bg-primary) !important;
    background-color: #fff !important;
    border-radius: 0 !important;
}

.bg-pill-circle,
.bg-option-check
{
    width: 34px !important;
    height: 34px !important;
    background-color: white;
    border-radius: 50px;
    border: solid 2px var(--bg-primary);
    position: relative;
}

.bg-pill-inner-circle{
    background-color: var(--bg-primary);
    width: 24px !important;
    height: 24px !important;
    z-index: 3 !important;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    border-radius: 50%;
}

.bg-pill-btn:focus-visible {
    outline: 2px solid var(--bg-primary-light);
    outline-offset: -2px;
}

.bg-pill-text {
    display: flex;
    flex-direction: row-reverse;
    min-width: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.bg-pill-label {
    font-family: var(--bg-font);
    font-size: 20px;
    font-weight: 600;
    color: var(--bg-primary);
}

.bg-pill-hint {
    font-size: .9rem;
    color: var(--bg-text-muted);
}

.bg-filter-pill--aktiv .bg-pill-hint {
    color: var(--bg-primary);
    font-weight: 600;
}

/* ── Aktive Tags unter dem Pill ── */
.bg-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 2px;
}

.bg-active-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
    border: 2px solid var(--bg-primary);
    color: var(--bg-primary);
    padding: 10px;
    width: 100%;
    justify-content: space-between;
}

.bg-active-tag-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bg-active-tag-remove {
    flex-shrink: 0;
    width: 18px !important;
    height: 18px;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    color: var(--bg-primary) !important;
    cursor: pointer !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.bg-active-tag-remove:hover {
    background: var(--bg-accent);
    color: #fff;
}

/* Footer */
.bg-filter-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 24px;
    padding-bottom: 20px;
}

.bg-filter-status {
    font-size: .88rem;
    color: var(--bg-primary);
    font-weight: 600;
}


/* ═══════════════════════════════════════
   OPTIONS-VIEW
═══════════════════════════════════════ */
.bg-options-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
}

.bg-options-title {
    color: var(--bg-primary);
    font-family: var(--bg-font);
    font-weight: 600;
    font-size: 16px;
}

/* 2-Spalten Options-Grid */
.bg-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
}

@media (max-width: 500px) {
    .bg-options-grid { grid-template-columns: 1fr; }
}


.bg-option-btn--aktiv {
    border-color: var(--bg-primary);
    background: rgba(26,82,118,.07);
    color: var(--bg-primary);
    font-weight: 600;
}

/* Checkbox */

.bg-option-btn{
    font-size: 20px !important;
    font-family: 'Poppins';
    display: flex !important;
    gap: 20px !important;
    border: solid 2px var(--bg-primary) !important;
    font-weight: 600 !important;
}

.bg-option-check {
    width: 34px !important;
    height: 34px !important;
    background-color: white;
    border-radius: 50%;
    border: solid 2px var(--bg-primary);
    position: relative;
    flex-shrink: 0;
    font-size: 0; 
}

.bg-option-btn--aktiv .bg-option-check {
    border-color: var(--bg-primary);
    background: white; 
}

.bg-option-btn--aktiv .bg-option-check::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Fertig-Button */
.bg-options-done-row {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--bg-border);
    display: flex;
    justify-content: flex-end;
}

.bg-options-done,
.bg-filter-reset-all
{
    padding: 10px 50px !important;
    background-color: var(--bg-primary) !important;
    border: solid 2px var(--bg-primary) !important;
    border-radius: 0 !important;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer !important;
}

.bg-options-done:hover {
    background: var(--bg-primary-light);
}


/* ═══════════════════════════════════════
   SEKTIONEN
═══════════════════════════════════════ */
.bg-uebersicht { font-family: var(--bg-font); }

.bg-sektion { margin-bottom: 120px; }

.bg-sektion--leer {
    display: none !important;
}

.bg-sektion--leer .bg-cards-grid { display: none !important; }

.bg-sektion-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 33px;
}

.bg-sektion-titel {
    font-size: 32px;
    font-weight: 500;
    color: var(--bg-primary);
    margin: 0;
    font-family: var(--bg-font);
}

.bg-sektion-beschreibung {
    font-size: .88rem;
    color: var(--bg-text-muted);
    margin: 0;
    flex-basis: 100%;
}

.bg-sektion-count {
    margin-left: auto;
    color: var(--bg-primary);
    padding: 10px 20px;
    border-radius: 0;
    font-size: 20px;
}

.bg-sektion-leer {
    text-align: center;
    padding: 20px;
    color: var(--bg-text-muted);
    font-style: italic;
    font-size: .9rem;
}


/* ═══════════════════════════════════════
   CARDS
═══════════════════════════════════════ */
.bg-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.bg-card {
    background: var(--bg-primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.bg-card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    flex-shrink: 0;
}

.bg-card-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 424 / 260;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

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

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

.bg-card-placeholder-icon { font-size: 2.5rem; opacity: .6; }

.bg-card-body {
    padding: 70px 30px;
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: space-between;
}

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

.bg-card-titel a {
    color: inherit;
    text-decoration: none;
    transition: color var(--bg-transition);
}

.bg-card-titel a:hover { color: var(--bg-primary-light); }

.bg-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; }


/* ═══════════════════════════════════════
   KEINE ERGEBNISSE
═══════════════════════════════════════ */
.bg-keine-ergebnisse {
    display: none;
    justify-content: center;
    padding: 60px 20px;
}

.bg-keine-ergebnisse-inner { text-align: center; max-width: 380px; }

.bg-keine-ergebnisse-inner h3 {
    font-size: 1.3rem;
    color: var(--bg-text);
    margin: 0 0 8px;
}

.bg-keine-ergebnisse-inner p {
    color: var(--bg-text-muted);
    line-height: 1.6;
    margin: 0;
}

.bg-sektion--bildungsgang {
    display: none;
}

/* Wenn Filter aktiv (Klasse wird per JS auf bg-uebersicht gesetzt): */
.bg-uebersicht--gefiltert .bg-sektion--fachrichtung {
    display: none;
}

.bg-uebersicht--gefiltert .bg-sektion--bildungsgang {
    display: block;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
    .bg-filter-wrapper { padding: 18px; }
    .bg-cards-grid { grid-template-columns: 1fr; }
    .bg-sektion-header { flex-direction: column; align-items: flex-start; }
    .bg-sektion-count { margin-left: 0;}
    .bg-options-grid { 
        grid-template-columns: 1fr;
    }
    
    .bg-option-btn {
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        font-size: 18px !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .ba-uebersicht-container {
        padding-bottom: 0 !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .bg-cards-grid { grid-template-columns: repeat(2, 1fr); }
}