.slide-in-sidebar-container {
    position: fixed;
    top: 180px;
    right: 0 !important;
    z-index: 10000;
    gap: 0;
    transition: right 0.3s ease-in-out;
}

/* Optimierung für große Monitore: Buttons neben den Inhalt schieben */
@media (min-width: 1600px) {
    .slide-in-sidebar-container {
        right: calc(50vw - 660px - 110px - 20px);
    }
}

.terminlinks-desktop,
.terminlinks-offcanvas {
    margin-bottom: 1rem;
}

.slide-in-item {
    display: block;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    overflow: hidden;
    width: 110px;
    border-radius: 4px 0 0 4px;
    text-decoration: none;
    padding: 10px;
    line-height: 1.4;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
}

.slide-in-item:last-child {
    border-bottom: none;
}

@media (min-width: 992px) and (max-width: 1599px) {
    .slide-in-item {
        width: 7rem;
    }
}

.slide-in-item:hover {
    color: #ffffff;
    opacity: 0.9;
}

.slide-in-item .label-top {
    display: inline-block;
    font-size: 14px;
}

/* Responsivität: Mobil */
@media (max-width: 991px) {
    .slide-in-sidebar-container {
        top: 150px;
    }

    .slide-in-item {
        width: 40px;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        padding: 0;
        min-height: 0;
        border-radius: 4px 0 0 4px;
        text-decoration: none;
    }

    .slide-in-item:last-child {
        border-bottom: none;
    }

    .slide-in-item .label-top {
        width: 40px;
        flex-shrink: 0;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px 0;
        font-size: 12px;
        font-weight: 600;
    }

    .slide-in-item br {
        display: none;
    }

    /* Offcanvas-Breite auf Mobilgeräten begrenzen */
    .slide-in-sidebar-container .offcanvas {
        max-width: 80%;
    }
}

/* Sidebar auf sehr kleinen Handys (Hochkant) komplett ausblenden */
@media (max-width: 575px) {
    .slide-in-sidebar-container {
        display: none !important;
    }
}
