/* ================================================== */
/* 1. FONTS */
/* ================================================== */

/* Letter Gothic - spolno prenosljiva bolezen */

/* Letter Gothic - Regular */
@font-face {
    font-family: 'LetterGothic';
    src: url('../fonts/Letter Gothic MT Std.woff2e') format('woff2'),
         url('../fonts/Letter Gothic MT Std.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Letter Gothic - Italic (Oblique) */
@font-face {
    font-family: 'LetterGothic';
    src: url('../fonts/Letter Gothic MT Std Oblique.woff2') format('woff2'),
         url('../fonts/Letter Gothic MT Std Oblique.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

/* Letter Gothic - Bold */
@font-face {
    font-family: 'LetterGothic';
    src: url('../fonts/Letter Gothic MT Std Bold.woff2') format('woff2'),
         url('../fonts/Letter Gothic MT Std Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* Letter Gothic - Bold Italic (Bold Obl) */
@font-face {
    font-family: 'LetterGothic';
    src: url('../fonts/Letter Gothic MT Std Bold Obl.woff2') format('woff2'),
         url('../fonts/Letter Gothic MT Std Bold Obl.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

/* TT Hoves kao Helvetica  */

@font-face {
    font-family: 'TTHoves';
    src: url('../fonts/TTHoves-Regular.woff2') format('woff2'),
         url('../fonts/TTHoves-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TTHoves-Medium';
    src: url('../fonts/TTHoves-Medium.woff2') format('woff2'),
         url('../fonts/TTHoves-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

/* ================================================== */
/* 2. ROOT VARIABLES */
/* ================================================== */
:root {
    --cream: #FDFAF6;
    --rdeca: #97504d;/*#BC3219; #964f4c;*/
    --other: #208102;
    --svsiva:#e5e5e5;
    --bggrun: #f8fbf6;
    --modra: #80A0CC; /*#4b6d96;*/
    --svmodra:#d1d9e8;
    --splitl:#97504d;
    --tekst:#424a44;

}

/* ================================================== */
/* 3. GLOBAL STYLES */
/* ================================================== */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: var(--bggrun);
    
    overflow: hidden;
}

body {
    font-family: 'LetterGothic', sans-serif;
}

h1, h2, .overlay-content a {
    font-family: 'TTHoves', sans-serif;
    font-weight: bold;
}

/* ================================================== */
/* 4. GRAIN TEXTURE */
/* ================================================== */
.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/5/5c/Image_gaussian_noise_example.png');
    opacity: 0.2;
    pointer-events: none;
    z-index: 9999;
    animation: noise 0.2s infinite;
}

@keyframes noise {
    0%, 100% { transform: translate(0,0); }
    10% { transform: translate(-1%,-1%); }
    25% { transform: translate(1%,1%); }
    50% { transform: translate(-1%,1%); }
}

/* ================================================== */
/* 5. SPLIT PANEL LOGIC */
/* ================================================== */
#left-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bggrun);
    z-index: 100;
    transition: all 1.1s cubic-bezier(0.8, 0, 0.2, 1);
}

#right-panel {
    position: absolute;
    top: 0px;
    right: -70vw;
    width: 70vw;
    height: 100vh;
    background-color: var(--bggrun);
    transition: all 1.1s cubic-bezier(0.8, 0, 0.2, 1);
    z-index: 90;
    padding-left: 0 !important;  /* Odstrani privzete Bootstrap paddinge */
        padding-right: 0 !important;

}

body.scrolled #left-panel { width: 30vw; background-color: var(--splitl); }
body.scrolled #right-panel { right: 0; }

@media (max-width: 1600px){
    
    #right-panel {
        right: -80vw;
        width: 80vw;
    } 

    body.scrolled #left-panel { width: 20vw; background-color: var(--splitl); }

}

/* ================================================== */
/* 6. LOGO & MOUSE */
/* ================================================== */


.logo-wrapper {
    transform: scale(3);
    transition: 1.1s cubic-bezier(0.8, 0, 0.2, 1);
}

#main-logo {
    width: 160px;
    opacity: 0;
    animation: fadeIn 1.2s forwards 0.6s;
}

body.scrolled .logo-wrapper { transform: scale(2.5); }
body.scrolled #main-logo { filter: brightness(0.2) /*invert(1)*/; }

.mouse {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 44px;
    border: 2px solid var(--rdeca);
    border-radius: 20px;
    transition: 0.5s;
    opacity: 0.7;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--rdeca);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: wheel 2s infinite;
}

body.scrolled .mouse { opacity: 0; visibility: hidden; }

@keyframes wheel { to { opacity: 0; top: 25px; } }
@keyframes fadeIn { to { opacity: 1; } }

@media (max-width: 1600px){
    body.scrolled .logo-wrapper { transform: scale(1.2); }

}

/* ================================================== */
/* 7. FIXED BACKGROUNDS WITH ZOOM EFFECT */
/* ================================================== */
.fixed-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    transform: scale(1.15);
}

.bg-layer.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1s ease, transform 6s ease-out;
}

/* ================================================== */
/* 8. SECTIONS */
/* ================================================== */
.sections-container {
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
    display: flex;
    flex-direction: column;
    will-change: transform;

}

.v-section {
    height: 100vh;
    flex-shrink: 0;
    display: flex;
     padding: 25px 70px 5px !important;
    justify-content: center;
   
    color: var(--rdeca);
    background-color: var(--bggrun);
}

.transparent-bg { background-color: transparent !important; }

.inner-content h1 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
}

.light-text {
    color: var(--bggrun);
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* ================================================== */
/* 9. HAMBURGER ICON */
/* ================================================== */
#nav-icon {
    width: 30px;
    height: 22px;
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 10001;
    cursor: pointer;
    transition: 0.5s ease-in-out;
}

#nav-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--rdeca);
    border-radius: 9px;
    transition: .25s ease-in-out;
}

