/* ============================================================
   Bus Comparison DCE – Styles
   Trennlinien via Row-Gradient (volle Zeilenhöhe)
   ============================================================ */

.bus-comparison {
    font-family: 'Glober', Arial, sans-serif;
    font-size: 0.9rem;
    color: #5a5a5a;
    border: 2px solid #ffffff;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    margin: 1.5rem auto;
}

/* ---- Einzelne Zeile ---- */
/* Spalten: 120px | 190px | 1fr | 36px
   Linie 1 bei: 120px
   Linie 2 bei: 120px + 2px + 190px = 312px                    */
.bus-row {
    display: grid;
    grid-template-columns: 120px 190px 1fr 36px;
    align-items: stretch; /* Zellen füllen volle Zeilenhöhe */
    gap: 0;
    border-bottom: 2px solid #fff;
    background:
        linear-gradient(#D25D08, #D25D08) 120px 0 / 2px 100% no-repeat,
        linear-gradient(#D25D08, #D25D08) 312px 0 / 2px 100% no-repeat,
        #fff;
    transition: background-color 0.2s ease;
    min-height: 115px;
}

.bus-row:last-child {
    border-bottom: none;
}

/* Elektro-Zeilen (beige) */
.bus-row.elektro {
    background:
        linear-gradient(#D25D08, #D25D08) 120px 0 / 2px 100% no-repeat,
        linear-gradient(#D25D08, #D25D08) 312px 0 / 2px 100% no-repeat,
        #ECE5E1;
}

/* Diesel/Wasserstoff-Zeilen (grau) */
.bus-row.diewas {
    background:
        linear-gradient(#CECFCF, #CECFCF) 120px 0 / 2px 100% no-repeat,
        linear-gradient(#fff, #fff) 312px 0 / 2px 100% no-repeat,
        #ECECEC;
}

/* Hervorgehobene Zeile (orange-beige) */
.bus-row--highlighted {
    background:
        linear-gradient(#D25D08, #D25D08) 120px 0 / 2px 100% no-repeat,
        linear-gradient(#D25D08, #D25D08) 312px 0 / 2px 100% no-repeat,
        #ECCBB1;
}

/* Trigger-Zeile */
.bus-row--trigger {
    cursor: pointer;
    user-select: none;
}

.bus-row--trigger:hover {
    background:
        linear-gradient(#D25D08, #D25D08) 120px 0 / 2px 100% no-repeat,
        linear-gradient(#D25D08, #D25D08) 312px 0 / 2px 100% no-repeat,
        rgb(236 203 177 / 80%);
}

.bus-row--trigger:focus-visible {
/*    outline: 2px solid #000;
    outline-offset: -2px;*/
    background:
        linear-gradient(#D25D08, #D25D08) 120px 0 / 2px 100% no-repeat,
        linear-gradient(#D25D08, #D25D08) 312px 0 / 2px 100% no-repeat,
        rgb(236 203 177 / 40%);
}

/* ---- Spalten ---- */
/* Kein border-right mehr – Trennlinien kommen vom Row-Gradient */
.bus-col {
    padding: 20px 16px;
}

.bus-col--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 23px 10px;
}

.bus-col--title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 18px;
    padding-right: 16px;
}

.bus-col--text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 16px;
}

.bus-col--toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #FF6B00;
}

/* ---- Icon ---- */
.bus-icon {
    max-width: 80px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---- Titel & Untertitel ---- */
.bus-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
}

.bus-subtitle {
    display: block;
    font-size: 12px;
    line-height: 1.3;
}

/* ---- Textinhalt (Bulletliste) ---- */
.bus-col--text ul,
.bus-col--text p {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bus-col--text ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 4px;
    line-height: 1.45;
    font-size: 14px;
}

/* Standard: grauer Bullet */
.bus-col--text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #aaa09a;
    border-radius: 2px;
}

/* Oranger Bullet für hervorgehobene Zeile */
.bus-row--highlighted .bus-col--text ul li::before {
    background: #FF6B00;
}

/* Oranger Bullet für elektro-Klasse */
.bus-row.elektro .bus-col--text ul li::before {
    background: #FF6B00;
}

/* Grauer Bullet für diewas-Klasse */
.bus-row.diewas .bus-col--text ul li::before {
    background: #CECFCF;
}

/* ---- Toggle Arrow ---- */
.bus-toggle-icon {
    display: inline-flex;
    transition: transform 0.3s ease;
    color: #5a5a5a;
    svg {
        width: 25px;
        height: 25px;
    }
}

.bus-row--trigger[aria-expanded="true"] .bus-toggle-icon {
    transform: rotate(180deg);
}

/* ---- Collapsible Container ---- */
.bus-rows-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bus-rows-collapsible.is-open {
    max-height: 2000px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .bus-row,
    .bus-row.elektro,
    .bus-row.diewas,
    .bus-row--highlighted,
    .bus-row--trigger:hover {
        grid-template-columns: 80px 1fr 32px;
        grid-template-rows: auto auto;
        /* Trennlinien auf Mobile entfernen, border-bottom reicht */
        background-image: none;
    }

    /* Hintergrundfarben auf Mobile erhalten */
    .bus-row               { background-color: #fff; }
    .bus-row.elektro       { background-color: #ECE5E1; }
    .bus-row.diewas        { background-color: #ECECEC; }
    .bus-row--highlighted  { background-color: #ECCBB1; }
    .bus-row--trigger:hover{ background-color: rgb(236 203 177 / 80%); }

    .bus-col--icon {
        grid-column: 1;
        grid-row: 1;
        border-right: none;
        border-bottom: none;
    }
    
    .bus-col--icon {
        margin-left: 16px;
    }

    .bus-col--title {
        grid-column: 2;
        grid-row: 1;
        padding-bottom: 4px;
    }

    .bus-col--toggle {
        grid-column: 3;
        grid-row: 1;
    }

    .bus-col--text {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-top: 0;
        /*border-top: 1px solid #ddd5c8;*/
    }
}

@media (max-width: 480px) {
    .bus-comparison {
        font-size: 0.82rem;
    }

    .bus-col--text ul li {
        font-size: 13px;
    }
}




html.accessibility {
    .bus-row--trigger:focus {
        outline: 2px solid #ffff00 !important;
        /*outline-offset: 2px;*/
        /*border-radius: 3px;*/
        background-color: #575757;
        color: #fff;
    }
    .bus-row--trigger:focus-visible {
        outline: 6px solid #000;
    }
    
/*    .bus-row--trigger:focus .bus-icon {
        opacity: 0;
    }

    .bus-row--trigger:focus .bus-col--icon {
        width: 60px;
        height: 66px;
        background: url(../images/icons/ivb-streckenlader_white.svg) center center no-repeat;
        background-size: contain;
        margin: 0 auto;
    }*/
}