:root {
  --ink: #0f1f17;
  --muted: #4b5d53;
  --green: #14532d;
  --green-2: #1f7a45;
  --paper: #f6f4ee;
  --line: #ddd8cc;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(31, 122, 69, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(20, 83, 45, .10), transparent 60%),
    var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }

.wrap {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
}


.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-2);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
}

.lead {
  margin: 0 0 32px;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--muted);
}

.btn {
  align-self: flex-start;
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--green-2); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; }


.btn-ghost {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green);
}
.btn-ghost:hover { background: var(--green); color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn { align-self: auto; }

/* Települések */
.places { margin-top: 48px; }
.places-title {
  margin: 0 0 14px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.place-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.place-name { font-size: 1.2rem; font-weight: 700; }
.place-go { font-weight: 700; color: var(--green); }
a.place:hover { border-color: var(--green-2); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20, 83, 45, .10); }
a.place:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; }
.place-soon { background: rgba(255, 255, 255, .6); }
.badge-soon {
  padding: 4px 12px;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(234, 88, 12, .5);
  animation: soon-pulse 2s ease-out infinite;
}
@keyframes soon-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(234, 88, 12, .5); }
  70%  { box-shadow: 0 0 0 10px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

/* 404 page */
.notfound { position: relative; }
.code {
  margin: 0 0 8px;
  font-size: clamp(5.5rem, 22vw, 11rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  color: transparent;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}
.foot a { color: var(--muted); }
.foot .sep { margin: 0 8px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .place { transition: none; }
  .badge-soon { animation: none; }
}

/* ---------- Confirmation / moderation pages ---------- */
.form-note { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }

.summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  margin: 0 0 28px;
  padding: 20px 24px;
  max-width: 40em;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .75);
}
.summary dt { font-weight: 600; }
.summary dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.summary-message { white-space: pre-wrap; max-height: 18em; overflow: auto; }
.summary-muted { color: var(--muted); }
@media (max-width: 560px) {
  .summary { grid-template-columns: 1fr; gap: 2px; padding: 16px 18px; }
  .summary dd { margin-bottom: 10px; }
}
.btn-danger {
  background: transparent;
  color: #b42318;
  box-shadow: inset 0 0 0 2px #b42318;
}
.btn-danger:hover { background: #b42318; color: #fff; }
.btn-danger:focus-visible { outline-color: #b42318; }
form.actions .btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
form.actions .btn-danger { box-shadow: inset 0 0 0 2px #b42318; }

/* ---------- Document pages (adatvedelem.html) ---------- */
.doc { width: 100%; max-width: 900px; margin: 0 auto; padding: 48px 24px 72px; flex: 1; }
.doc h1 { margin: 0 0 16px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.025em; }
.doc h2 { margin: 40px 0 12px; font-size: 1.5rem; letter-spacing: -.01em; scroll-margin-top: 16px; }
.doc section { scroll-margin-top: 16px; }
.doc p, .doc li { color: var(--ink); }
.doc .lead { margin: 0 0 8px; max-width: none; }
.doc-meta { color: var(--muted); font-size: .95rem; }
.doc-toc { display: flex; flex-direction: column; gap: 4px; margin: 24px 0 8px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .7); }
.doc-toc a { font-weight: 600; text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }
.doc .table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.doc table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .93rem; }
.doc th, .doc td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc thead th { background: #eef4ef; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.doc tbody th { font-weight: 700; }
.doc tbody tr:last-child th, .doc tbody tr:last-child td { border-bottom: 0; }
.doc code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: #eef4ef; }

/* ---------- Home page "Rólunk": Bővebben / Kevesebb (native <details>) ---------- */
.hero .lead { max-width: 40em; margin-bottom: 20px; }
.about { margin: 0 0 32px; }
.about-toggle { list-style: none; cursor: pointer; padding: 10px 20px; font-size: .95rem; user-select: none; }
.about-toggle::-webkit-details-marker { display: none; }
.about-toggle::after { content: "↓"; margin-left: 8px; }
.about[open] .about-toggle::after { content: "↑"; }
.about .about-less, .about[open] .about-more { display: none; }
.about[open] .about-less { display: inline; }
.about[open] .about-toggle { margin-bottom: 20px; }
.about-text { max-width: 40em; padding: 4px 0 4px 20px; border-left: 3px solid var(--green-2); }
.about-text p { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.7; color: var(--ink); }
.about-text p:last-child { margin-bottom: 0; font-weight: 600; }
