/* ABRaceOverlay – interaktive Overlay-Vorschau */

.showcase-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    margin-top: 24px;
}

.showcase-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-sidebar > h3 {
    font-size: 1.15rem;
    margin: 0 0 8px;
}

.showcase-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: 1px solid #27516a;
    border-radius: 10px;
    background: #10232f;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.showcase-btn span {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid #426178;
    background: #213b4d;
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
}

.showcase-btn:hover,
.showcase-btn.active {
    border-color: #00d9ed;
    background: #12313d;
}

.showcase-screen {
    position: relative;
    min-width: 0;
    min-height: 800px;
    overflow: hidden;
    border: 1px solid #30485a;
    border-radius: 12px;
    background: #182633;
}

#showcase-frame {
    display: block;
    width: 100%;
    height: 800px;
    border: 0;
    background: transparent;
}

@media (max-width: 800px) {
    .showcase-layout {
        grid-template-columns: 1fr;
    }

    .showcase-screen {
        min-height: 600px;
    }

    #showcase-frame {
        height: 600px;
    }
}

/* Vorschaufenster ohne Scrollbalken */
.showcase-screen {
    overflow: hidden !important;
}

#showcase-frame {
    display: block;
    width: 100%;
    height: 800px;
    border: 0;
    overflow: hidden;
}

/* Mehr Platz für vollständige Leaderboard-Vorschau */
@media (min-width: 801px) {
    .showcase-screen {
        min-height: 1000px !important;
    }

    #showcase-frame {
        height: 1000px !important;
    }
}

/* Breitere Produktvorschau */
@media (min-width: 1100px) {
    #overlays > .wrap {
        width: calc(100% - 48px) !important;
        max-width: 1500px !important;
        margin-left: auto;
        margin-right: auto;
    }

    .showcase-layout {
        grid-template-columns: 270px minmax(0, 1fr);
    }
}

/* ABR_CLASSIC_COMPACT_V1 */
.showcase-screen:has(#showcase-flag-controls:not([style*="display: none"])) {
    height: auto !important;
    min-height: 0 !important;
}

.showcase-screen:has(#showcase-flag-controls:not([style*="display: none"])) #showcase-frame {
    height: 220px !important;
    min-height: 0 !important;
}

/* ABR_SHOWCASE_GRID_FIX_V1 */
.showcase-screen {
    align-self: start;
}

/* ABR_SHOWCASE_TOP_ALIGNMENT_V1 */
/* Linke Auswahl und rechte Vorschau oben bündig ausrichten */

.showcase-layout {
    align-items: start !important;
}

.showcase-sidebar,
.showcase-screen {
    align-self: start !important;
    margin-top: 0 !important;
}


/* ABR_SHOWCASE_VERTICAL_ALIGNMENT_V1 */
/* Rechten Vorschau-Rahmen an erster Overlay-Kachel ausrichten */

@media (min-width: 801px) {
    .showcase-layout .showcase-screen {
        margin-top: 50px !important;
    }
}



/* ABR_SHOWCASE_STICKY_V1 */

@media (min-width: 801px) {
    .showcase-layout .showcase-screen {
        position: sticky !important;
        top: 100px;
        align-self: start !important;
    }
}