/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */

.small-content {
    margin-left: auto !important;
    margin-right: auto !important;
}

.calltoaction a span{
    background-color: var(--e-global-color-primary);
    color: #fff;
    padding: 10px;
    transition: all 500ms;
}

.calltoaction a:hover span{
    background-color: var(--e-global-color-secondary);
}

.calltoaction a {
    padding-left: 0px;
}

.single-appartment .round-button {
    position: fixed;
    right: 10px;
    bottom:10px;
    z-index: 10000;
}
.single-appartment .lch-button {
    margin: 50px 0;
}

.single-appartment .lch-button a,
.mega-details .lch-button a,
.appartment-card__content .lch-button{
    background-color: var(--e-global-color-primary);
    color: #fff !important;
    font-size: 20px !important;
    line-height: 1;
    padding: 10px 15px;
    text-align: center;
    text-transform: uppercase;
}

.mega-details .lch-button a {
    font-size: 17px !important;
}
.mega-details a:hover {
    color: var(--e-global-color-secondary);
}


.single-appartment .lch-button a:hover,
.mega-details .lch-button a:hover,
.appartment-card__content .lch-button:hover{
    background-color: var(--e-global-color-secondary);
}

.elementor-kit-6 .offer-button .elementor-button {
    border-top: 1px solid var(--e-global-color-primary);
    background-color: #fff;
    color: var(--e-global-color-primary);
    margin-top: 20px;
    padding-top: 15px;
    text-transform: none;
}

.appartments-image {
    overflow: hidden;
    height: 30vh;
}
.appartments-image img{
    object-fit: cover;
    object-position: center;
    height: 100%;
}

.appartments-text-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 15px 30px;
}

.appartments-header {
    display: flex;
    margin-bottom: 50px;
}

.appartments-header > div{
    width: 50%;
}

.appartments-line {
    text-align: center;
    margin: 0px auto 80px;
}
.appartments-house {
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 0;
    font-size: 0.9rem;
}

.appartments-header h1 {
    font-size: 38px;
    margin: 10px 0 20px;
    text-transform: uppercase;
}


.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
}

.fade-in-left.is-visible {
    animation: fadeInLeft 0.8s ease forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.appartments-shortdesc {
    line-height: 1.6;
}

.appartments-details {
    background-image: url("https://weissewandweissensee.at/wp-content/uploads/2026/09/illu_haeuser3.png");
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 20%;
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
}

.animated-line {
    margin: 0px 0px calc(0, 0px) + 0px) -805px;
    margin-bottom: 40px;
    max-width: 823px;
    width: 200%;
    animation-delay: 2s;
    animation: lineanimation ease-in 1200ms forwards;

}

@keyframes lineanimation {
    0% {margin-left: -100vw }
    100% {margin-left: -33vw }
}

.appartments-details > div {
    width: 50%;
}

@media screen and (max-width: 768px) {
    .appartments-header {
        flex-direction: column-reverse;
    }

    .appartments-details {
        flex-direction: column;
    }
    .appartments-details > div,
    .appartments-header > div{
        width: 100%;
    }
}

.appartments-description {
    line-height: 1.8;
    margin-bottom: 35px;
}

.single-appartment h2{
    text-align: center;
}

.appartments-facts {
    border-top: 1px solid #ddd;
}

.appartments-facts table {
    margin-bottom: 0;
}

.appartments-facts tr td:first-child {
    font-weight: bold;
    width: 50%;
}

.appartments-fact {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #ddd;
}

.appartments-floorplan img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.appartments-nav-overlay h3 {
    font-size: 30px;
    margin-bottom: 10px;
    text-transform: uppercase;
}


@media (max-width: 768px) {
    .appartments-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .appartments-next-link,
    .appartments-next-link img {
        min-height: 240px;
        height: 240px;
    }
}

.appartments-navigation {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 70px 0;
}

.appartments-navigation a:first-child,
.appartments-navigation a:last-child {
    width: 20%
}

.appartments-navigation a:nth-child(2) {
    margin: 0 auto;
    text-align: center;
}

.appartments-navigation a:nth-child(2) img {
    max-width: 300px;
}

.appartments-nav-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
}

.appartments-nav-item img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.appartments-nav-item:hover img {
    transform: scale(1.05);
}

.appartments-nav-overlay {
    padding: 0 10px;
}

.appartments-nav-overlay span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;

}

.appartments-navigation a:last-child {
    text-align: right;
}

.appartments-nav-overlay h3 {
    font-size: 24px;
}

.floorplan-viewport {
    width: 100%;
    overflow: hidden;
}

.floorplan-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.floorplan-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.floorplan-slide a {
    display: block;
}

.floorplan-slide img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    object-fit: contain;
}

.appartments-content h3 {
    color: var(--e-global-color-primary);
    margin-top: 11px;
}

.floorplan-tab {
    display: inline-flex;
    align-items: center;
    font-size: 18px  !important;
    gap: 0;
}

.floorplan-tab .text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transform: translateX(-8px);
    transition:
            max-width 0.4s ease,
            opacity 0.3s ease,
            transform 0.4s ease,
            margin-left 0.4s ease;
}

