/* =========================================
   1. FONTS
   ========================================= */
   @font-face {
    font-family: 'creato_bold';
    src: url("font/creato_display_bold.otf");
}

@font-face {
    font-family: 'creato_regular';
    src: url("font/creato_display_regular.otf");
}

@font-face {
    font-family: 'creato_light';
    src: url("font/creato_display_light.otf");
}

@font-face {
    font-family: 'skyblessing';
    src: url('font/skyblessing.woff');
}

@font-face {
    font-family: 'old';
    src: url('font/old.TTF');
}

@font-face {
    font-family: 'oldsmall';
    src: url('font/old_smallcap.TTF');
}

/* =========================================
   2. GLOBAL RESET & TYPOGRAPHY
   ========================================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    font-size: clamp(16px, 16px + 2vw, 22px); 
    overscroll-behavior: none; /* Stops the elastic bounce effect on the whole page */
    scroll-behavior: smooth;
    background-color: #F7F4F0;
    color: #232321;
    font-family: 'creato_light', sans-serif;
}

body {
    background-color: transparent; 
    overscroll-behavior: none; /* Added here as a safety fallback for some mobile browsers */
}

a {
    text-decoration: none; 
    color: inherit;        
    cursor: pointer;       
}

.bold, #bold {
    font-family: 'creato_bold';
}

/* =========================================
   3. MAIN LAYOUT & CONTAINERS
   ========================================= */
   .container {
    /* REMOVED: height: 100vh; */
    min-height: 100vh; /* Added min-height instead, just as a safety fallback */
    color: #232321;
    font-family: 'creato_light', sans-serif;
    position: relative;
    background-color: transparent;
    z-index: 2; /* Keeps the whole stack above the footer */
}

section {
    background-color: #F7F4F0;
    min-height: 100vh;
    padding: 24px;
    display: flex;
    flex-direction: column;
    /* scroll-snap-align: start;
    scroll-snap-stop: always; */
}

/* Spacer for footer reveal */
.spacer {
    height: 100vh; 
    background: transparent;
    pointer-events: none; /* Allows interaction through the spacer if needed */
    /* scroll-snap-align: end; */
}

/* =========================================
   4. SECTIONS & BACKGROUNDS
   ========================================= */
/* Section 1 sticks to the background first */
.one {
    background: url(/image/bg_kalguksu_w_logo.webp);
    background-repeat: no-repeat;
    background-size: cover;
    
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Section 2 slides OVER Section 1, then sticks */
.two {
    /* Note: I bumped the opacity from 0.7 to 0.95 so Section 1 doesn't heavily bleed through when this slides over it */
    background: linear-gradient(rgba(247, 244, 240, 0.5), rgba(247, 244, 240, 0.5)), url(/image/bg_leaf.webp);
    background-repeat: no-repeat;
    background-size: cover;
    
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Section 3 slides OVER Section 2, but scrolls normally so you can read the long menu */
.three {
    background: linear-gradient(rgba(247, 244, 240, 0.25), rgba(247, 244, 240, 0.25)), url(/image/bg_hanji.webp);
    background-repeat: no-repeat;
    background-size: cover;
    
    position: relative;
    z-index: 3;
}

/* =========================================
   5. HEADERS & LOGOS
   ========================================= */
.header {
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    width: 100%;           
    max-width: 600px;      
    margin: 0 auto;        
}

#sticky {
    position: sticky;
    top: 5vw;
    z-index: 99;
    padding: 0;
    mix-blend-mode: difference;
}

.lg {
    color: #F7F4F0;
}

.logo {
    max-width: 500px;
    height: auto;
    display: block;
}

/* Pushes logo to the center-bottom of the first screen */
.one .logo {
    margin: auto auto 10vh auto;
}

.brand {
    display: block;
    margin: auto auto 12.5vh auto;
    max-width: 600px;
    font-size: 1rem;
}

.home {
    display: block; /* Stamp image in section two */
}

.redstamp {
    display: block;
    margin: auto auto 5vh auto;
}

/* =========================================
   6. MENU CATEGORIES & DESCRIPTIONS
   ========================================= */
.menu-kategorie {
    display: flex;
    justify-content: center;
    font-family: 'oldsmall';
    font-size: 2.5rem;
}

.menu-subtitle {
    display: flex;
    justify-content: center;
    font-family: 'oldsmall';
    font-size: 1.5rem;
    margin-top: 5vh;
    margin-bottom: 2.5vh;
}

#vorspeise {
    margin-bottom: 5vh;
}

.gebraten {
    text-align: center;
    line-height: 80%;
    margin-bottom: 2.5vh;
}

.kategorie-des{
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1vh;
    margin-bottom: 4vh;
}

/* =========================================
   7. MENU ITEMS
   ========================================= */
.menu-item {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 5vh auto;
}

