/* --- VÁLTOZÓK (COLOR PALETTE) --- */
:root {
    /* Light Mode */
    --bg-body: #FFFFFF;
    --surface: #F8F9FA;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --menu-overlay: rgba(255, 255, 255, 0.98);
    --accent-color: #0F172A;
    --input-bg: #FFFFFF;
}

/* Dark Mode */
body.dark-mode {
    --bg-body: #020617;
    --surface: #0F172A;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border: #1E293B;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(2, 6, 23, 0.85);
    --menu-overlay: rgba(2, 6, 23, 0.98);
    --accent-color: #FFFFFF;
    --input-bg: #020617;
}

/* --- ALAP BEÁLLÍTÁSOK --- */
* { margin: 0; padding: 0; box-sizing: border-box; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

/* Tipográfia */
h1, h2, h3, h4, .logo, .mobile-link, .pill, .nav-link, .btn-link, button, .section-title, .btn-submit, .legal-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

a { text-decoration: none; color: inherit; }

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; width: 100%; height: 72px; padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--nav-bg); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000; 
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    display: flex; 
    align-items: center; 
    gap: 12px;
    z-index: 1002;
    text-transform: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.logo svg {
    width: 28px;
    height: 28px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover { opacity: 0.8; }
.logo:hover svg { transform: rotate(90deg) scale(1.1); }

.nav-wrapper { display: flex; align-items: center; }
.desktop-nav-group { display: flex; align-items: center; gap: 2rem; }
.nav-icons { display: flex; align-items: center; gap: 10px; z-index: 1002; margin-left: 1.5rem; }

.nav-link {
    color: var(--text-secondary); 
    font-size: 0.9rem; 
    font-weight: 500;
}
.nav-link:hover, .nav-link.login-btn { color: var(--text-primary); }

/* Gombok */
.icon-btn {
    background: transparent; border: 1px solid var(--border); cursor: pointer; padding: 8px; border-radius: 8px;
    color: var(--text-primary); display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background-color: var(--surface); border-color: var(--text-secondary); }
.icon-btn svg { width: 18px; height: 18px; stroke-width: 2; }
.lang-btn { font-size: 0.85rem; font-weight: 700; padding: 8px 12px; }

/* --- MOBILE MENU --- */
.mobile-menu-btn { display: none; border: none; }
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--menu-overlay); z-index: 1001;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    backdrop-filter: blur(20px);
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-links-container { display: flex; flex-direction: column; gap: 2rem; text-align: center; transform: translateY(10px); transition: transform 0.3s ease; }
.mobile-menu-overlay.active .mobile-links-container { transform: translateY(0); }
.mobile-link { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text-primary); }
.mobile-link.highlight { opacity: 0.6; font-size: 1.5rem; }
.close-menu-btn { position: absolute; top: 20px; right: 5%; background: none; border: none; cursor: pointer; color: var(--text-primary); }
.close-menu-btn svg { width: 32px; height: 32px; }

/* --- SECTIONS --- */
section { padding: 5rem 5%; max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-inline: auto; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 1rem; letter-spacing: -0.03em; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); }

/* Hero Modernizálása */
.hero-section {
    min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding-top: 8rem; padding-bottom: 4rem; padding-inline: 5%;
}
.pill {
    padding: 6px 20px; 
    border-radius: 50px; 
    background: transparent;
    color: var(--text-secondary); 
    font-size: 0.75rem; 
    font-weight: 600; 
    margin-bottom: 2rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    border: 1px solid var(--border);
}
.hero-section h1 { 
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 700; 
    line-height: 1.2; 
    padding-bottom: 10px;
    margin-bottom: 1.5rem; 
    letter-spacing: -0.03em; 
    background: linear-gradient(to bottom right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-primary); 
}
.hero-subtitle { 
    font-size: 1.15rem; 
    color: var(--text-secondary); 
    max-width: 600px; 
    margin-bottom: 3rem; 
    font-weight: 400; 
    line-height: 1.6; 
}

/* Grid Cards */
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem;
    display: flex; flex-direction: column; min-height: 380px;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--text-secondary); }

