/* VCSGK – mobilközpontú, akadálymentességre (WCAG 2.1 AA) tervezett stíluslap */
:root {
  color-scheme: light;
  /* VCSGK arculati színpaletta (Színpaletta_VCSGK.pdf) – világos háttérre */
  --navy: #0f3d5e;            /* Sötétkék: szöveg, menü, hivatkozás (11,3:1 fehéren) */
  --navy-deep: #0f3d5e;
  --teal: #1f9e7e;            /* Zöld: csak díszítés/grafika (3,4:1) – szövegnek nem használjuk */
  --teal-dark: #1f7f66;       /* Sötétzöld: gombok, aktív menü, kiemelés (4,9:1 fehérrel) */
  --amber: #c77a2a;           /* Borostyán: csak díszítő vonal/grafika */
  --slate: #5b7183;           /* Szürkéskék: másodlagos szöveg, keretek (5,1:1) */
  --ink: #0f3d5e;
  --muted: #5b7183;
  --pale: #f4f7f9;            /* Kiegészítő háttér */
  --line: #cfe0ea;
  --white: #fff;
  --focus: #0f3d5e;
  /* Sötét háttérre (a sötétkék felületeken) */
  --on-dark-green: #5fd3ae;
  --on-dark-green-soft: #8fe3c6;
  --on-dark-amber: #f0b46a;
  --on-dark-blue: #cfe0ea;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 61, 94, .12);
  --font-scale: 1;
}
/* Sötét felületeken a fókuszkeret világos, világos felületeken sötét (min. 3:1 kontraszt). */
.main-nav, .hero, .community-section, .site-footer { --focus: #f0b46a; }

* { box-sizing: border-box; }
html {
  font-size: calc(100% * var(--font-scale));
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  -webkit-text-size-adjust: 100%;
}
html[data-font="large"] { --font-scale: 1.12; }
html[data-font="larger"] { --font-scale: 1.25; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 0 56px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; z-index: 1000; top: 8px; left: 8px;
  transform: translateY(-200%); padding: 12px 18px; border-radius: 8px;
  background: #fff; color: var(--navy); font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

/* Felső sáv */
.utility-bar { background: var(--pale); border-bottom: 1px solid var(--line); }
.utility-inner { min-height: 46px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 20px; padding-block: 6px; }
.utility-contact { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.utility-contact a { display: inline-block; padding: 4px 0; font-size: .9rem; font-weight: 700; }
.accessibility-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.tool-label { color: var(--muted); font-size: .88rem; }
.text-size-button, .contrast-button {
  min-width: 36px; min-height: 36px; padding: 4px 9px; border: 1px solid var(--slate);
  border-radius: 7px; background: #fff; color: var(--navy); font-weight: 700;
}
.text-size-large { font-size: 1.15em; }
.text-size-larger { font-size: 1.3em; }
.text-size-button[aria-pressed="true"], .contrast-button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.contrast-button { font-size: .85rem; }

/* Fejléc */
.site-header { background: #fff; }
.header-main { min-height: 98px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-block: 16px; }
.brand { display: inline-flex; flex: none; align-items: center; text-decoration: none; border-radius: 6px; }
.brand-logo { display: block; width: clamp(230px, 27vw, 340px); height: auto; }
.header-contact { flex: 1 1 220px; display: grid; gap: 2px; padding-left: 24px; border-left: 3px solid var(--amber); font-size: .93rem; line-height: 1.5; }
.header-contact a { font-weight: 700; }
.search-form { flex: 0 1 300px; display: flex; }
.search-form input { min-width: 0; flex: 1; padding: 11px 13px; border: 1px solid var(--slate); border-right: 0; border-radius: 8px 0 0 8px; color: var(--ink); background: #fff; }
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-form button { width: 48px; border: 0; border-radius: 0 8px 8px 0; background: var(--navy); color: #fff; }
.search-form button svg { width: 22px; height: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; }

/* Főmenü */
.main-nav { background: var(--navy); }
.nav-inner { display: flex; align-items: stretch; }
.nav-list { display: flex; flex-wrap: wrap; align-items: stretch; }
.nav-list a { display: flex; align-items: center; min-height: 52px; padding: 12px 20px; color: #fff; font-weight: 700; font-size: .94rem; text-decoration: none; }
.nav-list a:hover { background: #27506e; text-decoration: underline; text-decoration-thickness: 2px; }
.nav-list a.active { background: var(--teal-dark); box-shadow: inset 0 -4px 0 var(--on-dark-amber); }
.menu-toggle { display: none; }

/* Nyitókép */
.hero { position: relative; min-height: 390px; overflow: hidden; display: flex; align-items: center; background: var(--navy-deep); color: #fff; }
.hero-image { position: absolute; inset: 0; background-image: url('../images/hero.jpg'); background-size: cover; background-position: center 48%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,61,94,.97) 0%, rgba(15,61,94,.9) 40%, rgba(15,61,94,.55) 70%, rgba(15,61,94,.25) 100%); }
.hero-content { position: relative; z-index: 1; padding-block: 52px; }
.hero h1 { max-width: 640px; margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; letter-spacing: -.03em; }
.hero-lead { max-width: 560px; margin-bottom: 24px; font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 800; text-decoration: none; text-align: center; }
.button-primary { background: var(--teal-dark); color: #fff; border: 2px solid var(--teal-dark); }
.button-primary:hover { background: var(--navy); border-color: var(--navy); }
/* Sötétkék felületen a világoszöld gomb (a paletta sötét hátteres színe) */
.hero .button-primary, .community-section .button-primary { background: var(--on-dark-green); border-color: var(--on-dark-green); color: var(--navy); }
.hero .button-primary:hover, .community-section .button-primary:hover { background: #97e2ca; border-color: #97e2ca; }
.button-light { background: transparent; color: #fff; border: 2px solid #fff; }
.button-light:hover { background: rgba(255,255,255,.16); }
.button-full { width: 100%; }

/* Gyors elérés */
.quick-section { padding-block: 28px 52px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.quick-card { display: flex; height: 100%; min-height: 190px; flex-direction: column; align-items: center; padding: 22px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--pale); color: var(--ink); text-align: center; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-card:hover .quick-title { text-decoration: underline; text-decoration-thickness: 2px; }
.quick-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 50%; background: var(--navy); color: #fff; }
.quick-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quick-title { font-size: 1.08rem; font-weight: 800; color: var(--navy); }
.quick-description { margin-top: 5px; color: var(--muted); font-size: .93rem; line-height: 1.45; }

/* Szakaszfejlécek */
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 20px; margin-bottom: 20px; }
.section h2, .section-heading h2, .help-card h2 { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; }
.text-link { font-weight: 800; }

/* Hírek */
.news-section { padding-block: 4px 58px; }
.news-layout { display: block; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card { position: relative; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(15,61,94,.06); }
.news-image { overflow: hidden; border-radius: 11px 11px 0 0; background: var(--pale); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card-content { padding: 16px; }
.news-card time { color: var(--muted); font-size: .85rem; }
.news-card h3 { margin: 6px 0; font-size: 1.08rem; line-height: 1.35; }
.news-card h3 a, .service-card h4 a { color: var(--navy); }
.news-card p { color: var(--muted); font-size: .94rem; }
/* Teljes kártya kattintható, de csak egy link van a kártyában. */
.news-card h3 a::after, .service-card h4 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.news-card a:focus-visible, .service-card a:focus-visible { outline: none; }
.news-card a:focus-visible::after, .service-card a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.news-card:hover h3 a, .service-card:hover h4 a { text-decoration-thickness: 2px; }

.help-card { padding: 24px; border: 1px solid var(--line); border-top: 6px solid var(--amber); border-radius: var(--radius); background: var(--pale); }
.help-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.5rem; font-weight: 800; }
.help-card h2 { font-size: 1.45rem; }
.help-card p { margin: 8px 0 16px; color: var(--muted); }

/* Szolgáltatások */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { position: relative; padding: 20px 20px 18px; border: 1px solid var(--line); border-left: 6px solid var(--teal-dark); border-radius: 10px; background: #fff; }
.service-card h4 { margin-bottom: 6px; font-size: 1.1rem; line-height: 1.3; }
.service-card p { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* Nyitvatartás */
.hours-table { width: 100%; border-collapse: collapse; background: #fff; }
.hours-table th, .hours-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.hours-table thead th { background: var(--navy); color: #fff; }
.hours-table tbody th { background: var(--pale); font-weight: 700; width: 38%; }
.note { margin-top: 14px; color: var(--muted); font-size: .95rem; }

/* Rólunk */
.about { padding-top: 48px; }
.about > * { max-width: 920px; }
.about h2 { margin-bottom: 14px; }
.about > p { margin-bottom: 14px; }
.about-list { display: grid; gap: 12px; }
.about-list li { padding-left: 16px; border-left: 4px solid var(--teal); }

/* Idézet + hivatkozások */
.community-section { position: relative; overflow: hidden; margin-bottom: 56px; background: var(--navy-deep); color: #fff; }
.community-backdrop { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,61,94,.95), rgba(15,61,94,.88)), url('../images/community.jpg') center 50% / cover; }
.community-content { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 36px; padding-block: 38px; }
.community-quote { max-width: 560px; }
.quote-mark { display: block; color: var(--on-dark-green); font-size: 4.5rem; line-height: .8; font-weight: 800; }
.community-quote blockquote p { margin: 8px 0; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; line-height: 1.3; }
.community-quote figcaption { color: var(--on-dark-blue); }
.community-links { display: grid; gap: 10px; min-width: min(300px, 100%); }
.community-links a { display: block; padding: 14px 16px; border: 1px solid rgba(255,255,255,.5); border-radius: 10px; color: #fff; text-decoration: none; }
.community-links a:hover { background: rgba(255,255,255,.14); }
.community-links strong { display: block; text-decoration: underline; text-underline-offset: .2em; }
.community-links span { font-size: .9rem; color: var(--on-dark-blue); }

/* Elérhetőségek */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--pale); }
.contact-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.contact-card dl { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: 6px 16px; }
.contact-card dt { font-weight: 700; }

/* Keresőoldal */
.search-results { padding-top: 32px; }
.search-results h1 { margin-bottom: 16px; font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.result-list { margin-top: 20px; display: grid; gap: 14px; max-width: 820px; }
.result-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; }
.result-item h2 { margin-bottom: 2px; font-size: 1.2rem; }
.result-type { color: var(--muted); font-size: .85rem; }

/* Lábléc */
.site-footer { background: var(--navy); color: #fff; border-top: 5px solid var(--on-dark-amber); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.footer-logo { display: block; width: clamp(230px, 28vw, 340px); height: auto; }
.footer-brand strong { display: block; font-size: 1.35rem; }
.footer-brand small { display: block; color: var(--on-dark-blue); font-size: .85rem; line-height: 1.35; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-links a, .footer-bottom a { color: #fff; font-size: .9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 12px 18px; border-top: 1px solid rgba(207,224,234,.4); }
.footer-bottom p { color: var(--on-dark-blue); font-size: .88rem; }

/* Nagy kontraszt (a html elemen): fekete alap, sárga kiemelések, fehér szöveg */
html.high-contrast { color-scheme: dark; --ink: #fff; --muted: #fff; --navy: #ffe600; --navy-deep: #000; --teal: #ffe600; --teal-dark: #000; --pale: #000; --line: #fff; --focus: #4dd0ff; }
html.high-contrast .main-nav, html.high-contrast .hero, html.high-contrast .community-section, html.high-contrast .site-footer { --focus: #4dd0ff; }
html.high-contrast body, html.high-contrast .site-header { background: #000; color: #fff; }
html.high-contrast .skip-link { background: #ffe600; color: #000; }
html.high-contrast .utility-bar { background: #000; border-bottom: 2px solid #fff; }
html.high-contrast .text-size-button, html.high-contrast .contrast-button { background: #000; color: #ffe600; border: 2px solid #ffe600; }
html.high-contrast .text-size-button[aria-pressed="true"], html.high-contrast .contrast-button[aria-pressed="true"] { background: #ffe600; color: #000; }
html.high-contrast .search-form input { background: #000; color: #fff; border: 2px solid #fff; border-right: 0; }
html.high-contrast .search-form button { background: #ffe600; color: #000; }
html.high-contrast .main-nav { background: #000; border-block: 2px solid #ffe600; }
html.high-contrast .nav-list a, html.high-contrast .menu-toggle { color: #ffe600; }
html.high-contrast .menu-toggle { background: #000; border: 2px solid #ffe600; }
html.high-contrast .nav-list a:hover, html.high-contrast .nav-list a.active { background: #ffe600; color: #000; }
html.high-contrast .nav-list a.active { text-decoration: underline; text-decoration-thickness: 3px; }
html.high-contrast .hero { background: #000; border-bottom: 2px solid #ffe600; }
html.high-contrast .hero-overlay { background: rgba(0,0,0,.92); }
html.high-contrast .hero h1 { color: #ffe600; }
html.high-contrast .button-primary { background: #ffe600; border-color: #ffe600; color: #000; }
html.high-contrast .button-primary:hover { background: #fff; border-color: #fff; }
html.high-contrast .button-light { border-color: #fff; color: #fff; }
html.high-contrast .button-light:hover { background: #fff; color: #000; }
html.high-contrast .quick-card, html.high-contrast .contact-card, html.high-contrast .news-card,
html.high-contrast .service-card, html.high-contrast .result-item { background: #000; border: 2px solid #fff; }
html.high-contrast .service-card { border-left: 8px solid #ffe600; }
html.high-contrast .quick-card:hover, html.high-contrast .contact-card:hover { border-color: #ffe600; }
html.high-contrast .quick-icon { background: #ffe600; color: #000; }
html.high-contrast .service-group { background: #000; border: 2px solid #fff; border-top: 10px solid #ffe600; }
html.high-contrast .hours-table, html.high-contrast .hours-table tbody th { background: #000; }
html.high-contrast .hours-table th, html.high-contrast .hours-table td { border: 2px solid #fff; }
html.high-contrast .hours-table thead th { background: #ffe600; color: #000; }
html.high-contrast .community-section { background: #000; border-block: 2px solid #ffe600; }
html.high-contrast .community-backdrop { background: #000; }
html.high-contrast .community-links a { border: 2px solid #fff; }
html.high-contrast .community-links a:hover { background: #ffe600; color: #000; }
html.high-contrast .community-links a:hover span, html.high-contrast .community-links a:hover strong { color: #000; }
html.high-contrast .community-quote figcaption, html.high-contrast .community-links span { color: #fff; }
html.high-contrast .site-footer { background: #000; border-top: 2px solid #ffe600; }
html.high-contrast .footer-brand small, html.high-contrast .footer-bottom p { color: #fff; }
html.high-contrast .footer-bottom { border-top-color: #fff; }
html.high-contrast a { text-decoration-thickness: 2px; }
html.high-contrast .brand-logo { background: #fff; padding: 4px; border-radius: 6px; box-sizing: border-box; }

/* Tablet */
@media (max-width: 900px) {
  .nav-list a { padding-inline: 14px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-layout { grid-template-columns: 1fr; }
  .community-content { align-items: flex-start; flex-direction: column; }
  .community-links { width: 100%; }
}

/* Mobil */
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-main { min-height: auto; padding-block: 14px; gap: 12px; }
  .header-contact { flex-basis: 100%; padding-left: 14px; }
  .search-form { flex: 1 1 100%; }
  .nav-inner { display: block; }
  .nav-list { flex-direction: column; padding-bottom: 8px; }
  .nav-list a { min-height: 48px; padding-inline: 14px; border-top: 1px solid rgba(255,255,255,.2); }
  /* Menügomb és összecsukás csak akkor, ha a JavaScript fut – nélküle a menü látható marad. */
  .js .menu-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 10px 0; border: 0; background: transparent; color: #fff; text-align: left; font-weight: 800; }
  .menu-icon { font-size: 1.35rem; }
  .js .nav-list { display: none; }
  .js .nav-list.is-open { display: flex; }
  .hero { min-height: 440px; align-items: end; }
  .hero-overlay { background: linear-gradient(0deg, rgba(15,61,94,.97) 0%, rgba(15,61,94,.9) 55%, rgba(15,61,94,.45) 100%); }
  .hero-content { padding-block: 48px 32px; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .quick-section { padding-block: 18px 38px; }
  .quick-grid { gap: 10px; }
  .quick-card { min-height: 180px; padding: 17px 11px 14px; }
  .quick-icon { width: 50px; height: 50px; }
  .quick-title { font-size: 1rem; }
  .quick-description { font-size: .88rem; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.has-image { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .news-card.has-image .news-image { border-radius: 11px 0 0 11px; }
  .news-card.has-image img { height: 100%; min-height: 150px; aspect-ratio: auto; }
  .news-card-content { padding: 12px; }
  .news-card h3 { font-size: 1rem; }
  .news-card p { font-size: .9rem; }
  .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-card dl { grid-template-columns: 1fr; gap: 0; }
  .contact-card dd { margin-bottom: 8px; }
  .hours-table th, .hours-table td { padding: 10px; }
  .hours-table tbody th { width: 42%; }
  .community-content { padding-block: 30px; gap: 24px; }
  .footer-main, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-direction: column; gap: 9px; }
}

/* Nagyon keskeny képernyő (320 px) */
@media (max-width: 390px) {
  .news-card.has-image { display: block; }
  .news-card.has-image .news-image { border-radius: 11px 11px 0 0; }
  .news-card.has-image img { min-height: 0; aspect-ratio: 16 / 9; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 0; display: grid; grid-template-columns: 48px 1fr; column-gap: 13px; text-align: left; align-items: center; }
  .quick-icon { grid-row: span 2; width: 46px; height: 46px; margin: 0; }
  .quick-description { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
  .quick-icon, .button, .nav-list a.active, .news-card, .service-card { border: 1px solid ButtonText; }
  :focus-visible { outline: 3px solid Highlight; }
}
@media print {
  .utility-bar, .main-nav, .search-form, .skip-link, .hero-image, .hero-overlay, .community-backdrop { display: none !important; }
  .hero, .community-section, .site-footer { background: #fff; color: #000; }
}

/* Élethelyzet-kártyák, szolgáltatáscsoportok */
.quick-heading { margin-bottom: 18px; color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; }
.service-group { --group-accent: var(--navy); margin-bottom: 40px; padding: 26px 26px 28px; border: 1px solid var(--line); border-top: 10px solid var(--group-accent); border-radius: var(--radius); background: var(--pale); scroll-margin-top: 16px; }
.service-group:last-child { margin-bottom: 0; }
#szolgaltatasok-idosek { --group-accent: #1f7f66; }
#szolgaltatasok-csaladok { --group-accent: #c77a2a; }
#szolgaltatasok-tanacs { --group-accent: #0f3d5e; }
#szolgaltatasok-szervezet { --group-accent: #5b7183; }
.service-group h3 { color: var(--ink); font-size: clamp(1.5rem, 2.8vw, 1.9rem); line-height: 1.2; }
.group-lead { margin: 6px 0 20px; color: var(--muted); font-size: 1.05rem; }
.service-group .service-card { border-left-color: var(--group-accent); }
@media (max-width: 640px) { .service-group { padding: 18px 14px 20px; margin-bottom: 28px; } }

/* Hírek: lista és egy teljes hír */
.breadcrumb { padding-block: 18px 6px; font-size: .92rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; color: var(--muted); }
.breadcrumb [aria-current] { color: var(--muted); }
.page-title { color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; margin-bottom: 14px; }
.filter ul, .pagination ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.filter a, .pagination a { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px; border: 2px solid var(--navy); border-radius: 999px; color: var(--navy); font-weight: 700; text-decoration: none; background: #fff; }
.filter a:hover, .pagination a:hover { background: var(--pale); text-decoration: underline; }
.filter a[aria-current], .pagination a[aria-current] { background: var(--navy); color: #fff; }
.pagination { margin-top: 28px; }
.pagination .gap { align-self: center; padding: 0 4px; }
.news-grid-list { margin-bottom: 8px; }
.article { max-width: 820px; padding-bottom: 56px; }
.article-meta { color: var(--muted); font-weight: 700; }
.article-lead { font-size: 1.15rem; margin-bottom: 8px; }
.article-image img { max-width: 100%; }
.notice { margin: 0 0 22px; padding: 14px 16px; border: 2px solid var(--navy); border-left-width: 8px; border-radius: 10px; background: var(--pale); }
.article-image { margin: 0 0 24px; }
.article-image img { width: 100%; height: auto; border-radius: var(--radius); }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body > * + * { margin-top: 1em; }
.article-body h3, .article-body h4 { margin-top: 1.6em; color: var(--navy); line-height: 1.3; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body ul { list-style: disc; }
.article-body li + li { margin-top: .4em; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-body th, .article-body td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 36px 0 18px; }
.article-nav a { display: block; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.article-nav a:hover { border-color: var(--navy); }
.article-nav span { display: block; color: var(--muted); font-size: .9rem; }
.article-nav strong { color: var(--navy); }
.article-nav-older { grid-column: 2; text-align: right; }
@media (max-width: 640px) { .article-nav { grid-template-columns: 1fr; } .article-nav-older { grid-column: auto; text-align: left; } }
html.high-contrast .filter a, html.high-contrast .pagination a, html.high-contrast .article-nav a { background: #000; border-color: #fff; color: #ffe600; }
html.high-contrast .filter a[aria-current], html.high-contrast .pagination a[aria-current] { background: #ffe600; color: #000; }
html.high-contrast .notice { background: #000; border-color: #ffe600; }
html.high-contrast .article-nav span, html.high-contrast .article-lead { color: #fff; }

/* Szolgáltatás-aloldalak */
.service-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 36px; align-items: start; padding-bottom: 56px; }
.service-main { min-width: 0; }
.service-aside { display: grid; gap: 16px; }
.aside-card { padding: 20px; border: 1px solid var(--line); border-top: 6px solid var(--navy); border-radius: var(--radius); background: var(--pale); }
.aside-card h2 { margin-bottom: 10px; color: var(--ink); font-size: 1.2rem; line-height: 1.3; }
.aside-card p { margin-bottom: 14px; color: var(--muted); }
.aside-card dl { display: grid; gap: 2px 0; }
.aside-card dt { margin-top: 8px; font-weight: 700; }
.aside-card dt:first-child { margin-top: 0; }
.aside-list { display: grid; gap: 8px; }
.aside-list a { font-weight: 700; }
.service-main .article-body { max-width: 760px; }
@media (max-width: 900px) { .service-layout { grid-template-columns: 1fr; } }
html.high-contrast .aside-card { background: #000; border: 2px solid #fff; border-top: 8px solid #ffe600; color: #fff; }
html.high-contrast .aside-card h2, html.high-contrast .aside-card p { color: #fff; }
html.high-contrast .aside-card a { color: #ffe600; }

/* Arculati díszítőelemek (csak dekoráció – információt nem hordoznak) */
.section-heading h2::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 10px; background: var(--amber); border-radius: 2px; }
.quick-grid li:nth-child(1) .quick-card { border-top: 6px solid var(--teal); }
.quick-grid li:nth-child(2) .quick-card { border-top: 6px solid var(--amber); }
.quick-grid li:nth-child(3) .quick-card { border-top: 6px solid var(--navy); }
.quick-grid li:nth-child(4) .quick-card { border-top: 6px solid var(--slate); }
html.high-contrast .section-heading h2::after { background: #ffe600; }
html.high-contrast .quick-grid li .quick-card { border-top: 6px solid #ffe600; }
html.high-contrast .header-contact { border-left-color: #ffe600; }
html.high-contrast .help-card { background: #000; border: 2px solid #fff; border-top: 6px solid #ffe600; }
html.high-contrast .site-footer { border-top-color: #ffe600; }
html.high-contrast .nav-list a.active { box-shadow: none; }
.quick-heading::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 10px; background: var(--amber); border-radius: 2px; }
html.high-contrast .quick-heading::after { background: #ffe600; }

/* Térkép (Leaflet + OpenStreetMap) */
.map-block { margin-top: 4px; }
.map-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 20px; align-items: start; }
.map-area { min-width: 0; }
.map-placeholder, .map-canvas { min-height: 420px; height: clamp(440px, 80vh, 700px); border: 1px solid var(--line); border-radius: var(--radius); }
.map-placeholder { display: grid; place-content: center; justify-items: center; gap: 16px; padding: 28px; background: var(--pale); text-align: center; }
.map-placeholder p { max-width: 460px; color: var(--muted); }
.map-canvas { overflow: hidden; background: var(--pale); }
.map-note { margin-top: 8px; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.map-canvas[hidden], .map-placeholder[hidden], .map-show[hidden], .map-placeholder button[hidden] { display: none; }
.map-locations { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.map-location { padding: 18px 20px; border: 1px solid var(--line); border-left: 6px solid var(--teal-dark); border-radius: 12px; background: var(--pale); }
.map-location h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--ink); font-size: 1.25rem; line-height: 1.3; }
.map-badge { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .95rem; font-weight: 700; }
.map-location dl { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: 4px 16px; }
.map-location dt { font-weight: 700; }
.map-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .93rem; }
.map-actions a, .map-show { font-weight: 700; }
.map-show { padding: 6px 12px; border: 1px solid var(--slate); border-radius: 7px; background: #fff; color: var(--navy); font-size: .93rem; }
.map-show:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Leaflet illesztése az arculathoz és a WCAG-hoz.
   A .map-canvas előtag azért kell, mert a Leaflet saját stíluslapja később töltődik be, és azonos erősségnél felülírná ezeket. */
.map-canvas.leaflet-container { font: inherit; font-size: 1rem; color: var(--ink); background: var(--pale); }
.map-canvas.leaflet-container a { color: var(--navy); }
.map-canvas .leaflet-control-attribution { padding: 2px 6px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .8rem; }
.map-canvas .leaflet-bar { border: 2px solid var(--slate); }
.map-canvas .leaflet-bar a, .map-canvas .leaflet-bar a:hover { width: 40px; height: 40px; line-height: 40px; color: var(--navy); font-size: 1.3rem; }
.map-canvas .leaflet-popup-content-wrapper { border-radius: 10px; color: var(--ink); }
.map-canvas .leaflet-popup-content { margin: 14px 20px 14px 18px; font-size: 1rem; line-height: 1.5; }
.map-canvas .leaflet-popup-content p { margin: 3px 0; }
.map-canvas .leaflet-popup-content dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 0; font-size: .93rem; line-height: 1.4; }
.map-canvas .leaflet-popup-content dt { font-weight: 700; }
.map-canvas .leaflet-popup-content dd { margin: 0; }
.map-canvas.leaflet-container a.leaflet-popup-close-button { top: 4px; right: 4px; width: 34px; height: 34px; padding: 0; color: var(--navy); font: 1.7rem/34px Arial, sans-serif; text-align: center; }
.map-popup-title { display: block; margin-bottom: 6px; padding-right: 22px; color: var(--navy); font-size: 1.1rem; }
.vcsgk-pin { background: none; border: 0; }
.vcsgk-pin svg { display: block; filter: drop-shadow(0 2px 3px rgba(15, 61, 94, .45)); }
.map-canvas .leaflet-marker-icon:focus-visible, .map-canvas.leaflet-container:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.map-canvas .leaflet-marker-icon:focus-visible svg path { stroke: #f0b46a; }
@media (min-width: 901px) { .map-area { position: sticky; top: 16px; } }

@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .map-placeholder, .map-canvas { min-height: 460px; height: 460px; } .map-location dl { grid-template-columns: 1fr; gap: 0; } .map-location dd { margin-bottom: 6px; } .map-canvas .leaflet-popup-content dl { grid-template-columns: minmax(5.2rem, 36%) 1fr; font-size: .9rem; } }

html.high-contrast .map-placeholder, html.high-contrast .map-location, html.high-contrast .contact-rep { background: #000; border: 2px solid #fff; }
html.high-contrast .map-location { border-left: 8px solid #ffe600; }
html.high-contrast .map-badge { background: #ffe600; color: #000; }
html.high-contrast .map-show { background: #000; color: #ffe600; border: 2px solid #ffe600; }
html.high-contrast .map-canvas .leaflet-tile-pane { filter: grayscale(1) contrast(1.25); }
html.high-contrast .map-canvas.leaflet-container a { color: #00369c; }

/* Elérhetőségek: ellátottjogi képviselő kártya, Rólunk-link */
.contact-rep { margin-top: 20px; max-width: 760px; }
.about-more { margin-top: 20px; }

/* Szolgáltatás-oldal vége: térkép és telephely-kártya */
.service-map { padding-top: 8px; }
.map-locations-single .map-location h3 { margin-bottom: 12px; }

/* Akadálymentes bejárat: térkép-buborék és telephely-kártya (a szakasz legvégén) */
.location-access { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--line); }
.location-access h4 { margin: 0 0 4px; color: var(--ink); font-size: 1.02rem; line-height: 1.35; }
.location-access p { margin: 0 0 6px; }
.map-canvas .map-popup-access { margin-top: 10px; padding-top: 8px; border-top: 2px solid var(--line); }
.map-canvas .map-popup-access strong { display: block; margin-bottom: 2px; color: var(--navy); }
.map-canvas .map-popup-access p { margin: 0 0 4px; font-size: .93rem; line-height: 1.4; }
.map-canvas .leaflet-popup-scrolled { border-bottom: 0; }
html.high-contrast .location-access, html.high-contrast .map-canvas .map-popup-access { border-top-color: #000; }

html.high-contrast { --on-dark-green: #ffe600; --on-dark-green-soft: #ffe600; --on-dark-amber: #ffe600; --on-dark-blue: #fff; }

.brand-logo-light { display: none; }
html.high-contrast .brand-logo-default { display: none; }
html.high-contrast .brand-logo-light { display: block; }
html.high-contrast .brand-logo { background: transparent; padding: 0; border-radius: 0; }

html.high-contrast .map-canvas .leaflet-popup-content-wrapper,
html.high-contrast .map-canvas .leaflet-popup-tip { background: #000; color: #fff; }
html.high-contrast .map-canvas .leaflet-popup-content-wrapper { border: 2px solid #fff; }
html.high-contrast .map-canvas .leaflet-popup-content { color: #fff; }
html.high-contrast .map-canvas .map-popup-title { color: #ffe600; }
html.high-contrast .map-canvas.leaflet-container a { color: #ffe600; }
html.high-contrast .map-canvas.leaflet-container a.leaflet-popup-close-button { color: #ffe600; }
html.high-contrast .map-canvas .leaflet-control-attribution { background: #000; color: #fff; border: 1px solid #fff; }
html.high-contrast .map-canvas .leaflet-control-attribution a { color: #ffe600; }
html.high-contrast .map-canvas .leaflet-bar { border-color: #fff; }
html.high-contrast .map-canvas .leaflet-bar a, html.high-contrast .map-canvas .leaflet-bar a:hover { background: #000; color: #ffe600; border-bottom-color: #fff; }
html.high-contrast .location-access, html.high-contrast .map-canvas .map-popup-access { border-top-color: #fff; }
