diff --git a/html/style.css b/html/style.css index 5c13595..2b6acf0 100644 --- a/html/style.css +++ b/html/style.css @@ -1,15 +1,22 @@ -/* Reset & Base Styles */ +/* ========================================== + 1. RESET & BASIS STILE + ========================================== */ * { margin: 0; padding: 0; box-sizing: border-box; } +html { + scroll-behavior: smooth; +} + body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + overflow-x: hidden; } .container { @@ -18,7 +25,9 @@ body { padding: 0 20px; } -/* Header & Navigation */ +/* ========================================== + 2. HEADER & NAVIGATION + ========================================== */ header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); @@ -52,6 +61,7 @@ nav { .nav-links a { color: #333; text-decoration: none; + font-weight: 500; transition: color 0.3s; } @@ -59,7 +69,27 @@ nav { 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 { min-height: 100vh; display: flex; @@ -81,6 +111,7 @@ nav { -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; + line-height: 1.2; } .hero p { @@ -89,7 +120,9 @@ nav { opacity: 0.9; } -/* Buttons */ +/* ========================================== + 4. BUTTONS & CTAs + ========================================== */ .cta-button { display: inline-block; background: #667eea; @@ -130,7 +163,9 @@ nav { transform: translateY(-2px); } -/* Sections General */ +/* ========================================== + 5. SECTIONS & CONTENT CARDS + ========================================== */ section { padding: 5rem 0; background: white; @@ -155,7 +190,6 @@ h2 { line-height: 1.8; } -/* Project & Tech Cards */ .projects, .tech-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); @@ -188,32 +222,21 @@ h2 { line-height: 1.6; } -/* Community & FAQ Styles */ -.demo-section, .community { - 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 */ +/* ========================================== + 6. FOOTER + ========================================== */ footer { background: #333; color: white; text-align: center; - padding: 2rem 0; + padding: 3rem 0; } .footer-links { display: flex; justify-content: center; gap: 2rem; - margin-bottom: 1rem; + margin-bottom: 1.5rem; flex-wrap: wrap; } @@ -223,25 +246,68 @@ footer { transition: opacity 0.3s; } -/* Responsiveness */ -@media (max-width: 768px) { - .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; - } +.footer-links a:hover { + opacity: 0.7; } +/* ========================================== + 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; + } +} \ No newline at end of file