@import url('https://cdn.jsdelivr.net/npm/open-dyslexic@latest/open-dyslexic-regular.css');

/* ===== Akadálymentességi beállítások ===== */
body[data-font="atkinson"] { font-family:'Atkinson Hyperlegible',sans-serif; }
body[data-font="verdana"]  { font-family:Verdana,sans-serif; }
body[data-font="opendyslexic"] { font-family:'OpenDyslexic',sans-serif; }

body[data-fontsize="nagy"]      { font-size:1.25rem; }
body[data-fontsize="extranegy"] { font-size:1.5rem; }
body[data-fontsize="orias"]     { font-size:1.75rem; }

body[data-contrast="high-yellow"] { background:#000!important; color:#ffe600!important; }
body[data-contrast="high-yellow"] .card,
body[data-contrast="high-yellow"] .msg,
body[data-contrast="high-yellow"] .fonav,
body[data-contrast="high-yellow"] .labrész { background:#111!important; color:#ffe600!important; box-shadow:none; }
body[data-contrast="high-yellow"] a,
body[data-contrast="high-yellow"] .button-link { color:#ffe600!important; }
body[data-contrast="high-yellow"] button,
body[data-contrast="high-yellow"] input,
body[data-contrast="high-yellow"] select,
body[data-contrast="high-yellow"] textarea { background:#222!important; color:#ffe600!important; border-color:#ffe600!important; }

body[data-contrast="high-white"] { background:#000!important; color:#fff!important; }
body[data-contrast="high-white"] .card,
body[data-contrast="high-white"] .msg,
body[data-contrast="high-white"] .fonav,
body[data-contrast="high-white"] .labrész { background:#111!important; color:#fff!important; box-shadow:none; }
body[data-contrast="high-white"] a,
body[data-contrast="high-white"] .button-link { color:#fff!important; }
body[data-contrast="high-white"] button,
body[data-contrast="high-white"] input,
body[data-contrast="high-white"] select,
body[data-contrast="high-white"] textarea { background:#222!important; color:#fff!important; border-color:#fff!important; }

body[data-contrast="inverted"] { background:#fff!important; color:#000!important; }
body[data-contrast="inverted"] .card,
body[data-contrast="inverted"] .msg { background:#fff!important; color:#000!important; border:2px solid #000!important; box-shadow:none; }
body[data-contrast="inverted"] a,
body[data-contrast="inverted"] .button-link { color:#000!important; text-decoration:underline; }
body[data-contrast="inverted"] button { background:#000!important; color:#fff!important; }

body[data-linespacing="novelt"] { line-height:1.8; }
body[data-linespacing="dupla"]  { line-height:2.2; }
body[data-linespacing="extra"]  { line-height:2.6; }

/* ===== Alap ===== */
body { font-family:Arial,sans-serif; background:#f0f4f8; color:#111827; margin:0; font-size:18px; }
.wrap { max-width:900px; margin:0 auto; padding:24px; }
.card { background:#fff; border-radius:14px; padding:32px; margin:18px 0; box-shadow:0 1px 6px rgba(0,0,0,.08); }
h1,h2,h3 { line-height:1.25; }
.skip-link { position:absolute; left:-999px; top:0; background:#fff; padding:10px 16px; z-index:100; }
.skip-link:focus { left:8px; }

/* ===== Fejléc ===== */
.akta-header { display:flex; justify-content:space-between; align-items:center; background:#1e3a5f; color:#fff; min-height:60px; padding:8px 24px; font-size:18px; gap:12px; flex-wrap:wrap; }
.header-brand { color:#fff; text-decoration:none; font-weight:bold; font-size:20px; display:flex; align-items:center; gap:10px; }
.header-status { font-size:14px; opacity:.95; }

/* ===== Navigáció ===== */
.fonav { background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.fonav-inner { max-width:900px; margin:0 auto; padding:0 16px; display:flex; flex-wrap:wrap; gap:4px; }
.fonav a { padding:14px 14px; text-decoration:none; color:#1e3a5f; font-weight:bold; font-size:16px; border-bottom:3px solid transparent; }
.fonav a:hover { background:#f0f4f8; }
.fonav a.active { border-bottom-color:var(--akcent,#2563eb); }
.fonav a.nav-cta { color:#fff; background:var(--akcent,#2563eb); border-radius:8px; margin:8px 0; }
.fonav a:focus { outline:3px solid #93c5fd; outline-offset:-3px; }

.beallitas-sor { margin:4px 0 0; }

/* ===== Gombok ===== */
button, .button-link {
  display:block; width:280px; padding:14px 24px; border:0; border-radius:10px;
  background:var(--akcent,#2563eb); color:#fff; text-decoration:none; cursor:pointer;
  font-size:18px; font-weight:bold; margin:12px auto; text-align:center; box-sizing:border-box;
}
button:hover, .button-link:hover { filter:brightness(.92); }
button:focus, .button-link:focus { outline:3px solid #93c5fd; }
.button-link.small { width:auto; display:inline-block; padding:8px 16px; font-size:15px; margin:0 4px 0 0; }
.button-secondary { background:transparent; color:var(--akcent,#2563eb); border:2px solid var(--akcent,#2563eb); }
.button-del { width:auto; display:inline-block; background:#fee2e2; color:#b91c1c; border:1px solid #fca5a5; padding:6px 12px; border-radius:6px; font-size:14px; margin:0 4px 0 0; }
.gombsor { display:flex; flex-wrap:wrap; gap:10px; }
.gombsor .button-link, .gombsor button { margin:6px 0; }

/* ===== Űrlapok ===== */
label { display:block; margin:12px 0 0; font-weight:600; }
input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],input[type=tel],select,textarea {
  width:100%; padding:12px 14px; border:2px solid #d1d5db; border-radius:8px; font-size:17px; box-sizing:border-box; margin-top:4px; }
textarea { min-height:120px; }
input:focus,select:focus,textarea:focus { border-color:#1d4ed8; outline:3px solid #bfdbfe; }
.checkbox-sor { display:flex; gap:10px; align-items:flex-start; margin:14px 0; font-weight:400; }
.checkbox-sor input { width:20px; height:20px; margin-top:2px; }
fieldset { border:1px solid #d1d5db; border-radius:8px; padding:14px 18px; margin:16px 0; }
legend { font-weight:bold; padding:0 6px; }
fieldset label { display:flex; align-items:center; gap:10px; font-weight:400; cursor:pointer; }
.jelszo-sor { display:flex; gap:8px; align-items:center; }
.jelszo-sor input { flex:1; }
.jelszo-sor button { width:auto; padding:10px 14px; font-size:18px; background:transparent; border:1px solid #d1d5db; color:#111827; margin:4px 0; }

/* ===== Üzenetek ===== */
.msg { background:#fff; border-radius:8px; padding:16px; margin:14px 0; font-weight:bold; box-shadow:0 1px 6px rgba(0,0,0,.08); }
.msg.error   { background:#fee2e2; color:#7f1d1d; border-left:6px solid #b91c1c; }
.msg.success { background:#dcfce7; color:#14532d; border-left:6px solid #15803d; }
.msg.info    { background:#dbeafe; color:#1e3a8a; border-left:6px solid #2563eb; }

/* ===== Listák, táblázat ===== */
.lista { list-style:none; padding:0; }
.lista li { padding:12px 0; border-bottom:1px solid #e5e7eb; }
table.adat { width:100%; border-collapse:collapse; }
table.adat th, table.adat td { text-align:left; padding:10px; border-bottom:1px solid #e5e7eb; font-size:16px; }
table.adat th { background:#f0f4f8; }
.cimke { display:inline-block; padding:2px 10px; border-radius:999px; font-size:13px; font-weight:bold; }
.cimke.ok { background:#dcfce7; color:#14532d; }
.cimke.var { background:#fef9c3; color:#854d0e; }
.cimke.nem { background:#fee2e2; color:#7f1d1d; }

/* ===== Toborzó / hero ===== */
.hero { text-align:center; }
.hero .toborzo { font-size:1.15em; margin:18px 0; padding:16px; border-left:5px solid var(--akcent,#2563eb); background:#f8fafc; text-align:left; }

/* ===== Lábléc ===== */
.labrész { background:#fff; border-radius:14px; padding:24px 32px; margin:24px 0; box-shadow:0 1px 6px rgba(0,0,0,.08); font-size:15px; }
.lab-grid { display:flex; flex-wrap:wrap; gap:24px; justify-content:space-between; }
.lab-grid a { color:var(--akcent,#2563eb); }
.lab-alja { margin-top:16px; color:#6b7280; font-size:14px; }

.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; }

/* ===== Nyomtatás (PDF mentés) ===== */
@media print {
  .akta-header,.fonav,.labrész,.beallitas-sor,.gombsor,.no-print,.skip-link { display:none!important; }
  body { background:#fff; font-size:12pt; }
  .wrap { max-width:100%; padding:0; }
  .card { box-shadow:none; border:none; padding:0; margin:0; }
}
