/* sites/fuchs-technology/assets/site.css
 * A fuchs.technology „szerkesztőségi” rétege a közös tokenekre (core/tokens.css) építve.
 * A színek itt site-változók; a kiemelés az office --color-primary tokenje, így együtt változik vele.
 * Sötét mód: a látogató rendszer-beállítása, vagy a fejléc kapcsolója (<html data-theme>).
 */
:root {
    --site-paper: #ffffff;
    --site-paper-2: #f6f6f3;
    --site-ink: #0b0f14;
    --site-body: #3d434b;
    --site-muted: #5f6670;
    --site-rule: #e7e7e4;
    --site-rule-2: #dcdcd8;
    --site-field: #ffffff;
    --site-field-border: #d5d6d2;
    --site-band: #0b0f14;
    --site-band-text: #ffffff;
    --site-band-muted: #b8bec6;
    --site-band-eyebrow: #8fb8e6;
    --site-accent: var(--color-primary);
    --site-on-accent: var(--color-on-primary);
    --site-wrap: 1200px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --site-paper: #0e1116;
        --site-paper-2: #141922;
        --site-ink: #e8eaed;
        --site-body: #c3cad5;
        --site-muted: #9aa4b2;
        --site-rule: #262d37;
        --site-rule-2: #2f3742;
        --site-field: #161b22;
        --site-field-border: #3a4452;
        --site-band: #1a2230;
        --site-band-text: #ffffff;
        --site-band-muted: #c3cad5;
        --site-band-eyebrow: #8fb8e6;
    }
}

:root[data-theme="dark"] {
    --site-paper: #0e1116;
    --site-paper-2: #141922;
    --site-ink: #e8eaed;
    --site-body: #c3cad5;
    --site-muted: #9aa4b2;
    --site-rule: #262d37;
    --site-rule-2: #2f3742;
    --site-field: #161b22;
    --site-field-border: #3a4452;
    --site-band: #1a2230;
    --site-band-text: #ffffff;
    --site-band-muted: #c3cad5;
    --site-band-eyebrow: #8fb8e6;
}

/* ---------- Alap ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--site-paper);
    color: var(--site-ink);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: var(--site-accent); }
:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--site-wrap); margin: 0 auto; padding: 0 32px; }
.skip-link {
    position: absolute; left: 16px; top: -60px;
    padding: 10px 16px; background: var(--site-ink); color: var(--site-paper);
    border-radius: 8px; text-decoration: none; z-index: 100;
}
.skip-link:focus { top: 16px; }

.eyebrow { font-family: var(--font-mono); font-size: 13px; color: var(--site-accent); margin: 0 0 16px; }
.display { font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; margin: 0 0 32px; }
.display-sm { font-size: clamp(40px, 5vw, 60px); margin-bottom: 24px; }
.h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em; margin: 0; }
.h2-spaced { margin-bottom: 56px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--site-body); margin: 0 0 40px; max-width: 580px; }
.section-intro { font-size: 17px; line-height: 1.6; color: var(--site-body); margin: 0; max-width: 440px; }

/* ---------- Gombok ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 52px; padding: 0 26px; border-radius: 999px;
    font-family: var(--font-main); font-size: 16px; font-weight: 600;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-primary { background: var(--site-accent); color: var(--site-on-accent); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--site-on-accent); }
.btn-ink { background: var(--site-ink); color: var(--site-paper); }
.btn-ink:hover { color: var(--site-paper); opacity: 0.9; }
.btn-outline { border-color: var(--site-field-border); color: var(--site-ink); }
.btn-outline:hover { border-color: var(--site-ink); color: var(--site-ink); }
.btn-light { background: #ffffff; color: #0b0f14; }
.btn-light:hover { background: #e8eaed; color: #0b0f14; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Fejléc ---------- */
.site-header { border-bottom: 1px solid var(--site-rule); background: var(--site-paper); position: relative; z-index: 20; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }

