fix haburger menu

This commit is contained in:
2026-02-28 14:33:54 +00:00
parent 0cd13e91d8
commit ff4f59157e

View File

@@ -1,15 +1,22 @@
/* Reset & Base Styles */ /* ==========================================
1. RESET & BASIS STILE
========================================== */
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
} }
html {
scroll-behavior: smooth;
}
body { body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6; line-height: 1.6;
color: #333; color: #333;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
overflow-x: hidden;
} }
.container { .container {
@@ -18,7 +25,9 @@ body {
padding: 0 20px; padding: 0 20px;
} }
/* Header & Navigation */ /* ==========================================
2. HEADER & NAVIGATION
========================================== */
header { header {
background: rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
@@ -52,6 +61,7 @@ nav {
.nav-links a { .nav-links a {
color: #333; color: #333;
text-decoration: none; text-decoration: none;
font-weight: 500;
transition: color 0.3s; transition: color 0.3s;
} }
@@ -59,7 +69,27 @@ nav {
color: #667eea; color: #667eea;
} }
/* Hero Section */ /* Hamburger Icon (Standard versteckt) */
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 5px;
z-index: 1100;
}
.hamburger span {
display: block;
width: 25px;
height: 3px;
background-color: #667eea;
border-radius: 3px;
transition: all 0.3s ease;
}
/* ==========================================
3. HERO SECTION
========================================== */
.hero { .hero {
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
@@ -81,6 +111,7 @@ nav {
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
background-clip: text; background-clip: text;
line-height: 1.2;
} }
.hero p { .hero p {
@@ -89,7 +120,9 @@ nav {
opacity: 0.9; opacity: 0.9;
} }
/* Buttons */ /* ==========================================
4. BUTTONS & CTAs
========================================== */
.cta-button { .cta-button {
display: inline-block; display: inline-block;
background: #667eea; background: #667eea;
@@ -130,7 +163,9 @@ nav {
transform: translateY(-2px); transform: translateY(-2px);
} }
/* Sections General */ /* ==========================================
5. SECTIONS & CONTENT CARDS
========================================== */
section { section {
padding: 5rem 0; padding: 5rem 0;
background: white; background: white;
@@ -155,7 +190,6 @@ h2 {
line-height: 1.8; line-height: 1.8;
} }
/* Project & Tech Cards */
.projects, .tech-features { .projects, .tech-features {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
@@ -188,32 +222,21 @@ h2 {
line-height: 1.6; line-height: 1.6;
} }
/* Community & FAQ Styles */ /* ==========================================
.demo-section, .community { 6. FOOTER
text-align: center; ========================================== */
}
.faq-item {
background: white;
border-radius: 10px;
padding: 1.5rem;
margin-bottom: 1rem;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
/* Footer */
footer { footer {
background: #333; background: #333;
color: white; color: white;
text-align: center; text-align: center;
padding: 2rem 0; padding: 3rem 0;
} }
.footer-links { .footer-links {
display: flex; display: flex;
justify-content: center; justify-content: center;
gap: 2rem; gap: 2rem;
margin-bottom: 1rem; margin-bottom: 1.5rem;
flex-wrap: wrap; flex-wrap: wrap;
} }
@@ -223,25 +246,68 @@ footer {
transition: opacity 0.3s; transition: opacity 0.3s;
} }
/* Responsiveness */ .footer-links a:hover {
@media (max-width: 768px) { opacity: 0.7;
.hero h1 {
font-size: 2.5rem;
}
.hero p {
font-size: 1.2rem;
}
nav {
flex-direction: column;
gap: 1rem;
}
.nav-links {
flex-direction: column;
text-align: center;
}
} }
/* ==========================================
7. MOBILE RESPONSIVENESS (BREAKPOINTS)
========================================== */
@media (max-width: 768px) {
/* Zeige Hamburger-Icon */
.hamburger {
display: flex;
}
/* Verwandle Nav-Links in Dropdown */
.nav-links {
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: rgba(255, 255, 255, 0.98);
flex-direction: column;
gap: 0;
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease-in-out;
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
}
/* Wenn Menü offen ist */
.nav-links.mobile-open {
max-height: 500px;
}
.nav-links li {
width: 100%;
text-align: center;
border-bottom: 1px solid #eee;
}
.nav-links a {
padding: 1.2rem;
display: block;
}
/* Hamburger Animation zum X */
.hamburger.active span:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
opacity: 0;
}
.hamburger.active span:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
/* Hero Text für Mobile */
.hero h1 {
font-size: 2.2rem;
}
.hero p {
font-size: 1.1rem;
}
}