/* =========================================================
   Gárdonykult – Gárdonyi Géza Könyvtár és Kulturális Központ
   Natív CSS, külső keretrendszer nélkül
   ========================================================= */

:root {
  --navy: #0c2645;
  --blue-900: #133a66;
  --blue-700: #1f5592;
  --blue-500: #3a78bd;
  --blue-300: #8db4de;
  --blue-100: #e3eef9;
  --blue-50:  #f3f8fd;
  --gold: #b88a1f;
  --gold-soft: #e9d49a;
  --gold-text: #8a650f;   /* arany szöveg világos háttéren – 5,3:1 */
  --gold-btn: #d4a537;    /* arany gomb sötétkék felirattal – 6,7:1 */
  --focus: #ffbf47;
  --ink: #1b2a3c;
  --muted: #56677d;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 38, 69, .10);
  --wrap: 1160px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 14px; z-index: 100; }

/* ---------- Felső sáv ---------- */
.topbar { background: var(--navy); color: var(--blue-100); font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: var(--blue-100); text-decoration: none; }
.topbar a:hover { color: var(--gold-soft); }
.topbar span + span { margin-left: 18px; }

/* ---------- Fejléc és menü ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--blue-100);
  box-shadow: 0 2px 14px rgba(12, 38, 69, .06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 100px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 84px; width: auto; }
.brand span { font-family: var(--serif); font-size: 1.45rem; color: var(--navy); font-weight: 600; letter-spacing: .01em; }
.brand:hover span { color: var(--blue-700); }

.nav-btn { display: none; cursor: pointer; padding: 14px 10px; border-radius: 8px; background: none; border: 0; }
.nav-btn .bars, .nav-btn .bars::before, .nav-btn .bars::after {
  display: block; width: 28px; height: 3px; background: var(--navy); position: relative; transition: .25s; border-radius: 2px;
}
.nav-btn .bars::before, .nav-btn .bars::after { content: ""; position: absolute; left: 0; }
.nav-btn .bars::before { top: -9px; }
.nav-btn .bars::after { top: 9px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; flex-wrap: nowrap; justify-content: flex-end; }
.main-nav a {
  display: block; padding: 10px 9px; text-decoration: none; white-space: nowrap;
  color: var(--navy); font-weight: 600; font-size: .93rem; border-radius: 8px;
  position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.main-nav a:hover { color: var(--blue-700); background: var(--blue-50); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--blue-700); }
.main-nav .ext::before { content: "↗ "; font-size: .8em; color: var(--gold); }

/* ---------- Oldalfejléc kép ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; background: var(--navy); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(12, 38, 69, .88) 0%, rgba(12, 38, 69, .55) 45%, rgba(12, 38, 69, .05) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding: 110px 0 100px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 16ch; margin-bottom: .35em; }
.hero p { font-size: 1.2rem; max-width: 46ch; color: var(--blue-100); }
.hero .eyebrow { color: var(--gold-soft); }
.hero--home .wrap { padding: 150px 0 140px; }
.hero--home h1 { max-width: 18ch; }
/* főoldali fotó: kékes színátmenet az olvashatóságért */
.hero--home img { object-position: center 55%; }
.hero--home::before {
  background:
    linear-gradient(90deg, rgba(10, 34, 66, .92) 0%, rgba(16, 52, 98, .78) 38%, rgba(25, 75, 140, .38) 68%, rgba(31, 85, 146, .12) 100%),
    linear-gradient(180deg, rgba(12, 38, 69, .35) 0%, rgba(12, 38, 69, 0) 30%, rgba(12, 38, 69, 0) 70%, rgba(12, 38, 69, .45) 100%);
}

.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 12px;
}

.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 700; background: var(--gold-btn); color: var(--navy); border: 2px solid var(--gold-btn); font-size: 1rem; cursor: pointer; font-family: var(--sans);
  transition: .2s;
}
.btn:hover { background: transparent; color: var(--gold-soft); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); margin-left: 8px; }
.btn--ghost:hover { border-color: var(--gold-soft); }
.btn--blue { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.btn--blue:hover { color: var(--blue-700); }

/* ---------- Szakaszok ---------- */
.section { padding: 80px 0; }
.section--tint { background: var(--blue-50); }
.section--navy { background: var(--navy); color: var(--blue-100); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section--navy .section-head p { color: var(--blue-300); }
.section--navy .eyebrow { color: var(--gold-soft); }
.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Intézménykártyák ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--blue-100);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(12, 38, 69, .16); color: var(--ink); }
.card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover figure img { transform: scale(1.05); }
.card .card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card .more { color: var(--blue-700); font-weight: 700; font-size: .95rem; }
.card .more::after { content: " →"; color: var(--gold); }

