@CHARSET "UTF-8";
/* ============================================================
   QualitySoft Bérkalkulátor — modern frontend (fintech look)
   Csak a body.bk-modern oldalak töltik be (index/atev a
   frontend-modern ágon). A régi évek a style.css-t használják.
   A kalkulátor-JS (functions_bk2026.js) minden id-ja/osztálya
   változatlan — ez a fájl csak megjelenést ad.
   ============================================================ */

body.bk-modern {
  --bk-bg:          #f5f7fa;
  --bk-card:        #ffffff;
  --bk-border:      #e6eaf0;
  --bk-line:        #eef1f5;
  --bk-text:        #23282d;
  --bk-muted:       #7c8590;
  --bk-blue:        #006496;  /* QualitySoft márka-kék */
  --bk-blue-dark:   #023A55;
  --bk-blue-bright: #29abe2;
  --bk-green:       #059669;  /* a nettó eredmény akcentszíne */
  --bk-green-bg:    #ecfdf5;
  --bk-amber-bg:    #fff8e6;
  --bk-radius:      16px;
  --bk-radius-sm:   10px;
  --bk-shadow:      0 1px 3px rgba(16,24,40,.07), 0 8px 24px rgba(16,24,40,.05);

  margin: 0;
  padding: 0;
  background: var(--bk-bg);
  color: var(--bk-text);
  font-family: "Segoe UI", "Open Sans", system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
body.bk-modern *,
body.bk-modern *::before,
body.bk-modern *::after { box-sizing: border-box; }

body.bk-modern a { color: var(--bk-blue); text-decoration: none; }
body.bk-modern a:hover { text-decoration: underline; }
body.bk-modern img { max-width: 100%; height: auto; }

.hidden { display: none; }

/* ---------- Fejléc + navigáció ---------- */
.bk-modern header {
  background: var(--bk-card);
  border-bottom: 1px solid var(--bk-border);
}
.bk-modern .head-wrap {
  max-width: 1120px; margin: 0 auto; padding: 10px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
/* osztott brand-sor: balra a szöveg, jobbra a logó (jobbra igazítva) */
.bk-brand {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; width: 100%;
}
.bk-modern a.logo { display: flex; align-items: center; }
.bk-modern a.logo:hover { text-decoration: none; }
.bk-logo-text {
  display: flex; flex-direction: column; justify-content: center;
  font-size: 23px; font-weight: 700; line-height: 1.25;
  color: var(--bk-blue); letter-spacing: -.01em; /* mint az aktív menülink */
}
.bk-logo-text small {
  font-size: 13px; font-weight: 400; letter-spacing: 0;
  color: var(--bk-muted);
}
/* a logó ~60px magas; a forráskép 334×120 (a 2004×720 vágott 1/6-a),
   60px-en megjelenítve pontosan 1/2 skála -> éles retina kijelzőn is.
   Határozott magasság + aspect-ratio -> a szélesség ebből számolódik. */
.bk-header-logo {
  margin-left: auto;
  margin-right: 8px; /* 8px-el balrább húzva */
  height: 60px;
  aspect-ratio: 334 / 120;
  background: url("images/qs_logo_extended.png") right center / contain no-repeat;
}
.bk-header-logo:hover { text-decoration: none; }

.bk-modern #headerNav { margin: 0; }
.bk-modern #headerNav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.bk-modern #headerNav li a {
  display: block; padding: 9px 13px; border-radius: 8px;
  color: #45505b; font-size: 14px; font-weight: 600;
}
.bk-modern #headerNav li a:hover { background: #eef4f8; color: var(--bk-blue); text-decoration: none; }
.bk-modern #headerNav li.berkalkulator a { color: var(--bk-blue); }
.bk-modern #headerNav li.qslink a {
  background: var(--bk-blue); color: #fff;
}
.bk-modern #headerNav li.qslink a:hover { background: var(--bk-blue-dark); }

/* ---------- Tartalom-konténer ---------- */
.bk-modern #wrapper { min-height: 100vh; }
.bk-modern #content {
  max-width: 1120px; margin: 0 auto; padding: 26px 20px 60px;
}
.bk-modern #content > h1 {
  font-size: clamp(24px, 4vw, 32px); font-weight: 700;
  letter-spacing: -.02em; margin: 6px 0 6px; color: var(--bk-blue-dark);
}
.bk-modern .bk-lead { color: var(--bk-muted); max-width: 720px; margin: 0 0 24px; }

