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

/* Letter Gothic - Regular */
@font-face {
    font-family: 'LetterGothic';
    src: url('../fonts/Letter Gothic MT Std.woff2') 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;
    --other: #208102;
    --svsiva: #e5e5e5;
    --bggrun: #f8fbf6;
    --modra: #80A0CC;
    --svmodra: #d1d9e8;
    --splitl: #97504d;
    --tekst: #424a44;
}

/* ================================================== */
/* 3. GLOBAL STYLES */
/* ================================================== */
html, body {
    margin: 0; 
    padding: 0; 
    width: 100%;
    background-color: var(--bggrun);
    font-family: 'LetterGothic', sans-serif;
    overflow: hidden; /* JS bo upravljal s prehajanjem strani */
    scroll-behavior: smooth;
}
h1, h2, .overlay-content a { font-family: 'TTHoves', sans-serif; font-weight: bold; }

.main-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;   
}

/* Grain tekstura */
.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.15; pointer-events: none; z-index: 99999; animation: noise 0.2s infinite;
}
@keyframes noise { 0%, 100% { transform: translate(0,0); } 10% { transform: translate(-1%,-1%); } }

/* ================================================== */
/* 4. POPOLN SPLIT-PANEL SISTEM (Desktop nad 992px) */
/* ================================================== */
@media (min-width: 1025px) {
    #left-panel {
        position: absolute; 
        top: 0; left: 0;
        width: 100vw; 
        height: 100vh; /* Na začetku čez CEL ekran */
        background-color: var(--bggrun); 
        z-index: 100;
        display: flex; 
        flex-direction: row; 
        align-items: center; 
        justify-content: center;
        transition: width 1.1s cubic-bezier(0.8, 0, 0.2, 1), background-color 1.1s ease;
    }
    #right-panel {
        position: absolute; top: 0; 
        right: -70vw; /* Na začetku SKRIT na desni strani */
        width: 70vw; 
        height: 100vh; 
        z-index: 90;
        background-color: var(--bggrun);
        transition: right 1.1s cubic-bezier(0.8, 0, 0.2, 1);
    }

    /* STANJE KO JE STRAN SCROLLANA (Uporabnik gre dol) */
    body.scrolled #left-panel {
        width: 30vw; /* Elegantno se skrči na levo tretjino */
        background-color: var(--rdeca);
    }
    body.scrolled #right-panel {
        right: 0; /* Prileti iz desne strani na preostalih 70% ekrana */
    }

    /* Logotip in animacije */
    .logo-wrapper { 
        width: 30vw;
        transition: 1.1s cubic-bezier(0.8, 0, 0.2, 1); 
        
    }

    .logo-wrapper img {
        height: auto;
        width: 100%;
    }


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


    
    body.scrolled .logo-wrapper {
        width:18vw;
       
    }


    body.scrolled #main-logo { filter: brightness(.2) /*invert(0)*/; } /* Na rdečem ozadju postane bel */
/* POPRAVLJENA IKONA MIŠKE */
    .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; z-index: 101;
    }
    .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; }

    /* Fiksna ozadja na desni strani */
    .fixed-bg-container { position: fixed; top: 0; left: 30vw; width: 70vw; height: 100vh; z-index: -1; background: #000; pointer-events: none; }
    .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); }

    .v-section { 
          min-height: 100vh; 
        display: flex; 
        align-items: center; 
        padding: 40px 70px !important; 
    }
}

/* ================================================== */
/* 4.1 POPOLN SPLIT-PANEL SISTEM (Desktop pod 1600px) */
/* ================================================== */
    @media (max-width: 1600px) {
        #right-panel { 
           
            width: 85vw; 
            right: -85vw;
         
        }


        body.scrolled #left-panel { 
            width: 15vw; }

        body.scrolled #right-panel { 
            right: 0;             
        }
        
        .fixed-bg-container {
            left: 15vw !important; 
            width: 85vw !important; }

           /* Logotip in animacije */
        body.scrolled .logo-wrapper { 
            width: 10vw; 
            padding-bottom: 70vh;
           
         
        }

                /* --- NOVO: Popravek za overflow pri dveh specifičnih sekcijah --- */
            #HAUSGEMACHT.v-section, 
            #LIEFERUNG.v-section, 
            #OMA.v-section,
            #GESCHICHTE.v-section {
                height: auto !important;
                min-height: 100vh;
                overflow: visible; !important; /* Overflow postane viden */
            }

            /* Dovolimo, da se vsebnik sekcij prilagaja višini */
            .sections-container {
                height: auto !important;
            }
      
    }

