/* ===== APARTMENTS PAGE ===== */

/* Body Hintergrund */
body {
    background-color: #9ead92 !important;
}

/* Navbar auf Apartments-Seite: dunkle Farben da heller Hintergrund */
.apartments-page-body .navbar .nav-menu a {
    color: var(--navy);
    text-shadow: none;
}

.apartments-page-body .navbar .mobile-menu-toggle span {
    background: var(--navy);
}

/* Footer Hintergrund sicherstellen */
.footer {
    background-color: var(--navy) !important;
}

/* Hauptinhalt Container - nur für Intro */
.apartments-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 0;
    padding-top: 250px;
}

/* Intro Sektion */
.intro {
    padding: 60px 20px;
}

.intro h1 {
    font-size: 93px;
    color: #212244;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Gotham', sans-serif;
}

.intro-text {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.4;
    font-family: 'AvenirNextLTPro', sans-serif;
}

.features {
    font-size: 21px;
    color: #ffffff;
    line-height: 1.6;
    font-family: 'AvenirNextLTPro', sans-serif;
}

.features .highlight {
    color: #212244;
}

/* ===== FULLWIDTH APARTMENT SEKTIONEN ===== */
.apartment-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* Abwechselnde Farben */
.apartment-section.apt-dark {
    background: var(--dark-navy);
}

.apartment-section.apt-sage {
    background: #9ead92;
}

/* Apartment Row innerhalb der Sektion */
.apartment-row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.apartment-row.reverse {
    flex-direction: row-reverse;
}

/* Bild */
.image-box {
    width: 55%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: pointer;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* Text */
.text-box {
    width: 45%;
    flex-shrink: 0;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.text-box h3 {
    color: var(--orange);
    font-size: 42px;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 400;
    font-family: 'Gotham', sans-serif;
}

.text-box p {
    font-size: 21px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: 'AvenirNextLTPro', sans-serif;
}

/* Textfarben für dunkle Sektionen */
.apt-dark .text-box p {
    color: #e1ddd4;
}

.apt-dark .text-box .capacity {
    color: var(--orange) !important;
}

/* Textfarben für grüne Sektionen */
.apt-sage .text-box h3 {
    color: #212244;
}

.apt-sage .text-box p {
    color: #ffffff;
}

.apt-sage .text-box .capacity {
    color: #212244 !important;
}

.capacity {
    font-weight: bold;
    font-family: 'AvenirNextLTPro', sans-serif;
}

/* Apartment Book Button */
.btn-apartment-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
    color: #e1ddd4;
    border: 2px solid var(--orange);
    font-family: 'AvenirNextLTPro', 'Gotham', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    width: fit-content;
}

.apt-sage .btn-apartment-book {
    color: #ffffff;
}

.btn-apartment-book svg {
    width: 12px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-apartment-book:hover {
    background: var(--orange);
    color: white;
    transform: translateY(-2px);
}

/* ===== VARIANTEN SWITCH ===== */
.variant-switch {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 25px;
    width: fit-content;
    gap: 0;
}

.variant-btn {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Gotham', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: uppercase;
    white-space: nowrap;
}

.variant-btn.active {
    color: white;
}

.variant-slider-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: var(--orange);
    border-radius: 50px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Sage Sektion Switch Farben */
.apt-sage .variant-switch {
    background: rgba(0, 0, 0, 0.1);
}

.apt-sage .variant-btn {
    color: rgba(255, 255, 255, 0.6);
}

.apt-sage .variant-btn.active {
    color: white;
}

/* Varianten Content */
.variant-content {
    display: none;
}

.variant-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== APARTMENT IMAGE SLIDER ===== */
.apt-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 2;
}

.apt-slider.apt-slider-hidden {
    display: none;
}

.apt-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.apt-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.apt-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.apt-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.35);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.apt-slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.apt-slider-prev {
    left: 15px;
}

.apt-slider-next {
    right: 15px;
}

.apt-slider-dots {
    display: none;
}

