.postprofile .profile-mopedgarage {
    display: block;
    width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slider {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slider__top {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slider__viewport {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 50%;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slider__nav {
    flex: 0 0 18px;
    width: 18px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 1px solid #b9c8d3;
    border-radius: 4px;
    background: #edf3f7;
    color: #4f6b81;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slider__nav:hover {
    background: #dde8ef;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slider__status {
    margin-top: 4px;
    text-align: center;
    font-size: 10px;
    color: #4f6b81;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slide {
    display: none;
    width: 100%;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slide.is-active {
    display: block;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slide__image {
    display: block;
    width: 100%;
    border: 1px solid #c7d7e2;
    border-radius: 6px;
    overflow: hidden;
    background: #edf3f7;
    line-height: 0;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slide__image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slide__body {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
    color: #2f3f4c;
    word-break: break-word;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slide__title {
    margin: 0 0 3px 0;
    font-weight: 700;
    color: #105289;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slide__line {
    margin-top: 2px;
}

.postprofile .profile-mopedgarage .mopedgarage-post-slide__label {
    font-weight: 700;
    color: #4f6b81;
}

/* === Search buttons hotfix === */
.mopedgarage-search-form .submit-buttons,
.mopedgarage-search-embed-panel .submit-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.mopedgarage-search-form .submit-buttons .button1,
.mopedgarage-search-form .submit-buttons .button2,
.mopedgarage-search-form .submit-buttons .button,
.mopedgarage-search-embed-panel .submit-buttons .button1,
.mopedgarage-search-embed-panel .submit-buttons .button2,
.mopedgarage-search-embed-panel .submit-buttons .button,
.mopedgarage-search-actions .button2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 32px;
    padding: 0 12px;
    line-height: 30px;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 4px;
}

.mopedgarage-search-form .submit-buttons a.button2,
.mopedgarage-search-form .submit-buttons a.button,
.mopedgarage-search-embed-panel .submit-buttons a.button2,
.mopedgarage-search-embed-panel .submit-buttons a.button,
.mopedgarage-search-actions a.button2 {
    line-height: 30px;
}

.mopedgarage-search-form .submit-buttons .button + .button,
.mopedgarage-search-form .submit-buttons .button1 + .button2,
.mopedgarage-search-embed-panel .submit-buttons .button + .button,
.mopedgarage-search-embed-panel .submit-buttons .button1 + .button2 {
    margin-left: 0;
}

.mopedgarage-upload-widget .js-mopedgarage-file-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
/* =========================================================
   LIGHTBOX (FIXED OVERLAY)
   ========================================================= */

.mopedgarage-lightbox[hidden] {
    display: none !important;
}

.mopedgarage-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.mopedgarage-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.mopedgarage-lightbox__dialog {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.mopedgarage-lightbox__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(96vw, 1400px);
    max-height: calc(100vh - 48px);
    width: auto;
    box-sizing: border-box;
    z-index: 1;
}

.mopedgarage-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 110px);
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    background: #111;
}

.mopedgarage-lightbox__caption {
    margin-top: 10px;
    max-width: 100%;
    color: #fff;
    text-align: center;
    line-height: 1.4;
}

.mopedgarage-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
}

.mopedgarage-lightbox__close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Mobile */
@media (max-width: 700px) {
    .mopedgarage-lightbox__dialog {
        padding: 12px;
    }

    .mopedgarage-lightbox__content {
        max-width: 100%;
        max-height: calc(100vh - 24px);
    }

    .mopedgarage-lightbox__image {
        max-height: calc(100vh - 80px);
    }

    .mopedgarage-lightbox__close {
        top: 8px;
        right: 8px;
    }
}
/* =========================================================
   UCP - MOTORRAD BLOECKE / KARTEN (ROBUST)
   ========================================================= */

.mopedgarage-ucp-grid {
    display: block;
    width: 100%;
}

.mopedgarage-bike-card {
    display: block;
    clear: both;
    margin: 0 0 24px 0;
    padding: 0;
    border: 1px solid #cfd8e1;
    border-radius: 8px;
    background: #f7f9fb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.mopedgarage-bike-card__header {
    display: block;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #d6dee6;
    background: #e9eff5;
}

.mopedgarage-bike-card__title {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #105289 !important;
}

.mopedgarage-bike-card__body {
    display: block;
    padding: 16px;
    background: #f7f9fb;
}

/* alte phpBB-form-Struktur innerhalb der Karte sauber halten */
.mopedgarage-bike-card__body dl {
    display: block;
    margin: 0 0 12px 0;
    padding: 0;
    overflow: hidden;
}

.mopedgarage-bike-card__body dt {
    box-sizing: border-box;
}

.mopedgarage-bike-card__body dd {
    box-sizing: border-box;
}

.mopedgarage-bike-card__body dl:last-child {
    margin-bottom: 0;
}

/* Eingabefelder sauber auf Breite halten */
.mopedgarage-bike-card__body input.inputbox,
.mopedgarage-bike-card__body select,
.mopedgarage-bike-card__body textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* Upload-Widget innerhalb der Karte */
.mopedgarage-bike-card__body .mopedgarage-upload-widget {
    margin-top: 4px;
}

/* Checkbox-Zeile "Eintrag löschen" optisch etwas absetzen */
.mopedgarage-bike-card__body label {
    vertical-align: middle;
}

/* Mobile */
@media (max-width: 700px) {
    .mopedgarage-bike-card {
        margin-bottom: 18px;
    }

    .mopedgarage-bike-card__header {
        padding: 10px 12px;
    }

    .mopedgarage-bike-card__title {
        font-size: 18px !important;
    }

    .mopedgarage-bike-card__body {
        padding: 12px;
    }
}