/* Újlőrincfalva Község Önkormányzata – stíluslap
   A régi honlap megjelenése szerint: fehér fejléc címerrel, zöld (#007527) kiemelések, lekerekített
   gombok narancs rámutatással, légifotós nyitókép, sötét lábléc hullámos szegéllyel.
   Az ikonok színe mindenhol currentColor – így az akadálymentes nézet a szövegszínnel együtt átszínezi őket. */
:root {
  --green: #007527;
  --green-dark: #006b23;
  --green-deep: #00501a;
  --green-soft: #edf5ef;
  --green-line: #cfe3d5;
  --orange: #b4502a;      /* a régi #d8673d sötétebb árnyalata: fehér felirattal is AA kontrasztú */
  --orange-soft: #fbece5;
  --ink: #3a3a3a;
  --head: #1d1d1d;
  --muted: #5f6661;
  --line: #e3e6e3;
  --bg: #f4f6f4;
  --card: #ffffff;
  --dark: #2b2b2b;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .07);
  --wrap: 1200px;
  /* a szerkesztőfelület stílusai ezeket a neveket használják */
  --navy: var(--green-deep);
  --blue: var(--green-dark);
  --blue-soft: var(--green-soft);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; color: var(--head); margin: 0 0 .5em; font-weight: 700; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ikon { display: inline-block; width: 1em; height: 1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- Gombok (a régi oldal lekerekített zöld gombjai) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 30px; border-radius: 50px; border: 2px solid var(--green-dark);
  background: var(--green-dark); color: #fff; font: 600 16px/1.2 var(--font); text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn .ikon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-outline { background: #fff; color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

/* ---------- Felső sáv ---------- */
.topbar { background: var(--green-dark); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; gap: 22px; align-items: center; justify-content: space-between; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar .contact { display: flex; gap: 22px; flex-wrap: wrap; min-width: 0; }
.topbar .contact span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .contact .ikon { width: 15px; height: 15px; fill: currentColor; color: #cfe8d6; }
.topbar-right { display: flex; align-items: center; gap: 18px; flex: none; }
.topbar .fb, .topbar .akadaly { display: inline-flex; align-items: center; padding: 4px; margin: -4px; }
.topbar .fb .ikon, .topbar .akadaly .ikon { width: 20px; height: 20px; fill: currentColor; }
.topbar .fb:hover, .topbar .akadaly:hover { color: #ffd9c9; }
.kontraszt-gomb {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 50px;
  padding: 3px 12px; font: 600 13.5px var(--font); cursor: pointer;
}
.kontraszt-gomb:hover { background: rgba(255, 255, 255, .14); }
.kontraszt-gomb .ikon { width: 16px; height: 16px; }
.kontraszt-gomb[aria-pressed="true"] { background: #fff; color: var(--green-deep); }

/* ---------- Fejléc + menü ---------- */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--head); }
.brand:hover { color: var(--head); }
.brand img { width: 50px; height: auto; }
.brand strong { display: block; font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
.brand small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { position: relative; }
.nav a {
  display: flex; align-items: center; gap: 5px; padding: 10px 12px;
  font: 500 16px var(--font); color: var(--ink); text-decoration: none;
}
.nav > ul > li > a { border-bottom: 2px solid transparent; }
.nav > ul > li > a:hover, .nav > ul > li:focus-within > a { color: var(--green); }
.nav > ul > li > a[aria-current] { color: var(--green); border-bottom-color: var(--green); }
.nav .nyil { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  list-style: none; margin: 0; padding: 6px 0;
  background: #fff; border-top: 2px solid var(--green); box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s;
}
.nav .sub a { font-size: 15px; padding: 8px 18px; line-height: 1.4; }
.nav .sub a:hover { background: var(--green-soft); color: var(--green); }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
/* a jobb oldali menüpontok lenyílója jobbra igazodik, hogy ne lógjon ki a képernyőből */
.nav > ul > li:nth-last-child(-n+3) > .sub { left: auto; right: 0; }
.nav-toggle { display: none; }

/* ---------- Nyitókép (légifotó, középen a címer) ---------- */
.nyito { position: relative; color: #fff; overflow: hidden; background: #2f4a2f; }
.nyito img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nyito::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .42)); }
.nyito .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 48px; padding-bottom: 110px; }
.nyito-cimer { width: 190px; height: auto; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); }
.nyito h1 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); margin: 26px 0 30px; max-width: 20ch; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hullam { position: absolute; left: 0; right: 0; width: 100%; height: 50px; display: block; fill: #fff; }
.nyito .hullam { bottom: -1px; z-index: 2; }

/* ---------- Szakaszok ---------- */
section { padding: 72px 0; }
.kicker { display: block; color: var(--head); font-weight: 700; font-size: 16px; }
.kicker::after, .szakaszfej h2::after, .footer .vonal {
  content: ""; display: block; width: 46px; height: 2px; background: currentColor; margin: 22px 0 18px;
}
.szakaszfej { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.szakaszfej h2 { font-size: clamp(28px, 3.4vw, 40px); }
.szakaszfej h2::after { margin: 22px auto 0; }
.szakaszfej p { color: var(--muted); margin: 18px 0 0; }
.kozep { text-align: center; }
.gombsor { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 34px 0 0; }

/* ---------- Polgármesteri köszöntő ---------- */
.koszonto { padding-top: 56px; }
.koszonto-racs { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.koszonto h2 { font-size: clamp(28px, 3.4vw, 40px); }
.koszonto p { margin: 0 0 1em; }
.polgarmester { margin: 8px 0 0; text-align: center; }
.polgarmester img { width: 100%; border-radius: 6px; box-shadow: var(--shadow); }
.polgarmester figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.polgarmester strong { display: block; color: var(--head); font-size: 17px; }

/* ---------- Fontos közérdekű adatok (átlós, halványzöld háttér) ---------- */
.kozerdeku { background: linear-gradient(172deg, #fff 0, #fff 22%, var(--green-soft) 22.1%, var(--green-soft) 100%); padding-bottom: 80px; }
.kozerdeku-racs { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 40px; }
.gyors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 20px; }
.gyors a { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; text-decoration: none; color: var(--head); font-weight: 700; font-size: 19px; line-height: 1.3; }
.gyors .kor { width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--green); display: grid; place-items: center; color: var(--green); background: #fff; transition: background .15s, color .15s; }
.gyors .kor .ikon { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gyors li:first-child .kor .ikon { fill: currentColor; stroke: none; }   /* a telefon tömör ikon */
.gyors a:hover { color: var(--green); }
.gyors a:hover .kor { background: var(--green); color: #fff; }
.palyazat-tabla { display: block; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.palyazat-tabla:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .16); }

/* ---------- Hírek ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s;
}
.news-card:hover { transform: translateY(-3px); }
.thumb { position: relative; display: grid; place-items: center; }
.news-card .thumb { aspect-ratio: 16 / 10; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .ikon { width: 52px; height: 52px; stroke: currentColor; fill: none; stroke-width: 1.4; opacity: .9; }
.thumb.t-blue { background: linear-gradient(135deg, #e3f0e6, #c4dfcc); color: var(--green); }
.thumb.t-green { background: linear-gradient(135deg, #eaf3dd, #cfe4b5); color: #3f6b14; }
.thumb.t-gold { background: linear-gradient(135deg, #fbece5, #f3cfbd); color: var(--orange); }
.tag { position: absolute; left: 12px; top: 12px; z-index: 1; background: #fff; color: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }
.news-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.news-card time, .meta { color: var(--muted); font-size: 14px; }
.news-card h3 { font-size: 18px; margin: 6px 0 8px; }
.news-card h3 a { color: var(--head); text-decoration: none; }
.news-card h3 a:hover { color: var(--green); text-decoration: underline; }
.news-card p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.news-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; }
.attach { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 400; }
.attach .ikon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Lábléc (sötét, hullámos felső szegéllyel) ---------- */
.footer { position: relative; background: var(--dark); color: #d4d4d4; padding: 96px 0 0; font-size: 15px; }
.footer .hullam { top: -1px; }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer h2 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.footer .lab-kapcsolat h2 { font-size: clamp(26px, 3vw, 34px); text-transform: none; letter-spacing: 0; margin-bottom: 18px; }
.footer .vonal { color: #fff; margin: 0 0 22px; }
.footer p { margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .social { display: inline-flex; padding: 4px; margin-left: -4px; }
.footer .social .ikon { width: 28px; height: 28px; fill: currentColor; }
.footer .social:hover { color: #ffd9c9; }
.footer .bottom { margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #bdbdbd; }

/* ---------- Belső oldalak ---------- */
.page-head { background: var(--green-soft); border-bottom: 1px solid var(--green-line); padding: 34px 0 30px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 6px 0 0; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--green); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
section.belso { background: var(--bg); padding: 40px 0 64px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.page-narrow { max-width: 920px; }
.prose-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 38px; min-width: 0; }
.prose { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 24px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 19px; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose img { height: auto; border-radius: 6px; margin: .5em 0; }
/* a régi oldal képgalériáinak kis képei egymás mellé kerülnek; a nagy képek kitöltik a sort */
.prose figure { display: inline-block; max-width: 100%; margin: .6em 10px .6em 0; vertical-align: top; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15.5px; display: block; overflow-x: auto; }
/* a cellában csak szóhatáron törjön a szöveg (különben a keskeny oszlop betűnként tördelődik) */
.prose table { overflow-wrap: normal; }
.prose td:first-child { white-space: nowrap; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--green-soft); color: var(--head); }
.prose blockquote { margin: 0 0 1em; padding: 4px 18px; border-left: 4px solid var(--green); }
.prose .cta { margin: 26px 0; }
.prose .cta .btn { color: #fff; text-decoration: none; }
.helyorzo { background: var(--orange-soft); border-left: 4px solid var(--orange); border-radius: 8px; padding: 16px 20px; }
.helyorzo p { margin: 0; }
.lead-text { color: var(--muted); margin: 0 0 24px; font-size: 17.5px; }
.lead-img { margin: 0 0 24px; }
.lead-img img { width: 100%; border-radius: 8px; }
.article-meta { margin: 0 0 18px; font-weight: 600; }
.back { margin: 28px 0 0; }
.empty { background: #fff; border-radius: var(--radius); padding: 18px; color: var(--muted); margin: 0; }

.callout { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--green-soft); border-left: 5px solid var(--green); border-radius: 8px; padding: 18px 22px; margin: 0 0 26px; }
.callout h2 { font-size: 19px; margin: 0 0 4px; }
.callout p { margin: 0; max-width: 60ch; }

/* oldalsáv: rovat almenüje, legutóbbi hírek, archívum */
.oldalsav { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.doboz { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; }
.doboz h2 { font-size: 18px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--green); }
.doboz ul { list-style: none; margin: 0; padding: 0; }
.friss li { padding: 9px 0; border-top: 1px solid var(--line); line-height: 1.4; }
.friss li:first-child { border-top: 0; padding-top: 0; }
.friss a { display: block; color: var(--head); text-decoration: none; font-weight: 600; font-size: 15px; }
.friss a:hover { color: var(--green); text-decoration: underline; }
.friss time { font-size: 13px; color: var(--muted); }
.archivum-evek > li { border-top: 1px solid var(--line); }
.archivum-evek > li:first-child { border-top: 0; }
.archivum-evek summary { cursor: pointer; padding: 7px 2px; font-weight: 600; color: var(--head); }
.archivum-evek summary:hover { color: var(--green); }
.archivum-evek details ul { padding: 0 0 8px 18px; }
.archivum-evek details li { padding: 2px 0; font-size: 15px; }
.archivum-evek small, .doboz small { color: var(--muted); }
.doboz .all { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; font-size: 15px; }
.side-nav a { display: block; padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 15.5px; line-height: 1.35; }
.side-nav a:hover { background: var(--green-soft); color: var(--green); }
.side-nav a[aria-current] { background: var(--green-soft); color: var(--green); font-weight: 600; }
.side-nav ul ul { padding-left: 12px; border-left: 2px solid var(--line); margin: 4px 0 6px 10px; }

/* hírlista */
.news-list { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.news-row { display: grid; grid-template-columns: 210px 1fr; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.news-row .thumb { min-height: 150px; }
.news-row .thumb .ikon { width: 44px; height: 44px; }
.news-row .body { padding: 18px 24px; }
.news-row h2 { font-size: 20px; margin: 4px 0 8px; }
.news-row h2 a { color: var(--head); text-decoration: none; }
.news-row h2 a:hover { color: var(--green); text-decoration: underline; }
.news-row p { margin: 0 0 12px; }
.news-row .foot { display: flex; gap: 18px; align-items: center; font-size: 14px; flex-wrap: wrap; font-weight: 600; }
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.pager a { min-width: 42px; text-align: center; padding: 8px 12px; border-radius: 50px; background: #fff; box-shadow: var(--shadow); text-decoration: none; font-weight: 600; }
.pager a[aria-current] { background: var(--green-dark); color: #fff; }

/* téma szerinti lista (Hatályos rendeletek, Jegyzőkönyvek) */
.tema-lista { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.tema-lista li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; }
.tema-lista a { font-weight: 600; text-decoration: none; color: var(--head); }
.tema-lista a:hover { color: var(--green); text-decoration: underline; }
.prose-card > .empty { margin-top: 20px; padding: 0; }

/* archívum-oldal */
.archivum-ev { font-size: 22px; margin: 28px 0 12px; }
.archivum-ev:first-of-type { margin-top: 0; }
.archivum-racs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.archivum-racs a { display: flex; flex-direction: column; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--head); font-weight: 600; transition: border-color .15s, background .15s; }
.archivum-racs a:hover { border-color: var(--green); background: var(--green-soft); }
.archivum-racs small { color: var(--muted); font-weight: 400; font-size: 13.5px; }

/* csatolmányok */
.attachments { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.attachments h2 { font-size: 19px; }
.attachments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.attachments a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--head); transition: border-color .15s, background .15s; }
.attachments a:hover { border-color: var(--green); background: var(--green-soft); }
.attachments .ikon { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; color: var(--green); }
.attachments span { display: flex; flex-direction: column; min-width: 0; }
.attachments strong { overflow-wrap: anywhere; font-weight: 600; }
.attachments small { color: var(--muted); }
.attachments.inline { margin: 12px 0 0; padding: 0; border: 0; }
.prose .attachments ul { margin: 0; }
.prose .attachments li { margin: 0; }
.prose .attachments a { text-decoration: none; }

/* ---------- Pályázati infóblokk: görgetéskor is mindig látható, jobb alsó sarok ---------- */
.infoblokk { position: fixed; right: 0; bottom: 0; z-index: 60; display: block; width: 220px; line-height: 0; background: #fff; border-top-left-radius: 10px; overflow: hidden; box-shadow: 0 -2px 14px rgba(0, 0, 0, .18); }
.infoblokk img { width: 100%; height: auto; }
.infoblokk:focus-visible { outline-offset: -3px; }
/* a lap alja (lábléc utolsó sora) ne kerüljön a logó alá */
.van-infoblokk .footer { padding-bottom: 152px; }

/* ---------- Reszponzív ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 10px 8px; font-size: 15.5px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ennél keskenyebben a főmenü „Menü” gomb mögé kerül */
@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
    border: 2px solid var(--green-dark); border-radius: 50px; background: #fff;
    font: 600 15px var(--font); color: var(--green-dark); cursor: pointer;
  }
  .nav-toggle .ikon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; max-height: calc(100vh - 88px); overflow: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; padding: 8px 20px 20px; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li > a { border-bottom: 0; }
  .nav > ul > li > a[aria-current] { border-left: 3px solid var(--green); padding-left: 10px; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; display: block; padding: 0 0 8px 14px; margin: 0; }
  .nav .nyil { display: none; }
}
@media (max-width: 960px) {
  .page-grid, .koszonto-racs, .kozerdeku-racs { grid-template-columns: 1fr; }
  .koszonto-racs { gap: 32px; }
  .polgarmester { max-width: 340px; margin: 0 auto; }
  .palyazat-tabla { max-width: 480px; margin: 0 auto; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .footer .lab-kapcsolat { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .topbar .contact .addr { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .contact .mail { display: none; }
  .topbar .wrap { gap: 12px; }
  .topbar-right { gap: 16px; }
  /* mobilon csak az ikon látszik, a felirat a képernyőolvasónak megmarad */
  .kontraszt-gomb { padding: 4px 7px; }
  .kontraszt-gomb span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .header .wrap { min-height: 72px; }
  .brand strong { font-size: 22px; }
  .brand small { font-size: 12px; }
  .brand img { width: 40px; }
  .nav { max-height: calc(100vh - 72px); }
  .nyito .wrap { padding-top: 34px; padding-bottom: 80px; }
  .nyito-cimer { width: 130px; }
  .hullam { height: 28px; }
  section { padding: 52px 0; }
  .gyors { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .gyors a { font-size: 16.5px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .news-row .thumb { min-height: 0; aspect-ratio: 16 / 6; }
  .prose-card { padding: 22px 18px; }
  .footer { padding-top: 64px; }
  .footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .infoblokk { width: 150px; }
  .van-infoblokk .footer { padding-bottom: 104px; }
  .nav.open { padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Szerkesztőfelület ---------- */
.admin-bar { background: var(--navy); color: #fff; }
.admin-bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; flex-wrap: wrap; }
.admin-bar .brand { color: #fff; }
.admin-bar .brand img { width: 36px; }
.admin-bar .brand strong { font-size: 17px; }
.admin-bar .brand small { color: #9fb7cc; }
.admin-bar .user { font-size: 14px; color: #cfe0ef; }
.admin-bar .user button { color: #fff; margin-left: 12px; background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 32px 20px 60px; }
.admin-nav { list-style: none; margin: 0; padding: 0; }
.admin-nav a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 600; }
.admin-nav a:hover { background: #fff; }
.admin-nav a[aria-current] { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; min-width: 0; }
.panel h1 { font-size: 26px; }
.field { margin-bottom: 20px; }
.field > label, .field > .label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.field input[type=text], .field input[type=password], .field input[type=date], .field input[type=file], .field select, .field textarea {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.toolbar { display: flex; gap: 4px; border: 1.5px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 6px; background: var(--bg); flex-wrap: wrap; }
.toolbar button { font: 600 14px var(--font); border: 0; background: none; padding: 6px 10px; border-radius: 6px; color: var(--navy); cursor: pointer; }
.toolbar button:hover { background: #fff; }
.field .toolbar + textarea { border-radius: 0 0 10px 10px; min-height: 260px; resize: vertical; }
.files { list-style: none; margin: 10px 0 0; padding: 0; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; font-size: 15px; flex-wrap: wrap; }
.files label { font-weight: 500; color: #b42318; display: inline-flex; gap: 6px; align-items: center; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.actions { display: flex; gap: 12px; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; flex-wrap: wrap; }
button.btn { border: 0; cursor: pointer; font-family: var(--font); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
button.btn-danger, .btn-danger { background: #fff; color: #b42318; border: 1.5px solid #e7b4ae; }
.btn-danger:hover { background: #fdecea; color: #b42318; }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.kep-elonezet { max-height: 120px; border-radius: 8px; }
.files .nev-mezo { flex: 1 1 260px; font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; min-width: 0; }
.files .nev-mezo:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.fajlvalaszto { margin-top: 10px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.alert-ok { background: var(--green-soft); color: #1d5a36; }
.alert-err { background: #fdecea; color: #8a1c12; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.admin-table th, .admin-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.admin-table td.act { white-space: nowrap; text-align: right; }
.admin-table form { display: inline; }
.status { font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.status.on { background: var(--green-soft); color: var(--green); }
.status.off { background: #eef0f3; color: var(--muted); }
.login { max-width: 420px; margin: 60px auto; }
.help { font-size: 14px; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }
.help code { background: #fff; padding: 1px 5px; border-radius: 4px; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .admin-nav { display: flex; gap: 6px; flex-wrap: wrap; }
  .row2 { grid-template-columns: 1fr; }
  .admin-table .hide-sm { display: none; }
}

/* ---------- Akadálymentes nézet (nagy kontraszt, sárga-fekete, nagyobb betű) – önkormányzati oldalakon kötelező ----------
   A stilus.css VÉGÉRE másold (a !important szabályok így mindent felülírnak). Kipróbálva: hevesvezekeny.hu, sarud.hu.
   Az 1. rész változtatás nélkül használható; a 2. részt a település saját díszítő elemeihez igazítsd. */

/* 1. Általános rész */
html.kontraszt body { font-size: 19.5px; background: #000 !important; }
html.kontraszt body *, html.kontraszt body *::before, html.kontraszt body *::after {
  background-color: #000 !important; background-image: none !important; color: #ff0 !important;
  border-color: #ff0 !important; box-shadow: none !important; text-shadow: none !important;
}
html.kontraszt a, html.kontraszt a * { color: #0ff !important; text-decoration: underline !important; }
html.kontraszt .btn, html.kontraszt .kontraszt-gomb, html.kontraszt .nav-toggle { border: 2px solid #ff0 !important; }
html.kontraszt :focus-visible { outline: 3px solid #fff !important; }
html.kontraszt img { filter: none; }   /* a fotók, plakátok, címer eredeti színben maradnak */
/* bekapcsolt állapotban a gomb kiemelt (sárga alapon fekete) – különben a fenti általános szabály feketére írná felül */
html.kontraszt .kontraszt-gomb[aria-pressed="true"], html.kontraszt .kontraszt-gomb[aria-pressed="true"] * { background-color: #ff0 !important; color: #000 !important; }

/* 2. Újlőrincfalva: a pusztán díszítő elemek (hullámok, nyitókép, átlós háttér) eltűnnek, a kártyák és
   szakaszok határát sárga keret jelzi. Az ikonok currentColor-ral színezettek, így külön szabály nem kell. */
html.kontraszt .hullam, html.kontraszt .nyito img.bg, html.kontraszt .nyito::after { display: none !important; }
html.kontraszt .nyito { border-bottom: 2px solid #ff0 !important; }
html.kontraszt .nyito .wrap { padding-bottom: 48px; }
html.kontraszt .nyito-cimer { filter: none; }
html.kontraszt section, html.kontraszt .page-head { border-bottom: 2px solid #ff0 !important; }
html.kontraszt .news-card, html.kontraszt .news-row, html.kontraszt .doboz, html.kontraszt .prose-card,
html.kontraszt .palyazat-tabla, html.kontraszt .infoblokk, html.kontraszt .header { border: 2px solid #ff0 !important; }
html.kontraszt .nav > ul > li > a[aria-current] { border-bottom: 3px solid #0ff !important; }
html.kontraszt .kicker::after, html.kontraszt .szakaszfej h2::after, html.kontraszt .footer .vonal { background-color: #ff0 !important; }
