#as25-viewport {
    margin: 0 -2.5rem;
    padding: 0 2.5rem;
    padding-top: 5rem;
    padding-bottom: 1.75rem;
    overflow: hidden;
}
#as25 {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    position: relative;
    /* background-image: url("/documents/d/guest/as25-bg"); */
    background-position: center;
}
#as25 .as25-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
#as25 .as25-bg::before {
    content: "";
    position: absolute;
    top: -25%;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: url('../bg-25jahre.png');
    background-repeat: repeat;
    background-size: 110px 118px;
    transform: rotate(-30deg) translate(-50px,-350px);
    z-index: -1;
}
.signature-A {
    position: absolute;
    width: 18%;
    aspect-ratio: 2 / 3;
    right: 17%;
    top: 30%;
    text-align: center;
    min-width: 180px;
    min-height: 225px;
    z-index: 10;
}
.signature-A > img {
    margin: 40% auto;
    width: 75%
}
.rangeselect {
    width: 36%;
    padding: 1rem;
    position: absolute;
    background-color: #ffffff;
    z-index: 150;
    right: 12%;
    top: -2rem;
    display: flex;
}
.rangeselect .r-from,
.rangeselect .r-to {
    width: 60px;
    font-weight: bold;
}
.rangeselect .r-from {
    text-align: left;
}
.rangeselect .r-to {
    text-align: right;
}
.rangeselect a.plain {
    margin-left: 15px;
    width: 24px;
}
.rangeselect a.plain img {
    vertical-align: text-bottom;
}
.rangeselect #slider-range {
    flex-grow: 1;
    height: 7px;
    border: none;
    margin-top: 13px;
    background-color: #a7a7a7;
}
#slider-range > span.ui-slider-handle {
    border-radius: 50% !important;
    top: -9px;
}
.as #lightboxOverlay {
    opacity: 0.96;
}
#lightboxOverlay::after {
    height: 100%;
    content: " ";
    background: url("/o/autostadt-theme/images/A.svg") top right no-repeat;
    width: 50%;
    position: fixed;
    right: 0;
    bottom: 0;
    top: 0;
}
.as .lb-container {
    padding: 0;
}
.as .lb-data .lb-number {
    display: none;
}
.as .lb-image {
    border: 0;
    border-radius: 0;
}
.pages img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.showPage1 .signature-A,
.showPage1 .ui-slider-range,
.showPage1 #lightboxOverlay {
    background: linear-gradient(90deg, #e63b11 0%, #c52a87 100%);
}

.showPage2 .signature-A,
.showPage2 .ui-slider-range,
.showPage2 #lightboxOverlay {
    background: linear-gradient(90deg, #21307d 0%, #00abe9 100%);
}
.showPage3 .signature-A,
.showPage3 .ui-slider-range,
.showPage3 #lightboxOverlay {
    background: linear-gradient(90deg, #632483 0%, #c52a87 100%);
}

.teaser-body {
    background-color: #ffffff;
    position: absolute;
    width: 425px;
    left: 10%;
    top: 90%;
    padding: 1.6rem;
    text-align: left;
}
.teaser-body .toggle {
    position: absolute;
    right: 15px;
    top: 14px;
}
.teaser-body .toggle svg {
    transition: transform 0.3s ease;
}
.teaser-body.closed .toggle svg {
    transform: rotate(-180deg);
}
.teaser-body.closed > div{
    display: none;
}
.teaser-body p {
    line-height: 1.4;
}
.as-grid {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 117%;
    /*animation: scroll 12s infinite;  Adjust duration as needed */
}
#lightbox .lb-year {
    margin-right: 1rem;
}
#teaser-fullscreen .d-flex > div {
    flex-grow: 1;
}
.showPage1 .as-grid:nth-child(1) {
    top: 0;
    transition: top 1s;
}
.showPage1 .as-grid:nth-child(3) {
    top: -117%;
    transition: top 1s;
}
.showPage2 .as-grid:nth-child(2) {
    top: 0;
    transition: top 1s;
}
.showPage2 .as-grid:nth-child(1) {
    top: -117%;
    transition: top 1s;
}
.showPage3 .as-grid:nth-child(3) {
    top: 0;
    transition: top 1s;
}
.showPage3 .as-grid:nth-child(2) {
    top: -117%;
    transition: top 1s;
}
.as25-img {
    background-color: #c0c0c0;
    background-size: cover;
    background-position: center;
    position: absolute;
}
#teaser-fullscreen {
    display:flex;
}
#lightbox .lb-container {
    padding:0;
}
/* jquery ui start */
.ui-widget.ui-widget-content {
    border: 1px solid #c5c5c5;
}
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br {
    border-bottom-right-radius: 3px;
}
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl {
    border-bottom-left-radius: 3px;
}
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr {
    border-top-right-radius: 3px;
}
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl {
    border-top-left-radius: 3px;
}
.ui-widget-content {
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #333333;
}
.ui-widget {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
}
.ui-slider-horizontal {
    height: .8em;
}
.ui-slider {
    position: relative;
    text-align: left;
}
.ui-slider-horizontal .ui-slider-range {
    top: 0;
    height: 100%;
}
.ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    font-size: .7em;
    display: block;
    border: 0;
    background-position: 0 0;
}
.ui-widget-header {
    border: 1px solid #dddddd;
    background: #e9e9e9;
    color: #333333;
    font-weight: bold;
}
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default, .ui-button, html .ui-button.ui-state-disabled:hover, html .ui-button.ui-state-disabled:active {
    border: 1px solid #c5c5c5;
    background: #f6f6f6;
    font-weight: normal;
    color: #454545;
}
.ui-slider-horizontal .ui-slider-handle {
    top: -.3em;
    margin-left: -.6em;
}
.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
    touch-action: none;
}
/* jquery ui end */


@media(max-width: 575.98px) {
    .as #as25 {
        aspect-ratio: 1 / 2;
    }
    .as #as25 h1 {
        font-size: 1.2rem;
    }
    .as #as25 p {
        margin-bottom: 0.5rem;
    }
    .rangeselect {
        width: 100%;
        left: 0;
        top: -3rem;
    }
    .signature-A {
        width: 31%;
        height: 25%;
        left: 20px;
        top: 59%;
    }
    .signature-A .teaser-body{
        width: 92vw;
        top: 82%;
        left: 5%;
    }
    .as .teaser-body h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    .as .signature-A > img {
        margin: 20% auto;
    }
    .as main.container-fluid {
        padding: 0;
    }
    .as #as25-viewport {
        padding-top: 0.5rem;
    }
    .as #lightboxOverlay::after {
        width: 100%;
    }
    .as .rangeselect {
        position: relative;
        margin: 0 20px;
        top: unset;
        left: unset;
        right: unset;
        width: initial;
    }
    #as25-container {
        overflow-x: hidden;
    }
    .as .lb-nav {
        position: relative;
        right: initial;
        margin-top: 35px;
        align-items: center;
        justify-content: center;
    }
}
@media (min-width: 575.98px) and (max-width: 991.98px) {
    .as #as25 {
        aspect-ratio: 2 / 3;
    }
    .rangeselect {
        width: 50%;
        right: 15%;
    }
}