.sections-container { 
    height: 100%; 
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); 
    display: flex; 
    flex-direction: column; 
    will-change: transform; 
}

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

.inner-content h1 { 
    font-family: 'LetterGothic', sans-serif;
    font-weight: bold;
    font-style: normal;
    font-size: 2rem; 
    text-transform: uppercase;

}

.inner-content h3 {
    font-family: 'TTHoves-Medium'; 
    font-weight: bold;
}

.inner-content h4 {
    font-family: 'LetterGothic', sans-serif;
    font-weight: bold;
}

.inner-content hr {
    border: 1px dotted;
}

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

@media (max-width: 1600px){
    .inner-content h1 {
    font-size: 1.4rem !important;
    }
}

/* ================================================== */
/* 5. MENU & NAVIGACIJSKE PIKE */
/* ================================================== */
/* #nav-icon { width: 30px; height: 22px; position: fixed; top: 40px; right: 40px; z-index: 10001; cursor: pointer; }*/
/*#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); }*/


/* ================================================== */
/* 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); }

.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 { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; position: relative; z-index: 10001; }

.overlay-content a { 
    font-size: 3rem; 
    font-family: 'LetterGothic';
    font-weight: normal;
    color: var(--bggrun); 
    text-decoration: none; 
    display: block; margin: 20px 0; 
    font-style: italic; 
    transition: 0.3s; 
}

.overlay-content a:hover { 
    text-transform: uppercase; 
    font-weight: bold;
}

.social-links { margin-top: 40px; display: flex; gap: 40px; }
.social-icon { color: var(--bggrun); font-size: 2rem; }

.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; white-space: nowrap; }
.dot:hover span { opacity: 1; }

/* ======================================================================================================================================================================================================== */
/* 6. /////////////////////////////////////////////////////////////////////////////// H A U S G E M A C H T   S E C T I O N \////////////////////////////////////////////////////////////////////////////// */
/* ======================================================================================================================================================================================================== */
.hausgemacht-section { 
   background-color: var(--bggrun); 
}

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

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

.hausgemacht-section h3 { 
    color: var(--rdeca); 
    
}
/* 5.1 VSEBINA IN ANIMACIJE KARTIC */

/* 1. Glavni vsebnik kartice - 3D prostor */
.flip-container {
  perspective: 1000px;
   width: 100%;         /* Prilagodi se širini Bootstrap stolpca (col-md-4) */
  height: 24rem;       /* Višina kartice ostane fiksna */
  margin-bottom: 30px; /* Razmik pod kartico, ko se na mobitela zložijo ena pod drugo */
}

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

/* 2. Element, ki izvaja obrat */
.flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);/* Gladkejši prehod */
  transform-style: preserve-3d;
}

/* 3. Sprednja in zadnja stran */ /* 3. Skupne lastnosti za sprednjo in zadnjo stran kartice */
.front, .back { 
  position: absolute; 
  inset: 0; 
  backface-visibility: hidden;
  display: flex; 
  /* Centriranje vsebine (Flexbox) */ 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  border-radius: 4px;
}

/* Vsebinski blok */
.flipper-content { 
  width: 100%; 
  /* Ko je kartica ozka, bo padding 10px, ko je širša, gre do 25px */
  padding: clamp(5px, 5vw, 25px); /* Notranji odmik, da tekst ne tolče ob robove */
  overflow: hidden; 
}

/* 4. Barve (uporaba tvojih spremenljivk) */
.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; 
}

/* 5. Ikone in Besedilo */
.card-icon { 
  width: 60%; /* Ker so okrogle, se bodo lepo prilagodile širini */
  height: auto; 
  display: block; 
  margin: 0 auto 15px auto; 
}

