:root { --primary: #6366f1; --primary-dark: #4f46e5; --bg: #f8fafc; --white: #ffffff; --text-main: #0f172a; --text-light: #64748b; --border: #e2e8f0; } body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; background-color: var(--bg); color: var(--text-main); } // --- NAVBAR --- .navbar { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 0.75rem 0; .nav-content { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 1.5rem; } .nav-logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); } .nav-links { display: flex; gap: 0.5rem; a { text-decoration: none; color: var(--text-light); padding: 0.5rem 1rem; border-radius: 0.5rem; transition: all 0.2s; &[aria-current="page"] { background: rgba(99, 102, 241, 0.1); color: var(--primary); font-weight: 600; } &:hover { background: rgba(99, 102, 241, 0.05); color: var(--primary); } } } } // --- COMMUNITY / LOGIN --- .community-container { display: flex; justify-content: center; padding: 3rem 1rem; } .auth-card { background: var(--white); padding: 3rem; border-radius: 1.5rem; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); width: 100%; max-width: 400px; text-align: center; h2 { margin-top: 0; color: var(--text-main); font-size: 1.75rem; } p { color: var(--text-light); margin-bottom: 2rem; } // Hier stylen wir die Form-Inhalte direkt form { display: flex; flex-direction: column; gap: 1.25rem; input { width: 100%; box-sizing: border-box; // Wichtig für korrektes Padding padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 0.75rem; font-size: 1rem; transition: border-color 0.2s; &:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } } button { width: 100%; padding: 0.8rem; background: var(--primary); color: white; border: none; border-radius: 0.75rem; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s; &:hover { background: var(--primary-dark); } } } } // --- CHAT WINDOW --- .chat-main { background: var(--white); width: 100%; max-width: 800px; height: 650px; border-radius: 1.5rem; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); overflow: hidden; } .chat-top-bar { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: #fff; h3 { margin: 0; font-size: 1.1rem; } .badge { background: #f1f5f9; padding: 0.3rem 0.8rem; border-radius: 1rem; font-size: 0.8rem; font-weight: 600; } } .message-area { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; background: #fafafa; } .msg-row { display: flex; &.me { justify-content: flex-end; .msg-bubble { background: var(--primary); color: white; border-bottom-right-radius: 2px; } } &.other { justify-content: flex-start; .msg-bubble { background: #f1f5f9; color: var(--text-main); border-bottom-left-radius: 2px; } } } .msg-bubble { padding: 0.75rem 1.25rem; border-radius: 1.25rem; max-width: 75%; strong { display: block; font-size: 0.75rem; margin-bottom: 4px; opacity: 0.8; } p { margin: 0; line-height: 1.5; } } .chat-input-wrapper { padding: 1.25rem; border-top: 1px solid var(--border); form .input-group { display: flex; gap: 0.75rem; input { flex: 1; padding: 0.75rem 1.25rem; border-radius: 2rem; border: 1px solid var(--border); background: #f8fafc; } button { padding: 0 1.5rem; background: var(--primary); color: white; border: none; border-radius: 2rem; font-weight: 600; cursor: pointer; } } } // --- FOOTER & SERVER TIME --- .app-footer { text-align: center; padding: 3rem 0; .server-time { display: inline-block; background: #ffffff; padding: 0.5rem 1.25rem; border-radius: 2rem; border: 1px solid var(--border); font-size: 0.85rem; color: var(--text-light); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.05); } } .home-container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; } .projects-grid { display: grid; // Sorgt dafür, dass die Karten immer gleich breit sind grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin: 2rem 0; // Verhindert Layout-Shifts align-items: stretch; } .project-card { background: var(--white); border-radius: 1rem; border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; height: 100%; // Wichtig für einheitliche Höhe im Grid &:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); } .project-image { height: 180px; background: #f1f5f9; img { width: 100%; height: 100%; object-fit: cover; display: block; } } .project-content { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; h3 { margin: 0 0 0.5rem 0; font-size: 1.25rem; color: var(--text-main); } p { font-size: 0.95rem; color: var(--text-light); line-height: 1.5; margin-bottom: 1.5rem; flex-grow: 1; // Drückt die Buttons nach unten } } .project-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; a { display: inline-block; text-decoration: none; padding: 0.6rem; border-radius: 0.5rem; font-size: 0.85rem; font-weight: 600; text-align: center; transition: background 0.2s; } .btn-download { background: var(--primary); color: white; &:hover { background: var(--primary-dark); } } .btn-code { background: var(--bg); color: var(--text-main); border: 1px solid var(--border); &:hover { background: var(--border); } } } } .loading-trigger { text-align: center; padding: 3rem 0; min-height: 100px; } .end-msg { color: var(--text-light); font-size: 0.9rem; border-top: 1px solid var(--border); padding-top: 2rem; } .spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; margin: 0 auto; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } // Variablen für dein Design $card-bg: #1e1e1e; $text-primary: #ffffff; $text-secondary: #b3b3b3; $accent-color: #f74c00; // Dein Rust/Bytemalte Orange $card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); $transition-speed: 0.6s; .home-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; .home-hero { text-align: center; margin-bottom: 60px; h1 { font-size: 3rem; margin-bottom: 10px; color: $text-primary; } p { color: $text-secondary; font-size: 1.2rem; } } } // Das Grid-Layout .projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-bottom: 50px; } // Die Projekt-Karte .project-card { background: $card-bg; border-radius: 12px; overflow: hidden; box-shadow: $card-shadow; display: flex; flex-direction: column; // --- ANIMATIONS-LOGIK --- opacity: 0; transform: translateY(40px); transition: opacity $transition-speed cubic-bezier(0.25, 0.46, 0.45, 0.94), transform $transition-speed cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: opacity, transform; &.animate-in { opacity: 1; transform: translateY(0); } // ------------------------- &:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); transition: transform 0.3s ease, box-shadow 0.3s ease; .project-image img { transform: scale(1.05); } } .project-image { width: 100%; height: 200px; overflow: hidden; img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } } .project-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; h3 { margin: 0 0 10px 0; font-size: 1.4rem; color: $text-primary; } p { color: $text-secondary; font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; flex-grow: 1; } .project-links { display: flex; gap: 10px; a { padding: 8px 16px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: filter 0.2s; &:hover { filter: brightness(1.2); } &.btn-download { background: $accent-color; color: white; } &.btn-code { background: #333; color: white; border: 1px solid #444; } } } } } .home-footer { text-align: center; padding: 40px 0; color: $text-secondary; border-top: 1px solid #333; } // Lade-Spinner Styling .spinner { border: 4px solid rgba(255, 255, 255, 0.1); border-left-color: $accent-color; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 40px auto; } @keyframes spin { to { transform: rotate(360deg); } }