/* ---------- Két hasábos tartalom ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.layout > * { min-width: 0; }
.layout aside { position: sticky; top: 110px; display: grid; gap: 24px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }

.info-box {
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 26px; font-size: .98rem;
}
.info-box h3, .info-box .h3 { font-size: 1.2rem; padding-bottom: 10px; border-bottom: 2px solid var(--gold-soft); }
.info-box dl { margin: 0; }
.info-box dt { font-weight: 700; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-top: 12px; }
.info-box dd { margin: 2px 0 0; }
.info-box--navy { background: var(--navy); color: var(--blue-100); border: 0; }
.info-box--navy h3, .info-box--navy .h3 { color: var(--white); }
.info-box--navy a { color: var(--gold-soft); }

.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 6px 0; border-bottom: 1px dashed var(--blue-100); }
.hours td:last-child { text-align: right; font-weight: 600; }
.hours .closed td:last-child { color: var(--muted); font-weight: 400; }

/* ---------- Kiemelt jellemzők ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin: 28px 0; padding: 0; list-style: none; }
.features li {
  background: var(--white); border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 22px 22px 20px; position: relative; box-shadow: 0 4px 16px rgba(12, 38, 69, .05);
}
.features li::before {
  content: ""; display: block; width: 36px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft)); margin-bottom: 14px;
}
.features strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; font-weight: 600; }
.features span { color: var(--muted); font-size: .98rem; }
.section--tint .features li { background: var(--white); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { padding: 6px 0 6px 32px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px;
  border-left: 2px solid var(--blue-500); border-bottom: 2px solid var(--blue-500); transform: rotate(-45deg);
}

/* ---------- Idézet ---------- */
.quote {
  margin: 2em 0; padding: 30px 34px; border-left: 4px solid var(--gold);
  background: var(--blue-50); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--blue-900);
}
.quote cite { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--muted); }
.section--navy .quote { background: rgba(255, 255, 255, .06); color: var(--white); }
.section--navy .quote cite { color: var(--blue-300); }

/* ---------- Táblázatok ---------- */
.table-wrap { overflow-x: auto; margin: 1.2em 0 2em; border-radius: var(--radius); border: 1px solid var(--blue-100); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
table.data caption { text-align: left; padding: 16px 18px 6px; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); font-weight: 600; }
table.data th { background: var(--blue-900); color: var(--white); text-align: left; padding: 11px 16px; font-weight: 600; }
table.data td { padding: 10px 16px; border-top: 1px solid var(--blue-100); vertical-align: top; }
table.data tr:nth-child(even) td { background: var(--blue-50); }
table.data td.num { text-align: right; white-space: nowrap; font-weight: 600; color: var(--blue-900); }
table.data tr.group td {
  background: var(--blue-100) !important; font-weight: 700; color: var(--navy);
  font-family: var(--serif); font-size: 1.02rem;
}
.note { font-size: .92rem; color: var(--muted); }

/* ---------- Árak ---------- */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 22px 0 28px; }
.price {
  background: var(--white); border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 20px; text-align: center; box-shadow: 0 4px 14px rgba(12, 38, 69, .05);
}
.price b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--blue-700); font-weight: 600; }
.price small { color: var(--muted); font-size: .92rem; }