/* Terminál-logó: "$ fuchs it" + "systems engineering", ÁLLÓ kurzor (szándékosan nem villog) */
.brand-logo { display: inline-flex; flex-direction: column; gap: 1px; font-family: var(--font-mono); line-height: 1.25; text-decoration: none; color: var(--site-ink); }
.brand-logo:hover { color: var(--site-ink); }
.brand-cmd { font-size: 16px; white-space: nowrap; }
.brand-prompt { color: var(--site-accent); }
.brand-name { font-weight: 700; }
.brand-cursor { display: inline-block; width: 0.5em; height: 0.95em; margin-left: 0.25em; vertical-align: -0.12em; background: currentColor; }
.brand-out { font-size: 12px; color: var(--site-muted); padding-left: 19.2px; }

.site-nav { display: flex; align-items: center; gap: 8px 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--site-accent); }
.nav-tools { display: flex; align-items: center; gap: 16px; }
.nav-tools::before { content: ""; width: 1px; height: 18px; background: var(--site-rule); }
.lang-switch { display: flex; gap: 10px; font-size: 13px; }
.lang-switch a { text-decoration: none; color: var(--site-muted); font-weight: 500; }
.lang-switch a[aria-current="true"] { color: var(--site-ink); font-weight: 700; }
.theme-toggle, .nav-toggle {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--site-rule); border-radius: 999px; background: transparent; color: var(--site-ink); cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--site-ink); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.nav-toggle { display: none; width: 44px; height: 44px; }

/* ---------- Hero ---------- */
.hero .hero-grid { padding-top: 120px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 64px; align-items: end; }
.hero-text { min-width: 0; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--site-ink); }
.fact { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--site-rule); }
.fact:nth-child(even) { padding: 24px 0 24px 24px; border-left: 1px solid var(--site-rule); }
.facts .fact:nth-last-child(-n+2) { border-bottom: none; }
.fact dt { font-family: var(--font-mono); font-size: 12px; color: var(--site-muted); margin-bottom: 10px; }
.fact dd { margin: 0; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.fact-long dd { font-size: 17px; font-weight: 500; letter-spacing: 0; line-height: 1.5; }

/* ---------- Szakaszok ---------- */
.section { padding: 112px 0; }
.section-tinted { background: var(--site-paper-2); border-top: 1px solid var(--site-rule); border-bottom: 1px solid var(--site-rule); }
.section-ruled { border-top: 1px solid var(--site-rule); }
.section-tinted + .section-ruled, .section-tinted + .section-tinted { border-top: none; }
.section-head { margin-bottom: 64px; }
.section-head-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head-split .h2 { max-width: 620px; }
.num { font-family: var(--font-mono); font-size: 13px; color: var(--site-muted); }

.numbered-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); border-top: 1px solid var(--site-ink); }
.numbered-grid li { padding: 36px 36px 40px 0; border-bottom: 1px solid var(--site-rule-2); }
.numbered-grid h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 10px; }
.numbered-grid p { font-size: 16px; color: var(--site-body); margin: 0; }
@media (min-width: 1040px) {
    .numbered-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .numbered-grid li { padding: 36px 36px 40px; border-left: 1px solid var(--site-rule-2); }
    .numbered-grid li:nth-child(3n+1) { padding-left: 0; border-left: none; }
    .numbered-grid li:nth-child(3n) { padding-right: 0; }
}

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; }
.steps-grid .h2 { margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--site-rule-2); }
.steps li:first-child { border-top-color: var(--site-ink); }
.steps li:last-child { border-bottom: 1px solid var(--site-rule-2); }
.steps .num { padding-top: 6px; }
.steps h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.steps p { font-size: 16px; color: var(--site-body); margin: 0; }

.tagged-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); column-gap: 64px; border-top: 1px solid var(--site-ink); }
.tagged-list li { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--site-rule); }
.tagged-name { font-weight: 500; }
.tag { font-family: var(--font-mono); font-size: 13px; color: var(--site-muted); white-space: nowrap; }