.status-badge {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1.5rem;
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px;
    background: var(--bg-body); border: 1px solid var(--border); width: fit-content;
}
.live { color: #10B981; } .live::before { content: ''; width: 8px; height: 8px; background: #10B981; border-radius: 2px; }
.soon { color: var(--text-secondary); } .soon::before { content: ''; width: 8px; height: 8px; background: var(--text-secondary); border-radius: 2px; }

.card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); font-weight: 700; letter-spacing: -0.02em; }
.card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 2rem; flex-grow: 1; }
.btn-link { color: var(--text-primary); font-size: 0.95rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; width: fit-content; }
.btn-link::after { content: '→'; transition: transform 0.2s; } .btn-link:hover::after { transform: translateX(5px); }

/* --- INPUTS & FORM --- */
.input-group { display: flex; gap: 8px; margin-top: auto; }
.input-minimal, .form-input, .form-textarea {
    background: var(--input-bg); border: 1px solid var(--border); color: var(--text-primary);
    padding: 10px 14px; border-radius: 8px; width: 100%; font-size: 0.9rem; outline: none; font-family: 'Inter', sans-serif;
    -webkit-appearance: none;
}
.input-minimal:focus, .form-input:focus, .form-textarea:focus { border-color: var(--text-secondary); }
.arrow-btn { border: 1px solid var(--border); background: var(--surface); }

/* Kapcsolat Elrendezés */
.contact-centered-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    gap: 3rem;
}

.address-block { text-align: center; margin-bottom: 1.5rem; }
.address-block h4 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--text-primary); font-weight: 700; }
.address-block p { color: var(--text-secondary); font-size: 1.1rem; }

.map-container {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--surface);
}
.map-container iframe { display: block; width: 100%; }

.contact-form { 
    background: var(--surface); 
    padding: 2.5rem; 
    border-radius: 16px; 
    border: 1px solid var(--border); 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    width: 100%;
    max-width: 600px;
}

.form-label { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; display: block; }
.form-textarea { min-height: 120px; resize: vertical; }
.btn-submit { background: var(--accent-color); color: var(--bg-body); padding: 14px; border-radius: 8px; font-weight: 700; border: none; cursor: pointer; -webkit-appearance: none;}
.btn-submit:hover { opacity: 0.9; }

/* Status Messages */
.status-message {
    margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px; line-height: 1.4; animation: slideInUp 0.3s ease forwards;
}
.status-message.success { background-color: rgba(16, 185, 129, 0.1); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.2); }
.status-message.error { background-color: rgba(239, 68, 68, 0.1); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.2); }

@keyframes slideInUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- LEGAL PAGES --- */
.legal-wrapper { padding-top: 8rem; padding-bottom: 4rem; background-color: var(--bg-body); }
.legal-container { max-width: 800px; margin: 0 auto; padding: 0 5%; }
.legal-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.legal-header .pill { display: inline-block; width: fit-content; margin-bottom: 1rem; margin-left: 0; }
.legal-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text-primary); line-height: 1.2; }
.legal-meta { color: var(--text-secondary); font-size: 0.9rem; font-family: 'Inter', sans-serif; }
.legal-body { font-family: 'Inter', sans-serif; color: var(--text-primary); }
.legal-body h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text-primary); }
.legal-body p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.7; text-align: justify; }
.legal-body ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-secondary); }
.legal-body li { margin-bottom: 0.5rem; }
.legal-body strong { color: var(--text-primary); font-weight: 600; }

/* Nyelvkezelés */
.lang-content { display: none; animation: fadeIn 0.3s ease; }
.lang-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Footer - Corporate Style */
.corporate-footer {
    background-color: var(--surface); 
    border-top: 1px solid var(--border);
    padding: 5rem 5% 2rem;
    margin-top: 6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}
.footer-content { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-logo { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--text-primary); display: block; margin-bottom: 1rem; letter-spacing: -0.03em; }
.brand-desc { color: var(--text-secondary); line-height: 1.6; max-width: 300px; font-size: 0.9rem; }
.col-header { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); margin-bottom: 1.5rem; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 0.75rem; }
.footer-menu a { color: var(--text-secondary); font-weight: 400; text-decoration: none; transition: color 0.2s ease; font-size: 0.9rem; }
.footer-menu a:hover { color: var(--text-primary); }
.footer-divider { height: 1px; background-color: var(--border); width: 100%; margin-bottom: 2rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--text-secondary); font-size: 0.85rem; }
.cookie-reset-btn { cursor: pointer; font-size: 0.8rem; border-bottom: 1px dotted var(--text-secondary); }
.cookie-reset-btn:hover { color: var(--text-primary); border-bottom-style: solid; }

