/* Alap stílusok és változók */ :root { --primary-color: #2c3e50; --secondary-color: #3498db; --light-color: #ecf0f1; --dark-color: #2c3e50; --text-color: #333; --background-color: #f9f9f9; --card-bg: #fff; --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); --transition: all 0.3s ease; } /* Sötét téma változói */ .dark-mode { --primary-color: #3498db; --secondary-color: #2c3e50; --light-color: #2c3e50; --dark-color: #ecf0f1; --text-color: #ecf0f1; --background-color: #1a1a1a; --card-bg: #2c3e50; --shadow: 0 4px 6px rgba(0, 0, 0, 0.3); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } body { background-color: var(--background-color); color: var(--text-color); line-height: 1.6; transition: var(--transition); } /* Fejléc stílusai */ header { background-color: var(--primary-color); color: white; padding: 1rem 0; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); } .container { width: 90%; max-width: 1200px; margin: 0 auto; } .header-container { display: flex; justify-content: space-between; align-items: center; } .logo { font-size: 1.5rem; font-weight: bold; } /* Navigációs menü */ nav ul { display: flex; list-style: none; } nav ul li { margin-left: 1.5rem; } nav ul li a { color: white; text-decoration: none; font-weight: 500; transition: var(--transition); padding: 0.5rem 0; position: relative; } nav ul li a:hover { color: var(--secondary-color); } nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--secondary-color); transition: var(--transition); } nav ul li a:hover::after { width: 100%; } /* Hamburger menü mobilnézethez */ .hamburger { display: none; cursor: pointer; } .hamburger div { width: 25px; height: 3px; background-color: white; margin: 5px; transition: var(--transition); } /* Fő tartalom */ main { padding: 2rem 0; } .hero { text-align: center; padding: 3rem 0; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1581093450021-4a7360e9a9e5?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80'); background-size: cover; background-position: center; color: white; margin-bottom: 2rem; border-radius: 8px; } .hero h1 { font-size: 2.5rem; margin-bottom: 1rem; } .hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; } /* Szolgáltatások rész */ .services { margin: 3rem 0; } .section-title { text-align: center; margin-bottom: 2rem; color: var(--primary-color); } .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; } .service-card { background-color: var(--card-bg); border-radius: 8px; padding: 1.5rem; box-shadow: var(--shadow); transition: var(--transition); text-align: center; } .service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); } .service-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 6px; margin-bottom: 1rem; } .service-card h3 { margin-bottom: 0.5rem; color: var(--primary-color); } /* Elérhetőségek rész */ .contact { background-color: var(--primary-color); color: white; padding: 3rem 0; border-radius: 8px; } .contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } .contact-info { margin-bottom: 1.5rem; } .contact-info h3 { margin-bottom: 1rem; color: var(--secondary-color); } /* Lábléc */ footer { background-color: var(--dark-color); color: white; text-align: center; padding: 1.5rem 0; margin-top: 2rem; } /* Téma váltó gomb */ .theme-toggle { position: fixed; bottom: 20px; right: 20px; background-color: var(--primary-color); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: var(--shadow); transition: var(--transition); z-index: 99; } .theme-toggle:hover { background-color: var(--secondary-color); transform: scale(1.1); } /* Reszponzív stílusok */ @media (max-width: 768px) { .hamburger { display: block; } nav ul { position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); background-color: var(--primary-color); flex-direction: column; align-items: center; justify-content: center; transition: var(--transition); z-index: 99; } nav ul.active { left: 0; } nav ul li { margin: 1.5rem 0; } .hero h1 { font-size: 2rem; } .hero p { font-size: 1rem; } } @media (max-width: 480px) { .hero h1 { font-size: 1.8rem; } .header-container { flex-direction: column; text-align: center; } .logo { margin-bottom: 1rem; } }