/* ---------- Sötét sáv ---------- */
.band { background: var(--site-band); color: var(--site-band-text); }
.band-inner { padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.band-text { max-width: 680px; }
.band .eyebrow { color: var(--site-band-eyebrow); }
.h2-band { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -0.04em; margin-bottom: 20px; }
.band-lead { font-size: 18px; color: var(--site-band-muted); margin: 0; }
.band a:hover { color: inherit; }

/* ---------- Szöveg (Markdown) ---------- */
.prose { max-width: 760px; color: var(--site-body); font-size: 17px; line-height: 1.7; }
.prose h1 { font-size: clamp(36px, 4.5vw, 52px); line-height: 1.08; letter-spacing: -0.035em; color: var(--site-ink); margin: 0 0 24px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; color: var(--site-ink); margin: 48px 0 12px; }
.prose h3 { font-size: 19px; color: var(--site-ink); margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose a { color: var(--site-accent); }
.prose em { color: var(--site-muted); }
.prose-section { padding-top: 96px; }

/* ---------- Kapcsolat ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 80px; }
.contact .lead { margin-bottom: 48px; max-width: 460px; }
.contact-details { margin: 0; border-top: 1px solid var(--site-ink); }
.contact-details div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--site-rule); }
.contact-details dt { font-family: var(--font-mono); font-size: 13px; color: var(--site-muted); }
.contact-details dd { margin: 0; font-weight: 500; line-height: 1.55; }
.contact-form { display: flex; flex-direction: column; gap: 20px; padding: 40px; border: 1px solid var(--site-rule); border-radius: 20px; background: var(--site-paper-2); align-self: start; }
.form-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; border: none; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 10px; }
.optional { font-weight: 400; color: var(--site-muted); }
.field input, .field textarea {
    min-height: 50px; padding: 0 16px; border: 1px solid var(--site-field-border); border-radius: 12px;
    background: var(--site-field); color: var(--site-ink); font-family: var(--font-main); font-size: 16px;
}
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--site-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-accent) 25%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--site-field-border); background: var(--site-field); font-size: 14px; font-weight: 500; }
.chip input:checked + span { background: var(--site-ink); border-color: var(--site-ink); color: var(--site-paper); }
.chip input:focus-visible + span { outline: 2px solid var(--site-accent); outline-offset: 2px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--site-body); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--site-accent); }
.contact-form .btn { align-self: flex-start; border: none; }
.form-error { margin: 0; padding: 12px 16px; border-radius: 10px; font-size: 14.5px; line-height: 1.5; background: var(--color-danger-pale); color: var(--color-danger); border: 1px solid var(--color-danger-border); }
.form-error[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Impressum ---------- */
.impressum-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px; }
.impressum .h2 { font-size: clamp(28px, 3vw, 40px); }
.impressum-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 48px; }
.impressum-list dt { font-family: var(--font-mono); font-size: 13px; color: var(--site-muted); margin-bottom: 8px; }
.impressum-list dd { margin: 0; }

/* ---------- 404 ---------- */
.not-found { padding: 140px 32px; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--site-band); color: var(--site-band-muted); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--site-band-muted); text-decoration: none; }
.footer-nav a:hover { color: #ffffff; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
    .wrap { padding: 0 20px; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 20px;
        padding: 20px; background: var(--site-paper); border-bottom: 1px solid var(--site-rule);
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
    }
    .site-nav.is-open { display: flex; }
    .nav-links { flex-direction: column; gap: 4px; font-size: 17px; }
    .nav-links a { display: block; padding: 10px 0; }
    .nav-tools { justify-content: space-between; }
    .nav-tools::before { display: none; }
    .hero .hero-grid { padding-top: 56px; padding-bottom: 48px; gap: 40px; }
    .section { padding: 64px 0; }
    .band-inner { padding-top: 64px; padding-bottom: 64px; }
    .fact dd { font-size: 28px; }
    .contact-form { padding: 24px; }
    .contact-details div { grid-template-columns: 100px minmax(0, 1fr); }
    .numbered-grid li { padding-right: 0; }
}
