/* ═══════════════════════════════════════════
   Mezőgazdasági Weboldal – Stílus
   Paletta: méldzöld (#1a3d2b), arany (#c8a84b),
            krém (#f9f6ef), sötét (#1c1c1c)
════════════════════════════════════════════ */

:root {
  --green-dark:  #1a3d2b;
  --green-mid:   #2d6a4f;
  --green-light: #52b788;
  --gold:        #c8a84b;
  --gold-light:  #e8c96a;
  --cream:       #f9f6ef;
  --cream-dark:  #eeeadf;
  --text-dark:   #1c1c1c;
  --text-mid:    #4a4a4a;
  --text-muted:  #7a7a7a;
  --white:       #ffffff;
  --border:      rgba(0,0,0,0.1);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,0.12);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --transition:  0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utility ───────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ── CMS admin sáv ───────────────────────────── */
.cms-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
}
.cms-logo { font-weight: 700; font-size: 1rem; color: var(--gold); }
.cms-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.btn-cms {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  transition: background var(--transition);
}
.btn-cms:hover { background: rgba(255,255,255,0.2); }
.btn-cms--danger { background: rgba(220,50,50,0.4); border-color: rgba(220,50,50,0.6); }
.btn-cms--danger:hover { background: rgba(220,50,50,0.6); }
.save-indicator { font-size: 0.8rem; color: var(--green-light); }

/* CMS szerkeszthető elem hover */
.cms-edit, .cms-rich-edit {
  transition: outline var(--transition), background var(--transition);
  border-radius: 4px;
  outline: 2px dashed transparent;
}
body.cms-active .cms-edit:hover,
body.cms-active .cms-rich-edit:hover {
  outline: 2px dashed var(--gold);
  background: rgba(200, 168, 75, 0.06);
  cursor: pointer;
}
body.cms-active .cms-edit::after,
body.cms-active .cms-rich-edit::after {
  content: ' ✎';
  font-size: 0.7em;
  opacity: 0.5;
}

/* ── Header & Nav ───────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 61, 43, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
body.cms-active .site-header { top: 38px; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.nav-logo-mark::after {
  content: '🌾';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.nav-logo-mark--light { background: rgba(200,168,75,0.3); }
.nav-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.2;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.btn-nav {
  background: var(--gold) !important;
  color: var(--green-dark) !important;
  font-weight: 700;
  padding: 0.4rem 1rem !important;
}
.btn-nav:hover { background: var(--gold-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  height: 92vh;
  min-height: 520px;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,30,18,0.35) 0%,
    rgba(10,30,18,0.55) 60%,
    rgba(10,30,18,0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 6rem;
}
.hero-eyebrow {
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 2rem;
}
.btn-hero {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  width: fit-content;
}
.btn-hero:hover { background: var(--gold-light); transform: translateY(-2px); }

.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.hero-dot.active { background: var(--gold); }

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.hero-nav:hover { background: rgba(255,255,255,0.28); }
.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }

/* ── Stat sáv ────────────────────────────────── */
.stats-bar {
  background: var(--green-dark);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat {}
.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.35rem;
}