#nav-icon span:nth-child(1) { top: 0; }
#nav-icon span:nth-child(2), #nav-icon span:nth-child(3) { top: 9px; }
#nav-icon span:nth-child(4) { top: 18px; }

#nav-icon.open span:nth-child(1) { top: 9px; width: 0%; left: 50%; }
#nav-icon.open span:nth-child(2) { transform: rotate(45deg); }
#nav-icon.open span:nth-child(3) { transform: rotate(-45deg); }
#nav-icon.open span:nth-child(4) { top: 9px; width: 0%; left: 50%; }
#nav-icon.open span { background: var(--bggrun); }

/* ================================================== */
/* 10. OVERLAY MENU */
/* ================================================== */
.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    background-color: var(--rdeca);
    overflow: hidden;
    transition: 0.9s cubic-bezier(0.8, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay-content a {
    font-size: 3.5rem;
    color: var(--bggrun);
    text-decoration: none;
    display: block;
    margin: 20px 0;
    font-family: 'LetterGothic', sans-serif;
    font-style: italic;
    /*text-transform: uppercase;*/
    transition: 0.3s;
}

.overlay-content a:hover {
    /*opacity: 0.7;
    transform: skewX(-5deg);*/
    text-transform: uppercase;
}

/* Razporeditev v overlayu */
.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}





.overlay-content {
    z-index: 10001; /* Vsebina mora biti nad ozadjem overlay-a */
    position: relative;
    
    
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 40px;
    opacity: 1;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.5s; /* Dodan delay */
    
}

/*.social-links:hover {
    transform: scale(1.2);
    color: rgba(253, 250, 246, 0.7); /* Nežen hover efekt 

.social-icon {
    color: var(--bggrun) !important; /* Prisilimo belo barvo 
    font-size: 2.5rem;
    pointer-events: auto; /* Omogočimo klike 
    z-index: 10002;
} */

/* Popravek za stabilnost slik */
.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease, transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.bg-layer.active {
    opacity: 1;
    transform: scale(1);
}

/* Zrnatost ne sme blokirati klikov */
.grain {
    pointer-events: none;
    z-index: 99999;
}

/* ================================================== */
/* 11. DOT NAVIGATION */
/* ================================================== */
.dot-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    opacity: 0;
    transition: 0.5s;
}

body.scrolled .dot-nav { opacity: 1; }

