/* ============================================================
   BUNJA Apartments – Stylesheet (bereinigt)
   ============================================================ */

*{box-sizing:border-box}
body{margin:0;font-family:'Inter',Arial,sans-serif;color:#555}

/* ---------- Navigation ---------- */
.nav{
    position:fixed;top:0;width:100%;
    padding:25px 40px;
    display:flex;justify-content:center;
    background:rgba(255,255,255,.85);
    backdrop-filter:blur(10px);
    z-index:100;
}
.nav a{text-decoration:none;color:#666;margin-left:20px;position:relative;padding-bottom:2px}
.nav a::after{content:'';position:absolute;bottom:0;left:0;width:0;height:1px;background:#c17c5f;transition:width .35s cubic-bezier(.16,1,.3,1)}
.nav a:hover{color:#c17c5f}
.nav a:hover::after{width:100%}

/* Side-Nav: über alle Breakpoints ausgeblendet */
.side{display:none}

/* ---------- Loader ---------- */
#loader{
    position:fixed;inset:0;
    background:#f7f4ef;
    z-index:99999;
    display:flex;justify-content:center;align-items:center;
    transition:opacity .6s ease, visibility .6s ease;
}
#loader.hide{opacity:0;visibility:hidden;pointer-events:none}
.loader-inner{text-align:center}
.loader-bar{
    width:260px;height:2px;
    background:rgba(0,0,0,.15);
    margin:20px auto 0;
}
.loader-progress{
    width:0;height:100%;
    background:#111;
    transition:width .2s ease;
}

/* ---------- Hero ---------- */
.hero{height:280vh;background:#f7f4ef}
.sticky{position:sticky;top:0;height:100vh;overflow:hidden}

.center{
    position:absolute;inset:0;
    display:flex;flex-direction:column;
    justify-content:center;align-items:center;
}
.center h1{
    font-size:clamp(180px,22vw,420px);
    margin:0;color:#000;
    font-family:'Playfair Display',serif;
    font-weight:400;line-height:.85;
    letter-spacing:-0.04em;
}
.center p{
    margin-top:20px;font-size:18px;
    letter-spacing:.2em;text-transform:uppercase;
    color:#000;
}

.heroimg{
    position:absolute;
    width:340px;height:340px;
    object-fit:cover;
}
.h1{left:25%;top:20%}
.h2{left:40%;top:3%;z-index:999}
.h3{right:27%;top:15%}
.h4{left:30%;bottom:12%}
.h5{right:24%;bottom:12%}

/* ---------- Drage-Video ---------- */
.drage-container{position:relative;height:115vh;z-index:1}
.drage-sticky{
    position:sticky;top:0;
    height:55vh;overflow:visible;
}
.drage-sticky video{
    position:absolute;inset:0;
    width:100%;height:100%;
    object-fit:cover;display:block;
}
.drage-sticky .video-overlay{
    position:absolute;inset:0;
    display:flex;flex-direction:column;
    justify-content:center;align-items:center;
    text-align:center;
    z-index:50;
    background:transparent;
    transition:transform .25s linear, opacity .25s linear;
    will-change:transform;
    backface-visibility:hidden;
}
.drage-sticky .video-overlay span{
    color:#fff;
    font-size:14px;
    letter-spacing:.45em;
    margin-bottom:20px;
}
.drage-sticky .video-overlay h2{
    color:#fff;margin:0;
    font-size:clamp(70px,8vw,150px);
    line-height:.92;font-weight:300;
}

/* ---------- Video Scroll Indicator – sticky am unteren Rand des Videos ---------- */
.video-scroll-indicator{
    position:absolute;
    left:50%;
    bottom:-220px;
    transform:translateX(-50%);
    z-index:60;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    pointer-events:none;
    background:transparent;
}
.video-scroll-indicator .scroll-line-wrap{
    min-height:220px;
}
.video-scroll-indicator .scroll-line{
    height:180px;
}

/* ---------- Cinema-Cut Videos ---------- */
.cinema-cut{position:relative;height:120vh}
.cinema-sticky{
    position:sticky;top:0;
    height:55vh;overflow:hidden;
}
.cinema-sticky video{
    width:100%;height:100%;object-fit:cover;
}

/* ---------- Apartment-Sektionen ---------- */
.apt{
    padding:40px 8%;
    max-width:1400px;
    margin:0 auto;
    border-top:1px solid rgba(0,0,0,.08);
}
.no1{
    position:relative;z-index:20;
    background:#eef2ee;
    margin-top:-30vh;
    border-radius:40px 40px 0 0;
}
.no2{position:relative;z-index:30;background:#f7f3ec}
.no3{position:relative;z-index:40;background:#f2f5f1}

/* Hintergrund-Label – sticky hinter Content, überscrollbar */
.bg-label{
    position:sticky;top:18vh;
    font-size:30vw;font-weight:900;
    line-height:.82;text-align:center;
    opacity:.22;
    pointer-events:none;user-select:none;
    z-index:0;
    margin:0 0 -38vh;
    letter-spacing:-0.07em;
}
.no1 .bg-label{color:#b8c4b8}
.no2 .bg-label{color:#d8ccba}
.no3 .bg-label{color:#bccabc}

/* Title-Zone – APARTMENT NoX mittig über dem großen Hintergrund-Label */
.title-zone{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:32vh;
    padding:40px 0 60px;
    margin-bottom:40px;
    border-bottom:1px solid rgba(0,0,0,.08);
}

/* Headline – zentriert über dem Hintergrund-Label */
.headline{
    text-align:center;
    position:relative;
    z-index:2;
    width:100%;
}
.headline span{
    font-size:20px;
    letter-spacing:8px;
    display:block;
    margin-bottom:18px;
    opacity:.75;
}
.headline h2{
    font-size:clamp(56px,7vw,118px);
    font-family:'Playfair Display',serif;
    font-weight:400;line-height:.95;
    margin:0;
    position:relative;
    opacity:1;
    transform:none;
}
.headline h2.show{opacity:1}

/* Scroll-Line – im Zwischenraum zwischen Titel und Content */
.scroll-line-wrap{
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:14px;
    margin:0 auto;
    min-height:280px;
    position:relative;z-index:3;
    pointer-events:none;
}
.scroll-line{
    width:2px;height:220px;border-radius:2px;
    background:linear-gradient(0deg,rgba(107,98,88,0) 0%,rgba(107,98,88,.55) 30%,rgba(107,98,88,.9) 100%);
    transform-origin:bottom center;
    will-change:transform;
}
.scroll-dot{
    width:10px;height:10px;border-radius:50%;
    background:#c17c5f;
    box-shadow:0 0 0 6px rgba(193,124,95,.18);
}
@media(max-width:768px){
    .scroll-line-wrap{min-height:220px}
    .scroll-line{height:170px}
}

/* Content-Reihen */
.row{
    display:grid;grid-template-columns:1fr 1fr;
    gap:30px;padding:25px 0;
    align-items:center;
    position:relative;z-index:2;
    border-top:1px solid rgba(0,0,0,.08);
}
.reverse .row::after{
    content:"";position:absolute;
    left:50%;top:0;bottom:0;width:1px;
    background:rgba(0,0,0,.08);
    pointer-events:none;
}

.txt{max-width:650px}
.txt h3{
    font-size:clamp(52px,4.5vw,82px);
    font-family:'Playfair Display',serif;
    font-weight:400;color:#666;
    line-height:.95;letter-spacing:-0.02em;
    transition:color .35s ease, letter-spacing .35s ease, transform .35s ease;
}
.txt h3:hover,
.txt h3.h3-active{
    color:#c17c5f;
    transform:translateX(8px);
}
#no1 .txt h3{font-size:clamp(48px,4vw,72px)}

/* ---------- Bild-Slider (50/50) ---------- */
.imgs{
    position:relative;display:flex;
    width:70%;margin:0 auto;
    height:364px;gap:8px;
    overflow:hidden;border-radius:4px;
    perspective:1200px;
}
.imgs img{
    flex:1 1 50%;width:50%;height:100%;
    object-fit:cover;cursor:pointer;
    transform:scale(1);
    filter:brightness(.92) saturate(1.02);
    will-change:flex-basis, width, transform, filter;
    transition:
        flex-basis 1.1s cubic-bezier(.77,0,.18,1),
        width 1.1s cubic-bezier(.77,0,.18,1),
        transform 1.1s cubic-bezier(.77,0,.18,1),
        filter .9s ease;
    box-shadow:0 10px 30px -18px rgba(0,0,0,.35);
}
.imgs img:hover{
    filter:brightness(1) saturate(1.06);
    transform:scale(1.015);
}
.imgs.show-left img:nth-child(1),
.imgs.show-right img:nth-child(2){
    flex-basis:85%;width:85%;
    filter:brightness(1.02) saturate(1.05);
    transform:scale(1.01);
}
.imgs.show-left img:nth-child(2),
.imgs.show-right img:nth-child(1){
    flex-basis:15%;width:15%;
    filter:brightness(.7) saturate(.9);
    transform:scale(1.04);
}
.imgs.show-left img:nth-child(2):hover,
.imgs.show-right img:nth-child(1):hover{
    filter:brightness(.88) saturate(1);
}

/* ---------- Booking Card ---------- */
.booking-card{
    position:relative;
    max-width:900px;
    margin:60px auto 30px;
    height:95px;overflow:hidden;
}
.booking-info-panel{
    position:absolute;inset:0;
    display:flex;align-items:center;justify-content:center;
    text-align:center;padding:0 30px;
    background:#7a7268;color:#fff;
    font-size:15px;letter-spacing:.08em;
    font-weight:500;line-height:1.6;
    z-index:10;
    transform:translateY(0);
    transition:transform 1s cubic-bezier(.16,1,.3,1);
}
.booking-card.revealed .booking-info-panel{transform:translateY(100%)}

.book{
    position:absolute;inset:0;
    display:flex;justify-content:center;align-items:center;
    padding:24px 0;
    border-top:1px solid rgba(107,98,88,.35);
    border-bottom:1px solid rgba(107,98,88,.35);
    color:#6b6258;
    text-decoration:none;text-transform:uppercase;
    letter-spacing:.15em;font-size:14px;
    z-index:1;
}
.book::after{
    content:"→";font-size:24px;
    transition:transform .3s ease;
}
.book:hover{color:#c17c5f}
.book:hover::after{transform:translateX(10px)}

/* ---------- Footer ---------- */
footer{
    position:relative;z-index:50;
    text-align:center;
    padding:150px 10%;
    background:linear-gradient(180deg,#1a1a1a 0%,#0f0f0f 100%);color:#fff;
}

/* ---------- Über-Mich-Popup ---------- */
.about-modal{
    position:fixed;inset:0;
    z-index:100000;
    display:flex;align-items:center;justify-content:center;
    padding:clamp(16px,3vw,32px);
    opacity:0;visibility:hidden;
    transition:opacity .45s ease, visibility .45s ease;
}
.about-modal.open{opacity:1;visibility:visible}

.about-backdrop{
    position:absolute;inset:0;
    background:radial-gradient(120% 80% at 30% 20%, rgba(160,125,74,.28), rgba(20,20,18,.65) 60%);
    backdrop-filter:blur(14px) saturate(120%);
    -webkit-backdrop-filter:blur(14px) saturate(120%);
}

.about-dialog{
    position:relative;z-index:1;
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
    width:100%;max-width:1040px;
    max-height:88vh;overflow:hidden;
    background:#faf7f2;
    border-radius:28px;
    box-shadow:0 50px 140px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.4) inset;
    transform:translateY(40px) scale(.97);
    opacity:0;
    transition:transform .55s cubic-bezier(.16,1,.3,1), opacity .45s ease;
}
.about-modal.open .about-dialog{transform:translateY(0) scale(1);opacity:1}

.about-media{
    position:relative;
    margin:0;
    background:#e7e2d8;
    min-height:320px;
    overflow:hidden;
}
.about-media img{
    width:100%;height:100%;
    object-fit:cover;display:block;
    transition:transform 1.2s ease;
}
.about-modal.open .about-media img{transform:scale(1.03)}
.about-media figcaption{
    position:absolute;left:20px;bottom:18px;
    padding:8px 14px;border-radius:999px;
    background:rgba(255,255,255,.85);
    backdrop-filter:blur(8px);
    font-size:12px;letter-spacing:.18em;
    color:#2a2a26;text-transform:uppercase;
}

.about-content{
    position:relative;
    padding:clamp(32px,4.5vw,60px) clamp(28px,4vw,52px);
    overflow-y:auto;
    color:#5a5752;
}
.about-eyebrow{
    display:block;
    font-size:11px;letter-spacing:.5em;
    color:#a07d4a;
    margin-bottom:18px;
    text-transform:uppercase;
}
.about-title{
    margin:0 0 18px;
    font-size:clamp(32px,4.4vw,46px);
    font-weight:300;line-height:1;
    letter-spacing:-0.02em;color:#1c1c1a;
}
.about-divider{
    display:block;width:48px;height:2px;
    background:linear-gradient(90deg,#a07d4a,transparent);
    margin:0 0 26px;border-radius:2px;
}
.about-content p{
    font-size:15.5px;line-height:1.75;
    margin:0 0 16px;
}
.about-content p:last-child{margin-bottom:0}

.about-close{
    position:absolute;top:16px;right:16px;
    z-index:3;
    width:44px;height:44px;
    border:1px solid rgba(0,0,0,.08);
    border-radius:50%;
    background:rgba(255,255,255,.9);
    color:#1c1c1a;
    cursor:pointer;
    display:inline-flex;align-items:center;justify-content:center;
    transition:background .25s ease, transform .35s ease, box-shadow .25s ease;
    box-shadow:0 4px 14px -6px rgba(0,0,0,.25);
}
.about-close:hover{background:#fff;transform:rotate(90deg);box-shadow:0 8px 22px -8px rgba(0,0,0,.35)}
.about-close:focus-visible{outline:2px solid #a07d4a;outline-offset:3px}

body.about-open{overflow:hidden}

@media (prefers-reduced-motion: reduce){
    .about-modal,.about-dialog,.about-media img,.about-close{transition:none !important}
    .about-modal.open .about-media img{transform:none}
}

/* ---------- Responsive ---------- */
@media(max-width:1100px){
    .imgs{width:85%;height:320px}
}

@media(max-width:900px){
    .row{grid-template-columns:1fr}
    .reverse .row::after{display:none}
    .heroimg{width:160px;height:160px}

    .h1{left:10%;top:24%;}
    .h2{left:40%;top:18%;}
    .h3{right:5%;top:25%;}
    .h4{left:12%;bottom:18%;}
    .h5{right:8%;bottom:20%;}

    .about-dialog{grid-template-columns:1fr;max-height:calc(100dvh - 32px);border-radius:24px}
    .about-media{min-height:240px;max-height:38vh}
}

@media(max-width:640px){
    .about-modal{padding:0;align-items:flex-end}
    .about-dialog{
        max-height:92dvh;
        border-radius:24px 24px 0 0;
        transform:translateY(100%);
    }
    .about-modal.open .about-dialog{transform:translateY(0)}
    .about-dialog::before{
        content:"";
        position:absolute;top:8px;left:50%;
        transform:translateX(-50%);
        width:44px;height:4px;border-radius:99px;
        background:rgba(0,0,0,.18);
        z-index:4;
    }
    .about-media{min-height:200px;max-height:32vh}
    .about-media img{object-position:center 28%}
    .about-media figcaption{left:14px;bottom:12px;font-size:11px}
    .about-content{padding:28px 22px 36px}
    .about-close{top:12px;right:12px;width:40px;height:40px}
}

@media(max-width:768px){
    .no1{margin-top:-30vh;padding-top:0}

    .title-zone{
        min-height:34vh;
        padding:80px 0 20px;
        margin-bottom:20px;
    }
    .headline{text-align:center}
    .headline span{display:block;font-size:14px;letter-spacing:6px;margin-bottom:10px}
    .headline h2{
        font-size:46px;line-height:.95;
        text-align:center;
        transform:none;opacity:1;
    }
    .bg-label{
        display:block;
        font-size:42vw;
        top:14vh;
        opacity:.18;
        margin-bottom:-28vh;
    }

    .drage-sticky .video-overlay h2{
        font-size:11vw;line-height:.95;
    }

    .video-scroll-indicator{padding:0 0 20px}
    .video-scroll-indicator .scroll-line{height:130px}
    .video-scroll-indicator .scroll-line-wrap{min-height:160px}
}


@media(max-width:700px){
    .imgs{width:100%;height:238px;gap:6px}
}


/* --- VIDEO SHARPNESS FIX --- */
video{
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.drage-sticky video,
.cinema-sticky video{
    transform: translateZ(0) scale(1.001);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    image-rendering: auto;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar{width:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(0,0,0,.18);border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.3)}

/* ---------- Scroll Reveal Animations ---------- */
.reveal-up{opacity:0;transform:translateY(40px);transition:opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1)}
.reveal-up.visible{opacity:1;transform:translateY(0)}

.reveal-left{opacity:0;transform:translateX(-30px);transition:opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1)}
.reveal-left.visible{opacity:1;transform:translateX(0)}

.reveal-right{opacity:0;transform:translateX(30px);transition:opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1)}
.reveal-right.visible{opacity:1;transform:translateX(0)}

/* ---------- Logo ---------- */
.logo{font-family:'Playfair Display',serif;font-weight:500;letter-spacing:.1em;font-size:18px;color:#222}

/* ---------- Loader Text ---------- */
.loader-inner h1{font-family:'Playfair Display',serif;font-weight:400;letter-spacing:.15em;font-size:42px;margin:10px 0;color:#222}


.cinema-cut .video-scroll-indicator{
    position:absolute;
    left:50%;
    bottom:-110px;
    transform:translateX(-50%);
    z-index:60;
}



/* FIX Cinema Indicator */
.cinema-sticky{
    overflow:visible !important;
    position:sticky;
}

.cinema-indicator{
    position:absolute !important;
    left:50%;
    top:100%;
    margin-top:0;
    bottom:auto !important;
    transform:translateX(-50%);
    z-index:100;
}

.cinema-cut{
    overflow:visible;
}


.cinema-indicator .scroll-line{
    transform-origin:top center;
}

.cinema-indicator .scroll-dot{
    will-change:transform;
}


@media(max-width:768px){
    .drage-container{
        height:155vh;
    }

    .video-scroll-indicator{
        bottom:-180px;
    }

    .no1{
        margin-top:-30vh;
    }
}


.between-drage-no1{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    height:110px;
    z-index:50;
    pointer-events:none;
}

.between-drage-no1 .scroll-line{
    height:85px;
}

.between-drage-no1 .scroll-line-wrap{
    min-height:110px;
}


.drage-sticky{
    overflow:visible !important;
}

.drage-indicator{
    position:absolute;
    left:50%;
    top:100%;
    transform:translateX(-50%);
    z-index:100;
    pointer-events:none;
}

.drage-indicator .scroll-line-wrap{
    min-height:110px;
}

.drage-indicator .scroll-line{
    height:85px;
}

@media(max-width:768px){
    .drage-indicator .scroll-line{
        height:70px;
    }
}


.drage-indicator .scroll-line-wrap{
    min-height:95px !important;
}

.drage-indicator .scroll-line{
    height:70px !important;
}