/* ---------- Kalkulátor: két kártya grid-ben ---------- */
.bk-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 22px;
  align-items: start;
  margin: 0 0 36px;
}
.bk-card {
  background: var(--bk-card);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  box-shadow: var(--bk-shadow);
  padding: 22px 24px;
}
.bk-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bk-card-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--bk-blue-dark); }
.bk-evnav { display: flex; gap: 10px; font-size: 13px; }
.bk-evnav a { color: var(--bk-muted); font-weight: 600; }
.bk-evnav a:hover { color: var(--bk-blue); text-decoration: none; }
.bk-evnav a.disabled { opacity: .45; cursor: default; }

/* ---------- Pill-váltók (irány + átalány éves/havi) ---------- */
.bk-modern div.netto-brutto,
.bk-modern div.net-gross {
  background: #eef1f5; border: 1px solid var(--bk-border);
  border-radius: 999px; padding: 4px;
  margin: 0 0 16px;
}
.bk-modern div.netto-brutto { display: inline-flex; gap: 4px; }
/* FONTOS: a net-gross (átalány éves/havi) váltóra NEM állítunk display-t!
   Induláskor a .hidden rejti, megjelenítéskor a JS ad inline display-t —
   egy erősebb display-szabály itt felülütné a kezdeti rejtést. */
.bk-modern div.net-gross { width: max-content; max-width: 100%; }
.bk-modern div.netto-brutto a,
.bk-modern div.net-gross a {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1;
  background: var(--bk-blue); color: #fff;
}
.bk-modern div.netto-brutto a:hover,
.bk-modern div.net-gross a:hover { text-decoration: none; }
.bk-modern div.netto-brutto a.disabled,
.bk-modern div.net-gross a.disabled {
  background: transparent; color: #5a6470;
}
.bk-modern div.netto-brutto a.disabled:hover,
.bk-modern div.net-gross a.disabled:hover { color: var(--bk-blue); }

