/**
 * SuccessStory Portlet Styles
 * CTA Section mit Gradient-Hintergrund
 */

.opc-SuccessStory {
    position: relative;
    overflow-x: clip;        /* Verhindert horizontales Scrollen */
    overflow-y: visible;     /* Erlaubt Gradient-Overflow */
    /* Break out of parent container to full viewport width */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Headline Styling */
.opc-SuccessStory .display-5 {
    font-weight: 700;
    line-height: 1.2;
}

/* Button Enhancements */
.opc-SuccessStory .btn {
    transition: all 0.3s ease-in-out;
    border: none;
}

.opc-SuccessStory .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Image Responsive - Verhindert Overflow auf kleinen Screens */
.opc-SuccessStory img {
    height: auto;
}

/* Mobile & Tablet: Bild einpassen und zentrieren */
@media (max-width: 991.98px) {
    .opc-SuccessStory img {
        max-width: 100%;
        width: 100%;
    }
}

/* Laptop (992-1199px): Bild etwas größer, aber ohne extremen Overflow */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .opc-SuccessStory img {
        max-width: 120%;
        width: 120%;
    }
}

/* Desktop XL+: Bild darf über Container hinauslaufen */
@media (min-width: 1200px) {
    .opc-SuccessStory img {
        max-width: none;
        width: auto;
    }
}

/* Preview Mode Styling */
.opc-SuccessStory-preview {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
}

.opc-SuccessStory-preview h5 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Z-Index Management */
.opc-SuccessStory .z-2 {
    z-index: 2;
}

/* Gap Utility für Vertical Button Layout */
.gap-3 {
    gap: 1rem !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .opc-SuccessStory .display-5 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .opc-SuccessStory .display-5 {
        font-size: 2rem;
    }
    
    .opc-SuccessStory .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation Enhancement */
.opc-SuccessStory [data-aos] {
    transition-property: transform, opacity;
}