.dot {
    width: 10px;
    height: 10px;
    border: 2px solid var(--rdeca);
    border-radius: 50%;
    margin: 25px 0;
    cursor: pointer;
    position: relative;
}

.dot.active { background: var(--rdeca); }

.dot span {
    position: absolute;
    right: 25px;
    top: -5px;
    font-size: 11px;
    color: var(--rdeca);
    opacity: 0;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

.dot:hover span { opacity: 1; }



/*/////////////////////////////////// H A U S G E M A C H T    S E C T I O N ////////////////////////////////////////*/

.hausgemacht-section p {
    font-family: 'LetterGothic', sans-serif;
    font-style: normal;
    
    color:var(--tekst);
    
}

.hausgemacht-section hr {
   
        color: var(--tekst);}

.hausgemacht-section h1 {
    font-family: 'LetterGothic', sans-serif;
    font-weight: bold;
    font-style: normal;
        color: var(--tekst);
        font-size: 2rem;
        padding-top: 20px;
}

.hausgemacht-section h3 {
        color: var(--rdeca);
        font-family: 'TTHoves-Medium';
}

.v-section .hausgemacht-section{
    align-items: center !important;
    justify-content: center !important;
}



/* 1. Glavni vsebnik - določa FIKSNO pravokotno obliko */
.flip-container {
  perspective: 1000px;
  width: 100%;         /* Prilagodi se širini Bootstrap stolpca */
  height: 24rem;       /* Fiksna višina, ki zagotovi, da so vse kartice enako velike */
  margin-bottom: 30px; /* Razmik med vrsticami */
}

/* Učinek obračanja */
.flip-container:hover .flipper,
.flip-container.flip .flipper {
  transform: rotateY(180deg);
}

/* 2. Element, ki se obrača */
.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* 3. Sprednja in zadnja stran */
.front,
.back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 4px; /* Rahel zaobljen rob za modernejši izgled */
}

/* 4. Vsebina znotraj strani - BREZ DRSNIKOV */
.flipper-content {
  display: block;
  width: 100%;
  padding: 25px;       /* Optimalen odmik, da ima tekst dovolj prostora */
  overflow: hidden;    /* Prepreči kakršnekoli drsnike */
}

/* 5. Pozicioniranje sprednje in zadnje strani */
.front {
  z-index: 2;
  transform: rotateY(0deg);
}

.back {
  transform: rotateY(180deg);
}




/* 5. Pozicioniranje strani */
.front {
  z-index: 2;
  transform: rotateY(0deg);
  background-color: var(--bggrun);
}
.bg-primary {
    background-color: var(--bggrun)!important;
}



.back {
  transform: rotateY(180deg);
  background-color: var(--rdeca)!important;
}

/* 6. Optimizacija besedila na ZADNJI strani, da se lepo prilega kvadratu */
.back .card-text {
  font-size: 1.1rem;  /* Malenkost manjša pisava, idealna za kvadrate */
  line-height: 1.45;   /* Lep razmik med vrsticami za berljivost */
  margin: 0;
  color: var(--bggrun);
}

/* 7. Piktogrami na sprednji strani */
.card-icon {
  width: 60%;      
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
}

@media (max-width: 1600px) {

.flip-container{
   width: 100%;         /* Prilagodi se širini Bootstrap stolpca */
  height: 40vh;  
}
.back .card-text {
    font-size: 0.95rem;
}
.hausgemacht-section h1 {
    font-size: 1.6rem;
}
.hausgemacht-section h3 {
font-size: 1.4rem;
}
}

@media (max-width: 991px){
    .flipper-content{
        overflow: visible;
    }
}


/*/////////////////////////////////// L I E F E R    S E C T I O N ////////////////////////////////////////*/
.liefer-section p {
    font-family: 'LetterGothic', sans-serif;
    font-style: normal;
    font-size: 18px;
}

.liefer-section h1 {
    font-family: 'LetterGothic', sans-serif;
    font-style: bold;
        color: var(--bggrun);
        font-size: 2rem;
        padding-top: 20px;
}

