/* Sarud Község Önkormányzata – stíluslap
   Színek a címerből: mélykék (Tisza), tókék, zöld (part), arany (vitorla) */
:root {
  --navy: #0b3557;
  --blue: #1b67a8;
  --blue-soft: #e6f0f8;
  --green: #2f7d4f;
  --green-soft: #e7f3ec;
  --gold: #d6a21e;
  --gold-soft: #fbf3dc;
  --ink: #1d2733;
  --muted: #5b6878;
  --line: #dfe5ec;
  --bg: #f6f7f4;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 53, 87, .06), 0 6px 20px rgba(11, 53, 87, .08);
  --wrap: 1200px;
  --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: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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


/* ---------- Felső sáv ---------- */
.topbar { background: var(--navy); color: #cfe0ef; font-size: 14px; }
.topbar .wrap { display: flex; gap: 22px; align-items: center; justify-content: space-between; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .contact span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; fill: var(--gold); }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar .fb { display: inline-flex; align-items: center; padding: 4px; margin: -4px; }
.topbar .fb svg { width: 20px; height: 20px; fill: #fff; }
.topbar .fb:hover svg { fill: var(--gold); }
.topbar .akadaly { display: inline-flex; align-items: center; padding: 4px; margin: -4px; }
.topbar .akadaly svg { width: 20px; height: 20px; fill: #fff; color: #fff; flex: none; }
.topbar .akadaly:hover svg { fill: var(--gold); color: var(--gold); }
/* „Akadálymentes nézet” gomb (kapcsoló: assets/js/kontraszt.js) */
.kontraszt-gomb { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.kontraszt-gomb:hover { background: rgba(255, 255, 255, .12); border-color: var(--gold); }
.kontraszt-gomb[aria-pressed="true"] { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.topbar .kontraszt-gomb svg { width: 17px; height: 17px; color: currentColor; flex: none; }
.footer .social { display: inline-flex; padding: 4px; margin: 0 0 0 -4px; }
.footer .social svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.footer .social:hover svg { fill: var(--gold); }

/* ---------- 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: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { width: 52px; height: auto; }
.brand strong { display: block; font-size: 21px; line-height: 1.15; }
.brand small { display: block; color: var(--muted); font-size: 13.5px; letter-spacing: .02em; }

.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav button.sub-toggle {
  display: block; padding: 10px 13px; border-radius: 8px;
  font: 600 15.5px var(--font); color: var(--navy); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav > ul > li > a:hover, .nav > ul > li:focus-within > a, .nav a[aria-current] { background: var(--blue-soft); }
.nav a[aria-current] { color: var(--blue); }
.nav .has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4.5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  list-style: none; margin: 6px 0 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s;
}
.nav .sub a { font-weight: 500; font-size: 15px; padding: 8px 12px; }
.nav .sub a:hover { background: var(--bg); }
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub.cols { display: grid; grid-template-columns: 1fr 1fr; min-width: 520px; }
.nav .sub .label { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 12px 2px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 37, 62, .86) 0%, rgba(8, 37, 62, .55) 45%, rgba(8, 37, 62, .05) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 140px; }
.hero .eyebrow { display: inline-block; background: rgba(214, 162, 30, .95); color: var(--navy); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); margin: 18px 0 12px; max-width: 18ch; }
.hero p { font-size: 19px; max-width: 46ch; color: #e3edf6; margin: 0 0 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e7b534; color: var(--navy); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); margin-left: 10px; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Gyorslinkek ---------- */
.quick { position: relative; z-index: 2; margin-top: -84px; }
.quick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.quick a {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 18px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15.5px;
  border-bottom: 3px solid transparent; transition: transform .15s, border-color .15s;
}
.quick a:hover { transform: translateY(-3px); border-bottom-color: var(--gold); }
.quick .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); }
.quick .ico svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick li:nth-child(3n+2) .ico { background: var(--green-soft); }
.quick li:nth-child(3n+2) .ico svg { stroke: var(--green); }
.quick li:nth-child(3n) .ico { background: var(--gold-soft); }
.quick li:nth-child(3n) .ico svg { stroke: #a87a0c; }
.quick small { font-weight: 400; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* ---------- Szekciók ---------- */
section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 30px; margin: 0; }
.section-head .kicker { display: block; color: var(--green); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more::after { content: " →"; }

.main-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }

/* ---------- Hírkártyák (2×2) ---------- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s;
}
.news-card:hover { transform: translateY(-3px); }
.news-card .thumb { aspect-ratio: 16 / 8; position: relative; display: grid; place-items: center; }
.news-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card .thumb svg { width: 56px; height: 56px; stroke: currentColor; fill: none; stroke-width: 1.4; opacity: .9; }
.thumb.t-blue { background: linear-gradient(135deg, #d8e8f5, #b9d5ec); color: var(--blue); }
.thumb.t-green { background: linear-gradient(135deg, #dcefe3, #bfe0cb); color: var(--green); }
.thumb.t-gold { background: linear-gradient(135deg, #fbefd0, #f3dca0); color: #9a6f08; }
.tag { position: absolute; left: 14px; top: 14px; z-index: 1; background: #fff; color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.news-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-card time, .meta { color: var(--muted); font-size: 14px; }
.news-card h3 { font-size: 19px; margin: 6px 0 8px; }
.news-card h3 a { color: var(--navy); text-decoration: none; }
.news-card h3 a:hover { color: var(--blue); text-decoration: underline; }
.news-card p { margin: 0 0 14px; color: #3c4856; font-size: 15.5px; }
.news-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.attach { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.attach svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.more-row { margin-top: 26px; text-align: center; }
.btn-outline { border: 1.5px solid var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- Eseménynaptár ---------- */
.events { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 12px; }
.events h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.events h2 svg { width: 24px; height: 24px; stroke: var(--green); fill: none; stroke-width: 1.8; }
.events ol { list-style: none; margin: 0; padding: 0; }
.events li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.events li:first-child { border-top: 0; }
.date-badge { flex: 0 0 58px; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; line-height: 1.1; }
.date-badge .m { display: block; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 0; }
.date-badge .d { display: block; font-size: 22px; font-weight: 700; color: var(--navy); padding: 4px 0 0; }
.date-badge .y { display: block; font-size: 11.5px; color: var(--muted); padding-bottom: 5px; }
.events a { font-weight: 600; color: var(--navy); text-decoration: none; line-height: 1.35; display: block; }
.events a:hover { color: var(--blue); text-decoration: underline; }
.events .meta { font-size: 13.5px; margin-top: 3px; }
.events .past .date-badge .m { background: #8a97a6; }
.events .all { display: block; text-align: center; padding: 12px 0 6px; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; }

.office { margin-top: 20px; background: var(--navy); color: #dce8f3; border-radius: var(--radius); padding: 22px; }
.office h3 { color: #fff; font-size: 18px; }
.office dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.office dt { color: var(--gold); font-weight: 600; }
.office dd { margin: 0; }
.office a { color: #fff; }

/* ---------- Turizmus ---------- */
.tourism { position: relative; color: #fff; overflow: hidden; }
.tourism img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tourism::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 37, 62, .80), rgba(10, 55, 50, .86)); z-index: 1; }
.tourism .wrap { position: relative; z-index: 2; }
.tourism h2, .tourism .section-head .kicker { color: #fff; }
.tourism .section-head .kicker { color: var(--gold); }
.tourism .lead { max-width: 60ch; color: #d6e5ef; margin: -8px 0 28px; }
.tour-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tour-grid a {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; text-decoration: none; font-weight: 600; backdrop-filter: blur(4px); transition: background .15s;
}
.tour-grid a:hover { background: rgba(255, 255, 255, .2); }
.tour-grid span.dot { width: 36px; height: 36px; flex: none; border-radius: 10px; background: rgba(214, 162, 30, .9); display: grid; place-items: center; }
.tour-grid svg { width: 20px; height: 20px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tourism .btn-gold { margin-top: 28px; }

/* ---------- Pályázatok ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border-top: 4px solid var(--green); }
.project h3 { font-size: 18px; }
.project p { margin: 0; color: #3c4856; font-size: 15.5px; }
.project .meta { display: block; margin-top: 12px; }

/* ---------- Lábléc ---------- */
.footer { background: #082a46; color: #bcd0e2; padding: 56px 0 0; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h2 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand small { color: #9fb7cc; }
.footer .bottom { margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }

/* ---------- Belső oldal ---------- */
.page-head { background: linear-gradient(120deg, var(--navy), #134d7c); color: #fff; padding: 44px 0 40px; }
.page-head h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 6px 0 0; }
.crumbs { font-size: 14px; color: #b9cfe2; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-row {
  display: grid; grid-template-columns: 200px 1fr; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.news-row .thumb { position: relative; display: grid; place-items: center; min-height: 150px; }
.news-row .thumb svg { width: 48px; height: 48px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.news-row .body { padding: 20px 24px; }
.news-row h2 { font-size: 21px; margin: 4px 0 8px; }
.news-row h2 a { color: var(--navy); text-decoration: none; }
.news-row h2 a:hover { color: var(--blue); text-decoration: underline; }
.news-row p { margin: 0 0 12px; color: #3c4856; }
.news-row .foot { display: flex; gap: 18px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.side-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.side-box h3 { font-size: 18px; }
.side-box ul { margin: 0; padding-left: 18px; }

/* ---------- Reszponzív ---------- */
/* 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+4) > .sub { left: auto; right: 0; }
@media (max-width: 1320px) {
  .nav a, .nav button.sub-toggle { padding: 10px 9px; font-size: 15px; }
}
@media (max-width: 1100px) {
  .quick ul { grid-template-columns: repeat(3, 1fr); }
  .tour-grid { grid-template-columns: repeat(3, 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 14px;
    border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
    font: 600 15px var(--font); color: var(--navy); cursor: pointer;
  }
  .nav-toggle svg { 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 - 84px); overflow: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; padding: 10px 20px 20px; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav .sub, .nav .sub.cols { 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 .has-sub > a::after { display: none; }
}
@media (max-width: 960px) {
  .main-grid { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar .contact .addr { display: none; }
  .news-card .thumb { aspect-ratio: 16 / 5; }
  .news-card .thumb svg { width: 40px; height: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar .contact .mail { display: none; }
  .topbar .wrap { flex-wrap: nowrap; }
  /* mobilon csak az ikon látszik, a felirat a képernyőolvasónak megmarad */
  .kontraszt-gomb { padding: 5px 7px; }
  .kontraszt-gomb span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .brand strong { font-size: 17px; }
  .brand img { width: 42px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 120px; }
  .btn-ghost { margin: 10px 0 0; }
  .quick ul { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quick a { padding: 16px 14px; }
  .quick small { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr 1fr; }
  .tour-grid a { padding: 12px; font-size: 14.5px; }
  .news-row { grid-template-columns: 1fr; }
  .news-row .thumb { min-height: 110px; }
  .footer .cols { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .section-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 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: 300px;
  background: #fff; border-top-left-radius: 10px; overflow: hidden;
  box-shadow: 0 -2px 14px rgba(11, 53, 87, .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á */
body.van-infoblokk { padding-bottom: 90px; }
@media (max-width: 640px) {
  .infoblokk { width: 200px; }
  body.van-infoblokk { padding-bottom: 60px; }
  .nav.open { padding-bottom: 70px; }
}

/* ---------- Támogatói logók a főoldalon: a pályázati kártyákkal azonos rácsban és méretben ---------- */
.projects { grid-auto-rows: 1fr; }   /* minden sor (kártyák és logók) egyforma magas */
/* az „a.project { display: block }” szabálynál erősebb választó kell, különben nem lesz középen */
a.project.project-logo { display: flex; align-items: center; justify-content: center; border-top: 0; }
.project-logo img { max-width: 100%; max-height: 150px; width: auto; height: auto; object-fit: contain; }

/* ---------- Szálláshelyek ---------- */
.lead-text { max-width: 70ch; color: #3c4856; margin: 0 0 26px; font-size: 18px; }
.szallas-racs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.szallas-kartya { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s; }
.szallas-kartya:hover { transform: translateY(-3px); }
/* a kép mindig 4:3-as keretben, kivágva – az álló vagy kollázs képek se nyújtsák meg a kártyát */
.szallas-kep { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #dcefe3, #bfe0cb); display: grid; place-items: center; color: var(--green); }
.szallas-kep img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.szallas-kep svg { width: 48px; height: 48px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.szallas-adat { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.szallas-adat strong { color: var(--navy); font-size: 18px; line-height: 1.3; }
.szallas-kartya:hover strong { color: var(--blue); text-decoration: underline; }
.szallas-adat small { display: flex; gap: 7px; align-items: flex-start; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.szallas-adat small svg { width: 15px; height: 15px; flex: none; margin-top: 2px; fill: var(--green); }
.galeria-cim { font-size: 20px; margin: 28px 0 12px; }
.galeria { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 40%), 1fr)); gap: 10px; }
.galeria a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; }
.galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.galeria a:hover img { transform: scale(1.04); }
.szallas-elerhetoseg dd { overflow-wrap: anywhere; }
.tourism-gombok { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.tourism-gombok .btn { margin: 0; }

/* ---------- Kiemelt felhívás egy oldal tetején (pl. elektronikus ügyintézés) ---------- */
.callout { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--blue-soft); border-left: 5px solid var(--blue); border-radius: 12px; padding: 18px 22px; margin: 0 0 26px; }
.callout h2 { font-size: 19px; margin: 0 0 4px; }
.callout p { margin: 0; color: #3c4856; max-width: 60ch; }
.callout .btn { 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; }

/* ---------- Belső oldalak tartalma ---------- */
.ikon { display: inline-block; }
.page-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; }
.page-narrow { max-width: 900px; }
.prose-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px; 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: 10px; margin: .5em 0; }
.prose figure { margin: 1.2em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); color: var(--navy); }
.prose blockquote { margin: 0 0 1em; padding: 4px 18px; border-left: 4px solid var(--gold); color: #3c4856; }
.prose iframe { max-width: 100%; border: 0; border-radius: 10px; }
.prose .doc-item { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 14px; }
.prose .doc-item h3 { margin-top: 0; }
.prose .cta { margin: 26px 0; }
.prose .cta .btn { color: #fff; text-decoration: none; }
.lead-img { margin: 0 0 24px; }
.lead-img img { width: 100%; border-radius: 12px; }
.article-meta { margin: 0 0 18px; font-weight: 600; }
.back { margin: 28px 0 0; }

.side-nav { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 104px; }
.side-nav h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: 10px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav ul ul { padding-left: 14px; border-left: 2px solid var(--line); margin: 4px 0 6px 12px; }
.side-nav a { display: block; padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--navy); font-size: 15.5px; line-height: 1.35; }
.side-nav a:hover { background: var(--bg); }
.side-nav a[aria-current] { background: var(--blue-soft); color: var(--blue); font-weight: 600; }

.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: 12px; text-decoration: none; color: var(--navy); transition: border-color .15s, background .15s; }
.attachments a:hover { border-color: var(--blue); background: var(--blue-soft); }
.attachments svg { width: 28px; height: 28px; flex: none; stroke: var(--blue); fill: none; stroke-width: 1.6; }
.attachments span { display: flex; flex-direction: column; min-width: 0; }
.attachments strong { overflow-wrap: anywhere; font-weight: 600; }
.attachments small { color: var(--muted); }

.list-title { font-size: 22px; margin: 0 0 14px; }
.list-title ~ .list-title { margin-top: 36px; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event-list li { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 14px 18px; }
.event-list a { font-weight: 600; font-size: 17px; color: var(--navy); text-decoration: none; }
.event-list a:hover { color: var(--blue); text-decoration: underline; }
.date-badge.past .m { background: #8a97a6; }
.empty { background: #fff; border-radius: 12px; padding: 18px; color: var(--muted); }
.event-facts { display: flex; gap: 18px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 16px; margin-bottom: 24px; }
.event-facts .date-badge { flex-basis: 66px; }
.event-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.event-facts dt { font-weight: 600; color: var(--navy); }
.event-facts dd { margin: 0; }
.badge-past { display: inline-block; margin-left: 6px; font-size: 12.5px; background: #e4e8ed; color: #4a5664; padding: 1px 8px; border-radius: 99px; }

.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; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.prose .service-card { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; transition: transform .15s, box-shadow .15s; }
.prose .service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prose .service-card img { margin: 0; border-radius: 0; aspect-ratio: 1; object-fit: cover; width: 100%; }
.service-card span { padding: 12px 14px; line-height: 1.35; }

.news-card time { font-size: 13.5px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.pager a { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); text-decoration: none; font-weight: 600; }
.pager a[aria-current] { background: var(--blue); color: #fff; }
a.project { display: block; text-decoration: none; color: inherit; transition: transform .15s; }
a.project:hover { transform: translateY(-3px); }
a.project .meta { color: var(--blue); font-weight: 600; }

@media (max-width: 960px) {
  .page-grid { grid-template-columns: 1fr; }
  .side-nav { position: static; order: 2; }
}
@media (max-width: 640px) {
  .prose-card { padding: 22px 18px; }
  .event-list li { padding: 12px 14px; }
}

/* ---------- 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 kapcsoló: assets/js/kontraszt.js. A !important szabályok a lap végén mindent felülírnak.
   Forrás: onkormanyzati-web-skill, kiegeszitok/akadalymentes-nezet. */

/* 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. Sarudi rész: a pusztán díszítő elemek eltűnnek, a kártyák és szakaszok határát sárga keret jelzi */
html.kontraszt .hero img.bg, html.kontraszt .hero::after, html.kontraszt .tourism img.bg, html.kontraszt .tourism::before { display: none !important; }
html.kontraszt .hero, html.kontraszt .tourism, html.kontraszt .page-head { border-bottom: 2px solid #ff0 !important; }
html.kontraszt .quick { margin-top: 32px; }   /* a kártyák ne lógjanak rá a (kép nélküli) nyitószakaszra */
html.kontraszt .quick a, html.kontraszt .news-card, html.kontraszt .news-row, html.kontraszt .events, html.kontraszt .office,
html.kontraszt .project, html.kontraszt .side-box, html.kontraszt .side-nav, html.kontraszt .prose-card, html.kontraszt .event-list li,
html.kontraszt .szallas-kartya, html.kontraszt .tour-grid a, html.kontraszt .callout, html.kontraszt .pager a, html.kontraszt .panel,
html.kontraszt .nav .sub, html.kontraszt .infoblokk { border: 2px solid #ff0 !important; }
html.kontraszt .hero .eyebrow, html.kontraszt .tag { border: 1px solid #ff0 !important; }
html.kontraszt .news-card:hover, html.kontraszt .quick a:hover, html.kontraszt .szallas-kartya:hover { transform: none; }
/* a menü lenyíló-nyila keretből rajzolt háromszög: csak a felső éle látszódjon */
html.kontraszt .nav .has-sub > a::after { border-color: transparent !important; border-top-color: #0ff !important; }
/* a CSS-ben színezett ikonok: szövegben sárgák, linkben türkizek */
html.kontraszt .events h2 svg { stroke: #ff0 !important; }
html.kontraszt .quick .ico svg, html.kontraszt .tour-grid svg, html.kontraszt .attachments svg { stroke: #0ff !important; }
html.kontraszt .topbar svg, html.kontraszt .szallas-adat small svg { fill: #ff0 !important; }
html.kontraszt .topbar a svg, html.kontraszt .footer .social svg { fill: #0ff !important; color: #0ff !important; }
