/* ==========================================================================
   Bombasiker Német Nyelviskola – publikus stíluslap
   ========================================================================== */

:root {
  --ink:        #0f172a;
  --ink-soft:   #475569;
  --muted:      #64748b;
  --line:       #e2e8f0;
  --bg:         #f6f8fc;
  --surface:    #ffffff;
  --brand:      #1d4ed8;
  --brand-dark: #172554;
  --brand-soft: #eff4ff;
  --gold:       #d9a441;
  --green:      #15803d;
  --green-bg:   #dcfce7;
  --amber:      #b45309;
  --amber-bg:   #fef3c7;
  --red:        #b91c1c;
  --red-bg:     #fee2e2;
  --slate-bg:   #e2e8f0;
  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
  --font:       "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }

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

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand-dark);
  color: #fff; padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2.5rem); }
.muted { color: var(--muted); }
.mt-8 { margin-top: 8px; }

/* --- Fejléc ------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-dark); color: #fff; font-weight: 700; letter-spacing: .06em;
  border-bottom: 3px solid var(--gold);
}
.brand-text strong { display: block; font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: .8rem; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .97rem; padding: .35rem 0; }
.site-nav a:hover { color: var(--brand); }
.nav-actions { display: flex; gap: .5rem; }

.nav-toggle {
  display: none; width: 46px; height: 42px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 10px; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ink); content: "";
}
.nav-toggle-bar { top: 20px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after  { top: 6px; }

/* --- Gombok ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.1rem; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: var(--brand-soft); color: var(--brand-dark); }
.btn-ghost:hover { background: #dce7ff; color: var(--brand-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .4rem .75rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* --- Flash üzenetek ----------------------------------------------------- */
.flash-wrap { margin-top: 1rem; }
.flash {
  padding: .85rem 1.1rem; border-radius: 10px; margin-bottom: .6rem;
  border: 1px solid transparent; font-size: .95rem;
}
.flash-success { background: var(--green-bg); border-color: #86efac; color: #14532d; }
.flash-error   { background: var(--red-bg);   border-color: #fca5a5; color: #7f1d1d; }
.flash-info    { background: var(--brand-soft); border-color: #bfdbfe; color: var(--brand-dark); }

/* --- Hero --------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, #eef3ff 0%, var(--bg) 100%); padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .85fr; gap: 3rem; align-items: center; }
.hero-kicker { color: var(--brand); font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.hero-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 55ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow); border-top: 4px solid var(--gold);
}
.hero-card-title { font-weight: 700; margin-bottom: 1rem; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .8rem; color: var(--ink-soft); font-size: .97rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}

/* --- Szekciók ----------------------------------------------------------- */
.section { padding: clamp(2.2rem, 4vw, 3.5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.page-head { background: var(--brand-dark); color: #fff; padding: clamp(2rem, 4vw, 3rem) 0; }
.page-head h1 { margin-bottom: .3rem; }
.page-head .lead, .page-head p { color: #c7d7f5; max-width: 62ch; }
.page-head .lead :is(p, li) { color: #c7d7f5; }
.lead { font-size: 1.08rem; }
.link-more { font-weight: 600; font-size: .95rem; }

/* --- Kártyák ------------------------------------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card-media { display: block; background: var(--brand-soft); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 1.2rem 1.3rem .6rem; flex: 1; }
.card-body h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--brand); }
.card-body .muted { font-size: .93rem; }
.card-tag { font-size: .78rem; color: var(--brand); font-weight: 600; margin-bottom: .35rem; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.3rem 1.2rem; gap: 1rem;
}
.price { font-weight: 700; font-size: 1.05rem; }
.price-lg { font-size: 1.9rem; }

/* --- Lépések ------------------------------------------------------------ */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.8rem; }
.steps li { border-top: 3px solid var(--line); padding-top: 1.1rem; }
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand-dark); color: #fff; font-weight: 700; margin-bottom: .7rem;
}
.steps p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

.cta-band {
  background: var(--brand-dark); color: #fff; border-radius: var(--radius-lg);
  padding: 2rem 2.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: .3rem; }
.cta-band .muted { color: #c7d7f5; margin: 0; }

/* --- Szűrők ------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip {
  padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; color: var(--ink-soft); font-size: .9rem;
}
.chip.is-active, .chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --- Termékoldal -------------------------------------------------------- */
.product-detail { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.breadcrumb { font-size: .88rem; color: var(--muted); }
.product-cover { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); margin: 1.2rem 0 1.8rem; aspect-ratio: 16/9; object-fit: cover; }
.prose :is(h2, h3) { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.buy-box {
  position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow);
}
.buy-facts { list-style: none; margin: 1.2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.buy-facts li { margin-bottom: .5rem; }

.file-list { list-style: none; margin: 1rem 0 2rem; padding: 0; }
.file-list li {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); margin-bottom: .6rem;
}
.file-ext {
  background: var(--brand-dark); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .25rem .5rem; border-radius: 6px; min-width: 46px; text-align: center;
}
.file-name { flex: 1; min-width: 160px; font-weight: 600; font-size: .95rem; }
.file-size { color: var(--muted); font-size: .85rem; }
.lock-note { color: var(--muted); font-size: .85rem; font-style: italic; }

/* --- Űrlapok ------------------------------------------------------------ */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.1rem; margin-top: 1.4rem; }
.form-card h2:first-child { margin-top: 0; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=number], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid #cbd5e1; border-radius: 10px;
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
input:disabled { background: #f1f5f9; color: var(--muted); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); outline-offset: 0; }

.form-check { display: flex; gap: .65rem; align-items: flex-start; margin: 1.2rem 0; }
.form-check input { margin-top: .3rem; width: 18px; height: 18px; flex: none; }
.form-check label { font-size: .9rem; color: var(--ink-soft); }
.req { color: var(--red); }
.hint { font-size: .84rem; color: var(--muted); }
small.hint { display: block; margin-top: .3rem; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.summary-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: 100px;
}
.summary-card img { border-radius: var(--radius); margin-bottom: 1rem; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.summary-title { font-weight: 700; margin-bottom: .3rem; }
.summary-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: 1rem; font-size: 1.1rem; }

.auth-box { max-width: 460px; margin-inline: auto; }
.auth-links { text-align: center; margin-top: 1rem; font-size: .9rem; }
.auth-links a { margin: 0 .2rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list { margin-top: 1.5rem; }
.contact-list li { margin-bottom: .4rem; }

/* --- Táblázatok, jelvények ---------------------------------------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .93rem; }
.table th, .table td { padding: .75rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { background: #f1f5f9; font-size: .82rem; text-transform: none; color: var(--ink-soft); white-space: nowrap; }
.table-def th { width: 200px; color: var(--ink-soft); font-weight: 600; }
.table code { font-size: .85em; }

.badge {
  display: inline-block; padding: .22rem .6rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red   { background: var(--red-bg);   color: var(--red); }
.badge-blue  { background: var(--brand-soft); color: var(--brand); }
.badge-slate { background: var(--slate-bg); color: var(--ink-soft); }

.notice { padding: 1.2rem 1.4rem; border-radius: var(--radius); margin-bottom: 1.8rem; }
.notice-green { background: var(--green-bg); border: 1px solid #86efac; }
.notice p:last-child { margin-bottom: 0; }
.empty-state { padding: 2.5rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.numbered { padding-left: 1.2rem; color: var(--ink-soft); }
.numbered li { margin-bottom: .5rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: .35rem; }

/* --- Fiók --------------------------------------------------------------- */
.account-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.account-nav a { padding: .6rem 1rem; text-decoration: none; color: var(--ink-soft); border-bottom: 3px solid transparent; font-size: .95rem; }
.account-nav a.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2.2rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.stat-num { display: block; font-size: 1.4rem; font-weight: 700; word-break: break-word; }
.stat span:last-child { color: var(--muted); font-size: .88rem; }
.download-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.download-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.download-head h2 { font-size: 1.15rem; margin-bottom: .2rem; }

.error-page { text-align: center; padding: 3rem 0; }
.error-code { font-size: 4rem; font-weight: 800; color: var(--brand); line-height: 1; margin: 0; }
.error-page .hero-buttons { justify-content: center; }

/* --- Lábléc ------------------------------------------------------------- */
.site-footer { background: var(--brand-dark); color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: .8rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { color: #fff; font-weight: 700; margin-bottom: .4rem; }
.site-footer .muted { color: #94a3b8; font-size: .9rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem;
  font-size: .85rem; color: #94a3b8;
}

/* --- Reszponzív --------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner, .product-detail, .order-layout, .contact-layout, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .buy-box, .summary-card { position: static; }
  .footer-grid { gap: 1.8rem; }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: .85rem 0; }
  .nav-actions { margin-top: 1rem; }
  .nav-actions .btn { flex: 1; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; gap: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