.liefer-section h3{
    color: var(--text);
    font-family: 'LetterGothic', sans-serif;
    font-style: normal;
    font-size: 2rem;

}



.liefer-section hr{
    color: var(--bggrun);
}


/* ================================================== */
/* 12. PREMIUM BUTTON */
/* ================================================== */

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    
    color: var(--modra);
    border: 2px solid var(--modra);
    
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
}
.btn-whatsapp i { 
    font-size: 1.6rem; 
    color: var(--modra);
}

.text-container i:hover { 
    
    color: var(--bggrun);
}

.btn-whatsapp:hover { 
    transform: scale(1.05); 
    color: var(--bggrun);
    border: 2px solid var(--bggrun);
}



.btn-premium {
    font-family: 'TTHoves', sans-serif;
    font-weight: bold;
    text-decoration: none;
    
    
    
    padding: 10px 15px;
    
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Hover efekt - barve se zamenjajo */
.btn-premium:hover {
    
}

/* Če je gumb na temni podlagi (npr. v sekcijah z light-text) */
.light-text + .btn-premium {
    color: var(--modra);
    border-color: var(--modra);
}

.light-text + .btn-premium:hover {
    color: var(--rdeca);
    background-color: var(--modra);
}

/* ================================================== */


.cards_landscape_wrap-2{
    padding-top: 0px !important; 
  padding-bottom: 10px;
   margin-top: 0 !important;
}


 /*----  Main Style  ----*/
#cards_landscape_wrap-2{
  text-align: center;
  /*background: var(--text);*/

}
#cards_landscape_wrap-2 .container{
 
 

}
#cards_landscape_wrap-2 a{
  text-decoration: none;
  outline: none;
}
#cards_landscape_wrap-2 .card-flyer {
  border-radius: 10px;
}

#cards_landscape_wrap-2 .card-flyer .text-box{
  text-align: left;
}
#cards_landscape_wrap-2 .card-flyer .text-box .text-container{
  padding: 25px;
}

#cards_landscape_wrap-2 .card-flyer{
background: linear-gradient(
        135deg,
        rgba(66, 74, 68, 1) 50%,
        rgba(151, 80, 77, 1) 75%,
        rgba(70, 7, 11, 1) 99%
    );
   
    background-position: 0% 0%;
    background-size: 300% 300%;
  margin-top: 50px;
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  -ms-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
  box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.40);
}


#cards_landscape_wrap-2 .card-flyer:hover{
  background-position: 100% 100%;
  box-shadow: 0px 15px 26px rgba(0, 0, 0, 0.50);
  -webkit-transition: all 0.2s ease-in;
  -moz-transition: all 0.2s ease-in;
  -ms-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
  margin-top: 50px;
}


#cards_landscape_wrap-2 .card-flyer .text-box p{
  margin-top: 10px;
  margin-bottom: 0px;
 
  font-family: 'LetterGothic', sans-serif;
    font-style: italic;
    font-weight: normal;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--bggrun);
  text-align: left;
}
#cards_landscape_wrap-2 .card-flyer .text-box h6{
  margin-top: 0px;
  margin-bottom: 4px; 
  font-size: 1.5em;
  
   font-family: 'TTHoves-Medium', sans-serif;

    font-weight: bold;
text-align: left;
  color:var(--modra);
}



 .card-flyer .text-box  h4{
  margin-top: 0px;
  margin-bottom: 4px; 
  font-size: 18px;
  font-weight: bold;
  
  font-family: 'LetterGothic', sans-serif;
  letter-spacing: 1px;
  color:var(--modra);
}

/*/////////////////////////////////// O M A    S E C T I O N ////////////////////////////////////////*/
.oma-section h1 {
    font-family: 'LetterGothic', sans-serif;
    font-style: bold;
        color: var(--bggrun);
        font-size: 2rem;
        text-align: right;
}
.oma-section hr{
    color: var(--bggrun);
}

.oma-section p {
    font-family: 'LetterGothic', sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 1.2em;
    color: black;
    text-align: right;
}
.oma-section 
{
align-items: center;
    background-color: var(--modra);
}