.image-container {
    display: flex;          
    align-items: start;     
    justify-content: space-between; 
    width: 100%;            
    position: relative;
}

.menu-img {
    width: 87.5%;           
    height: auto;           
    object-fit: cover;
    display: block;         
}

#mandu {
    max-width: 85%;
}

.menu-title-preis {
    margin-top: 1vh;
    margin-bottom: 0.5vh;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.menu-title-icon {
    display: flex;
    align-items: baseline;
}

/* Vertical Text Magic for Korean Menu Titles */
.menu-title-kr {
    position: static;       
    width: 10%;             
    display: flex;          
    justify-content: center; 
    align-items: end;
    font-family: 'skyblessing';
    font-size: 1.5rem;      
    color: #232321;
    writing-mode: vertical-lr;
    text-orientation: upright;
    letter-spacing: -0.05rem;
    line-height: 0.9;
    margin: 0;
    margin-top: 1vh;
    z-index: auto;
}

.menu-title-en {
    font-size: 1.25rem;
}

.icon {
    margin-left: 1vh;
}

.preis {
    font-size: 1rem;
}

.getränke-margin{
    margin-top: 2.5vh;
    margin-bottom: 2.5vh;
}

.getränke-item {
    margin: 0 auto 0 auto;
    max-width: 600px;
    margin-top: 1vh;
    margin-bottom: 0.5vh;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.title-des {
    display: flex;
    align-items: baseline;
}

.getränke-des {
    font-size: 0.75rem;
    margin-left: 0.75vh;
}

.größe-preis {
    display: flex;
    align-items: baseline;
}

.größe {
    font-size: 0.75rem;
    margin-right: 0.75vh;
}

/* =========================================
   8. ALLERGENS
   ========================================= */
.allergene {
    font-family: 'creato_regular';
    font-size: 0.5rem;
    margin-left: 1vh;
}

.allergene-list {
    max-width: 600px;
    margin: 7.5vh auto 5vh auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

/* =========================================
   9. FOOTER (Reveal Effect)
   ========================================= */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #F7F4F0;
    font-family: 'creato_light';
    color: #232321;
    display: flex;
    flex-direction: column;
    padding: 10vh 24px 3vh 24px; 
    z-index: 0; /* Placed behind the container */
}

.footer-content {
    width: 100%;
    display: flex; 
    flex-direction: column;
}

#footer-logo {
    margin: 1vh auto 3vh auto;
    width: 100%;
    max-width: 500px;
    height: auto;      
    object-fit: contain;   
    flex-shrink: 1;
}

.text {
    font-size: 0.75rem;
    max-width: 600px;
    margin: 1.5vh auto 2.5vh auto;
}

.footer-info {
    width: 100%;
    max-width: 600px;   
    margin: 0 auto;     
    text-align: left;   
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;       
}

.footer-info div {
    font-family: 'creato_bold';
}

.footer-info p {
    margin-top: -0.25rem;       
}

/* =========================================
   11. FOOTER BOTTOM (Restliches)
   ========================================= */
.restliches {
    font-family: 'creato_light'!important;
    width: 100%;
    max-width: 600px;
    margin: 0 auto; /* Keeps it perfectly aligned with the rest of your 600px footer text */
    margin-top: 2.5vh; /* Adds a little breathing room above the copyright */
    font-size: 0.75rem;
}

.legal-row {
    display: flex;
    justify-content: space-between; 
    /* Ändert die Ausrichtung von mittig auf die Text-Grundlinie */
    align-items: baseline; 
    margin-top: -1rem;
}

.links {
    font-family: 'creato_light'!important;
}

/* We need to reset the margin just for this specific stamp, so it doesn't use the 'margin: auto' centering from your other stamps */
.restliches .redstamp {
    margin: 0; 
    /* Wichtig: 'display: block' kann die Baseline-Ausrichtung stören. 
       Besser 'inline-block' oder das Standardverhalten nutzen. */
    display: inline-block; 
    height: 40px;
    width: auto;
}

.impressum-body{
    max-width: 100;
    max-height: 100;
    padding: 10vh 24px 3vh 24px; 
}

.impressum-container{
    max-width: 600px;
    font-size: 0.75rem;
}

/* =========================================
   10. MEDIA QUERIES
   ========================================= */
@media screen and (max-width: 430px) {
    html { 
        font-size: clamp(12px, 12px + 2vw, 18px); 
    }

    .menu-title-kr {
        font-size: 1.35rem;   
    }
}

@media screen and (min-width: 600px) {
    .one {
        background: url(/image/landscape_kalguksu_w_logo.webp);
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

   .two {
        background: linear-gradient(rgba(247, 244, 240, 0.7), rgba(247, 244, 240, 0.7)), url(/image/bg_leaf_landscape.webp);
        background-repeat: no-repeat;
        background-size: cover;
    }
    
    #footer-logo {
        margin: -5vh auto 3vh auto;}
}