.floorplan-tab.active .text,
.floorplan-tab:hover .text {
    max-width: 250px;
    opacity: 1;
    transform: translateX(0);
    margin-left: 5px;
    margin-right: 5px;
}

.floorplan-tab {
    flex-shrink: 0;
}

.floorplan-tab .number {
    flex-shrink: 0;
}

.floorplan-tabs {
    border-bottom: 1px solid #e9e9e9;
    padding-bottom: 15px;
}

.floorplan-tab .number {
    background-color: var(--e-global-color-primary);
    padding: 5px 10px;
    color: #fff;
    display: inline-block;
}
.floorplan-tab .number:hover {
     cursor: pointer;
    background-color: var(--e-global-color-primary);
    color: #fff;
 }

.floorplan-tab:not(.active) .number {
    background-color: var(--e-global-color-secondary);
}

@media (prefers-reduced-motion: reduce) {
    .floorplan-track {
        transition: none;
    }
}

@media (max-width: 767px) {
    .appartments-navigation {
        grid-template-columns: 1fr;
    }
}

.expose-template {
    padding: 100px 0;
}
@media screen and (max-width: 600px) {
    .expose-template .e-flexbox-base {
        flex-direction: column !important;
    }

    .appartments-navigation > a:nth-child(2) {
        display: none;
    }

    .appartments-navigation a:first-child, .appartments-navigation a:last-child {
        width: 50%;
    }
}

.expose-template > div  > div {
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.expose-template > div  > div .e-flexbox-base {
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/*---------- Masonry Gallery ---------*/

.appartments-masonry {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, 15vw);
    gap: 5px;
}

.appartments-masonry .masonry-item {
    position: relative;
    display: block;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}

/* Spalte 1 */
.masonry-item:nth-child(1)  { grid-area: 1 / 1 / 2 / 2; }
.masonry-item:nth-child(2)  { grid-area: 2 / 1 / 4 / 2; }
.masonry-item:nth-child(3)  { grid-area: 4 / 1 / 5 / 2; }

/* Spalte 2 */
.masonry-item:nth-child(4)  { grid-area: 1 / 2 / 4 / 3; }
.masonry-item:nth-child(5)  { grid-area: 4 / 2 / 5 / 3; }

/* Spalte 3 */
.masonry-item:nth-child(6)  { grid-area: 1 / 3 / 2 / 4; }
.masonry-item:nth-child(7)  { grid-area: 2 / 3 / 3 / 4; }
.masonry-item:nth-child(8)  { grid-area: 3 / 3 / 5 / 4; }

/* Spalte 4 */
.masonry-item:nth-child(9)  { grid-area: 1 / 4 / 3 / 5; }
.masonry-item:nth-child(10) { grid-area: 3 / 4 / 5 / 5; }

/* Bildausschnitt und Hover */
.appartments-masonry .masonry-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .6s ease;
}

.appartments-masonry .masonry-item:hover img {
    transform: scale(1.06);
}

/* Tablet: 2 Spalten */
@media (min-width: 561px) and (max-width: 768px) {
    .appartments-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(8, minmax(0, 25vw));
        grid-auto-rows: minmax(0, 18vw);
        height: auto;
        max-height: none;
    }

    .appartments-masonry .masonry-item {
        grid-area: auto;
    }

    /* Linke Spalte */
    .masonry-item:nth-child(1)  { grid-area: 1 / 1 / 3 / 2; }
    .masonry-item:nth-child(2)  { grid-area: 3 / 1 / 6 / 2; }
    .masonry-item:nth-child(3)  { grid-area: 6 / 1 / 7 / 2; }
    .masonry-item:nth-child(4)  { grid-area: 7 / 1 / 8 / 2; }
    .masonry-item:nth-child(5)  { grid-area: 8 / 1 / 9 / 2; }

    /* Rechte Spalte */
    .masonry-item:nth-child(6)  { grid-area: 1 / 2 / 2 / 3; }
    .masonry-item:nth-child(7)  { grid-area: 2 / 2 / 4 / 3; }
    .masonry-item:nth-child(8)  { grid-area: 4 / 2 / 6 / 3; }
    .masonry-item:nth-child(9)  { grid-area: 6 / 2 / 8 / 3; }
    .masonry-item:nth-child(10) { grid-area: 8 / 2 / 9 / 3; }
}

/* Smartphone: 1 Spalte */
@media (max-width: 560px) {
    .appartments-masonry {
        display: flex;
        flex-direction: column;
    }
    .appartments-masonry .masonry-item img {
        position: relative;
    }
}

/*------------- MAX MENU -------------------- */


.custom-megamenu {
    display: grid;
    grid-template-columns: 180px 180px minmax(0, 1fr);
    max-width: 760px;
    width: 100%;
    background: #fff;
    padding: 15px 15px 25px;
    box-sizing: border-box;
    gap: 15px;
    border-bottom: 2px solid var(--e-global-color-secondary);
}

.custom-megamenu a {
    font-size: 17px !important;
}

.custom-megamenu .lch-button {
    margin-top: 25px;
}

