/* --- Fix Fejléc Alapstílus --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    padding: 5px 30px;
    box-sizing: border-box;

    /* 3 oszlopos Grid: [Bal: Logo] - [Közép: Menü] - [Jobb: Nyelvválasztó] */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Logo a bal szélre igazítva */
.logo {
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-decoration: none;
    background-image: url('logo.png');
    width: 66px;
    height: 66px;
    grid-column: 1;
    justify-self: start;
}

/* Asztali nézetben a nav-menu feloszlik, hogy a gyerekei a header gridjébe illeszkedjenek */
.nav-menu {
    display: contents;
}

/* Menüpontok matematikailag is KÖZÉPEN */
.nav-links {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00f0ff;
}

/* Nyelvváltó a JOBB SZÉLEN */
.language-switcher {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: background 0.2s, transform 0.1s;
    opacity: 0.6;
    padding: 8px;
}

.lang-btn img {
    width: 30px;
    border-radius: 3px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.lang-hu .lang-btn[data-lang="hu"],
body.lang-en .lang-btn[data-lang="en"],
body.lang-de .lang-btn[data-lang="de"] {
    opacity: 1;
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.1);
}

.lang-text {
    display: none;
}

body.lang-hu .lang-text.hu { display: inline-block; }
body.lang-en .lang-text.en { display: inline-block; }
body.lang-de .lang-text.de { display: inline-block; }

/* Hamburger gomb alapból rejtve */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 2px;
}