/*/////////////////////////////////// G E S C H I C H T E    S E C T I O N ////////////////////////////////////////*/
.geschichte-section p {
    font-family: 'LetterGothic', sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 1.2em;
    color: var(--rdeca);
}

.geschichte-section h1 {
        color: var(--rdeca);
        font-family: 'LetterGothic', sans-serif;
    font-style: bold;
    padding-top: 10px;
}

.v-section .geschichte-section {
    align-items:start;
    justify-content: start;
    margin-top: 50px;
    padding: 25px 10px;
}
.geschichte-section .geschichte{
    padding: 20px;
    background-color: var(--bggrun);
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.40);
    

}

/************************************************************************************************************/
/* ================================================== */
/* MOBILE OPTIMIZATION (Pod 991px) */
/* ================================================== */
@media (max-width: 991px) {
    html, body {
        overflow: hidden !important;
        height: 100% !important;
        width: 100%;
        position: fixed;
        touch-action: none;
        background-color: var(--bggrun);
    }

    /* VSTOPNA STRAN (INTRO) */
    body::before {
        content: "";
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background-color: var(--bggrun);
        background-image: url('../image/logo.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 60% auto;
        z-index: 2000;
        transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
        pointer-events: none; 
    }

    body.scrolled::before {
        transform: translateY(-100%);
    }

    /* SKRIVANJE DESKTOP ELEMENTOV */
    #left-panel, .dot-nav, .bg-layers, .fixed-bg-container, .mouse {
        display: none !important;
    }

    /* STRUKTURA VSEBINE */
    #right-panel {
        width: 100% !important;
        height: 100vh !important;
        position: relative;
        z-index: 10;
        transform: translateY(100%);
        transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }

    body.scrolled #right-panel {
        transform: translateY(0);
    }

    .sections-container {
        display: flex !important;
        flex-direction: column;
        height: 100vh;
        width: 100%;
        will-change: transform;

    }

    /* SEKCIJE */
    .v-section {
       
        box-sizing: border-box !important;
        width: 100vw !important;
        height: 100vh !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        overflow: visible !important;
        background-color: var(--bggrun); !important;
    }

    .v-section h1 {
        font-size: 2rem !important;
        word-wrap: break-word !important;
        width: 100% !important;
        margin: 0 0 15px 0 !important;
        text-align: left;
    }

    .v-section p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        text-align: left;
    }

    .inner-content {
        width: 100% !important;
        z-index: 2;
        position: relative;
        
    }

    /* OZADJA SEKCIJ */
    /* Onemogočimo problematičen ::after */
.v-section::after { display: none !important; }

/* SEKCIJE S SLIKAMI - Uporabimo gradient za 'opacity' efekt */
.liefer-section { 
    background: linear-gradient(rgba(253, 250, 245, 0.4), rgba(253, 250, 245, 0.7)), 
                url('../image/img6.jpg') no-repeat center/cover !important;
}

.geschichte-section { 
    background: linear-gradient(rgba(253, 250, 245, 0.4), rgba(253, 250, 245, 0.7)), 
                url('../image/bevk_mbl.png') no-repeat center/cover !important;
}

/* SEKCIJE BREZ SLIK - Zrnata krem */
.hausgemacht-section,
.oma-section {
    background: linear-gradient(rgba(253, 250, 245, 0.5), rgba(253, 250, 245, 0.5)), 
                url("https://www.transparenttextures.com/patterns/natural-paper.png"),
                var(--bggrun) !important;
}

    /* NAVIGACIJA */
    #nav-icon { z-index: 3000; display: block !important; position: fixed; top: 20px; right: 20px; }
    #nav-icon span { background: var(--rdeca); !important; }
    #nav-icon.open span { background: var(--bggrun); !important; }

    .overlay {
        background-color: var(--rdeca);
        z-index: 2500;
        position: fixed;
        width: 0; height: 100%;
        top: 0; left: 0;
        transition: 0.5s;
        overflow: hidden;
    }

    .overlay-content a {
        font-size: 1.8rem !important;
        color: var(--bggrun); !important;
        display: block;
        padding: 10px 40px;
        text-decoration: none;
    }
} /* KONEC MEDIA QUERY */