/* Új fejléc (2026-11-15). Asztali: látható menü. Mobil (<900px): logó + feliratos Menü gomb. */
:root {
	--loeh-h: 80px;
	--loeh-bg: #fffdf9;
	--loeh-ink: #381907;
	--loeh-line: #e3d8ca;
	--loeh-tan: #f1e9dd;
	--loeh-terra: #b4551f;
	--loeh-brand: #604c8d;
	--loeh-brand-dark: #4c3b73;
	--loeh-top: 0px;
}
html { scroll-padding-top: calc(var(--loeh-h) + var(--loeh-top) + 12px); }
body.admin-bar { --loeh-top: 32px; }
@media (max-width: 782px) { body.admin-bar { --loeh-top: 46px; } }
@media (max-width: 600px) { body.admin-bar { --loeh-top: 0px; } }

.loe-skip {
	position: fixed; left: 12px; top: -80px; z-index: 100001;
	background: var(--loeh-brand); color: #fff !important; padding: 12px 18px; border-radius: 10px;
	font: 600 16px/1.2 'Open Sans', sans-serif; text-decoration: none;
}
.loe-skip:focus { top: calc(var(--loeh-top) + 12px); }

/* A helyet a .loe-header tartja, a sáv rögzített: görgetéskor nincs elmozdulás. */
.loe-header { height: var(--loeh-h); position: relative; z-index: 9990; }
.loe-header__bar {
	position: fixed; top: var(--loeh-top); left: 0; right: 0; height: var(--loeh-h);
	background: var(--loeh-bg); border-bottom: 1px solid var(--loeh-line);
	transition: box-shadow .2s ease;
	font-family: 'Open Sans', sans-serif;
}
.loe-header.is-scrolled .loe-header__bar { box-shadow: 0 1px 2px rgba(56, 25, 7, .06), 0 8px 24px rgba(56, 25, 7, .10); }
.loe-header__inner {
	max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 24px;
	display: flex; align-items: center; gap: 16px;
}
.loe-header *, .loe-header *::before, .loe-header *::after { box-sizing: border-box; }

.loe-header__logo { display: flex; align-items: center; flex: 0 0 auto; margin-right: auto; border-radius: 10px; color: var(--loeh-ink); font-weight: 700; text-decoration: none; }
.loe-header__logo img { display: block; width: 66px; height: 66px; object-fit: contain; }

.loe-nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.loe-nav__item { margin: 0; padding: 0; }
.loe-nav__link {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
	color: var(--loeh-ink) !important; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: 0;
	text-decoration: none !important; text-transform: none; white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
.loe-nav__link:hover { background: var(--loeh-tan); }
.loe-nav__link.is-active { color: var(--loeh-terra) !important; box-shadow: inset 0 -2px 0 var(--loeh-terra); border-radius: 0; padding: 0 4px; margin: 0 12px; }
.loe-nav__link.is-active:hover { background: transparent; }
.loe-nav__item--cta { margin-left: 10px; }
.loe-nav__item--cta .loe-nav__link,
.loe-nav__item--cta .loe-nav__link.is-active {
	background: var(--loeh-brand); color: #fff !important; padding: 0 24px; margin: 0; border-radius: 999px; box-shadow: none;
}
.loe-nav__item--cta .loe-nav__link:hover { background: var(--loeh-brand-dark); }

.loe-header a:focus-visible, .loe-header button:focus-visible { outline: 3px solid var(--loeh-brand); outline-offset: 3px; }

.loe-header__toggle, .loe-header__backdrop { display: none; }

/* ---------- Mobil és kis tablet ---------- */
@media (max-width: 899px) {
	:root { --loeh-h: 64px; }
	.loe-header__inner { padding: 0 8px 0 16px; gap: 4px; }
	.loe-header__logo img { width: 54px; height: 54px; }

	.loe-header__toggle {
		display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; margin: 0;
		background: transparent; border: 0; border-radius: 999px; box-shadow: none;
		color: var(--loeh-ink); font: 600 16px/1 'Open Sans', sans-serif; text-transform: none; letter-spacing: 0;
		cursor: pointer; -webkit-tap-highlight-color: transparent;
	}
	/* A child téma style.css-e minden gombra `button:hover { background-color: #36424f !important }`-ot tesz;
	   érintőképernyőn a :hover koppintás után ragadva marad (iOS), ezért itt !important kell. */
	.loe-header__toggle,
	.loe-header__toggle:hover,
	.loe-header__toggle:focus { background-color: transparent !important; color: var(--loeh-ink) !important; border: 0 !important; }
	.loe-header__toggle:active { background-color: var(--loeh-tan) !important; }
	.loe-header__bars { position: relative; display: block; width: 22px; height: 16px; flex: 0 0 auto; }
	.loe-header__bars span {
		position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
		transition: transform .2s ease, opacity .15s ease, top .2s ease;
	}
	.loe-header__bars span:nth-child(1) { top: 0; }
	.loe-header__bars span:nth-child(2) { top: 7px; }
	.loe-header__bars span:nth-child(3) { top: 14px; }
	.loe-header.is-open .loe-header__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
	.loe-header.is-open .loe-header__bars span:nth-child(2) { opacity: 0; }
	.loe-header.is-open .loe-header__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

	.loe-nav {
		position: absolute; top: 100%; left: 0; right: 0; margin-top: 1px;
		max-height: calc(100vh - var(--loeh-h) - var(--loeh-top)); max-height: calc(100dvh - var(--loeh-h) - var(--loeh-top)); overflow-y: auto;
		background: var(--loeh-bg); border-bottom: 1px solid var(--loeh-line);
		box-shadow: 0 18px 40px rgba(56, 25, 7, .16);
		padding: 4px 16px 20px;
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	}
	.loe-header.is-open .loe-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.loe-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.loe-nav__item + .loe-nav__item { border-top: 1px solid var(--loeh-line); }
	.loe-nav__link, .loe-nav__link.is-active {
		display: flex; min-height: 56px; padding: 0 8px; margin: 0; border-radius: 0; box-shadow: none;
		font-size: 18px; white-space: normal;
	}
	.loe-nav__link:hover { background: transparent; }
	.loe-nav__link:active { background: var(--loeh-tan); }
	.loe-nav__link.is-active { box-shadow: inset 3px 0 0 var(--loeh-terra); padding-left: 14px; }
	.loe-nav__item--cta { margin: 0; padding-top: 16px; }
	.loe-nav__item--cta .loe-nav__link, .loe-nav__item--cta .loe-nav__link.is-active {
		justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px;
	}

	.loe-header__backdrop {
		display: block; position: fixed; inset: 0; z-index: 9980; background: rgba(56, 25, 7, .38);
		opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
	}
	.loe-header__backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
	html.loe-menu-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.loe-header__bar, .loe-nav, .loe-header__backdrop, .loe-header__bars span, .loe-nav__link { transition: none !important; }
}
