/* Animated Text Carousel */
.multistudio-animated-text {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}
.multistudio-animated-text .animated-text-wrapper {
    display: inline-block;
    width: 100%;
}
.multistudio-animated-text .active-text,
.multistudio-animated-text .middle-text,
.multistudio-animated-text .next-text,
.multistudio-animated-text .hidden-text,
.multistudio-animated-text .previous-text {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    transition: transform 0.8s ease, opacity 0.8s ease, color 0.8s ease, background-color 0.8s ease;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}
.multistudio-animated-text .active-text {
    z-index: 1;
}
.multistudio-animated-text .middle-text {
    z-index: 2;
}
.multistudio-animated-text .next-text {
    z-index: 3;
}
.multistudio-animated-text .hidden-text {
    display: none !important;
}
.multistudio-animated-text .middle-text {
    transform: translateX(350px);
}
.multistudio-animated-text .next-text {
    transform: translateX(635px);
    opacity: 0;
}
/* Animation styles are added inline per instance */
/* Project Animation */
.ms-project-item.ms-animate {
    opacity: 0;
    transform: translateY(30px);
    transition-property: opacity, transform;
    transition-timing-function: ease;
}
.ms-project-item.ms-animate.ms-visible {
    opacity: 1;
    transform: translateY(0);
}
.ms-project-item.ms-invisible {
    opacity: 0;
    transform: translateY(30px);
}
/* Project Widget Styles */
.ms-project-grid {
    display: grid;
    width: 100%;
}
.ms-project-columns-1 {
    grid-template-columns: 1fr;
}
.ms-project-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}
.ms-project-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}
.ms-project-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}
.ms-project-item {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.ms-thumb-link {
    display: block;
    position: relative;
    overflow: hidden;
}
.ms-thumb {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: 75%;
    transition: transform 0.4s ease;
}
.ms-project-item:hover .ms-thumb {
    transform: scale(1.05);
}
.ms-project-title {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    margin-right: 20px;
}
.ms-project-title:hover {
    color: #666;
}
/* .ms-project-title span {
    display: flex;
    align-items: center;
    justify-content: center;
} */
.ms-project-title span.icon,
.ms-project-title span.icon svg {
    width: 24px;
    height: 24px;
    line-height: 1;
}
.ms-project-info {
    display: flex;
    gap: 15px;
    align-items: center;
}
.ms-project-title span.icon {
    position: relative;
    transition: all 0.3s;
    left: 0;
}
.ms-meta-separator {
    width: 4px;
    height: 4px;
    background-color: #4F688C;
    border-radius: 50%;
    display: inline-block;
}
.ms-project-location,
.ms-project-date {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}
/* Responsive adjustments */
@media (max-width: 1024px) {
    .ms-project-columns-4,
    .ms-project-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .ms-project-columns-4,
    .ms-project-columns-3,
    .ms-project-columns-2 {
        grid-template-columns: 1fr;
    }
}
/* News Widget Styles */
.ms-news-container {
    width: 100%;
}
.ms-news-grid {
    display: grid;
    width: 100%;
    grid-gap: 30px;
}
.ms-news-columns-1 {
    grid-template-columns: 1fr;
}
.ms-news-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}
.ms-news-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}
.ms-news-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}
.ms-news-item {
    position: relative;
    display: flex;
    flex-direction: column;
    color: #fff;
    min-height: 200px;
}
.ms-news-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ms-news-title {
    flex: 1;
}
.ms-news-arrow {
    flex-shrink: 0;
    margin-left: 15px;
}
.ms-news-thumb {
    width: 100%;
    height: 250px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.ms-news-thumb-link {
    overflow: hidden;
}
.ms-news-item .ms-news-thumb {
    transition: all 0.3s ease;
}
.ms-news-item:hover .ms-news-thumb {
    transform: scale(1.05);
}
/* Animation for News Items */
.ms-news-item.ms-animate {
    opacity: 0;
    transform: translateY(30px);
    transition-property: opacity, transform;
    transition-timing-function: ease;
}
.ms-news-item.ms-animate.ms-visible {
    opacity: 1;
    transform: translateY(0);
}
.ms-news-item.ms-invisible {
    opacity: 0;
    transform: translateY(30px);
}
/* Slick Slider Styles */
.ms-news-grid.slick-initialized {
    display: block;
}
.ms-news-grid .slick-slide {
    margin: 0 10px;
}
.ms-news-grid .slick-list {
    margin: 0 -10px 56px -10px;
}
.ms-news-grid .slick-prev:hover,
.ms-news-grid .slick-next:hover {
    background-color: #f5f5f5;
}
.ms-news-grid .slick-dots {
    display: flex;
    justify-content: center;
    list-style: none;
}
.ms-news-grid .slick-dots li {
    margin: 0 5px;
    position: relative;
    overflow: hidden;
}
.ms-news-grid .slick-dots button {
    font-size: 0;
    width: auto;
    min-width: 75px;
    height: 2px;
    border-radius: 50px;
    background-color: #4F688C;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.ms-news-grid .slick-dots li.slick-active button {
    background-color: #4F688C;
}
.ms-news-grid .slick-dots li.slick-active button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #C9D2DF;
    animation: dotFillAnimation 3s ease-in-out forwards;
    transform-origin: left center;
}
@keyframes dotFillAnimation {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}
/* Responsive Styles */
@media (max-width: 1024px) {
    .ms-news-columns-4,
    .ms-news-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    .ms-news-columns-4,
    .ms-news-columns-3,
    .ms-news-columns-2 {
        grid-template-columns: 1fr;
    }
}
.ms-ueber-uns-grid {
    display: grid;
}
.ms-ueber-uns-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ms-ueber-uns-thumb {
    position: relative;
    overflow: hidden;
}
.ms-ueber-uns-thumb img {
    width: 100%;
    height: 100%;
    display: block;
}
.ms-ueber-uns-message-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
}
.ms-ueber-uns-message {
    text-align: center;
    max-width: 90%;
    width: 100%;
    position: relative;
    z-index: 2;
}
.ms-ueber-uns-message-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* Hover animations - base */
.ms-ueber-uns-thumb:hover .ms-ueber-uns-message-wrap {
    opacity: 1;
    visibility: visible;
}
/* Fade animation */
.ms-ueber-uns-thumb.ms-hover-fade .ms-ueber-uns-message-wrap {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ms-ueber-uns-thumb.ms-hover-fade:hover .ms-ueber-uns-message-wrap {
    opacity: 1;
}
/* Slide up animation */
.ms-ueber-uns-thumb.ms-hover-slide-up .ms-ueber-uns-message-wrap {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.ms-ueber-uns-thumb.ms-hover-slide-up:hover .ms-ueber-uns-message-wrap {
    transform: translateY(0);
}
/* Zoom in animation */
.ms-ueber-uns-thumb.ms-hover-zoom-in .ms-ueber-uns-message-overlay {
    transform: scale(1.5);
    opacity: 0;
    transition: all 0.3s ease;
}
.ms-ueber-uns-thumb.ms-hover-zoom-in .ms-ueber-uns-message {
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.3s ease;
}
.ms-ueber-uns-thumb.ms-hover-zoom-in:hover .ms-ueber-uns-message-overlay,
.ms-ueber-uns-thumb.ms-hover-zoom-in:hover .ms-ueber-uns-message {
    transform: scale(1);
    opacity: 1;
}
.ms-ueber-uns-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
@media (max-width: 767px) {
    .ms-ueber-uns-grid {
        grid-template-columns: 1fr;
    }
    .ms-ueber-uns-message-wrap {
        display: none;
    }
}
.honorar-input-group .input-wrapper {
    display: flex;
}
.honorar-input-group .input-wrapper .input-prefix {
    padding: 18px 0 18px 24px;
    color: #FFFCEB;
    font-size: 16px;
}
.honorar-input-group .input-wrapper input {
    background: no-repeat;
    border: none;
    padding: 18px 24px 18px 8px;
    color: #FFFCEB;
    font-family: "Arial Nova", sans-serif;
    font-size: 16px;
}
.honorar-input-group .input-wrapper input::placeholder {
    color: #C9D2DF;
}
.honorar-input-group .input-wrapper {
    display: flex;
    border: 1.5px solid #4F688C;
    border-radius: 4px;
    width: 100%;
}
.honorar-input-group {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.honorar-input-group button {
    border: none;
    background: #FFFCEB;
    padding: 18px;
    min-width: 200px;
    border-radius: 2px;
    font-size: 16px;
    line-height: 1.4;
    color: #0E2D58;
    cursor: pointer;
    font-family: "Arial Nova", sans-serif;
}
.honorar-result-grid {
    display: flex;
    padding-right: 45px;
    border-right: 1px solid #C9D2DF;
    gap: 36px;
}
.honorar-results {
    display: flex;
    gap: 16px;
    width: 100%;
    align-items: center;
    margin-top: 32px;
}
.honorar-result-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.honorar-result-row .result-label {
    font-size: 20px;
    line-height: 1.3;
}
.honorar-result-row .result-value {
    font-size: 16px;
    line-height: 1.4;
}
@media (max-width: 1199px) {
    .honorar-input-group button {
        min-width: 140px;
    }
    .honorar-result-grid {
        padding-right: 16px;
        gap: 16px;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    .honorar-result-row .result-label {
        font-size: 18px;
    }
}
@media (max-width: 991px) {
    .honorar-input-group {
        flex-direction: column;
    }
    .honorar-results {
        flex-direction: column;
    }
    .honorar-result-grid {
        padding-right: 0;
        border-right: 0;
        border-bottom: 1px solid #C9D2DF;
        padding-bottom: 20px;
        justify-content: space-between;
        width: 100%;
    }
    .honorar-result-row {
        align-items: center;
    }
    .honorar-result-row.honorar-total {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}
@media (max-width: 400px) {
    .honorar-result-row .result-label {
        font-size: 14px;
    }
    .honorar-result-row .result-value {
        font-size: 12px;
    }
}
/* Steps Toggle Widget Styles */
.ms-step-container::before {
    position: absolute;
    content: '';
    width: 24px;
    height: 24px;
    border: 1.2px solid #4F688C;
    border-radius: 50%;
    left: 0;
    top: 10px;
}
.ms-step-container {
    position: relative;
    padding-left: 60px;
}
.ms-step-container::after {
    position: absolute;
    content: '';
    height: calc(100% - 60px);
    width: 1.2px;
    left: 11px;
    top: 52px;
    background: #4F688C;
}
.ms-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ms-step-toggle span {
    font-size: 20px;
    width: 58px;
    height: 58px;
    display: block;
    text-align: center;
    line-height: 58px;
}
.ms-step-title-container .ms-step-number {
    display: block;
}
/* Desktop view styles */
@media (min-width: 768px) {
    .ms-step-toggle {
        display: none !important;
    }
    .ms-step-content {
        display: block !important;
    }
    .ms-step-header {
        cursor: default;
    }
}
/* Mobile view styles */
@media (max-width: 767px) {
    .ms-step-container:last-child::after {
        opacity: 0;
        transition: opacity 0.3s;
    }
    .ms-step-container.ms-step-active:last-child::after {
        opacity: 1;
    }
    .ms-step-container {
        padding-left: 48px;
    }
}
/* Unsere Kunden Widget Styles */
.mw-group .mw-letter, .mw-item .name {
    border-bottom: 1px solid #4F688C;
}
.mw-item a.name {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}
.mw-item a.name:hover {
    color: #FFFCEB !important;
}
.mw-item a.name svg {
    opacity: 0;
    transition: all 0.3s ease;
}
.mw-item a.name:hover svg {
    opacity: 1;
}
.bymarei-mw-widget .mw-columns {
    display: flex;
    width: 100%;
}
.bymarei-mw-widget .mw-column {
    flex: 1;
    min-width: 0;
}
@media (max-width: 767px) {
    .bymarei-mw-widget .mw-columns {
        flex-direction: column;
    }
    .bymarei-mw-widget .mw-letter {
        cursor: pointer;
        position: relative;
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }
    .bymarei-mw-widget .mw-letter:after {
        content: '\f067';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        font-weight: bold;
        font-family: 'Font Awesome 5 Free';
        font-size: 16px;
    }
    .bymarei-mw-widget .mw-letter.active:after {
        content: '\f068';
    }
    .bymarei-mw-widget .mw-grid {
        display: none;
        overflow: hidden;
        transition: all 0.3s ease-out;
        max-height: 0;
        opacity: 0;
    }
    .bymarei-mw-widget .mw-grid.active {
        display: grid;
        max-height: 1000px;
        opacity: 1;
        grid-template-columns: 1fr;
    }
}