body {     
    font-family: Geist, sans-serif; 
    color: #666d63;        
}

h1, h2, h3, h4, h5 {
    color: #C8BBAB;
}

h1 {
    font-size: 5.4rem;
    line-height: 98%;
    font-weight: 500;
    letter-spacing: -.02em;
    color: #ffffff;
}

h2 {
    font-size: 3rem;
    line-height: 105%;
    font-weight: 400;
    margin-bottom: 4rem;
}

h3 {
    font-size: 2.15rem;
    line-height: 105%;
    font-weight: 400;
    margin-bottom: 3rem;

}

h4 {
    font-size: 1.2rem;
    line-height: 120%;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #a79988;
}

li.nav-item {
    padding-bottom: 1rem;
}

blockquote {
    font-size: 2rem;
    line-height: 125%;
    font-weight: 300;
    margin-bottom: 6rem;
}

blockquote span {
    color: #3a4236;
    font-weight: 400;
}


.odsadenie-velke {
    margin-top: 14rem;
    margin-bottom: 14rem;
}

.odsadenie-male {
    margin-bottom: 8em;
    margin-top: 5em;
}

.greenBg {
    background: #1f221a url('../img/montis_green_bg.webp') no-repeat center center;
    background-size: cover;
    color: #c8c9c6;
    padding-top: 10em;
    padding-bottom: 9em;
}

.greenBg blockquote {
    font-size: 1.6rem;
}

.greenBg blockquote span {
    color: #ffffff;
    font-size: 2rem;
}


.shadow-lg {
    box-shadow: 28px 28px 56px rgba(0, 0, 0, .16) !important;
}

#o_projekte {
    background: url('../img/montis_kamzik.png') no-repeat left bottom;
    background-size: 18% auto;
}
#financovanie ul {
    padding-left: 1.2em;
}
#financovanie li {
    padding-left: .6em;
}
#financovanie li::marker {
 color: #C8BBAB;
}


/* Kontajner */
.schedule-section {
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.construction-progress {
    position: relative;
    margin-top: 30px;
    padding: 0 15px;
}

/* Popisky dátumov */
.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-family: sans-serif;
    font-size: 14px;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
}

.progress-labels small {
    display: block;
    font-weight: 400;
    color: #999;
    margin-top: 0;
}

/* Pozadie baru (sivá čiara) */
.progress-bar-bg {
    width: 100%;
    height: 8px; /* Hrúbka čiary */
    background-color: #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: visible; /* Aby mohla bublinka trčať von */
}

/* Výplň (Farebná časť) */
.progress-fill {
    width: 0%; /* JS to dopočíta */
    height: 100%;
    background-color: #5f6e3b; /* Tu daj farbu Montis (napr. zlatú alebo tmavú) */
    border-radius: 4px;
    position: relative;
}

/* Bublinka s číslom */
.progress-tooltip {
    position: absolute;
    right: -20px; /* Vycentrovanie na koniec čiary */
    top: -40px;
    background-color: #5f6e3b; /* Rovnaká farba ako bar */
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

/* Šípka dole na bublinke */
.progress-tooltip::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #5f6e3b transparent transparent transparent;
}



/* --- COOKIE BANNER: FLOATING CARD --- */
.cookie-banner {
    position: fixed;
    right: 30px;         /* Odsadenie z prava */
    bottom: 30px;       /* Odsadenie zdola */
    width: 400px;       /* Pevná šírka (cca 1/3 bežného notebooku) */
    max-width: 90%;     /* Poistka pre malé displeje */
    
    background-color: #1a1a1a; /* Tmavé luxusné pozadie */
    color: #fff;
    
    padding: 25px;
    border-radius: 12px; /* Zaoblené rohy */
    box-shadow: 0 10px 40px rgba(0,0,0,0.4); /* Výrazný tieň pre "plávajúci" efekt */
    z-index: 9999;
    
    /* Animácia príchodu */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95); /* Jemne zmenšené a posunuté dole */
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Trieda, ktorá banner zviditeľní (pridáva ju Javascript) */
.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Vnútorné rozloženie */
.cookie-content {
    display: flex;
    flex-direction: column; /* Text a tlačidlá pod seba */
    gap: 15px;
}

.cookie-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.cookie-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}