.back .card-text { 
  margin: 0; 
  color: var(--bggrun); /* Barva besedila na zadnji strani */
 /* 1.3 je minimalni razmik, 1.6 je maksimalni */
  line-height: clamp(1.25, 1vw, 1.4);
  font-size: clamp(0.9rem, 0.9vw, 1.2rem);
}

.flipper-content h3 {
  margin-bottom: clamp(10px, 3vw, 20px); /* Prilagodljiv razmik pod naslovom */
  color: var(--rdeca);
  /* Prilagodljiva velikost pisave: 
     - 0.95rem (min) 
     - 1.3vw (tekoče prilagajanje) 
     - 1.5rem (maksimalno) */
  font-size: clamp(1.2rem, 1vw, 1.6rem);}



/* ======================================================================================================================================================================================================== */
/* 6. /////////////////////////////////////////////////////////////////////////////// L I E F E R   S E C T I O N \////////////////////////////////////////////////////////////////////////////// */
/* ======================================================================================================================================================================================================== */

.liefer-section h1 { 
    color: var(--bggrun); 
    text-shadow: 2px 4px 15px rgba(0,0,0,0.9);
     }

.liefer-section hr { color: var(--bggrun); }
 
.liefer-section {
    align-items: start;
     
    justify-content: center; 
}

.btn-whatsapp { display: inline-flex; align-items: center; align-content: center; gap: 5px; color: var(--modra); border: 2px solid var(--modra); border-radius: 50px; text-decoration: none; font-weight: bold; padding: 6px 10px; transition: 0.3s; }
.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;
}*/

#cards_landscape_wrap-2 .card-flyer { 
    border-radius: 10px; 
    background: linear-gradient(135deg, rgba(66, 74, 68, 1) 50%, rgba(151, 80, 77, 1) 75%, rgba(70, 7, 11, 1) 99%); 
    background-size: 300% 300%; 
    transition: all 0.2s ease-in; 
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.40); 
    margin-top: 20px;
    
    /* Ključno za enako velikost */
    display: flex;
    flex-direction: column;
    min-height: 20rem; /* Tvoja minimalna višina */
    height: 100%;      /* Da v vrsti zasedejo enako višino */
}

#cards_landscape_wrap-2 .card-flyer:hover { 
    background-position: 100% 100%; 
    box-shadow: 0px 15px 26px rgba(0, 0, 0, 0.80); 
}

/* Tekstovni vsebnik, ki zasede ves prostor */
#cards_landscape_wrap-2 .text-box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#cards_landscape_wrap-2 .text-container { 
    
    padding: clamp(10px, 2vw, 25px); /* Prilagodljiv padding */
    text-align: left; 
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Prilagoditev tipografije s clamp */
#cards_landscape_wrap-2 .card-flyer .text-box p { 
    font-style: italic; 
    color: var(--bggrun); /* Svetel tekst za berljivost na temnem gradientu */
    line-height: clamp(1.4, 2vw, 1.6); 
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    margin-bottom: auto; /* Potisne gumb na dno, če je vsebine manj */
}

#cards_landscape_wrap-2 .card-flyer .text-box h3 {
    color: var(--bggrun); 
    font-weight: bold;
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    margin-bottom: 0.5rem;
}

#cards_landscape_wrap-2 .card-flyer .text-box h4 { 
    color: var(--modra); 
    font-weight: bold; 
    font-size: clamp(1rem, 1.2vw, 1.3rem);
    margin-bottom: 1rem;
}
.text-end {
    padding: 0px;
    border: 0px;
}




@media (max-width: 1600px) {
   
  
   .text-end  a {
        font-size: 0.8rem ;
    }

  
    .btn-whatsapp a{
        padding: 4px 8px;
    }
}

/* ======================================================================================================================================================================================================== */
/* 6. ////////////////////////////////////////////////////////////////////////////////// O M A   S E C T I O N ////////////////////////////////////////////////////////////////////////////////// */
/* ======================================================================================================================================================================================================== */

.oma-section p {

font-weight: bold;
}

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

}

.oma-section {
    background-color: var(--modra);

}