.mega-houses,
.mega-tops {
    display: flex;
    flex-direction: column;
}

.mega-house {
    border: 0;
    background: none;
    padding: 6px 15px;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.mega-top, .mega-house {
    border-bottom: 1px solid #fff;
}

.mega-house:hover,
.mega-house.active{
    font-weight: bold;
    border-bottom: 1px solid var(--e-global-color-primary);
}
.mega-top:hover,
.mega-top.active {
    font-weight: bold;
}

.mega-top-group,
.mega-detail {
    display: none;
}


.mega-top-group.active,
.mega-detail.active {
    display: block;
}

.mega-top {
    display: block;
    padding: 6px 10px;
    text-decoration: none;
}

.mega-details img {
    width: 100%;
    max-height: 195px;
    height: auto;
    object-fit: cover;
    display: block;
}

.mega-details h3 {
    color: var(--e-global-color-primary);
    font-weight: bold;
    margin-top: 10px;
}

.mega-facts {
    line-height: 1.2;
    margin: 12px 0;
    display: flex;
    gap: 10px;
}


#site-navigation li.has-megamenu {
    position: static;
}

#site-navigation .custom-megamenu {
    display: none;
    position: absolute;
    top: 100%;
    left: -20%;
    width: 100%;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

#site-navigation li.has-megamenu:hover > .custom-megamenu,
#site-navigation li.has-megamenu:focus-within > .custom-megamenu {
    display: grid;
}

@media screen and (max-width: 1240px){
    #site-navigation-wrap .dropdown-menu >li >a,
    #site-navigation-wrap .dropdown-menu >li >button.dropdown-toggle,
    #site-navigation-wrap .dropdown-menu >li >button.site-search-toggle {
        padding: 0 15px !important;
    }
}

@media screen and (max-width: 1140px){
    #site-navigation-wrap .dropdown-menu >li >a,
    #site-navigation-wrap .dropdown-menu >li >button.dropdown-toggle,
    #site-navigation-wrap .dropdown-menu >li >button.site-search-toggle {
        padding: 0 10px !important;
    }
}


@media (max-width: 1080px) {
    #appartments-megamenu {
        display: none !important;
    }
}

@media (min-width: 1081px) {
    #menu-item-1397 .sub-menu {
        display: none;
    }
}

/* ----------- SERVICE LINKS ------------- */

.service-link {
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.service-link img {
    opacity: 1;
    transition: all 300ms;
}

.service-link:hover img {
    opacity: 0.4;
}

.service-link > div:last-child {
    bottom: 80px;
    color: var(--e-global-color-primary);
    position: absolute;
    overflow: hidden;
    padding: 0 10px 15px !important;
    background: rgba(255, 255, 255, 0.7);
}

.service-link > div p:first-child {
    line-height: 1.2;
    font-size: 24px;
    padding-top: 15px;
    position: relative;
    text-transform: uppercase;
}



.service-link > div p:first-child::after {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--e-global-color-primary);
    content: '';
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(-90%, 0, 0);
    transform: translate3d(-90%, 0, 0);
}

.service-link:hover > div p:first-child {
    color: var(--e-global-color-primary);
}


.service-link:hover > div p:first-child::after {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}


.service-link > div > p:last-child {
    line-height: 1.2;
    font-size: 19px;
    padding-top: 20px;
    opacity: 0;
    text-transform: none;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
}

.service-link:hover > div p:last-child {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* -------------- FORM ---------------- */

.offer-form.small-content {
    max-width: 800px !important;
}

.offer-form form input::placeholder,
.offer-form form textarea::placeholder {
    color: #000;
}

form input[type="date"],
form select,
form input[type="number"]{
    outline: none;
    border: 0px;
    border-bottom: 1px solid #000;
    border-radius: 0px !important;
}


/* -------------- Appartment Slider ---------------- */

.appartments-slider {
    width: 100%;
    min-width: 0;
}

.appartments-slider .swiper {
    width: 100%;
    overflow: hidden;
}

.appartments-slider .swiper-slide {
    height: auto;
}

.appartments-slider__nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.appartments-slider__nav button {
    width: 44px;
    height: 44px;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-size: 20px;
    transition: .3s;
}


.appartments-slider__nav button:disabled {
    opacity: .35;
    cursor: default;
}

.appartment-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.appartment-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.appartment-card__image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.appartment-card:hover .appartment-card__image > img {
    transform: scale(1.06);
}

.appartment-card__haus {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px #0002;
}

.appartment-card__haus img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appartment-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex: 1;

    margin-top: -28px;
    background-color: #f7f6f3;
    padding: 10px;
}

.appartment-card__content h3 {
    margin: 0;
    font-size: 22px;
}

.appartment-card__details {
    display: flex;
    gap: 10px;
    color: #666;
    font-size: 14px;
}

.appartment-card__button {
    display: flex;
    font-size: 18px !important;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    text-decoration: none;
    transition: background .3s;
}
.appartment-card__button:hover {
    color: var(--e-global-color-secondary);
}



.appartments-prev.elementor-swiper-button {
    right: 110px
}
.appartments-next.elementor-swiper-button {
    right: 65px
}

