:root {
    --nav-h: 80px;
    --nav-sticky-h: 70px;
    --accent: #009688;
    --text: #333;
    --border: #ececec;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--text);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 1rem;
}
figure {
    margin: 0;
}
/* --- STICKY LOGIKA --- */
.main-nav-wrapper {
    position: relative;
    height: var(--nav-h);
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.main-nav-wrapper.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-sticky-h);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header-spacer { display: none; height: var(--nav-h); }
.main-nav-wrapper.is-sticky + .header-spacer { display: block; }

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo a { font-size: 22px; font-weight: 800; text-decoration: none; color: #000; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.main-menu ul {
	list-style: none;
}
/* --- ASZTALI MENÜ (1000px+) --- */
@media (min-width: 1000px) {
    .main-menu { display: flex; list-style: none; margin: 0; padding: 0; }
    .main-menu > li { position: relative; }

    .main-menu > li > a {
        padding: 0 18px;
        line-height: var(--nav-h);
        text-decoration: none;
        color: var(--text);
        font-weight: 500;
        transition: color 0.2s;
    }
    .main-nav-wrapper.is-sticky .main-menu > li > a { line-height: var(--nav-sticky-h); }
    .main-menu a:hover { color: var(--accent); }

    /* Dropdown Ebene 1 */
    .sub-menu {
        position: absolute;
        top: 100%; /* Pontosan a szülő alatt */
        left: 0;
        background: #fff;
        min-width: 220px;
        display: none;
        box-shadow: var(--shadow);
        padding: 10px 0;
        border-radius: 0 0 8px 8px;
        border-top: 2px solid var(--accent);
    }

    /* Ebene 2 & 3 - Pontosan a szülő magasságában nyílik jobbra */
    .sub-menu li { position: relative; }
    .sub-menu .sub-menu {
        top: -12px; /* Kicsit feljebb, hogy az első elem vonalában legyen */
        left: 100%;
        border-radius: 0 8px 8px 8px;
    }

    .main-menu li:hover > .sub-menu { display: block; animation: navFadeIn 0.2s ease; }
    .sub-menu a { padding: 10px 20px; font-size: 14px; text-decoration: none; color: var(--text); display: block; }
    .sub-menu a:hover { background: #f9f9f9; color: var(--accent); }
}

@keyframes navFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MOBIL MENÜ (999px alatt) --- */
@media (max-width: 999px) {
    .nav-menu-container {
        position: absolute;
        top: 100%; /* Mindig a header aljától indul */
        left: 0;
        width: 100%;
        background: #fff;
        max-height: 0;
        overflow: hidden; /* Itt volt a hiba, a height:0 helyett max-height kell */
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9998;
        box-shadow: var(--shadow);
    }
    .nav-menu-container.open { max-height: 90vh; overflow-y: auto; border-top: 1px solid var(--border); }

    .main-menu { list-style: none; padding: 10px 20px; margin: 0; }
    .main-menu li { position: relative; border-bottom: 1px solid #f9f9f9; }
    .main-menu a { display: block; padding: 14px 0; text-decoration: none; color: var(--text); font-size: 16px; }

    .sub-menu { display: none; list-style: none; padding-left: 15px; background: #fafafa; margin-bottom: 10px; }

    /* Mobil nyíl ikon */
    .has-children::after {
        content: '\f107'; font-family: "FontAwesome"; font-weight: 900;
        position: absolute; right: 0; top: 12px; font-size: 18px; cursor: pointer;
        width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
        transition: transform 0.3s; color: #ccc;
    }
    .has-children.active-parent::after { transform: rotate(180deg); color: var(--accent); }
}

/* Hamburger & Icons */
.nav-icons { display: flex; align-items: center; gap: 15px; margin-left: 15px; }
.icon-link { color: var(--text); text-decoration: none; font-size: 18px; transition: color 0.2s; }
.icon-link:hover { color: var(--accent); }

.mobile-toggle { background: none; border: none; width: 25px; height: 20px; position: relative; cursor: pointer; padding: 0; }
.mobile-toggle span { display: block; width: 100%; height: 2px; background: #333; position: absolute; transition: 0.3s; border-radius: 2px; }
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { bottom: 0; }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

body.no-scroll { overflow: hidden; }

/* Test */
/* .col > div {
	background: #ebf9f4;
}
.row {
	background: #f4fbff;
} */
/* Lang-switcher */
.lang-switcher {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.lang-switcher li a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.lang-switcher li.active a {
    color: var(--accent); /* Az előzőleg beállított zöld színed */
    border-bottom: 2px solid var(--accent);
}

.lang-switcher li a:hover {
    color: #000;
}
/* --- Language Dropdown --- */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.lang-dropbtn {
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 4px;
    color: var(--text);
    transition: all 0.3s ease;
}

.lang-dropbtn:hover {
    background: rgba(0,0,0,0.03);
    border-color: var(--accent);
}

.lang-dropdown-content {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 140px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    z-index: 10001;
    border-radius: 6px;
    padding: 8px 0;
    margin-top: 10px;
    list-style: none;

    /* Rejtett állapot */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Nyitott állapot (JS vagy Hover) */
.lang-dropdown.open .lang-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-content li a {
    color: var(--text);
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    transition: background 0.2s;
}

.lang-dropdown-content li a:hover {
    background-color: #f8f9fa;
    color: var(--accent);
}

.lang-code {
    font-size: 10px;
    background: #eee;
    padding: 2px 4px;
    border-radius: 3px;
    color: #888;
}

/* Kis nyíl animáció */
.lang-dropdown.open .fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s;
}
/* Search */
/* Search Overlay Alapállapot */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98); /* Vagy sötéthez: rgba(18, 18, 18, 0.98) */
    backdrop-filter: blur(15px); /* Modern üveghatás */
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000; /* Legyen minden felett */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Rejtett állapot animációhoz */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Nyitott állapot (JS adja hozzá az 'open' classt) */
.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Bezáró gomb */
.search-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    font-size: 3rem;
    color: var(--text);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.search-close:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

/* Tartalom konténer */
.search-overlay-content {
    width: 90%;
    max-width: 900px;
    transform: translateY(30px);
    transition: transform 0.5s ease;
}

.search-overlay.open .search-overlay-content {
    transform: translateY(0);
}

/* Kereső csoport (Amit már írtál, finomítva) */
.search-group {
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--accent);
    padding-bottom: 10px;
}

.search-input {
    flex-grow: 1;
    background: none !important;
    border: none !important;
    /* font-size: clamp(2rem, 8vw, 4.5rem);  */
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    outline: none !important;
    padding: 10px 0;
    margin: 0;
    box-shadow: none !important;
    max-width: 100%;
    width: 100%;
}

.search-submit {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.search-submit:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.search-hint {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
}

/* Body tiltása, ha nyitva van */
body.no-scroll {
    overflow: hidden;
}

/* Mobilon arányosítás */
@media (max-width: 767px) {
    .search-input { font-size: 2rem; }
    .search-submit { font-size: 1.5rem; }

    #debug-bar {
        display: none;
    }

}
/* Slick */
@media (max-width: 767px) {
    .slick-prev,
    .slick-next {
        z-index: 1;
        color: #000;
        font-size: 40px;
    }
    .slick-prev {
        left: 0;
    }
    .slick-next {
        right: 0;
    }
    .slick-prev, .slick-next {
        width: auto;
        height: auto;
    }
    .slick-dots li {
        margin: 0;
    }
}