.cookie-text a {
    color: #fff;
    text-decoration: underline;
}

/* Tlačidlá */
.cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Odmietnuť je užšie, Povoliť širšie */
    gap: 10px;
    margin-top: 5px;
}

.btn-cookie {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-align: center;
}

/* Tlačidlo Povoliť (Biele) */
.btn-fill {
    background-color: #fff;
    color: #000;
}
.btn-fill:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px); /* Jemný pohyb pri nabehnutí */
}

/* Tlačidlo Odmietnuť (Priehľadné) */
.btn-outline {
    background-color: transparent;
    border-color: #444;
    color: #aaa;
}
.btn-outline:hover {
    border-color: #888;
    color: #fff;
}


.btn {
    padding:.8rem 1.6rem !important;
    border: none !important;
}

.hero-1 {
    background: url('../img/montis_hero_1.webp') no-repeat center center;
    background-size: cover;
    min-height: 400px;
}

.hero-2 {
    background: url('../img/montis_hero_2.webp') no-repeat center center;
    background-size: cover;
    min-height: 400px;
}

.text-bg-dark {
    background-color: #c8bbab !important;
}

.btn-dark {
    background-color: #5f6e3b !important;
    color: #d5dac8;
    border: none !important;
}

.dark-green {
    background-color: #474a3f;
    color: #b5b7b2;
    background: url('../img/montis_kontakt.jpg') no-repeat center center;
    background-size: cover;
    margin-top: 10rem;
    margin-bottom: 1.4rem;
}

#ochrana-sukromia h1 {
    color: #5f6e3b;
    font-size: 4rem;
}
#ochrana-sukromia h3 {
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}


a {
    color: #88a04f;
    text-decoration: none;
}

p {
    margin-bottom: 1.2em;
    line-height: 160%;
}

.bg-body-tertiary {
    background: transparent !important;
}

.navbar-toggler {
    background-color: #ffffff;
    border-color:#cccccc;
    padding: .6rem .8rem;
    margin-top: .6em;
    margin-right: .6em;
}

.form-control:focus, 
.form-select:focus, 
.btn:focus, 
.btn:active:focus {
    box-shadow: none !important;
    outline: 0; 
}



/* Obal pre parallax obrázok - musí orezať to, čo pretrčalo */
.parallax-wrapper {
    overflow: hidden;
    position: relative;
    /* Nastav si výšku podľa potreby, alebo nechaj automatickú podľa obsahu */
    height: 480px; 
    width: 100%;
}

/* Samotný obrázok - musí byť vyšší ako obal, aby sa mal kam hýbať */
.parallax-img {
    width: 100%;
    height: 130%; /* 130% výšky obalu = priestor na pohyb */
    object-fit: cover;
    position: absolute;
    top: -15%; /* Vycentrovanie začiatku */
    left: 0;
    z-index: 0;
}



/* Pridaj toto do svojho štýlového súboru */
.fade-scroll {
    visibility: hidden; /* Prvok tam je, ale nevidno ho */
    opacity: 0;
}



/* 1. Hlavný obal - musí mať fixnú výšku a skryť pretrčajúci obsah */
.ken-burns-hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Celá výška obrazovky */
    overflow: hidden; /* DÔLEŽITÉ: Oreže zväčšený obrázok */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Samotný obrázok a animácia */
.ken-burns-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Aby pokryl celú plochu bez deformácie */
    z-index: -2;
    
    /* Nastavenie animácie: */
    /* Názov | Trvanie | Priebeh | Nekonečno | Smer (tam a späť) */
    animation: kenBurns 20s ease-in-out infinite alternate;
    
    /* Hardvérová akcelerácia pre plynulosť */
    will-change: transform;
}

/* 3. Definícia pohybu (Keyframes) */
@keyframes kenBurns {
    0% {
        transform: scale(1); /* Začiatok: Originálna veľkosť */
        transform-origin: center center;
    }
    100% {
        transform: scale(1.2); /* Koniec: Zväčšenie o 15% */
        transform-origin: center center; /* Zoomuje do stredu */
    }
}