/* ---------- Lenyitható részek ---------- */
details {
  border: 1px solid var(--blue-100); border-radius: var(--radius); background: var(--white);
  margin: 0 0 14px; overflow: hidden;
}
summary {
  cursor: pointer; padding: 16px 22px; font-family: var(--serif); font-size: 1.15rem;
  font-weight: 600; color: var(--navy); list-style: none; position: relative; padding-right: 50px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; color: var(--gold); transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details[open] summary { border-bottom: 1px solid var(--blue-100); background: var(--blue-50); }
details .details-body { padding: 18px 22px 8px; }

/* ---------- Jövőkép / bemutatkozás ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 12 / 7; }
.split figure img { width: 100%; height: 100%; object-fit: cover; }
.sites { columns: 2; gap: 24px; padding: 0; list-style: none; margin: 1.2em 0; }
.sites li { break-inside: avoid; padding: 6px 0 6px 22px; position: relative; }
.sites li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.cta-band { background: linear-gradient(120deg, var(--blue-900), var(--blue-700)); color: var(--white); border-radius: var(--radius); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 .2em; }
.cta-band p { margin: 0; color: var(--blue-100); }

/* ---------- Kapcsolat ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.contact-card { background: var(--white); border: 1px solid var(--blue-100); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.contact-card .head { background: var(--navy); color: var(--white); padding: 18px 22px; }
.contact-card .head h3 { color: var(--white); margin: 0; font-size: 1.2rem; }
.contact-card .body { padding: 18px 22px 22px; font-size: .98rem; flex: 1; }
.contact-card .body p { margin: 0 0 6px; }
.contact-card .body b { color: var(--navy); }
.contact-card iframe { width: 100%; height: 210px; border: 0; display: block; filter: saturate(.75) hue-rotate(-8deg); }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--navy); color: var(--blue-300); padding: 64px 0 0; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .footer-h { color: var(--white); font-size: 1.1rem; margin-bottom: 14px; }
.site-footer address { font-style: normal; }
.copyright a { color: var(--blue-100); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--blue-100); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-logo { display: inline-block; margin-bottom: 14px; padding: 14px 22px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.95) 55%, rgba(255,255,255,.55) 80%, rgba(255,255,255,0)); }
.footer-logo img { height: 112px; width: auto; }
.social { display: flex; gap: 10px; margin-top: 14px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  display: grid; place-items: center; transition: .2s;
}
.social a:hover { background: var(--gold); border-color: var(--gold); }
.social svg { width: 18px; height: 18px; fill: var(--white); }
.copyright { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding: 20px 0; font-size: .88rem; text-align: center; }

/* ---------- Reszponzív ---------- */
@media (min-width: 1101px) {
  .brand span { display: none; }
}
@media (max-width: 1100px) {
  .main-nav ul { flex-wrap: wrap; }
  .nav-btn { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
    box-shadow: 0 12px 24px rgba(12, 38, 69, .12);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .main-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .main-nav a { padding: 12px 10px; border-bottom: 1px solid var(--blue-100); border-radius: 0; }
  .main-nav a::after { display: none; }
  .main-nav.open { max-height: 900px; border-bottom: 3px solid var(--gold); }
  .main-nav:not(.open) a { visibility: hidden; }
  .nav-btn[aria-expanded="true"] .bars { background: transparent; }
  .nav-btn[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
  .nav-btn[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
}
@media (max-width: 900px) {
  .layout, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .layout aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand img { height: 60px; }
  .brand span { font-size: 1.2rem; }
  .hero .wrap { padding: 70px 0 64px; }
  .hero--home .wrap { padding: 90px 0 80px; }
  .hero::before { background: linear-gradient(180deg, rgba(12, 38, 69, .55), rgba(12, 38, 69, .85)); }
  .hero--home::before { background: linear-gradient(180deg, rgba(12, 38, 69, .6), rgba(16, 52, 98, .82) 55%, rgba(12, 38, 69, .9)); }
  .btn--ghost { margin: 10px 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .sites { columns: 1; }
  .cta-band { padding: 30px 24px; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar .tb-right > span { display: none; }
  .topbar .wrap > div:first-child { display: none; }
}

/* =========================================================
   AKADÁLYMENTESSÉG – WCAG 2.1 AA, 2018. évi LXXV. törvény
   ========================================================= */
.sr-only {
  position: absolute !important; 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: -9999px; top: 8px; z-index: 200; font-weight: 700; }
.skip:focus { left: 16px; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 8px; outline: 3px solid var(--focus); }
main:focus { outline: none; }

/* jól látható fókusz minden interaktív elemen */
:focus-visible {
  outline: 3px solid var(--focus) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--navy);
  border-radius: 4px;
}

/* felső sáv: akadálymentes nézet gomb */
.tb-a11y {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 18px;
  background: var(--gold-btn); color: var(--navy); border: 0; border-radius: 999px;
  padding: 3px 12px 3px 4px; font: 700 .85rem/1.6 var(--sans); cursor: pointer;
}
.tb-a11y svg { width: 22px; height: 22px; }
.tb-a11y:hover { background: var(--white); }

/* lebegő egyezményes jel – minden oldalon */
.a11y-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--white);
  background: var(--blue-700); color: var(--white); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(12, 38, 69, .35);
  transition: transform .2s, background .2s;
}
.a11y-fab svg { width: 40px; height: 40px; }
.a11y-fab:hover { transform: scale(1.06); background: var(--navy); }

.a11y-panel {
  position: fixed; right: 20px; bottom: 94px; z-index: 95;
  width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow-y: auto;
  background: var(--white); color: var(--ink); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(12, 38, 69, .35); border: 1px solid var(--blue-100);
  font-size: 1rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--navy); color: var(--white); padding: 14px 16px; border-radius: 16px 16px 0 0;
  position: sticky; top: 0;
}
.a11y-head h2 { color: var(--white); font-family: var(--sans); font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.a11y-head h2 svg { width: 28px; height: 28px; }
.a11y-close { background: none; border: 2px solid rgba(255,255,255,.5); color: var(--white); width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.a11y-body { padding: 16px; display: grid; gap: 14px; }
.a11y-label { font-weight: 700; color: var(--navy); display: block; margin-bottom: 6px; }
.a11y-fs { display: flex; gap: 8px; align-items: center; }
.a11y-fs button {
  min-width: 52px; min-height: 44px; border-radius: 10px; border: 2px solid var(--blue-700);
  background: var(--white); color: var(--blue-900); font: 700 1.05rem var(--sans); cursor: pointer;
}
.a11y-fs button:hover { background: var(--blue-50); }
.a11y-fs output { margin-left: auto; font-weight: 700; color: var(--blue-900); }
.a11y-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-toggles button, .a11y-wide {
  text-align: left; min-height: 64px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--blue-100); background: var(--blue-50); color: var(--ink); font-family: var(--sans);
  display: flex; flex-direction: column; gap: 2px; width: 100%;
}
.a11y-toggles b, .a11y-wide b { font-size: .95rem; color: var(--navy); }
.a11y-toggles small, .a11y-wide small { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.a11y-toggles button:hover, .a11y-wide:hover { border-color: var(--blue-500); }
.a11y-toggles button[aria-pressed="true"], .a11y-wide[aria-pressed="true"] {
  background: var(--blue-700); border-color: var(--blue-700);
}
.a11y-toggles button[aria-pressed="true"] b, .a11y-toggles button[aria-pressed="true"] small,
.a11y-wide[aria-pressed="true"] b, .a11y-wide[aria-pressed="true"] small { color: var(--white); }
.a11y-toggles button[aria-pressed="true"] b::before { content: "✓ "; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--blue-100); padding-top: 12px; }
.a11y-reset { background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 999px; padding: 8px 18px; font: 700 .95rem var(--sans); cursor: pointer; }

/* ---- 1. Nagy kontraszt (vakbarát, sárga–fekete) ---- */
html.a11y-contrast body,
html.a11y-contrast body *:not(svg):not(path):not(circle):not(img):not(iframe) {
  background-color: #000 !important; background-image: none !important;
  color: #fff !important; border-color: #fff !important;
  box-shadow: none !important; text-shadow: none !important;
}
html.a11y-contrast a, html.a11y-contrast a * { color: #ff0 !important; text-decoration: underline !important; }
html.a11y-contrast .btn, html.a11y-contrast .tb-a11y, html.a11y-contrast .a11y-fab,
html.a11y-contrast .a11y-toggles button[aria-pressed="true"], html.a11y-contrast .a11y-wide[aria-pressed="true"] {
  background-color: #ff0 !important; color: #000 !important; border: 2px solid #ff0 !important;
}
html.a11y-contrast .btn *, html.a11y-contrast .tb-a11y *, html.a11y-contrast .a11y-toggles button[aria-pressed="true"] *,
html.a11y-contrast .a11y-wide[aria-pressed="true"] * { color: #000 !important; background: transparent !important; }
html.a11y-contrast .a11y-fab { color: #000 !important; }
html.a11y-contrast svg { fill: currentColor; }
html.a11y-contrast .social svg { fill: #ff0; }
html.a11y-contrast .hero img, html.a11y-contrast .card figure img, html.a11y-contrast .split figure img { opacity: .25; filter: grayscale(1); }
html.a11y-contrast .hero::before { background: rgba(0,0,0,.55) !important; }
html.a11y-contrast .card, html.a11y-contrast .info-box, html.a11y-contrast .features li, html.a11y-contrast details,
html.a11y-contrast .contact-card, html.a11y-contrast .table-wrap, html.a11y-contrast .price, html.a11y-contrast .a11y-panel { border: 2px solid #fff !important; }
html.a11y-contrast table.data th { border-bottom: 2px solid #ff0 !important; color: #ff0 !important; }
html.a11y-contrast .features li::before, html.a11y-contrast .sites li::before { background: #ff0 !important; }
html.a11y-contrast :focus-visible { outline-color: #ff0 !important; }
html.a11y-contrast .brand img, html.a11y-contrast .footer-logo img { background: #fff !important; border-radius: 8px; padding: 2px; }

/* ---- 2. Szürkeárnyalatos ---- */
html.a11y-gray .topbar, html.a11y-gray .site-header, html.a11y-gray main, html.a11y-gray .site-footer { filter: grayscale(1); }

/* ---- 3. Linkek kiemelése ---- */
html.a11y-links main a, html.a11y-links .site-footer a, html.a11y-links .main-nav a {
  text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px !important;
  background-color: #fff3a0 !important; color: #0a1f3d !important; outline: 1px solid #c9a800;
}
html.a11y-links .card { outline: 3px solid #c9a800; }

/* ---- 4. Könnyen olvasható betűtípus ---- */
html.a11y-readable body, html.a11y-readable body *:not(svg) {
  font-family: Verdana, Tahoma, Arial, sans-serif !important; font-style: normal !important;
}

/* ---- 5. Nagyobb térköz (WCAG 1.4.12 értékei) ---- */
html.a11y-spacing body *:not(svg) {
  line-height: 1.8 !important; letter-spacing: .12em !important; word-spacing: .16em !important;
}
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: 1.4em !important; }

/* ---- 6. Képek elrejtése ---- */
html.a11y-noimg .hero img, html.a11y-noimg .card figure, html.a11y-noimg .split figure,
html.a11y-noimg .contact-card iframe { display: none !important; }

/* ---- 7. Animációk leállítása (és a rendszerbeállítás tiszteletben tartása) ---- */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-motion .card:hover, html.a11y-motion .card:hover figure img { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover, .card:hover figure img { transform: none !important; }
}

/* ---- 8. Nagy egérmutató ---- */
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3 L6 40 L15 31 L22 46 L29 43 L22 28 L35 28 Z' fill='%23000' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") 6 3, auto !important;
}

/* ---- Nagy betűméretnél a menü tördelődjön ---- */
html.a11y-large .main-nav ul { flex-wrap: wrap; }
html.a11y-large .site-header .wrap { flex-wrap: wrap; padding: 8px 0; }

@media (max-width: 560px) {
  .a11y-fab { right: 14px; bottom: 14px; width: 56px; height: 56px; }
  .a11y-panel { right: 16px; bottom: 82px; }
  .a11y-toggles { grid-template-columns: 1fr; }
  .tb-a11y { margin-left: 0; }
}

/* nyomtatás */
@media print {
  .topbar, .site-header nav, .nav-btn, .a11y-fab, .a11y-panel, .hero img, iframe { display: none !important; }
  .hero { background: none; color: #000; } .hero h1, .hero p { color: #000; }
}

/* ---- 2026. november: javítások ---- */
.hero h1 .h1-sub { display: block; font-size: .5em; font-weight: 500; color: var(--blue-100); margin-top: .35em; }
.badge {
  display: inline-block; margin-left: 4px; padding: 1px 10px; border-radius: 999px;
  background: var(--gold-soft); color: var(--navy); font-style: normal; font-weight: 700; font-size: .82rem;
}
.note-strong {
  margin-top: 16px; padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--blue-50);
  border-radius: 0 10px 10px 0; font-weight: 600; color: var(--navy);
}
html.a11y-contrast .badge { border: 1px solid #fff !important; }

/* =========================================================
   Helytörténet · Archívum · Települési értéktár (2026. nov.)
   A képek eredeti színekkel jelennek meg – nincs színező réteg.
   ========================================================= */
/* ---- lenyíló menüpont ---- */
.main-nav .has-sub { position: relative; }
.sub-btn {
  display: flex; align-items: center; gap: 6px; padding: 10px 9px; background: none; border: 0; cursor: pointer;
  color: var(--navy); font: 600 .93rem var(--sans); border-radius: 8px; white-space: nowrap; position: relative;
}
.sub-btn:hover { color: var(--blue-700); background: var(--blue-50); }
.has-sub.on > .sub-btn { color: var(--blue-700); }
.has-sub.on > .sub-btn::after { content: ""; position: absolute; left: 9px; right: 24px; bottom: 4px; height: 2px; background: var(--gold); }
.caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.has-sub.open .caret { transform: rotate(-135deg) translateY(-2px); }
.main-nav .sub {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 250px; flex-direction: column;
  background: var(--white); border: 1px solid var(--blue-100); border-top: 3px solid var(--gold);
  border-radius: 0 0 12px 12px; box-shadow: 0 16px 30px rgba(12, 38, 69, .15); padding: 8px;
}
.main-nav .has-sub.open .sub { display: flex; }
@media (hover: hover) and (min-width: 1101px) { .main-nav .has-sub:hover .sub { display: flex; } }
.main-nav .sub a { padding: 10px 12px; }
.main-nav .sub a::after { display: none; }
.main-nav .sub a[aria-current="page"] { background: var(--blue-50); }
@media (max-width: 1100px) {
  .main-nav .sub { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--gold); border-radius: 0; margin: 0 0 6px 12px; padding: 0; min-width: 0; }
  .sub-btn { width: 100%; padding: 12px 10px; border-bottom: 1px solid var(--blue-100); border-radius: 0; justify-content: space-between; }
  .has-sub.on > .sub-btn::after { display: none; }
  .main-nav:not(.open) .sub-btn { visibility: hidden; }
}
@media (min-width: 1101px) and (max-width: 1360px) {
  .main-nav a, .sub-btn { padding-left: 6px; padding-right: 6px; font-size: .88rem; }
  .main-nav a::after { left: 6px; right: 6px; }
}

/* ---- oldalfejléc kép nélkül (az eredeti fotók színhűsége miatt) ---- */
.page-head { background: linear-gradient(120deg, var(--navy), var(--blue-900) 60%, var(--blue-700)); color: var(--blue-100); padding: 34px 0 40px; }
.page-head h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 6px 0 8px; max-width: 30ch; }
.page-head p { margin: 0; font-size: 1.1rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gold-soft); }
.crumbs a { color: var(--blue-100); }
.crumbs a:hover { color: var(--gold-soft); }
.crumbs [aria-current] { color: var(--blue-300); }
.section--tight { padding: 48px 0; }
.list-title { margin-top: 40px; }

/* ---- kártyarács (galériák, írások, értékek) ---- */
.gal-grid { list-style: none; margin: 24px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.gal-grid--small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gal-grid > li[hidden] { display: none; }
.gal-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--white); border: 1px solid var(--blue-100); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 16px rgba(12, 38, 69, .07); transition: transform .2s, box-shadow .2s;
}
.gal-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(12, 38, 69, .14); color: var(--ink); }
.gal-cover { display: block; aspect-ratio: 3 / 2; background: var(--blue-50); overflow: hidden; }
.gal-cover img { width: 100%; height: 100%; object-fit: cover; }
.no-img { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, var(--blue-50), var(--blue-50) 10px, var(--blue-100) 10px, var(--blue-100) 20px); }
.gal-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.gal-title { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.3; font-size: 1.05rem; }
.gal-meta { font-size: .88rem; color: var(--muted); }
.gal-teaser { font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- fotórács a galériákban ---- */
.photo-grid { list-style: none; margin: 20px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.photo-grid a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: var(--blue-50); position: relative; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid a:hover img { transform: scale(1.04); }
.gal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn--ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost-dark:hover { background: var(--navy); color: var(--white); }
.gal-text { max-width: 820px; }

/* nagyítás-jelző ikon */
a.zoom { position: relative; display: inline-block; cursor: zoom-in; }
.zoom-ico {
  position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(12, 38, 69, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 20px no-repeat;
  opacity: 0; transition: opacity .2s;
}
a.zoom:hover .zoom-ico, a.zoom:focus-visible .zoom-ico { opacity: 1; }
@media (hover: none) { .zoom-ico { opacity: .85; } }

/* ---- cikk / érték oldalak ---- */
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose figure { margin: 1.4em 0; }
.prose figure a.zoom { display: block; }
.prose figcaption { font-size: .92rem; color: var(--muted); margin-top: 6px; }
.lead-img { margin: 0 0 28px; }
.lead-img a.zoom { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.lead-img img { width: 100%; height: auto; display: block; }
.side-list ul { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 1px dashed var(--blue-100); }
.side-list a { display: block; padding: 9px 0; text-decoration: none; line-height: 1.35; }
.side-list a[aria-current] { font-weight: 700; color: var(--navy); }
.side-list a[aria-current]::before { content: "▸ "; color: var(--gold); }
.et-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: start; margin-bottom: 36px; }
.et-top .lead-img { margin: 0; }
.et-body { max-width: 860px; }
.rel-list { margin: 4px 0 0; padding-left: 18px; }
@media (max-width: 900px) { .et-top { grid-template-columns: minmax(0, 1fr); } }
.cta-band--light { background: var(--blue-50); color: var(--ink); border: 1px solid var(--blue-100); }
.cta-band--light h2 { color: var(--navy); }
.cta-band--light p { color: var(--muted); }

/* ---- lapozó ---- */
.pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 28px 0 0; justify-content: center; }
.pager a, .pager button {
  display: inline-block; min-width: 44px; min-height: 44px; padding: 10px 14px; text-align: center; border-radius: 10px;
  border: 1px solid var(--blue-100); background: var(--white); color: var(--blue-900); text-decoration: none; font: 600 .95rem var(--sans); cursor: pointer;
}
.pager a:hover, .pager button:hover { border-color: var(--blue-500); background: var(--blue-50); }
.pager [aria-current="page"] { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.pager .gap { padding: 10px 4px; color: var(--muted); }

/* ---- szűrők és katalógus ---- */
.cat-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.cat-filters--one { grid-template-columns: minmax(0, 520px); }
.cat-filters label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; font-size: .95rem; }
.cat-filters input, .cat-filters select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 2px solid var(--blue-100); border-radius: 10px;
  font: 1rem var(--sans); color: var(--ink); background: var(--white);
}
.cat-filters input:focus, .cat-filters select:focus { border-color: var(--blue-500); }
@media (max-width: 760px) { .cat-filters { grid-template-columns: 1fr; } }
.cat-table td { font-size: .95rem; }
.cat-sub { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.cat-more { background: var(--white); border: 2px solid var(--blue-700); color: var(--blue-900); border-radius: 8px; padding: 6px 12px; font: 600 .88rem var(--sans); cursor: pointer; white-space: nowrap; }
.cat-more[aria-expanded="true"] { background: var(--blue-700); color: var(--white); }
.cat-detail td { background: var(--blue-50) !important; }
.cat-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 4px 0; }
.cat-detail dt { font-weight: 700; color: var(--navy); }
.cat-detail dd { margin: 0; }
@media (max-width: 600px) { .cat-detail dl { grid-template-columns: 1fr; } .cat-detail dd { margin-bottom: 6px; } }

/* ---- képnagyító ---- */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(5, 12, 24, .94);
  display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center;
}
.lightbox[hidden] { display: none; }
.lb-fig { margin: 0; text-align: center; grid-column: 2; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; margin: 0 auto; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lb-fig figcaption { color: #e3eef9; margin-top: 12px; font-size: 1rem; padding: 0 10px; }
.lb-cnt { color: #8db4de; }
.lb-prev, .lb-next, .lb-close {
  background: rgba(255,255,255,.12); color: #fff; border: 2px solid rgba(255,255,255,.5); border-radius: 50%;
  width: 54px; height: 54px; font-size: 2rem; line-height: 1; cursor: pointer; justify-self: center;
}
.lb-prev:hover, .lb-next:hover, .lb-close:hover { background: var(--gold-btn); color: var(--navy); border-color: var(--gold-btn); }
.lb-prev { grid-column: 1; grid-row: 1; } .lb-next { grid-column: 3; grid-row: 1; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; font-size: 1.8rem; }
@media (max-width: 600px) {
  .lightbox { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; width: 50px; height: 50px; }
  .lb-prev { left: 18px; } .lb-next { right: 18px; }
  .lb-fig img { max-height: calc(100vh - 170px); }
}
html.a11y-contrast .lightbox { background: #000 !important; }
html.a11y-contrast .page-head { border-bottom: 2px solid #fff; }