/* Cookie Banner */
#cookie-banner {
    position: fixed; bottom: 24px; right: 24px; width: 340px;
    background: var(--surface); color: var(--text-primary); padding: 1.5rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3); border: 1px solid var(--border);
    display: none; flex-direction: column; gap: 1rem; z-index: 10001; border-radius: 12px;
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cookie-title { font-weight: 700; font-size: 1rem; }
.cookie-text { font-size: 0.9rem; color: var(--text-secondary); }
.btn-accept { background: var(--text-primary); color: var(--bg-body); border: none; padding: 12px; border-radius: 8px; font-weight: 700; cursor: pointer; width: 100%; font-family: 'Plus Jakarta Sans', sans-serif; }

/* Vissza gomb stílus */
.nav-link[data-key="legalBack"] {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; background-color: transparent; border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-primary); font-weight: 600; font-size: 0.85rem; line-height: 1; white-space: nowrap; 
    transition: all 0.2s ease;
}
.nav-link[data-key="legalBack"]:hover { background-color: var(--surface); border-color: var(--text-secondary); transform: translateY(-1px); box-shadow: var(--shadow); color: var(--text-primary); }
.nav-link[data-key="legalBack"]::after { display: none; }

/* --- LOGIN PAGE STYLES --- */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-container { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 8rem 5% 4rem; background: radial-gradient(circle at 50% 50%, var(--surface) 0%, var(--bg-body) 100%); }
.login-card { width: 100%; max-width: 440px; padding: 2.5rem; box-shadow: var(--shadow); background: var(--bg-body); border-radius: 16px; border: 1px solid var(--border); }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h1 { font-size: 1.75rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.login-header p { color: var(--text-secondary); font-size: 0.95rem; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.password-toggle { position: absolute; right: 12px; background: none; border: none; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; padding: 0; }
.password-toggle:hover { color: var(--text-primary); }
.form-actions { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; margin-top: -0.5rem; }
.forgot-password { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.forgot-password:hover { color: var(--accent-color); text-decoration: underline; }
.login-footer { margin-top: 2rem; text-align: center; font-size: 0.9rem; color: var(--text-secondary); padding-top: 1.5rem; border-top: 1px solid var(--border); }
.register-link { color: var(--text-primary); font-weight: 700; margin-left: 5px; }
.register-link:hover { text-decoration: underline; }

/* --- MEDIA QUERIES (RESPONSIVE) --- */

@media(min-width: 769px) {
    .nav-link { display: block; }
    .mobile-menu-btn { display: none; }
}

@media(max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand-col { grid-column: span 2; margin-bottom: 1rem; }
}

@media(max-width: 768px) {
    nav { padding: 0 1.5rem; } 
    .nav-link { display: none; }
    .mobile-menu-btn { display: flex; }

    /* Elrejtjük a felső sávban lévő nyelv és téma gombokat */
    .desktop-only {
        display: none !important;
    }

    /* Formázzuk a mobil menü aljára kerülő gombokat */
    .mobile-controls {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border);
        width: 100%;
        max-width: 200px;
        margin-inline: auto; /* Középre igazítás */
    }
    
    /* Kicsit növeljük a gombok méretét mobilon */
    .mobile-controls .icon-btn {
        width: 48px;
        height: 48px;
    }
    .mobile-controls svg {
        width: 24px;
        height: 24px;
    }
    
    section { padding: 3rem 5%; } 
    .hero-section { padding-top: 7rem; min-height: 60vh; }
    
    .contact-form { padding: 1.5rem; }
    .login-card { padding: 1.5rem; }
    
    #cookie-banner { left: 20px; right: 20px; width: auto; bottom: 20px; }
    
    .nav-link[data-key="legalBack"] { padding: 0 12px; font-size: 0.75rem; height: 38px; }
    .desktop-nav-group { display: flex; gap: 0; }
}

@media (max-width: 600px) {
    .footer-top {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        text-align: center; 
    }

    .footer-brand-col {
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center; 
        width: 100%;
    }

    .footer-nav-col {
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    .brand-desc { text-align: center; margin: 0 auto; max-width: 90%; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

@media(max-width: 480px) {
    .nav-link[data-key="legalBack"] { font-size: 0; padding: 0 10px; }
    .nav-link[data-key="legalBack"]::before { content: '←'; font-size: 1.2rem; display: block; }
    
    .hero-section h1 { font-size: 2rem; }
}