/* 4. Tmavá vrstva (Overlay) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.08); /* 50% stmavnutie */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.06) 0%,   /* Hore: 12% opacity */
        rgba(0, 0, 0, 0.20) 56%,
        rgba(0, 0, 0, 0.32) 70%,  /* Zlom: 20% opacity (cca v 2/3 zhora = začiatok spodnej 1/3) */
        rgba(0, 0, 0, 0.42) 100%  /* Spodok: 48% opacity */
    );
    z-index: -1;
}

/* 5. Text */
.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding-top: 0.6em;
    padding-bottom: 7.5em;
}



/* --- BACK TO TOP TLAČIDLO --- */
#backToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998; 
  border: none;
  outline: none;
  background-color: #5f6e3b; 
  color: white;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  /* Animujeme len viditeľnosť a priehľadnosť */
  transition: opacity 0.4s ease, visibility 0.4s ease, background-color 0.3s, transform 0.2s;
  opacity: 0;
  visibility: hidden;
}

#backToTopBtn.show {
  /* display: block; - TOTO SME ODSTRÁNILI */
  opacity: 1;
  visibility: visible;
}

#backToTopBtn:hover {
  background-color: #4a572c; /* Tmavší odtieň po prejdení myšou */
  transform: translateY(-3px); /* Jemné nadvihnutie pre lepší pocit z kliku */
}

#backToTopBtn svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: auto;
}




/* tablet */
@media (max-width: 1180px) { 

}

@media (max-width: 1024px) { 
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
}

.odsadenie-velke {
    margin-top: 10rem;
    margin-bottom: 10rem;
}

.hero-content {
    min-height: 700px;
    padding-bottom: 4rem;
}
.navbar-toggler {
    margin-top: .6em;
    margin-right: 2em;
}
.dark-green {

    padding-top: 2em;
}
}


/* Úprava veľkosti a pozície pre mobily */
@media (max-width: 768px) {
  #backToTopBtn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
}
#backToTopBtn svg {
    width: 20px;
    height: 20px;
}
}

/* mobil */
@media (max-width: 700px) { 

    body {
        overflow-x: hidden;
    }
    h1 {
        font-size: 3.6rem;
    }
    h2 {
        font-size: 2.4rem;
    }
    h3 {
        font-size: 1.8rem;
    }
    h4 {
        font-size: 1.2rem;
    }

}

@media (max-width: 500px) { 


    h1 {
        font-size: 3.2rem;
    }
    h2 {
        font-size: 2.4rem;
    }
    h3 {
        font-size: 1.8rem;
    }
    h4 {
        font-size: 1.2rem;
    }
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        
    }

    .ken-burns-hero {
        padding-bottom: 1em;
        height:85vh;
    }

    .odsadenie-velke {
        margin-top: 6rem;
        margin-bottom: 6rem;
    }

    .odsadenie-male {
        margin-top: 2rem;
        margin-bottom: 3rem;
    }


    .parallax-wrapper {
        height: 230px;
    }
    #o_projekte {
        background: none;
    }

    blockquote {
        font-size: 1.4rem;
    }

    .greenBg blockquote {
        font-size: 1.2rem;
    }

    .greenBg blockquote span {
        color: #ffffff;
        font-size: 1.4rem;
    }

    .navbar-toggler {
        margin-top: .6em;
        margin-right: 1em;
    }
    .shadow-lg {
        box-shadow: 16px 16px 28px rgba(0, 0, 0, .16) !important;
    }
    .dark-green {

        padding-top: 2em;
    }

}

/* --- MOBILNÁ VERZIA --- */
@media (max-width: 768px) {
    .cookie-banner {
        left: 50%;
        transform: translateX(-50%) translateY(20px); /* Centrovanie */
        bottom: 20px;
        width: 92%; /* Takmer na celú šírku */
        padding: 20px;
    }
    
    .cookie-banner.show {
        transform: translateX(-50%) translateY(0);
    }

    .cookie-buttons {
        grid-template-columns: 1fr 1fr; /* Tlačidlá rovnako široké */
    }

    .ken-burns-img {
        /* Zaistí, že sa obrázok nedeformuje */
        object-fit: cover; 

        /* 1. hodnota je X (vodorovne), 2. hodnota je Y (zvisle) */
        /* 80% znamená: ukáž mi časť, ktorá je na 80% šírky obrázka */
        object-position: 28% center !important;
    }


}