.apt-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.apt-slider-dot.active {
    background: var(--orange);
    transform: scale(1.3);
}

/* ===== LIGHTBOX GALERIE ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'AvenirNextLTPro', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Hasenohren unten rechts in der Text-Box */
.hasenohren-peek {
    position: absolute;
    bottom: 15px;
    right: 30px;
    width: 135px;
    height: auto;
    opacity: 0.12;
    pointer-events: none;
    object-fit: contain !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Hasenohren links in reverse Sektionen */
.apartment-row.reverse .hasenohren-peek {
    right: auto;
    left: 30px;
}

/* ===== APARTMENT FILTER ===== */
.apt-filter-section {
    background: var(--dark-navy);
    padding: 20px 40px 15px;
    position: sticky;
    top: 76px;
    z-index: 90;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.apt-filter-bar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.apt-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.apt-filter-group label {
    font-family: 'Gotham', sans-serif;
    font-size: 11px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.apt-filter-select {
    font-family: 'AvenirNextLTPro', sans-serif;
    font-size: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D66D58' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.apt-filter-select:hover {
    border-color: var(--orange);
    background-color: rgba(255, 255, 255, 0.1);
}

.apt-filter-select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 2px rgba(214, 109, 88, 0.2);
}

.apt-filter-select option {
    background: var(--dark-navy);
    color: #ffffff;
}

.apt-filter-reset {
    font-family: 'Gotham', sans-serif;
    font-size: 11px;
    color: var(--orange);
    background: transparent;
    border: 1px solid var(--orange);
    border-radius: 50px;
    padding: 10px 24px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
    align-self: flex-end;
}

.apt-filter-reset:hover {
    background: var(--orange);
    color: #ffffff;
}

.apt-filter-no-results {
    font-family: 'AvenirNextLTPro', sans-serif;
    font-size: 18px;
    color: var(--orange);
    text-align: center;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter animation */
.apartment-section {
    transition: opacity 0.4s ease, max-height 0.5s ease;
}

.apartment-section.apt-hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    pointer-events: none;
}

/* Responsive Anpassung für Mobilgeräte */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .apartment-section {
        overflow: hidden;
    }

    .text-box {
        overflow: hidden;
        align-items: center;
    }

    .apt-filter-section {
        padding: 15px 15px 12px;
        top: 62px;
    }

    .apt-filter-bar {
        gap: 12px;
    }

    .apt-filter-group {
        min-width: calc(50% - 8px);
        flex: 0 0 calc(50% - 8px);
    }

    .apt-filter-reset {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

    .apartment-section {
        min-height: auto;
    }

    .apartment-row, 
    .apartment-row.reverse {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    
    .image-box {
        width: 100%;
        min-height: 300px;
        height: 300px;
        position: relative;
        padding: 20px;
    }

    .text-box {
        width: 100%;
        padding: 40px 25px;
    }

    .apt-slide {
        padding: 20px;
    }

    .image-box img {
        height: auto;
        max-height: 100%;
    }

    .apt-slider {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .apt-slider-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .apt-slider-prev {
        left: 10px;
    }

    .apt-slider-next {
        right: 10px;
    }

    .variant-switch {
        margin: 0 auto 20px auto;
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 16px;
        gap: 4px;
        width: 100%;
        max-width: 100%;
    }

    .variant-btn {
        font-size: 0.65rem;
        padding: 6px 10px;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }

    .variant-btn.active {
        background: var(--orange);
        border-radius: 50px;
    }

    .variant-slider-bg {
        display: none;
    }

    .intro h1 {
        font-size: 42px;
        text-align: center;
        width: 100%;
    }
    
    .intro-text {
        font-size: 21px;
    }
    
    .features {
        font-size: 19px;
    }
    
    .text-box {
        padding: 40px 25px;
    }
    
    .text-box h3 {
        font-size: 27px;
    }
    
    .text-box p {
        font-size: 19px;
    }
}
