.bi-oh {
    --bi-primary: #071A2F;
    --bi-accent: #F7BF00;
    box-sizing: border-box;
    max-width: 100%;
    font-family: inherit;
}

.bi-oh *,
.bi-oh *::before,
.bi-oh *::after {
    box-sizing: inherit;
}

.bi-oh--bar {
    width: 100%;
    background: var(--bi-primary);
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
}

.bi-oh__inner {
    width: min(calc(100% - 32px), 1280px);
    min-height: 46px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bi-oh__current,
.bi-oh__actions,
.bi-oh__status-text {
    display: flex;
    align-items: center;
}

.bi-oh__current {
    min-width: 0;
    gap: 10px;
}

.bi-oh__current > span:last-child {
    min-width: 0;
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}

.bi-oh__current strong,
.bi-oh__detail {
    overflow-wrap: anywhere;
}

.bi-oh__detail {
    opacity: .8;
}

.bi-oh__dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #c9cfd6;
}

.bi-oh.is-open .bi-oh__dot,
.bi-oh__full-head.is-open .bi-oh__dot {
    background: var(--bi-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bi-accent) 20%, transparent);
}

.bi-oh__actions {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 12px;
}

.bi-oh__link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease;
}

.bi-oh__link:hover,
.bi-oh__link:focus-visible {
    color: var(--bi-accent);
}

.bi-oh__button {
    min-height: 36px;
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.bi-oh__button:focus-visible,
.bi-oh__link:focus-visible {
    outline: 2px solid var(--bi-accent);
    outline-offset: 3px;
}

.bi-oh__button--primary {
    background: var(--bi-accent);
    border-color: var(--bi-accent);
    color: var(--bi-primary);
}

.bi-oh__button--primary:hover,
.bi-oh__button--primary:focus-visible {
    background: #D9A700;
    border-color: #D9A700;
    color: var(--bi-primary);
}

.bi-oh__button--secondary {
    background: #fff;
    border-color: #fff;
    color: var(--bi-primary);
}

.bi-oh__button--secondary:hover,
.bi-oh__button--secondary:focus-visible {
    background: #F4F6F8;
    border-color: #F4F6F8;
    color: var(--bi-primary);
}

.bi-oh--status {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 10px;
    color: var(--bi-primary);
}

.bi-oh__status-text {
    min-width: 0;
    gap: 7px;
    flex-wrap: wrap;
}

.bi-oh__status-text span {
    color: #5E6872;
    overflow-wrap: anywhere;
}

.bi-oh--full {
    width: 100%;
    max-width: 520px;
    padding: 24px;
    background: #F4F6F8;
    border-radius: 6px;
    color: var(--bi-primary);
}

.bi-oh__full-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #D9DEE4;
}

.bi-oh__full-head > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bi-oh__full-head span {
    overflow-wrap: anywhere;
}

.bi-oh__schedule {
    margin: 16px 0 0;
}

.bi-oh__schedule > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    padding: 7px 0;
}

.bi-oh__schedule dt {
    font-weight: 700;
}

.bi-oh__schedule dd {
    margin: 0;
    text-align: right;
}

.bi-oh__note {
    margin: 16px 0 0;
    font-size: 14px;
    color: #5E6872;
    overflow-wrap: anywhere;
}

/* Kleine Desktop- und Tabletbreiten: Status oben, Aktionen darunter. */
@media (max-width: 1024px) {
    .bi-oh__inner {
        width: 100%;
        margin: 0;
        padding: 10px 0;
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .bi-oh__actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Smartphone quer und schmale Tablets: Aktionen gleichmäßig verteilen. */
@media (max-width: 700px) {
    .bi-oh__inner {
        width: 100%;
        margin: 0;
    }

    .bi-oh__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }

    .bi-oh__link {
        grid-column: 1 / -1;
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .bi-oh__button {
        width: 100%;
        min-height: 42px;
        padding-inline: 12px;
        white-space: normal;
    }
}


/* Smartphone: kompakte Statuszeile, zwei Buttons nebeneinander. */
@media (max-width: 480px) {
    .bi-oh--bar {
        font-size: 12px;
    }

    .bi-oh__inner {
        width: 100%;
        margin: 0;
        padding: 10px 0;
        gap: 9px;
    }

    .bi-oh__current {
        width: 100%;
        min-width: 0;
        align-items: center;
        gap: 7px;
    }

    .bi-oh__current .bi-oh__dot {
        margin-top: 0;
    }

    .bi-oh__current > span:last-child {
        min-width: 0;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: baseline;
        flex-wrap: nowrap;
        gap: 6px;
        white-space: nowrap;
    }

    .bi-oh__current strong {
        flex: 0 0 auto;
    }

    .bi-oh__detail {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bi-oh__actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }

    .bi-oh__button {
        width: 100%;
        min-height: 42px;
        padding: 8px 8px;
        font-size: 12px;
        white-space: normal;
    }

    .bi-oh__phone--hide-mobile {
        display: none;
    }

    .bi-oh__phone:not(.bi-oh__phone--hide-mobile) {
        grid-column: 1 / -1;
        justify-content: center;
        min-height: 32px;
        padding: 2px 0;
    }

    .bi-oh--status {
        align-items: center;
    }

    .bi-oh--status .bi-oh__dot {
        margin-top: 0;
    }

    .bi-oh__status-text {
        flex-direction: row;
        align-items: baseline;
        flex-wrap: nowrap;
        gap: 6px;
        white-space: nowrap;
    }

    .bi-oh__status-text span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bi-oh--full {
        padding: 18px;
        border-radius: 4px;
    }

    .bi-oh__schedule > div {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 9px 0;
        border-bottom: 1px solid #D9DEE4;
    }

    .bi-oh__schedule > div:last-child {
        border-bottom: 0;
    }

    .bi-oh__schedule dd {
        text-align: left;
        color: #5E6872;
    }
}

@media (max-width: 360px) {
    .bi-oh--bar {
        font-size: 11px;
    }

    .bi-oh__button {
        min-height: 40px;
        padding-inline: 6px;
        font-size: 11px;
    }
}
