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

/* Letter Gothic - spolno prenosljiva bolezen */

/* 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';
    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;
    --red: #BC3219;
    --other: #026a81;
    --svsiva:#e5e5e5;
}

/* ================================================== */
/* 3. GLOBAL STYLES */
/* ================================================== */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: var(--cream);
    
    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(--cream);
    z-index: 100;
    transition: all 1.1s cubic-bezier(0.8, 0, 0.2, 1);
}

#right-panel {
    position: absolute;
    top: 0;
    right: -70vw;
    width: 70vw;
    height: 100vh;
    background-color: var(--cream);
    transition: all 1.1s cubic-bezier(0.8, 0, 0.2, 1);
    z-index: 90;
}

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

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

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

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--red);
    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; } }

/* ================================================== */
/* 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;
    align-items: center;
    justify-content: center;
    padding: 0 12%;
    color: var(--red);
    background-color: var(--cream);
}

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

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

.light-text {
    color: var(--cream);
    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(--red);
    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(--cream); }

/* ================================================== */
/* 10. OVERLAY MENU */
/* ================================================== */
.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    background-color: var(--red);
    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(--cream);
    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(--cream) !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(--red);
    border-radius: 50%;
    margin: 25px 0;
    cursor: pointer;
    position: relative;
}

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

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

.dot:hover span { opacity: 1; }

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

.btn-premium {
    font-family: 'LetterGothic', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 1rem;
    
    color: var(--red);
    border: 2px solid var(--red);
    padding: 15px 40px;
    
    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 {
    color: var(--cream);
    background-color: var(--red);
}

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

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

/*/////////////////////////////////// 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: italic;
    font-size: 18px;
    
}


.hausgemacht-section h1 {
        color: black;
}

/*/////////////////////////////////// N A T U R L I C H    S E C T I O N ////////////////////////////////////////*/
.naturlich-section p {
    font-family: 'LetterGothic', sans-serif;
    font-style: italic;
    font-weight: bold;
    font-size: 18px;
}
/*/////////////////////////////////// O M A    S E C T I O N ////////////////////////////////////////*/
.oma-section p {
    font-family: 'LetterGothic', sans-serif;
    font-style: italic;
    font-size: 18px;
    color: black;
}

/*/////////////////////////////////// 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: italic;
    font-weight: bold;
    font-size: 18px;
    color: black;
}

.geschichte-section h1 {
        color: black;
}

/************************************************************************************************************/
/* ================================================== */
/* 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: #fdfaf5;
    }

    /* VSTOPNA STRAN (INTRO) */
    body::before {
        content: "";
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background-color: #fdfaf5;
        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 {
        padding: 60px 25px !important;
        box-sizing: border-box !important;
        width: 100vw !important;
        height: 100vh !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        overflow: hidden !important;
        background-color: #fdfaf5 !important;
    }

    .v-section h1 {
        font-size: 1.7rem !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 */
.naturlich-section { 
    background: linear-gradient(rgba(253, 250, 245, 0.4), rgba(253, 250, 245, 0.7)), 
                url('../image/img2.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"),
                #fdfaf5 !important;
}

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

    .overlay {
        background-color: #ce1212;
        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: #fdfaf5 !important;
        display: block;
        padding: 10px 40px;
        text-decoration: none;
    }
} /* KONEC MEDIA QUERY */
