:root {
    --primary-color: #d4af37;
    --background-color: #ffffff;
    --text-color: #222;
    --font-family: 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo-container {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.logo {
    max-width: 180px;
    height: auto;
    padding: 10px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.pagetitle {
    color: white;
    font-size: 32px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.maincontainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: var(--header-offset);
    width: 100%;
    min-height: 100vh;
    z-index: 0;
    overflow-x: hidden;
    /* csak vízszintesen tilt */
}

.maincontainer::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('asztali.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: -2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .maincontainer {
        padding-top: var(--header-offset-mobile);
    }

    .maincontainer::before {
        background-image: url('mobil.png');
    }
}

.layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    position: relative;
}

/* === Nyelvválasztó === */
.lang-fixed {
    position: fixed;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 1010;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 0.6rem;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


.lang-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lang-btn:hover {
    transform: scale(1.2);
}

/* === Menü gomb === */
.category-toggle-btn {
    position: fixed;
    top: 0.5rem;
    right: 1rem;
    background-color: var(--primary-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 0.4rem;
    z-index: 1010;
    cursor: pointer;
}

/* === Kategória menü === */
.category-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
    padding: 4rem 2rem 2rem;
    overflow-y: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

.category-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.category-nav.open {
    transform: translateX(0);
}

.category-nav nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding-bottom: 4rem;
    width: 100%;
    max-width: 500px;
}

.category-nav nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateX(20px);
    animation: slideIn 0.4s ease forwards;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;

    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    min-width: 220px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
}

.category-nav nav a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.category-nav.open nav a {
    animation-delay: calc(var(--i) * 0.05s);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === Mobil optimalizáció === */
@media (max-width: 768px) {
    .category-nav nav {
        padding-bottom: 3rem;
    }

    .category-nav nav a {
        font-size: 0.95rem;
        padding: 0.4rem 1rem;
        min-width: 180px;
    }




    .lang-btn {
        font-size: 1.2rem;
    }

    .menu-container {
        padding-top: 5rem;
    }
}

@media (max-width: 768px) {
    .lang-fixed {
        position: fixed;
        top: 3.8rem;
        /* a menügomb alatt */
        left: 1rem;
        /* bal oldal */
        right: auto;
        transform: none;
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.4rem 0.6rem;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        z-index: 1010;
    }

    .lang-btn {
        font-size: 1.3rem;
    }
}


/* === Görgetés tiltása, ha menü nyitva van === */
body.noscroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* === Menü tartalom === */
.menu-container {
    flex-grow: 1;
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.menu-category {
    padding: 5px;
    margin-bottom: 15px;
    color: #d8d8d8;
    font-weight: bolder;
    background-color: rgba(34, 34, 34, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
        rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
    border-radius: 10px;
}

.etel-item {
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0.6rem;
}

.etel-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--primary-color);
}

.etel-leiras {
    font-size: 0.9rem;
    color: #ffffff;
}

.etel-ar {
    font-size: 0.9rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.695);
    padding: 4px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    margin: 5px;
}

footer {
    width: 100%;
    background: #f5f5f5;
    color: var(--primary-color);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 500;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    footer {
        font-size: 0.85rem;
        padding: 0.8rem 0;
    }
}