/* ---------- Beviteli tábla ---------- */
.bk-table { width: 100%; border-collapse: collapse; }
.bk-table td { padding: 9px 0; vertical-align: middle; }
.bk-inputs > tbody > tr { border-bottom: 1px solid var(--bk-line); }
.bk-inputs > tbody > tr:last-child { border-bottom: none; }
.bk-inputs td:first-child { padding-right: 14px; }
.bk-inputs td:last-child { text-align: right; }
.bk-inputs label { font-size: 14px; color: #39424c; }
.bk-inputs label strong { font-weight: 600; color: var(--bk-text); }

/* rejtett sorok: összecsukva ne hagyjanak rést */
tr.hiddenBlock > td { padding: 0 !important; border: none; }

/* űrlapelemek */
.bk-modern select,
.bk-modern input[type="text"] {
  font-family: inherit; font-size: 15px; color: var(--bk-text);
  background: #fff;
  border: 1px solid #d4dbe3; border-radius: var(--bk-radius-sm);
  height: 42px; padding: 0 12px;
}
.bk-modern select { max-width: 100%; }
.bk-modern select:focus,
.bk-modern input[type="text"]:focus {
  outline: none; border-color: var(--bk-blue);
  box-shadow: 0 0 0 3px rgba(0,100,150,.14);
}
.bk-modern input#input_osszeg { width: 170px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-modern input[type="checkbox"],
.bk-modern input[type="radio"] {
  accent-color: var(--bk-blue);
  width: 19px; height: 19px; vertical-align: -4px; margin: 0 6px 0 0;
  cursor: pointer;
}
.bk-inputs td.align label { cursor: pointer; }

/* belső táblák (többműszakos, havi bontás) */
.bk-modern table.multishift { width: 100%; border-collapse: collapse; margin: 8px 0; }
.bk-modern table.multishift th,
.bk-modern table.multishift td { padding: 6px 4px; font-size: 13px; text-align: center; }
.bk-modern table.multishift th { color: var(--bk-muted); font-weight: 600; }
.bk-modern table.multishift td.text-right { text-align: right; }
.bk-modern input.short1 { width: 64px; height: 36px; text-align: right; padding: 0 8px; }
.bk-modern input.havi { width: 100%; min-width: 70px; height: 36px; text-align: right; padding: 0 8px; }
.bk-modern div.commission table { width: 100%; border-collapse: collapse; }
.bk-modern div.commission td { padding: 8px 0; font-size: 14px; }
.bk-modern div.commission td.align,
.bk-modern div.commission td.medium { text-align: right; }

/* ---------- Eredmény-kártya ---------- */
.bk-card-result { position: sticky; top: 16px; padding: 0; overflow: hidden; }
.bk-result-hero {
  background: linear-gradient(180deg, var(--bk-green-bg) 0%, #ffffff 130%);
  border-bottom: 1px solid var(--bk-line);
  padding: 22px 24px 20px;
  text-align: center;
}
.bk-result-cim { font-size: 14px; color: var(--bk-muted); margin-bottom: 4px; }
.bk-result-cim strong { font-weight: 600; color: #39424c; }
.bk-result-num {
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 800; letter-spacing: -.02em;
  color: var(--bk-green);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.bk-result-num strong { font-weight: 800; }

/* részletes levezetés */
.bk-reszletek { padding: 6px 24px 14px; }
.bk-reszletek summary {
  cursor: pointer; list-style: none;
  padding: 12px 0 8px; font-size: 13px; font-weight: 700;
  color: var(--bk-blue); text-transform: uppercase; letter-spacing: .04em;
}
.bk-reszletek summary::-webkit-details-marker { display: none; }
.bk-reszletek summary::before { content: "▸ "; }
.bk-reszletek[open] summary::before { content: "▾ "; }
.bk-results td { padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--bk-line); }
.bk-results tr:last-child td { border-bottom: none; }
.bk-results td:first-child { color: var(--bk-muted); padding-right: 12px; }
.bk-results td:last-child {
  text-align: right; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bk-results tr.bk-kiemelt td { font-weight: 700; color: var(--bk-text); }
.bk-results tr.comment-row td { color: #8a6d1a; }
.bk-results tr.comment-row strong { color: #8a6d1a; }
.bk-results tr.comment-row div.hiddenBlock {
  background: var(--bk-amber-bg); border-radius: var(--bk-radius-sm);
  padding: 10px 12px; margin: 8px 0; font-size: 12.5px; line-height: 1.45;
}
.bk-results tr.comment-row div.hiddenBlock table td { border: none; padding: 0; white-space: normal; text-align: left; font-weight: 400; }

/* export gombok */
.bk-export {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px 20px; border-top: 1px solid var(--bk-line);
  font-size: 13px; color: var(--bk-muted);
}
.bk-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--bk-radius-sm);
  font-size: 13px; font-weight: 700; line-height: 1;
  background: var(--bk-blue); color: #fff !important;
}
.bk-btn:hover { background: var(--bk-blue-dark); text-decoration: none !important; }
.bk-btn.bk-btn-xls { background: var(--bk-green); }
.bk-btn.bk-btn-xls:hover { background: #047857; }

/* ---------- „A bérkalkulátor működése” + SEO-cikk ---------- */
.bk-mukodes {
  background: var(--bk-card); border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius); box-shadow: var(--bk-shadow);
  padding: 22px 24px; margin: 0 0 36px;
}
.bk-mukodes h2 { margin: 0 0 10px; font-size: 18px; color: var(--bk-blue-dark); }
.bk-mukodes p { margin: 0 0 10px; color: #39424c; font-size: 14.5px; }

.bk-modern #content > h2,
.bk-modern #content ol h2 {
  font-size: 22px; color: var(--bk-blue-dark); letter-spacing: -.01em;
  margin: 40px 0 12px;
}
.bk-modern #content h3 { font-size: 17px; color: var(--bk-text); margin: 26px 0 8px; }
.bk-modern #content p { text-align: justify; }
.bk-modern #content ol { padding-left: 22px; }
.bk-modern #content ul.list-general { padding-left: 22px; }
.bk-modern #content ul.innerLinks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bk-modern #content ul.innerLinks a { font-weight: 600; }
.bk-modern #content blockquote {
  border-left: 3px solid var(--bk-blue-bright);
  margin: 18px 0; padding: 6px 16px; color: #52606e; font-style: italic;
}
.bk-modern #content table.general {
  border-collapse: collapse; margin: 18px auto; background: var(--bk-card);
  border: 1px solid var(--bk-border); border-radius: var(--bk-radius-sm); overflow: hidden;
}
.bk-modern #content table.general th {
  background: #eef4f8; color: var(--bk-blue-dark);
  padding: 9px 16px; font-size: 14px;
}
.bk-modern #content table.general td { padding: 8px 16px; border-top: 1px solid var(--bk-line); font-size: 14px; }
.bk-modern #content p.caption { text-align: center; color: var(--bk-muted); font-size: 12.5px; margin-top: 6px; }
/* a cikk minden képe középre igazított blokk (nem jobbra) */
.bk-modern #content img { display: block; max-width: 100%; height: auto; margin: 18px auto 0; float: none; }
.bk-modern #content p.message { font-weight: 600; color: var(--bk-blue-dark); }

/* ---------- Lábléc ---------- */
.bk-modern footer {
  background: var(--bk-blue-dark); color: #b9cbd6;
  margin-top: 40px; padding: 26px 20px;
  font-size: 13px;
}
.bk-modern footer #footerNav { max-width: 1120px; margin: 0 auto; }
.bk-modern footer a { color: #dbe7ee; }
.bk-modern footer a.footer-logo { font-weight: 700; font-size: 15px; color: #fff; display: inline-block; margin-bottom: 10px; }
.bk-modern footer ul { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.bk-modern footer li { display: flex; gap: 10px; color: #4f7288; }

/* oldal tetejére link (a JS szúrja be) */
.bk-modern a.topLink {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  background: var(--bk-blue); color: #fff; font-size: 13px; font-weight: 600;
  padding: 10px 14px; border-radius: 999px; box-shadow: var(--bk-shadow);
}
.bk-modern a.topLink:hover { background: var(--bk-blue-dark); text-decoration: none; }

/* ============================================================
   2. kör — tartalmi + archív oldalak (nem 2026)
   A #content tipográfia/táblázatok fent már adottak. Itt jön az
   archív kalkulátor-form (egyoszlopos, kártyába csomagolva), a
   kapcsolat-űrlap, a gombok és a textarea. A form-include-ok
   markupja (id-k!) változatlan — ez csak megjelenést ad.
   ============================================================ */

/* archív évek: bal a form-kártya, jobb a „működése" szöveg — rácsban */
.bk-modern .calculator.group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px; align-items: start; margin: 0 0 32px;
}
.bk-modern .calculator.group > .two-third,
.bk-modern .calculator.group > .one-third { width: auto; margin: 0; float: none; }
.bk-modern .calculator.group > .one-third h2 { font-size: 18px; color: var(--bk-blue-dark); margin: 0 0 10px; }
.bk-modern .calculator.group > .one-third h3 { margin: 16px 0 4px; }

/* a form-inner kártyaként */
.bk-modern .form-inner {
  background: var(--bk-card); border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius); box-shadow: var(--bk-shadow);
  padding: 22px 24px;
}
.bk-modern .form-inner > h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; color: var(--bk-blue-dark); }
/* Az archív évek fejléce (évléptető) + irányváltó pill a 2026-os szerkezetet használja:
   .bk-card-head (h2 balra + .bk-evnav jobbra) és a .netto-brutto / .net-gross pill — ezek
   stílusa fent, az 1. körből már adott, itt nincs külön szabály. */

/* az archív form fő táblája: sorok, címke balra / érték jobbra */
.bk-modern .form-inner > table { width: 100%; border-collapse: collapse; }
.bk-modern .form-inner > table > tbody > tr { border-bottom: 1px solid var(--bk-line); }
.bk-modern .form-inner > table > tbody > tr:last-child { border-bottom: none; }
.bk-modern .form-inner > table > tbody > tr > td { padding: 9px 0; vertical-align: middle; font-size: 14px; color: #39424c; }
.bk-modern .form-inner > table > tbody > tr > td:first-child { padding-right: 14px; }
.bk-modern .form-inner > table > tbody > tr > td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bk-modern .form-inner td strong { color: var(--bk-text); }

/* eredmény-sor kiemelés (Havi nettó összeg) */
.bk-modern .form-inner tr .result,
.bk-modern .form-inner tr .result-label { font-size: 16px; }
.bk-modern .form-inner tr .result strong { color: var(--bk-green); font-weight: 800; }

/* belső táblák (multishift/commission) ne kapjanak sor-keretet */
.bk-modern .form-inner table.multishift td,
.bk-modern .form-inner div.commission td { border: none; }
.bk-modern .form-inner div.commission table { width: 100%; }

/* export ikonok maradjanak inline (a #content img középre-blokk szabály ellen;
   #content-tel a specificitás felülüti a .bk-modern #content img blokk-szabályt) */
.bk-modern #content .export img,
.bk-modern #content .form-inner img { display: inline; margin: 0; vertical-align: middle; }
.bk-modern span.export { display: block; text-align: right; padding-top: 8px; font-size: 13px; color: var(--bk-muted); }
.bk-modern span.export a { margin-left: 6px; }

/* ---------- Gombok (404, koszonjuk, kapcsolat) ---------- */
.bk-modern .button,
.bk-modern input.button {
  display: inline-block; padding: 11px 22px; border: none; cursor: pointer;
  border-radius: var(--bk-radius-sm); background: var(--bk-blue); color: #fff !important;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1;
}
.bk-modern .button:hover,
.bk-modern input.button:hover { background: var(--bk-blue-dark); text-decoration: none; }

/* ---------- Kapcsolat-űrlap (impresszum) ---------- */
.bk-modern form.impresszum { max-width: 560px; }
.bk-modern form.impresszum .wrapper > div { margin: 0 0 14px; }
.bk-modern form.impresszum label { display: block; font-size: 14px; font-weight: 600; color: #39424c; margin-bottom: 5px; }
.bk-modern form.impresszum input[type="text"] { width: 100%; }
.bk-modern textarea {
  width: 100%; min-height: 130px; font-family: inherit; font-size: 15px; color: var(--bk-text);
  background: #fff; border: 1px solid #d4dbe3; border-radius: var(--bk-radius-sm); padding: 10px 12px;
}
.bk-modern textarea:focus { outline: none; border-color: var(--bk-blue); box-shadow: 0 0 0 3px rgba(0,100,150,.14); }
.bk-modern .error { color: #dc2626; font-size: 13px; }
.bk-modern .button-wrap { display: inline-block; margin-top: 6px; }

/* egyéb tartalmi apróságok */
.bk-modern #content .italic { font-style: italic; color: var(--bk-muted); }
.bk-modern #content blockquote { text-align: left; }

/* számozott listák: a lista-szám illeszkedjen az utána álló szöveghez
   (önéletrajz + a-bérkalkulátor-elemei stb.) — felső szinten h2-cím (kék, félkövér),
   beágyazott szinten h3-alcím (sötét, félkövér) áll a szám után */
.bk-modern #content > ol > li::marker {
  color: var(--bk-blue-dark); font-weight: 700; font-size: 20px;
}
.bk-modern #content ol ol > li::marker {
  color: var(--bk-text); font-weight: 700; font-size: 16px;
}

@media (max-width: 860px) {
  .bk-modern .calculator.group { grid-template-columns: 1fr; }
}

/* ---------- Reszponzív ---------- */
@media (max-width: 960px) {
  .bk-calc { grid-template-columns: 1fr; }
  .bk-card-result { position: static; }
}
@media (max-width: 600px) {
  .bk-modern .head-wrap { padding: 8px 12px; gap: 10px; }
  .bk-logo-text { font-size: 17px; }
  .bk-logo-text small { display: none; }
  .bk-header-logo { height: 40px; } /* 120/3 = tiszta 1/3 skála */
  .bk-modern #headerNav li a { padding: 8px 9px; font-size: 13px; }
  .bk-modern #content { padding: 18px 12px 40px; }
  .bk-card { padding: 16px 14px; }
  .bk-result-hero { padding: 18px 14px 16px; }
  .bk-reszletek { padding: 4px 14px 10px; }
  .bk-export { padding: 12px 14px 16px; flex-wrap: wrap; }
  .bk-inputs td { display: block; text-align: left !important; padding: 6px 0; }
  .bk-inputs > tbody > tr { padding: 4px 0; display: block; }
  .bk-inputs td:first-child { padding-right: 0; padding-top: 10px; }
  tr.hiddenBlock > td { padding: 0 !important; }
  .bk-modern input#input_osszeg { width: 100%; }
  .bk-modern select { width: 100%; }
  .bk-modern table.multishift { display: block; overflow-x: auto; }
}
