/* ==========================================================================
   KRÍZISKALAUZ – TUDÁSTÁR STÍLUS
   --------------------------------------------------------------------------
   Ezt a fájlt egy helyen módosítva az egész Tudástár arculata változik.
   A saját márkaszíneidet az alábbi :root blokkban tudod lecserélni.
   ========================================================================== */

:root {
  /* --- SZÍNEK (KrízisKalauz – a fő oldal pontos színei) --- */
  --bg:          #F5F0E8;   /* beige – oldalháttér */
  --surface:     #E8F5E4;   /* green-card – kiemelt dobozok háttere */
  --ink:         #1A2E18;   /* text-dark – fő szövegszín */
  --ink-soft:    #3D5C38;   /* text-mid – halványabb szöveg, meta */
  --accent:      #2D5A27;   /* green-dark – linkek, címek, CTA */
  --accent-dark: #1A2E18;   /* text-dark – hoverre */
  --accent-soft: #C8E6C0;   /* green-pale – halvány kiemelés */
  --warm:        #3D5C38;   /* text-mid – jogi doboz kerete/kiemelése */
  --warm-soft:   #EAE3D6;   /* beige-dark – jogi doboz háttere */
  --line:        #C8DFC4;   /* border – elválasztó vonalak */

  /* --- TIPOGRÁFIA (ha van saját betűtípusod, itt cseréld) --- */
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* --- MÉRETEK --- */
  --content-width: 720px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 22px;
}

/* --- FEJLÉC / MORZSA (breadcrumb) --- */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  padding: 26px 0 0;
  line-height: 1.5;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb span { color: var(--ink); }

/* --- EYEBROW (kategória-címke) --- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 34px 0 12px;
}

/* --- CÍMEK --- */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.35rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
h1 + .rule {
  width: 64px; height: 4px;
  background: var(--accent);
  border: 0; border-radius: 2px;
  margin: 0 0 22px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 48px 0 14px;
  color: var(--ink);
}
h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.18rem;
  margin: 30px 0 8px;
  color: var(--ink);
}

.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 8px;
}

p { margin: 0 0 18px; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin: 0 0 8px; }

strong { color: var(--ink); }

.meta {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

/* --- KÉP-HELYŐRZŐ --- */
.figure {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 26px 0;
}

/* --- KIEMELT DOBOZOK --- */
.box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 30px 0;
}
.box h3 { margin-top: 0; }

.box-accent {
  border-left: 4px solid var(--accent);
}

/* Ellenőrzőlista */
.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* „Mit tanulhatsz ebből?" bevezető doboz */
.learn {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 30px 0 34px;
}
.learn h3 { margin: 0 0 6px; }
.learn p { margin: 0 0 12px; color: var(--ink); }
.learn .checklist { margin-bottom: 0; }
.learn .checklist li { margin-bottom: 9px; }

/* Jogi figyelmeztetés */
.note-legal {
  background: var(--warm-soft);
  border-left: 4px solid var(--warm);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 30px 0;
  font-size: 16px;
}
.note-legal strong { color: var(--warm); }

/* Link felfelé a pillérre (fürtcikk) */
.parent-note {
  font-size: 15px;
  color: var(--ink-soft);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 11px 18px;
  margin: 0 0 26px;
}
.parent-note a { font-weight: 600; }

/* „Így fogalmazz inkább" mintaválasz doboz */
.reply-good {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 14px 0 8px;
}
.reply-good .label {
  display: block;
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.reply-good p { margin: 0; font-style: italic; }

/* Tipp-sor egy szakasz után */
.tip { color: var(--ink-soft); font-size: 16px; margin: 0 0 26px; }

/* Letölthető anyag doboz */
.download {
  background: var(--warm-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 30px 0;
  text-align: center;
}
.download .label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.download h3 { margin: 0 0 8px; font-size: 1.2rem; }
.download p { color: var(--ink-soft); font-size: 16px; margin: 0 0 18px; }
.download a.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 8px;
}
.download a.btn:hover { background: var(--accent-dark); color: #fff; }
.download .small { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }

/* Teljes minta e-mail / válaszsablon doboz */
.sample-email {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0 26px;
  font-size: 16px;
}
.sample-email p { margin: 0 0 10px; }
.sample-email p:last-child { margin-bottom: 0; }

/* --- TERMÉK CTA --- */
.cta {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 30px;
  margin: 46px 0 30px;
  text-align: center;
}
.cta h3 { color: #fff; margin: 0 0 10px; font-size: 1.35rem; }
.cta p { color: #dbecec; margin: 0 0 20px; }
.cta a.btn {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 8px;
}
.cta a.btn:hover { background: var(--warm-soft); color: var(--accent-dark); }

/* --- KAPCSOLÓDÓ CIKKEK --- */
.related { border-top: 1px solid var(--line); margin-top: 50px; padding-top: 30px; }
.related h2 { margin-top: 0; font-size: 1.3rem; }
.related ul { list-style: none; padding-left: 0; }
.related li { margin-bottom: 10px; }
.related a { font-weight: 600; }

/* --- LÁBLÉC --- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 30px 0 50px;
  font-size: 14px;
  color: var(--ink-soft);
}
.site-footer a { color: var(--ink-soft); }

/* ==========================================================================
   HUB-OLDAL (Tudástár főoldala)
   ========================================================================== */
.hub-hero { padding: 30px 0 10px; }
.hub-hero h1 { font-size: 2.6rem; }

.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0 10px;
}
.cat-card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--ink);
}
.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 16px;
}
.cat-card .num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}
.cat-card h2 {
  font-size: 1.35rem;
  margin: 6px 0 8px;
}
.cat-card p { color: var(--ink-soft); font-size: 16px; margin: 0 0 14px; }
.cat-card .count { font-size: 13px; color: var(--ink-soft); }
.cat-card .arrow { color: var(--accent); font-weight: 700; text-decoration: underline; font-size: 15px; }

/* --- RESPONSZÍV --- */
@media (max-width: 560px) {
  body { font-size: 17px; }
  h1 { font-size: 1.95rem; }
  .hub-hero h1 { font-size: 2.05rem; }
  h2 { font-size: 1.4rem; }
  .cta { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-card { transition: none; }
}