.oma-section h1, .oma-section p { color: var(--tekst); text-align: right; font-weight:bold; }



@media (min-width: 1600px){
    .oma-section p {

    font-size: 1.2rem;
    }

}


/* ======================================================================================================================================================================================================== */
/* 6. /////////////////////////////////////////////////////////////////////////////// G E S C H I C H T E   S E C T I O N \////////////////////////////////////////////////////////////////////////////// */
/* ======================================================================================================================================================================================================== */

.geschichte-section {
    align-items: start;
    justify-content: start;
    
}


.geschichte-section p {

font-weight: bold;
}

.geschichte-section h1, .geschichte-section p { color: var(--rdeca); }
.geschichte-section .geschichte { padding: 30px; background-color: var(--bggrun); box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.40); }


@media (min-width: 1600px){
    .geschichte-section p {

    font-size: 1.2rem;
    }

}

/* ======================================================================================================================================================================================================== */
/* 6. /////////////////////////////////////////////////////////////////////////////// F O O T E R  ////////////////////////////////////////////////////////////////////////////// */
/* ======================================================================================================================================================================================================== */



/* ================================================== */
/* 6. MOBILNA POPOLNA PRILAGODITEV (Pod 991px) */
/* ================================================== */
@media (max-width: 1024px) {

       html, body {
        overflow: visible !important;
        overflow-x: hidden !important;
        overflow-y: auto !important; /* Ponovno omogoči prstno scrollanje navzdol */
        height: auto !important;
    }
    
    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%); }

    #left-panel, .dot-nav, .mouse, .fixed-bg-container { display: none !important; }
    
    #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); }

    /*.v-section { min-height: 100vh; height: 100vh !important; padding: 60px 25px !important; display: flex; flex-direction: column; justify-content: center; }*/

       .v-section {
        height: auto !important;
        min-height: 100 !important;
        padding: 50px 20px !important; /* Udoben odmik za prste na telefonu */
        display: block !important;
    }
    .v-section h1, .v-section p, .oma-section h1, .oma-section p { text-align: left; }

    /*.liefer-section { background: linear-gradient(rgba(253, 250, 245, 0.5), 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.5), rgba(253, 250, 245, 0.7)), url('../image/bevk.png') no-repeat center/cover !important; }
    .hausgemacht-section { background: linear-gradient(rgba(248, 251, 246, 0.5), rgba(248, 251, 246, 0.5)), url("https://www.transparenttextures.com/patterns/natural-paper.png"), var(--bggrun) !important; }
    .oma-section { background: linear-gradient(rgba(128, 160, 204, 0.5), rgba(128, 160, 204, 0.5)), url("https://www.transparenttextures.com/patterns/natural-paper.png"), var(--modra) !important; }*/

    .liefer-section { background-image: linear-gradient(var(--bggrun) , var(--tekst) );}
    .geschichte-section { background-color:  var(--rdeca) !important;}
    .hausgemacht-section { background-color: var(--bggrun) !important; }
    .oma-section { background-color: var(--modra) !important; }

    .liefer-section h1, .liefer-section hr { 
    color: var(--tekst); 
    text-shadow: 2px 4px 15px rgba(0,0,0,0.0);
     }

    #nav-icon { top: 20px; right: 20px; z-index: 3000; }
    .overlay-content a { font-size: 2rem !important; }

    /* Prisilna vidnost X gumba v odprtem stanju na vseh mobilnih napravah */
    #nav-icon.open {
        z-index: 200000 !important; /* Zagotovi, da skoči popolnoma na vrh nad vse overlaye */
    }

    #nav-icon.open span {
        background: var(--bggrun) !important; /* Prisili črtice, da postanejo krem barve na rdečem ozadju */
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.2); /* Neobvezno: doda rahel senco za še boljši kontrast */
    }

   
    
}

/* ================================================== */
/* GLOBAL ANIMATIONS */
/* ================================================== */
@keyframes wheel { 
    0% { opacity: 1; top: 8px; }
    50% { opacity: 1; top: 18px; }
    100% { opacity: 0; top: 28px; } 
}
@keyframes fadeIn { to { opacity: 1; } }

