.sc-baa1cbc5-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

.sc-baa1cbc5-item {
    display: flex;
    position: sticky;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Variables mapping with robust fallbacks */
    --sc-direction: row;
    --sc-media-width: 50%;
    --sc-content-width: 50%;
    --sc-media-height-col: 350px;
    --sc-content-align: center;
}

.sc-baa1cbc5-item {
    flex-direction: var(--sc-direction, row);
}

.sc-baa1cbc5-media {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.sc-baa1cbc5-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* ==========================================================================\n   NEBENEINANDER (ROW / ROW-REVERSE)\n   ========================================================================== */
.sc-baa1cbc5-item[style*="row"] .sc-baa1cbc5-media,
.sc-baa1cbc5-item:not([style*="column"]):not([style*="column-reverse"]) .sc-baa1cbc5-media {
    width: var(--sc-media-width, 50%) !important;
    flex: 0 0 auto !important;
    height: auto !important;
    align-self: stretch;
}

.sc-baa1cbc5-item[style*="row"] .sc-baa1cbc5-content,
.sc-baa1cbc5-item:not([style*="column"]):not([style*="column-reverse"]) .sc-baa1cbc5-content {
    width: var(--sc-content-width, 50%) !important;
    flex: 0 0 var(--sc-content-width, 50%) !important;
}

/* ==========================================================================\n   UNTEREINANDER (COLUMN / COLUMN-REVERSE)\n   ========================================================================== */
.sc-baa1cbc5-item[style*="column"] .sc-baa1cbc5-media,
.sc-baa1cbc5-item[style*="column-reverse"] .sc-baa1cbc5-media {
    width: var(--sc-media-width, 100%) !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    height: var(--sc-media-height-col, 350px) !important;
}

.sc-baa1cbc5-item[style*="column"] .sc-baa1cbc5-content,
.sc-baa1cbc5-item[style*="column-reverse"] .sc-baa1cbc5-content {
    width: var(--sc-content-width, 100%) !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    max-width: var(--sc-content-width, 100%) !important;
    
    /* Margin alignments based on alignment value */
    margin-left: var(--sc-content-align, auto) !important;
    margin-right: var(--sc-content-align, auto) !important;
}

/* Align overrides */
.sc-baa1cbc5-item[style*="column"] .sc-baa1cbc5-content {
    margin-left: var(--sc-content-align) !important;
    margin-right: var(--sc-content-align) !important;
}

/* ==========================================================================\n   ASPECT RATIO OVERRIDES FOR COLUMN/RESPONSIVE MODES\n   ========================================================================== */
.sc-baa1cbc5-media[data-aspect="16-9"] {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
}

.sc-baa1cbc5-media[data-aspect="4-3"] {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
}

.sc-baa1cbc5-media[data-aspect="1-1"] {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
}

/* Seitenverhaeltnis darf nicht vom Strecken ueberschrieben werden */
.sc-baa1cbc5-media[data-aspect="16-9"],
.sc-baa1cbc5-media[data-aspect="4-3"],
.sc-baa1cbc5-media[data-aspect="1-1"] {
    align-self: flex-start !important;
}

/* Feste Hoehe: Mindesthoehe, damit die Flaeche im Spalten-Layout nicht auf null faellt */
.sc-baa1cbc5-media[data-aspect="auto"] {
    min-height: var(--sc-media-height-col, 350px);
}

/* Inner elements */
.sc-baa1cbc5-static-img,
.sc-baa1cbc5-slider,
.sc-baa1cbc5-slides-wrapper,
.sc-baa1cbc5-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.sc-baa1cbc5-static-img {
    position: absolute;
    top: 0;
    left: 0;
}

.sc-baa1cbc5-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sc-baa1cbc5-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.sc-baa1cbc5-slide.is-active {
    opacity: 1;
}

/* Slider buttons */
.sc-baa1cbc5-prev,
.sc-baa1cbc5-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    transition: background 0.2s ease;
}

.sc-baa1cbc5-prev:hover,
.sc-baa1cbc5-next:hover {
    background: rgba(0,0,0,0.7);
}

.sc-baa1cbc5-prev { left: 15px; }
.sc-baa1cbc5-next { right: 15px; }

/* Typography spacing */
.sc-baa1cbc5-title {
    margin: 0 0 15px 0;
    font-weight: 700;
}

.sc-baa1cbc5-desc {
    margin: 0 0 25px 0;
    line-height: 1.6;
}

/* Button Reset */
.sc-baa1cbc5-btn {
    align-self: flex-start;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600;
}