/* ── Szekciók ────────────────────────────────── */
.section { padding: 6rem 0; }
.section--dark { background: var(--green-dark); color: var(--white); }
.section--dark h2 { color: var(--white); }
.section--dark .section-lead { color: rgba(255,255,255,0.7); }
.section--gray { background: var(--cream); }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.section-image { position: relative; }
.section-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ─── CMS: kép csere gomb (hero-slide / section-image felett) ─── */
.img-edit-btn {
  display: none;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 5;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: var(--radius-sm, 6px);
  padding: .5rem 1rem;
  font-size: .85rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.img-edit-btn:hover { background: var(--gold); color: var(--green-dark); border-color: var(--gold); }
body.cms-active .img-edit-btn { display: inline-block; }

.media-picker-hint { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }

/* ─── CMS: hír-kép választó ─── */
.news-image-picker { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.news-image-preview {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border);
}
.news-image-picker-actions { display: flex; gap: .5rem; }
.rich-text { color: var(--text-mid); }
.rich-text p { margin-bottom: 1rem; }
.rich-text strong { color: var(--green-dark); font-weight: 700; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.9rem;
}
.info-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.info-table td:first-child {
  color: var(--text-muted);
  width: 42%;
  font-weight: 600;
}

/* ── Tevékenységek ───────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.service-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.service-card-img {
  width: calc(100% + 3.5rem);
  margin: -2rem -1.75rem 1.25rem;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.service-subtitle { font-size: 0.85rem; color: var(--gold); margin-bottom: 0.5rem; font-weight: 600; }
.service-card h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.65; }
.service-edit-btn {
  margin-top: 1rem;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  background: none;
  color: var(--gold);
  cursor: pointer;
  display: none;
}
body.cms-active .service-edit-btn { display: inline-block; }
.service-edit-btn:hover { background: var(--gold); color: var(--green-dark); }

/* ── CTA sáv ─────────────────────────────────── */
.cta-section {
  background: var(--gold);
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 { color: var(--green-dark); margin-bottom: 0.75rem; }
.cta-section p { color: var(--green-dark); opacity: 0.8; margin-bottom: 2rem; }
.cta-section .btn-hero { background: var(--green-dark); color: var(--white); }
.cta-section .btn-hero:hover { background: var(--green-mid); }

/* ── Hírek ───────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.news-card-body { padding: 1.5rem; }
.news-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.news-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.75rem; line-height: 1.4; }
.news-card p { font-size: 0.9rem; color: var(--text-mid); }
.news-draft-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(200,50,50,0.1);
  color: #c43030;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.news-card-actions { display: none; padding: 0 1.5rem 1.5rem; gap: 0.5rem; }
body.cms-active .news-card-actions { display: flex; }
.btn-news-edit, .btn-news-delete {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid;
}
.btn-news-edit { border-color: var(--green-mid); background: none; color: var(--green-mid); }
.btn-news-edit:hover { background: var(--green-mid); color: var(--white); }
.btn-news-delete { border-color: #c43030; background: none; color: #c43030; }
.btn-news-delete:hover { background: #c43030; color: var(--white); }

/* ── Galéria ─────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.gallery-thumb {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-thumb:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.lightbox.hidden { display: none !important; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }

/* ── Kapcsolat ───────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.contact-list li a { color: var(--green-mid); }
.contact-list li a:hover { text-decoration: underline; }

.contact-form-wrap { background: var(--cream); border-radius: var(--radius-md); padding: 2rem; }
.contact-form-wrap h3 { margin-bottom: 1.5rem; font-size: 1.2rem; color: var(--green-dark); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-mid); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}
.btn-submit {
  background: var(--green-dark);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-submit:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.form-msg { margin-top: 0.75rem; font-size: 0.9rem; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); }
.form-msg.success { background: rgba(45,106,79,0.1); color: var(--green-mid); }
.form-msg.error-msg { background: rgba(200,50,50,0.1); color: #c43030; }
.form-error { color: #c43030; font-size: 0.85rem; margin-top: 0.5rem; }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--white);
}
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 0.85rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; white-space: nowrap; }
.footer-admin { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.btn-admin-login {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-admin-login:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.3); }

/* ── Modálok ─────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 8000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal.hidden { display: none !important; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box--wide { max-width: 720px; }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--cream); }
.modal-box h3 { margin-bottom: 1.5rem; color: var(--green-dark); }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.modal-box .btn-cms { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.15); color: var(--green-dark); }
.modal-box .btn-cms:hover { background: rgba(0,0,0,0.12); }

/* Galéria manager */
.gallery-upload { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: center; }
.gallery-manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.gallery-manager-item { position: relative; }
.gallery-manager-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }
.gallery-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(200,50,50,0.85);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  display: none;
}
.gallery-manager-item:hover .gallery-delete-btn { display: block; }
.gallery-assign-select {
  width: 100%;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  padding: 0.25rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
}

/* Tevékenységek manager */
.service-manager-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: var(--white);
}
.service-manager-item.dragging { opacity: 0.4; }
.service-manager-item .drag-handle { cursor: grab; color: var(--text-muted); font-size: 1.1rem; flex-shrink: 0; }
.service-manager-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.service-manager-item-body { flex: 1; min-width: 0; }
.service-manager-item-body strong { display: block; font-size: 0.92rem; color: var(--green-dark); }
.service-manager-subtitle { font-size: 0.8rem; color: var(--text-muted); }
.service-manager-item-actions { display: flex; gap: 0.3rem; flex-shrink: 0; flex-wrap: wrap; }

/* Idővonal ("időgép") */
.timeline-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.timeline-tab {
  background: none; border: none; cursor: pointer;
  padding: 0.6rem 0.9rem; font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.timeline-tab.active { color: var(--green-dark); border-color: var(--gold); }
.timeline-pane.hidden { display: none; }
.timeline-list { display: flex; flex-direction: column; gap: 0.6rem; max-height: 55vh; overflow-y: auto; }
.timeline-empty { color: var(--text-muted); font-size: 0.9rem; padding: 1rem 0; }
.timeline-item {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.timeline-item--current { border-color: var(--gold); background: rgba(200,168,75,0.06); }
.timeline-item-main { flex: 1; min-width: 0; }
.timeline-badge { font-size: 0.7rem; font-weight: 700; color: var(--green-mid); margin-left: 0.5rem; }
.timeline-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
.timeline-diff { font-size: 0.82rem; margin-top: 0.4rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.timeline-diff-old { color: #c43030; text-decoration: line-through; opacity: 0.75; }
.timeline-diff-arrow { color: var(--text-muted); }
.timeline-diff-new { color: var(--green-mid); font-weight: 600; }
.timeline-item-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }

/* Hírek manager */
#news-manager-list { display: flex; flex-direction: column; gap: 0.75rem; }
.news-manager-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.news-manager-item span { color: var(--text-mid); }
.news-manager-item .item-actions { display: flex; gap: 0.5rem; }

/* Quill editor override */
.ql-container { font-family: inherit; font-size: 0.95rem; }
.ql-toolbar { border-color: var(--border) !important; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.ql-container { border-color: var(--border) !important; border-radius: 0 0 var(--radius-sm) var(--radius-sm); min-height: 160px; }
#news-quill .ql-container { min-height: 220px; }

/* ── Reszponzív ──────────────────────────────── */
@media (max-width: 900px) {
  .section-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  body.cms-active .nav-links { top: 102px; }
  .nav-links a { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
