.branchen-accord {
    --gold: #B98F4B;
    --navy-rgb: 18, 34, 58;
    display: flex;
    flex-direction: row;
    gap: 14px;
    height: 540px;
    width: 100%;
}

.branchen-accord *, .branchen-accord *::before, .branchen-accord *::after {
    box-sizing: border-box;
}

.bi-panel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    flex: 1;
    min-width: 72px;
    transition: flex 700ms cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    border: none;
    padding: 0;
    background: none;
    font-family: inherit;
    text-align: left;
}

.bi-panel.bi-active {
    flex: 4;
}

.bi-panel img.bi-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1200ms ease-out;
}

.bi-panel.bi-active img.bi-bg {
    transform: scale(1);
}

.bi-panel:not(.bi-active) img.bi-bg {
    transform: scale(1.1);
}

.bi-panel:hover:not(.bi-active) img.bi-bg {
    transform: scale(1.05);
}

.bi-overlay {
    position: absolute;
    inset: 0;
    transition: background 700ms;
}

.bi-panel.bi-active .bi-overlay {
    background: linear-gradient(to top, rgba(var(--navy-rgb), .95) 0%, rgba(var(--navy-rgb), .62) 50%, rgba(var(--navy-rgb), .25) 100%);
}

.bi-panel:not(.bi-active) .bi-overlay {
    background: rgba(var(--navy-rgb), .76);
}

.bi-panel:hover:not(.bi-active) .bi-overlay {
    background: rgba(var(--navy-rgb), .65);
}

.bi-gold-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    transition: width 700ms ease, opacity 700ms ease;
}

.bi-panel.bi-active .bi-gold-line {
    width: 100%;
    opacity: .8;
}

.bi-panel:not(.bi-active) .bi-gold-line {
    width: 0;
    opacity: 0;
}

.bi-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.625rem 1.75rem;
    color: #fff;
}

.bi-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.bi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: .75rem;
    background: rgba(185, 143, 75, .18);
    border: 1px solid rgba(185, 143, 75, .30);
    color: var(--gold);
}

.bi-icon svg, .bi-icon i {
    width: 20px;
    height: 20px;
    fill: currentColor;
    font-size: 20px;
}

.bi-plus {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .8);
    transition: opacity 500ms, transform 500ms, border-color 300ms, color 300ms;
}

.bi-panel.bi-active .bi-plus {
    opacity: 0;
    transform: rotate(-45deg) scale(0);
}

.bi-panel:hover:not(.bi-active) .bi-plus {
    border-color: var(--gold);
    color: var(--gold);
}

.bi-footer {
    margin-top: auto;
}

.bi-eyebrow {
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .28em;
    color: rgba(185, 143, 75, .9);
}

.bi-title {
    color: #fff;
    line-height: 1.1;
    margin: .5rem 0 0;
    transition: font-size 500ms;
}

.bi-panel.bi-active .bi-title {
    font-size: 2.5rem;
}

.bi-panel:not(.bi-active) .bi-title {
    font-size: 1.75rem;
}

.bi-expanded {
    overflow: hidden;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 650ms ease-out, opacity 500ms ease, margin-top 650ms ease;
    margin-top: 0;
}

.bi-expanded > div {
    overflow: hidden;
}

.bi-panel.bi-active .bi-expanded {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 1.25rem;
}

.bi-intro {
    font-size: .9375rem;
    color: rgba(250, 248, 245, .85);
    line-height: 1.6;
    max-width: 480px;
    margin: 0;
}

.bi-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .3rem .5rem;
    margin: 1.125rem 0 0;
    padding: 0;
    list-style: none;
    max-width: 460px;
}

.bi-items li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: rgba(250, 248, 245, .9);
}

.bi-items li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.bi-und-mehr {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-top: .75rem;
}

.bi-und-mehr::before {
    content: '';
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, rgba(185, 143, 75, .5), transparent);
}

.bi-und-mehr span {
    font-style: italic;
    font-size: .875rem;
    color: rgba(185, 143, 75, .9);
}

.bi-divider {
    margin-top: 1.25rem;
    padding-top: 1.125rem;
    border-top: 1px solid rgba(250, 248, 245, .12);
    max-width: 480px;
}

.bi-liefern-lbl {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .25em;
    color: rgba(185, 143, 75, .9);
    margin-bottom: .4rem;
}

.bi-liefern-text {
    font-size: .875rem;
    color: rgba(250, 248, 245, .8);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 767px) {
    .branchen-accord {
        flex-direction: column;
        height: auto !important;
    }
    .bi-panel {
        flex: none !important;
        height: 240px;
        min-width: auto;
    }
    .bi-panel.bi-active {
        height: 520px;
    }
}